Martin v. Löwis
8c255e4173
Patch #1722225 : Support QNX 6.
2008-05-23 15:06:50 +00:00
Brett Cannon
2ee0e8eaec
Revert the renaming of repr to reprlib.
2008-05-23 05:03:59 +00:00
Mark Dickinson
99dfe92759
Issue #2819 : Add math.sum, a function that sums a sequence of floats
...
efficiently but with no intermediate loss of precision. Based on
Raymond Hettinger's ASPN recipe. Thanks Jean Brouwers for the patch.
2008-05-23 01:35:30 +00:00
Jesus Cea
ca3939cd52
bsddb module updated to version 4.7.0
2008-05-22 15:27:38 +00:00
Vinay Sajip
c01288387c
Updated with fixes for #2914 and #2929 .
2008-05-20 15:37:22 +00:00
Georg Brandl
88659b0ab2
#2592 : delegate nb_index and the floor/truediv slots in weakref.proxy.
2008-05-20 08:40:43 +00:00
Georg Brandl
112aa50329
Patch #1775025 : allow opening zipfile members via ZipInfo instances.
...
Patch by Graham Horler.
2008-05-20 08:25:48 +00:00
Martin v. Löwis
4dd019fde3
Patch #2488 : Add sys.maxsize.
2008-05-20 08:11:19 +00:00
Georg Brandl
6634bf2919
Tkinter rename reversal: remove tkinter package, adapt imports and docs.
2008-05-20 07:13:37 +00:00
Fred Drake
d995e1150c
revert creation of the html.entities and html.parser modules
...
(http://bugs.python.org/issue2882 )
2008-05-20 06:08:38 +00:00
Georg Brandl
a9916b55de
#2353 : raise Py3k warning in file.xreadlines().
2008-05-17 22:11:54 +00:00
Fred Drake
91ae250273
rename HTMLParser to html.parser, htmlentitydefs to html.entities
...
(http://bugs.python.org/issue2882 )
2008-05-17 20:30:04 +00:00
Georg Brandl
3ee81df3bb
Rewrap consistently to 70 chars, and standardize the way of referring to issues.
2008-05-17 18:14:43 +00:00
Georg Brandl
28fdfa9839
#961805 : fix Edit.text_modified().
2008-05-17 17:57:01 +00:00
Gregory P. Smith
664782e1c8
issue2858: Fix potential memory corruption when bsddb.db.DBEnv.lock_get
...
and other bsddb.db object constructors raised an exception.
Debugging & patch by Neal Norowitz.
2008-05-17 06:12:02 +00:00
Thomas Heller
95ba13fa85
Issue 1793: Add ctypes.util.find_msvcrt() function (on Windows).
2008-05-16 20:06:31 +00:00
Georg Brandl
5e7b1c07bc
NEWS entry for Tkinter rename.
2008-05-16 17:40:23 +00:00
Georg Brandl
5049a858ba
#2890 : support os.O_ASYNC and fcntl.FASYNC.
2008-05-16 13:10:15 +00:00
Christian Heimes
0bd23c0a98
Fixed #2870 : cmathmodule.c compile error
2008-05-16 10:23:31 +00:00
Alexandre Vassalotti
95d97c7390
Renamed the repr module to reprlib.
...
Added stub module for repr.
2008-05-16 06:37:57 +00:00
Brett Cannon
fa40bbf625
Deprecated statvfs for removal in 3.0.
2008-05-16 00:50:02 +00:00
Brett Cannon
2224817cdf
Deprecate sunaudiodev/SUNAUDIODEV for removal in 3.0.
2008-05-16 00:10:24 +00:00
Georg Brandl
c91210c06b
#2863 : add gen.__name__ and add this name to generator repr().
2008-05-15 15:08:32 +00:00
Brett Cannon
74a596c068
Deprecate WAIT for removal in 3.0.
2008-05-15 04:17:35 +00:00
Brett Cannon
f56b6aeb06
Deprecated torgb for removal in 3.0.
2008-05-15 04:15:25 +00:00
Brett Cannon
518c5da219
Deprecate SV for removal in 3.0.
2008-05-15 04:13:19 +00:00
Brett Cannon
cd2de08257
Deprecate readcd for removal in 3.0.
2008-05-15 03:51:21 +00:00
Brett Cannon
11ae6e7151
Deprecated panelparser for removal in 3.0.
2008-05-15 03:49:00 +00:00
Brett Cannon
7e37586c50
The panel module for IRIX has been deprecated for removal in 3.0.
2008-05-15 03:46:27 +00:00
Brett Cannon
89f5d9cc81
Deprecate jpeg for IRIX for removal in 3.0.
2008-05-15 03:44:00 +00:00
Brett Cannon
d8c41ecc17
Deprecate IOCTL from IRIX for removal in 3.0.
2008-05-15 03:41:55 +00:00
Brett Cannon
6328b297dc
Deprecate IN from IRIX for removal in 3.0.
2008-05-15 03:36:13 +00:00
Brett Cannon
4652537ba4
Deprecate imgfile for removal in 3.0.
2008-05-15 03:32:11 +00:00
Brett Cannon
707e384a7a
Deprecate GLWS from IRIX for removal in 3.0.
2008-05-15 03:29:18 +00:00
Brett Cannon
82bd94e651
Deprecate GET from IRIX for removal in 3.0.
2008-05-15 03:27:12 +00:00
Brett Cannon
75ba465099
Deprecated 'fm' for removal in 3.0.
2008-05-15 03:23:17 +00:00
Brett Cannon
178582e2a4
FL, flp, and fl from IRIX have been deprecated for removal in 3.0.
2008-05-15 03:20:36 +00:00
Brett Cannon
72ccc40db5
FILE from IRIX has been deprecated for removal in 3.0.
2008-05-15 03:17:24 +00:00
Brett Cannon
2773b6f1c9
Deprecate ERRNO for removal in 3.0.
2008-05-15 03:14:57 +00:00
Brett Cannon
044616aa24
Deprecate DEVICE, GL, gl, and the related modules cgen and cgensupport for removal in 3.0.
2008-05-15 02:33:55 +00:00
Alexandre Vassalotti
e3a23c0734
Renamed the ConfigParser module to 'configparser'.
2008-05-14 22:07:07 +00:00
Brett Cannon
650f5161f4
Deprecate CL, CL_old, and cl for 3.0.
2008-05-14 21:12:12 +00:00
Brett Cannon
54c77aa459
Deprecate the cdplayer module for IRIX for 3.0.
2008-05-14 21:08:41 +00:00
Brett Cannon
9eebe49d07
The cddb module for IRIX has been deprecated for 3.0.
2008-05-14 20:34:22 +00:00
Brett Cannon
ddf949f194
The CD and cd modules for IRIX are deprecated for 3.0.
2008-05-14 20:31:38 +00:00
Georg Brandl
bd85eb1167
Add NEWS entry for #2831 .
2008-05-14 06:34:15 +00:00
Brett Cannon
34721d5683
Deprecate al/AL for removal in 3.0.
2008-05-14 01:08:21 +00:00
Jesus Cea
ef9764f1a4
bsddb module updated to version 4.6.4
2008-05-13 18:45:46 +00:00
Benjamin Peterson
236819310d
Add warnings to and deprecated all those Mac modules
2008-05-12 21:42:13 +00:00
Amaury Forgeot d'Arc
f9b54c2411
Sync code with documentation, and remove Win95 support in winsound module.
2008-05-12 21:30:24 +00:00
Georg Brandl
23da6e6545
#1713041 : fix pprint's handling of maximum depth.
2008-05-12 16:26:52 +00:00
Brett Cannon
bb141bb1f4
Deprecate the timing module for removal in Python 3.0.
2008-05-12 03:47:47 +00:00
Brett Cannon
ac861b5a17
Deprecate the sv module as per PEP 4.
2008-05-12 03:45:59 +00:00
Brett Cannon
43e5ef49b1
Deprecate the multifile module as per PEP 4.
2008-05-12 03:19:20 +00:00
Alexandre Vassalotti
fb9ce65a91
Renamed SocketServer to 'socketserver'.
...
Deprecated old name.
2008-05-12 01:37:10 +00:00
Benjamin Peterson
b9030f4f0d
#2196 hasattr now allows SystemExit and KeyboardInterrupt to propagate
2008-05-12 00:41:23 +00:00
Brett Cannon
42bfa90f02
Depreate imageop for removal in 3.0.
2008-05-12 00:08:34 +00:00
Brett Cannon
b61d801adb
Put Lib/lib-old back on to sys.path for module renames.
2008-05-11 23:39:04 +00:00
Georg Brandl
627a666db0
- #2250 : Exceptions raised during evaluation of names in rlcompleter's
...
``Completer.complete()`` method are now caught and ignored.
2008-05-11 21:03:42 +00:00
Georg Brandl
9020ff88e6
Add some sentence endings.
2008-05-11 14:17:13 +00:00
Benjamin Peterson
98353941ea
Add the "until" command to pdb
2008-05-11 14:13:25 +00:00
Andrew M. Kuchling
aac5c8669f
#1858 : re-apply patch for this, adding the missing files
2008-05-11 14:00:00 +00:00
Georg Brandl
6f95ae55b1
#2659 : add ``break_on_hyphens`` to TextWrapper.
2008-05-11 10:42:28 +00:00
Brett Cannon
2a86913864
Deprecated the mhlib module for removal in 3.0.
2008-05-11 03:01:47 +00:00
Brett Cannon
df0a717037
The linuxaudidev module has been deprecated for removal in Python 3.0.
2008-05-11 00:50:51 +00:00
Brett Cannon
27508d4eb9
Deprecate ihooks for removal in 3.0.
2008-05-10 22:45:07 +00:00
Brett Cannon
fe5985188d
Deprecate the fpformat module for removal in 3.0.
2008-05-10 22:11:45 +00:00
Brett Cannon
e35a3a1d6b
Add an entry for the deprecation of the dl module.
2008-05-10 21:22:43 +00:00
Brett Cannon
10f5db6424
Revert r62998 as it broke the build (seems distutils.config is missing).
2008-05-10 20:52:01 +00:00
Andrew M. Kuchling
cd8001c8ed
#1858 from Tarek Ziade:
...
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.
The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
2008-05-10 19:51:55 +00:00
Brett Cannon
d5a0985265
The Canvas module has been deprecated for removal in 3.0.
2008-05-10 03:14:32 +00:00
Brett Cannon
6192df10b6
Deprecate the compiler package for removal in 3.0.
2008-05-10 02:58:26 +00:00
Brett Cannon
cda73a4b4e
Add an entry on the deprecation of Bastion and rexec.
2008-05-10 02:53:46 +00:00
Brett Cannon
768d44f54d
Deprecate the bsddb185 module for removal in 3.0.
2008-05-10 02:47:54 +00:00
Brett Cannon
9ac3974de8
Deprecate the pure module for 3.0.
2008-05-09 22:51:58 +00:00
Mark Dickinson
f8476c1573
Issue #2487 . math.ldexp(x, n) raised OverflowError when n was large and
...
negative; fix to return an (appropriately signed) zero instead.
2008-05-09 17:54:23 +00:00
Mark Dickinson
e81c376080
Issue #2801 : fix bug in float.is_integer where ValueError
...
could be incorrectly raised. This is a backport of the
Py3k fix in r62939. (Should really have been fixed
in the trunk first and svnmerged into py3k.)
2008-05-09 16:14:15 +00:00
Brett Cannon
fa24d9a71c
Deprecate the toaiff module for removal in 3.0.
2008-05-09 05:32:42 +00:00
Brett Cannon
3c75914434
Deprecate test.testall for removal in 3.0.
2008-05-09 05:25:37 +00:00
Brett Cannon
d7265d6483
Deprecate the new module for removal in 3.0.
2008-05-09 05:18:40 +00:00
Benjamin Peterson
0893a0a961
Add Py3k warnings to os.path.walk
2008-05-09 00:27:01 +00:00
Brett Cannon
e3b1940eb9
Deprecate the user module for removal in 3.0.
2008-05-08 20:36:09 +00:00
Brett Cannon
cae4f5f4ac
Add test.test_support.catch_warning()'s new argument.
2008-05-08 20:24:43 +00:00
Brett Cannon
3c1d50a5d1
Add a missing entry on the fix for issue #2790 .
2008-05-08 20:23:54 +00:00
Brett Cannon
6071cc8fb0
Deprecate stringold for removal in 3.0.
2008-05-08 19:52:45 +00:00
Brett Cannon
9d44182427
The mutex module has been deprecated for removal in 3.0.
2008-05-08 19:26:08 +00:00
Brett Cannon
80bb9d92e3
Deprecate the imputil module for removal in 3.0.
2008-05-08 18:15:14 +00:00
Barry Warsaw
6cc7940e10
Bump to 2.6a3
2008-05-08 13:16:19 +00:00
Brett Cannon
f843682fa6
Add an entry about audiodev being slated for removal in 3.0.
2008-05-06 23:41:32 +00:00
Christian Heimes
af748c3ab8
Implemented PEP 370
2008-05-06 22:41:46 +00:00
Brett Cannon
4b964f9c90
Add the 'json' package. Code taken from simplejson 1.9 and contributed by Bob
...
Ippolito.
Closes issue #2750 .
2008-05-05 20:21:38 +00:00
Martin v. Löwis
471617d6d3
Issue #1734346 : Support Unicode file names for zipfiles.
2008-05-05 17:16:58 +00:00
Brett Cannon
8a232cc385
Add a DeprecationWarning for when warnings.showwarning() is set to a function
...
that lacks support for the new 'line' argument.
2008-05-05 05:32:07 +00:00
Ronald Oussoren
580c7fec67
Fix for issue #2573 : Can't change the framework name on OS X builds
...
This introduces a new configure option: --with-framework-name=NAME
(defaulting to 'Python'). This allows you to install several copies
of the Python framework with different names (such as a normal build
and a debug build).
2008-05-02 19:45:11 +00:00
Mark Hammond
7c5c8e6823
#2581 : Vista UAC/elevation support for bdist_wininst
2008-05-02 12:48:15 +00:00
Brett Cannon
b457ddaff2
Fix a backwards-compatibility mistake where a new optional argument for
...
warnings.showwarning() was being used. This broke pre-existing replacements for
the function since they didn't support the extra argument.
Closes issue 2705.
2008-05-02 02:25:09 +00:00
Georg Brandl
28e0873f1f
#2719 : backport next() from 3k.
2008-04-30 19:47:09 +00:00
Andrew M. Kuchling
46d6b689b2
Typo fix
2008-04-30 16:19:55 +00:00
Benjamin Peterson
a692c4df63
Added PyErr_WarnPy3k function. (issue 2671) I will be converting current Py3k warnings to the use of this function soon.
2008-04-27 02:28:02 +00:00
Mark Dickinson
fe536f53ea
Issue 2635: fix bug in the fix_sentence_endings option to textwrap.fill.
2008-04-25 16:59:09 +00:00
Mark Dickinson
6513466270
Issue #1496032 . Add -mieee to BASECFLAGS on alpha, when gcc is
...
the compiler. This should(?) help to fix failures in test_math
and test_cmath on Linux/alpha.
Also add configure message reporting the result of uname -m, as
a debugging aid.
2008-04-25 16:11:04 +00:00
Thomas Heller
6ad5fbb7ea
Add from_buffer and from_buffer_copy class methods to ctypes types.
2008-04-25 15:44:16 +00:00
Neal Norwitz
2b0bea5d27
Fix typo (now -> no)
2008-04-25 03:40:17 +00:00
Thomas Heller
bf027c48c8
Remove cyclic reference in CFuncPtr instances; see issue #2682 .
...
Backport candidate for the release25-maint branch.
2008-04-24 18:14:19 +00:00
Amaury Forgeot d'Arc
5216721a53
Issue2681: the literal 0o8 was wrongly accepted, and evaluated as float(0.0).
...
This happened only when 8 is the first digit.
Credits go to Lukas Meuser.
2008-04-24 18:07:05 +00:00
Amaury Forgeot d'Arc
9686585a82
Issue #2670 : urllib2.build_opener() failed when two handlers
...
derive the same default base class.
Will backport.
2008-04-22 21:14:41 +00:00
Gregory P. Smith
d59fefb23a
update the getpass entry
2008-04-22 08:11:33 +00:00
Gregory P. Smith
41e3018336
If sys.stdin is not a tty, fall back to default_getpass after printing
...
a warning instead of failing with a termios.error.
2008-04-21 21:31:08 +00:00
Christian Heimes
e74c8f2879
Added kill, terminate and send_signal to subprocess.Popen
...
The bits and pieces for the Windows side were already in place. The POSIX side is trivial (as usual) and uses os.kill().
2008-04-19 02:23:57 +00:00
Christian Heimes
6f34109384
I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
...
The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
2008-04-18 23:13:07 +00:00
Skip Montanaro
b131f0468f
resolve issue 2014
2008-04-18 20:35:46 +00:00
Nick Coghlan
106fc48336
Issue 2439: add pkgutils.get_data() as a convenience wrapper for the PEP 302 get_data() API (contributed by Paul Moore)
2008-04-15 10:25:31 +00:00
Thomas Heller
046e6a43ff
Issue #2616 : Implement ctypes.pointer() and ctypes.POINTER() in C for
...
better performance.
2008-04-14 16:10:07 +00:00
Brett Cannon
e974689038
Re-implement the 'warnings' module in C. This allows for usage of the
...
'warnings' code in places where it was previously not possible (e.g., the
parser). It could also potentially lead to a speed-up in interpreter start-up
if the C version of the code (_warnings) is imported over the use of the
Python version in key places.
Closes issue #1631171 .
2008-04-12 23:44:07 +00:00
Christian Heimes
7a98d2730c
Applied patch #2617 from Frank Wierzbicki wit some extras from me
...
-J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.
2008-04-12 13:03:03 +00:00
Gregory P. Smith
671c5d9fb5
Add a note about the zlib.decompressobj().flush() fix.
2008-04-09 18:18:43 +00:00
Trent Nelson
e41b0061dd
- Issue #2550 : The approach used by client/server code for obtaining ports
...
to listen on in network-oriented tests has been refined in an effort to
facilitate running multiple instances of the entire regression test suite
in parallel without issue. test_support.bind_port() has been fixed such
that it will always return a unique port -- which wasn't always the case
with the previous implementation, especially if socket options had been
set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT). The
new implementation of bind_port() will actually raise an exception if it
is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or
SO_REUSEPORT socket option set. Furthermore, if available, bind_port()
will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed.
This currently only applies to Windows. This option prevents any other
sockets from binding to the host/port we've bound to, thus removing the
possibility of the 'non-deterministic' behaviour, as Microsoft puts it,
that occurs when a second SOCK_STREAM socket binds and accepts to a
host/port that's already been bound by another socket. The optional
preferred port parameter to bind_port() has been removed. Under no
circumstances should tests be hard coding ports!
test_support.find_unused_port() has also been introduced, which will pass
a temporary socket object to bind_port() in order to obtain an unused port.
The temporary socket object is then closed and deleted, and the port is
returned. This method should only be used for obtaining an unused port
in order to pass to an external program (i.e. the -accept [port] argument
to openssl's s_server mode) or as a parameter to a server-oriented class
that doesn't give you direct access to the underlying socket used.
Finally, test_support.HOST has been introduced, which should be used for
the host argument of any relevant socket calls (i.e. bind and connect).
The following tests were updated to following the new conventions:
test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib,
test_poplib, test_ftplib, test_telnetlib, test_socketserver,
test_asynchat and test_socket_ssl.
It is now possible for multiple instances of the regression test suite to
run in parallel without issue.
2008-04-08 23:47:30 +00:00
Amaury Forgeot d'Arc
02f33b43dc
Add a NEWS entry for previous checkin
2008-04-08 23:10:07 +00:00
Mark Hammond
495cf99aaf
Issue #2513 : enable 64bit cross compilation on windows.
2008-04-07 01:53:39 +00:00
Gregory P. Smith
aa63d0d4af
Make file objects as thread safe as the underlying libc FILE* implementation.
...
close() will now raise an IOError if any operations on the file object
are currently in progress in other threads.
Most code was written by Antoine Pitrou (pitrou). Additional testing,
documentation and test suite cleanup done by me (gregory.p.smith).
Fixes issue 815646 and 595601 (as well as many other bugs and
references to this problem dating back to the dawn of Python).
2008-04-06 23:11:17 +00:00
Thomas Heller
f790648c8c
News entry for: Sync with files from the just released libffi 3.0.5 version.
2008-04-04 19:43:25 +00:00
Thomas Heller
dc96a77c3a
Issue #2544 : On HP-UX systems, use 'gcc -shared' for linking when gcc
...
is used as compiler.
2008-04-04 10:07:55 +00:00
Fred Drake
46c58c17f1
- Issue #2385 : distutils.core.run_script() makes __file__ available, so the
...
controlled environment will more closely mirror the typical script
environment. This supports setup.py scripts that refer to data files.
2008-04-04 05:41:30 +00:00
Barry Warsaw
ba43774d1c
post release updates
2008-04-04 01:34:41 +00:00
Amaury Forgeot d'Arc
d7a265129c
#1733757 : the interpreter would hang on shutdown, if the function set by sys.settrace
...
calls threading.currentThread.
The correction somewhat improves the code, but it was close.
Many thanks to the "with" construct, which turns python code into C calls.
I wonder if it is not better to sys.settrace(None) just after
running the __main__ module and before finalization.
2008-04-03 23:07:55 +00:00
Vinay Sajip
b7edfc4e17
Added updates with respect to recent changes to TimedRotatingFileHandler.
2008-04-02 21:10:23 +00:00
Georg Brandl
91e0cdaedc
Backport #1442 : report exception when startup file cannot be run.
2008-03-29 01:50:06 +00:00
Amaury Forgeot d'Arc
69b747b735
Fix a reference leak found by Georg, when compiling a class nested in another class.
...
Now "regrtest.py -R:: test_compile" is satisfied.
Will backport.
2008-03-28 20:30:50 +00:00
Georg Brandl
fc8eef3c78
Patch #1810 by Thomas Lee, reviewed by myself:
...
allow compiling Python AST objects into code objects
in compile().
2008-03-28 12:11:56 +00:00
Gregory P. Smith
b9803421d2
Accept patch issue2426 by Paul Kippes (kippesp).
...
Adds sqlite3.Connection.iterdump to allow dumping of databases.
2008-03-28 08:32:09 +00:00
Amaury Forgeot d'Arc
da0c025a43
Issue2495: tokenize.untokenize did not insert space between two consecutive string literals:
...
"" "" => """", which is invalid code.
Will backport
2008-03-27 23:23:54 +00:00
Georg Brandl
deaf2cafbd
#2248 : return result of QUIT from quit().
2008-03-27 13:27:31 +00:00
Christian Heimes
3c60833e1e
Patch #2477 : Added from __future__ import unicode_literals
...
The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.
2008-03-26 22:01:37 +00:00
Christian Heimes
8c78cc3b6c
Updated Misc/NEWS
2008-03-26 12:53:58 +00:00
Mark Dickinson
8e85ffa4b2
Issue #2482 : Make sure that the coefficient of a Decimal
...
instance is always stored as a str instance, even
when that Decimal has been created from a unicode string.
2008-03-25 18:47:59 +00:00
Mark Dickinson
3b24ccbe7e
Issue #2478 : Decimal(sqrt(0)) failed when the decimal context
...
was not explicitly supplied.
2008-03-25 14:33:23 +00:00
Georg Brandl
1e7c37514d
#2359 : add Py3k warning for array.read/array.write.
2008-03-25 08:37:23 +00:00
Georg Brandl
80055f6295
#2355 : py3k warning for buffer().
2008-03-25 07:56:27 +00:00
Martin v. Löwis
aef18b1c67
Patch #2240 : Implement signal.setitimer and signal.getitimer.
2008-03-24 13:31:16 +00:00
Martin v. Löwis
cdbc977c03
Install 2to3 script.
2008-03-24 12:57:53 +00:00
Raymond Hettinger
b72233ce63
Issue 2460: Make Ellipsis objects copyable.
2008-03-24 08:17:39 +00:00
Raymond Hettinger
bbc50eafe5
Issue 1681432: Add triangular distribution the random module.
2008-03-23 13:32:32 +00:00
Amaury Forgeot d'Arc
9a0d3462fc
#1477 : ur'\U0010FFFF' raised in narrow unicode builds.
...
Corrected the raw-unicode-escape codec to use UTF-16 surrogates in
this case, just like the unicode-escape codec.
2008-03-23 09:55:29 +00:00
Christian Heimes
0e9ab5f2f0
Applied patch #1657 epoll and kqueue wrappers for the select module
...
The patch adds wrappers for the Linux epoll syscalls and the BSD kqueue syscalls. Thanks to Thomas Herve and the Twisted people for their support and help.
TODO: Finish documentation documentation
2008-03-21 23:49:44 +00:00
Georg Brandl
65bb42dc1b
#2348 : add py3k warning for file.softspace.
2008-03-21 20:38:24 +00:00
Georg Brandl
07e5681fd3
#2346/#2347: add py3k warning for __methods__ and __members__. Patch by Jack Diederich.
2008-03-21 20:21:46 +00:00
Georg Brandl
5a44424c5e
#2358 : add py3k warning to sys.exc_clear().
2008-03-21 20:11:46 +00:00
Georg Brandl
77354cf5ef
Issue #2432 : give DictReader the dialect and line_num attributes
...
advertised in the docs.
2008-03-21 20:01:51 +00:00
Georg Brandl
331243270d
#2136 : allow single quotes in realm spec.
2008-03-21 19:54:00 +00:00
Marc-André Lemburg
a1867750f6
Add news items for platform module changes.
2008-03-20 18:08:00 +00:00
Sean Reifscheider
68fa8e6c45
Forgot to add NEWS item about smtplib SSL readline hang fix.
2008-03-20 00:50:07 +00:00
Brett Cannon
7919d98d56
test_nis would fail if test.test_support.verbose was true but NIS was not set
...
up on the machine.
Closes issue2411. Thanks Michael Bishop.
2008-03-19 16:50:13 +00:00
Martin v. Löwis
5e37baea80
Import lib2to3.
2008-03-19 04:43:46 +00:00
Martin v. Löwis
a4d77898db
Issue #2400 : Allow relative imports to "import *".
2008-03-19 04:39:13 +00:00
Eric Smith
7c47894a2a
Backport of the print function, using a __future__ import.
...
This work is substantially Anthony Baxter's, from issue
1633807. I just freshened it, made a few minor tweaks,
and added the test cases. I also created issue 2412,
which is to check for 2to3's behavior with the print
function. I also added myself to ACKS.
2008-03-18 23:45:49 +00:00
Gregory P. Smith
37f3f430b8
news entry for the chown fix
2008-03-18 20:40:01 +00:00
Sean Reifscheider
493894c3e0
Issue 1577: shutil.move() where destination is a directory was doing a
...
copy, now it is doing a os.rename() if it's on the same file-system.
2008-03-18 17:24:12 +00:00
Neal Norwitz
b1d3d96374
Issue 2332: add new attribute names for instance method objects
2008-03-18 04:46:00 +00:00
Guido van Rossum
6d91be3758
- Issue 2379: Raise a Py3K warning for __getitem__ or __getslice__ on
...
exception instances.
2008-03-18 04:42:22 +00:00
Guido van Rossum
504153d55b
Issue #2341 : Add a Py3k warning when raising an exception that doesn't
...
derive from BaseException.
2008-03-18 04:26:48 +00:00
Brett Cannon
a5573b3153
The output directory for tests that compare against stdout is now gone!
2008-03-18 04:16:06 +00:00
Brett Cannon
aa5778d1b8
Remove our implementation of memmove() and strerror(); both are in the C89
...
standard library.
2008-03-18 04:09:00 +00:00
Brett Cannon
b7ec8e5a9e
test_errno was a no-op test; now it actually tests things and uses unittest.
2008-03-18 03:46:22 +00:00
Guido van Rossum
04edb528ca
- Issue #2371 : Add a Py3k warning when catching an exception that
...
doesn't derive from BaseException.
2008-03-18 02:49:46 +00:00
Brett Cannon
0bb7950829
Move test_extcall to doctest.
2008-03-18 01:58:56 +00:00
Brett Cannon
ba17cfc66c
Convert test_dummy_threading and test_dbm to unittest.
2008-03-18 01:50:25 +00:00
Brett Cannon
6eeaddc341
Convert test_strftime, test_getargs, and test_pep247 to use unittest.
2008-03-18 01:00:07 +00:00
Neal Norwitz
419fd49abe
Issue 2321: reduce memory usage (increase the memory that is returned
...
to the system) by using pymalloc for the data of unicode objects.
Will backport.
2008-03-17 20:22:43 +00:00
Eric Smith
0aed07ad80
Added PEP 3127 support to tokenize (with tests); added PEP 3127 to NEWS.
2008-03-17 19:43:40 +00:00
Gregory P. Smith
f48f9d38c0
Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms
...
regardless of the native sizeof(long) used in the integer object.
This somewhat odd behavior of returning a signed is maintained in 2.x for
compatibility reasons of always returning an integer rather than a long object.
Fixes Issue1202 for Python 2.6
2008-03-17 18:48:05 +00:00
Jeffrey Yasskin
1b4e45bab9
Allow Gnu gcc's to build python on OSX by removing -Wno-long-double,
...
-no-cpp-precomp, and -mno-fused-madd from configure.
* r22183 added -no-cpp-precomp, which
http://gcc.gnu.org/ml/gcc/2005-12/msg00368.html claims hasn't been
needed since gcc-3.1.
* r25607 added -Wno-long-double to avoid a warning in
Include/objimpl.h (issue 525481). The long double is still there,
but OSX 10.4's gcc no longer warns about it.
* r33666 fixed issue 775892 on OSX 10.3 by adding -mno-fused-madd,
which changed the sign of some float 0s. Tim Peters said it wasn't
a real issue anyway, and it no longer causes test failures.
Fixes issue #1779871 .
2008-03-17 14:40:53 +00:00
Neal Norwitz
400aedacc0
Add a warning for code like:
...
assert (0, 'message')
An empty tuple does not create a warning. While questionable usage:
assert (), 'message'
should not display a warning. Tested manually.
The warning message could be improved. Feel free to update it.
2008-03-15 22:03:18 +00:00
Skip Montanaro
32ed8c267c
.
2008-03-15 16:07:11 +00:00
Mark Dickinson
c23b8a7af9
Issue 705836: Fix struct.pack(">f", 1e40) to behave consistently
...
across platforms: it should now raise OverflowError on all
platforms. (Previously it raised OverflowError only on
non IEEE 754 platforms.)
Also fix the (already existing) test for this behaviour
so that it actually raises TestFailed instead of just
referencing it.
2008-03-14 14:23:37 +00:00
Martin v. Löwis
bf7b0b7b81
Patch #2284 : add -x64 option to rt.bat.
2008-03-14 13:56:09 +00:00
Brett Cannon
1f5182b572
Convert test_fcntl to unittest.
...
Closes issue #2055 . Thanks Giampaolo Rodola.
2008-03-13 21:09:28 +00:00
Brett Cannon
4a6e8d669a
Move test_gdbm to use unittest.
...
Closes issue #1960 . Thanks Giampaolo Rodola.
2008-03-13 21:02:16 +00:00
Brett Cannon
2e0f9f3dd9
Convert test_contains, test_crypt, and test_select to unittest.
...
Patch from GHOP 294 by David Marek.
2008-03-13 20:47:41 +00:00
Brett Cannon
b8d37359cd
Move test_tokenize to doctest.
...
Done as GHOP 238 by Josip Dzolonga.
2008-03-13 20:33:10 +00:00
Brett Cannon
66865d2ebd
Move test_thread over to unittest. Commits GHOP 237.
...
Thanks Benjamin Peterson for the patch.
2008-03-13 20:27:00 +00:00
Raymond Hettinger
53bdf09343
Issue 2274: Add heapq.heappushpop().
2008-03-13 19:03:51 +00:00
Facundo Batista
c54aec1fda
Issue 1106316. post_mortem()'s parameter, traceback, is now
...
optional: it defaults to the traceback of the exception that is currently
being handled.
2008-03-08 16:50:27 +00:00
Nick Coghlan
7af53be66f
Speed up with statements by storing the __exit__ method on the stack instead of in a temp variable (bumps the magic number for pyc files)
2008-03-07 14:13:28 +00:00
Jeffrey Yasskin
e75f59a578
Progress on issue #1193577 by adding a polling .shutdown() method to
...
SocketServers. The core of the patch was written by Pedro Werneck, but any bugs
are mine. I've also rearranged the code for timeouts in order to avoid
interfering with the shutdown poll.
2008-03-07 06:22:15 +00:00
Georg Brandl
98aa805b10
Bug #2220 : handle rlcompleter attribute match failure more gracefully.
2008-03-06 07:45:52 +00:00
Georg Brandl
a7bd27f0a8
#2225 : return nonzero status code from py_compile if not all files could be compiled.
2008-03-06 07:41:16 +00:00
Georg Brandl
810ea29b0e
Add missing NEWS entry for r61263.
2008-03-06 07:34:52 +00:00
Martin v. Löwis
d2bbe526c3
Patch #2232 : os.tmpfile might fail on Windows if the user has no
...
permission to create files in the root directory.
Will backport to 2.5.
2008-03-06 06:55:22 +00:00
Raymond Hettinger
66f91ea966
C implementation of itertools.permutations().
2008-03-05 20:59:58 +00:00
Thomas Heller
f3c0559b5e
Issue 1872: Changed the struct module typecode from 't' to '?', for
...
compatibility with PEP3118.
2008-03-05 15:34:29 +00:00
Thomas Heller
78b8f4458d
News entry for yesterdays commit.
2008-03-05 14:53:39 +00:00
Amaury Forgeot d'Arc
d21fb4c2e0
Issue#2238: some syntax errors from *args or **kwargs expressions
...
would give bogus error messages, because of untested exceptions::
>>> f(**g(1=2))
XXX undetected error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not iterable
instead of the expected SyntaxError: keyword can't be an expression
Will backport.
2008-03-05 01:50:33 +00:00
Andrew M. Kuchling
c6511a851e
Typo fix
2008-03-04 01:48:26 +00:00
Andrew M. Kuchling
91ae0c9a70
Typo fix
2008-03-04 00:40:32 +00:00
Christian Heimes
608c1d8e87
Since abc._Abstract was replaces by a new type flags the regression test suite fails. I've added a new function inspect.isabstract(). Is the mmethod fine or should I check if object is a instance of type or subclass of object, too?
2008-03-03 18:28:04 +00:00
Brett Cannon
56c4debe0d
Refactor test_logging to use unittest. This should finally solve the flakiness
...
issues.
Thanks to Antoine Pitrou for the patch.
2008-03-03 00:38:58 +00:00
Gerhard Häring
11ab807fff
Added note about update of sqlite3 module.
2008-03-02 13:12:27 +00:00
Barry Warsaw
65475fdba7
Set things up for 2.6a2.
2008-03-01 17:11:41 +00:00
Barry Warsaw
7c07523c80
Add date to NEWS
2008-03-01 02:53:36 +00:00
Fred Drake
a8ee94ba1c
fix typo
2008-03-01 02:45:07 +00:00
Barry Warsaw
5297361198
Bump to version 2.6a1
2008-03-01 02:23:38 +00:00
Mark Dickinson
1ddf1d8482
Add __format__ method to Decimal, to support PEP 3101
2008-02-29 02:16:37 +00:00
Raymond Hettinger
b4cbc98c39
Add alternate constructor for itertools.chain().
2008-02-28 22:46:41 +00:00
Raymond Hettinger
93e804da9c
Add itertools.combinations().
2008-02-26 23:40:50 +00:00
Neal Norwitz
ca37661a69
Add a timing flag to Trace so you can see where slowness occurs
...
like waiting for socket timeouts in test_smtplib :-).
2008-02-26 08:21:28 +00:00
Georg Brandl
8c460d5241
#1627 : httplib now ignores negative Content-Length headers.
2008-02-24 00:14:24 +00:00
Georg Brandl
2363503074
#900744 : If an invalid chunked-encoding header is sent by a server,
...
httplib will now raise IncompleteRead and close the connection instead
of raising ValueError.
2008-02-24 00:03:22 +00:00
Georg Brandl
ebcfd11c16
#1506171 : added operator.methodcaller().
2008-02-23 23:04:35 +00:00
Georg Brandl
e2065c65d3
#1826 : allow dotted attribute paths in operator.attrgetter.
2008-02-23 23:02:23 +00:00
Christian Heimes
4034685a58
Issue #2051 and patch from Alexander Belopolsky:
...
Permission for pyc and pyo files are inherited from the py file.
2008-02-23 17:52:07 +00:00
Christian Heimes
f0476e8169
Patch #1957 : syslogmodule: Release GIL when calling syslog(3)
2008-02-23 17:42:31 +00:00
Georg Brandl
ad61bc8d9b
#2067 : file.__exit__() now calls subclasses' close() method.
2008-02-23 15:11:18 +00:00
Facundo Batista
7e251e83d5
Issue 1089358. Adds the siginterrupt() function, that is just a
...
wrapper around the system call with the same name. Also added
test cases, doc changes and NEWS entry. Thanks Jason and Ralf
Schmitt.
2008-02-23 15:07:35 +00:00
Georg Brandl
1647923bbf
#1492 : allow overriding BaseHTTPServer's content type for error messages.
2008-02-23 15:02:28 +00:00
Christian Heimes
5224d28d38
Patch #1759 : Backport of PEP 3129 class decorators
...
with some help from Georg
2008-02-23 15:01:05 +00:00
Facundo Batista
b12f0b581a
Issue 1781. Now ConfigParser.add_section does not let you add a
...
DEFAULT section any more, because it duplicated sections with
the rest of the machinery. Thanks Tim Lesher and Manuel Kaufmann.
2008-02-23 12:46:10 +00:00
Facundo Batista
fc2d01032f
Issue 1881. Increased the stack limit from 500 to 1500. Also added
...
a test for this (and because of this test you'll see in stderr a
message that parser.c sends before raising MemoryError).
Thanks Ralf Schmitt.
2008-02-23 12:01:13 +00:00
Eric Smith
a73fbe791d
Added future_builtins, which contains PEP 3127 compatible versions of hex() and oct().
2008-02-23 03:09:44 +00:00
Raymond Hettinger
c5705a823b
Document itertools.product().
2008-02-22 19:50:06 +00:00
Guido van Rossum
af16ece18e
Fix a few typos and layout glitches (more work is needed).
...
Move 2.5 news to Misc/HISTORY.
2008-02-21 19:46:35 +00:00
Guido van Rossum
8bc0965adf
Removed uses of dict.has_key() from distutils, and uses of
...
callable() from copy_reg.py, so the interpreter now starts up
without warnings when '-3' is given. More work like this needs to
be done in the rest of the stdlib.
2008-02-21 18:18:37 +00:00
Guido van Rossum
b5e2684a1a
Remove news about float repr() -- issue 1580 is still in limbo.
2008-02-21 17:46:16 +00:00
Eric Smith
7ef40bf9c7
Trim leading zeros from a floating point exponent, per C99. See issue 1600. As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description).
2008-02-20 23:34:22 +00:00
Eric Smith
5a3c135e17
Added PEP 3101.
2008-02-19 13:21:56 +00:00
Facundo Batista
d14600ec94
Issue 1224. Now we support again the double slash in the URL.
...
Thanks Anthony Lenton.
2008-02-18 12:48:43 +00:00
Facundo Batista
759bfc6207
Issue #1916 . Added isgenerator() and isgeneratorfunction() to
...
inspect.py. Thanks Javi Mansilla for patch review and
corrections.
2008-02-18 03:43:43 +00:00
Facundo Batista
e139688d34
Issue 2112. mmap does not raises EnvironmentError no more, but
...
a subclass of it. Thanks John Lenton.
2008-02-17 18:59:29 +00:00
Facundo Batista
f88a077f69
Now we handle different the backup copy, because of security
...
issues regarding user/group and permissions. Fixes 1050828.
2008-02-17 16:21:13 +00:00
Brett Cannon
f9db8a3a20
Move test_logging over to doctest.
...
Thanks to Christopher White from GHOP.
2008-02-17 01:59:18 +00:00
Amaury Forgeot d'Arc
632fad3933
Prevent a crash with nested scopes, again caused by calling Py_DECREF when the pointer
...
is still present in the containing structure.
2008-02-16 20:55:24 +00:00
Amaury Forgeot d'Arc
60d6c7f0cc
Issue #2115 : __slot__ attributes setting was 10x slower.
...
Also correct a possible crash using ABCs.
This change is exactly the same as an optimisation
done 5 years ago, but on slot *access*:
http://svn.python.org/view?view=rev&rev=28297
2008-02-15 21:22:45 +00:00
Christian Heimes
7adfad850a
Bug #2111 : mmap segfaults when trying to write a block opened with PROT_READ
...
Thanks to Thomas Herve for the fix.
2008-02-15 08:20:11 +00:00
Christian Heimes
2f0da53d28
Fixed repr() and str() of complex numbers. Complex suffered from the same problem as floats but I forgot to test and fix them.
2008-02-15 06:57:08 +00:00
Christian Heimes
3b718a79af
Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation.
2008-02-14 12:47:33 +00:00
Thomas Heller
a06a1a88ee
Add pickle support to ctypes types.
2008-02-13 20:21:53 +00:00
Georg Brandl
0a40ffb1b3
#2063 : correct order of utime and stime in os.times()
...
result on Windows.
2008-02-13 07:20:22 +00:00
Martin v. Löwis
dad88dc159
Patch #1966 : Break infinite loop in httplib when the servers
...
implements the chunked encoding incorrectly.
Will backport to 2.5.
2008-02-12 18:47:34 +00:00
Martin v. Löwis
e0d30ef0ca
Patch #1736 : Fix file name handling of _msi.FCICreate.
2008-02-12 13:47:26 +00:00
Mark Dickinson
d058cd2cc8
Rename rational.Rational to fractions.Fraction, to avoid name clash
...
with numbers.Rational. See issue #1682 for related discussion.
2008-02-10 21:29:51 +00:00
Raymond Hettinger
da614dcc4f
Complete an open todo on pickletools -- add a pickle optimizer.
2008-02-10 20:35:16 +00:00
Nick Coghlan
ac094dc8a3
Add missing NEWS entry for r60695
2008-02-10 07:32:52 +00:00
Christian Heimes
95d644708e
Issue #1706 : Require Windows 2000+
...
Added Py_BUILD_CORE_MODULES macro to set WINVER and NTDDI_VERSION to Windows 2000 for core modules, too
Added -d option to build.bat (same as -c Debug) and fixed warning about /build option
Updated Windows related readme.txt files
2008-02-09 19:55:22 +00:00
Hye-Shik Chang
01612e7dec
Update big5hkscs codec to conform to the HKSCS:2004 revision.
2008-02-08 17:10:20 +00:00
Amaury Forgeot d'Arc
b01aa430d5
issue 2045: Infinite recursion when printing a subclass of defaultdict,
...
if default_factory is set to a bound method.
Will backport.
2008-02-08 00:56:02 +00:00
Christian Heimes
f75dbef208
Deallocate content of the dict free list on interpreter shutdown
2008-02-08 00:11:31 +00:00
Raymond Hettinger
5b07ebce86
Issue 2025: Add tuple.count() and tuple.index() to follow the ABC in collections.Sequence.
2008-02-07 00:54:20 +00:00
Mark Dickinson
2fc9263df5
Issue 1979: Make Decimal comparisons (other than !=, ==) involving NaN
...
raise InvalidOperation (and return False if InvalidOperation is trapped).
2008-02-06 22:10:50 +00:00
Christian Heimes
5b970ad483
Unified naming convention for free lists and their limits. All free lists
...
in Object/ are named ``free_list``, the counter ``numfree`` and the upper
limit is a macro ``PyName_MAXFREELIST`` inside an #ifndef block.
The chances should make it easier to adjust Python for platforms with
less memory, e.g. mobile phones.
2008-02-06 13:33:44 +00:00
Christian Heimes
6075a82243
Limit free list of method and builtin function objects to 256 entries each.
2008-02-06 12:44:34 +00:00
Georg Brandl
b70907796a
* Use the same code to profile for test_profile and test_cprofile.
...
* Convert both to unittest.
* Use the same unit testing code.
* Include the expected output in both test files.
* Make it possible to regenerate the expected output by running
the file as a script with an '-r' argument.
2008-02-05 19:58:17 +00:00
Lars Gustäbel
0192e43d64
Issue #2004 : Use mode 0700 for temporary directories and default
...
permissions for missing directories.
(will backport to 2.5)
2008-02-05 11:51:40 +00:00
Amaury Forgeot d'Arc
6fd03bb607
#1750076 : Debugger did not step on every iteration of a while statement.
...
The mapping between bytecode offsets and source lines (lnotab) did not contain
an entry for the beginning of the loop.
Now it does, and the lnotab can be a bit larger:
in particular, several statements on the same line generate several entries.
However, this does not bother the settrace function, which will trigger only
one 'line' event.
The lnotab seems to be exactly the same as with python2.4.
2008-02-04 21:45:05 +00:00
Amaury Forgeot d'Arc
578a8caf43
Correct quotes in NEWS file
2008-02-04 20:53:14 +00:00
Christian Heimes
422051a367
Patch #1953
...
I implemented the function sys._compact_freelists() and C API functions PyInt_/PyFloat_CompactFreeList() to compact the pre-allocated blocks of ints and floats. They allow the user to reduce the memory usage of a Python process that deals with lots of numbers.
The patch also renames sys._cleartypecache to sys._clear_type_cache
2008-02-04 18:00:12 +00:00
Amaury Forgeot d'Arc
cab3d98ca1
Ensure that PySet_Add() operates on a newly created frozenset, like PyTuple_SetItem does.
...
Add PyFrozenSet_Check(), which was not needed before; The list of Py*Set_Check* macros seems to be complete now.
Add missing NEWS entries about all this.
2008-02-03 22:51:43 +00:00
Brett Cannon
70c0c02691
Add an entry for r60537.
2008-02-03 09:59:21 +00:00
Gregory P. Smith
eeed5b7c22
Merge this fix from the pybsddb tree:
...
r293 | jcea | 2008-01-31 01:08:19 -0800 (Thu, 31 Jan 2008) | 4 lines
Solved memory leak when using cursors with
databases without environment.
2008-02-03 07:20:53 +00:00
Christian Heimes
951cc0f474
Fixed bug #1983 : Return from fork() is pid_t, not int
2008-01-31 23:08:23 +00:00
Mark Dickinson
105be7725b
Issue #1678380 . Fix a bug that identifies 0j and -0j when they appear
...
in the same code unit. The fix is essentially the same as the fix for a
previous bug identifying 0. and -0.
2008-01-31 22:17:37 +00:00
Christian Heimes
cba36bbe65
Bug #1234 : Fixed semaphore errors on AIX 5.2
2008-01-30 22:54:18 +00:00
Christian Heimes
4d4f270941
Patch #1970 by Antoine Pitrou: Speedup unicode whitespace and linebreak detection. The speedup is about 25% for split() (571 / 457 usec) and 35% (175 / 127 usec )for splitlines()
2008-01-30 11:32:37 +00:00
Christian Heimes
908caac52e
Added clear cache methods to clear the internal type lookup cache for ref leak test runs.
2008-01-27 23:34:59 +00:00
Georg Brandl
6caad7d2cb
Move C API entries to the corresponding section.
2008-01-26 14:19:22 +00:00
Georg Brandl
0cdf9a36ec
#1473257 : add generator.gi_code attribute that refers to
...
the original code object backing the generator. Patch by Collin Winter.
2008-01-26 14:14:20 +00:00
Georg Brandl
29604a1b4c
#1940 : make it possible to use curses.filter() before curses.initscr()
...
as the documentation says.
2008-01-26 14:03:47 +00:00
Christian Heimes
7f39c9fcbb
Backport of several functions from Python 3.0 to 2.6 including PyUnicode_FromString, PyUnicode_Format and PyLong_From/AsSsize_t. The functions are partly required for the backport of the bytearray type and _fileio module. They should also make it easier to port C to 3.0.
...
First chapter of the Python 3.0 io framework back port: _fileio
The next step depends on a working bytearray type which itself depends on a backport of the nwe buffer API.
2008-01-25 12:18:43 +00:00
Amaury Forgeot d'Arc
31eaafef4a
News entry for r60265 (Issue 1920).
2008-01-24 22:59:25 +00:00
Guido van Rossum
eead05fdd6
News about recently fixed crashers:
...
- A few crashers fixed: weakref_in_del.py (issue #1377858 );
loosing_dict_ref.py (issue #1303614 , test67.py);
borrowed_ref_[34].py (not in tracker).
2008-01-24 18:21:02 +00:00
Vinay Sajip
d7cf32e668
Updated for optional delay argument to FileHandler and subclasses.
2008-01-24 12:43:33 +00:00
Christian Heimes
b2302ba977
Applied #1069410
...
The "can't load dll" message box on Windows is suppressed while an extension is loaded by calling SetErrorMode in dynload_win.c. The error is still reported properly.
2008-01-23 17:15:06 +00:00
Christian Heimes
082c9b0267
Fixed bug #1915 : Python compiles with --enable-unicode=no again. However several extension methods and modules do not work without unicode support.
2008-01-23 14:20:50 +00:00
Raymond Hettinger
c226c31139
Let pprint() support sets and frozensets (suggested by David Mertz).
2008-01-23 00:04:40 +00:00
Gregory P. Smith
95cd5c0b72
- Fix Issue #1703448 : A joined thread could show up in the
...
threading.enumerate() list after the join() for a brief period until
it actually exited.
2008-01-22 01:20:42 +00:00
Gregory P. Smith
c64386b595
accepts and closes issue #1221598 : adds an optional callback to ftplib.FTP
...
storbinary() and storlines() methods.
2008-01-22 00:19:41 +00:00
Georg Brandl
32a3fb5ec9
Patch #1720595 : add T_BOOL to the range of structmember types.
...
Patch by Angelo Mottola, reviewed by MvL, tests by me.
2008-01-21 21:23:15 +00:00
Georg Brandl
f2dae0e14a
#1715 : include sub-extension modules in pydoc text output.
2008-01-21 21:05:49 +00:00
Georg Brandl
26543b1dfa
Add NEWS entry for #1882 .
2008-01-21 18:36:51 +00:00
Vinay Sajip
2bdc48c6e0
Updated to include news on recent logging fixes and documentation changes.
2008-01-21 18:16:05 +00:00
Georg Brandl
501601591b
#1530959 : change distutils build dir for --with-pydebug python builds.
2008-01-21 17:42:40 +00:00
Georg Brandl
864de8274c
#1555501 : document plistlib and move it to the general library.
2008-01-21 16:34:07 +00:00
Georg Brandl
5ca3fd8d39
mmap is an extension module.
2008-01-21 14:18:14 +00:00
Georg Brandl
845c403c08
#1087741 : make mmap.mmap the type of mmap objects, not a
...
factory function. Allow it to be subclassed.
2008-01-21 14:16:46 +00:00
Georg Brandl
66e7363c10
#1269 : fix a bug in pstats.add_callers() and add a unit test file for pstats.
2008-01-21 10:24:59 +00:00
Georg Brandl
5235398323
#1669 : don't allow shutil.rmtree() to be called on a symlink.
2008-01-20 14:17:42 +00:00
Georg Brandl
56112895d6
#1648 : add sys.gettrace() and sys.getprofile().
2008-01-20 13:59:46 +00:00
Georg Brandl
d5e6cf2b15
#1664522 : in urllib, don't read non-existing directories in ftp mode,
...
returning a 0-byte file -- raise an IOError instead.
Original patch from Phil Knirsch.
2008-01-20 12:18:17 +00:00
Georg Brandl
2235011d49
#856047 : respect the ``no_proxy`` env var when checking for proxies
...
in urllib and using the other ``_proxy`` env vars.
Original patch by Donovan Baarda.
2008-01-20 12:05:43 +00:00
Georg Brandl
9b0d46db11
#1178141 : add addinfourl.code to get http status code from urllib.
2008-01-20 11:43:03 +00:00
Gregory P. Smith
f25680afd0
note for r60121
2008-01-20 01:26:04 +00:00
Andrew M. Kuchling
4a2762d146
Patch #1048820 from Stefan Wehr: add insert-mode editing to Textbox.
...
Fix an off-by-one error I noticed.
2008-01-20 00:00:38 +00:00
Gregory P. Smith
350d03b18a
Fixes/Accepts Patch for issue1189216 - Work properly with archives
...
that have file headers past the 2**31 byte boundary.
2008-01-19 23:10:52 +00:00
Gregory P. Smith
b9ba075400
note about r60104
2008-01-19 21:00:37 +00:00
Andrew M. Kuchling
060e6855a8
Patch #1019808 from Federico Schwindt: Return correct socket error when
...
a default timeout has been set, by using getsockopt() to get the error
condition (instead of trying another connect() call, which seems to be
a Linuxism).
2.5 bugfix candidate, assuming no one reports any problems with this change.
2008-01-19 20:47:59 +00:00
Georg Brandl
309501a617
#1663329 : add os.closerange() to close a range of fds,
...
ignoring errors, and use this in subprocess to speed up
subprocess creation in close_fds mode. Patch by Mike Klaas.
2008-01-19 20:22:13 +00:00
Georg Brandl
c6fde7293e
Fix #1146 : TextWrap vs words 1-character shorter than the width.
...
Patch by Quentin Gallet-Gilles.
2008-01-19 19:48:19 +00:00
Georg Brandl
14404b68d8
Fix #1679 : "0x" was taken as a valid integer literal.
...
Fixes the tokenizer, tokenize.py and int() to reject this.
Patches by Malte Helmert.
2008-01-19 19:27:05 +00:00
Skip Montanaro
562133b8be
missing from r60088 checkin.
2008-01-19 18:47:24 +00:00
Facundo Batista
6e22be7226
Comment in NEWS regarding the change in trace.py.
2008-01-19 18:45:46 +00:00
Andrew M. Kuchling
5c60bfcfbf
Patch #976880 : add mmap .rfind() method, and 'end' paramter to .find().
...
Contributed by John Lenton.
2008-01-19 18:18:41 +00:00
Andrew M. Kuchling
e45a77adbe
Patch #742598 from Michael Pomraning: add .timeout attribute to SocketServer that will call
...
.handle_timeout() method when no requests are received within the timeout period.
2008-01-19 16:26:13 +00:00
Facundo Batista
2b1b195d39
Fix issue #1822 : MIMEMultipart.is_multipart() behaves correctly for a
...
just-created (and empty) instance. Added tests for this. Thanks
Jonathan Share.
2008-01-19 12:32:27 +00:00
Christian Heimes
288e89acfc
Added bytes and b'' as aliases for str and ''
2008-01-18 18:24:07 +00:00
Christian Heimes
bd865db90c
Added win_add2path.py to Tools/scripts/
...
Added builddoc.bat to Doc/
2008-01-18 11:58:50 +00:00
Raymond Hettinger
44bd6c0a4f
Issue #1861 : Add read-only attribute listing upcoming events in the order they will be run.
2008-01-17 19:31:38 +00:00
Gregory P. Smith
bde4ae4bde
Fixes (accepts patch) issue1339 - http://bugs.python.org/issue1339
...
- Factor out the duplication of EHLO/HELO in login() and sendmail() to
a new function, ehlo_or_helo_if_needed().
- Use ehlo_or_helo_if_needed() in starttls()
- Check for the starttls exception in starttls() in the same way as
login() checks for the auth extension.
Contributed by Bill Fenner.
2008-01-17 08:35:49 +00:00
Gregory P. Smith
2b3ba58bf4
entry for r60015
2008-01-17 08:03:17 +00:00
Raymond Hettinger
473170908e
Make starmap() match its pure python definition and accept any itertable input (not just tuples).
2008-01-17 03:02:14 +00:00
Raymond Hettinger
3ad2acc857
Add news entry.
2008-01-16 23:49:35 +00:00
Thomas Heller
415c1e36a9
Raise a TypeError instead of a ValueError when too many initializers
...
are used in a Structure or Union constructor.
2008-01-16 19:45:51 +00:00
Thomas Heller
02ec289f3e
Raise a TypeError if conflicting positional and named arguments are
...
passed to a Structure or Union constructor.
2008-01-16 19:37:33 +00:00
Thomas Heller
902d30752f
Convert the internal ctypes array type cache to a WeakValueDict so
...
that array types do not live longer than needed.
2008-01-16 19:16:27 +00:00
Guido van Rossum
cad3724352
Issue #1786 (by myself): pdb should use its own stdin/stdout around an
...
exec call and when creating a recursive instance.
2008-01-15 17:59:29 +00:00
Raymond Hettinger
cbf8f6cffb
Temporarily revert 59967 until GC can be added.
2008-01-15 05:39:59 +00:00
Raymond Hettinger
c216df9288
Issue 1820: structseq objects did not work with the % formatting operator or isinstance(t, tuple).
...
Orignal patch (without tests) by Leif Walsh.
2008-01-15 03:02:37 +00:00
Raymond Hettinger
351e1a3e88
Fix 1698398: Zipfile.printdir() crashed because the format string expected a tuple object of length six instead of a time.struct_time object.
2008-01-14 22:58:05 +00:00
Christian Heimes
c94e2b5c12
Now that I've learnt about structseq objects I felt like converting sys.float_info to a structseq. It's
...
readonly and help(sys.float_info) explains the attributes nicely.
2008-01-14 04:13:37 +00:00
Christian Heimes
f31b69f9db
Applied patch #1816 : sys.flags patch
2008-01-14 03:42:48 +00:00
Christian Heimes
9c2019632b
Added new an better structseq representation. E.g. repr(time.gmtime(0)) now returns 'time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0)' instead of '(1970, 1, 1, 0, 0, 0, 3, 1, 0)'. The feature is part of #1816 : sys.flags
2008-01-14 03:33:52 +00:00
Amaury Forgeot d'Arc
e4c270c2a8
Re-apply patch #1700288 (first applied in r59931, rolled back in r59940)
...
now that ctypes uses a more supported method to create types:
Method cache optimization, by Armin Rigo, ported to 2.6 by Kevin Jacobs.
2008-01-14 00:29:41 +00:00
Georg Brandl
d1c131a6e3
Back out r59931 - test_ctypes fails with it.
2008-01-13 15:04:05 +00:00
Georg Brandl
27e26ec418
Patch #1700288 : Method cache optimization, by Armin Rigo, ported to
...
2.6 by Kevin Jacobs.
2008-01-12 13:47:57 +00:00
Mark Dickinson
59bc20bb27
Issue 1780: Allow leading and trailing whitespace in Decimal constructor,
...
when constructing from a string. Disallow trailing newlines in
Context.create_decimal.
2008-01-12 01:56:00 +00:00
Georg Brandl
2f32c39227
News entries for rev. 5990[567].
2008-01-11 09:20:58 +00:00
Raymond Hettinger
fff4e6e171
Doctest results return a named tuple for readability
2008-01-11 01:25:54 +00:00
Neal Norwitz
3fc15b8ba4
Reword entry, not sure I made it much better though.
2008-01-10 05:42:58 +00:00
Christian Heimes
3403f1589d
Fixed #1776 . __import__() no longer imports modules by file name
2008-01-09 19:56:33 +00:00
Fred Drake
d4e5613c5f
minor cleaning
2008-01-09 03:11:28 +00:00
Facundo Batista
4473d225a8
Issue 846388. Adds a call to PyErr_CheckSignals to
...
SRE_MATCH so that signal handlers can be invoked during
long regular expression matches. It also adds a new
error return value indicating that an exception
occurred in a signal handler during the match, allowing
exceptions in the signal handler to propagate up to the
main loop. Thanks Josh Hoyt and Ralf Schmitt.
2008-01-08 21:10:12 +00:00
Christian Heimes
b39a756afd
Added __enter__ and __exit__ functions to HKEY object
...
Added ExpandEnvironmentStrings to the _winreg module.
2008-01-08 15:46:10 +00:00
Andrew M. Kuchling
62182c8b72
Patch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platforms where attr_t isn't a C long
2008-01-08 14:56:02 +00:00
Andrew M. Kuchling
e0a49b6e05
Patch 1137: allow assigning to .buffer_size attribute of PyExpat.parser objects
2008-01-08 14:30:55 +00:00
Facundo Batista
52b25795c0
Issue #1757 : The hash of a Decimal instance is no longer affected
...
by the current context. Thanks Mark Dickinson.
2008-01-08 12:25:20 +00:00
Georg Brandl
62416bcf5a
#467924 , patch by Alan McIntyre: Add ZipFile.extract and ZipFile.extractall.
2008-01-07 18:47:44 +00:00
Georg Brandl
aed6c66aa8
patch #1668 : clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.
2008-01-07 17:25:53 +00:00
Georg Brandl
2da0fceba7
Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.
2008-01-07 17:09:35 +00:00
Christian Heimes
fb2d25a154
Issue #1646 : Make socket support TIPC. The socket module now has support
...
for TIPC under Linux, see http://tipc.sf.net/ for more information.
Thanks to Alberto Bertogli for the patch
2008-01-07 16:12:44 +00:00
Georg Brandl
183a084da3
#1742 : don't raise exception on os.path.relpath("a", "a"), but return os.curdir.
...
Reported by Jesse Towner.
2008-01-06 14:27:15 +00:00
Guido van Rossum
c6a04c2629
Patch #1637 : fix urlparse for URLs like ' http://x.com?arg=/foo '.
...
Fix by John Nagle.
2008-01-05 22:19:06 +00:00
Guido van Rossum
ced4eb06e4
Patch #1698 by Senthil: allow '@' in username when parsed by urlparse.py.
2008-01-05 01:21:57 +00:00
Christian Heimes
04ae916fa2
Added interface to Windows' WSAIoctl and a simple example for a network sniffer.
2008-01-04 15:23:30 +00:00
Lars Gustäbel
2ee1c760cc
Issue #1735 : TarFile.extractall() now correctly sets
...
directory permissions and times.
(will backport to 2.5)
2008-01-04 14:00:33 +00:00
Christian Heimes
0687561c94
Bug #1713 : posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
2008-01-04 13:21:07 +00:00
Andrew M. Kuchling
adc60ab626
Typo fix
2008-01-04 02:26:00 +00:00
Amaury Forgeot d'Arc
e0b7695286
Partial port of r59682 from py3k.
...
On Windows, when import fails to load a dll module, the message says
"error code 193" instead of a more informative text.
It turns out that FormatMessage needs additional parameters for some error codes.
For example: 193 means "%1 is not a valid Win32 application".
Since it is impossible to know which parameter to pass, we use
FORMAT_MESSAGE_IGNORE_INSERTS to get the raw message, which is still better
than the number.
2008-01-04 02:04:15 +00:00
Christian Heimes
8267d1dfe5
Bug #1481296 : Fixed long(float('nan'))!=0L.
2008-01-04 00:37:34 +00:00
Christian Heimes
0613188bc3
Fixed #1687 : plistlib.py restricts <integer> to Python int when writing
2008-01-04 00:04:52 +00:00
Guido van Rossum
076d9eef7b
Bug #1301 : fixed a bad assert in _tkinter.
2008-01-03 23:54:04 +00:00
Christian Heimes
eebb79cc69
Added copysign(x, y) function to the math module
2008-01-03 22:32:26 +00:00
Christian Heimes
000a074c95
Modified PyImport_Import and PyImport_ImportModule to always use absolute imports by calling __import__ with an explicit level of 0
...
Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
2008-01-03 22:16:32 +00:00
Christian Heimes
e2ca4245c9
Added math.isinf() and math.isnan()
2008-01-03 20:23:15 +00:00