]> granicus.if.org Git - python/log
python
19 years agoFix old not-reading-pep-308-right artifact.
Thomas Wouters [Mon, 27 Feb 2006 16:46:22 +0000 (16:46 +0000)]
Fix old not-reading-pep-308-right artifact.

19 years agoRevert backwards-incompatible const changes.
Martin v. Löwis [Mon, 27 Feb 2006 16:46:16 +0000 (16:46 +0000)]
Revert backwards-incompatible const changes.

19 years agoNote version added for conditional expressions
Neal Norwitz [Mon, 27 Feb 2006 16:31:12 +0000 (16:31 +0000)]
Note version added for conditional expressions

19 years agoUpdate for PEP 308 patch.
Thomas Wouters [Mon, 27 Feb 2006 16:25:11 +0000 (16:25 +0000)]
Update for PEP 308 patch.

19 years agoHandle testlist_safe and or_test like testlist.
Martin v. Löwis [Mon, 27 Feb 2006 16:11:03 +0000 (16:11 +0000)]
Handle testlist_safe and or_test like testlist.

19 years agoAlias non-terminals introduced for backwards compatibility.
Martin v. Löwis [Mon, 27 Feb 2006 16:03:39 +0000 (16:03 +0000)]
Alias non-terminals introduced for backwards compatibility.

19 years agoFix assertion errors in debug build, brought on by PEP 308 patch.
Thomas Wouters [Mon, 27 Feb 2006 15:43:57 +0000 (15:43 +0000)]
Fix assertion errors in debug build, brought on by PEP 308 patch.

19 years agoCreate _ast module.
Martin v. Löwis [Mon, 27 Feb 2006 15:23:19 +0000 (15:23 +0000)]
Create _ast module.
Cleanup Python-ast.c generation.

19 years agoCheck for a not-found rlconf.h by testing for None.
Martin v. Löwis [Mon, 27 Feb 2006 15:16:21 +0000 (15:16 +0000)]
Check for a not-found rlconf.h by testing for None.

19 years agoregenerated. please read PEP 306 when changing Python's grammar!
Anthony Baxter [Mon, 27 Feb 2006 06:49:54 +0000 (06:49 +0000)]
regenerated. please read PEP 306 when changing Python's grammar!

19 years agoPEP 308 implementation, including minor refdocs and some testcases. It
Thomas Wouters [Mon, 27 Feb 2006 00:24:13 +0000 (00:24 +0000)]
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 ;)

19 years agoAvoid reinitializing the types twice.
Martin v. Löwis [Mon, 27 Feb 2006 00:09:50 +0000 (00:09 +0000)]
Avoid reinitializing the types twice.

19 years agoStop generating empty arrays.
Martin v. Löwis [Sun, 26 Feb 2006 23:40:20 +0000 (23:40 +0000)]
Stop generating empty arrays.

19 years agoOops, I forgot to check this in with the change to Grammar/Grammar.
Neal Norwitz [Sun, 26 Feb 2006 22:29:38 +0000 (22:29 +0000)]
Oops, I forgot to check this in with the change to Grammar/Grammar.

Implement change suggested by Jiwon Seo on python-dev.
['(' gen_for ')'] is redundant with test, so remove it.

19 years agoCheck whether there are flags.
Martin v. Löwis [Sun, 26 Feb 2006 22:12:35 +0000 (22:12 +0000)]
Check whether there are flags.

19 years agoFix iterating over cmpop_ty lists.
Martin v. Löwis [Sun, 26 Feb 2006 20:51:25 +0000 (20:51 +0000)]
Fix iterating over cmpop_ty lists.

19 years agoGenerate code to recursively copy an AST into
Martin v. Löwis [Sun, 26 Feb 2006 19:42:26 +0000 (19:42 +0000)]
Generate code to recursively copy an AST into
a tree of Python objects. Expose this through compile().

19 years agoRemove line meant to test trailing whitespace since that kind of whitespace is
Brett Cannon [Sun, 26 Feb 2006 19:27:29 +0000 (19:27 +0000)]
Remove line meant to test trailing whitespace since that kind of whitespace is
automatically removed.

Also annotate what each line is meant to test.

19 years agoWhitespace normalization.
Tim Peters [Sun, 26 Feb 2006 04:21:50 +0000 (04:21 +0000)]
Whitespace normalization.

19 years agoOops. Fix syntax for C89 compilers.
Guido van Rossum [Sat, 25 Feb 2006 23:32:30 +0000 (23:32 +0000)]
Oops.  Fix syntax for C89 compilers.

19 years ago- Patch 1433928:
Guido van Rossum [Sat, 25 Feb 2006 22:38:04 +0000 (22:38 +0000)]
- 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).

19 years agoPer discussion on python-dev, remove CO_GENERATOR_ALLOWED. Leave comment about not...
Neal Norwitz [Sat, 25 Feb 2006 15:43:10 +0000 (15:43 +0000)]
Per discussion on python-dev, remove CO_GENERATOR_ALLOWED.  Leave comment about not removing yet.

19 years agoMove the vimrc file to the newly created Vim/ directory.
Brett Cannon [Sat, 25 Feb 2006 14:53:26 +0000 (14:53 +0000)]
Move the vimrc file to the newly created Vim/ directory.

19 years agoAdd a script that auto-generates a Vim syntax highlighting file for Python.
Brett Cannon [Sat, 25 Feb 2006 14:52:53 +0000 (14:52 +0000)]
Add a script that auto-generates a Vim syntax highlighting file for Python.
Just symlink or copy python.vim to ~/.vim/syntax/ .  Also included is a sample
Python file with basic expressions to make sure they are highlighted.

Also add a Vim directory in Misc to hold all Vim configuration files.

19 years agoImplement change suggested by Jiwon Seo on python-dev.
Neal Norwitz [Fri, 24 Feb 2006 23:11:14 +0000 (23:11 +0000)]
Implement change suggested by Jiwon Seo on python-dev.
['(' gen_for ')'] is redundant with test, so remove it.

19 years agoFix a couple of warnings on Mac OS X.
Neal Norwitz [Fri, 24 Feb 2006 15:39:29 +0000 (15:39 +0000)]
Fix a couple of warnings on Mac OS X.

19 years agoOn OSX, use --arch_only `arch` in stead of --arch_only ppc, so things will
Jack Jansen [Thu, 23 Feb 2006 15:12:19 +0000 (15:12 +0000)]
On OSX, use --arch_only `arch` in stead of --arch_only ppc, so things will
build for the current CPU.

19 years agoIf the readline library is found try and determine whether it's the broken
Jack Jansen [Thu, 23 Feb 2006 15:02:23 +0000 (15:02 +0000)]
If the readline library is found try and determine whether it's the broken
MacOSX 10.4 readline, and don't build the readline module in that case.

19 years agoGot rid of byte-order dependencies.
Jack Jansen [Thu, 23 Feb 2006 14:54:30 +0000 (14:54 +0000)]
Got rid of byte-order dependencies.

19 years agoFix casing of function names.
Georg Brandl [Wed, 22 Feb 2006 11:46:55 +0000 (11:46 +0000)]
Fix casing of function names.

19 years agoRFE #1436243: make integers in [0..256] preallocated.
Georg Brandl [Wed, 22 Feb 2006 11:30:06 +0000 (11:30 +0000)]
RFE #1436243: make integers in [0..256] preallocated.

19 years agoAllow buildbot to pass extra test flags to regrtest (specifically -r) via the environ...
Neal Norwitz [Wed, 22 Feb 2006 07:24:06 +0000 (07:24 +0000)]
Allow buildbot to pass extra test flags to regrtest (specifically -r) via the environment.

19 years agoGeorge Yoshida's fix.
Neal Norwitz [Wed, 22 Feb 2006 05:51:48 +0000 (05:51 +0000)]
George Yoshida's fix.

19 years agoAdd test for classmethod ./. keyword args.
Georg Brandl [Tue, 21 Feb 2006 22:17:46 +0000 (22:17 +0000)]
Add test for classmethod ./. keyword args.

19 years agoMake staticmethod and classmethod complain about keyword args.
Georg Brandl [Tue, 21 Feb 2006 22:13:44 +0000 (22:13 +0000)]
Make staticmethod and classmethod complain about keyword args.

19 years agofix typo
Georg Brandl [Tue, 21 Feb 2006 20:41:29 +0000 (20:41 +0000)]
fix typo

19 years agoDocument "multifile" as deprecated.
Georg Brandl [Tue, 21 Feb 2006 19:23:49 +0000 (19:23 +0000)]
Document "multifile" as deprecated.

19 years agoAt Brian Wichmann's request, added words warning against
Tim Peters [Tue, 21 Feb 2006 19:19:00 +0000 (19:19 +0000)]
At Brian Wichmann's request, added words warning against
using the old Wichmann-Hill generator,  Also pointed to
a newer version of his generator, and weakened the claim
about what jumpahead() does now.

Note sure I got the LaTeX entirely correct for \seeurl.
If it's broken, please fix it ;-)

Bugfix candidate!  (These changes make just as much
sense for 2.4.)

19 years agoFix table header.
Walter Dörwald [Tue, 21 Feb 2006 18:51:32 +0000 (18:51 +0000)]
Fix table header.

19 years agoTrimmed trailing whitespace.
Tim Peters [Tue, 21 Feb 2006 18:48:34 +0000 (18:48 +0000)]
Trimmed trailing whitespace.

19 years agoFix typo in functional module
Georg Brandl [Tue, 21 Feb 2006 17:49:57 +0000 (17:49 +0000)]
Fix typo in functional module

19 years agoSuppress another deprecation warning in the tests.
Tim Peters [Tue, 21 Feb 2006 03:28:49 +0000 (03:28 +0000)]
Suppress another deprecation warning in the tests.

19 years agoNETLINK_TCPDIAG and NETLINK_NFLOG aren't defined on older Linux
Guido van Rossum [Tue, 21 Feb 2006 01:07:27 +0000 (01:07 +0000)]
NETLINK_TCPDIAG and NETLINK_NFLOG aren't defined on older Linux
systems; define these conditionally.

19 years agoBug #1086854: Rename PyHeapType members adding ht_ prefix.
Georg Brandl [Mon, 20 Feb 2006 22:27:28 +0000 (22:27 +0000)]
Bug #1086854: Rename PyHeapType members adding ht_ prefix.

19 years agoWhitespace normalization.
Tim Peters [Mon, 20 Feb 2006 21:42:18 +0000 (21:42 +0000)]
Whitespace normalization.

19 years agoBug #947571: By default, urllib.urlopen() does not raise IOErrors
Georg Brandl [Mon, 20 Feb 2006 21:26:18 +0000 (21:26 +0000)]
Bug #947571: By default, urllib.urlopen() does not raise IOErrors
on server error codes. Make this clear.

19 years agoBug #1210377: close bsddb cursor correctly after NotFoundError.
Georg Brandl [Mon, 20 Feb 2006 20:29:52 +0000 (20:29 +0000)]
Bug #1210377: close bsddb cursor correctly after NotFoundError.

19 years agoBased on discussion with Martin and Thomas on python-checkins
Neal Norwitz [Mon, 20 Feb 2006 18:57:39 +0000 (18:57 +0000)]
Based on discussion with Martin and Thomas on python-checkins
add a Py_SAFE_DOWNCAST() to make the code correct.

19 years agoPatch #931938: prevent setting sys.prefix to ""
Georg Brandl [Mon, 20 Feb 2006 17:37:36 +0000 (17:37 +0000)]
Patch #931938: prevent setting sys.prefix to ""

19 years agoBug #1102649: add a note to pickle docs that pickle files should be
Georg Brandl [Mon, 20 Feb 2006 13:12:02 +0000 (13:12 +0000)]
Bug #1102649: add a note to pickle docs that pickle files should be
opened in binary mode.

19 years agoBug #1013800: document PyFunction_* functions
Georg Brandl [Mon, 20 Feb 2006 12:57:53 +0000 (12:57 +0000)]
Bug #1013800: document PyFunction_* functions

19 years agoDetect Win64 builds.
Martin v. Löwis [Mon, 20 Feb 2006 12:26:58 +0000 (12:26 +0000)]
Detect Win64 builds.

19 years agoBug #1323369: document possible values of sys.getwindowsversion()
Georg Brandl [Mon, 20 Feb 2006 12:15:23 +0000 (12:15 +0000)]
Bug #1323369: document possible values of sys.getwindowsversion()
platform field

19 years agoLet the SDK setup override distutils logic.
Martin v. Löwis [Mon, 20 Feb 2006 12:15:15 +0000 (12:15 +0000)]
Let the SDK setup override distutils logic.

19 years agoBug #1101233: fix test_fcntl on netbsd2 platform.
Georg Brandl [Mon, 20 Feb 2006 10:32:02 +0000 (10:32 +0000)]
Bug #1101233: fix test_fcntl on netbsd2 platform.

19 years agobug #872175: add --with-fpectl to README
Georg Brandl [Mon, 20 Feb 2006 10:24:06 +0000 (10:24 +0000)]
bug #872175: add --with-fpectl to README

19 years agoBug #854823: socketmodule now builds on Sun platforms even when
Georg Brandl [Mon, 20 Feb 2006 09:42:33 +0000 (09:42 +0000)]
Bug #854823: socketmodule now builds on Sun platforms even when
INET_ADDRSTRLEN is not defined.

19 years agoBug #1413790: zipfile now sanitizes absolute archive names that are
Georg Brandl [Mon, 20 Feb 2006 08:40:38 +0000 (08:40 +0000)]
Bug #1413790: zipfile now sanitizes absolute archive names that are
not allowed by the specs.

19 years agoWhitespace normalization.
Tim Peters [Sun, 19 Feb 2006 21:26:07 +0000 (21:26 +0000)]
Whitespace normalization.

19 years agoRepair new test failures on Windows due to
Tim Peters [Sun, 19 Feb 2006 21:22:10 +0000 (21:22 +0000)]
Repair new test failures on Windows due to
implicit assumptions that there's no difference
between text and binary modes.

19 years agoFix typpo.
Thomas Wouters [Sun, 19 Feb 2006 20:08:18 +0000 (20:08 +0000)]
Fix typpo.

19 years agoFix compiler warning on amd64. We can't use zd here since this is
Neal Norwitz [Sun, 19 Feb 2006 19:34:15 +0000 (19:34 +0000)]
Fix compiler warning on amd64.  We can't use zd here since this is
ultimately going to snprintf() not the python string formatter.  Right?

19 years agoFix compiler warning (int vs Py_ssize_t mismatch
Neal Norwitz [Sun, 19 Feb 2006 19:31:50 +0000 (19:31 +0000)]
Fix compiler warning (int vs Py_ssize_t mismatch

19 years agoMinor tweaks
Neal Norwitz [Sun, 19 Feb 2006 19:18:18 +0000 (19:18 +0000)]
Minor tweaks

19 years agoGenerators have been permanent for a while. This comment is no longer applicable.
Neal Norwitz [Sun, 19 Feb 2006 18:49:30 +0000 (18:49 +0000)]
Generators have been permanent for a while.  This comment is no longer applicable.

19 years agoIgnore the tests which report leaks sporadically.
Neal Norwitz [Sun, 19 Feb 2006 18:48:19 +0000 (18:48 +0000)]
Ignore the tests which report leaks sporadically.
This should cause few enough spurious warnings to send to python-checkins now.

If a test leaks that is not in the ignore list (LEAKY_TESTS), all tests
which leak will be reported.  This includes those in the ignore list.
Hopefully that will prompt someone to fix the flakiness.

19 years agoFix a build problem introduced by r42230.
Hye-Shik Chang [Sun, 19 Feb 2006 16:22:22 +0000 (16:22 +0000)]
Fix a build problem introduced by r42230.

19 years agoRemove two instances of trailing commas. Resolves patch #1209781.
Georg Brandl [Sun, 19 Feb 2006 15:28:47 +0000 (15:28 +0000)]
Remove two instances of trailing commas. Resolves patch #1209781.

19 years agoFix the encodings package codec search function to only search
Marc-André Lemburg [Sun, 19 Feb 2006 15:22:22 +0000 (15:22 +0000)]
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.

19 years agoClarify how hook_compressed determines how to open a file.
Georg Brandl [Sun, 19 Feb 2006 15:20:29 +0000 (15:20 +0000)]
Clarify how hook_compressed determines how to open a file.

19 years agoPatch #1215184: FileInput now can be given an opening hook which can
Georg Brandl [Sun, 19 Feb 2006 14:57:47 +0000 (14:57 +0000)]
Patch #1215184: FileInput now can be given an opening hook which can
be used to control how files are opened.

19 years agoPatch #1212287: fileinput.input() now has a mode parameter for
Georg Brandl [Sun, 19 Feb 2006 14:12:34 +0000 (14:12 +0000)]
Patch #1212287: fileinput.input() now has a mode parameter for
specifying the file mode input files should be opened with.

19 years agoPatch #1215184: fileinput now has a fileno() function for getting the
Georg Brandl [Sun, 19 Feb 2006 13:56:17 +0000 (13:56 +0000)]
Patch #1215184: fileinput now has a fileno() function for getting the
current file number.

19 years agoPatch #1349274: gettext.install() now optionally installs additional
Georg Brandl [Sun, 19 Feb 2006 13:26:36 +0000 (13:26 +0000)]
Patch #1349274: gettext.install() now optionally installs additional
translation functions other than _() in the builtin namespace.

19 years agoPatch #1337756: fileinput now accepts Unicode filenames.
Georg Brandl [Sun, 19 Feb 2006 09:51:27 +0000 (09:51 +0000)]
Patch #1337756: fileinput now accepts Unicode filenames.

19 years agoPatch #1352711: make zipimport raise a complete IOError
Georg Brandl [Sun, 19 Feb 2006 09:38:58 +0000 (09:38 +0000)]
Patch #1352711: make zipimport raise a complete IOError

19 years agotest_gopher(): Squash another deprecation
Tim Peters [Sun, 19 Feb 2006 05:09:00 +0000 (05:09 +0000)]
test_gopher():  Squash another deprecation
warning about gopherlib.

19 years agoPyEnumKey(): Stop including the trailing NUL byte
Tim Peters [Sun, 19 Feb 2006 04:05:39 +0000 (04:05 +0000)]
PyEnumKey():  Stop including the trailing NUL byte
in the returned string (logic error introduced by
recent patch).

19 years agoPyEnumKey(): Remove unused local.
Tim Peters [Sun, 19 Feb 2006 03:34:15 +0000 (03:34 +0000)]
PyEnumKey():  Remove unused local.

19 years agoAdd a unit test for bug fix #1396678.
Georg Brandl [Sun, 19 Feb 2006 01:21:11 +0000 (01:21 +0000)]
Add a unit test for bug fix #1396678.

19 years agoBug #1396678: a closed bsddb.DB raises AttributeError on repr().
Georg Brandl [Sun, 19 Feb 2006 00:53:54 +0000 (00:53 +0000)]
Bug #1396678: a closed bsddb.DB raises AttributeError on repr().

It now returns "{}". Is that the correct solution?

19 years agoThis fixes test _locale failing on macteagle (Mac OS 10.4 AFAIK).
Neal Norwitz [Sun, 19 Feb 2006 00:13:15 +0000 (00:13 +0000)]
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.

19 years agoBug #801349: document that start/stop/step slice arguments can be None
Georg Brandl [Sun, 19 Feb 2006 00:12:42 +0000 (00:12 +0000)]
Bug #801349: document that start/stop/step slice arguments can be None

19 years agoAdd sizeof() instead of hardcoding variable length
Georg Brandl [Sat, 18 Feb 2006 23:44:24 +0000 (23:44 +0000)]
Add sizeof() instead of hardcoding variable length

19 years agoPatch #977553: speed up RegEnumKey call
Georg Brandl [Sat, 18 Feb 2006 23:35:11 +0000 (23:35 +0000)]
Patch #977553: speed up RegEnumKey call

19 years agoRemove unused variable
Neal Norwitz [Sat, 18 Feb 2006 23:26:27 +0000 (23:26 +0000)]
Remove unused variable

19 years agoPatch #1426648: urllib proxy_bypass broken
Georg Brandl [Sat, 18 Feb 2006 23:10:23 +0000 (23:10 +0000)]
Patch #1426648: urllib proxy_bypass broken

19 years agoPatch #1415507: clarify docs on reference stealing
Georg Brandl [Sat, 18 Feb 2006 22:55:59 +0000 (22:55 +0000)]
Patch #1415507: clarify docs on reference stealing

19 years agoPatch #1393157: os.startfile() now has an optional argument to specify
Georg Brandl [Sat, 18 Feb 2006 22:29:33 +0000 (22:29 +0000)]
Patch #1393157: os.startfile() now has an optional argument to specify
a "command verb" to invoke on the file.

19 years agoBug #1366000: cleanup BZ2File.seek() logic. Fixes the case of whence=2, offset>=0.
Georg Brandl [Sat, 18 Feb 2006 21:57:25 +0000 (21:57 +0000)]
Bug #1366000: cleanup BZ2File.seek() logic. Fixes the case of whence=2, offset>=0.

19 years agoThis should get test_timeout to pass when running on any python.org host. Will backport
Neal Norwitz [Sat, 18 Feb 2006 21:20:31 +0000 (21:20 +0000)]
This should get test_timeout to pass when running on any python.org host.  Will backport

19 years agoPatch #1373643: The chunk module can now read chunks larger than
Georg Brandl [Sat, 18 Feb 2006 21:10:56 +0000 (21:10 +0000)]
Patch #1373643: The chunk module can now read chunks larger than
two gigabytes.

19 years agoFix intptr_t fallback for Py_ssize_t.
Martin v. Löwis [Sat, 18 Feb 2006 18:26:55 +0000 (18:26 +0000)]
Fix intptr_t fallback for Py_ssize_t.

19 years agoFix typo.
Martin v. Löwis [Sat, 18 Feb 2006 12:49:49 +0000 (12:49 +0000)]
Fix typo.

19 years agoFix size computation on Win64.
Martin v. Löwis [Sat, 18 Feb 2006 12:38:35 +0000 (12:38 +0000)]
Fix size computation on Win64.

19 years agoSuppress new deprecation warnings when running the
Tim Peters [Sat, 18 Feb 2006 04:14:16 +0000 (04:14 +0000)]
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.

19 years agoChanged the new deprecation warning to show the
Tim Peters [Sat, 18 Feb 2006 04:00:23 +0000 (04:00 +0000)]
Changed the new deprecation warning to show the
code _importing_ gopherlib instead of gopherlib's
call to warnings.warn.

19 years agoWhitespace normalization.
Tim Peters [Sat, 18 Feb 2006 03:10:56 +0000 (03:10 +0000)]
Whitespace normalization.

19 years agoMove test case for HTTP response dict to httplib.
Georg Brandl [Fri, 17 Feb 2006 22:01:08 +0000 (22:01 +0000)]
Move test case for HTTP response dict to httplib.

19 years agoMove "httpresponses" dict from urllib2 to httplib where it belongs.
Georg Brandl [Fri, 17 Feb 2006 19:17:25 +0000 (19:17 +0000)]
Move "httpresponses" dict from urllib2 to httplib where it belongs.