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

19 years agoUse correct format specifier for Py_ssize_t variable to PyArg_ParseTuple().
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().

19 years agoUse Py_ssize_t in helper function between Py_ssize_t-using functions.
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.

19 years agoAdd encoding-test datafiles to svn:ignore:
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

19 years agoDrop vsextcomp_verbose
Martin v. Löwis [Thu, 16 Feb 2006 14:57:52 +0000 (14:57 +0000)]
Drop vsextcomp_verbose

19 years agoFix broken example of csv.reader use (it returns an iterator, which isn't
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.)

19 years agoChange _PyObject_GC_Resize to expect Py_ssize_t.
Martin v. Löwis [Thu, 16 Feb 2006 14:56:14 +0000 (14:56 +0000)]
Change _PyObject_GC_Resize to expect Py_ssize_t.

19 years agoFix typo
Martin v. Löwis [Thu, 16 Feb 2006 14:38:30 +0000 (14:38 +0000)]
Fix typo

19 years agoMove cast to suppress warning.
Martin v. Löwis [Thu, 16 Feb 2006 14:37:48 +0000 (14:37 +0000)]
Move cast to suppress warning.

19 years agoUse Py_ssize_t to count the
Martin v. Löwis [Thu, 16 Feb 2006 14:37:16 +0000 (14:37 +0000)]
Use Py_ssize_t to count the

19 years agoUse Py_ssize_t to count the length.
Martin v. Löwis [Thu, 16 Feb 2006 14:35:38 +0000 (14:35 +0000)]
Use Py_ssize_t to count the length.

19 years agoUse Py_ssize_t for counts and sizes.
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

19 years agoUse Py_ssize_t for counts and sizes.
Martin v. Löwis [Thu, 16 Feb 2006 14:30:23 +0000 (14:30 +0000)]
Use Py_ssize_t for counts and sizes.

19 years agoUse Py_ssize_t for field sizes and offsets.
Martin v. Löwis [Thu, 16 Feb 2006 14:24:38 +0000 (14:24 +0000)]
Use Py_ssize_t for field sizes and offsets.

19 years agoAllow for ssize_t field offsets.
Martin v. Löwis [Thu, 16 Feb 2006 14:23:19 +0000 (14:23 +0000)]
Allow for ssize_t field offsets.

19 years agoUpdate comment and make accurate.
Neal Norwitz [Thu, 16 Feb 2006 08:08:54 +0000 (08:08 +0000)]
Update comment and make accurate.

19 years agoOops, this is supposed to be disabled by default.
Neal Norwitz [Thu, 16 Feb 2006 07:30:11 +0000 (07:30 +0000)]
Oops, this is supposed to be disabled by default.

19 years agoUse PyString_FromFormat for formatting error messages.
Martin v. Löwis [Thu, 16 Feb 2006 07:11:33 +0000 (07:11 +0000)]
Use PyString_FromFormat for formatting error messages.

19 years agoRevert 42400.
Martin v. Löwis [Thu, 16 Feb 2006 06:59:22 +0000 (06:59 +0000)]
Revert 42400.

19 years agoSupport %zd in PyErr_Format and PyString_FromFormat.
Martin v. Löwis [Thu, 16 Feb 2006 06:54:25 +0000 (06:54 +0000)]
Support %zd in PyErr_Format and PyString_FromFormat.

19 years agoGet rid of compiler warnings (gcc 3.3.4 on x86)
Neal Norwitz [Thu, 16 Feb 2006 06:21:57 +0000 (06:21 +0000)]
Get rid of compiler warnings (gcc 3.3.4 on x86)

19 years agodoubletounicode(), longtounicode():
Tim Peters [Thu, 16 Feb 2006 01:08:01 +0000 (01:08 +0000)]
doubletounicode(), longtounicode():
Py_SAFE_DOWNCAST can evaluate its first argument multiple
times in a debug build.  This caused two distinct assert-
failures in test_unicode run under a debug build.  Rewrote
the code in trivial ways so that multiple evaluation of the
first argument doesn't hurt.

19 years agogetpythonregpath(): Squash compiler warning about
Tim Peters [Thu, 16 Feb 2006 00:35:06 +0000 (00:35 +0000)]
getpythonregpath():  Squash compiler warning about
mixing signed and unsigned types in comparison.
Relatedly, `dataSize` is declared as DWORD, not as
int, so change relevant cast from (int) to (DWORD).

19 years agoRemove two unused Py_ssize_t variables (merge glitches, looks like.)
Thomas Wouters [Wed, 15 Feb 2006 23:10:32 +0000 (23:10 +0000)]
Remove two unused Py_ssize_t variables (merge glitches, looks like.)

19 years agoAvoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalize
Thomas Wouters [Wed, 15 Feb 2006 23:08:56 +0000 (23:08 +0000)]
Avoid unused variables when SIZEOF_SIZE_T == SIZEOF_LONG. Also normalize
whitespace.

19 years agoAdded some more versionchanged markup.
Vinay Sajip [Wed, 15 Feb 2006 21:47:32 +0000 (21:47 +0000)]
Added some more versionchanged markup.

19 years agoRemove C99ism.
Martin v. Löwis [Wed, 15 Feb 2006 19:56:18 +0000 (19:56 +0000)]
Remove C99ism.

19 years agoDrop py:lastmerged.
Martin v. Löwis [Wed, 15 Feb 2006 18:58:59 +0000 (18:58 +0000)]
Drop py:lastmerged.

19 years agoMerge ssize_t branch.
Martin v. Löwis [Wed, 15 Feb 2006 17:27:45 +0000 (17:27 +0000)]
Merge ssize_t branch.

19 years agouse correct function in example
Fred Drake [Wed, 15 Feb 2006 06:55:57 +0000 (06:55 +0000)]
use correct function in example

19 years agoFind test failures consistently
Neal Norwitz [Wed, 15 Feb 2006 06:07:32 +0000 (06:07 +0000)]
Find test failures consistently

19 years agorandombits(): Stop compiler warning about mixing
Tim Peters [Wed, 15 Feb 2006 03:01:30 +0000 (03:01 +0000)]
randombits():  Stop compiler warning about mixing
signed with unsigned types in comparison.

19 years agoAdd _lsprof.
Martin v. Löwis [Tue, 14 Feb 2006 21:25:29 +0000 (21:25 +0000)]
Add _lsprof.

19 years agoAdd build support for AMD64.
Martin v. Löwis [Tue, 14 Feb 2006 20:42:55 +0000 (20:42 +0000)]
Add build support for AMD64.

19 years agoNew test code failed to close the file. This caused
Tim Peters [Tue, 14 Feb 2006 17:41:18 +0000 (17:41 +0000)]
New test code failed to close the file.  This caused
test_file to fail on Windows in reality (can't delete
a still-open file), but a new bare "except:" hid that
test_file failed on Windows, and leaving behind the
still-open TESTFN caused a cascade of bogus failures
in later tests.

So, close the file, and stop hiding failure to unlink.

19 years ago* Refcount leak. It was just a reference to Py_None, but still.
Armin Rigo [Tue, 14 Feb 2006 15:50:44 +0000 (15:50 +0000)]
* Refcount leak.  It was just a reference to Py_None, but still.

* Allow the 3rd argument to generator.throw() to be None.
  The 'raise' statement does the same, and anyway it follows the
  general policy that optional arguments of built-ins should, when
  reasonable, have a default value specifiable from Python.

19 years agoSupport 2.4 (released versions) better. (rsync was not working with adding the ...
Neal Norwitz [Tue, 14 Feb 2006 08:14:16 +0000 (08:14 +0000)]
Support 2.4 (released versions) better.  (rsync was not working with adding the *.  Only some files/dirs were copied, not everything.)

19 years agoDoc some user visible changes
Neal Norwitz [Mon, 13 Feb 2006 02:04:37 +0000 (02:04 +0000)]
Doc some user visible changes

19 years agoTry to improve name based on discussion on python-checkins with Jim Jewett
Neal Norwitz [Mon, 13 Feb 2006 00:35:21 +0000 (00:35 +0000)]
Try to improve name based on discussion on python-checkins with Jim Jewett

19 years agoSF patch #1397960: When mixing file-iteration and
Thomas Wouters [Sun, 12 Feb 2006 11:53:32 +0000 (11:53 +0000)]
SF patch #1397960: When mixing file-iteration and
readline/readlines/read/readinto, loudly break by raising ValueError, rather
than silently deliver data out of order or hitting EOF prematurely.

Probably not a bugfix candidate, even though it affects no 'working' code.

19 years agoRenamed _length_cue() to __length_hint__(). See:
Armin Rigo [Sat, 11 Feb 2006 21:32:43 +0000 (21:32 +0000)]
Renamed _length_cue() to __length_hint__().  See:
http://mail.python.org/pipermail/python-dev/2006-February/060524.html

19 years agoWhitespace normalization.
Tim Peters [Sat, 11 Feb 2006 18:32:21 +0000 (18:32 +0000)]
Whitespace normalization.

19 years agoEven more copyright year locations!
Georg Brandl [Sat, 11 Feb 2006 18:22:59 +0000 (18:22 +0000)]
Even more copyright year locations!

19 years agoPatch #428494: Prefer linking against ncursesw over ncurses library
Martin v. Löwis [Sat, 11 Feb 2006 15:55:14 +0000 (15:55 +0000)]
Patch #428494: Prefer linking against ncursesw over ncurses library

19 years agoUpdate general copyright years to 2006.
Georg Brandl [Sat, 11 Feb 2006 15:30:36 +0000 (15:30 +0000)]
Update general copyright years to 2006.

19 years agoIntroduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Martin v. Löwis [Sat, 11 Feb 2006 09:27:05 +0000 (09:27 +0000)]
Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Proposed by Tim Peters.

19 years agoExplain the clearing of the stack in a comment in Python/ceval.c's
Thomas Wouters [Fri, 10 Feb 2006 22:51:45 +0000 (22:51 +0000)]
Explain the clearing of the stack in a comment in Python/ceval.c's
call_function(), rather than commenting on the lack of an explanation in a
comment.

19 years agoOne more mod for support of C++ classes.
Jack Jansen [Fri, 10 Feb 2006 22:15:09 +0000 (22:15 +0000)]
One more mod for support of C++ classes.

19 years agoAvoid linking python with readline.
Martin v. Löwis [Fri, 10 Feb 2006 20:49:30 +0000 (20:49 +0000)]
Avoid linking python with readline.

19 years agoFor overriding C++ methods we also need to know whether a parameter
Jack Jansen [Fri, 10 Feb 2006 16:17:24 +0000 (16:17 +0000)]
For overriding C++ methods we also need to know whether a parameter
is an output parameter or not. Added support for that.

19 years agoThe default timer unit was incorrectly measured in milliseconds instead
Armin Rigo [Fri, 10 Feb 2006 13:19:53 +0000 (13:19 +0000)]
The default timer unit was incorrectly measured in milliseconds instead
of seconds, producing numbers 1000 times too large.  It would be nice to
write a test for this, but how...  (thanks mwh)

19 years agoAdded information on function name added to LogRecord, and the 'extra' keyword parameter.
Vinay Sajip [Thu, 9 Feb 2006 08:54:11 +0000 (08:54 +0000)]
Added information on function name added to LogRecord, and the 'extra' keyword parameter.

19 years agoAdded function name to LogRecord.
Vinay Sajip [Thu, 9 Feb 2006 08:48:36 +0000 (08:48 +0000)]
Added function name to LogRecord.

19 years agoPropagate exceptions from shutdown() if raiseExceptions is not set.
Vinay Sajip [Thu, 9 Feb 2006 08:34:14 +0000 (08:34 +0000)]
Propagate exceptions from shutdown() if raiseExceptions is not set.
Added 'extra' keyword argument handling to logging calls, as discussed on python-dev.

19 years agoAdded lock acquisition/release around shared data structure manipulation
Vinay Sajip [Thu, 9 Feb 2006 08:31:00 +0000 (08:31 +0000)]
Added lock acquisition/release around shared data structure manipulation

19 years agoBe a little less sensitive to failures. Only check for the result from
Neal Norwitz [Thu, 9 Feb 2006 05:08:56 +0000 (05:08 +0000)]
Be a little less sensitive to failures.  Only check for the result from
regrtest.py.  If we grep for just "fail", that finds bsddb deadlock
messages, which presumably are just warnings.  They don't cause
a test failure.

19 years agoAdd doc discussing how AST compiler is structured and designed.
Brett Cannon [Thu, 9 Feb 2006 02:43:14 +0000 (02:43 +0000)]
Add doc discussing how AST compiler is structured and designed.

It is out of date, though, thanks to lacking info on the arena API.  It also
should eventually be removed in favor of updating PEP 339.

19 years agoPort relevant patches for SF 1409455 to the trunk for email 3.0/Python 2.5.
Barry Warsaw [Wed, 8 Feb 2006 14:34:21 +0000 (14:34 +0000)]
Port relevant patches for SF 1409455 to the trunk for email 3.0/Python 2.5.
Will port to Python 2.4.

19 years agoAdded the cProfile module.
Armin Rigo [Wed, 8 Feb 2006 12:53:56 +0000 (12:53 +0000)]
Added the cProfile module.
Based on lsprof (patch #1212837) by Brett Rosen and Ted Czotter.
With further editing by Michael Hudson and myself.
History in svn repo: http://codespeak.net/svn/user/arigo/hack/misc/lsprof

* Module/_lsprof.c is the internal C module, Lib/cProfile.py a wrapper.
* pstats.py updated to display cProfile's caller/callee timings if available.
* setup.py and NEWS updated.
* documentation updates in the profiler section:
   - explain the differences between the three profilers that we have now
   - profile and cProfile can use a unified documentation, like (c)Pickle
   - mention that hotshot is "for specialized usage" now
   - removed references to the "old profiler" that no longer exists
* test updates:
   - extended test_profile to cover delicate cases like recursion
   - added tests for the caller/callee displays
   - added test_cProfile, performing the same tests for cProfile
* TO-DO:
   - cProfile gives a nicer name to built-in, particularly built-in methods,
     which could be backported to profile.
   - not tested on Windows recently!

19 years agoUpdate projected release date
Andrew M. Kuchling [Wed, 8 Feb 2006 11:36:09 +0000 (11:36 +0000)]
Update projected release date

19 years agoFixed an oversight and a misunderstanding of PEP253:
Jack Jansen [Tue, 7 Feb 2006 22:28:09 +0000 (22:28 +0000)]
Fixed an oversight and a misunderstanding of PEP253:
- Call tp_dealloc on the static baseclass, not dynamic (which leads to
  infinite loops with more than one baseclass)
- Call tp_new and tp_init on baseclasses (overridable)
-This line, and those below, will be ignored--

M    bgen/bgenObjectDefinition.py

19 years agoRemoved defensive test in Handler.close
Vinay Sajip [Tue, 7 Feb 2006 13:55:52 +0000 (13:55 +0000)]
Removed defensive test in Handler.close

19 years agoSaved and restored logging._handlerList at the same time as saving/restoring logging...
Vinay Sajip [Tue, 7 Feb 2006 13:44:48 +0000 (13:44 +0000)]
Saved and restored logging._handlerList at the same time as saving/restoring logging._handlers.

19 years agoAdd versionadded note for new methods
Neal Norwitz [Tue, 7 Feb 2006 07:23:26 +0000 (07:23 +0000)]
Add versionadded note for new methods

19 years agoBug #876637, prevent stack corruption when socket descriptor
Neal Norwitz [Tue, 7 Feb 2006 07:04:46 +0000 (07:04 +0000)]
Bug #876637, prevent stack corruption when socket descriptor
is larger than FD_SETSIZE.

This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE
which is typically only available to root.  Since this wouldn't normally
be run in a test (ie, run as root), it doesn't seem too worthwhile to
add a normal test.  The bug report has one version of a test.  I've
written another.  Not sure what the best thing to do is.

Do the check before calling internal_select() because we can't set
an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.
This seemed the clearest solution, ie handle before calling internal_select()
rather than inside.  Plus there is at least one place outside
of internal_select() that needed to be handled.

Will backport.

19 years agoFix indentation (whitespace only).
Neal Norwitz [Tue, 7 Feb 2006 06:59:20 +0000 (06:59 +0000)]
Fix indentation (whitespace only).

19 years agoCheck return results for errors
Neal Norwitz [Tue, 7 Feb 2006 06:58:52 +0000 (06:58 +0000)]
Check return results for errors

19 years agoPatch #1412872: zipfile: use correct system type on unixy systems.
Martin v. Löwis [Sun, 5 Feb 2006 17:09:41 +0000 (17:09 +0000)]
Patch #1412872: zipfile: use correct system type on unixy systems.

19 years agoGet test_logging to not hang when running under regrtest.py -R ::
Neal Norwitz [Sun, 5 Feb 2006 08:21:08 +0000 (08:21 +0000)]
Get test_logging to not hang when running under regrtest.py -R ::

Not sure why/how _handlers/_handlerList is out of sync.  This could
indicate a deeper problem.

In test_logging, the only absolutely necessary change to get working
was tcpserver.abort = 1.  But we don't want to wait infinitely
to join the threads, so give a 2.0 second timeout.

There doesn't appear to be a need for a local abort variable
in serve_until_stopped, so just use the instance member.

Note the problem is only on HEAD, not in 2.4.

19 years agoPatch #1407135, bug #1424041, make mmap.mmap(-1, length) work the same
Neal Norwitz [Sun, 5 Feb 2006 05:45:43 +0000 (05:45 +0000)]
Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the same
on both Unix (SVR4 and BSD) and Windows.  Restores behaviour of passing -1
for anonymous memory on Unix.  Use MAP_ANONYMOUS instead of _ANON since
the latter is deprecated according to Linux (gentoo) man pages.

Should we continue to allow mmap.mmap(0, length) to work on Windows?
0 is a valid fd.

Will backport bugfix portions.