Commit Graph

4773 Commits

Author SHA1 Message Date
Senthil Kumaran e66cc8172d #17307 - merge from 3.2 2013-03-13 13:42:47 -07:00
Senthil Kumaran b5fe2479c1 #17307 - Example of HTTP PUT Request using http.client 2013-03-13 13:38:33 -07:00
Brett Cannon 327992330e Issue #17099: Have importlib.find_loader() raise ValueError when
__loader__ is not set on a module. This brings the exception in line
with when __loader__ is None (which is equivalent to not having the
attribute defined).
2013-03-13 11:09:08 -07:00
Brett Cannon 115309acec Issue #17176: Document that imp.NullImporter is no longer
automatically used by import.
2013-03-13 10:58:50 -07:00
Brett Cannon 2514b4871f Issue #17176: Document that imp.NullImporter is no longer inserted
into sys.path_importer_cache.
2013-03-13 10:46:22 -07:00
Brett Cannon 4802becb16 Issue #17117: Have both import itself and importlib.util.set_loader()
set __loader__ on a module when set to None.

Thanks to Gökcen Eraslan for the fix.
2013-03-13 10:41:36 -07:00
Brett Cannon aa73a1c9c9 Issue #17222: Document that py_compile now uses importlib for its file
writing and thus its semantics.
2013-03-13 09:37:42 -07:00
Benjamin Peterson 3b965a237c expose O_PATH if possible 2013-03-13 10:27:41 -05:00
Ezio Melotti fe1c471cb1 #17402: merge with 3.3. 2013-03-13 02:27:53 +02:00
Ezio Melotti a142a343e8 #17402: merge with 3.2. 2013-03-13 02:27:35 +02:00
Ezio Melotti 6771462961 #17402: avoid shadowing built-in map in mmap examples. Initial patch by Aman Shah. 2013-03-13 02:27:00 +02:00
Benjamin Peterson 7192eddb4a update links to 6.2.0 2013-03-12 11:56:38 -05:00
Eli Bendersky 7343cb0790 Issue #11367: fix documentation of some find* methods in ElementTree 2013-03-12 06:01:22 -07:00
Terry Jan Reedy 8e7586bd44 Issue #17047: remove doubled words added in 3.4,
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 18:38:13 -04:00
Terry Jan Reedy 8b53559a89 Merge with 3.3, issue #17047: remove doubled words added in 3.3,
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 18:36:38 -04:00
Terry Jan Reedy 0f84764a09 Issue #17047: remove doubled words added in 3.3
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 18:34:00 -04:00
Terry Jan Reedy dd61f8f389 Merge with 3.3: Issue #17047: removed doubled words in Doc/*,
Mac/*, and Tool/* found by Serhiy Storchaka and Matthew Barnett
2013-03-11 17:27:28 -04:00
Terry Jan Reedy caeb6bea9b Merge with 3.2: Issue #17047: removed doubled words in Doc/*,
Mac/*, and Tool/* found by Serhiy Storchaka and Matthew Barnett
2013-03-11 17:26:33 -04:00
Terry Jan Reedy 65e69b3718 Issue #17047: removed doubled words in Doc/*, Mac/*, and Tool/*
found by Serhiy Storchaka and Matthew Barnett
2013-03-11 17:23:46 -04:00
Ezio Melotti a41fb4be5b #17351: merge with 3.3. 2013-03-11 09:43:25 +02:00
Ezio Melotti c9cfcf1e6c #17351: merge with 3.2. 2013-03-11 09:42:40 +02:00
Ezio Melotti af8838f443 #17351: remove "object" inheritance from docs. Patch by Phil Elson. 2013-03-11 09:30:21 +02:00
Raymond Hettinger e318a883fe Issue #15806: Add contextlib.ignored(). 2013-03-10 22:26:51 -07:00
Eli Bendersky 439b2bf4cd Add warning in ctypes documentation for #16575 and #16576 2013-03-09 05:55:24 -08:00
Eli Bendersky c2d90fb3ec Add warning in ctypes documentation for #16575 and #16576 2013-03-09 05:54:32 -08:00
Eli Bendersky 490cf4472e Add warning in ctypes documentation for #16575 and #16576 2013-03-09 05:54:00 -08:00
Terry Jan Reedy c75be9341d Merge: closes issue 16643 (not ....2 as in last commit message) 2013-03-09 02:19:33 -05:00
Terry Jan Reedy adecf3f66f Issue #16642: sched.scheduler timefunc initial default is time.monotonic.
Patch by Ramchandra Apte
2013-03-09 02:14:27 -05:00
Terry Jan Reedy 11c08fd4b4 Issue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey. 2013-03-08 19:40:17 -05:00
Terry Jan Reedy b6f1d6419d Issue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey. 2013-03-08 19:39:30 -05:00
Terry Jan Reedy 9cbcc2f1c0 Issue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey. 2013-03-08 19:35:15 -05:00
Vinay Sajip d12ff7b754 Closes #17376: Merged clarification from 3.3. 2013-03-08 23:27:24 +00:00
Vinay Sajip 355a9876e5 Issue #17376: Merged clarification from 3.2. 2013-03-08 23:26:43 +00:00
Vinay Sajip 832d99bdbb Issue #17376: Clarified documentation for TimedRotatingFileHandler weekday rotation. 2013-03-08 23:24:30 +00:00
Eli Bendersky 25b3464498 Issue #17378: ctypes documentation fix.
Document that ctypes automatically applies byref() when argtypes declares
POINTER.
2013-03-08 05:33:05 -08:00
Eli Bendersky f0d8697e54 Issue #17378: ctypes documentation fix.
Document that ctypes automatically applies byref() when argtypes declares
POINTER.
2013-03-08 05:32:45 -08:00
Eli Bendersky f81de8df0a Issue #17378: ctypes documentation fix.
Document that ctypes automatically applies byref() when argtypes declares
POINTER.
2013-03-08 05:31:54 -08:00
Ezio Melotti 1f38621a33 #11732: add a new suppress_crash_popup() context manager to test.support that disables crash popups on Windows and use it in test_ctypes. 2013-03-07 18:44:29 +02:00
Nick Coghlan 90c91afd2e Merge fix for #15465 from 3.3 2013-03-07 23:45:03 +10:00
Nick Coghlan 7d82c8621b Close #15465: Document C API version macros
Mostly moving the existing macro docs over from the standard
library docs to the C API docs where they belong.

Patch by Kushal Das.
2013-03-07 23:14:44 +10:00
Eli Bendersky be0c028eb5 Fix doc grammar and line width 2013-03-06 06:50:36 -08:00
Eli Bendersky 68dd8ba010 Fix doc grammar and line width 2013-03-06 06:49:22 -08:00
Eli Bendersky f9164e13fc Fix doc grammar and line width 2013-03-06 06:48:57 -08:00
Ezio Melotti ed63754ef6 #17364: merge with 3.3. 2013-03-06 03:23:52 +02:00
Ezio Melotti 20d19241e5 #17364: merge with 3.2. 2013-03-06 03:23:28 +02:00
Ezio Melotti 33e20d1954 #17364: remove documentation for a function that does not exist. 2013-03-06 03:20:27 +02:00
Ezio Melotti 87a249c119 #11732: merge with 3.3. 2013-03-05 20:33:38 +02:00
Ezio Melotti 25a404520d #11732: add a new suppress_crash_popup() context manager to test.support. 2013-03-05 20:26:17 +02:00
Ezio Melotti bf0428ebed Merge markup fixes in unittest doc from 3.3. 2013-03-01 21:28:23 +02:00
Ezio Melotti aba4581ce3 Merge markup fixes in unittest doc from 3.2. 2013-03-01 21:28:06 +02:00
Ezio Melotti fed69ba63c Fix markup in unittest doc. 2013-03-01 21:26:04 +02:00
Ezio Melotti eae2b38948 #16935: unittest now counts the module as skipped if it raises SkipTest, instead of counting it as an error. Patch by Zachary Ware. 2013-03-01 14:47:50 +02:00
Raymond Hettinger 0580cbb164 Merge 2013-03-01 03:31:05 -08:00
Raymond Hettinger faaba59977 Regex should be a raw string 2013-03-01 03:30:20 -08:00
Ezio Melotti a2f94aa0bf Merge link addition from 3.3. 2013-02-28 18:03:35 +02:00
Ezio Melotti 4b231a7d12 Merge link addition from 3.2. 2013-02-28 18:03:16 +02:00
Ezio Melotti c6641dbf58 Add a link to the demo dir. 2013-02-28 18:02:28 +02:00
Ezio Melotti 26db85b30e Merge markup fixes in unittest docs from 3.3. 2013-02-28 08:31:32 +02:00
Ezio Melotti df2460564d Merge markup fixes in unittest docs from 3.2. 2013-02-28 08:29:37 +02:00
Ezio Melotti 4d6cb0fcf9 Fix markup in unittest docs. 2013-02-28 08:28:11 +02:00
Petri Lehtinen e55aa69efc Issue #14720: Enhance sqlite3 microsecond conversion, document its behavior 2013-02-26 21:46:12 +02:00
Petri Lehtinen 6401ad66a7 Issue #14720: Enhance sqlite3 microsecond conversion, document its behavior 2013-02-26 21:45:09 +02:00
Petri Lehtinen 5f79409889 Issue #14720: Enhance sqlite3 microsecond conversion, document its behavior 2013-02-26 21:38:17 +02:00
Senthil Kumaran 139a63fb85 Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior 2013-02-26 01:04:45 -08:00
Senthil Kumaran 514f056a89 Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior 2013-02-26 01:04:22 -08:00
Senthil Kumaran 8fd366978d Fix issue16932: Fix the urlparse example. Remote :port when scheme is not specified to demonstrate correct behavior 2013-02-26 01:02:58 -08:00
Chris Jerdonek ccbc26a24c Add a "Changed in version" to the docs for issue #15132. 2013-02-23 15:44:46 -08:00
Petri Lehtinen 914ec6f718 Issue #16695: Document how glob handles filenames starting with a dot 2013-02-23 19:56:15 +01:00
Petri Lehtinen e2c114733b Issue #16695: Document how glob handles filenames starting with a dot 2013-02-23 19:55:36 +01:00
Petri Lehtinen ee4a20bad6 Issue #16695: Document how glob handles filenames starting with a dot 2013-02-23 19:53:27 +01:00
Petri Lehtinen 827b36bed8 Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:37:01 +01:00
Petri Lehtinen 3c75a48c86 Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:34:44 +01:00
Petri Lehtinen 9f74c6cf7d Issue #8890: Stop advertising an insecure use of /tmp in docs 2013-02-23 19:27:49 +01:00
Ezio Melotti 9d9ab3d8fb #15438: merge with 3.3. 2013-02-23 04:55:48 +02:00
Ezio Melotti cc5ea62e48 #15438: merge with 3.2. 2013-02-23 04:55:24 +02:00
Ezio Melotti 739d5497c0 #15438: add a note to math.pow() that suggests using **/pow() for integers. Patch by Mark Dickinson. 2013-02-23 04:53:44 +02:00
Ezio Melotti 607240c3be #17271: merge with 3.3. 2013-02-22 08:29:34 +02:00
Ezio Melotti 5c72b3f067 #17271: merge with 3.2. 2013-02-22 08:29:11 +02:00
Ezio Melotti ad17bc0bf9 #17271: update example in tempfile docs. 2013-02-22 08:28:14 +02:00
Chris Jerdonek e787c9c981 Issue #17203: add long option names to unittest discovery docs. 2013-02-21 19:02:38 -08:00
Chris Jerdonek 8c0bbfd101 Issue #17203: add long option names to unittest discovery docs. 2013-02-21 19:00:06 -08:00
Chris Jerdonek d69ad55220 Issue #17203: add long option names to unittest discovery docs. 2013-02-21 18:54:43 -08:00
Serhiy Storchaka 920007ad76 Issue #17225: JSON decoder now counts columns in the first line starting
with 1, as in other lines.
2013-02-21 20:26:52 +02:00
Serhiy Storchaka ed891c1517 Issue #17225: JSON decoder now counts columns in the first line starting
with 1, as in other lines.
2013-02-21 20:21:21 +02:00
Serhiy Storchaka c510a048ba Issue #17225: JSON decoder now counts columns in the first line starting
with 1, as in other lines.
2013-02-21 20:19:16 +02:00
Ezio Melotti 542b7d1f15 #17265: merge with 3.3. 2013-02-21 12:35:57 +02:00
Ezio Melotti 4d6795e1a2 #17265: merge with 3.2. 2013-02-21 12:35:40 +02:00
Ezio Melotti bcbc5678d5 #17265: fix highlight in template example. Initial patch by Berker Peksag. 2013-02-21 12:30:32 +02:00
R David Murray 8aa164b395 Merge: #13700: Make imap.authenticate with authobject work.
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.

Original patch by Erno Tukia.
2013-02-19 12:20:32 -05:00
R David Murray 6cd6f01556 Merge: #13700: Make imap.authenticate with authobject work.
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.

Original patch by Erno Tukia.
2013-02-19 12:19:13 -05:00
R David Murray 774a39f26e #13700: Make imap.authenticate with authobject work.
This fixes a bytes/string confusion in the API which prevented
custom authobjects from working at all.

Original patch by Erno Tukia.
2013-02-19 12:17:31 -05:00
Andrew Svetlov 597ba7e351 Issue #17215: Fix documentation misprints (patch by July Tikhonov) 2013-02-17 16:56:28 +02:00
Andrew Svetlov a60de4f14f Issue #17215: Fix documentation misprints (patch by July Tikhonov) 2013-02-17 16:55:58 +02:00
Eric Snow b5c8f92782 Issue #15022: Add pickle and comparison support to types.SimpleNamespace. 2013-02-16 16:32:39 -07:00
Serhiy Storchaka 0cad7eca45 Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. 2013-02-16 17:30:31 +02:00
Serhiy Storchaka f8def28ff0 Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units. 2013-02-16 17:29:56 +02:00
Antoine Pitrou a7b814973f Issue #17208: add a note about the termination behaviour of daemon threads. 2013-02-15 21:32:30 +01:00
Antoine Pitrou db0b7be566 Issue #17208: add a note about the termination behaviour of daemon threads. 2013-02-15 21:31:33 +01:00
Antoine Pitrou 38b82543f7 Issue #17208: add a note about the termination behaviour of daemon threads. 2013-02-15 21:27:18 +01:00
Mark Dickinson d80b16dbd5 Fix ReST role markup: :method: -> :meth: 2013-02-10 18:43:16 +00:00
Antoine Pitrou 902fc8b5a0 Issue #13773: sqlite3.connect() gets a new `uri` parameter to pass the filename as a URI, allowing to pass custom options. 2013-02-10 00:02:44 +01:00
R David Murray 31c3cd2fb8 Merge: #17166: fix _dummy_thread import example.
Report and patch by Berker Peksag.
2013-02-09 13:25:12 -05:00
R David Murray f4b54adc70 Merge: #17166: fix _dummy_thread import example.
Report and patch by Berker Peksag.
2013-02-09 13:24:44 -05:00
R David Murray 041d553319 #17166: fix _dummy_thread import example.
Report and patch by Berker Peksag.
2013-02-09 13:23:46 -05:00
Benjamin Peterson fde43ec5cc merge 3.3 (#17168) 2013-02-09 08:57:53 -05:00
Benjamin Peterson 5d50adee50 StringIO.StringIO -> io.StringIO (closes #17168) 2013-02-09 08:57:28 -05:00
Serhiy Storchaka 9ea2d55d91 Issue #17147. Mention BytesIO in SpooledTemporaryFile documentation. 2013-02-09 11:53:09 +02:00
Serhiy Storchaka 19a5214da4 Minor fix of previous commit. 2013-02-09 11:51:48 +02:00
Serhiy Storchaka 4b109cb4a8 Minor fix of previous commit. 2013-02-09 11:51:21 +02:00
Serhiy Storchaka 23a6726bc8 Issue #17147. Mention BytesIO in SpooledTemporaryFile documentation. 2013-02-09 11:47:20 +02:00
Serhiy Storchaka 4f169a7a4d Issue #17147. Mention BytesIO in SpooledTemporaryFile documentation. 2013-02-09 11:46:42 +02:00
Serhiy Storchaka 7611d9a8cf Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:13:46 +02:00
Serhiy Storchaka 8135de80f7 Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:12:36 +02:00
Serhiy Storchaka 01ad622a2c Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:10:53 +02:00
Gregory P. Smith 1d824ec9b3 Issue #6972: keep the warning about untrusted extraction and mention
the version it was improved in.
2013-02-07 22:17:21 -08:00
Gregory P. Smith 5546b002de Issue #6972: keep the warning about untrusted extraction and mention
the version it was improved in.
2013-02-07 22:15:51 -08:00
Gregory P. Smith f1319d81f7 Issue #6972: keep the warning about untrusted extraction and mention
the version it was improved in.
2013-02-07 22:15:04 -08:00
Senthil Kumaran 5eda539591 Addressing the review comment made by Terry Reedy 2013-02-07 21:45:08 -08:00
Senthil Kumaran cf6e21ccef Addressing the review comment made by Terry Reedy 2013-02-07 21:44:42 -08:00
Senthil Kumaran d03f467dc2 Addressing the review comment made by Terry Reedy 2013-02-07 21:43:21 -08:00
Senthil Kumaran b36f7d7b7e Fix Issue17069: Document getcode method in urllib.request.rst 2013-02-07 00:50:02 -08:00
Senthil Kumaran 599ac4ba2d Fix Issue17069: Document getcode method in urllib.request.rst 2013-02-07 00:49:12 -08:00
Senthil Kumaran b98e96a23f Fix Issue17069: Document getcode method in urllib.request.rst 2013-02-07 00:47:01 -08:00
Charles-François Natali 773e42dff8 Issue #15359: Add CAN_BCM protocol support to the socket module. Patch by Brian
Thorne.
2013-02-05 19:42:01 +01:00
Serhiy Storchaka b3f194d109 Issue #16903: Popen.communicate() on Unix now accepts strings when
universal_newlines is true as on Windows.
2013-02-04 16:47:39 +02:00
Georg Brandl cd50108341 merge with 3.3 2013-02-03 14:00:38 +01:00
Georg Brandl 7fc972a2aa #17109: fix headings in mock example doc. 2013-02-03 14:00:04 +01:00
Georg Brandl ecfb963148 merge with 3.3 2013-02-03 11:48:44 +01:00
Georg Brandl fb13438aa5 Closes #17109: fix heading levels in mock doc. 2013-02-03 11:47:49 +01:00
Antoine Pitrou 5c64df70b5 Issue #17015: When it has a spec, a Mock object now inspects its signature when matching calls, so that arguments can be matched positionally or by name. 2013-02-03 00:23:58 +01:00
Serhiy Storchaka 8f59021a10 Fix a Cyrillic "C" inroduced into the docs by patch for issue #6972. 2013-02-02 13:28:42 +02:00
Serhiy Storchaka d4198c4234 Fix a Cyrillic "C" inroduced into the docs by patch for issue #6972. 2013-02-02 13:28:05 +02:00
Serhiy Storchaka 44b8cbfcba Fix a Cyrillic "C" inroduced into the docs by patch for issue #6972. 2013-02-02 13:27:30 +02:00
Gregory P. Smith ae42ec8004 Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.
2013-02-01 11:35:00 -08:00
Gregory P. Smith 193e1be72d Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.
2013-02-01 11:31:31 -08:00
Gregory P. Smith b47acbf46a Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.
2013-02-01 11:22:43 -08:00
Ezio Melotti d23c0a8992 #17040: document that shelve.open() and the Shelf object can be used as context managers. Initial patch by Berker Peksag. 2013-02-01 05:01:50 +02:00
Vinay Sajip 05361bab89 Merged documentation update from 3.3. 2013-01-30 13:44:34 +00:00
Vinay Sajip 2b4fcfbbec Updated venv documentation with an example. 2013-01-30 13:44:00 +00:00
Benjamin Peterson 63c5202715 merge 3.3 (#4590) 2013-01-28 18:28:53 -05:00
Benjamin Peterson 4dafd4075c fix long fixer docs (#4590) 2013-01-28 18:28:38 -05:00
Mark Dickinson 07c7136524 Issue #16772: in int(x, base), non-integer bases must have an __index__ method. 2013-01-27 10:17:52 +00:00
Sandro Tosi 876a58b8d1 merge with 3.3 2013-01-27 00:33:22 +01:00
Sandro Tosi 4c1b9f4ca7 fix typo; thanks to Andrew Harrington from docs@ 2013-01-27 00:33:04 +01:00
Eli Bendersky 48c50bf4c8 Clarify ET.iterparse documentation - this function is not supported by the
C implementation.
2013-01-24 07:23:34 -08:00
Ezio Melotti 605a95ae44 #11379: merge with 3.3. 2013-01-22 22:50:06 +02:00
Ezio Melotti 564e4d8dc9 #11379: merge with 3.2. 2013-01-22 22:49:46 +02:00
Ezio Melotti da4b5b82a3 #11379: rephrase minidom documentation to use the term "minimal" instead of "lightweight". Patch by Éric Araujo. 2013-01-22 22:47:57 +02:00
Serhiy Storchaka 2ba095c6c5 Fix shutil.which() test for issue #16993. 2013-01-22 10:32:16 +02:00
Serhiy Storchaka 80c88f4304 Fix shutil.which() test for issue #16993. 2013-01-22 10:31:36 +02:00