Commit Graph

15609 Commits

Author SHA1 Message Date
Andrew Kuchling 0e60f85ce4 Merge from 3.3 2013-11-19 11:06:44 -05:00
Andrew Kuchling 30c5ad2aa2 #1098749: re-word gettext docs to not encourage using pygettext so much.
Also, add a link to the Babel package.
2013-11-19 11:05:20 -05:00
Serhiy Storchaka 58cf607d13 Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.

Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
2013-11-19 11:32:41 +02:00
Serhiy Storchaka fd32fffa5a Issue #8402: Added the escape() function to the glob module. 2013-11-18 13:06:43 +02:00
Antoine Pitrou 6dd0d461a4 Issue #17618: Add Base85 and Ascii85 encoding/decoding to the base64 module. 2013-11-17 23:52:25 +01:00
Ezio Melotti 58b7166202 Merge indentation fix in doc example from 3.3. 2013-11-17 22:09:24 +02:00
Ezio Melotti e65cb190a6 Fix indentation in doc example. 2013-11-17 22:07:48 +02:00
Richard Oudkerk cfac5181ed Merge. 2013-11-17 17:03:19 +00:00
Richard Oudkerk edcf8daaed Issue 16998: Clarify that += on a shared value is not atomic. 2013-11-17 17:00:38 +00:00
Antoine Pitrou 6b2b084192 Issue #19508: direct the user to read the security considerations for the ssl module 2013-11-17 15:36:03 +01:00
Antoine Pitrou 9eefe91fc2 Issue #19508: direct the user to read the security considerations for the ssl module 2013-11-17 15:35:33 +01:00
Nick Coghlan c610aba1ed Close #19282: Native context management in dbm 2013-11-17 15:59:51 +10:00
Ezio Melotti eb8ea265ba #19238: merge with 3.3. 2013-11-17 02:47:38 +02:00
Ezio Melotti 2bbdfe7eda #19238: fix typo in documentation. 2013-11-17 02:47:12 +02:00
Ezio Melotti 745d54d2fa #17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs(). 2013-11-16 19:10:57 +02:00
Serhiy Storchaka 452bab4acf Issue #16685: Added support for writing any bytes-like objects in the aifc,
sunau, and wave modules.
2013-11-16 14:01:31 +02:00
Serhiy Storchaka 7714ebbe0e Issue #5202: Added support for unseekable files in the wave module. 2013-11-16 13:04:00 +02:00
Vinay Sajip 9c10d6b800 Issue #19504: Used American spelling for 'customize'. 2013-11-15 20:58:13 +00:00
Andrew Kuchling 587e970be6 Update e-mail address 2013-11-12 10:02:35 -05:00
Jason R. Coombs 3492e39b44 Issue 19544 and Issue #7457: Restore the read_pkg_file method to distutils.dist.DistributionMetadata accidentally removed in the undo of distutils2. 2013-11-10 18:15:03 -05:00
Andrew Kuchling 2a1838b9df Issue #19544 and Issue #1180: Restore global option to ignore ~/.pydistutils.cfg in Distutils, accidentally removed in backout of distutils2 changes. 2013-11-10 18:11:00 -05:00
Vinay Sajip 56b04352f8 Issue #19504: Used American spelling for 'customize'. 2013-11-15 20:58:47 +00:00
Andrew Kuchling 5e2d45672c Issue #19544 and Issue #6516: Restore support for --user and --group parameters to sdist command as found in Python 2.7 and originally slated for Python 3.2 but accidentally rolled back as part of the distutils2 rollback. Closes Issue #6516. 2013-11-15 13:01:52 -05:00
Nick Coghlan d4fdbcc078 Issue #17839: mention base64 change in What's New 2013-11-14 00:24:31 +10:00
Nick Coghlan 8b097b4ed7 Close #17828: better handling of codec errors
- output type errors now redirect users to the type-neutral
  convenience functions in the codecs module
- stateless errors that occur during encoding and decoding
  will now be automatically wrapped in exceptions that give
  the name of the codec involved
2013-11-13 23:49:21 +10:00
Andrew Kuchling 7150787b7e Merge from 3.3 2013-11-12 10:03:20 -05:00
Nick Coghlan d0cf0635b3 Close #19406: Initial implementation of ensurepip
Patch by Donald Stufft and Nick Coghlan
2013-11-11 22:11:55 +10:00
Jason R. Coombs 375dc9b8b4 Merge with 3.3 for Issue #19544 and Issue #7457 2013-11-10 18:21:49 -05:00
Serhiy Storchaka 711e91b283 Issue #16685: Added support for any bytes-like objects in the audioop module.
Removed support for strings.
2013-11-10 21:44:36 +02:00
Serhiy Storchaka 74af9d3cc4 Merge heads 2013-11-10 21:05:38 +02:00
Serhiy Storchaka 81895f8ee3 Issue #19261: Added support for writing 24-bit samples in the sunau module. 2013-11-10 21:02:53 +02:00
Victor Stinner e8453bc136 C API doc: try to group concrete objects 2013-11-07 22:05:48 +01:00
R David Murray 589327ea7a Merge #18985: Improve fcntl documentation. 2013-11-07 10:51:41 -05:00
R David Murray d5a2f0b3a1 #18985: Improve fcntl documentation.
Original patch by Vajrasky Kok, further improved (I hope) by me.
2013-11-07 10:51:07 -05:00
Nick Coghlan 07155c9c14 Fix typo in updated dis docs 2013-11-06 22:12:07 +10:00
Nick Coghlan 90b8e7d2bc Close #19378: address flaws in the new dis module APIs
- confusing line_offset parameter -> first_line parameter
- systematically test and fix new file parameter
- remove redundant Bytecode.show_info() API
- rename Bytecode.display_code() to Bytecode.dis() and have it
  return the multi-line string rather than printing it directly
- eliminated some not-so-helpful helpers from the bytecode_helper
  test support module

Also fixed a longstanding defect (worked around in the test suite)
where lines emitted by the dis module could include trailing white
space. That no longer happens, allowing the formatting tests to be
simplified to use plain string comparisons.
2013-11-06 22:08:36 +10:00
Victor Stinner 05f31bfef3 doc: fix typo 2013-11-06 01:48:45 +01:00
Tim Golden 607981402c Issue #10197 Tweak docs for subprocess.getstatusoutput and align the documentation, the module docstring, and the function docstring. 2013-11-05 12:57:25 +00:00
Vinay Sajip b2bc4df40c Closes #18345: Merged documentation update from 3.3. 2013-11-05 10:03:20 +00:00
Vinay Sajip 2c1adcb62b Issue #18345: Added cookbook example illustrating handler customisation. 2013-11-05 10:02:21 +00:00
Nick Coghlan 3daaf5f89d Fix functools.partialmethod docs and __all__ 2013-11-04 23:32:16 +10:00
Georg Brandl e051b55049 Note that examples are sorted only for convenience. 2013-11-04 07:30:50 +01:00
R David Murray bd90d09dd0 #18678: Correct names of spwd struct members.
The old names (sp_nam and sp_pwd) are kept for backward compatibility.  Since
this is a long standing bug that hasn't caused any real-world problems, I'm
not backporting it.  However, it is worth fixing because the corrected names
match the documentation, and more importantly now match the C struct, just
like the other struct members.

Patch by Vajrasky Kok.
2013-11-03 19:54:05 -05:00
Tim Golden 834856aca9 Merge 2013-11-03 18:27:40 +00:00
Tim Golden 7a07cc90c7 Merge 2013-11-03 18:27:07 +00:00
Tim Golden 2964138371 Issue #10197: Indicate availability of subprocess.get[status]output on Windows and add a note about the effects of universal newlines 2013-11-03 18:25:51 +00:00
Tim Golden 3a2abb5800 Issue #10197: Indicate availability of subprocess.get[status]output on Windows and add a note about the effects of universal newlines 2013-11-03 18:24:50 +00:00
R David Murray c3f57e4a35 Merge #19411: Clarify that b2a_hex/hexlify returns a bytes object. 2013-11-03 13:22:17 -05:00
R David Murray 5fdb64b5a0 #19411: Clarify that b2a_hex/hexlify returns a bytes object.
Initial patch by Vajrasky Kok.
2013-11-03 13:21:38 -05:00
Nick Coghlan 8e113b418d Close #19403: make contextlib.redirect_stdout reentrant 2013-11-03 17:00:51 +10:00