Christian Heimes
8c78cc3b6c
Updated Misc/NEWS
2008-03-26 12:53:58 +00:00
Georg Brandl
7ddd10dff9
Add Josiah.
2008-03-26 09:04:36 +00:00
Benjamin Peterson
da868d6cf1
Opps! I merged the revisions, but forgot to add
...
the header to ACKS
2008-03-25 21:55:50 +00:00
Benjamin Peterson
6f7e71dc32
Merged the ACKS from py3k
2008-03-25 21:14:42 +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
Georg Brandl
cdde579fb9
Add Benjamin.
2008-03-25 17:36:43 +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
Brett Cannon
fa6a8b3aaa
Gave Jerry Seutter svn access for general Python development.
2008-03-20 16:13:48 +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
David Wolever
fbe7c55905
Added my name to ACKS
2008-03-19 02:26:57 +00:00
Andrew M. Kuchling
0279f43950
Add Jeff Rush
2008-03-19 01:05:35 +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
Martin v. Löwis
a7d57cd433
Add David Wolever.
2008-03-17 21:55:30 +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
Martin v. Löwis
7cfbf0c421
Add Trent Nelson.
2008-03-17 16:31:57 +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
Neal Norwitz
89cb9b799b
test_smtplib sometimes reports leaks too, suppress it
2008-03-05 05:51:20 +00:00
Neal Norwitz
38bdfaa14b
Use -u urlfetch to run more tests
2008-03-05 05:50:20 +00:00
Neal Norwitz
64984a895e
Tabs -> spaces
2008-03-05 05:49:03 +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
Neal Norwitz
114dd944de
Fix typo of hexidecimal
2008-02-24 08:27:49 +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
Christian Heimes
c5f05e45cf
Patch #2167 from calvin: Remove unused imports
2008-02-23 17:40:11 +00:00
Andrew M. Kuchling
19aff0c90a
#1433694 : minidom's .normalize() failed to set .nextSibling for last element.
...
Fix by Malte Helmert
2008-02-23 17:10:46 +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