]>
granicus.if.org Git - python/log
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.
Martin v. Löwis [Fri, 17 Feb 2006 15:49:09 +0000 (15:49 +0000)]
Make ssize_t-clean.
Georg Brandl [Fri, 17 Feb 2006 13:35:13 +0000 (13:35 +0000)]
Add NEWS entry to previous checkin.
Georg Brandl [Fri, 17 Feb 2006 13:34:16 +0000 (13:34 +0000)]
Patch #
1417555 : SimpleHTTPServer now returns Last-Modified headers.
Georg Brandl [Fri, 17 Feb 2006 11:51:41 +0000 (11:51 +0000)]
Update "undocumented modules" section.
Georg Brandl [Fri, 17 Feb 2006 11:29:04 +0000 (11:29 +0000)]
Add deprecation warning to modules deprecated since 2000.
Georg Brandl [Fri, 17 Feb 2006 11:18:58 +0000 (11:18 +0000)]
Add deprecation notices to modules deprecated since 2000.
Thomas Wouters [Fri, 17 Feb 2006 09:59:00 +0000 (09:59 +0000)]
Fix typo.
Georg Brandl [Fri, 17 Feb 2006 09:52:53 +0000 (09:52 +0000)]
Bug #
1430298 : It is now possible to send a mail with an empty
return address using smtplib.
Georg Brandl [Fri, 17 Feb 2006 09:48:14 +0000 (09:48 +0000)]
Add bug number to NEWS entry.
Georg Brandl [Fri, 17 Feb 2006 09:45:40 +0000 (09:45 +0000)]
The names of lambda functions are now properly displayed in pydoc.
Georg Brandl [Fri, 17 Feb 2006 08:56:33 +0000 (08:56 +0000)]
Bug #
1432350 : arrayobject should use PyObject_VAR_HEAD
Martin v. Löwis [Fri, 17 Feb 2006 08:40:11 +0000 (08:40 +0000)]
Patch #
1432345 : Make python compile on DragonFly.
Martin v. Löwis [Fri, 17 Feb 2006 06:59:14 +0000 (06:59 +0000)]
Remove size restrictions.
Tim Peters [Fri, 17 Feb 2006 01:07:39 +0000 (01:07 +0000)]
mmap_flush_method(): Squash compiler warning about
mixing signed and unsigned types in comparison.
Tim Peters [Fri, 17 Feb 2006 00:00:20 +0000 (00:00 +0000)]
Remove space between function name and left paren
in function calls.
Tim Peters [Thu, 16 Feb 2006 23:50:16 +0000 (23:50 +0000)]
Removed pointless parens around `return` expressions;
deleted some curlies around one-line blocks.
Tim Peters [Thu, 16 Feb 2006 23:47:20 +0000 (23:47 +0000)]
Trimmed trailing whitespace.
Tim Peters [Thu, 16 Feb 2006 23:46:01 +0000 (23:46 +0000)]
new_mmap_object(), Windows flavor.
On a box where sizeof(size_t) == 4, C doesn't define
what happens when a size_t value is shifted right by
32 bits, and this caused test_mmap to fail on Windows
in a debug build. So use different code to break
the size apart depending on how large size_t actually
is.
This looks like an illusion, since lots of code in this
module still appears to assume sizes can't be more
than 32 bits (e.g., the internal _GetMapSize() still
returns an int), but at least test_mmap passes again.