summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Issue #8603: Environ.data is now protected -> Environ._dataVictor Stinner2010-09-102-9/+8
| | | | | os.environ.data was a str dict in Python 3.1. In Python 3.2 on UNIX/BSD, os.environ.data is now a bytes dict: mark it as protected to avoid confusion.
* Issue #9632: Remove sys.setfilesystemencoding() function: use PYTHONFSENCODINGVictor Stinner2010-09-101-11/+0
| | | | | | environment variable to set the filesystem encoding at Python startup. sys.setfilesystemencoding() creates inconsistencies because it is unable to reencode all filenames in all objects.
* #4617: Previously it was illegal to delete a name from the localAmaury Forgeot d'Arc2010-09-104-16/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | namespace if it occurs as a free variable in a nested block. This limitation of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF). This sample was valid in 2.6, but fails to compile in 3.x without this change:: >>> def f(): ... def print_error(): ... print(e) ... try: ... something ... except Exception as e: ... print_error() ... # implicit "del e" here This sample has always been invalid in Python, and now works:: >>> def outer(x): ... def inner(): ... return x ... inner() ... del x There is no need to bump the PYC magic number: the new opcode is used for code that did not compile before.
* The "if 1": trick seems cleaner that the one with regular expressions.Amaury Forgeot d'Arc2010-09-101-13/+13
| | | | Use it here again.
* Issue #941346: Improve the build process under AIX and allow Python toAntoine Pitrou2010-09-101-0/+3
| | | | be built as a shared library. Patch by Sébastien Sablé.
* Use the "if 1:" prefix so that quoted code appears nicelyAmaury Forgeot d'Arc2010-09-101-167/+167
| | | | | | | | | | | nested inside the test suite. def test_me(): exec("""if 1: ...code... """) No other change here.
* As per python-dev discussion with Eli, properly document and publish ↵Nick Coghlan2010-09-101-6/+2
| | | | dis.show_code
* Leave show_code out of __all__ and make it clear that its lack of ↵Nick Coghlan2010-09-101-1/+5
| | | | documentation is deliberate
* Fix dis.__all__ for new additions to module in 3.2(spotted by Eli Bendersky)Nick Coghlan2010-09-101-2/+2
|
* Issue #9819: fix TESTFN_UNENCODABLE for japanese code pageVictor Stinner2010-09-101-2/+3
|
* logging: Added threading interlock in basicConfig().Vinay Sajip2010-09-101-16/+22
|
* Skip socket tests that require the network, if the network resource is not ↵Daniel Stutzbach2010-09-091-0/+2
| | | | enabled
* Remove workaroundAntoine Pitrou2010-09-091-3/+1
|
* Issue #9804: ascii() now always represents unicode surrogate pairs asAntoine Pitrou2010-09-092-11/+47
| | | | | | a single `\UXXXXXXXX`, regardless of whether the character is printable or not. Also, the "backslashreplace" error handler now joins surrogate pairs into a single character on UCS-2 builds.
* Issue #9410: Various optimizations to the pickle module, leading toAntoine Pitrou2010-09-093-7/+29
| | | | | speedups up to 4x (depending on the benchmark). Mostly ported from Unladen Swallow; initial patch by Alexandre Vassalotti.
* Use transient_internet() where appropriate in test_sslAntoine Pitrou2010-09-091-130/+131
| | | | (svn.python.org is sometimes unavailable)
* Issue #9757: memoryview objects get a release() method to release theAntoine Pitrou2010-09-091-0/+45
| | | | | underlying buffer (previously this was only done when deallocating the memoryview), and gain support for the context management protocol.
* Have pprint() respect the order in an OrderedDict.Raymond Hettinger2010-09-092-3/+22
|
* A little bit more readable repr method.Raymond Hettinger2010-09-091-3/+3
|
* Experiment: Let collections.namedtuple() do the work. This should work now ↵Raymond Hettinger2010-09-091-39/+3
| | | | that _collections is pre-built. The buildbots will tell us shortly.
* Improve the repr for the TokenInfo named tuple.Raymond Hettinger2010-09-091-1/+28
|
* Add docstring to cmd.Cmd.do_help()Raymond Hettinger2010-09-092-4/+5
|
* Fix issue 9794: adds context manager protocol to socket.socket so that ↵Giampaolo Rodolà2010-09-082-0/+51
| | | | socket.create_connection() can be used with the 'with' statement.
* gdb: fix representation of non-printable surrogate pairs, and workaroundAntoine Pitrou2010-09-081-1/+3
| | | | a bug in ascii().
* Improve variable name (don't shadow a builtin).Raymond Hettinger2010-09-081-3/+3
|
* One more conversion from pow() to **.Raymond Hettinger2010-09-081-1/+1
|
* * Remove dependency on binascii.hexlify by using int.from_bytes().Raymond Hettinger2010-09-081-10/+9
| | | | | | | * Use the new super() with no arguments. * Replace pow() call with the ** operator. * Increase urandom seeding from 16 bytes to 32 bytes. * Clean-up docstring.
* logging: Added QueueHandler.Vinay Sajip2010-09-081-0/+52
|
* In the case where only a user supplied random() method is available,Raymond Hettinger2010-09-081-12/+12
| | | | adopt a strategy that makes the fewest calls to random().
* Follow-up to #9199: Fix str.join use, add newlines.Éric Araujo2010-09-081-1/+1
| | | | | Thanks to Konrad Delong for writing a test for upload_docs --show-response in distutils2, letting me catch my mistake.
* Fix incorrect use of Command.announce (#9199)Éric Araujo2010-09-071-1/+2
|
* Fix eon-old bug in build_clib options (#1718574)Éric Araujo2010-09-071-2/+2
|
* Issue #9707: Rewritten reference implementation of threading.local whichAntoine Pitrou2010-09-072-85/+80
| | | | | | is friendlier towards reference cycles. This change is not normally visible since an optimized C implementation (_thread._local) is used instead.
* Also catch some gaierrorsAntoine Pitrou2010-09-071-1/+10
|
* #6394: Add os.getppid() support for Windows.Amaury Forgeot d'Arc2010-09-071-0/+12
|
* Improve transient_internet() again to detect more network errors,Antoine Pitrou2010-09-072-22/+39
| | | | and use it in test_robotparser. Fixes #8574.
* Issue #9792: In case of connection failure, socket.create_connection()Antoine Pitrou2010-09-072-9/+43
| | | | | | would swallow the exception and raise a new one, making it impossible to fetch the original errno, or to filter timeout errors. Now the original error is re-raised.
* Issue #8574: better implementation of test.support.transient_internet().Antoine Pitrou2010-09-072-11/+35
| | | | Original patch by Victor.
* Neaten-up comments and warning message.Raymond Hettinger2010-09-071-4/+4
|
* Minor refactoring and cleanup. Extend looping randrange() technique to ↵Raymond Hettinger2010-09-071-20/+23
| | | | subclasses.
* Issue #9758: When fcntl.ioctl() was called with mutable_flag set to True,Antoine Pitrou2010-09-071-5/+26
| | | | | and the passed buffer was exactly 1024 bytes long, the buffer wouldn't be updated back after the system call. Original patch by Brian Brazil.
* Remove invalid test (it was supposed to fail on 64-bit machines.).Raymond Hettinger2010-09-071-4/+0
|
* Fix test that depends on a particular implementation of random.choice().Raymond Hettinger2010-09-072-27/+24
|
* Adjust #8956 to add the bad signal number to the exception message.Brian Curtin2010-09-071-1/+1
|
* Fix corner case for Random.choice() and add tests.Raymond Hettinger2010-09-072-1/+12
|
* Small clean-ups.Raymond Hettinger2010-09-071-29/+12
|
* Issues #7889, #9025 and #9379: Improvements to the random module.Raymond Hettinger2010-09-072-24/+29
|
* Minor code cleanupRaymond Hettinger2010-09-071-4/+4
|
* Document which part of the random module module are guaranteed.Raymond Hettinger2010-09-072-3/+27
|
* More docstring updatesAmaury Forgeot d'Arc2010-09-061-1/+2
|