]>
granicus.if.org Git - python/log
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.
Thomas Wouters [Thu, 16 Feb 2006 21:10:52 +0000 (21:10 +0000)]
More Py_ssize_t format characters.
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.
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?)
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.
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.
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)
Thomas Wouters [Thu, 16 Feb 2006 17:07:41 +0000 (17:07 +0000)]
Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple().
Thomas Wouters [Thu, 16 Feb 2006 15:59:12 +0000 (15:59 +0000)]
Use Py_ssize_t in helper function between Py_ssize_t-using functions.
Thomas Wouters [Thu, 16 Feb 2006 15:41:34 +0000 (15:41 +0000)]
Add encoding-test datafiles to svn:ignore:
EUC-CN.TXT
CP936.TXT
BIG5HKSCS.TXT
CP932.TXT
EUC-JP.TXT
SHIFTJIS.TXT
EUC-JISX0213.TXT
SHIFT_JISX0213.TXT
CP949.TXT
EUC-KR.TXT
JOHAB.TXT
BIG5.TXT
CP950.TXT
NormalizationTest-3.2.0.txt
Martin v. Löwis [Thu, 16 Feb 2006 14:57:52 +0000 (14:57 +0000)]
Drop vsextcomp_verbose
Thomas Wouters [Thu, 16 Feb 2006 14:57:05 +0000 (14:57 +0000)]
Fix broken example of csv.reader use (it returns an iterator, which isn't
indexable) by using the same 'for' construct as all other examples. (Also
emphasizes that reading from a random iterable is no different than reading
from a file.)
Martin v. Löwis [Thu, 16 Feb 2006 14:56:14 +0000 (14:56 +0000)]
Change _PyObject_GC_Resize to expect Py_ssize_t.
Martin v. Löwis [Thu, 16 Feb 2006 14:38:30 +0000 (14:38 +0000)]
Fix typo
Martin v. Löwis [Thu, 16 Feb 2006 14:37:48 +0000 (14:37 +0000)]
Move cast to suppress warning.
Martin v. Löwis [Thu, 16 Feb 2006 14:37:16 +0000 (14:37 +0000)]
Use Py_ssize_t to count the
Martin v. Löwis [Thu, 16 Feb 2006 14:35:38 +0000 (14:35 +0000)]
Use Py_ssize_t to count the length.
Martin v. Löwis [Thu, 16 Feb 2006 14:32:27 +0000 (14:32 +0000)]
Use Py_ssize_t for counts and sizes.
Convert Py_ssize_t using PyInt_FromSsize_t
Martin v. Löwis [Thu, 16 Feb 2006 14:30:23 +0000 (14:30 +0000)]
Use Py_ssize_t for counts and sizes.
Martin v. Löwis [Thu, 16 Feb 2006 14:24:38 +0000 (14:24 +0000)]
Use Py_ssize_t for field sizes and offsets.
Martin v. Löwis [Thu, 16 Feb 2006 14:23:19 +0000 (14:23 +0000)]
Allow for ssize_t field offsets.
Neal Norwitz [Thu, 16 Feb 2006 08:08:54 +0000 (08:08 +0000)]
Update comment and make accurate.
Neal Norwitz [Thu, 16 Feb 2006 07:30:11 +0000 (07:30 +0000)]
Oops, this is supposed to be disabled by default.
Martin v. Löwis [Thu, 16 Feb 2006 07:11:33 +0000 (07:11 +0000)]
Use PyString_FromFormat for formatting error messages.