]> granicus.if.org Git - python/log
python
14 years agoFast path for IncrementalNewlineDecoder.decode() in io.TextIOWrapper.read(-1)
Victor Stinner [Wed, 25 May 2011 20:01:33 +0000 (22:01 +0200)]
Fast path for IncrementalNewlineDecoder.decode() in io.TextIOWrapper.read(-1)

Copy/paste code from textiowrapper_read_chunk().

14 years agomerge commit.
Senthil Kumaran [Wed, 25 May 2011 16:26:32 +0000 (00:26 +0800)]
merge commit.

14 years agoNews entry for issue11109.
Senthil Kumaran [Wed, 25 May 2011 16:24:38 +0000 (00:24 +0800)]
News entry for issue11109.

14 years agoFix closes issue #11109 - socketserver.ForkingMixIn leaves zombies, also fails to...
Senthil Kumaran [Wed, 25 May 2011 16:22:59 +0000 (00:22 +0800)]
Fix closes issue #11109 -  socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass.

A new method called service_action is made available in BaseServer, called by
serve_forever loop. This useful in cases where Mixins can use it for cleanup
action. ForkingMixin class uses service_action to collect the zombie child
processes. Initial Patch by Justin Wark.

14 years agoIssue #12045: Avoid duplicate execution of command in ctypes.util._get_soname().
Antoine Pitrou [Wed, 25 May 2011 16:17:25 +0000 (18:17 +0200)]
Issue #12045: Avoid duplicate execution of command in ctypes.util._get_soname().
Patch by Sijin Joseph.

14 years agotest that object has a __dir__() implementation
Benjamin Peterson [Wed, 25 May 2011 14:33:37 +0000 (09:33 -0500)]
test that object has a __dir__() implementation

14 years agomake PyImport_ImportModuleLevel's first arg const like similiar functions (closes...
Benjamin Peterson [Wed, 25 May 2011 14:29:00 +0000 (09:29 -0500)]
make PyImport_ImportModuleLevel's first arg const like similiar functions (closes #12173)

14 years agowrap at 80 chars
Benjamin Peterson [Wed, 25 May 2011 14:27:43 +0000 (09:27 -0500)]
wrap at 80 chars

14 years agotest values and types of (True/False).(imag/real)
Benjamin Peterson [Wed, 25 May 2011 14:21:46 +0000 (09:21 -0500)]
test values and types of (True/False).(imag/real)

14 years agoIssue #12049: cleanup the warning in the random module doc
Victor Stinner [Wed, 25 May 2011 11:13:55 +0000 (13:13 +0200)]
Issue #12049: cleanup the warning in the random module doc

14 years agoIssue #12049: Document errors cases of ssl.RAND_bytes() and
Victor Stinner [Wed, 25 May 2011 09:27:40 +0000 (11:27 +0200)]
Issue #12049: Document errors cases of ssl.RAND_bytes() and
ssl.RAND_pseudo_bytes().  Add also links to RAND_status and RAND_add.

14 years agoIssue #12049: test_ssl now checks also that RAND_bytes() raises an error if
Victor Stinner [Wed, 25 May 2011 09:15:16 +0000 (11:15 +0200)]
Issue #12049: test_ssl now checks also that RAND_bytes() raises an error if
there is not enough entropy.

14 years agoIssue #8407: Fix the signal handler of the signal module: if it is called
Victor Stinner [Wed, 25 May 2011 00:35:58 +0000 (02:35 +0200)]
Issue #8407: Fix the signal handler of the signal module: if it is called
twice, it now writes the number of the second signal into the wakeup fd.

14 years agoexcellent place for assertRaises
Benjamin Peterson [Wed, 25 May 2011 00:31:01 +0000 (19:31 -0500)]
excellent place for assertRaises

14 years agoIssue #8533: regrtest replaces also sys.stdout on Windows
Victor Stinner [Wed, 25 May 2011 00:01:55 +0000 (02:01 +0200)]
Issue #8533: regrtest replaces also sys.stdout on Windows

Replace sys.stdout to use backslashreplace. Use '\n' newline on all operating
systems.

14 years agoIssue #10818: Remove deprecated pydoc.serve() function
Victor Stinner [Tue, 24 May 2011 23:41:22 +0000 (01:41 +0200)]
Issue #10818: Remove deprecated pydoc.serve() function

The pydoc module has a new enhanced web server.

14 years agoIssue #10818: Remove the Tk GUI of the pydoc module (pydoc -g has been
Victor Stinner [Tue, 24 May 2011 23:35:05 +0000 (01:35 +0200)]
Issue #10818: Remove the Tk GUI of the pydoc module (pydoc -g has been
deprecated in Python 3.2).

14 years ago(Merge 3.2) Issue #12057: Add cjkencodings directory to the Makefile and
Victor Stinner [Tue, 24 May 2011 23:16:49 +0000 (01:16 +0200)]
(Merge 3.2) Issue #12057: Add cjkencodings directory to the Makefile and
Tools/msi/msi.py

14 years ago(Merge 3.1) Issue #12057: Add cjkencodings directory to the Makefile and
Victor Stinner [Tue, 24 May 2011 23:15:59 +0000 (01:15 +0200)]
(Merge 3.1) Issue #12057: Add cjkencodings directory to the Makefile and
Tools/msi/msi.py

14 years agoIssue #12057: Add cjkencodings directory to the Makefile and Tools/msi/msi.py
Victor Stinner [Tue, 24 May 2011 23:13:59 +0000 (01:13 +0200)]
Issue #12057: Add cjkencodings directory to the Makefile and Tools/msi/msi.py

14 years agoFix typo in bz2 module.
Nadeem Vawda [Tue, 24 May 2011 22:32:08 +0000 (00:32 +0200)]
Fix typo in bz2 module.

14 years ago(Merge 3.2) Issue #12057: Add tests for the HZ encoding
Victor Stinner [Tue, 24 May 2011 22:17:13 +0000 (00:17 +0200)]
(Merge 3.2) Issue #12057: Add tests for the HZ encoding

14 years ago(Merge 3.1) Issue #12057: Add tests for the HZ encoding
Victor Stinner [Tue, 24 May 2011 22:16:43 +0000 (00:16 +0200)]
(Merge 3.1) Issue #12057: Add tests for the HZ encoding

14 years agoIssue #12057: Add tests for the HZ encoding
Victor Stinner [Tue, 24 May 2011 22:06:51 +0000 (00:06 +0200)]
Issue #12057: Add tests for the HZ encoding

14 years agoIssue #1441530: In imaplib, read the data in one chunk to speed up large
Charles-François Natali [Tue, 24 May 2011 21:47:49 +0000 (23:47 +0200)]
Issue #1441530: In imaplib, read the data in one chunk to speed up large
reads and simplify code.

14 years ago(Merge 3.2) Issue #12070: Fix the Makefile parser of the sysconfig module to
Victor Stinner [Tue, 24 May 2011 21:38:03 +0000 (23:38 +0200)]
(Merge 3.2) Issue #12070: Fix the Makefile parser of the sysconfig module to
handle correctly references to "bogus variable" (e.g. "prefix=$/opt/python").

14 years agoIssue #12070: Fix the Makefile parser of the sysconfig module to handle
Victor Stinner [Tue, 24 May 2011 21:37:07 +0000 (23:37 +0200)]
Issue #12070: Fix the Makefile parser of the sysconfig module to handle
correctly references to "bogus variable" (e.g. "prefix=$/opt/python").

14 years ago(Merge 3.2) Issue #12100: Don't reset incremental encoders of CJK codecs at
Victor Stinner [Tue, 24 May 2011 20:24:11 +0000 (22:24 +0200)]
(Merge 3.2) Issue #12100: Don't reset incremental encoders of CJK codecs at
each call to their encode() method anymore, but continue to call the reset()
method if the final argument is True.

14 years ago(Merge 3.1) Issue #12100: Don't reset incremental encoders of CJK codecs at
Victor Stinner [Tue, 24 May 2011 20:22:17 +0000 (22:22 +0200)]
(Merge 3.1) Issue #12100: Don't reset incremental encoders of CJK codecs at
each call to their encode() method anymore, but continue to call the reset()
method if the final argument is True.

14 years agoIssue #12100: Don't reset incremental encoders of CJK codecs at each call to
Victor Stinner [Tue, 24 May 2011 20:17:55 +0000 (22:17 +0200)]
Issue #12100: Don't reset incremental encoders of CJK codecs at each call to
their encode() method anymore, but continue to call the reset() method if the
final argument is True.

14 years agoIssue #12049: improve RAND_bytes() and RAND_pseudo_bytes() documentation
Victor Stinner [Tue, 24 May 2011 19:32:40 +0000 (21:32 +0200)]
Issue #12049: improve RAND_bytes() and RAND_pseudo_bytes() documentation

Add also a security warning in the module random pointing to ssl.RAND_bytes().

14 years agomerge 3.2
Benjamin Peterson [Tue, 24 May 2011 17:51:32 +0000 (12:51 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Tue, 24 May 2011 17:51:24 +0000 (12:51 -0500)]
merge 3.1

14 years agobackout 8b384de4e780, so a proper fix can be considered (#5715)
Benjamin Peterson [Tue, 24 May 2011 17:50:34 +0000 (12:50 -0500)]
backout 8b384de4e780, so a proper fix can be considered (#5715)

14 years agoindicate return value on __dir__ methods
Benjamin Peterson [Tue, 24 May 2011 17:46:15 +0000 (12:46 -0500)]
indicate return value on __dir__ methods

14 years agomerge 3.2
Benjamin Peterson [Tue, 24 May 2011 17:45:33 +0000 (12:45 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Tue, 24 May 2011 17:44:26 +0000 (12:44 -0500)]
merge 3.1

14 years agouse '->' to indicate return values
Benjamin Peterson [Tue, 24 May 2011 17:42:51 +0000 (12:42 -0500)]
use '->' to indicate return values

14 years agomerge 3.2
Benjamin Peterson [Tue, 24 May 2011 17:09:47 +0000 (12:09 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Tue, 24 May 2011 17:09:26 +0000 (12:09 -0500)]
merge 3.1

14 years agogenerally, sockets should be closed after they're used
Benjamin Peterson [Tue, 24 May 2011 17:06:31 +0000 (12:06 -0500)]
generally, sockets should be closed after they're used

14 years agoIssue #5715: In socketserver, close the server socket in the child process.
Charles-François Natali [Tue, 24 May 2011 16:29:46 +0000 (18:29 +0200)]
Issue #5715: In socketserver, close the server socket in the child process.

14 years agoIssue #5715: In socketserver, close the server socket in the child process.
Charles-François Natali [Tue, 24 May 2011 16:27:25 +0000 (18:27 +0200)]
Issue #5715: In socketserver, close the server socket in the child process.

14 years agoIssue #5715: In socketserver, close the server socket in the child process.
Charles-François Natali [Tue, 24 May 2011 16:23:15 +0000 (18:23 +0200)]
Issue #5715: In socketserver, close the server socket in the child process.

14 years agomove specialized dir implementations into __dir__ methods (closes #12166)
Benjamin Peterson [Tue, 24 May 2011 16:09:06 +0000 (11:09 -0500)]
move specialized dir implementations into __dir__ methods (closes #12166)

14 years agoIssue #12167: packaging.tests.test_dist unloads the temporary module
Victor Stinner [Tue, 24 May 2011 12:01:39 +0000 (14:01 +0200)]
Issue #12167: packaging.tests.test_dist unloads the temporary module

Fix a reference leak.

14 years agoIssue #12167: packaging.tests.support, LoggingCatcher restores correctly the
Victor Stinner [Tue, 24 May 2011 11:59:21 +0000 (13:59 +0200)]
Issue #12167: packaging.tests.support, LoggingCatcher restores correctly the
log level. Avoid also calls to .addCleanup() in setUp().

14 years agoIssue #12049: Add RAND_bytes() and RAND_pseudo_bytes() functions to the ssl
Victor Stinner [Tue, 24 May 2011 10:05:19 +0000 (12:05 +0200)]
Issue #12049: Add RAND_bytes() and RAND_pseudo_bytes() functions to the ssl
module.

14 years agoUpdated test_rollover delay to just over a second.
Vinay Sajip [Tue, 24 May 2011 06:12:41 +0000 (07:12 +0100)]
Updated test_rollover delay to just over a second.

14 years agoIssue #12105: test_posix skips test_oscloexec() on Linux < 2.6.23
Victor Stinner [Mon, 23 May 2011 22:29:43 +0000 (00:29 +0200)]
Issue #12105: test_posix skips test_oscloexec() on Linux < 2.6.23

14 years agoIssue #12158: Move linux_version() from test_socket to test.support
Victor Stinner [Mon, 23 May 2011 22:24:19 +0000 (00:24 +0200)]
Issue #12158: Move linux_version() from test_socket to test.support

14 years agoIssue #11377: platform.popen() emits a DeprecationWarning
Victor Stinner [Mon, 23 May 2011 22:16:16 +0000 (00:16 +0200)]
Issue #11377: platform.popen() emits a DeprecationWarning

14 years agoMerge heads.
Ezio Melotti [Mon, 23 May 2011 22:03:33 +0000 (01:03 +0300)]
Merge heads.

14 years ago#12074: merge with 3.2.
Ezio Melotti [Mon, 23 May 2011 22:01:08 +0000 (01:01 +0300)]
#12074: merge with 3.2.

14 years agoIssue #12151: Test now ignores datagram socket errors after server is closed.
Vinay Sajip [Mon, 23 May 2011 22:00:42 +0000 (23:00 +0100)]
Issue #12151: Test now ignores datagram socket errors after server is closed.

14 years ago#12074: remove the /0 when there are no failures.
Ezio Melotti [Mon, 23 May 2011 22:00:10 +0000 (01:00 +0300)]
#12074: remove the /0 when there are no failures.

14 years agomerge 3.2
Benjamin Peterson [Mon, 23 May 2011 21:35:12 +0000 (16:35 -0500)]
merge 3.2

14 years agomerge heads
Benjamin Peterson [Mon, 23 May 2011 21:30:29 +0000 (16:30 -0500)]
merge heads

14 years agomerge heads
Benjamin Peterson [Mon, 23 May 2011 21:29:50 +0000 (16:29 -0500)]
merge heads

14 years agomerge 3.2
Benjamin Peterson [Mon, 23 May 2011 21:27:36 +0000 (16:27 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Mon, 23 May 2011 21:22:42 +0000 (16:22 -0500)]
merge 3.1

14 years ago(Merge 3.2) Issue #12074: regrtest displays also the current number of failures
Victor Stinner [Mon, 23 May 2011 21:16:09 +0000 (23:16 +0200)]
(Merge 3.2) Issue #12074: regrtest displays also the current number of failures

14 years agoIssue #12074: regrtest displays also the current number of failures
Victor Stinner [Mon, 23 May 2011 21:14:05 +0000 (23:14 +0200)]
Issue #12074: regrtest displays also the current number of failures

14 years agocorrectly lookup __dir__
Benjamin Peterson [Mon, 23 May 2011 21:11:05 +0000 (16:11 -0500)]
correctly lookup __dir__

14 years agoIssue #12151: Correction to diagnostic code.
Vinay Sajip [Mon, 23 May 2011 20:49:09 +0000 (21:49 +0100)]
Issue #12151: Correction to diagnostic code.

14 years agoIssue #12151: Added diagnostics to help diagnose intermittent socket errors.
Vinay Sajip [Mon, 23 May 2011 20:37:54 +0000 (21:37 +0100)]
Issue #12151: Added diagnostics to help diagnose intermittent socket errors.

14 years agoClean-up example.
Raymond Hettinger [Mon, 23 May 2011 19:46:20 +0000 (12:46 -0700)]
Clean-up example.

14 years agoClean-up example.
Raymond Hettinger [Mon, 23 May 2011 19:45:34 +0000 (12:45 -0700)]
Clean-up example.

14 years agoIssue #12125: fixed the failures under Solaris due to improper test cleanup.
Tarek Ziade [Mon, 23 May 2011 17:07:56 +0000 (19:07 +0200)]
Issue #12125: fixed the failures under Solaris due to improper test cleanup.

14 years agofixed the cwd cleanup in packaging test_util
Tarek Ziade [Mon, 23 May 2011 16:47:27 +0000 (18:47 +0200)]
fixed the cwd cleanup in packaging test_util

14 years agomake sure the cwd is restored on tearDown
Tarek Ziade [Mon, 23 May 2011 16:31:20 +0000 (18:31 +0200)]
make sure the cwd is restored on tearDown

14 years agoIssue #6501: os.device_encoding() returns None on Windows if the application
Victor Stinner [Mon, 23 May 2011 16:12:52 +0000 (18:12 +0200)]
Issue #6501: os.device_encoding() returns None on Windows if the application
has no console.

14 years agomake sure build_dir.build_lib is synced to the faked build location
Tarek Ziade [Mon, 23 May 2011 15:35:20 +0000 (17:35 +0200)]
make sure build_dir.build_lib is synced to the faked build location

14 years agoMerge 3.2
Victor Stinner [Mon, 23 May 2011 12:58:07 +0000 (14:58 +0200)]
Merge 3.2

14 years agoMerge 3.1
Victor Stinner [Mon, 23 May 2011 12:57:05 +0000 (14:57 +0200)]
Merge 3.1

14 years agotest_codecs now removes the temporay file (created by the test)
Victor Stinner [Mon, 23 May 2011 12:51:42 +0000 (14:51 +0200)]
test_codecs now removes the temporay file (created by the test)

14 years agoIssue #12105: test_posix, add the value of O_CLOEXEC in the error message
Victor Stinner [Mon, 23 May 2011 10:54:52 +0000 (12:54 +0200)]
Issue #12105: test_posix, add the value of O_CLOEXEC in the error message

14 years agoClose #12153: faulthandler, mark stack_overflow() as static
Victor Stinner [Mon, 23 May 2011 10:29:10 +0000 (12:29 +0200)]
Close #12153: faulthandler, mark stack_overflow() as static

14 years agoUpdate documentation to mention bytes instead byte string and correct one
Gregory P. Smith [Mon, 23 May 2011 05:29:49 +0000 (22:29 -0700)]
Update documentation to mention bytes instead byte string and correct one
mentioned string to the accurate description of what type is required.

14 years agoRefer to the return value on nameindex and friends as a string, not a byte
Gregory P. Smith [Mon, 23 May 2011 05:16:57 +0000 (22:16 -0700)]
Refer to the return value on nameindex and friends as a string, not a byte
string.  The code was fixed to return strings instead of bytes and to accept
either.

14 years agomerged
Martin v. Löwis [Mon, 23 May 2011 05:04:05 +0000 (07:04 +0200)]
merged

14 years agoAdd 3.2.1rc2 uuid.
Martin v. Löwis [Mon, 23 May 2011 05:02:07 +0000 (07:02 +0200)]
Add 3.2.1rc2 uuid.

14 years agoIssue #12151: test_logging writes debug messages to stderr, not stdout
Victor Stinner [Sun, 22 May 2011 23:16:44 +0000 (01:16 +0200)]
Issue #12151: test_logging writes debug messages to stderr, not stdout

stdout are lost in buildbots

14 years agoskip more tests in packaging if threading is not supported
Tarek Ziade [Sun, 22 May 2011 22:41:27 +0000 (00:41 +0200)]
skip more tests in packaging if threading is not supported

14 years agonot using a server name anymore as the 127.0.0.1 <> localhost symmetry is not true...
Tarek Ziade [Sun, 22 May 2011 21:25:48 +0000 (23:25 +0200)]
not using a server name anymore as the 127.0.0.1 <> localhost symmetry is not true under Windows 7

14 years agoIssue #10801: Remove a debug print() from test_zipfile
Victor Stinner [Sun, 22 May 2011 20:12:27 +0000 (22:12 +0200)]
Issue #10801: Remove a debug print() from test_zipfile

14 years agoIssue 12132 - skip the test_buil_ext test if the xx module is not found
Tarek Ziade [Sun, 22 May 2011 20:09:55 +0000 (22:09 +0200)]
Issue 12132 - skip the test_buil_ext test if the xx module is not found

14 years agoIssue 10126 - backported distutils fix for the enable-share mode into packaging
Tarek Ziade [Sun, 22 May 2011 19:21:44 +0000 (21:21 +0200)]
Issue 10126 - backported distutils fix for the enable-share mode into packaging

14 years agoIssue #12105: Add O_CLOEXEC to the os module.
Charles-François Natali [Sun, 22 May 2011 18:42:32 +0000 (20:42 +0200)]
Issue #12105: Add O_CLOEXEC to the os module.

14 years agoIssue #12138: fix use of transient_internet() in test_urllibnet
Antoine Pitrou [Sun, 22 May 2011 15:35:48 +0000 (17:35 +0200)]
Issue #12138: fix use of transient_internet() in test_urllibnet

14 years agoIssue #12138: fix use of transient_internet() in test_urllibnet
Antoine Pitrou [Sun, 22 May 2011 15:35:17 +0000 (17:35 +0200)]
Issue #12138: fix use of transient_internet() in test_urllibnet

14 years agoregrtest: enable faulthandler in main() instead of if __name__ == '__main__':
Victor Stinner [Sun, 22 May 2011 13:27:14 +0000 (15:27 +0200)]
regrtest: enable faulthandler in main() instead of if __name__ == '__main__':

So it's also enabled when using "./python -m test".

14 years agoIssue #12079: Decimal(0).fma(Decimal('inf'), 'not a number') should give a TypeError...
Mark Dickinson [Sun, 22 May 2011 11:53:18 +0000 (12:53 +0100)]
Issue #12079: Decimal(0).fma(Decimal('inf'), 'not a number') should give a TypeError, not a Decimal.InvalidOperation

14 years agoAdd 3.2.1rc2 uuid.
Martin v. Loewis [Sun, 22 May 2011 10:59:35 +0000 (12:59 +0200)]
Add 3.2.1rc2 uuid.

14 years agoIssue 12126: removing incorrect claim about return value of select
Eli Bendersky [Sun, 22 May 2011 03:59:49 +0000 (06:59 +0300)]
Issue 12126: removing incorrect claim about return value of select
merge 3.2 -> default

14 years agoIssue 12126: removing incorrect claim about return value of select
Eli Bendersky [Sun, 22 May 2011 03:57:17 +0000 (06:57 +0300)]
Issue 12126: removing incorrect claim about return value of select
merge 3.1 -> 3.2

14 years agoIssue 12126: removing incorrect claim about return value of select
Eli Bendersky [Sun, 22 May 2011 03:56:15 +0000 (06:56 +0300)]
Issue 12126: removing incorrect claim about return value of select

14 years agoIssue #12131: Ensure that the sysconfig.cfg file, introduced by packaging,
Ned Deily [Sat, 21 May 2011 23:06:58 +0000 (16:06 -0700)]
Issue #12131: Ensure that the sysconfig.cfg file, introduced by packaging,
is installed into the lib directory: prevents startup exception in site.py.

14 years agoadded the Content-Length header. that fixes the weird packaging.pypi.errors.HashDoesN...
Tarek Ziade [Sat, 21 May 2011 21:59:09 +0000 (23:59 +0200)]
added the Content-Length header. that fixes the weird packaging.pypi.errors.HashDoesNotMatch errors

14 years agodeactivating one test under win32 for now
Tarek Ziade [Sat, 21 May 2011 21:05:19 +0000 (23:05 +0200)]
deactivating one test under win32 for now