Martin v. Löwis
72f48422e2
Issue #9377 : Use Unicode API for gethostname on Windows.
2010-10-29 18:20:08 +00:00
Antoine Pitrou
e033e06db0
Issue #10093 : ResourceWarnings are now issued when files and sockets are
...
deallocated without explicit closing. These warnings are silenced by
default, except in pydebug mode.
2010-10-29 10:38:18 +00:00
Lars Gustäbel
9cbdd75ec5
Add read support for all missing variants of the GNU sparse
...
extensions. Thus, in addition to GNUTYPE_SPARSE headers, sparse
information in pax headers created by GNU tar can now be decoded.
All three formats 0.0, 0.1 and 1.0 are supported.
On filesystems that support this, holes in files are now restored
whenever a sparse member is extracted.
2010-10-29 09:08:19 +00:00
Antoine Pitrou
07e20ef50b
Issue #5437 : A preallocated MemoryError instance should not hold traceback
...
data (including local variables caught in the stack trace) alive infinitely.
2010-10-28 22:56:58 +00:00
Georg Brandl
b9a4391754
#10218 : return timeout status from Condition.wait, mirroring other primitives' behavior.
2010-10-28 09:03:20 +00:00
Georg Brandl
4d54088599
#7351 : add more consistent exception name alias.
2010-10-28 06:42:33 +00:00
Antoine Pitrou
b156a46b26
Issue #8852 : Allow the socket module to build on OpenSolaris.
2010-10-27 20:13:57 +00:00
Antoine Pitrou
6b03ee6033
Issue #5027 : The standard `xml` namespace is now understood by
...
xml.sax.saxutils.XMLGenerator as being bound to
http://www.w3.org/XML/1998/namespace . Patch by Troy J. Farrell.
2010-10-27 18:33:30 +00:00
Georg Brandl
7424dd359c
#5975 : add unix_dialect to csv module.
2010-10-27 07:27:06 +00:00
R. David Murray
ba488d1504
#7761 : fix telnetlib.interact failures on Windows.
2010-10-26 12:42:24 +00:00
Vinay Sajip
a39c571061
logging: Added style option to Formatter to allow %, {} or himBHformatting.
2010-10-25 13:57:39 +00:00
Jesus Cea
7e9065cf8c
Issue #10143 : Update "os.pathconf" values
2010-10-25 13:02:04 +00:00
Georg Brandl
08be72d0aa
Add a new warning gategory, ResourceWarning, as discussed on python-dev. It is silent by default,
...
except when configured --with-pydebug.
Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
2010-10-24 15:11:22 +00:00
Nick Coghlan
543af75961
Issue 5178: Add tempfile.TemporaryDirectory (original patch by Neil Schemenauer)
2010-10-24 11:23:25 +00:00
Benjamin Peterson
503d6c5ae9
remove broken code accounting an offset the size of the line #10186
2010-10-24 02:52:05 +00:00
R. David Murray
8451c4b6e0
#1349106 : add linesep argument to generator.flatten and header.encode.
2010-10-23 22:19:56 +00:00
Georg Brandl
1e908af335
#6518 : enable context manager protocol for ossaudiodev types.
2010-10-23 17:31:52 +00:00
Victor Stinner
75d8c5cea2
Issue #6011 : sysconfig and distutils.sysconfig use the surrogateescape error
...
handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source
code directory name contains a non-ASCII character and the locale encoding is
ASCII.
2010-10-23 17:02:31 +00:00
Antoine Pitrou
ff150f2921
Revert r85797 (and r85798): it broke the Windows buildbots because of
...
test_multiprocessing's misbehaviour.
2010-10-22 21:41:05 +00:00
Antoine Pitrou
7eecffd05d
Issue #9935 : Speed up pickling of instances of user-defined classes.
2010-10-22 19:43:59 +00:00
Antoine Pitrou
d532321f7b
Issue #5639 : Add a *server_hostname* argument to `SSLContext.wrap_socket`
...
in order to support the TLS SNI extension. `HTTPSConnection` and
`urlopen()` also use this argument, so that HTTPS virtual hosts are now
supported.
2010-10-22 18:19:07 +00:00
Georg Brandl
83938437cb
#10166 : rewrite self-recursion to iteration in pstats.Stats.add(). Also add a unittest and a stats test file.
2010-10-22 06:28:01 +00:00
Brian Curtin
000f974b44
Fix #10162 : Add try/except around _winreg.OpenKey for keys that are
...
unreadable by all users, e.g., Flash, Silverlight, and Java keys were
causing errors.
We don't currently have a way to grant/deny permissions for a key
via winreg so there are no tests for this.
2010-10-21 14:11:48 +00:00
Antoine Pitrou
9583cac633
Issue #10089 : Add support for arbitrary -X options on the command-line.
...
They can be retrieved through a new attribute `sys._xoptions`.
2010-10-21 13:42:28 +00:00
Victor Stinner
f933e1ab6f
Issue #4388 : On Mac OS X, decode command line arguments from UTF-8, instead of
...
the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment variable
is not set, the locale encoding is ISO-8859-1, whereas most programs (including
Python) expect UTF-8. Python already uses UTF-8 for the filesystem encoding and
to encode command line arguments on this OS.
2010-10-20 22:58:25 +00:00
Vinay Sajip
2a20dfc2aa
logging: Made StreamHandler terminator configurable.
2010-10-20 20:05:38 +00:00
Ronald Oussoren
f3500e1198
Fix for issue #7473 .
...
Without this patch you'll get link errors in some extensions
(in particular the _curses_panel) one when you try to build
a 3-way universal framework when you previously installed a
2-way universal framework using the python.org installer.
2010-10-20 13:10:12 +00:00
Vinay Sajip
6dbed2e8b3
logging: Allowed filters to be just callables.
2010-10-19 20:53:01 +00:00
Vinay Sajip
6fac817136
logging: Added tests for _logRecordClass changes.
2010-10-19 20:44:14 +00:00
Georg Brandl
7004bd1a3d
#10092 : Properly reset locale in Locale*Calendar classes. The context manager was buggy because setlocale() returns the *new* locale, not the old. Also add a test for this.
2010-10-19 18:54:25 +00:00
Vinay Sajip
062d56b1f0
logging: Added _logRecordClass, getLogRecordClass, setLogRecordClass to increase flexibility of LogRecord creation.
2010-10-19 15:26:24 +00:00
Alexander Belopolsky
4a98e3b6d0
Issue #10117 : Tools/scripts/reindent.py now accepts source files that
...
use encoding other than ASCII or UTF-8. Source encoding is preserved
when reindented code is written to a file.
2010-10-18 14:43:38 +00:00
Hirokazu Yamamoto
b08820ad40
Issue #5117 : Case normalization was needed on ntpath.relpath(). And
...
fixed root directory issue on posixpath.relpath(). (Ported working fixes
from ntpath)
2010-10-18 12:13:18 +00:00
R. David Murray
e194dd60f0
#678250 : Make mmap flush a noop on ACCESS_READ and ACCESS_COPY.
...
Patch by Sébastien Sablé. This solves a test_mmap failure on AIX.
2010-10-18 01:14:06 +00:00
R. David Murray
a90032a3fb
#1343 : Add short_empty_elements option to XMLGenerator.
...
Patch and tests by Neil Muller.
2010-10-17 22:46:45 +00:00
Benjamin Peterson
8f67d0893f
make hashes always the size of pointers; introduce Py_hash_t #9778
2010-10-17 20:54:53 +00:00
Martin v. Löwis
c980ffde14
Drop OPT:Olimit, as it confuses SunPRO (and other compilers).
2010-10-17 19:36:54 +00:00
Matthias Klose
8690ae57f3
- Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.
2010-10-17 13:22:33 +00:00
Victor Stinner
9d396399da
Issue #10123 : Don't use non-ascii filenames in test_doctest tests. Add a
...
new test specific to unicode (non-ascii name and filename).
2010-10-16 21:54:59 +00:00
Victor Stinner
4c7c8c3023
Issue #9713 , #10114 : Parser functions (eg. PyParser_ASTFromFile) expects
...
filenames encoded to the filesystem encoding with surrogateescape error handler
(to support undecodable bytes), instead of UTF-8 in strict mode.
2010-10-16 13:14:10 +00:00
Benjamin Peterson
230b20684f
don't identify the toplevel namespace by name #9997
2010-10-16 03:45:45 +00:00
Barry Warsaw
f6219a588d
Add NEWS for issue 9807 part 1.
2010-10-16 01:20:45 +00:00
R. David Murray
e16cda9ad8
#9862 : On AIX PIPE_BUF is broken. Make it 512.
...
Patch by Sébastien Sablé.
2010-10-15 23:12:57 +00:00
Georg Brandl
3844f0d7cd
#6098 : Refrain from claiming DOM level 3 conformance in minidom.
2010-10-15 18:00:35 +00:00
Georg Brandl
b9cd72a9f7
#5762 : fix handling of empty namespace in minidom, which would result in AttributeError on toxml().
2010-10-15 17:58:45 +00:00
Georg Brandl
d2413428dc
Fix issue references.
2010-10-15 16:42:14 +00:00
Alexander Belopolsky
e8f583244a
Issue #9308 : Removed redundant coding cookies. Added tests for
...
importing encoded modules that do not depend on specific stdlib
modules being encoded in a certain way.
2010-10-15 16:28:20 +00:00
Georg Brandl
c01537f742
#9054 : fix crash when using pyexpat with a system expat lib version 2.0.1.
2010-10-15 16:26:08 +00:00
Georg Brandl
1f7fffb308
#2830 : add html.escape() helper and move cgi.escape() uses in the standard library to it. It defaults to quote=True and also escapes single quotes, which makes casual use safer. The cgi.escape() interface is not touched, but emits a (silent) PendingDeprecationWarning.
2010-10-15 15:57:45 +00:00
Georg Brandl
b4dac71a87
#5355 : Provide mappings from Expat error numbers to string descriptions and backwards, in order to actually make it possible to analyze error codes provided by ExpatError.
2010-10-15 14:46:48 +00:00