Lars Gustäbel
5c4c4619b0
Issue #8464 : tarfile.open(name, mode="w|") no longer creates
...
files with execute permissions set.
2010-04-29 15:23:38 +00:00
Antoine Pitrou
f56a288b1e
Issue #7834 : Fix connect() of Bluetooth L2CAP sockets with recent versions
...
of the Linux kernel. Patch by Yaniv Aknin.
2010-04-29 10:05:40 +00:00
Senthil Kumaran
ed9204346e
Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked"
2010-04-28 17:20:43 +00:00
Nick Coghlan
c5e4485248
Issue 8202: when using the -m command line switch, sys.argv[0] is now '-m' instead of '-c' while searching for the module to be executed
2010-04-28 14:51:08 +00:00
Nick Coghlan
54677da895
Also mention patch submitter's name in NEWS, not just in the commit message
2010-04-28 14:34:30 +00:00
Nick Coghlan
dfb45dfd04
Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing the exception under test (original patch by Lennart Regebro)
2010-04-28 14:29:06 +00:00
Jesus Cea
616de77779
Issue #3928 : Support 'os.mknod()' in Solaris
2010-04-28 10:32:30 +00:00
Victor Stinner
6a10281d33
Issue #7449 , last part (11): fix many tests if thread support is disabled
...
* Use try/except ImportError or test_support.import_module() to import thread
and threading modules
* Add @unittest.skipUnless(threading, ...) to testcases using threads
2010-04-27 23:55:59 +00:00
Antoine Pitrou
4c7bcf1194
Issue #8086 : In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline
...
before the certificate footer. Patch by Kyle VanderBeek.
2010-04-27 22:03:37 +00:00
Victor Stinner
d9d147b806
Issue #7449 , part 1: fix test_support.py for Python compiled without thread
2010-04-27 21:46:03 +00:00
Benjamin Peterson
a9bd6d5ea7
reject None as the buffering argument like the C implementation does #8546
2010-04-27 21:01:54 +00:00
Antoine Pitrou
1dc6b08f9e
Issue #8549 : Fix compiling the _ssl extension under AIX. Patch by
...
Sridhar Ratnakumar.
2010-04-27 19:09:59 +00:00
R. David Murray
3939dcdb72
Issue #6656 : fix locale.format_string to handle escaped percents and mappings.
...
Refactors format_string. Includes tests for the two problems noted in
the issue, but as far as I can see there are no other tests that confirm
that format_string conforms to normal % formatting rules.
2010-04-26 21:17:14 +00:00
Brett Cannon
1994969c15
When DeprecationWarning was silenced by default, it also silenced any use of -Q
...
by default as well. This change fixes that by treating -Q like -3 when it comes
to DeprecationWarning; using it causes the silencing to not occur.
Fixes issue #7319 .
2010-04-25 22:33:36 +00:00
Antoine Pitrou
a624040d72
Issue #2302 : Fix a race condition in SocketServer.BaseServer.shutdown,
...
where the method could block indefinitely if called just before the
event loop started running. This also fixes the occasional freezes
witnessed in test_httpservers.
2010-04-25 21:40:32 +00:00
Antoine Pitrou
fc69af1562
Issue #5103 : SSL handshake would ignore the socket timeout and block
...
indefinitely if the other end didn't respond.
2010-04-24 20:04:58 +00:00
Antoine Pitrou
4d3e372ff3
The do_handshake() method of SSL objects now adjusts the blocking mode of
...
the SSL structure if necessary (as other methods already do).
2010-04-24 19:57:01 +00:00
Matthias Klose
5183ebdaa7
- Issue #8509 : Fix quoting in help strings and code snippets in configure.in.
2010-04-24 16:38:36 +00:00
Georg Brandl
4341e54de8
#7507 : quote "!" in pipes.quote(); it is a special character for some shells.
2010-04-24 09:08:10 +00:00
Antoine Pitrou
b558f17b18
Issue #5238 : Calling makefile() on an SSL object would prevent the
...
underlying socket from being closed until all objects get truely destroyed.
2010-04-23 23:25:45 +00:00
Antoine Pitrou
dfb299bb95
Issue #7943 : Fix circular reference created when instantiating an SSL
...
socket. Initial patch by Péter Szabó.
2010-04-23 22:54:59 +00:00
Sean Reifscheider
f6ce3cb84e
issue8451: Making syslog module use sys.argv[0] for "ident".
2010-04-23 08:31:55 +00:00
Antoine Pitrou
a5c4b5515f
Issue #8108 : Fix the unwrap() method of SSL objects when the socket has
...
a non-infinite timeout. Also make that method friendlier with applications
wanting to continue using the socket in clear-text mode, by disabling
OpenSSL's internal readahead. Thanks to Darryl Miles for guidance.
Issue #8108 : test_ftplib's non-blocking SSL server now has proper handling
of SSL shutdowns.
2010-04-22 23:33:02 +00:00
Antoine Pitrou
18e63fbe64
Issue #7332 : Remove the 16KB stack-based buffer in
...
PyMarshal_ReadLastObjectFromFile, which doesn't bring any noticeable
benefit compared to the dynamic memory allocation fallback. Patch by
Charles-François Natali.
2010-04-21 22:53:29 +00:00
Matthias Klose
8a96d209f0
- Build the ossaudio extension on GNU/kFreeBSD.
2010-04-21 22:18:52 +00:00
Antoine Pitrou
c715a9ed08
Issue #8484 : Load all ciphers and digest algorithms when initializing
...
the _ssl extension, such that verification of some SSL certificates
doesn't fail because of an "unknown algorithm".
2010-04-21 19:28:03 +00:00
Victor Stinner
a92e81bf48
Issue #8437 : Fix test_gdb failures, patch written by Dave Malcolm
2010-04-20 22:28:31 +00:00
Giampaolo Rodolà
607f7c056e
Fix Issue #4841 : timeout is now applied for connections resulting from PORT/EPRT commands
2010-04-19 21:46:28 +00:00
Tarek Ziadé
8a12f940fe
Fixed #8463 : added missing reference to bztar in shutil's documentation.
2010-04-19 21:28:21 +00:00
Antoine Pitrou
7c587bf53d
Issue #8438 : Remove reference to the missing "surrogateescape" encoding
...
error handler from the new IO library.
2010-04-19 18:52:43 +00:00
Ronald Oussoren
37805e5c1f
Fix for issue #7072
2010-04-18 13:47:49 +00:00
Giampaolo Rodolà
cf445fced4
Fix Issue #3817 : 225 is now considered a valid response code for ABOR
2010-04-18 12:55:03 +00:00
Martin v. Löwis
24f09fdb23
Issue #8279 : Fix test_gdb failures.
2010-04-17 22:40:40 +00:00
Antoine Pitrou
0a6373c1a9
Issue #8322 : Add a *ciphers* argument to SSL sockets, so as to change the
...
available cipher list. Helps fix test_ssl with OpenSSL 1.0.0.
2010-04-17 17:10:38 +00:00
R. David Murray
e0e8a87d7e
Issue #3864 : Skip three test_signal tests on freebsd6 due to platform bug.
...
Two itimer tests and an interprocess signal test fail on FreeBSD 6 if
any test that starts a thread runs before test_signal. Since FreeBSD7
does not show this behavior, the bug is most likely a platform bug,
so this patch just skips the failing tests on freebsd6.
2010-04-17 05:26:26 +00:00
Benjamin Peterson
821a8ea39f
have a clear error when passing something > sys.maxsize to bytearray
2010-04-16 22:35:38 +00:00
Senthil Kumaran
8c6d9d7c8d
Fix issue2987: RFC2732 support for urlparse (IPv6 addresses)
2010-04-16 02:46:46 +00:00
Georg Brandl
4fabac545e
#5341 : typo.
2010-04-14 08:53:38 +00:00
R. David Murray
661303f27e
Issue #5277 : Fix quote counting when parsing RFC 2231 encoded parameters.
2010-04-13 20:57:40 +00:00
R. David Murray
1a14d3d169
Issue #7585 : use tab between components in unified and context diff headers.
...
Instead of spaces between the filename and date (or whatever the string
is that follows the filename, if any) use tabs. This is what the unix
'diff' command does, for example, and difflib was intended to follow
the 'standard' way of doing diffs. This improves compatibility with
patch tools. The docs and examples are also changed to recommended that
the date format used be the ISO 8601 format, which is what modern diff
tools emit by default.
Patch by Anatoly Techtonik.
2010-04-12 16:35:19 +00:00
R. David Murray
27ef93797c
Issue #7472 : ISO-2022 charsets now consistently use 7bit CTE.
...
Fixed a typo in the email.encoders module so that messages output using
an ISO-2022 character set will use a content-transfer-encoding of
7bit consistently. Previously if the input data had any eight bit
characters the output data would get marked as 8bit even though it
was actually 7bit.
2010-04-12 14:26:06 +00:00
Martin v. Löwis
7f7765ce39
Issue #8330 : Fix expected output in test_gdb.
2010-04-12 05:18:16 +00:00
Antoine Pitrou
ab5ce720e2
Fix misplaced items and incorrect title.
2010-04-11 22:45:47 +00:00
Antoine Pitrou
fc53153498
Issue #8374 : Update the internal alias table in the :mod:`locale` module
...
to cover recent locale changes and additions.
2010-04-11 22:32:39 +00:00
Andrew M. Kuchling
884d0a3c27
Two typo fixes
2010-04-11 12:48:08 +00:00
Benjamin Peterson
12409067c2
towards beta 2
2010-04-10 18:53:58 +00:00
Benjamin Peterson
fbac6c1590
bump version to 2.7b1
2010-04-10 16:22:05 +00:00
Martin v. Löwis
7bc26b9be6
Issue #8348 : Fix test ftp url in test_urllib2net.
2010-04-08 17:40:54 +00:00
Martin v. Löwis
e84089e3f1
Issue #8204 : Fix test_ttk notebook test by forcing focus.
2010-04-08 17:38:32 +00:00
Martin v. Löwis
1b287c7434
Issue #8344 : Fix test_ttk bug on FreeBSD.
2010-04-08 09:47:40 +00:00
Jeroen Ruigrok van der Werven
6d22cfcee4
Document the libffi FreeBSD fix.
2010-04-07 16:34:08 +00:00
Martin v. Löwis
16ea548f69
Issue #8314 : Fix unsigned long long bug in libffi on Sparc v8.
2010-04-07 11:01:46 +00:00
Philip Jenvey
aebbaeb962
#7301 : add the environment variable $PYTHONWARNINGS to supplement the -W
...
command line option
patch from Brian Curtin
2010-04-06 23:24:45 +00:00
Benjamin Peterson
3a1dfa21c2
remove a optimization that resulted in unexpected behavior #8929
2010-04-06 21:50:00 +00:00
Antoine Pitrou
3b4c989cfd
Issue #8193 : Fix test_zlib failure with zlib 1.2.4.
2010-04-06 17:21:09 +00:00
Mark Dickinson
8279167af9
Misc/NEWS entry for r79843.
2010-04-06 16:47:55 +00:00
Antoine Pitrou
f9de534c21
Issue #8321 : Give access to OpenSSL version numbers from the `ssl` module,
...
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.
2010-04-05 21:35:07 +00:00
Benjamin Peterson
76a23c17bc
fix dis on new style classes #8310
2010-04-04 23:23:22 +00:00
Raymond Hettinger
bb006cf26c
Add tests for cmp_to_key.
...
Adopt PEP 8 compliant function name.
Factor-out existing uses cmp_to_key.
Update documentation to use internal pointers instead of external resource.
2010-04-04 21:45:01 +00:00
Raymond Hettinger
a551f31d48
Add functools.CmpToKey()
2010-04-04 18:34:45 +00:00
Benjamin Peterson
4ceeeb09d8
ensure that the locale does not affect the tokenization of identifiers
2010-04-03 22:48:51 +00:00
Raymond Hettinger
5f516edd77
Add count() method to collections.deque().
2010-04-03 18:10:37 +00:00
Mark Dickinson
8a95071fc1
Add Misc/NEWS entry for r79609.
2010-04-03 15:47:46 +00:00
Mark Dickinson
4846a8e828
Issue #8300 : Let struct.pack use __index__ to convert and pack non-integers.
...
Based on a patch by Meador Inge.
2010-04-03 14:05:10 +00:00
Raymond Hettinger
34c35b2788
Add subtract() method to collections.Counter() objects.
2010-04-03 10:22:00 +00:00
Tarek Ziadé
0000295fe3
Issue #1222585 : Added LDCXXSHARED for C++ support
2010-04-03 08:37:59 +00:00
Benjamin Peterson
1c7c11ef61
give TypeError when trying to set T_STRING_INPLACE
2010-04-03 01:28:57 +00:00
Brian Curtin
85108e64a7
Add note about #1220212 (os.kill on Windows)
2010-04-02 23:31:28 +00:00
Michael Foord
a04c7a0f16
Issue #8038 : Addition of unittest.TestCase.assertNotRegexpMatches
2010-04-02 22:55:59 +00:00
Mark Dickinson
7c63eee485
Issue #8294 : Allow float and Decimal arguments in Fraction constructor.
2010-04-02 22:27:36 +00:00
Brian Curtin
19479fa437
Add a line about #7347 to Misc\News
2010-04-02 21:51:37 +00:00
Eric Smith
d44b2fc87c
Issue 7994: Make object.__format__ with a non-empty format string a PendingDecprecationWarning. Still need to remove uses of this from various tests.
2010-04-02 12:30:56 +00:00
Larry Hastings
3b958e3b57
Issue #8235 : _socket: Add the constant ``SO_SETFIB``. SO_SETFIB is
...
a socket option available on FreeBSD 7.1 and newer.
2010-04-02 11:18:17 +00:00
Larry Hastings
5ac006dfd3
Capsule-related changes:
...
* PyCObject_AsVoidPtr() can now open capsules. This addresses
most of the remaining backwards-compatibility concerns about
the conversion of Python 2.7 from CObjects to capsules.
* CObjects were marked Pending Deprecation.
* Documentation about this pending deprecation was added to
cobject.h.
* The capsule source files were added to the legacy PC build
processes.
2010-04-02 11:01:35 +00:00
Mark Dickinson
f3eeca16cb
Issue #7279 : Make Decimal('nan') hashable. Decimal('snan') remains unhashable.
...
Also rewrite the Decimal __hash__ method so that it doesn't rely on
float('inf') being valid: float('inf') could raise an exception on
platforms not using IEEE 754 arithmetic.
2010-04-02 10:35:12 +00:00
Mark Dickinson
e096e82e82
Issue #7279 : Make comparisons involving a Decimal sNaN signal InvalidOperation.
2010-04-02 10:17:07 +00:00
Mark Dickinson
99d8096c17
Issue #2531 : Make float-to-decimal comparisons return correct results.
...
Float to decimal comparison operations now return a result based on
the numeric values of the operands. Decimal.__hash__ has also been
fixed so that Decimal and float values that compare equal have equal
hash value.
2010-04-02 08:53:22 +00:00
Antoine Pitrou
76c8649038
Issue #8276 : PyEval_CallObject() is now only available in macro form. The
...
function declaration, which was kept for backwards compatibility reasons,
is now removed (the macro was introduced in 1997!).
2010-04-01 16:42:11 +00:00
Martin v. Löwis
bf0dfb3d0e
Issue #8032 : For gdb7, a python-gdb.py file is added to the build,
...
allowing to use advanced gdb features when debugging Python.
2010-04-01 07:40:51 +00:00
Antoine Pitrou
a57df2cf1d
Issue #8268 : Old-style classes (not just instances) now support weak
...
references.
2010-03-31 21:32:15 +00:00
Barry Warsaw
f7f2d6f51e
- Issue #8233 : When run as a script, py_compile.py optionally takes a single
...
argument `-` which tells it to read files to compile from stdin. Each line
is read on demand and the named file is compiled immediately. (Original
patch by Piotr Ożarowski).
2010-03-31 21:07:16 +00:00
Antoine Pitrou
6032c25063
Issue #8248 : Add some tests for the bool type. Patch by Gregory Nofi.
2010-03-30 18:49:45 +00:00
Benjamin Peterson
7e213255ce
add inspect.getcallargs, which binds function arguments like a normal call #3135
...
Patch by George Sakkis
2010-03-30 17:58:13 +00:00
Florent Xicluna
75c6676916
#8263 : Now regrtest.py will report a failure if it receives a KeyboardInterrupt (SIGINT).
2010-03-30 16:31:14 +00:00
Florent Xicluna
58b6566b0a
Highlight the change of behavior related to r79494. Now VT and FF are linebreaks.
2010-03-30 16:29:03 +00:00
Florent Xicluna
22b243809e
#7643 : Unicode codepoints VT (0x0B) and FF (0x0C) are linebreaks according to Unicode Standard Annex #14 .
2010-03-30 08:24:06 +00:00
Michael Foord
e6410c536c
Backport of weakref.WeakSet and tests from Python 3.
2010-03-29 20:04:23 +00:00
Mark Dickinson
9588d998d5
Add Misc/NEWS entry for r79455.
2010-03-27 11:14:37 +00:00
Antoine Pitrou
eee91cda80
Issue #8222 : Enable the SSL_MODE_AUTO_RETRY flag on SSL sockets, so that blocking
...
reads and writes are always retried by OpenSSL itself.
(this is a followup to issue #3890 )
2010-03-26 19:27:16 +00:00
Florent Xicluna
8aa5a581d3
#8207 : Fix test_pep277 on OS X
2010-03-25 20:33:49 +00:00
Larry Hastings
402b73fb8d
Backported PyCapsule from 3.1, and converted most uses of
...
CObject to PyCapsule.
2010-03-25 00:54:54 +00:00
Victor Stinner
6cbf90fc0f
Issue #8211 : Save/restore CFLAGS around AC_PROG_CC in configure.in, compiler
...
optimizations are disabled when --with-pydebug is used.
2010-03-25 00:21:53 +00:00
Vinay Sajip
b0623d64a8
logging: Added LOG_FTP for SysLogHandler and updated documentation.
2010-03-24 14:31:21 +00:00
Florent Xicluna
176cda11df
Issue #8205 : Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only).
2010-03-22 22:52:11 +00:00
Florent Xicluna
e1f4c92d23
#7667 : Fix doctest failures with non-ASCII paths.
2010-03-22 22:45:50 +00:00
Antoine Pitrou
513d9aeadb
Issue #7512 : shutil.copystat() could raise an OSError when the filesystem
...
didn't support chflags() (for example ZFS under FreeBSD). The error is
now silenced.
2010-03-22 19:59:46 +00:00
Florent Xicluna
9e7a4c9738
Issue #7703 : ctypes supports both buffer() and memoryview(). The former is deprecated.
...
Complement of r79288.
2010-03-22 16:07:38 +00:00
R. David Murray
c9d1a7845b
Issue #7860 : platform.uname now reports the correct 'machine' type
...
when Python is running in WOW64 mode on 64 bit Windows. Patch by
Brian Curtin.
2010-03-22 15:55:09 +00:00
Vinay Sajip
804899b4ab
logging: Added getChild utility method to Logger and added isEnabledFor method to LoggerAdapter.
2010-03-22 15:29:01 +00:00
Jesus Cea
6557aac599
pybsddb 4.8.4 integration. Please, comment in issue #8156
2010-03-22 14:22:26 +00:00