]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
10 years agoIssue #25410: C implementation of OrderedDict now uses type(self) instead of
Serhiy Storchaka [Thu, 22 Oct 2015 17:19:14 +0000 (20:19 +0300)] 
Issue #25410: C implementation of OrderedDict now uses type(self) instead of
self.__class__ in __repr__() and __reduce__() for simplicity and reliability.

10 years agoIssue #25410: C implementation of OrderedDict now uses type(self) instead of
Serhiy Storchaka [Thu, 22 Oct 2015 17:18:24 +0000 (20:18 +0300)] 
Issue #25410: C implementation of OrderedDict now uses type(self) instead of
self.__class__ in __repr__() and __reduce__() for simplicity and reliability.

10 years agoMerge with 3.5
Terry Jan Reedy [Thu, 22 Oct 2015 07:27:57 +0000 (03:27 -0400)] 
Merge with 3.5

10 years agoMerge with 3.4
Terry Jan Reedy [Thu, 22 Oct 2015 07:27:44 +0000 (03:27 -0400)] 
Merge with 3.4

10 years agoIssue #24782: Limit width of canvas and hence IDLE settings dialog.
Terry Jan Reedy [Thu, 22 Oct 2015 07:27:31 +0000 (03:27 -0400)] 
Issue #24782: Limit width of canvas and hence IDLE settings dialog.

10 years agoIssue #25210: Add some basic tests for the new exception message
Berker Peksag [Thu, 22 Oct 2015 04:49:36 +0000 (07:49 +0300)] 
Issue #25210: Add some basic tests for the new exception message

10 years agoIssue #25417: Remove the extra dot from docstring
Berker Peksag [Thu, 22 Oct 2015 00:34:35 +0000 (03:34 +0300)] 
Issue #25417: Remove the extra dot from docstring

10 years agoIssue #25417: Remove the extra dot from docstring
Berker Peksag [Thu, 22 Oct 2015 00:34:16 +0000 (03:34 +0300)] 
Issue #25417: Remove the extra dot from docstring

10 years agoIssue #23981: Update test_unicodedata to use script_helpers
Berker Peksag [Thu, 22 Oct 2015 00:29:34 +0000 (03:29 +0300)] 
Issue #23981: Update test_unicodedata to use script_helpers

Patch by Christie.

10 years agoIssue #23981: Update test_unicodedata to use script_helpers
Berker Peksag [Thu, 22 Oct 2015 00:29:10 +0000 (03:29 +0300)] 
Issue #23981: Update test_unicodedata to use script_helpers

Patch by Christie.

10 years agoIssue #25417: Fix typo in Path.samefile() docstring
Berker Peksag [Wed, 21 Oct 2015 17:10:44 +0000 (20:10 +0300)] 
Issue #25417: Fix typo in Path.samefile() docstring

Reported by Antony Lee.

10 years agoIssue #25417: Fix typo in Path.samefile() docstring
Berker Peksag [Wed, 21 Oct 2015 17:10:24 +0000 (20:10 +0300)] 
Issue #25417: Fix typo in Path.samefile() docstring

Reported by Antony Lee.

10 years agoNull merge with 3.5
Berker Peksag [Wed, 21 Oct 2015 13:39:59 +0000 (16:39 +0300)] 
Null merge with 3.5

10 years agoFix merge conflict artifacts and move the entry to correct place
Berker Peksag [Wed, 21 Oct 2015 13:38:36 +0000 (16:38 +0300)] 
Fix merge conflict artifacts and move the entry to correct place

10 years agoMerge 3.5
Victor Stinner [Tue, 20 Oct 2015 22:15:17 +0000 (00:15 +0200)] 
Merge 3.5

10 years agoIssue #21515: Elaborate tempfile.TemporaryFile() comment
Victor Stinner [Tue, 20 Oct 2015 22:15:08 +0000 (00:15 +0200)] 
Issue #21515: Elaborate tempfile.TemporaryFile() comment

Explain why calling os.open() with os.O_TMPFILE is a safe test to check if
O_TMPFILE is supported by the running kernel.

10 years agoIssue #25410: Fixed a memory leak in OrderedDict in the case when key's hash
Serhiy Storchaka [Tue, 20 Oct 2015 15:22:36 +0000 (18:22 +0300)] 
Issue #25410: Fixed a memory leak in OrderedDict in the case when key's hash
calculation fails.

10 years agoIssue #25410: Fixed a memory leak in OrderedDict in the case when key's hash
Serhiy Storchaka [Tue, 20 Oct 2015 15:21:48 +0000 (18:21 +0300)] 
Issue #25410: Fixed a memory leak in OrderedDict in the case when key's hash
calculation fails.

10 years agoOnly update the state variable once per iteration.
Raymond Hettinger [Tue, 20 Oct 2015 07:03:33 +0000 (00:03 -0700)] 
Only update the state variable once per iteration.

10 years agoMerge with 3.5
Terry Jan Reedy [Tue, 20 Oct 2015 06:15:59 +0000 (02:15 -0400)] 
Merge with 3.5

10 years agoMerge with 3.4
Terry Jan Reedy [Tue, 20 Oct 2015 06:15:43 +0000 (02:15 -0400)] 
Merge with 3.4

10 years agoIssue #24782: Don't try to run now-removed extension dialog test.
Terry Jan Reedy [Tue, 20 Oct 2015 06:15:28 +0000 (02:15 -0400)] 
Issue #24782: Don't try to run now-removed extension dialog test.

10 years agoRemove double 'error'.
Terry Jan Reedy [Tue, 20 Oct 2015 05:07:53 +0000 (01:07 -0400)] 
Remove double 'error'.

10 years agoSilence a "unused rule" warning
Berker Peksag [Tue, 20 Oct 2015 00:59:41 +0000 (03:59 +0300)] 
Silence a "unused rule" warning

This one should make Docs 3.5 and Docs 3.x green again.

10 years agoSilence a "unused rule" warning
Berker Peksag [Tue, 20 Oct 2015 00:59:24 +0000 (03:59 +0300)] 
Silence a "unused rule" warning

This one should make Docs 3.5 and Docs 3.x green again.

10 years agorstlint: Fix "default role used" warning
Berker Peksag [Tue, 20 Oct 2015 00:42:17 +0000 (03:42 +0300)] 
rstlint: Fix "default role used" warning

This should make buildbots green.

10 years agorstlint: Fix "default role used" warning
Berker Peksag [Tue, 20 Oct 2015 00:41:59 +0000 (03:41 +0300)] 
rstlint: Fix "default role used" warning

This should make buildbots green.

10 years agorstlint: Fix "default role used" warning
Berker Peksag [Tue, 20 Oct 2015 00:41:38 +0000 (03:41 +0300)] 
rstlint: Fix "default role used" warning

This should make buildbots green.

10 years agoIssue #25390: typing: Don't crash on Union[str, Pattern]. (Merge 3.5->3.6)
Guido van Rossum [Mon, 19 Oct 2015 21:56:25 +0000 (14:56 -0700)] 
Issue #25390: typing: Don't crash on Union[str, Pattern]. (Merge 3.5->3.6)

10 years agoIssue #25390: typing: Don't crash on Union[str, Pattern].
Guido van Rossum [Mon, 19 Oct 2015 21:55:47 +0000 (14:55 -0700)] 
Issue #25390: typing: Don't crash on Union[str, Pattern].

10 years agoIssue #24885: Update note in docs about stream convenience functions. (Merge 3.5...
Guido van Rossum [Mon, 19 Oct 2015 20:19:08 +0000 (13:19 -0700)] 
Issue #24885: Update note in docs about stream convenience functions. (Merge 3.5->3.6)

10 years agoIssue #24885: Update note in docs about stream convenience functions. (Merge 3.4...
Guido van Rossum [Mon, 19 Oct 2015 20:18:40 +0000 (13:18 -0700)] 
Issue #24885: Update note in docs about stream convenience functions. (Merge 3.4->3.5)

10 years agoIssue #24885: Update note in docs about stream convenience functions.
Guido van Rossum [Mon, 19 Oct 2015 20:18:04 +0000 (13:18 -0700)] 
Issue #24885: Update note in docs about stream convenience functions.

10 years agoFix whitespace.
Guido van Rossum [Mon, 19 Oct 2015 19:00:44 +0000 (12:00 -0700)] 
Fix whitespace.

10 years agoFix whitespace.
Guido van Rossum [Mon, 19 Oct 2015 19:00:25 +0000 (12:00 -0700)] 
Fix whitespace.

10 years agoFix whitespace.
Guido van Rossum [Mon, 19 Oct 2015 19:00:04 +0000 (12:00 -0700)] 
Fix whitespace.

10 years agoIssue #25441: asyncio: Raise error from drain() when socket is closed. (Merge 3.5...
Guido van Rossum [Mon, 19 Oct 2015 18:55:10 +0000 (11:55 -0700)] 
Issue #25441: asyncio: Raise error from drain() when socket is closed. (Merge 3.5->3.6)

10 years agoIssue #25441: asyncio: Raise error from drain() when socket is closed. (Merge 3.4...
Guido van Rossum [Mon, 19 Oct 2015 18:54:04 +0000 (11:54 -0700)] 
Issue #25441: asyncio: Raise error from drain() when socket is closed. (Merge 3.4->3.5)

10 years agoIssue #25441: asyncio: Raise error from drain() when socket is closed.
Guido van Rossum [Mon, 19 Oct 2015 18:49:30 +0000 (11:49 -0700)] 
Issue #25441: asyncio: Raise error from drain() when socket is closed.

10 years ago- Issue #25440: Fix output of python-config --extension-suffix.
doko@ubuntu.com [Mon, 19 Oct 2015 12:15:27 +0000 (14:15 +0200)] 
- Issue #25440: Fix output of python-config --extension-suffix.

10 years ago- Issue #25440: Fix output of python-config --extension-suffix.
doko@ubuntu.com [Mon, 19 Oct 2015 12:13:35 +0000 (14:13 +0200)] 
- Issue #25440: Fix output of python-config --extension-suffix.

10 years ago- Issue #25440: Fix output of python-config --extension-suffix.
doko@ubuntu.com [Mon, 19 Oct 2015 12:07:57 +0000 (14:07 +0200)] 
- Issue #25440: Fix output of python-config --extension-suffix.

10 years agoFix another typo noticed by SilentGhost
Berker Peksag [Sun, 18 Oct 2015 21:56:59 +0000 (00:56 +0300)] 
Fix another typo noticed by SilentGhost

10 years agoFix another typo noticed by SilentGhost
Berker Peksag [Sun, 18 Oct 2015 21:56:39 +0000 (00:56 +0300)] 
Fix another typo noticed by SilentGhost

10 years agoIssue #25434: Fix typo in whatsnew/3.5rst
Berker Peksag [Sun, 18 Oct 2015 17:22:38 +0000 (20:22 +0300)] 
Issue #25434: Fix typo in whatsnew/3.5rst

Patch by Louis Sautier.

10 years agoIssue #25434: Fix typo in whatsnew/3.5rst
Berker Peksag [Sun, 18 Oct 2015 17:22:15 +0000 (20:22 +0300)] 
Issue #25434: Fix typo in whatsnew/3.5rst

Patch by Louis Sautier.

10 years agoIssue #25410: Cleaned up and fixed minor bugs in C implementation of OrderedDict.
Serhiy Storchaka [Sun, 18 Oct 2015 06:54:42 +0000 (09:54 +0300)] 
Issue #25410: Cleaned up and fixed minor bugs in C implementation of OrderedDict.

10 years agoIssue #25410: Cleaned up and fixed minor bugs in C implementation of OrderedDict.
Serhiy Storchaka [Sun, 18 Oct 2015 06:53:17 +0000 (09:53 +0300)] 
Issue #25410: Cleaned up and fixed minor bugs in C implementation of OrderedDict.

10 years agoCloses #25411: Merged fix from 3.5.
Vinay Sajip [Sat, 17 Oct 2015 15:24:23 +0000 (16:24 +0100)] 
Closes #25411: Merged fix from 3.5.

10 years agoCloses #25411: Merged fix from 3.4.
Vinay Sajip [Sat, 17 Oct 2015 15:17:52 +0000 (16:17 +0100)] 
Closes #25411: Merged fix from 3.4.

10 years agoCloses #25411: Improved Unicode support in SMTPHandler.
Vinay Sajip [Sat, 17 Oct 2015 15:13:10 +0000 (16:13 +0100)] 
Closes #25411: Improved Unicode support in SMTPHandler.

10 years agoMerged cookbook update from 3.5.
Vinay Sajip [Sat, 17 Oct 2015 12:59:41 +0000 (13:59 +0100)] 
Merged cookbook update from 3.5.

10 years agoMerged cookbook update from 3.4.
Vinay Sajip [Sat, 17 Oct 2015 12:59:12 +0000 (13:59 +0100)] 
Merged cookbook update from 3.4.

10 years agoAdded entry to logging cookbook.
Vinay Sajip [Sat, 17 Oct 2015 12:58:19 +0000 (13:58 +0100)] 
Added entry to logging cookbook.

10 years agoIssue #25414: Remove unnecessary tests that can never succeed.
Raymond Hettinger [Sat, 17 Oct 2015 05:47:29 +0000 (22:47 -0700)] 
Issue #25414: Remove unnecessary tests that can never succeed.

10 years agoIssue 25422: Add tests for multi-line string tokenization. Also remove truncated...
Eric V. Smith [Sat, 17 Oct 2015 00:45:53 +0000 (20:45 -0400)] 
Issue 25422: Add tests for multi-line string tokenization. Also remove truncated tokens.

10 years agoIssue #25154: Deprecate the pyvenv script.
Brett Cannon [Fri, 16 Oct 2015 22:14:27 +0000 (15:14 -0700)] 
Issue #25154: Deprecate the pyvenv script.

This was done so as to move users to `python3 -m venv` which prevents
confusion over which Python interpreter will be used in the virtual
environment when more than one is installed.

10 years agoUpgrade the imp module's deprecation to DeprecationWarning.
Brett Cannon [Fri, 16 Oct 2015 19:21:37 +0000 (12:21 -0700)] 
Upgrade the imp module's deprecation to DeprecationWarning.

10 years agoMerge for issue #25407
Brett Cannon [Fri, 16 Oct 2015 19:09:56 +0000 (12:09 -0700)] 
Merge for issue #25407

10 years agoIssue #25407: Drop the mention of the formatter module being removed
Brett Cannon [Fri, 16 Oct 2015 19:09:33 +0000 (12:09 -0700)] 
Issue #25407: Drop the mention of the formatter module being removed
in Python 3.6.

The new PEP 4 policy of any module existing in both 2.7 and 3.5
applies here, hence the module will be with us for a bit longer.

10 years agoIssue #25418: Fix markup in object.__hash__ documentation
Berker Peksag [Fri, 16 Oct 2015 08:23:31 +0000 (11:23 +0300)] 
Issue #25418: Fix markup in object.__hash__ documentation

Patch by TAKASE Arihiro.

10 years agoIssue #25418: Fix markup in object.__hash__ documentation
Berker Peksag [Fri, 16 Oct 2015 08:23:11 +0000 (11:23 +0300)] 
Issue #25418: Fix markup in object.__hash__ documentation

Patch by TAKASE Arihiro.

10 years agoIssue #25418: Fix markup in object.__hash__ documentation
Berker Peksag [Fri, 16 Oct 2015 08:22:50 +0000 (11:22 +0300)] 
Issue #25418: Fix markup in object.__hash__ documentation

Patch by TAKASE Arihiro.

10 years agoRemove old Todo entry that isn't going to happen.
Raymond Hettinger [Fri, 16 Oct 2015 06:25:53 +0000 (23:25 -0700)] 
Remove old Todo entry that isn't going to happen.

10 years agoRewrap comment.
Raymond Hettinger [Thu, 15 Oct 2015 15:05:31 +0000 (08:05 -0700)] 
Rewrap comment.

10 years agoUse unsigned division
Raymond Hettinger [Thu, 15 Oct 2015 06:33:23 +0000 (23:33 -0700)] 
Use unsigned division

10 years agoImprove variable names and constant expressions
Raymond Hettinger [Thu, 15 Oct 2015 06:16:57 +0000 (23:16 -0700)] 
Improve variable names and constant expressions

10 years agoMerge from 3.5
Steve Dower [Wed, 14 Oct 2015 17:41:52 +0000 (10:41 -0700)] 
Merge from 3.5

10 years agoEnabled --pgo option for building 64-bit PGO enabled releases.
Steve Dower [Wed, 14 Oct 2015 17:40:09 +0000 (10:40 -0700)] 
Enabled --pgo option for building 64-bit PGO enabled releases.

10 years agoIssue #25164: Changes default all-users install directory to match per-user directory.
Steve Dower [Wed, 14 Oct 2015 17:36:36 +0000 (10:36 -0700)] 
Issue #25164: Changes default all-users install directory to match per-user directory.

10 years agoIssue #25210: Change error message of do_richcompare()
Victor Stinner [Wed, 14 Oct 2015 16:25:31 +0000 (18:25 +0200)] 
Issue #25210: Change error message of do_richcompare()

Don't add parenthesis to type names. Add also quotes around the type names.

Before:

  TypeError: unorderable types: int() < NoneType()

After:

  TypeError: '<' not supported between instances of 'int' and 'NoneType'

10 years agoIssue #25406: Fixed a bug in C implementation of OrderedDict.move_to_end()
Serhiy Storchaka [Wed, 14 Oct 2015 16:22:44 +0000 (19:22 +0300)] 
Issue #25406: Fixed a bug in C implementation of OrderedDict.move_to_end()
that caused segmentation fault or hang in iterating after moving several
items to the start of ordered dict.

10 years agoIssue #25406: Fixed a bug in C implementation of OrderedDict.move_to_end()
Serhiy Storchaka [Wed, 14 Oct 2015 16:21:24 +0000 (19:21 +0300)] 
Issue #25406: Fixed a bug in C implementation of OrderedDict.move_to_end()
that caused segmentation fault or hang in iterating after moving several
items to the start of ordered dict.

10 years agotest_bytes: new try to fix test on '%p' formatter on Windows
Victor Stinner [Wed, 14 Oct 2015 13:28:59 +0000 (15:28 +0200)] 
test_bytes: new try to fix test on '%p' formatter on Windows

10 years agoRefactor binascii.rledecode_hqx()
Victor Stinner [Wed, 14 Oct 2015 13:20:07 +0000 (15:20 +0200)] 
Refactor binascii.rledecode_hqx()

Rewrite the code to handle the output buffer.

10 years agoIssue #25384: Fix binascii.rledecode_hqx()
Victor Stinner [Wed, 14 Oct 2015 13:02:35 +0000 (15:02 +0200)] 
Issue #25384: Fix binascii.rledecode_hqx()

Fix usage of _PyBytesWriter API. Use the new _PyBytesWriter_Resize() function
instead of _PyBytesWriter_Prepare().

10 years agoUse _PyBytesWriter in _PyBytes_FromIterator()
Victor Stinner [Wed, 14 Oct 2015 12:15:49 +0000 (14:15 +0200)] 
Use _PyBytesWriter in _PyBytes_FromIterator()

10 years agoAdd _PyBytesWriter_Resize() function
Victor Stinner [Wed, 14 Oct 2015 11:56:47 +0000 (13:56 +0200)] 
Add _PyBytesWriter_Resize() function

This function gives a control to the buffer size without using min_size.

10 years agoFactorize _PyBytes_FromList() and _PyBytes_FromTuple() code using a C macro
Victor Stinner [Wed, 14 Oct 2015 11:50:40 +0000 (13:50 +0200)] 
Factorize _PyBytes_FromList() and _PyBytes_FromTuple() code using a C macro

10 years agoSplit PyBytes_FromObject() into subfunctions
Victor Stinner [Wed, 14 Oct 2015 11:44:29 +0000 (13:44 +0200)] 
Split PyBytes_FromObject() into subfunctions

10 years agoModify _PyBytes_DecodeEscapeRecode() to use _PyBytesAPI
Victor Stinner [Wed, 14 Oct 2015 11:32:13 +0000 (13:32 +0200)] 
Modify _PyBytes_DecodeEscapeRecode() to use _PyBytesAPI

* Don't overallocate by 400% when recode is needed: only overallocate on demand
  using _PyBytesWriter.
* Use _PyLong_DigitValue to convert hexadecimal digit to int
* Create _PyBytes_DecodeEscapeRecode() subfunction

10 years agoFix compiler warnings (uninitialized variables), false alarms in fact
Victor Stinner [Wed, 14 Oct 2015 10:10:20 +0000 (12:10 +0200)] 
Fix compiler warnings (uninitialized variables), false alarms in fact

10 years ago_PyBytesWriter_Alloc(): only use 10 bytes of the small buffer in debug mode to
Victor Stinner [Wed, 14 Oct 2015 10:02:39 +0000 (12:02 +0200)] 
_PyBytesWriter_Alloc(): only use 10 bytes of the small buffer in debug mode to
enhance code to detect buffer under- and overflow.

10 years agoIssue #25401: Remove now unused hex_digit_to_int() function
Victor Stinner [Wed, 14 Oct 2015 09:59:46 +0000 (11:59 +0200)] 
Issue #25401: Remove now unused hex_digit_to_int() function

10 years agoOptimize bytes.fromhex() and bytearray.fromhex()
Victor Stinner [Wed, 14 Oct 2015 09:25:33 +0000 (11:25 +0200)] 
Optimize bytes.fromhex() and bytearray.fromhex()

Issue #25401: Optimize bytes.fromhex() and bytearray.fromhex(): they are now
between 2x and 3.5x faster. Changes:

* Use a fast-path working on a char* string for ASCII string
* Use a slow-path for non-ASCII string
* Replace slow hex_digit_to_int() function with a O(1) lookup in
  _PyLong_DigitValue precomputed table
* Use _PyBytesWriter API to handle the buffer
* Add unit tests to check the error position in error messages

10 years agoDocument latest optimizations using _PyBytesWriter
Victor Stinner [Wed, 14 Oct 2015 08:10:00 +0000 (10:10 +0200)] 
Document latest optimizations using _PyBytesWriter

10 years agoOptimize bytearray % args
Victor Stinner [Wed, 14 Oct 2015 07:56:53 +0000 (09:56 +0200)] 
Optimize bytearray % args

Issue #25399: Don't create temporary bytes objects: modify _PyBytes_Format() to
create work directly on bytearray objects.

* Rename _PyBytes_Format() to _PyBytes_FormatEx() just in case if something
  outside CPython uses it
* _PyBytes_FormatEx() now uses (char*, Py_ssize_t) for the input string, so
  bytearray_format() doesn't need tot create a temporary input bytes object
* Add use_bytearray parameter to _PyBytes_FormatEx() which is passed to
  _PyBytesWriter, to create a bytearray buffer instead of a bytes buffer

Most formatting operations are now between 2.5 and 5 times faster.

10 years agoAdd use_bytearray attribute to _PyBytesWriter
Victor Stinner [Wed, 14 Oct 2015 07:41:48 +0000 (09:41 +0200)] 
Add use_bytearray attribute to _PyBytesWriter

Issue #25399: Add a new use_bytearray attribute to _PyBytesWriter to use a
bytearray buffer, instead of using a bytes object.

10 years agoFix long_format_binary()
Victor Stinner [Wed, 14 Oct 2015 07:47:23 +0000 (09:47 +0200)] 
Fix long_format_binary()

Issue #25399: Fix long_format_binary(), allocate bytes for the bytes writer.

10 years agoMerge with 3.5
Terry Jan Reedy [Wed, 14 Oct 2015 02:09:34 +0000 (22:09 -0400)] 
Merge with 3.5

10 years agoMerge with 3.4
Terry Jan Reedy [Wed, 14 Oct 2015 02:09:19 +0000 (22:09 -0400)] 
Merge with 3.4

10 years agoIssue #24782: whitespace
Terry Jan Reedy [Wed, 14 Oct 2015 02:09:06 +0000 (22:09 -0400)] 
Issue #24782: whitespace

10 years agoMerge with 3.5
Terry Jan Reedy [Wed, 14 Oct 2015 02:04:22 +0000 (22:04 -0400)] 
Merge with 3.5

10 years agoMerge with 3.4
Terry Jan Reedy [Wed, 14 Oct 2015 02:04:07 +0000 (22:04 -0400)] 
Merge with 3.4

10 years agoIssue #24782: Finish converting the Configure Extension dialog into a new
Terry Jan Reedy [Wed, 14 Oct 2015 02:03:51 +0000 (22:03 -0400)] 
Issue #24782: Finish converting the Configure Extension dialog into a new
tab in the IDLE Preferences dialog.  Code patch by Mark Roseman.

10 years agoFix test_bytes on Windows
Victor Stinner [Wed, 14 Oct 2015 00:55:12 +0000 (02:55 +0200)] 
Fix test_bytes on Windows

On Windows, sprintf("%p", 0xabcdef) formats hexadecimal in uppercase and pad to
16 characters (on 64-bit system) with zeros.

10 years agoRewrite PyBytes_FromFormatV() using _PyBytesWriter API
Victor Stinner [Tue, 13 Oct 2015 22:21:35 +0000 (00:21 +0200)] 
Rewrite PyBytes_FromFormatV() using _PyBytesWriter API

* Add much more unit tests on PyBytes_FromFormatV()
* Remove the first loop to compute the length of the output string
* Use _PyBytesWriter to handle the bytes buffer, use overallocation
* Cleanup the code to make simpler and easier to review

10 years agoIssue #24164: Document changes to __getnewargs__ and __getnewargs_ex__.
Serhiy Storchaka [Tue, 13 Oct 2015 18:26:35 +0000 (21:26 +0300)] 
Issue #24164: Document changes to __getnewargs__ and __getnewargs_ex__.

10 years agoIssue #25382: pickletools.dis() now outputs implicit memo index for the
Serhiy Storchaka [Tue, 13 Oct 2015 18:20:14 +0000 (21:20 +0300)] 
Issue #25382: pickletools.dis() now outputs implicit memo index for the
MEMOIZE opcode.

10 years agoIssue #25380: Fixed protocol for the STACK_GLOBAL opcode in
Serhiy Storchaka [Tue, 13 Oct 2015 18:14:01 +0000 (21:14 +0300)] 
Issue #25380: Fixed protocol for the STACK_GLOBAL opcode in
pickletools.opcodes.