Commit Graph

12660 Commits

Author SHA1 Message Date
Victor Stinner 6fbd525ef5 Issue #13617: Document that the result of the conversion of a Unicode object to
wchar*, Py_UNICODE* and bytes may contain embedded null characters/bytes.

Patch written by Arnaud Calmettes.
2011-12-18 19:22:31 +01:00
Victor Stinner a94a0e92b8 Issue #13522: Fix _Py_co_pow() documentation
Patch written by Arnaud Calmettes.
2011-12-18 02:56:18 +01:00
Antoine Pitrou 07b1c877b2 Issue #13522: document error return values of some float and complex C API functions. 2011-12-18 01:25:27 +01:00
Victor Stinner e83f899364 Issue #13530: Document os.lseek() result
Patch written by Jérémy Anger.
2011-12-17 23:15:09 +01:00
Georg Brandl bc3b682923 Closes #13761: add a "flush" keyword argument to print(). 2012-01-13 19:41:25 +01:00
Antoine Pitrou 5136ac0ca2 Issue #13645: pyc files now contain the size of the corresponding source
code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.
2012-01-13 18:52:16 +01:00
Nick Coghlan 1f7ce62bd6 Implement PEP 380 - 'yield from' (closes #11682) 2012-01-13 21:43:40 +10:00
Antoine Pitrou 3a5d4cb940 Issue #13748: Raw bytes literals can now be written with the `rb` prefix as well as `br`. 2012-01-12 22:46:19 +01:00
Terry Jan Reedy dc41e3f23f Merge #11633 At least 2 people prefer earlier revision. 2012-01-12 14:51:14 -05:00
Antoine Pitrou 70d62b30e4 Issue #13724: improve documentation for socket.create_connection. 2012-01-12 08:06:49 +01:00
Benjamin Peterson 22ef4fa7e9 merge heads 2012-01-11 18:17:40 -05:00
Benjamin Peterson b2bf01d824 use full unicode mappings for upper/lower/title case (#12736)
Also broaden the category of characters that count as lowercase/uppercase.
2012-01-11 18:17:06 -05:00
Terry Jan Reedy 982c91e4c9 Merge with 3.2 2012-01-11 14:56:22 -05:00
Terry Jan Reedy 7a825ba3c6 Merge with 3.2
#11633 Clarify print buffering (will change again if 13761 adds flush param).
2012-01-11 14:14:14 -05:00
Terry Jan Reedy 610e8140de Merge with 3.2
#13754 String returned if less than *or equal to* x 3
*13753 'seq' now 'iterable'
2012-01-11 03:32:43 -05:00
Charles-François Natali 76961faaa0 Issue #13757: Change os.fdlistdir() so that it duplicates the passed file
descriptor (instead of closing it).
2012-01-10 20:25:09 +01:00
Senthil Kumaran bda7a80194 Merge from 3.2 - Issue9637 - Explain in getproxies_environment that <scheme>_proxy environ variable case does not matter. 2012-01-11 01:30:23 +08:00
Charles-François Natali dc3044c704 Issue #12760: Add a create mode to open(). Patch by David Townshend. 2012-01-09 22:40:02 +01:00
Antoine Pitrou 8a9b9c7d16 Merge SSL doc fixes (issue #13747). 2012-01-09 21:46:11 +01:00
Sandro Tosi ac8f78a1a9 merge with 3.2 2012-01-07 18:34:24 +01:00
Charles-François Natali 61d28d6a74 Issue #13502: threading: Fix a race condition in Event.wait() that made it
return False when the event was set and cleared right after.
2012-01-07 18:26:39 +01:00
Sandro Tosi 5e60857e91 merge with 3.2 2012-01-07 17:57:24 +01:00
Antoine Pitrou 0a08d7a095 Issue #9993: When the source and destination are on different filesystems,
and the source is a symlink, shutil.move() now recreates a symlink on the
destination instead of copying the file contents.
Patch by Jonathan Niehof and Hynek Schlawack.
2012-01-06 20:16:19 +01:00
Antoine Pitrou deec7566ae Update printout of SSL certificate examples for 3.2+. 2012-01-06 20:09:29 +01:00
Sandro Tosi b1d44dbf1f Issue #12042: merge with 3.2 2012-01-05 19:49:27 +01:00
Sandro Tosi 5021428c2b Issue #11984: merge with 3.2 2012-01-05 19:06:56 +01:00
Sandro Tosi 412d0f2f98 merge with 3.2 2012-01-04 23:25:20 +01:00
Jason R. Coombs a599489e91 Corrected typo in install docs 2012-01-04 10:20:37 -05:00
Vinay Sajip 23b94d0b98 Refactored logging rotating handlers for improved flexibility. 2012-01-04 12:02:26 +00:00
Victor Stinner 606e19dda3 Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int 2012-01-04 03:59:16 +01:00
Antoine Pitrou 8f746d83e2 Add a subsection explaning cipher selection. 2012-01-04 02:54:12 +01:00
Victor Stinner 3fe553160c Add a new PyUnicode_Fill() function
It is faster than the unicode_fill() function which was implemented in
formatter_unicode.c.
2012-01-04 00:33:50 +01:00
Benjamin Peterson 199808b796 merge 3.2 2012-01-03 16:30:47 -06:00
Benjamin Peterson c095956ca5 merge 3.2 2012-01-03 16:26:34 -06:00
Sandro Tosi 9b5626d52c merge with 3.2 2012-01-03 22:47:28 +01:00
Sandro Tosi 5c91242f88 merge with 3.2 2012-01-03 18:37:46 +01:00
Nadeem Vawda dc9dd0d340 Add note on memory usage to LZMACompressor doc. 2012-01-02 02:24:20 +02:00
Sandro Tosi 245537a84d merge with 3.2 2012-01-01 12:56:04 +01:00
Sandro Tosi bc25dcf3f3 merge with 3.2 2012-01-01 12:17:36 +01:00
Benjamin Peterson a174577f55 merge 3.2 2011-12-31 22:43:01 -06:00
Sandro Tosi 8df168cc7b merge with 3.2 2011-12-31 19:03:30 +01:00
Sandro Tosi eb90caa48d fix Exemples/Examples typo; thanks to Ori Livneh from docs@ 2011-12-31 12:59:08 +01:00
Eli Bendersky ca6b7a1a73 Some formatting & grammar fixes for the multiprocessing doc 2011-12-31 07:22:27 +02:00
Benjamin Peterson 4032802eb6 merge 3.2 2011-12-30 23:09:20 -06:00
Benjamin Peterson 88cb2cafe9 merge 3.2 2011-12-30 13:47:49 -06:00
Antoine Pitrou 78091e63d6 Issue #12715: Add an optional symlinks argument to shutil functions (copyfile, copymode, copystat, copy, copy2).
When that parameter is true, symlinks aren't dereferenced and the operation
instead acts on the symlink itself (or creates one, if relevant).

Patch by Hynek Schlawack.
2011-12-29 18:54:15 +01:00
Benjamin Peterson 2fb9ae9dfc add a flags parameter to select.epoll 2011-12-27 15:15:41 -06:00
Georg Brandl 1e66f56d09 merge with 3.2 2011-12-25 19:03:22 +01:00
Sandro Tosi 54af1ba326 merge with 3.2 2011-12-25 17:26:09 +01:00
Sandro Tosi 2d0e48b6fd merge with 3.2 2011-12-25 17:14:28 +01:00
Sandro Tosi e837b46b89 merge with 3.2 2011-12-25 17:07:38 +01:00
Sandro Tosi 53dd1065ae merge with 3.2 2011-12-25 11:44:55 +01:00
Sandro Tosi c386c1a59f merge with 3.2 2011-12-25 11:27:51 +01:00
Sandro Tosi 91d9152919 merge with 3.2 2011-12-24 23:13:39 +01:00
Sandro Tosi 29cfdc7a61 merge with 3.2 2011-12-24 19:56:35 +01:00
Sandro Tosi 35927dea45 merge with 3.2 2011-12-24 15:53:51 +01:00
Sandro Tosi d126af8a54 merge with 3.2 2011-12-24 14:52:19 +01:00
Meador Inge e7e1cccd69 Issue #13632: Update token documentation to reflect actual token types 2011-12-23 23:08:50 -06:00
Benjamin Peterson a883e566ac merge 3.2 2011-12-23 20:02:12 -06:00
Antoine Pitrou 73fc81402b Add whatsnew items 2011-12-23 20:58:36 +01:00
Senthil Kumaran cc4ff04bdd Merge changes from 3.2
Issue12798 - Update mimetypes documentation. Correct the doc section where
common_types was mentioned under MimeTypes class, move it to helper function
category and other documentation improvements contributed by Sandro Tosi.
2011-12-23 10:54:11 +08:00
Antoine Pitrou 0e576f1f50 Issue #13626: Add support for SSL Diffie-Hellman key exchange, through the
SSLContext.load_dh_params() method and the ssl.OP_SINGLE_DH_USE option.
2011-12-22 10:03:38 +01:00
Senthil Kumaran c90959947b Docs and News update for Issue13620. Chrome support in webbrowser.py 2011-12-21 22:31:36 +08:00
Antoine Pitrou d5ec134d82 Issue #13597: Fix the documentation of the "-u" command-line option, and wording of "What's new in Python 3.0" about standard streams. 2011-12-21 11:24:47 +01:00
Antoine Pitrou de911b2915 Issue #12708: Add starmap() and starmap_async() methods (similar to itertools.starmap()) to multiprocessing.Pool.
Patch by Hynek Schlawack.
2011-12-21 11:03:24 +01:00
Antoine Pitrou 501da61671 Fix ssl module compilation if ECDH support was disabled in the OpenSSL build.
(followup to issue #13627)
2011-12-21 09:27:41 +01:00
Benjamin Peterson 97193c1a16 merge 3.2 2011-12-20 10:13:05 -06:00
Antoine Pitrou 0831676962 Issue #13637: "a2b" functions in the binascii module now accept ASCII-only unicode strings. 2011-12-20 13:58:41 +01:00
Antoine Pitrou 8abdb8abd8 Issue #13634: Add support for querying and disabling SSL compression. 2011-12-20 10:13:40 +01:00
Benjamin Peterson 3563b18c19 merge 3.2 2011-12-19 16:42:28 -05:00
Antoine Pitrou 923df6f22a Issue #13627: Add support for SSL Elliptic Curve-based Diffie-Hellman
key exchange, through the SSLContext.set_ecdh_curve() method and the
ssl.OP_SINGLE_ECDH_USE option.
2011-12-19 17:16:51 +01:00
Antoine Pitrou 6db4944cc5 Issue #13635: Add ssl.OP_CIPHER_SERVER_PREFERENCE, so that SSL servers
choose the cipher based on their own preferences, rather than on the
client's.
2011-12-19 13:27:11 +01:00
Ezio Melotti 5ce6f8ed5c #13387: merge with 3.2. 2011-12-19 07:07:00 +02:00
Victor Stinner 0d81c1357d Issue #13617: Document that the result of the conversion of a Unicode object to
wchar*, Py_UNICODE* and bytes may contain embedded null characters/bytes.

Patch written by Arnaud Calmettes.
2011-12-18 19:30:55 +01:00
Victor Stinner 6099a03202 Issue #13624: Write a specialized UTF-8 encoder to allow more optimization
The main bottleneck was the PyUnicode_READ() macro.
2011-12-18 14:22:26 +01:00
Victor Stinner b99bb20ae4 Issue #13522: Fix _Py_co_pow() documentation
Patch written by Arnaud Calmettes.
2011-12-18 02:56:18 +01:00
Antoine Pitrou b511aca596 Issue #13522: document error return values of some float and complex C API functions. 2011-12-18 01:26:05 +01:00
Victor Stinner 25ec056cc2 Issue #13530: Document os.lseek() result
Patch written by Jérémy Anger.
2011-12-17 23:15:22 +01:00
Victor Stinner ab59594326 What's New in Python 3.3: complete the deprecation list
Add also FIXMEs in unicodeobject.c
2011-12-17 04:59:06 +01:00
Victor Stinner f2ea71fcc8 Issue #13560: Add PyUnicode_EncodeLocale()
* Use PyUnicode_EncodeLocale() in time.strftime() if wcsftime() is not
   available
 * Document my last changes in Misc/NEWS
2011-12-17 04:13:41 +01:00
Ezio Melotti 9987d9351c #13613: merge with 3.2. 2011-12-17 01:20:02 +02:00
Ezio Melotti e5b2ac8987 #13613: fix example in re doc. 2011-12-17 01:17:17 +02:00
Victor Stinner af02e1c85a Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale()
* PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale() decode a string
   from the current locale encoding
 * _Py_char2wchar() writes an "error code" in the size argument to indicate
   if the function failed because of memory allocation failure or because of a
   decoding error. The function doesn't write the error message directly to
   stderr.
 * Fix time.strftime() (if wcsftime() is missing): decode strftime() result
   from the current locale encoding, not from the filesystem encoding.
2011-12-16 23:56:01 +01:00
Antoine Pitrou 6ec29e299b Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystem
encoding and the surrogateescape error handler, rather than UTF-8.  Patch
by David Watson.
2011-12-16 14:46:36 +01:00
Antoine Pitrou 093ce9cd8c Issue #6695: Full garbage collection runs now clear the freelist of set objects.
Initial patch by Matthias Troffaes.
2011-12-16 11:24:27 +01:00
Benjamin Peterson c144a93e98 property -> staticmethod 2011-12-15 19:24:49 -05:00
Benjamin Peterson bfebb7b54a improve abstract property support (closes #11610)
Thanks to Darren Dale for patch.
2011-12-15 15:34:02 -05:00
Antoine Pitrou a8ff01ca74 Issue #13597: Improve documentation of standard streams. 2011-12-15 16:26:03 +01:00
Antoine Pitrou 7158e06212 Issue #13597: Improve documentation of standard streams. 2011-12-15 16:25:34 +01:00
Giampaolo Rodola' 556ba04a8d Fix #13449: add 'blocking' parameter to sched.scheduler.run() so that the scheduler can be used in non-blocking applications 2011-12-14 14:38:45 +01:00
Giampaolo Rodola' 73520d57eb Fix #8684: make sched.scheduler class thread-safe 2011-12-14 13:34:26 +01:00
Ezio Melotti ec51cf159f #6570: merge with 3.2. 2011-12-13 15:53:47 +02:00
Ezio Melotti 7b7e39a61f #6570: clarify tutorial section about keyword arguments. 2011-12-13 15:49:22 +02:00
Ezio Melotti d31d57e272 #13549: merge with 3.2. 2011-12-13 15:38:13 +02:00
Ezio Melotti 91621e2c16 #13549: improve tutorial section about listcomps. 2011-12-13 15:36:19 +02:00
Florent Xicluna aa6c1d240f Issue #13575: there is only one class type. 2011-12-12 18:54:29 +01:00
Lars Gustäbel 521dfb02dd Add missing versionchanged information. 2011-12-12 10:22:56 +01:00
Victor Stinner bf6e560d0c Make PyUnicode_Copy() private => _PyUnicode_Copy()
Undocument the function.

Make also decode_utf8_errors() as private (static).
2011-12-12 01:53:47 +01:00
Benjamin Peterson 8bbe788deb merge heads 2011-12-10 17:55:31 -05:00
Benjamin Peterson 2122cf717f alias resource.error to OSError 2011-12-10 17:50:22 -05:00