Commit graph

7597 commits

Author SHA1 Message Date
Anthony Baxter
fa86907aae SF [ 1231053 ] audioop - alaw encoding/decoding added, code updated
This patch adds a-LAW encoding to audioop and replaces the old
u-LAW encoding/decoding code with the current code from sox.

Possible issues: the code from sox uses int16_t.

Code by Lars Immisch
2006-03-20 05:21:58 +00:00
Georg Brandl
8a85ac660b Update tutorial wrt PEP 341 try-except-finally statement 2006-03-19 11:20:29 +00:00
Barry Warsaw
40ef0067ad Merge email package 4.0 from the sandbox, including documentation, test cases,
and NEWS updates.
2006-03-18 15:41:53 +00:00
Andrew M. Kuchling
237037beb5 You need at least one \item 2006-03-17 22:25:15 +00:00
Andrew M. Kuchling
b182db44f2 Write section 2006-03-17 21:48:46 +00:00
Georg Brandl
bc45a3f821 RFE #567972: Socket objects' family, type and proto properties are
now exposed via new get...() methods.
2006-03-17 19:17:34 +00:00
Georg Brandl
a5a0704942 Remove the lib-old modules from Doc/lib/libundoc.tex.
Now only Modules/timingmodule.c is left. Should that be removed, too?
(dito for clmodule and svmodule)
2006-03-17 18:47:14 +00:00
Georg Brandl
db815abc70 More \exception fixes. 2006-03-17 16:26:31 +00:00
Andrew M. Kuchling
da37604ee3 Add two items 2006-03-17 15:56:41 +00:00
Andrew M. Kuchling
a0622709fd Markup fix 2006-03-17 15:56:13 +00:00
Andrew M. Kuchling
f4b066084a Remove mention of lib-old, and list more deleted modules 2006-03-17 15:39:52 +00:00
Andrew M. Kuchling
01e3d262ce Add some items 2006-03-17 15:38:39 +00:00
Neal Norwitz
6bed1c1fab Add some versionadded info to new incremental codec docs and fix doco nits. 2006-03-16 07:49:19 +00:00
Neal Norwitz
10be10cbe7 Remove regsub, reconvert, regex, regex_syntax and everything under lib-old. 2006-03-16 06:50:13 +00:00
Andrew M. Kuchling
21d3a7cd2e Add section 2006-03-15 11:53:09 +00:00
Walter Dörwald
abb02e5994 Patch #1436130: codecs.lookup() now returns a CodecInfo object (a subclass
of tuple) that provides incremental decoders and encoders (a way to use
stateful codecs without the stream API). Functions
codecs.getincrementaldecoder() and codecs.getincrementalencoder() have
been added.
2006-03-15 11:35:15 +00:00
Andrew M. Kuchling
f688cc574c Unicode database updated; use SVN instead of CVS 2006-03-10 18:50:08 +00:00
Martin v. Löwis
5bd7c02298 Avoid forward-declaring the methods array.
Rename unicodedata.db* to unicodedata.ucd*
2006-03-10 11:20:04 +00:00
Martin v. Löwis
480f1bb67b Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
Andrew M. Kuchling
aeadf95449 Write a section 2006-03-09 19:06:05 +00:00
Andrew M. Kuchling
d0fcc0256b Markup fix 2006-03-09 13:57:28 +00:00
Andrew M. Kuchling
e362d93367 Write a section 2006-03-09 13:56:25 +00:00
Georg Brandl
8f4b4db676 typo 2006-03-09 10:16:42 +00:00
Georg Brandl
ddb73febef Bug #1445901: os.path.realpath() is available on Win/Mac too. 2006-03-08 20:59:09 +00:00
Georg Brandl
533ff6fc06 Patch #1434038: property() now uses the getter's docstring if there is
no "doc" argument given. This makes it possible to legitimately use
property() as a decorator to produce a read-only property.
2006-03-08 18:09:27 +00:00
Neal Norwitz
025f14b72d Move version added tag from PyObject_Length/Size to PyNumber_Index. 2006-03-08 05:29:18 +00:00
Andrew M. Kuchling
8f4d255b67 Add section 2006-03-08 01:50:20 +00:00
Andrew M. Kuchling
437567ca7b Some edits; add empty sections 2006-03-07 20:48:55 +00:00
Guido van Rossum
38fff8c4e4 Checking in the code for PEP 357.
This was mostly written by Travis Oliphant.
I've inspected it all; Neal Norwitz and MvL have also looked at it
(in an earlier incarnation).
2006-03-07 18:50:55 +00:00
Georg Brandl
58780d2642 Bug #1440831: fix csv UnicodeWriter example 2006-03-07 13:47:22 +00:00
Barry Warsaw
d3c38ff7f8 SF patch #1443865; gc.get_count() added and optional argument 'generation'
added to gc.collect().  Updated docs, unit test, and NEWS entry.

(Also, fixed a typo in NEWS.)
2006-03-07 09:46:03 +00:00
Neal Norwitz
0917988f7c Fix SF #1442937, Bad Coroutine link 2006-03-04 23:31:45 +00:00
Neal Norwitz
7356dcb705 SF #1442767, docs for os.statvfs miss f_bsize parameter. Will backport. 2006-03-03 23:11:42 +00:00
Brett Cannon
3096c53eaa Fix latex typos as spotted by George Yoshida. 2006-03-02 03:52:06 +00:00
Martin v. Löwis
49c5da1d88 Patch #1440601: Add col_offset attribute to AST nodes. 2006-03-01 22:49:05 +00:00
Brett Cannon
54ac29497e Document PEP 352 changes. Also added GeneratorExit. 2006-03-01 22:10:49 +00:00
Martin v. Löwis
c9066cafba Fix warning that texcheck complained about. 2006-03-01 16:37:55 +00:00
Fredrik Lundh
1f2dac5766 markup glitch (spotted by George Yoshida) 2006-03-01 12:43:53 +00:00
Martin v. Löwis
3b19754079 Document new Py_ssize_t API. 2006-03-01 05:47:11 +00:00
Martin v. Löwis
497114e027 Add tool to check documentation against declaration. 2006-03-01 05:18:07 +00:00
Martin v. Löwis
29fafd8708 Make documentation match the implementation. 2006-03-01 05:16:03 +00:00
Neal Norwitz
77e42fff31 George Yoshida points out that the special characters
from Tools/compiler/ast.txt are not used anywhere else in asttable.txt.
So remove "\&".
2006-02-28 17:46:48 +00:00
Fredrik Lundh
d3188639c3 markup glitch (spotted by George Yoshida) 2006-02-28 12:11:57 +00:00
Anthony Baxter
d615110949 XXX something for amk's attention 2006-02-28 07:21:42 +00:00
Martin v. Löwis
40d8459dbf Add generation of the version. 2006-02-28 00:30:54 +00:00
Guido van Rossum
c2e20744b2 PEP 343 -- the with-statement.
This was started by Mike Bland and completed by Guido
(with help from Neal).

This still needs a __future__ statement added;
Thomas is working on Michael's patch for that aspect.

There's a small amount of code cleanup and refactoring
in ast.c, compile.c and ceval.c (I fixed the lltrace
behavior when EXT_POP is used -- however I had to make
lltrace a static global).
2006-02-27 22:32:47 +00:00
Neal Norwitz
f9f61b4aa2 Note version added for conditional expressions 2006-02-27 16:31:12 +00:00
Martin v. Löwis
577b5b960d Create _ast module.
Cleanup Python-ast.c generation.
2006-02-27 15:23:19 +00:00
Thomas Wouters
dca3b9c797 PEP 308 implementation, including minor refdocs and some testcases. It
breaks the parser module, because it adds the if/else construct as well as
two new grammar rules for backward compatibility. If no one else fixes
parsermodule, I guess I'll go ahead and fix it later this week.

The TeX code was checked with texcheck.py, but not rendered. There is
actually a slight incompatibility:

>>> (x for x in lambda:0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: iteration over non-sequence

changes into

>>> (x for x in lambda: 0)
  File "<stdin>", line 1
    (x for x in lambda: 0)
                     ^
SyntaxError: invalid syntax

Since there's no way the former version can be useful, it's probably a
bugfix ;)
2006-02-27 00:24:13 +00:00
Guido van Rossum
1968ad32cd - Patch 1433928:
- The copy module now "copies" function objects (as atomic objects).
  - dict.__getitem__ now looks for a __missing__ hook before raising
    KeyError.
  - Added a new type, defaultdict, to the collections module.
    This uses the new __missing__ hook behavior added to dict (see above).
2006-02-25 22:38:04 +00:00