Raymond Hettinger
abe3237187
Fix decimal repr which should have used single quotes like other reprs.
2008-02-14 02:41:22 +00:00
Raymond Hettinger
ddb164a651
Update notes on Decimal.
2008-02-14 01:08:02 +00:00
Kurt B. Kaiser
ac45aff2f1
Bring NEWS.txt up to date from check-in msgs.
2008-02-14 00:08:55 +00:00
Thomas Heller
4516451aec
Make the test somewhat clearer (I hope).
2008-02-13 20:36:51 +00:00
Thomas Heller
a06a1a88ee
Add pickle support to ctypes types.
2008-02-13 20:21:53 +00:00
Brett Cannon
91a1dec492
Fix --enable-universalsdk and its comment line so that zsh's flag completion
...
works.
Thanks to Jeroen Ruigrok van der Werven for the fix.
2008-02-13 19:15:44 +00:00
Jeffrey Yasskin
57bd60b465
Working on issue #1762 : Brought
...
./python.exe -m timeit -s 'from fractions import Fraction; f = Fraction(3, 2)' 'isinstance(3, Fraction); isinstance(f, Fraction)'
from 12.3 usec/loop to 3.44 usec/loop and
./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3, 2)'
from 48.8 usec to 23.6 usec by avoiding genexps and sets in __instancecheck__
and inlining the common case from __subclasscheck__.
2008-02-13 17:58:04 +00:00
Georg Brandl
0a40ffb1b3
#2063 : correct order of utime and stime in os.times()
...
result on Windows.
2008-02-13 07:20:22 +00:00
Mark Dickinson
5f8bd3729e
Replace R=fractions.Fraction with F=fractions.Fraction in
...
test_fractions.py. This should have been part of the name
change from Rational to Fraction.
2008-02-12 21:46:54 +00:00
Mark Dickinson
0aa52a1658
Revert change in r60712: turn alternate constructors back into
...
classmethods instead of staticmethods.
2008-02-12 21:40:53 +00:00
Mark Dickinson
e1b824793a
Implementation of Fraction.limit_denominator.
...
Remove Fraction.to_continued_fraction and
Fraction.from_continued_fraction
2008-02-12 21:31:59 +00:00
Raymond Hettinger
a37430a0ce
dict.copy() rises from the ashes. Revert r60687.
2008-02-12 19:05:36 +00:00
Martin v. Löwis
dad88dc159
Patch #1966 : Break infinite loop in httplib when the servers
...
implements the chunked encoding incorrectly.
Will backport to 2.5.
2008-02-12 18:47:34 +00:00
Kurt B. Kaiser
8d365c323f
what??! Correct r60225.
2008-02-12 15:45:50 +00:00
Martin v. Löwis
e0d30ef0ca
Patch #1736 : Fix file name handling of _msi.FCICreate.
2008-02-12 13:47:26 +00:00
Raymond Hettinger
116f72fa5c
Bring decimal a bit closer to the spec for Reals.
2008-02-12 01:18:03 +00:00
Raymond Hettinger
19a5c29d27
Fix typo in comments
2008-02-12 00:48:20 +00:00
Raymond Hettinger
596fdd0fd3
Restore fractions.rst to the document tree.
2008-02-12 00:15:32 +00:00
Raymond Hettinger
bc4ffc17df
Backport ABC docs
2008-02-11 23:38:00 +00:00
Raymond Hettinger
2ddbd80606
Fix markup
2008-02-11 23:34:56 +00:00
Raymond Hettinger
48688d8c8e
Add notes on how decimal fits into the model.
2008-02-11 22:53:01 +00:00
Raymond Hettinger
21290eacf6
Add tests for pickletools.optimize().
2008-02-11 20:05:53 +00:00
Lars Gustäbel
6bf51da9d4
Make sure that xstar headers are read correctly.
2008-02-11 19:17:10 +00:00
Raymond Hettinger
31f6bc018b
No need to register classes that already inherit from ABCs.
2008-02-11 18:51:08 +00:00
Mark Dickinson
cd873fc142
Put an extra space into the repr of a Fraction:
...
Fraction(1, 2) instead of Fraction(1,2).
2008-02-11 03:11:55 +00:00
Christian Heimes
03d3abf375
The test requires the network resource
2008-02-11 02:26:22 +00:00
Mark Dickinson
d058cd2cc8
Rename rational.Rational to fractions.Fraction, to avoid name clash
...
with numbers.Rational. See issue #1682 for related discussion.
2008-02-10 21:29:51 +00:00
Raymond Hettinger
da614dcc4f
Complete an open todo on pickletools -- add a pickle optimizer.
2008-02-10 20:35:16 +00:00
Mark Dickinson
900b783526
Remove reference to Rational
2008-02-10 19:23:36 +00:00
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