]>
granicus.if.org Git - python/log
Martin v. Löwis [Mon, 27 Feb 2006 16:46:16 +0000 (16:46 +0000)]
Revert backwards-incompatible const changes.
Neal Norwitz [Mon, 27 Feb 2006 16:31:12 +0000 (16:31 +0000)]
Note version added for conditional expressions
Thomas Wouters [Mon, 27 Feb 2006 16:25:11 +0000 (16:25 +0000)]
Update for PEP 308 patch.
Martin v. Löwis [Mon, 27 Feb 2006 16:11:03 +0000 (16:11 +0000)]
Handle testlist_safe and or_test like testlist.
Martin v. Löwis [Mon, 27 Feb 2006 16:03:39 +0000 (16:03 +0000)]
Alias non-terminals introduced for backwards compatibility.
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.
Martin v. Löwis [Mon, 27 Feb 2006 15:23:19 +0000 (15:23 +0000)]
Create _ast module.
Cleanup Python-ast.c generation.
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.
Anthony Baxter [Mon, 27 Feb 2006 06:49:54 +0000 (06:49 +0000)]
regenerated. please read PEP 306 when changing Python's grammar!
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 ;)
Martin v. Löwis [Mon, 27 Feb 2006 00:09:50 +0000 (00:09 +0000)]
Avoid reinitializing the types twice.
Martin v. Löwis [Sun, 26 Feb 2006 23:40:20 +0000 (23:40 +0000)]
Stop generating empty arrays.
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.
Martin v. Löwis [Sun, 26 Feb 2006 22:12:35 +0000 (22:12 +0000)]
Check whether there are flags.
Martin v. Löwis [Sun, 26 Feb 2006 20:51:25 +0000 (20:51 +0000)]
Fix iterating over cmpop_ty lists.
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().
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.
Tim Peters [Sun, 26 Feb 2006 04:21:50 +0000 (04:21 +0000)]
Whitespace normalization.
Guido van Rossum [Sat, 25 Feb 2006 23:32:30 +0000 (23:32 +0000)]
Oops. Fix syntax for C89 compilers.
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).
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.
Brett Cannon [Sat, 25 Feb 2006 14:53:26 +0000 (14:53 +0000)]
Move the vimrc file to the newly created Vim/ directory.
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.
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.
Neal Norwitz [Fri, 24 Feb 2006 15:39:29 +0000 (15:39 +0000)]
Fix a couple of warnings on Mac OS X.
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.
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.
Jack Jansen [Thu, 23 Feb 2006 14:54:30 +0000 (14:54 +0000)]
Got rid of byte-order dependencies.
Georg Brandl [Wed, 22 Feb 2006 11:46:55 +0000 (11:46 +0000)]
Fix casing of function names.
Georg Brandl [Wed, 22 Feb 2006 11:30:06 +0000 (11:30 +0000)]
RFE #
1436243 : make integers in [0..256] preallocated.
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.
Neal Norwitz [Wed, 22 Feb 2006 05:51:48 +0000 (05:51 +0000)]
George Yoshida's fix.
Georg Brandl [Tue, 21 Feb 2006 22:17:46 +0000 (22:17 +0000)]
Add test for classmethod ./. keyword args.
Georg Brandl [Tue, 21 Feb 2006 22:13:44 +0000 (22:13 +0000)]
Make staticmethod and classmethod complain about keyword args.
Georg Brandl [Tue, 21 Feb 2006 20:41:29 +0000 (20:41 +0000)]
fix typo
Georg Brandl [Tue, 21 Feb 2006 19:23:49 +0000 (19:23 +0000)]
Document "multifile" as deprecated.
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.)
Walter Dörwald [Tue, 21 Feb 2006 18:51:32 +0000 (18:51 +0000)]
Fix table header.
Tim Peters [Tue, 21 Feb 2006 18:48:34 +0000 (18:48 +0000)]
Trimmed trailing whitespace.
Georg Brandl [Tue, 21 Feb 2006 17:49:57 +0000 (17:49 +0000)]
Fix typo in functional module
Tim Peters [Tue, 21 Feb 2006 03:28:49 +0000 (03:28 +0000)]
Suppress another deprecation warning in the tests.
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.
Georg Brandl [Mon, 20 Feb 2006 22:27:28 +0000 (22:27 +0000)]
Bug #
1086854 : Rename PyHeapType members adding ht_ prefix.
Tim Peters [Mon, 20 Feb 2006 21:42:18 +0000 (21:42 +0000)]
Whitespace normalization.
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.
Georg Brandl [Mon, 20 Feb 2006 20:29:52 +0000 (20:29 +0000)]
Bug #
1210377 : close bsddb cursor correctly after NotFoundError.
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.
Georg Brandl [Mon, 20 Feb 2006 17:37:36 +0000 (17:37 +0000)]
Patch #931938: prevent setting sys.prefix to ""
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.
Georg Brandl [Mon, 20 Feb 2006 12:57:53 +0000 (12:57 +0000)]
Bug #
1013800 : document PyFunction_* functions
Martin v. Löwis [Mon, 20 Feb 2006 12:26:58 +0000 (12:26 +0000)]
Detect Win64 builds.
Georg Brandl [Mon, 20 Feb 2006 12:15:23 +0000 (12:15 +0000)]
Bug #
1323369 : document possible values of sys.getwindowsversion()
platform field
Martin v. Löwis [Mon, 20 Feb 2006 12:15:15 +0000 (12:15 +0000)]
Let the SDK setup override distutils logic.
Georg Brandl [Mon, 20 Feb 2006 10:32:02 +0000 (10:32 +0000)]
Bug #
1101233 : fix test_fcntl on netbsd2 platform.
Georg Brandl [Mon, 20 Feb 2006 10:24:06 +0000 (10:24 +0000)]
bug #872175: add --with-fpectl to README
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.
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.
Tim Peters [Sun, 19 Feb 2006 21:26:07 +0000 (21:26 +0000)]
Whitespace normalization.
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.
Thomas Wouters [Sun, 19 Feb 2006 20:08:18 +0000 (20:08 +0000)]
Fix typpo.
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?
Neal Norwitz [Sun, 19 Feb 2006 19:31:50 +0000 (19:31 +0000)]
Fix compiler warning (int vs Py_ssize_t mismatch
Neal Norwitz [Sun, 19 Feb 2006 19:18:18 +0000 (19:18 +0000)]
Minor tweaks
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.
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.
Hye-Shik Chang [Sun, 19 Feb 2006 16:22:22 +0000 (16:22 +0000)]
Fix a build problem introduced by r42230.
Georg Brandl [Sun, 19 Feb 2006 15:28:47 +0000 (15:28 +0000)]
Remove two instances of trailing commas. Resolves patch #
1209781 .
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.
Georg Brandl [Sun, 19 Feb 2006 15:20:29 +0000 (15:20 +0000)]
Clarify how hook_compressed determines how to open a file.
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.
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.
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.
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.
Georg Brandl [Sun, 19 Feb 2006 09:51:27 +0000 (09:51 +0000)]
Patch #
1337756 : fileinput now accepts Unicode filenames.
Georg Brandl [Sun, 19 Feb 2006 09:38:58 +0000 (09:38 +0000)]
Patch #
1352711 : make zipimport raise a complete IOError
Tim Peters [Sun, 19 Feb 2006 05:09:00 +0000 (05:09 +0000)]
test_gopher(): Squash another deprecation
warning about gopherlib.
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).
Tim Peters [Sun, 19 Feb 2006 03:34:15 +0000 (03:34 +0000)]
PyEnumKey(): Remove unused local.
Georg Brandl [Sun, 19 Feb 2006 01:21:11 +0000 (01:21 +0000)]
Add a unit test for bug fix #
1396678 .
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?
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.
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
Georg Brandl [Sat, 18 Feb 2006 23:44:24 +0000 (23:44 +0000)]
Add sizeof() instead of hardcoding variable length
Georg Brandl [Sat, 18 Feb 2006 23:35:11 +0000 (23:35 +0000)]
Patch #977553: speed up RegEnumKey call
Neal Norwitz [Sat, 18 Feb 2006 23:26:27 +0000 (23:26 +0000)]
Remove unused variable
Georg Brandl [Sat, 18 Feb 2006 23:10:23 +0000 (23:10 +0000)]
Patch #
1426648 : urllib proxy_bypass broken
Georg Brandl [Sat, 18 Feb 2006 22:55:59 +0000 (22:55 +0000)]
Patch #
1415507 : clarify docs on reference stealing
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.
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.
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
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.
Martin v. Löwis [Sat, 18 Feb 2006 18:26:55 +0000 (18:26 +0000)]
Fix intptr_t fallback for Py_ssize_t.
Martin v. Löwis [Sat, 18 Feb 2006 12:49:49 +0000 (12:49 +0000)]
Fix typo.
Martin v. Löwis [Sat, 18 Feb 2006 12:38:35 +0000 (12:38 +0000)]
Fix size computation on Win64.
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.
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.
Tim Peters [Sat, 18 Feb 2006 03:10:56 +0000 (03:10 +0000)]
Whitespace normalization.
Georg Brandl [Fri, 17 Feb 2006 22:01:08 +0000 (22:01 +0000)]
Move test case for HTTP response dict to httplib.
Georg Brandl [Fri, 17 Feb 2006 19:17:25 +0000 (19:17 +0000)]
Move "httpresponses" dict from urllib2 to httplib where it belongs.
Martin v. Löwis [Fri, 17 Feb 2006 15:57:41 +0000 (15:57 +0000)]
Remove size constraints in SLICE opcodes.