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
Vinay Sajip
31e928eb3c
Issue #8201 : logging: Handle config errors when non-ASCII and Unicode logger names exist at the same time.
2010-03-22 13:02:28 +00:00
Victor Stinner
c7790ed163
Fix the NEWS about my last commit: an unicode subclass can now override the
...
__unicode__ method (and not the __str__ method).
Simplify also the testcase.
2010-03-22 12:36:28 +00:00
Vinay Sajip
3017a7bbbf
Issue #8200 : logging: Handle errors when multiprocessing is not fully loaded when logging occurs.
2010-03-22 12:33:08 +00:00
Victor Stinner
95affc4449
Issue #1583863 : An unicode subclass can now override the __str__ method
2010-03-22 12:24:37 +00:00
Benjamin Peterson
965458931f
improve error message from passing inadequate number of keyword arguments #6474
...
Note this removes the "non-keyword" or "keyword" phrases from these messages.
2010-03-21 20:21:00 +00:00
Antoine Pitrou
448da71807
Issue #3890 : Fix recv() and recv_into() on non-blocking SSL sockets.
2010-03-21 19:33:38 +00:00
Antoine Pitrou
f83b30832c
Issue #1628484 : The Makefile doesn't ignore the CFLAGS environment
...
variable anymore. It also forwards the LDFLAGS settings to the linker
when building a shared library.
2010-03-21 19:19:41 +00:00
Florent Xicluna
77a8849505
#8180 : Fix test_pep277 on OS X and add more tests for special Unicode normalization cases.
2010-03-21 18:00:38 +00:00
Florent Xicluna
cf82fa6f91
Issue #8179 : Fix macpath.realpath() on a non-existing path.
2010-03-21 12:27:20 +00:00
Matthias Klose
e9fbf2b943
- Issue #1039 , #8154 : Fix os.execlp() crash with missing 2nd argument.
2010-03-19 14:45:06 +00:00
Collin Winter
a70f349620
Make python-config support multiple option flags on the same command line, rather than requiring one invocation per flag.
2010-03-19 00:08:44 +00:00
Collin Winter
001a3952c9
Add support for weak references to code objects. This will be used by an optimization in the incoming Python 3 JIT.
...
Patch by Reid Kleckner!
2010-03-18 21:54:01 +00:00
Florent Xicluna
2e0a53fdf6
Issue #8024 : Update the Unicode database to 5.2
2010-03-18 21:50:06 +00:00
Antoine Pitrou
d7b731d160
Issue #8104 : socket.recv_into() and socket.recvfrom_into() now support
...
writing into objects supporting the new buffer API, for example bytearrays
or memoryviews.
2010-03-17 22:45:39 +00:00
Benjamin Peterson
0dee9c1b5c
prevent lambda functions from having docstrings #8164
2010-03-17 20:41:42 +00:00
Matthias Klose
8b41168bab
- Issue #4961 : Inconsistent/wrong result of askyesno function in tkMessageBox
...
with Tcl/Tk-8.5.
2010-03-16 10:48:52 +00:00
Florent Xicluna
3cc8f211ed
Issue #7783 and #7787 : open_urlresource invalidates the outdated files from the local cache.
...
Use this feature to fix test_normalization.
2010-03-15 18:08:58 +00:00
Matthias Klose
b13d04c991
- Issue #8140 : extend compileall to compile single files. Add -i option.
2010-03-15 17:44:12 +00:00
Matthias Klose
358e7ff36b
- Issue #7356 : ctypes.util: Make parsing of ldconfig output independent of
...
the locale.
2010-03-15 13:42:23 +00:00
Martin v. Löwis
24e4e168a0
Issue #6716 : Quote -x arguments of compileall in MSI installer.
2010-03-15 13:00:17 +00:00
Matthias Klose
54cc539a2b
- Issue #6949 : Allow the _bsddb extension to be built with db-4.8.x.
2010-03-15 12:46:18 +00:00