Commit Graph

54143 Commits

Author SHA1 Message Date
R David Murray 3288e948f3 Merge #10423: clarify options vs args in argparse discussion of optparse
Patch by Sandro Tosi.
2012-03-30 18:08:29 -04:00
R David Murray 5e0c57142d #10423: clarify options vs args in argparse discussion of optparse
Patch by Sandro Tosi.
2012-03-30 18:07:42 -04:00
Raymond Hettinger 1ff50df8bc Minor cleanup: add whitespace, add comments, bring function attribute updates together. 2012-03-30 13:15:48 -07:00
Eli Bendersky 0192ba33b4 Issue #14065: Added cyclic GC support to ET.Element 2012-03-30 16:38:33 +03:00
Stefan Krah 1e25755006 Merge. 2012-03-30 14:19:21 +02:00
Stefan Krah 0e41981cd5 Use abort() rather than exit() to appease tools like rpmlint. abort() is used
in libmpdec to prevent undefined behavior if an invalid context is used. This
cannot occur for the _decimal module since user input for the context is
validated.
2012-03-30 14:12:20 +02:00
Kristján Valur Jónsson daa06544c8 Issue #14435: Remove special block allocation code from floatobject.c
PyFloatObjects are now allocated using PyObject_MALLOC like all other
internal types, but maintain a limited freelist of objects at hand for
performance.  This will result in more consistent memory usage by Python.
2012-03-30 09:18:15 +00:00
Eli Bendersky c1d9869cb9 Issue #14006: improve the documentation of xml.etree.ElementTree
Removed the useless explanation of the Element data structure that started the
documentation page. Instead, the documentation now starts with a brief tutorial
skimming some of the capabilities of the module. The tutorial can be followed
by additional topic-specific sections (such as XPath support), and eventually
by a reference that goes over the module's classes and functions, as usual.
2012-03-30 11:44:15 +03:00
Eli Bendersky dbaedb8cf9 fix typo in glossary 2012-03-30 11:02:05 +03:00
Eli Bendersky 6bdb650ab2 Added the "provisional package" glossary term from PEP 411 2012-03-30 10:52:25 +03:00
Vinay Sajip b4f6da8265 Closes #14436: merged fix from 3.2. 2012-03-29 20:18:21 +01:00
Vinay Sajip 6f5e54e769 Closes #14436: Convert msg + args to string before pickling. 2012-03-29 20:17:18 +01:00
Andrew Svetlov d3cebd790d Merge with 3.2 2012-03-29 19:50:46 +03:00
Ross Lagerwall 86407432d5 Issue #14442: Add missing errno import in test_smtplib. 2012-03-29 18:08:48 +02:00
Andrew Svetlov 67ac079203 Issue #14409: IDLE doesn't not execute commands from shell with default keybinding for <Return>.
Patch by Roger Serwy.
2012-03-29 19:01:28 +03:00
Michael Foord e55f6636cc Fix typo in unittest.mock docs 2012-03-29 13:46:50 +01:00
R David Murray eac0939ddd #14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog.
Unlike the other facilities, we don't use a fallback for AUTHPRIV if it
doesn't exist.  Because it is intended for logging sensitive log messages, it
is better that a program trying to log such messages fail than that it log
them insecurely.

Initial patch by Federico Reghenzani.
2012-03-29 07:15:45 -04:00
R David Murray 8c696321eb Merge #14416: add missing LOG_SYSLOG facility to syslog docs. 2012-03-29 06:49:29 -04:00
R David Murray 07cf1d8085 #14416: add missing LOG_SYSLOG facility to syslog docs. 2012-03-29 06:47:35 -04:00
Georg Brandl 909f5bc849 Fix newlines. 2012-03-29 09:18:14 +02:00
Michael Foord 324b58bf18 Update unittest.mock.patch example 2012-03-28 15:49:08 +01:00
Michael Foord aa8ec7e076 Fix unittest.mock.patch docstring 2012-03-28 15:41:28 +01:00
Michael Foord 2309ed861a Re-order unittest.mock documentation to put magic method support before the helpers 2012-03-28 15:38:36 +01:00
Michael Foord 901553668a Adding an example to unittest.mock.patch documentation 2012-03-28 15:32:08 +01:00
Michael Foord 54b3db8c84 Minor unittest.mock.patch doc / docstring improvement 2012-03-28 15:08:08 +01:00
Michael Foord a9e6fb201d Unsplit unittest.mock documentation 2012-03-28 14:36:02 +01:00
Victor Stinner ad95c2d25c time.time() now uses clock_gettime(CLOCK_REALTIME) if available
clock_gettime(CLOCK_REALTIME) has a better resolution than gettimeofday().
time.time() falls back on gettimeofday() (and then on other functions) on
error.
2012-03-28 02:54:15 +02:00
Victor Stinner 74eb6c0e8b Document the fact that mach_timebase_info() cannot fail
And call mach_absolute_time() after mach_timebase_info().
2012-03-28 02:50:46 +02:00
Stefan Krah 650365b163 Issue #11826: Fix memory leak in atexitmodule. 2012-03-27 11:49:21 +02:00
Georg Brandl dc5a4e1611 merge with 3.2 2012-03-27 07:46:54 +02:00
Georg Brandl d86440750f Closes #14411: remove outdated comment in rlcompleter docstring. 2012-03-27 07:46:46 +02:00
Georg Brandl c0fdf6cf7a Closes #14421: use with statement to properly close socket in bandwidth test. 2012-03-27 07:43:53 +02:00
Éric Araujo 1641bb7669 Fix typo 2012-03-26 23:35:31 -04:00
Eli Bendersky ede001a832 Fix doc typo noticed by Amaury Forgeot d'Arc 2012-03-27 04:57:23 +02:00
Victor Stinner 8486076dd5 Fix time.steady(strict=True): don't use CLOCK_REALTIME 2012-03-26 22:53:14 +02:00
Victor Stinner 3c1e48176e Issue #14383: Add _PyDict_GetItemId() and _PyDict_SetItemId() functions
These functions simplify the usage of static constant Unicode strings.
Generalize the usage of _Py_Identifier in ceval.c and typeobject.c.
2012-03-26 22:10:51 +02:00
Victor Stinner 70b2e1e7d9 Issue #14368: _PyTime_gettimeofday() cannot fail
floattime() must not raise an error if the current time is 1970.1.1 at 00:00.
2012-03-26 22:08:02 +02:00
Andrew Svetlov a5cf6c4913 Update missed idlelib/NEWS.txt 2012-03-26 22:14:13 +03:00
Andrew Svetlov d543f2b8b0 IDLE can be launched as python -m ildelib 2012-03-26 22:11:46 +03:00
Andrew Svetlov 753445a425 Issue #989712: update the code to process tkinter messages in IDLE
without mainloop.

  Thanks to Roger Serwy for patch.
2012-03-26 21:56:44 +03:00
Benjamin Peterson 0df542985a grammar 2012-03-26 14:50:32 -04:00
Eli Bendersky 3a4875e5e3 Issue #6488: Explain the XPath support of xml.etree.ElementTree, with code
samples and a reference. Also fix the other nits mentioned in the issue.

This also partially addresses issue #14006.
2012-03-26 20:43:32 +02:00
Sandro Tosi 70ea34de85 Issue #14410: merge with 3.2 2012-03-26 19:36:44 +02:00
Sandro Tosi 99e7d0706e Issue #14410: fix typo in argparse doc; patch by Tshepang Lekhonkhobe 2012-03-26 19:36:23 +02:00
R David Murray 4a1ad9148b #14413: tweak word order in deprecation section 2012-03-26 13:34:46 -04:00
Vinay Sajip 38a12af36a Updated handler documentation. 2012-03-26 17:17:39 +01:00
Vinay Sajip 8ece80faae Minor documentation tweak. 2012-03-26 17:09:58 +01:00
Stefan Krah 16ecb9dea0 Issue #3367: Merge fix from 3.2. 2012-03-26 15:11:22 +02:00
Stefan Krah 0f6ce8d9df Issue #3367: NULL-terminate argv[] copies to prevent an invalid access
in sys_update_path().
2012-03-26 15:05:22 +02:00
Benjamin Peterson c067d6661f merge 3.2 2012-03-25 22:41:16 -04:00