Peter Moody
be9c1b133b
#17400 : fix documentation, add cache to is_global and correctly handle 100.64.0.0/10
2013-10-22 12:36:21 -07:00
Tim Golden
a4df90ceb9
Issue #15207 : Fix mimetypes to read from correct area in Windows registry (Original patch by Dave Chambers)
2013-10-22 20:03:47 +01:00
Tim Golden
27a856495e
Issue #15207 : Fix mimetypes to read from correct area in Windows registry (Original patch by Dave Chambers)
2013-10-22 19:27:34 +01:00
Christian Heimes
086b1afa55
Issue #19344 : fix markup error in whatsnew
...
Thanks to Marius Gedminas
2013-10-22 11:49:34 +02:00
Christian Heimes
b7bd5df809
Issue #16595 : Add prlimit() to resource module
...
prlimit() is a Linux specific command that combines setrlimit, getrlimit and can set the limit
of other processes.
2013-10-22 11:21:54 +02:00
Christian Heimes
6fc79bf813
Issue #19324 : Expose Linux-specific constants in resource module
2013-10-22 11:09:27 +02:00
Peter Moody
8ed30c15e8
#17400 ; NEWS and ipaddress.rst change
2013-10-21 16:16:51 -07:00
Victor Stinner
6633c39af8
fix typo in what's new in 3.4
2013-10-21 13:27:11 +02:00
Christian Heimes
e1bfd3e296
Fix typo in whatsnew
2013-10-21 12:32:21 +02:00
Georg Brandl
a3fdcaa5d6
Closes #19323 : fix typo. Thanks to Michael Merickel.
2013-10-21 09:08:39 +02:00
Georg Brandl
1a51b558a5
Simplify markup.
2013-10-21 09:07:31 +02:00
Georg Brandl
eb2aeecc2f
Reformat statistics.rst and remove unnecessary headings for each function.
2013-10-21 08:57:26 +02:00
Georg Brandl
a606542e95
#19274 : use captured_stdout() in the test suite; add NEWS entry.
2013-10-21 08:29:29 +02:00
Raymond Hettinger
c93dbe2f9b
Issue #19271 : By Python3.4, the Python 2.4 backport links are no longer of much interest.
2013-10-20 20:42:07 -07:00
Guido van Rossum
2063aafc6e
Update faulthandler docs.
2013-10-20 19:15:19 -07:00
Christian Tismer
59202e5fc7
add a filterfunc to zip file.PyZipFile.writepy, issue 19274
2013-10-21 03:59:23 +02:00
Ezio Melotti
47f1b762fd
#19319 : merge with 3.3.
2013-10-21 04:42:12 +03:00
Ezio Melotti
e45975080b
#19319 : fix ctypes docs: sizeof is an operator in C, not a function.
2013-10-21 04:41:40 +03:00
Ezio Melotti
632f1bfd39
#19238 , #19289 : merge with 3.3.
2013-10-21 02:53:30 +03:00
Ezio Melotti
c318442571
#19238 , #19289 : fix description of the align and fill values of the format specification.
2013-10-21 02:53:07 +03:00
Benjamin Peterson
4ea16e56eb
remove backticks
2013-10-20 17:52:54 -04:00
Benjamin Peterson
44c3065b62
fix declaration of StatisticsError
2013-10-20 17:52:09 -04:00
Nick Coghlan
0acceb7697
What's New updates prior to alpha
2013-10-20 13:22:21 +10:00
Nick Coghlan
4dae27a08d
Tweak 'provisional' in glossary
2013-10-20 13:22:04 +10:00
Ned Deily
3586673703
Issue #19304 : Fix typos noted by Claudiu Popa.
2013-10-19 12:10:01 -07:00
Larry Hastings
f5e987bbe6
Issue #18606 : Add the new "statistics" module (PEP 450). Contributed
...
by Steven D'Aprano.
2013-10-19 11:50:09 -07:00
Serhiy Storchaka
eaea5e9107
Issue #12866 : The audioop module now supports 24-bit samples.
2013-10-19 21:10:46 +03:00
Serhiy Storchaka
c679227e31
Issue #1772673 : The type of `char*` arguments now changed to `const char*`.
2013-10-19 21:03:34 +03:00
Georg Brandl
0f5bff24ab
Doc markup fixes.
2013-10-19 17:46:38 +02:00
Nick Coghlan
8608d26e81
contextlib doc updates and refactoring
...
- explain single use, reusable and reentrant in docs
- converted suppress to a reentrant class based impl
- converted redirect_stdout to a reusable impl
- moved both suppress and redirect_stdout behind a functional
facade
- added reentrancy tests for the updated suppress
- added reusability tests for the updated redirect_stdio
- slightly cleaned up an exception from contextmanager
2013-10-20 00:30:51 +10:00
Christian Heimes
e723622775
Issue #18582 : provide a faster C implementation of pbkdf2_hmac that works with OpenSSL < 1.0
2013-10-19 14:24:44 +02:00
Christian Heimes
3626a505db
Issue #19254 : Provide an optimized Python implementation of PBKDF2_HMAC
2013-10-19 14:12:02 +02:00
Nadeem Vawda
ee1be99e05
Issue #19222 : Add support for the 'x' mode to the gzip module.
...
Original patch by Tim Heaney.
2013-10-19 00:11:13 +02:00
Nadeem Vawda
8a9e99cffc
Issue #19223 : Add support for the 'x' mode to the bz2 module.
...
Patch by Tim Heaney and Vajrasky Kok.
2013-10-19 00:11:06 +02:00
Nadeem Vawda
42ca98217c
Issue #19201 : Add support for the 'x' mode to the lzma module.
...
Patch by Tim Heaney and Vajrasky Kok.
2013-10-19 00:06:19 +02:00
Benjamin Peterson
559ae0fb1c
merge 3.3
2013-10-18 12:58:17 -04:00
Benjamin Peterson
910a66566a
fix description of super() behavior on descriptors
2013-10-18 12:57:55 -04:00
Brett Cannon
27e27f7ee1
Issue #18416 : Have importlib.machinery.PathFinder treat '' as the cwd
...
and stop importlib.machinery.FileFinder treating '' as '.'.
Previous PathFinder transformed '' into '.' which led to __file__ for
modules imported from the cwd to always be relative paths. This meant
the values of the attribute were wrong as soon as the cwd changed.
This change now means that as long as the site module is run (which
makes all entries in sys.path absolute) then all values for __file__
will also be absolute unless it's for __main__ when specified by file
path in a relative way (modules imported by runpy will have an
absolute path).
Now that PathFinder is no longer treating '' as '.' it only makes
sense for FileFinder to stop doing so as well. Now no transformation
is performed for the directory given to the __init__ method.
Thanks to Madison May for the initial patch.
2013-10-18 11:39:04 -04:00
Nick Coghlan
1805a62f1f
Issue #16129 : Py_SetStandardStreamEncoding cleanups
...
- don't call PyErr_NoMemory with interpreter is not initialised
- note that it's OK to call _PyMem_RawStrDup here
- don't include this in the limited API
- capitalise "IO"
- be explicit that a non-zero return indicates an error
- include versionadded marker in docs
2013-10-18 23:11:47 +10:00
Serhiy Storchaka
ef23f1875d
Fix markup.
2013-10-18 11:55:30 +03:00
Serhiy Storchaka
335331311f
Fix markup.
2013-10-18 11:55:02 +03:00
Ethan Furman
2498d9e968
Issue #19272 : slight clarification of pickle docs with regard to lambda.
2013-10-18 00:45:40 -07:00
Ethan Furman
63c141cacd
Close #19030 : inspect.getmembers and inspect.classify_class_attrs
...
Order of search is now:
1. Try getattr
2. If that throws an exception, check __dict__ directly
3. If still not found, walk the mro looking for the eldest class that has
the attribute (e.g. things returned by __getattr__)
4. If none of that works (e.g. due to a buggy __dir__, __getattr__, etc.
method or missing __slot__ attribute), ignore the attribute entirely.
2013-10-18 00:27:39 -07:00
Georg Brandl
2bb0ac0ace
merge with 3.3
2013-10-17 19:52:33 +02:00
Georg Brandl
9ff06dcfad
Fix inaccurate versionchanged tag for compressobj(): most parameter were there, just got kwarg support.
2013-10-17 19:51:34 +02:00
Nick Coghlan
240f86d7dd
Close #19266 : contextlib.ignore -> contextlib.suppress
...
Patch by Zero Piraeus.
2013-10-17 23:40:57 +10:00
Nick Coghlan
7d270ee05d
Issue #16129 : Add `Py_SetStandardStreamEncoding`
...
This new pre-initialization API allows embedding
applications like Blender to force a particular
encoding and error handler for the standard IO streams.
Also refactors Modules/_testembed.c to let us start
testing multiple embedding scenarios.
(Initial patch by Bastien Montagne)
2013-10-17 22:35:35 +10:00
R David Murray
3da240fd01
#18891 : Complete new provisional email API.
...
This adds EmailMessage and, MIMEPart subclasses of Message
with new API methods, and a ContentManager class used by
the new methods. Also a new policy setting, content_manager.
Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka,
and reflects their feedback.
I will ideally add some examples of using the new API to the
documentation before the final release.
2013-10-16 22:48:40 -04:00
Richard Oudkerk
b1694cf588
Issue #18999 : Make multiprocessing use context objects.
...
This allows different parts of a program to use different methods for
starting processes without interfering with each other.
2013-10-16 16:41:56 +01:00
Serhiy Storchaka
acc9f3fb16
Issue #18725 : The textwrap module now supports truncating multiline text.
2013-10-15 21:22:54 +03:00
Serhiy Storchaka
0186721397
Issue #19189 : Improved cross-references in the pickle module documentation.
2013-10-14 10:44:25 +03:00
Serhiy Storchaka
5bbbc94073
Issue #19189 : Improved cross-references in the pickle module documentation.
2013-10-14 10:43:46 +03:00
Ezio Melotti
33fc6d6040
#4965 : merge with 3.3.
2013-10-14 02:59:54 +03:00
Ezio Melotti
47fd9d8e09
#4965 : Implement intelligent scrolling of the sidebar in the docs.
2013-10-14 02:58:59 +03:00
Serhiy Storchaka
ca1d6db6d3
Merge heads
2013-10-13 23:27:44 +03:00
Serhiy Storchaka
72aabb6177
Merge heads
2013-10-13 23:27:23 +03:00
Georg Brandl
a7c17e552d
Fix spacing of toplevel items.
2013-10-13 22:25:10 +02:00
Georg Brandl
3e30d471e9
merge with 3.3
2013-10-13 22:23:34 +02:00
Georg Brandl
810f1d56ea
Wing IDE is switching to PyQt...
2013-10-13 22:23:27 +02:00
Georg Brandl
03d010be14
merge with 3.3
2013-10-13 22:20:08 +02:00
Georg Brandl
c3a2916919
Closes #19248 : actually check for Python 3.x in tools/sphinx-build.py.
2013-10-13 22:19:49 +02:00
Serhiy Storchaka
98b28fddd8
Issue #18758 : Fixed and improved cross-references.
2013-10-13 23:12:09 +03:00
Serhiy Storchaka
bfdcd436f0
Issue #18758 : Fixed and improved cross-references.
2013-10-13 23:09:14 +03:00
Georg Brandl
fbc3c3c2be
Closes #17730 : in code.interact(), when banner="", do not print anything.
...
Also adds tests for banner printing.
2013-10-13 21:49:06 +02:00
Serhiy Storchaka
7ff4520584
Issue #19197 : Improved cross-references in the shlex module documentation.
2013-10-13 21:20:30 +03:00
Serhiy Storchaka
4e985673bf
Issue #19197 : Improved cross-references in the shlex module documentation.
2013-10-13 21:19:00 +03:00
Serhiy Storchaka
690a6a95bd
Issue #19207 : Improved cross-references in the os, os.path, and posix modules
...
documentation.
2013-10-13 20:13:37 +03:00
Serhiy Storchaka
dab8354920
Issue #19207 : Improved cross-references in the os, os.path, and posix modules
...
documentation.
2013-10-13 20:12:43 +03:00
Serhiy Storchaka
10e73babad
Improve #19204 : Improved cross-references in the urllib package documentation.
2013-10-13 20:07:51 +03:00
Serhiy Storchaka
5e1c053f0c
Improve #19204 : Improved cross-references in the urllib package documentation.
2013-10-13 20:06:50 +03:00
Georg Brandl
ef1605afa8
merge with 3.3
2013-10-13 18:38:53 +02:00
Georg Brandl
b7117af07d
Refer to strftime(3) manpage for platform specific format codes.
...
Suggested by Skip Montanaro on docs@.
2013-10-13 18:28:25 +02:00
Serhiy Storchaka
287da2e0b9
Issue #19203 : Improved cross-references in the curses howto.
2013-10-13 19:24:30 +03:00
Serhiy Storchaka
04d11a73fa
Issue #19203 : Improved cross-references in the curses howto.
2013-10-13 18:51:59 +03:00
Serhiy Storchaka
221d943c5b
Issue #19198 : Improved cross-references in the cgi module documentation.
2013-10-13 18:29:08 +03:00
Serhiy Storchaka
fd1c3d3059
Issue #19198 : Improved cross-references in the cgi module documentation.
2013-10-13 18:28:26 +03:00
Nick Coghlan
e206b6e10e
Issue #17827 : document codecs.encode and codecs.decode
...
- Merge from 3.3
- Added to What's New since these are more important in 3.x,
as the bytes<->bytes and str<->str codecs don't fit the
text model convenience methods in 3.x the way they did the
basestring<->basestring methods in the 2.x text model
- Included under Library in Misc/NEWS for the same reason
2013-10-14 00:55:46 +10:00
Nick Coghlan
6cb2b5b1e1
Issue #17827 : Document codecs.encode and codecs.decode
2013-10-14 00:22:13 +10:00
Nick Coghlan
b4534ae704
Docs tweaks for contextlib additions
2013-10-13 23:23:08 +10:00
Georg Brandl
31f6f4dd03
merge with 3.3
2013-10-13 10:49:47 +02:00
Georg Brandl
aeaecfd257
Closes #13740 : SND_NOWAIT seems to be ignored on modern Windows.
2013-10-13 10:49:41 +02:00
Georg Brandl
bcdb4fd83c
merge with 3.3
2013-10-13 09:56:24 +02:00
Georg Brandl
5d5b375c84
Fix a small CSS glitch with deprecated blocks and Sphinx 1.2.
2013-10-13 09:56:20 +02:00
Georg Brandl
daa1fa991c
Back out accidentally pushed changeset b51218966201.
2013-10-13 09:32:59 +02:00
Georg Brandl
a7bb9b3a13
merge with 3.3
2013-10-13 09:32:00 +02:00
Georg Brandl
1e32011306
Fix display of deprecated blocks with Sphinx 1.2.
2013-10-13 09:31:42 +02:00
Georg Brandl
4300019e1a
Add re.fullmatch() function and regex.fullmatch() method, which anchor the
...
pattern at both ends of the string to match.
Patch by Matthew Barnett.
Closes #16203 .
2013-10-13 09:18:45 +02:00
Eric V. Smith
57841ddb5c
Grammar fix.
2013-10-13 00:36:08 -04:00
Christian Heimes
17ecd1d384
Document speedup in whatsnew
2013-10-13 03:10:06 +02:00
Christian Heimes
f1dc3ee16d
Issue #19218 : Rename collections.abc to _collections_abc in order to speed up interpreter start
2013-10-13 02:04:20 +02:00
Raymond Hettinger
84fc7081f5
merge
2013-10-12 16:04:39 -07:00
Raymond Hettinger
64801680d3
Issue #19202 : Add cross-reference and a rough code equivalent
2013-10-12 16:04:17 -07:00
Christian Heimes
e92ef13b0a
Issue #18582 : Add 'pbkdf2_hmac' to the hashlib module.
2013-10-13 00:52:43 +02:00
Georg Brandl
793d8478ee
merge with 3.3
2013-10-12 22:56:37 +02:00
Georg Brandl
a14034872b
Invert logic of new limited-API annotation and call it "stable ABI".
2013-10-12 22:55:34 +02:00
Georg Brandl
e9bd31f98f
merge with 3.3
2013-10-12 20:53:53 +02:00
Georg Brandl
239990daec
Fix compatibility with upcoming Sphinx 1.2.
2013-10-12 20:50:21 +02:00
Georg Brandl
7c11e52f7e
merge with 3.3
2013-10-12 20:01:14 +02:00
Georg Brandl
5c01d99c12
Introduce support for documenting which C API elements are not part of the stable/limited API.
2013-10-12 19:54:30 +02:00
Georg Brandl
b9e8712a54
merge with 3.3
2013-10-12 19:13:38 +02:00
Georg Brandl
5db7c54f96
Closes #13915 : update tutorial with respect to .pyc files (__pycache__ / PEP 3147).
...
Initial wording proposed by John Roth.
2013-10-12 19:13:23 +02:00
Georg Brandl
a636c8e150
merge with 3.3
2013-10-12 19:03:47 +02:00
Georg Brandl
ae30a813a9
Closes #13833 : document PyStructSequence C-API functions.
2013-10-12 19:03:43 +02:00
Georg Brandl
3cb26b77b6
merge with 3.3
2013-10-12 18:41:23 +02:00
Georg Brandl
c96ef1f0ed
Closes #13026 : fix documentation of MAKE_FUNCTION for 3.x.
2013-10-12 18:41:18 +02:00
Georg Brandl
32b2c62db4
merge with 3.3
2013-10-12 18:19:48 +02:00
Georg Brandl
57f936ecde
Closes #19179 : make table of XML vulnerabilities clearer by using "everyday" booleans and explaining the table beforehand.
2013-10-12 18:19:33 +02:00
Georg Brandl
42840f017d
merge with 3.3
2013-10-12 18:15:21 +02:00
Georg Brandl
d8ede4fddd
Closes #13203 : add a FAQ section about seemingly duplicate id()s.
2013-10-12 18:14:25 +02:00
Ezio Melotti
34808e2237
#19221 : update whatsnew entry about UCD version.
2013-10-12 16:36:13 +03:00
Georg Brandl
c2228c8995
Markup fix.
2013-10-12 13:24:55 +02:00
Raymond Hettinger
1254b407ac
Rename contextlib.ignored() to contextlib.ignore().
2013-10-10 22:39:39 -07:00
R David Murray
d57937656d
#18764 : p(rint) -> p in pdb docs.
...
Missed changing the doc for the command itself, patch for that also by Connor
Osborn.
2013-10-10 17:33:43 -04:00
Benjamin Peterson
94d08d908b
upgrade unicode db to 6.3.0 ( closes #19221 )
2013-10-10 17:24:45 -04:00
R David Murray
78d692f98e
18764: remove the problematic 'print' alias for the PDB 'p' command.
...
So that it no longer shadows the print function.
Patch by Connor Osborn, doc and test changes by R. David Murray.
2013-10-10 17:23:26 -04:00
Victor Stinner
2fe9bac4dc
Close #16742 : Fix misuse of memory allocations in PyOS_Readline()
...
The GIL must be held to call PyMem_Malloc(), whereas PyOS_Readline() releases
the GIL to read input.
The result of the C callback PyOS_ReadlineFunctionPointer must now be a string
allocated by PyMem_RawMalloc() or PyMem_RawRealloc() (or NULL if an error
occurred), instead of a string allocated by PyMem_Malloc() or PyMem_Realloc().
Fixing this issue was required to setup a hook on PyMem_Malloc(), for example
using the tracemalloc module.
PyOS_Readline() copies the result of PyOS_ReadlineFunctionPointer() into a new
buffer allocated by PyMem_Malloc(). So the public API of PyOS_Readline() does
not change.
2013-10-10 16:18:20 +02:00
Victor Stinner
6cf185dc06
Issue #18874 : _PyObject_Malloc/Realloc/Free() now falls back on
...
_PyMem_RawMalloc/Realloc/Free, instead of _PyMem_Malloc/Realloc/Free. So it
becomes possible to use the fast pymalloc allocator for the PYMEM_DOMAIN_MEM
domain (PyMem_Malloc/Realloc/Free functions).
2013-10-10 15:58:42 +02:00
Raymond Hettinger
088cbf2d39
Issue #15805 : Add contextlib.redirect_stdout()
2013-10-10 00:46:57 -07:00
Raymond Hettinger
5ed3bc9adb
merge
2013-10-09 22:43:30 -07:00
Raymond Hettinger
8ee7708c7f
Issue #19005 : Fix documentation for PyIter_Next().
2013-10-09 22:42:46 -07:00
Georg Brandl
213ef6eb07
Closes #19200 : small grammar fix in multiprocessing docs. Thanks to Elazar Gershuni.
2013-10-09 15:51:57 +02:00
Victor Stinner
8d19767403
Close #19199 : Remove ``PyThreadState.tick_counter`` field
2013-10-09 14:53:01 +02:00
Serhiy Storchaka
210871db72
#19194 : Improved cross-references in the fcntl module documentation.
2013-10-09 14:20:37 +03:00
Serhiy Storchaka
926099d5ce
#19194 : Improved cross-references in the fcntl module documentation.
2013-10-09 14:20:22 +03:00
Serhiy Storchaka
fa81cd95b4
#19196 : Improved cross-references in distutils documentation.
2013-10-09 14:09:35 +03:00
Serhiy Storchaka
7880db6136
#19196 : Improved cross-references in distutils documentation.
2013-10-09 14:09:16 +03:00
Serhiy Storchaka
0d85b5c68d
Issue #19190 : Improve cross-references in builtin types and functions documentation.
2013-10-09 14:03:24 +03:00
Serhiy Storchaka
0d196edc37
Issue #19190 : Improve cross-references in builtin types and functions documentation.
2013-10-09 14:02:31 +03:00
Serhiy Storchaka
d51f42372b
Issue 19195: Improved cross-references in C API documentation.
2013-10-09 13:26:57 +03:00
Serhiy Storchaka
0b68a2d675
Issue 19195: Improved cross-references in C API documentation.
2013-10-09 13:26:17 +03:00
Serhiy Storchaka
3226d87747
Issue #19193 : Improved cross-references in the tutorial.
2013-10-09 09:55:21 +03:00
Serhiy Storchaka
91aaeac050
Issue #19193 : Improved cross-references in the tutorial.
2013-10-09 09:54:46 +03:00
Antoine Pitrou
77e904e6a6
Issue #18948 : improve SuppressCoreFiles to include Windows crash popup suppression, and use it in more tests.
...
Patch by Valerie Lambert and Zachary Ware.
2013-10-08 23:04:32 +02:00
Georg Brandl
3ebbb04af2
merge with 3.3
2013-10-08 21:54:47 +02:00
Georg Brandl
ee82d0b293
Minor grammar fix.
2013-10-08 21:54:37 +02:00
Georg Brandl
c13d604193
merge with 3.3
2013-10-08 21:47:35 +02:00
Georg Brandl
0aaae26518
Clarify two points about division and shifting. Suggested by Albert Hofkamp on docs@.
2013-10-08 21:47:18 +02:00
Georg Brandl
bc332a2415
merge with 3.3
2013-10-08 21:43:46 +02:00
Georg Brandl
f24c1416eb
Fix wrong link.
2013-10-08 21:43:39 +02:00
Georg Brandl
100580f4c4
merge with 3.3
2013-10-08 21:28:42 +02:00
Georg Brandl
97f962339f
Add "->" as a delimiter token. Found by James Harding on docs@.
2013-10-08 21:28:22 +02:00
Georg Brandl
245c765d0a
merge with 3.3
2013-10-08 08:06:27 +02:00
Georg Brandl
bcce1256e3
Closes #19178 : some more cross-references about packages in glossary. Patch by Berker Peksag.
2013-10-08 08:06:18 +02:00
Georg Brandl
7c679514a5
merge with 3.3
2013-10-06 21:23:26 +02:00
Georg Brandl
c377fe2b96
Closes #1215 : document better why it is not a good idea to catch e.g. SIGSEGV and refer to faulthandler.
...
Patch by Martin Pool.
2013-10-06 21:22:42 +02:00
Georg Brandl
6d7d6cf76e
merge with 3.3
2013-10-06 20:46:15 +02:00
Georg Brandl
a072de14be
Extending example: use Py_RETURN_NONE
2013-10-06 20:46:08 +02:00
Georg Brandl
fd11551710
merge with 3.3
2013-10-06 19:34:19 +02:00
Georg Brandl
29fc4bf5c7
Use the platform-independent way of calling a script from the shell: "python prog.py", not "prog.py"
...
Found by Micheal Wells on docs@.
2013-10-06 19:33:56 +02:00
Georg Brandl
aca718e9f1
merge with 3.3
2013-10-06 19:27:17 +02:00