Christian Heimes
bb89992211
Make it a bit easier to test Tcl/Tk and idle from a build dir.
2007-12-18 09:00:13 +00:00
Raymond Hettinger
88880b2dd6
Add more namedtuple() test cases. Neaten the code and comments.
2007-12-18 00:13:45 +00:00
Facundo Batista
e64acfad3d
Removed the private _rounding_decision: it was not needed, and the code
...
is now simpler. Thanks Mark Dickinson.
2007-12-17 14:18:42 +00:00
Georg Brandl
9c8497eb6e
Revert dummy commit now that the build slave is building.
2007-12-16 11:21:48 +00:00
Georg Brandl
6f6f6adea2
Dummy commit to investigate #1617 .
2007-12-16 11:06:09 +00:00
Christian Heimes
17b52afda6
Fixed #1624 : Remove output comparison for test_pep277
...
I had to modify Brett's patch slightly.
2007-12-15 05:38:35 +00:00
Christian Heimes
c67a15d865
Fixed bug #1628
...
The detection now works on Unix with Makefile, Makefile with VPATH and on Windows.
2007-12-14 23:42:36 +00:00
Raymond Hettinger
07ae83f840
Faster and simpler _replace() method
2007-12-14 19:19:59 +00:00
Raymond Hettinger
48eca67ab9
Add line spacing for readability
2007-12-14 18:08:20 +00:00
Raymond Hettinger
42da874cdd
Cleaner method naming convention
2007-12-14 02:49:47 +00:00
Christian Heimes
90e10e79ea
Fixed bug #1620 : New @spam.getter property syntax modifies the property in place.
...
I added also the feature that a @prop.getter decorator does not overwrite the doc string of the property if it was given as an argument to property().
2007-12-14 02:35:23 +00:00
Raymond Hettinger
bc288e8bbd
Small speedup
2007-12-13 23:52:59 +00:00
Raymond Hettinger
04a9a0e904
Simplify implementation of __replace__()
2007-12-13 22:55:52 +00:00
Christian Heimes
0a0e583259
Fixed bug #1613 : Makefile's VPATH feature is broken
2007-12-13 19:23:16 +00:00
Alexandre Vassalotti
2f9ca29d10
Fix issue #1313119 : urlparse "caches" parses regardless of encoding
2007-12-13 17:58:23 +00:00
Raymond Hettinger
adf9ffdfbe
Fix bug 1604. deque.__init__() did not clear existing contents like list.__init__. Not a backport candidate.
2007-12-13 00:08:37 +00:00
Kurt B. Kaiser
7a634e6027
IDLE_tabbedpages.071101.patch Tal Einat
...
Cosmetic changes, one bug. Remove tabpage.py, replaced by tabbedpages.py
2007-12-11 19:35:12 +00:00
Christian Heimes
f15c66e143
The new float repr causes too much trouble and pain. I'm disabling the feature until we have sorted out the issues on all machines. 64bit machines seem to have issues and Guido has reported even worse.
...
Guido: It's pretty bad actually -- repr(1e5) comes out as '1.0'... Ditto for
repr(1eN) for most N... Both in 2.6 and in 3.0...
2007-12-11 00:54:34 +00:00
Kurt B. Kaiser
0c64fb435a
format_paragraph_event wasn't returning 'break'
2007-12-11 00:04:57 +00:00
Christian Heimes
284d927625
Backport of r59456:59458 from py3k to trunk
...
Issue #1580 : New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'.
Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.
2007-12-10 22:28:56 +00:00
Guido van Rossum
8c3d0f7839
Remove a 2.2-ism.
2007-12-10 20:42:53 +00:00
Georg Brandl
e6daafb449
Add DocXMLRPCServer test from GHOP task #136 , written by Jeff Wheeler.
2007-12-09 22:39:12 +00:00
Georg Brandl
6113ce51b3
Two fixes in DocXMLRPCServer:
...
* remove parameter default that didn't make sense
* properly escape values in output
Thanks to Jeff Wheeler from GHOP!
2007-12-09 21:15:07 +00:00
Skip Montanaro
546624609e
correct email address
2007-12-08 15:26:16 +00:00
Georg Brandl
26458c12a0
Fix tpyo.
2007-12-08 10:56:39 +00:00
Alexandre Vassalotti
d8a8c7d8d7
Fix issue #1530 .
...
Return an error exit status if not all tests passes.
2007-12-08 04:49:22 +00:00
Armin Rigo
66d41b2fae
This is probably what was meant here.
2007-12-07 19:19:55 +00:00
Georg Brandl
5d1b4d44aa
Increase unit test coverage of SimpleXMLRPCServer.
...
Written for GHOP by Turkay Eren.
2007-12-07 09:07:10 +00:00
Christian Heimes
0a5e54e732
Disabled one test that is failing on Unix
2007-12-06 13:55:01 +00:00
Christian Heimes
d3fc07a4a0
Fixed get_config_h_filename for Windows. Without the patch it can't find the pyconfig.h file inside a build tree.
...
Added several small unit tests for sysconfig.
2007-12-06 13:15:13 +00:00
Raymond Hettinger
4e2f714031
Fix Issue 1045.
...
Factor-out common calling code by simplifying the length_hint API.
Speed-up the function by caching the PyObject_String for the attribute lookup.
2007-12-06 00:56:53 +00:00
Christian Heimes
cbdb705c88
Fixed bug #1557 by using popen.communicate() before popen.wait()
2007-12-05 20:10:38 +00:00
Raymond Hettinger
2e1af256d4
Error checking was too aggressive (reported by Chris Tismer)
2007-12-05 18:11:08 +00:00
Christian Heimes
8f1fea5061
Fixed error in regrtest. I must have missed the spot.
2007-12-05 12:45:11 +00:00
Facundo Batista
58f6f2e0c9
fma speedup by avoiding to create a Context. Thanks Mark Dickinson.
2007-12-04 16:31:53 +00:00
Christian Heimes
44eeaec173
Patch #1537 from Chad Austin
...
Change GeneratorExit's base class from Exception to BaseException
(This time I'm applying the patch to the correct sandbox.)
2007-12-03 20:01:02 +00:00
Martin v. Löwis
6b449f4f2b
Issue #1727780 : Support loading pickles of random.Random objects created
...
on 32-bit systems on 64-bit systems, and vice versa. As a consequence
of the change, Random pickles created by Python 2.6 cannot be loaded
in Python 2.5.
2007-12-03 19:20:02 +00:00
Facundo Batista
2ec7415db5
Faster _fix function, and some reordering for a more elegant
...
coding. Thanks Mark Dickinson.
2007-12-03 17:55:00 +00:00
Facundo Batista
62edb71556
Speedup and cleaning of __str__. Thanks Mark Dickinson.
2007-12-03 16:29:52 +00:00
Christian Heimes
3305c52de7
Applied my patch #1455 with some extra fixes for VS 2005
...
The new msvc9compiler module supports VS 2005 and VS 2008. I've also fixed build_ext to support PCbuild8 and PCbuild9 and backported my fix for xxmodule.c from py3k. The old code msvccompiler is still in place in case somebody likes to build an extension with VS 2003 or earlier.
I've also updated the cygwin compiler module for VS 2005 and VS 2008. It works with VS 2005 but I'm unable to test it with VS 2008. We have to wait for a new version of cygwin.
2007-12-03 13:47:29 +00:00
Nick Coghlan
ef01d822aa
Implement PEP 366
2007-12-03 12:55:17 +00:00
Georg Brandl
e4317fade8
Add test suite for cmd module.
...
Written by Michael Schneider for GHOP.
2007-12-01 22:38:48 +00:00
Lars Gustäbel
77b2d63b40
Issue #1531 : Read fileobj from the current offset, do not seek to
...
the start.
(will backport to 2.5)
2007-12-01 21:02:12 +00:00
Christian Heimes
dfdfaab1c5
Feature #1534
...
Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API.
Added a dictionary sys.float_info with information about the internal floating point type to the sys module.
2007-12-01 11:20:10 +00:00
Christian Heimes
6b29dd05c8
Backport of -r59242:59246 from py3k
...
Fixed problem with regrtest caused by the additional of objects to _abcoll.
2007-11-30 22:36:10 +00:00
Amaury Forgeot d'Arc
dafd32b730
Issue #1521 : on 64bit platforms, str.decode fails on very long strings.
...
The t# and w# formats were not correctly handled.
Will backport.
2007-11-30 20:51:40 +00:00
Facundo Batista
0d157a0154
Reordering of __new__ to minimize isinstance() calls to most
...
used types. Thanks Mark Dickinson.
2007-11-30 17:15:25 +00:00
Amaury Forgeot d'Arc
025c347d61
Issue #1402 : PyInterpreterState_Clear() may still invoke user code
...
(in deallocation of running threads, for example), so the PyGILState_Release()
function must still be functional.
On the other hand, _PyGILState_Fini() only frees memory, and can be called later.
Backport candidate, but only after some experts comment on it.
2007-11-29 23:35:25 +00:00
Christian Heimes
636afc52c0
I forgot to fix one occurence of new in test_descr
2007-11-27 23:53:14 +00:00
Christian Heimes
28104c58d2
Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504
...
Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings.
2007-11-27 23:16:44 +00:00