Skip Montanaro
a5a9a733c8
whoops - revert
2008-02-10 15:32:16 +00:00
Skip Montanaro
c376f20d76
Get the saying right. ;-)
2008-02-10 15:31:54 +00:00
Mark Dickinson
3a94ee05f7
Typos in decimal comment and documentation
2008-02-10 15:19:58 +00:00
Eric Smith
dd47aaebe8
Forgot to modify header file in r60707.
2008-02-10 15:07:44 +00:00
Mark Dickinson
74d0914413
Turn classmethods into staticmethods, and avoid calling the constructor
...
of subclasses of Rational. (See discussion in issue #1682.)
2008-02-10 14:58:38 +00:00
Nick Coghlan
ac094dc8a3
Add missing NEWS entry for r60695
2008-02-10 07:32:52 +00:00
Raymond Hettinger
13a707577f
Clarify that decimal also supports fixed-point arithmetic.
2008-02-10 07:21:09 +00:00
Eric Smith
5e527ebee1
Added PyNumber_ToBase and supporting routines _PyInt_Format and
...
_PyLong_Format. In longobject.c, changed long_format to
_PyLong_Format. In intobject.c, changed uses of PyOS_snprintf to
_PyInt_Format instead.
_PyLong_Format is similar to py3k's routine of the same name, except
it has 2 additional parameters: addL and newstyle. addL was existing
in long_format, and controls adding the trailing "L". This is
unneeded in py3k. newstyle is used to control whether octal prepends
"0" (the pre-2.6 style), or "0o" (the 3.0 sytle).
PyNumber_ToBase is needed for PEP 3127 (Integer Literal Support and
Syntax) and PEP 3101 (Advanced String Formatting).
This changeset does not need merging into py3k.
2008-02-10 01:36:53 +00:00
Georg Brandl
14a1b8cc46
Fix for newest doctools.
2008-02-09 23:09:25 +00:00
Georg Brandl
3abc6d6cb3
Fix link.
2008-02-09 22:00:00 +00:00
Georg Brandl
c207c717d8
Docs are rst now.
2008-02-09 21:38:54 +00:00
Georg Brandl
8e8e56ceec
Needs only 2.4 now.
2008-02-09 21:36:15 +00:00
Christian Heimes
95d644708e
Issue #1706 : Require Windows 2000+
...
Added Py_BUILD_CORE_MODULES macro to set WINVER and NTDDI_VERSION to Windows 2000 for core modules, too
Added -d option to build.bat (same as -c Debug) and fixed warning about /build option
Updated Windows related readme.txt files
2008-02-09 19:55:22 +00:00
Nick Coghlan
97fac3eb0a
Issue 2021: Allow NamedTemporaryFile and SpooledTemporaryFile to be used as context managers. (The NamedTemporaryFile fix should be considered for backporting to 2.5)
2008-02-09 15:28:09 +00:00
Raymond Hettinger
8c6c12ca96
Temporarily disable this test. It's been broken for a week.
2008-02-09 10:06:20 +00:00
Raymond Hettinger
2cd9bf5e7c
Metaclass declaration is inherited
2008-02-09 10:04:19 +00:00
Raymond Hettinger
17a74c395e
Add -3 warnings that set.copy(), dict.copy(), and defaultdict.copy() will go away in Py3.x
2008-02-09 04:37:49 +00:00
Raymond Hettinger
2e827bfdfe
Merge with r60683.
2008-02-09 03:34:52 +00:00
Raymond Hettinger
c2bc0d17e8
Make ABC containers inherit as documented.
2008-02-09 01:18:42 +00:00
Raymond Hettinger
7e33663ec4
Add advice on choosing between DictMixin and MutableMapping
2008-02-08 23:57:06 +00:00
Raymond Hettinger
d53f1c4d41
Fill-in missing Set comparisons
2008-02-08 23:34:21 +00:00
Raymond Hettinger
18a1ffcda3
Speed-up __iter__() mixin method.
2008-02-08 23:02:27 +00:00
Raymond Hettinger
0913166da2
Remove unnecessary modulo division.
...
The preceding test guarantees that 0 <= i < len.
2008-02-08 22:30:04 +00:00
Hye-Shik Chang
01612e7dec
Update big5hkscs codec to conform to the HKSCS:2004 revision.
2008-02-08 17:10:20 +00:00
Jeffrey Yasskin
27d339446a
Oops! 2.6's Rational.__ne__ didn't work.
2008-02-08 06:45:40 +00:00
Amaury Forgeot d'Arc
b01aa430d5
issue 2045: Infinite recursion when printing a subclass of defaultdict,
...
if default_factory is set to a bound method.
Will backport.
2008-02-08 00:56:02 +00:00
Christian Heimes
48397d6c22
Use prefix decrement
2008-02-08 00:14:34 +00:00
Christian Heimes
f75dbef208
Deallocate content of the dict free list on interpreter shutdown
2008-02-08 00:11:31 +00:00
Brett Cannon
8352585909
Make sure a switch statement does not have repetitive case statements.
...
Error found through LLVM post-2.1 svn.
2008-02-07 22:27:10 +00:00
Raymond Hettinger
23bdcc9253
Fix typo
2008-02-07 20:10:49 +00:00
Raymond Hettinger
ff1f97307d
The float conversion recipe is simpler in Py2.6
2008-02-07 20:04:37 +00:00
Walter Dörwald
d0e5b766f1
Fix typo in docstring for Calendar.itermonthdays().
2008-02-07 19:57:32 +00:00
Walter Dörwald
a53800e02c
Fix documentation for Calendar.iterweekdays(): firstweekday is a property.
...
Fixes second part of #2018 .
2008-02-07 19:48:34 +00:00
Walter Dörwald
97bf449f75
Clarify that the output of TextCalendar.formatmonth() and
...
TextCalendar.formatyear() for custom instances won't be influenced by calls
to the module global setfirstweekday() function. Fixes #2018 .
2008-02-07 19:30:22 +00:00
Facundo Batista
86371d61b7
Fixes Issue 1401. When redirected, a possible POST get converted
...
to GET, so it loses its payload. So, it also must lose the
headers related to the payload (if it has no content any more,
it shouldn't indicate content length and type).
2008-02-07 19:06:52 +00:00
Christian Heimes
b4ee4a16f4
Added some statistics code to dict and list object code. I wanted to test how a larger freelist affects the reusage of freed objects. Contrary to my gut feelings 80 objects is more than fine for small apps. I haven't profiled a large app yet.
2008-02-07 17:15:30 +00:00
Facundo Batista
9521f08b98
Fixes issue 2026. Tests converted to unittest. Thanks
...
Giampaolo Rodola.
2008-02-07 16:16:29 +00:00
Andrew M. Kuchling
8d119301a1
Update URL
2008-02-07 11:43:47 +00:00
Brett Cannon
687af0d8fb
Remove unnecessary curly braces around an int literal.
2008-02-07 08:04:07 +00:00
Brett Cannon
a6c41bc9e5
Cast a struct to a void pointer so as to do a type-safe pointer comparison
...
(mistmatch found by clang).
2008-02-07 07:47:31 +00:00
Raymond Hettinger
882a416900
Merge r60628, r60631, and r60633. Register UserList and UserString will the appropriate ABCs.
2008-02-07 03:25:46 +00:00
Raymond Hettinger
017b6a3ad2
Merge 60627.
2008-02-07 03:10:33 +00:00
Raymond Hettinger
55285ef44c
Return ints instead of longs for tuple.count() and tuple.index().
2008-02-07 02:12:52 +00:00
Mark Dickinson
00c2e65850
IEEE 754 should be IEEE 854; give precise reference for
...
comparisons involving NaNs.
2008-02-07 01:42:06 +00:00
Mark Dickinson
ff6672fda1
Fix broken link in decimal documentation.
2008-02-07 01:14:23 +00:00
Raymond Hettinger
5b07ebce86
Issue 2025: Add tuple.count() and tuple.index() to follow the ABC in collections.Sequence.
2008-02-07 00:54:20 +00:00
Georg Brandl
3c3d9ac46c
Revert accidental changes to test_queue in r60605.
2008-02-06 23:45:51 +00:00
Mark Dickinson
bafa9425a6
Remove incorrect usage of :const: in documentation.
2008-02-06 22:25:16 +00:00
Mark Dickinson
2fc9263df5
Issue 1979: Make Decimal comparisons (other than !=, ==) involving NaN
...
raise InvalidOperation (and return False if InvalidOperation is trapped).
2008-02-06 22:10:50 +00:00
Thomas Heller
55b8c3e26f
Fixed refcounts and error handling.
...
Should not be merged to py3k branch.
2008-02-06 20:29:17 +00:00