Martin v. Löwis
415ed937c2
Skip over doc strings.
2006-02-27 19:56:30 +00:00
Martin v. Löwis
16c7f71380
Handle testlist_safe and or_test like testlist.
2006-02-27 16:11:03 +00:00
Martin v. Löwis
49a1302952
Alias non-terminals introduced for backwards compatibility.
2006-02-27 16:03:39 +00:00
Anthony Baxter
322a23f21b
regenerated. please read PEP 306 when changing Python's grammar!
2006-02-27 06:49:54 +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
Martin v. Löwis
bd260da900
Generate code to recursively copy an AST into
...
a tree of Python objects. Expose this through compile().
2006-02-26 19:42:26 +00:00
Tim Peters
d6e7e73ff8
Whitespace normalization.
2006-02-26 04:21:50 +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
Jack Jansen
de540e2288
Got rid of byte-order dependencies.
2006-02-23 14:54:30 +00:00
Georg Brandl
418a1ef089
RFE #1436243 : make integers in [0..256] preallocated.
2006-02-22 11:30:06 +00:00
Georg Brandl
6a29c323ba
Add test for classmethod ./. keyword args.
2006-02-21 22:17:46 +00:00
Tim Peters
42a3deb7b5
Suppress another deprecation warning in the tests.
2006-02-21 03:28:49 +00:00
Tim Peters
32cbc96150
Whitespace normalization.
2006-02-20 21:42:18 +00:00
Georg Brandl
a223d2cb29
Bug #1210377 : close bsddb cursor correctly after NotFoundError.
2006-02-20 20:29:52 +00:00
Martin v. Löwis
de2cde614c
Detect Win64 builds.
2006-02-20 12:26:58 +00:00
Martin v. Löwis
e46af8c367
Let the SDK setup override distutils logic.
2006-02-20 12:15:15 +00:00
Georg Brandl
5771310a09
Bug #1101233 : fix test_fcntl on netbsd2 platform.
2006-02-20 10:32:02 +00:00
Georg Brandl
8f7c54eaa5
Bug #1413790 : zipfile now sanitizes absolute archive names that are
...
not allowed by the specs.
2006-02-20 08:40:38 +00:00
Tim Peters
200a58058a
Whitespace normalization.
2006-02-19 21:26:07 +00:00
Tim Peters
4d7cad115d
Repair new test failures on Windows due to
...
implicit assumptions that there's no difference
between text and binary modes.
2006-02-19 21:22:10 +00:00
Marc-André Lemburg
fe4b34cc4b
Fix the encodings package codec search function to only search
...
inside its own package. Fixes problem reported in patch #1433198 .
Add codec search function for codec test codec.
2006-02-19 15:22:22 +00:00
Georg Brandl
c98eeede17
Patch #1215184 : FileInput now can be given an opening hook which can
...
be used to control how files are opened.
2006-02-19 14:57:47 +00:00
Georg Brandl
c029f873cb
Patch #1212287 : fileinput.input() now has a mode parameter for
...
specifying the file mode input files should be opened with.
2006-02-19 14:12:34 +00:00
Georg Brandl
67e9fb9d7a
Patch #1215184 : fileinput now has a fileno() function for getting the
...
current file number.
2006-02-19 13:56:17 +00:00
Georg Brandl
602b9ba6b3
Patch #1349274 : gettext.install() now optionally installs additional
...
translation functions other than _() in the builtin namespace.
2006-02-19 13:26:36 +00:00
Georg Brandl
e466217ab9
Patch #1337756 : fileinput now accepts Unicode filenames.
2006-02-19 09:51:27 +00:00
Tim Peters
2a8ec996ce
test_gopher(): Squash another deprecation
...
warning about gopherlib.
2006-02-19 05:09:00 +00:00
Georg Brandl
19e2203fff
Add a unit test for bug fix #1396678 .
2006-02-19 01:21:11 +00:00
Georg Brandl
26caeba35a
Bug #1396678 : a closed bsddb.DB raises AttributeError on repr().
...
It now returns "{}". Is that the correct solution?
2006-02-19 00:53:54 +00:00
Neal Norwitz
bb45973455
This fixes test _locale failing on macteagle (Mac OS 10.4 AFAIK).
...
Google for: eu_ES decimal point
shows that BSD locales had the eu_ES decimal point as
a single quote (') instead of a comma (,).
This was seems to have been fixed 15 months ago, but it's not on our
Mac and presumably others. So skip this broken locale.
2006-02-19 00:13:15 +00:00
Georg Brandl
1f63670a2a
Patch #1426648 : urllib proxy_bypass broken
2006-02-18 23:10:23 +00:00
Neal Norwitz
d5b6715083
This should get test_timeout to pass when running on any python.org host. Will backport
2006-02-18 21:20:31 +00:00
Georg Brandl
7b4e7c24df
Patch #1373643 : The chunk module can now read chunks larger than
...
two gigabytes.
2006-02-18 21:10:56 +00:00
Tim Peters
e2c9a6cea7
Suppress new deprecation warnings when running the
...
test suite.
For urllib2, move the import of gopherlib into the
only function that uses it: users (including the
test suite) certainly shouldn't see a deprecation
warning just because they import urllib2! If they
actually use gopher_open(), fine, _then_ they should
see a deprecation warning.
2006-02-18 04:14:16 +00:00
Tim Peters
24f7cad6ca
Changed the new deprecation warning to show the
...
code _importing_ gopherlib instead of gopherlib's
call to warnings.warn.
2006-02-18 04:00:23 +00:00
Tim Peters
b6be87f9b0
Whitespace normalization.
2006-02-18 03:10:56 +00:00
Georg Brandl
4cbd1e3fc1
Move test case for HTTP response dict to httplib.
2006-02-17 22:01:08 +00:00
Georg Brandl
6aab16e9f6
Move "httpresponses" dict from urllib2 to httplib where it belongs.
2006-02-17 19:17:25 +00:00
Georg Brandl
5d076961e2
Patch #1417555 : SimpleHTTPServer now returns Last-Modified headers.
2006-02-17 13:34:16 +00:00
Georg Brandl
b86a54f395
Add deprecation warning to modules deprecated since 2000.
2006-02-17 11:29:04 +00:00
Georg Brandl
bd3bc4dc4c
Bug #1430298 : It is now possible to send a mail with an empty
...
return address using smtplib.
2006-02-17 09:52:53 +00:00
Georg Brandl
501dd0dd9d
The names of lambda functions are now properly displayed in pydoc.
2006-02-17 09:45:40 +00:00
Martin v. Löwis
18e165558b
Merge ssize_t branch.
2006-02-15 17:27:45 +00:00
Tim Peters
cffcfed126
New test code failed to close the file. This caused
...
test_file to fail on Windows in reality (can't delete
a still-open file), but a new bare "except:" hid that
test_file failed on Windows, and leaving behind the
still-open TESTFN caused a cascade of bogus failures
in later tests.
So, close the file, and stop hiding failure to unlink.
2006-02-14 17:41:18 +00:00
Thomas Wouters
c45251a485
SF patch #1397960 : When mixing file-iteration and
...
readline/readlines/read/readinto, loudly break by raising ValueError, rather
than silently deliver data out of order or hitting EOF prematurely.
Probably not a bugfix candidate, even though it affects no 'working' code.
2006-02-12 11:53:32 +00:00
Armin Rigo
f5b3e36493
Renamed _length_cue() to __length_hint__(). See:
...
http://mail.python.org/pipermail/python-dev/2006-February/060524.html
2006-02-11 21:32:43 +00:00
Vinay Sajip
ed1992f2aa
Added function name to LogRecord.
2006-02-09 08:48:36 +00:00
Vinay Sajip
260ce43252
Propagate exceptions from shutdown() if raiseExceptions is not set.
...
Added 'extra' keyword argument handling to logging calls, as discussed on python-dev.
2006-02-09 08:34:14 +00:00
Vinay Sajip
1eb77a50c8
Added lock acquisition/release around shared data structure manipulation
2006-02-09 08:31:00 +00:00
Barry Warsaw
e58df82919
Port relevant patches for SF 1409455 to the trunk for email 3.0/Python 2.5.
...
Will port to Python 2.4.
2006-02-08 14:34:21 +00:00