Commit Graph

38235 Commits

Author SHA1 Message Date
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
Facundo Batista
5af2f7454d Fixes issue 1959. Converted tests to unittest.
Thanks Giampaolo Rodola.
2008-02-06 19:28:49 +00:00
Walter Dörwald
c16c57c733 Remove month parameter from Calendar.yeardatescalendar(),
Calendar.yeardays2calendar() and Calendar.yeardayscalendar() as the methods
don't have such a parameter. Fixes issue #2017.

Rewrap content to 80 chars.
2008-02-06 14:31:55 +00:00
Christian Heimes
5b970ad483 Unified naming convention for free lists and their limits. All free lists
in Object/ are named ``free_list``, the counter ``numfree`` and the upper
limit is a macro ``PyName_MAXFREELIST`` inside an #ifndef block.

The chances should make it easier to adjust Python for platforms with
less memory, e.g. mobile phones.
2008-02-06 13:33:44 +00:00
Christian Heimes
6075a82243 Limit free list of method and builtin function objects to 256 entries each. 2008-02-06 12:44:34 +00:00
Raymond Hettinger
45eda64691 Sync-up with Py3k work. 2008-02-06 01:49:00 +00:00