Jeroen Ruigrok van der Werven
a2dce5a9ee
Issue #4239 : adjust email examples not to use connect() and terminate with
...
quit() and not close().
2009-04-25 12:49:10 +00:00
Tarek Ziadé
d567c38ef2
Issue #4951 : Fixed failure in test_httpservers
2009-04-25 12:38:08 +00:00
Walter Dörwald
a145317be9
Issue #5837 : Certain sequences of calls to set() and unset() for
...
support.EnvironmentVarGuard objects restored the environment variables
incorrectly on __exit__.
Fix this by recording the initial value of each environment variable on the
first access in set() or unset().
2009-04-25 12:15:07 +00:00
Jeroen Ruigrok van der Werven
162641a24c
First attempt to document PyObject_HEAD_INIT and PyVarObject_HEAD_INIT.
2009-04-25 11:59:09 +00:00
Jeroen Ruigrok van der Werven
bc25bf9d3e
Reformat prior to expanding.
2009-04-25 11:15:06 +00:00
Mark Dickinson
0a6501bf56
Fix typo in complex parsing code; expand tests.
2009-04-25 09:47:00 +00:00
Benjamin Peterson
5083dc552b
fix a segfault when setting __class__ in __del__ #5283
2009-04-25 00:41:22 +00:00
Thomas Heller
5c6af808f7
Issue #3102 : All global symbols that the _ctypes extension defines are
...
now prefixed with 'Py' or '_ctypes'.
2009-04-24 20:31:47 +00:00
Thomas Heller
ec21ccde12
Issue 5041: ctypes unwilling to allow pickling wide character.
2009-04-24 20:00:41 +00:00
Thomas Heller
addfe22821
Issue #5161 : wrong paths for ctypes cleanup when Python is built in a
...
directory other than the source directory.
2009-04-24 18:10:46 +00:00
Mark Dickinson
0badeef93e
Remove unnecessary double negative
2009-04-24 16:37:22 +00:00
Mark Dickinson
6ab635a4f4
Issue #5593 : Use more robust test for double-rounding in test_fsum.
...
While we're at it, use new unittest.skipUnless decorator to
implement skipping for that test.
2009-04-24 16:34:14 +00:00
Mark Dickinson
4af8e745c4
Issue #5812 : The two-argument form of the Fraction constructor
...
now accepts arbitrary Rational instances.
2009-04-24 13:56:07 +00:00
Mark Dickinson
90d47cb46c
Fix missing 'return NULL'
2009-04-24 13:14:07 +00:00
Mark Dickinson
95bc980d9e
Issue #5816 :
...
- simplify parsing and printing of complex numbers
- make complex(repr(z)) round-tripping work for complex
numbers involving nans, infs, or negative zeros
- don't accept some of the stranger complex strings
that were previously allowed---e.g., complex('1..1j')
2009-04-24 12:46:53 +00:00
Georg Brandl
508c423fe1
Add link to PEP 236.
2009-04-23 08:52:03 +00:00
Georg Brandl
69923a1df6
#5813 : add a reference to the "future statements" section.
2009-04-23 08:49:56 +00:00
Georg Brandl
95089bc9bf
Fix rewrapping accident.
2009-04-23 08:49:39 +00:00
Georg Brandl
49cc4eafcb
#5820 : fix bug in usage of getreader().
2009-04-23 08:44:57 +00:00
Kurt B. Kaiser
f13447f3f7
Produce correct version string to access the .chm
...
docs on Windows. Patch 5783 gpolo. Will port.
2009-04-23 02:36:01 +00:00
Mark Dickinson
8100bd8431
Issue #5812 : make Fraction('1e-6') valid. Backport of r71806.
2009-04-22 18:15:25 +00:00
Eric Smith
ebafbb705c
Fixed issue 5782: formatting with commas didn't work if no specifier type code was given.
2009-04-22 16:20:47 +00:00
Nick Coghlan
5533ff6a2e
Issue 5354: Change API for import_fresh_module() to better support test_warnings use case (also fixes some bugs in the original implementation)
2009-04-22 15:26:04 +00:00
Eric Smith
aca19e6a74
Backport of some of the work in r71665 to trunk. This reworks much of
...
int, long, and float __format__(), and it keeps their implementation
in sync with py3k.
Also added PyOS_double_to_string. This is the "fallback" version
that's also available in trunk, and should be kept in sync with that
code. I'll add an issue to document PyOS_double_to_string in the C
API.
There are many internal cleanups. Externally visible changes include:
- Implement PEP 378, Format Specifier for Thousands Separator, for
floats, ints, and longs.
- Issue #5515 : 'n' formatting for ints, longs, and floats handles
leading zero formatting poorly.
- Issue #5772 : For float.__format__, don't add a trailing ".0" if
we're using no type code and we have an exponent.
2009-04-22 13:29:05 +00:00
Vinay Sajip
cbb5308723
Issue #5170 : Fixed regression caused when fixing #5768 .
2009-04-22 12:10:47 +00:00
Eric Smith
4c074382bd
Documentation for issue 5237, auto-numbered format fields. Contributed by Terry J. Reedy.
2009-04-22 00:47:00 +00:00
Georg Brandl
e56101136c
#5751 : fix escaping of \\n.
2009-04-21 18:24:34 +00:00
Georg Brandl
ce54356690
#5757 : fix copy-paste error in notify().
2009-04-21 18:23:08 +00:00
R. David Murray
95fb46c977
Restore skips of posix and pty tests on Windows by calling the
...
test_support.import_module on the appropriate modules
before any other imports.
2009-04-21 13:06:04 +00:00
Senthil Kumaran
7c2867fcb1
Fix for the Issue918368 - urllib doesn't correct server returned urls
2009-04-21 03:24:19 +00:00
Mark Dickinson
a7e734fcee
Nit: integer division should use //, not /
2009-04-20 21:41:04 +00:00
Mark Dickinson
6736cf8d20
Issue #3166 : Make long -> float (and int -> float) conversions
...
correctly rounded, using round-half-to-even. This ensures that the
value of float(n) doesn't depend on whether we're using 15-bit digits
or 30-bit digits for Python longs.
2009-04-20 21:13:33 +00:00
Raymond Hettinger
cccfc825e4
Fix typo
2009-04-20 18:23:57 +00:00
Tarek Ziadé
31559b6123
adding a NEWS note for #5795 (previously checked via the buildbot)
2009-04-20 14:29:42 +00:00
Tarek Ziadé
2c4e741447
making BuildWinInstTestCase silent in case bdist_wininst is not run under win32
2009-04-20 10:33:47 +00:00
Tarek Ziadé
92d77b7eac
#5795 sysconfig._config_vars was shadowed in tearDown
2009-04-20 07:53:55 +00:00
Mark Dickinson
9be2697fb6
Automatic conversion of floats to integers for struct.pack integer codes
...
is deprecated. Use an explicit int() instead.
2009-04-19 17:10:47 +00:00
Ronald Oussoren
6c0b872f85
Fix for issue5657.
2009-04-19 10:38:20 +00:00
Benjamin Peterson
82d1cf1ecc
fix typo
2009-04-19 03:02:54 +00:00
Benjamin Peterson
8cfa8e613f
make errors consistent
2009-04-19 02:40:43 +00:00
Benjamin Peterson
308c6ba002
initialize weakref some weakref types
2009-04-19 02:32:42 +00:00
Benjamin Peterson
01c6e6fb35
many more types to initialize (I had to expose some of them)
2009-04-18 22:15:26 +00:00
Benjamin Peterson
accb3d0014
move test to a more appropiate one
2009-04-18 21:03:10 +00:00
Benjamin Peterson
5ce73759bf
initalize -> initialize
2009-04-18 20:25:25 +00:00
Benjamin Peterson
d4d400cb8a
try to initalize all builtin types with PyType_Ready to avoid problems like #5787
2009-04-18 20:12:47 +00:00
Benjamin Peterson
baba195eb2
fix a few nits in unittest.py #5771
2009-04-18 19:26:19 +00:00
Benjamin Peterson
d672001b03
rename internal bytes_ functions to bytearray
2009-04-18 15:31:34 +00:00
Mark Dickinson
1bdf7e9cab
Issue #1869 : Fix a couple of minor round() issues.
2009-04-18 14:59:42 +00:00
Mark Dickinson
8e5446f902
Backport r71704 (add configure check for C99 round function) to trunk.
2009-04-18 14:41:37 +00:00
Mark Dickinson
4beb89b9f7
copysign shouldn't be declared as static in pymath.c
2009-04-18 14:13:43 +00:00