]> granicus.if.org Git - python/log
python
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.

19 years agoRemove size constraints in SLICE opcodes.
Martin v. Löwis [Fri, 17 Feb 2006 15:57:41 +0000 (15:57 +0000)]
Remove size constraints in SLICE opcodes.

19 years agoMake ssize_t-clean.
Martin v. Löwis [Fri, 17 Feb 2006 15:49:09 +0000 (15:49 +0000)]
Make ssize_t-clean.

19 years agoAdd NEWS entry to previous checkin.
Georg Brandl [Fri, 17 Feb 2006 13:35:13 +0000 (13:35 +0000)]
Add NEWS entry to previous checkin.

19 years agoPatch #1417555: SimpleHTTPServer now returns Last-Modified headers.
Georg Brandl [Fri, 17 Feb 2006 13:34:16 +0000 (13:34 +0000)]
Patch #1417555: SimpleHTTPServer now returns Last-Modified headers.

19 years agoUpdate "undocumented modules" section.
Georg Brandl [Fri, 17 Feb 2006 11:51:41 +0000 (11:51 +0000)]
Update "undocumented modules" section.

19 years agoAdd deprecation warning to modules deprecated since 2000.
Georg Brandl [Fri, 17 Feb 2006 11:29:04 +0000 (11:29 +0000)]
Add deprecation warning to modules deprecated since 2000.

19 years agoAdd deprecation notices 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.

19 years agoFix typo.
Thomas Wouters [Fri, 17 Feb 2006 09:59:00 +0000 (09:59 +0000)]
Fix typo.

19 years agoBug #1430298: It is now possible to send a mail with an empty
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.

19 years agoAdd bug number to NEWS entry.
Georg Brandl [Fri, 17 Feb 2006 09:48:14 +0000 (09:48 +0000)]
Add bug number to NEWS entry.

19 years agoThe names of lambda functions are now properly displayed in pydoc.
Georg Brandl [Fri, 17 Feb 2006 09:45:40 +0000 (09:45 +0000)]
The names of lambda functions are now properly displayed in pydoc.

19 years agoBug #1432350: arrayobject should use PyObject_VAR_HEAD
Georg Brandl [Fri, 17 Feb 2006 08:56:33 +0000 (08:56 +0000)]
Bug #1432350: arrayobject should use PyObject_VAR_HEAD

19 years agoPatch #1432345: Make python compile on DragonFly.
Martin v. Löwis [Fri, 17 Feb 2006 08:40:11 +0000 (08:40 +0000)]
Patch #1432345: Make python compile on DragonFly.

19 years agoRemove size restrictions.
Martin v. Löwis [Fri, 17 Feb 2006 06:59:14 +0000 (06:59 +0000)]
Remove size restrictions.

19 years agommap_flush_method(): Squash compiler warning about
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.

19 years agoRemove space between function name and left paren
Tim Peters [Fri, 17 Feb 2006 00:00:20 +0000 (00:00 +0000)]
Remove space between function name and left paren
in function calls.

19 years agoRemoved pointless parens around `return` expressions;
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.

19 years agoTrimmed trailing whitespace.
Tim Peters [Thu, 16 Feb 2006 23:47:20 +0000 (23:47 +0000)]
Trimmed trailing whitespace.

19 years agonew_mmap_object(), Windows flavor.
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.

19 years agoMore Py_ssize_t format characters.
Thomas Wouters [Thu, 16 Feb 2006 21:10:52 +0000 (21:10 +0000)]
More Py_ssize_t format characters.

19 years agostruct_pack(): Repair new assert-fail crash in
Tim Peters [Thu, 16 Feb 2006 20:19:46 +0000 (20:19 +0000)]
struct_pack():  Repair new assert-fail crash in
debug-build test_struct on a box where plain "char"
is signed.

19 years agoUse proper PyArg_Parse format char for Py_ssize_t, instead of 'l', in
Thomas Wouters [Thu, 16 Feb 2006 19:44:46 +0000 (19:44 +0000)]
Use proper PyArg_Parse format char for Py_ssize_t, instead of 'l', in
buffer_new(). Probably fixes a bug in 'buffer("", 10, 10)' on platforms
where sizeof(Py_ssize_t) != sizeof(long) (Win64?)

19 years agoUse correct PyArg_Parse format char for Py_ssize_t in unicode.center().
Thomas Wouters [Thu, 16 Feb 2006 19:34:37 +0000 (19:34 +0000)]
Use correct PyArg_Parse format char for Py_ssize_t in unicode.center().
Fixes:

>>> u"".center(10)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MemoryError

on 64-bit systems.

19 years agoAlso make _heapq.nlargest() use Py_ssize_t instead of ints, to iter over
Thomas Wouters [Thu, 16 Feb 2006 19:21:53 +0000 (19:21 +0000)]
Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter over
lists and call Py_ssize_t-using helpers. All other code in this module was
already adapted to Py_ssize_t.

19 years agoUse 'n' format for Py_ssize_t variables to PyArg_ParseTuple(). Py_ssize_t
Thomas Wouters [Thu, 16 Feb 2006 17:32:54 +0000 (17:32 +0000)]
Use 'n' format for Py_ssize_t variables to PyArg_ParseTuple(). Py_ssize_t
has been applied fairly arbitrarily in this module (nsmallest uses
Py_ssize_t, nlargest does not) and it probably deserves a more complete
review. Fixes heapq.nsmallest() always returning the empty list (on
platforms with 64-bit ssize_t/long)