Commit Graph

41993 Commits

Author SHA1 Message Date
Jeroen Ruigrok van der Werven 28c81e0bb5 Reformat prior to editing. 2009-04-25 18:53:48 +00:00
Jeroen Ruigrok van der Werven 2391918f3e Issue #4129: Document more int -> Py_ssize_t changes. 2009-04-25 18:46:03 +00:00
Jeroen Ruigrok van der Werven 84441cc3d5 Reformat prior to editing. 2009-04-25 18:31:20 +00:00
Jeroen Ruigrok van der Werven 089c5cdd09 Issue #4129: Belatedly document which C API functions had their argument(s) or
return type changed from int or int * to Py_ssize_t or Py_ssize_t * as this
might cause problems on 64-bit platforms.
2009-04-25 17:59:03 +00:00
Thomas Heller e09f161618 Issue #5078: Avoid redundant call to FormatError() 2009-04-25 16:37:18 +00:00
Georg Brandl 208b00d03f #5841: add deprecation py3k warning and notice in the docs for commands module. 2009-04-25 15:11:29 +00:00
Georg Brandl cf5608df81 #5821: add some capabilities of TarFile's file-like object. 2009-04-25 15:05:04 +00:00
Georg Brandl 64034bbf84 #5834: use "failure" instead of "error" because the two have different meanings in unittest context. 2009-04-25 14:51:31 +00:00
Georg Brandl b581804d69 #3320: fix spelling. 2009-04-25 14:50:25 +00:00
Jeroen Ruigrok van der Werven 6f1d543133 Reformat paragraph. 2009-04-25 14:28:02 +00:00
Jeroen Ruigrok van der Werven 325a997efb The type for ppos has been Py_ssize_t since 2.5, reflect this in the
documentation.
2009-04-25 14:27:00 +00:00
Jeroen Ruigrok van der Werven c42c099436 Reformat prior to editing. 2009-04-25 14:24:30 +00:00
Walter Dörwald 5d98ec76bb Issue #5828 (Invalid behavior of unicode.lower): Fixed bogus logic in
makeunicodedata.py and regenerated the Unicode database (This fixes
u'\u1d79'.lower() == '\x00').
2009-04-25 14:03:16 +00:00
Jeroen Ruigrok van der Werven 140d9d673e Reformat file prior to editing. 2009-04-25 13:58:58 +00:00
Jeroen Ruigrok van der Werven 2dcf46ee2c Rewrite a sentence to be more in line with the rest of the documentation with
regard to person and audience.
2009-04-25 13:07:40 +00:00
Tarek Ziadé bcddf6777a #5810: Fixed Distutils test_build_scripts 2009-04-25 12:51:59 +00:00
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