Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #8603: Environ.data is now protected -> Environ._data | Victor Stinner | 2010-09-10 | 2 | -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 PYTHONFSENCODING | Victor Stinner | 2010-09-10 | 1 | -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 local | Amaury Forgeot d'Arc | 2010-09-10 | 4 | -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'Arc | 2010-09-10 | 1 | -13/+13 |
| | | | | Use it here again. | ||||
* | Issue #941346: Improve the build process under AIX and allow Python to | Antoine Pitrou | 2010-09-10 | 1 | -0/+3 |
| | | | | be built as a shared library. Patch by Sébastien Sablé. | ||||
* | Use the "if 1:" prefix so that quoted code appears nicely | Amaury Forgeot d'Arc | 2010-09-10 | 1 | -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 Coghlan | 2010-09-10 | 1 | -6/+2 |
| | | | | dis.show_code | ||||
* | Leave show_code out of __all__ and make it clear that its lack of ↵ | Nick Coghlan | 2010-09-10 | 1 | -1/+5 |
| | | | | documentation is deliberate | ||||
* | Fix dis.__all__ for new additions to module in 3.2(spotted by Eli Bendersky) | Nick Coghlan | 2010-09-10 | 1 | -2/+2 |
| | |||||
* | Issue #9819: fix TESTFN_UNENCODABLE for japanese code page | Victor Stinner | 2010-09-10 | 1 | -2/+3 |
| | |||||
* | logging: Added threading interlock in basicConfig(). | Vinay Sajip | 2010-09-10 | 1 | -16/+22 |
| | |||||
* | Skip socket tests that require the network, if the network resource is not ↵ | Daniel Stutzbach | 2010-09-09 | 1 | -0/+2 |
| | | | | enabled | ||||
* | Remove workaround | Antoine Pitrou | 2010-09-09 | 1 | -3/+1 |
| | |||||
* | Issue #9804: ascii() now always represents unicode surrogate pairs as | Antoine Pitrou | 2010-09-09 | 2 | -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 to | Antoine Pitrou | 2010-09-09 | 3 | -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_ssl | Antoine Pitrou | 2010-09-09 | 1 | -130/+131 |
| | | | | (svn.python.org is sometimes unavailable) | ||||
* | Issue #9757: memoryview objects get a release() method to release the | Antoine Pitrou | 2010-09-09 | 1 | -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 Hettinger | 2010-09-09 | 2 | -3/+22 |
| | |||||
* | A little bit more readable repr method. | Raymond Hettinger | 2010-09-09 | 1 | -3/+3 |
| | |||||
* | Experiment: Let collections.namedtuple() do the work. This should work now ↵ | Raymond Hettinger | 2010-09-09 | 1 | -39/+3 |
| | | | | that _collections is pre-built. The buildbots will tell us shortly. | ||||
* | Improve the repr for the TokenInfo named tuple. | Raymond Hettinger | 2010-09-09 | 1 | -1/+28 |
| | |||||
* | Add docstring to cmd.Cmd.do_help() | Raymond Hettinger | 2010-09-09 | 2 | -4/+5 |
| | |||||
* | Fix issue 9794: adds context manager protocol to socket.socket so that ↵ | Giampaolo Rodolà | 2010-09-08 | 2 | -0/+51 |
| | | | | socket.create_connection() can be used with the 'with' statement. | ||||
* | gdb: fix representation of non-printable surrogate pairs, and workaround | Antoine Pitrou | 2010-09-08 | 1 | -1/+3 |
| | | | | a bug in ascii(). | ||||
* | Improve variable name (don't shadow a builtin). | Raymond Hettinger | 2010-09-08 | 1 | -3/+3 |
| | |||||
* | One more conversion from pow() to **. | Raymond Hettinger | 2010-09-08 | 1 | -1/+1 |
| | |||||
* | * Remove dependency on binascii.hexlify by using int.from_bytes(). | Raymond Hettinger | 2010-09-08 | 1 | -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 Sajip | 2010-09-08 | 1 | -0/+52 |
| | |||||
* | In the case where only a user supplied random() method is available, | Raymond Hettinger | 2010-09-08 | 1 | -12/+12 |
| | | | | adopt a strategy that makes the fewest calls to random(). | ||||
* | Follow-up to #9199: Fix str.join use, add newlines. | Éric Araujo | 2010-09-08 | 1 | -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 Araujo | 2010-09-07 | 1 | -1/+2 |
| | |||||
* | Fix eon-old bug in build_clib options (#1718574) | Éric Araujo | 2010-09-07 | 1 | -2/+2 |
| | |||||
* | Issue #9707: Rewritten reference implementation of threading.local which | Antoine Pitrou | 2010-09-07 | 2 | -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 gaierrors | Antoine Pitrou | 2010-09-07 | 1 | -1/+10 |
| | |||||
* | #6394: Add os.getppid() support for Windows. | Amaury Forgeot d'Arc | 2010-09-07 | 1 | -0/+12 |
| | |||||
* | Improve transient_internet() again to detect more network errors, | Antoine Pitrou | 2010-09-07 | 2 | -22/+39 |
| | | | | and use it in test_robotparser. Fixes #8574. | ||||
* | Issue #9792: In case of connection failure, socket.create_connection() | Antoine Pitrou | 2010-09-07 | 2 | -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 Pitrou | 2010-09-07 | 2 | -11/+35 |
| | | | | Original patch by Victor. | ||||
* | Neaten-up comments and warning message. | Raymond Hettinger | 2010-09-07 | 1 | -4/+4 |
| | |||||
* | Minor refactoring and cleanup. Extend looping randrange() technique to ↵ | Raymond Hettinger | 2010-09-07 | 1 | -20/+23 |
| | | | | subclasses. | ||||
* | Issue #9758: When fcntl.ioctl() was called with mutable_flag set to True, | Antoine Pitrou | 2010-09-07 | 1 | -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 Hettinger | 2010-09-07 | 1 | -4/+0 |
| | |||||
* | Fix test that depends on a particular implementation of random.choice(). | Raymond Hettinger | 2010-09-07 | 2 | -27/+24 |
| | |||||
* | Adjust #8956 to add the bad signal number to the exception message. | Brian Curtin | 2010-09-07 | 1 | -1/+1 |
| | |||||
* | Fix corner case for Random.choice() and add tests. | Raymond Hettinger | 2010-09-07 | 2 | -1/+12 |
| | |||||
* | Small clean-ups. | Raymond Hettinger | 2010-09-07 | 1 | -29/+12 |
| | |||||
* | Issues #7889, #9025 and #9379: Improvements to the random module. | Raymond Hettinger | 2010-09-07 | 2 | -24/+29 |
| | |||||
* | Minor code cleanup | Raymond Hettinger | 2010-09-07 | 1 | -4/+4 |
| | |||||
* | Document which part of the random module module are guaranteed. | Raymond Hettinger | 2010-09-07 | 2 | -3/+27 |
| | |||||
* | More docstring updates | Amaury Forgeot d'Arc | 2010-09-06 | 1 | -1/+2 |
| |