Commit Graph

38351 Commits

Author SHA1 Message Date
Raymond Hettinger
50986cc45b First draft for itertools.product(). Docs and other updates forthcoming. 2008-02-22 03:16:42 +00:00
Georg Brandl
12db865a64 Part of #2154: minimal syntax fixes in doc example snippets. 2008-02-21 20:38:13 +00:00
Georg Brandl
359b9e994b #2079: typo in userdict docs. 2008-02-21 20:33:38 +00:00
Eric Smith
ce584d420d Moved test_format into the correct TestCase. 2008-02-21 20:17:08 +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
Raymond Hettinger
31ce5cb989 Update more instances of has_key(). 2008-02-21 19:24:53 +00:00
Thomas Heller
8982cf5484 Replace 'has_key()' with 'in'.
Replace 'raise Error, stuff' with 'raise Error(stuff)'.
2008-02-21 18:52:20 +00:00
Thomas Heller
981f31860b configure.ac: Remove the configure check for _Bool, it is already done in the
top-level Python configure script.
configure, fficonfig.h.in: regenerated.
2008-02-21 18:28:48 +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
Andrew M. Kuchling
2d6c13e733 Close manifest file.
This change doesn't make any difference to CPython, but is a necessary fix for Jython.
2008-02-21 14:23:38 +00:00
Eric Smith
8a803dd94b Now that PyOS_ascii_formatd supports the 'n' format, simplify the float formatting code to just call it. 2008-02-20 23:39:28 +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
Georg Brandl
e1b8e9c666 Fixes contributed by Ori Avtalion. 2008-02-20 19:12:36 +00:00
Eric Smith
5a3c135e17 Added PEP 3101. 2008-02-19 13:21:56 +00:00
Eric Smith
ba486c5362 Added dependencies for stringobject.o. This should fix failing tests in test_unicode.py. 2008-02-19 12:27:59 +00:00
Eric Smith
bc32fee029 Added code to correct combining str and unicode in ''.format(). Added test case. 2008-02-18 18:02:34 +00:00
Kristján Valur Jónsson
5299935be5 Perform correct handling of stack overflow for windows: Catch the correct exception code and reset the overflow condition when handled. 2008-02-18 17:40:47 +00:00
Eric Smith
d50a5f2845 Temporarily removed float tests. See issue 1600. 2008-02-18 14:25:02 +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
Georg Brandl
b169eaa917 #2133: fix HTML color spec. 2008-02-17 21:18:55 +00:00
Amaury Forgeot d'Arc
e7fa408741 Compilation was broken on Windows since the introduction of Advanced String Formatting.
Only PCBuild (vs9) was really tested.
Changes for older compilers were done manually.
2008-02-17 20:56:31 +00:00
Eric Smith
a9f7d62480 Backport of PEP 3101, Advanced String Formatting, from py3k.
Highlights:
 - Adding PyObject_Format.
 - Adding string.Format class.
 - Adding __format__ for str, unicode, int, long, float, datetime.
 - Adding builtin format.
 - Adding ''.format and u''.format.
 - str/unicode fixups for formatters.

The files in Objects/stringlib that implement PEP 3101 (stringdefs.h,
unicodedefs.h, formatter.h, string_format.h) are identical in trunk
and py3k.  Any changes from here on should be made to trunk, and
changes will propogate to py3k).
2008-02-17 19:46:49 +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