Commit Graph

8905 Commits

Author SHA1 Message Date
Georg Brandl 8e8e56ceec Needs only 2.4 now. 2008-02-09 21:36:15 +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 7e33663ec4 Add advice on choosing between DictMixin and MutableMapping 2008-02-08 23:57:06 +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 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
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
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
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
Skip Montanaro 3c0f309fd1 correct object name 2008-02-05 19:24:30 +00:00
Georg Brandl 1cf0522f26 Convert external links to internal links. Fixes #2010. 2008-02-05 12:01:24 +00:00
Christian Heimes 422051a367 Patch #1953
I implemented the function sys._compact_freelists() and C API functions PyInt_/PyFloat_CompactFreeList() to compact the pre-allocated blocks of ints and floats. They allow the user to reduce the memory usage of a Python process that deals with lots of numbers.
The patch also renames sys._cleartypecache to sys._clear_type_cache
2008-02-04 18:00:12 +00:00
Amaury Forgeot d'Arc cab3d98ca1 Ensure that PySet_Add() operates on a newly created frozenset, like PyTuple_SetItem does.
Add PyFrozenSet_Check(), which was not needed before; The list of Py*Set_Check* macros seems to be complete now.

Add missing NEWS entries about all this.
2008-02-03 22:51:43 +00:00
Georg Brandl 63cdb867f0 #2003: fix sentence. 2008-02-03 12:29:00 +00:00
Brett Cannon 89dfbe35af Remove extra tick marks and add a missing closing parenthesis. 2008-02-03 02:34:14 +00:00
Georg Brandl bbc4fc2933 Add email example how to send a multipart message.
Written for GHOP by Martin Matejek.
2008-02-02 10:49:58 +00:00
Georg Brandl 586a57a43c Amendments to the urllib2 docs, written for GHOP by Thomas Lamb. 2008-02-02 09:56:20 +00:00
Georg Brandl a51f61b555 Update for latest sphinx latex writer. 2008-02-01 20:45:33 +00:00
Georg Brandl 7be67ff2e0 Wording nit. 2008-02-01 19:24:01 +00:00
Georg Brandl 73aaeb15ca Rename batch file. 2008-02-01 18:08:09 +00:00
Georg Brandl cd235278ba Add link checker builder, written for GHOP by Thomas Lamb. 2008-02-01 15:50:15 +00:00
Georg Brandl 2a5d1c3493 Update IPv6 RFC number. 2008-02-01 11:59:08 +00:00
Jeffrey Yasskin ca2b69f765 Move __builtins__.trunc() to math.trunc() per
http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue
1965.
2008-02-01 06:22:46 +00:00
Jeffrey Yasskin b23dea6adb Added more documentation on how mixed-mode arithmetic should be implemented. I
also noticed and fixed a bug in Rational's forward operators (they were
claiming all instances of numbers.Rational instead of just the concrete types).
2008-01-31 07:44:11 +00:00
Raymond Hettinger a44327a9a2 Update itertool recipes 2008-01-30 22:17:31 +00:00
Raymond Hettinger 7d5fbaee42 Demonstrate new except/as syntax. 2008-01-30 00:51:58 +00:00
Raymond Hettinger e84ada3d95 Factor-out common code with a new macro 2008-01-28 21:48:07 +00:00
Raymond Hettinger ecdcb58950 Make PySet_Add() work with frozensets.
Works like PyTuple_SetItem() to build-up values in a brand new frozenset.
Also, PyFrozenSet_New() is now guaranteed to produce a distinct new frozenset.
2008-01-28 20:34:33 +00:00
Christian Heimes 908caac52e Added clear cache methods to clear the internal type lookup cache for ref leak test runs. 2008-01-27 23:34:59 +00:00
Georg Brandl 56eadd9d0d Add refcounting extension to build config. 2008-01-27 20:25:12 +00:00
Raymond Hettinger 9bba7b7085 Removed an unnecessary and confusing paragraph from the namedtuple docs. 2008-01-27 10:47:55 +00:00
Gregory P. Smith d006380fe1 Update docs for new callpack params added in r60188 2008-01-26 18:51:05 +00:00
Georg Brandl 2a7d991c6c Clarify "b" mode under Unix. 2008-01-26 14:02:38 +00:00
Andrew M. Kuchling 0c3f1680b3 Add some items 2008-01-26 13:50:51 +00:00
Georg Brandl a7364408cd Fix markup again. 2008-01-26 13:41:21 +00:00
Georg Brandl 0522548d61 Slashes allowed on Windows. 2008-01-26 11:02:22 +00:00
Georg Brandl fe7dd50907 #1934: fix os.path.isabs docs. 2008-01-26 09:43:35 +00:00
Raymond Hettinger dee3f65d98 Revert PySet_Add() changes. 2008-01-26 09:31:11 +00:00
Raymond Hettinger 7c1be2a3b1 Make PySet_Add() work with frozensets. Works like PyTuple_SetItem() to build-up values in a brand new frozenset. 2008-01-26 08:19:06 +00:00
Vinay Sajip f38ba78d7d Added documentation for optional delay argument to FileHandler and subclasses. 2008-01-24 12:38:30 +00:00
Gregory P. Smith 7b7ce7854c Fix issue1789: The tutorial contained a misuse of the struct module.
(also remove an unneeded import struct from test_largefile)
2008-01-24 09:38:26 +00:00
Raymond Hettinger c226c31139 Let pprint() support sets and frozensets (suggested by David Mertz). 2008-01-23 00:04:40 +00:00
Raymond Hettinger 2dec48d1c5 Improve variable name in sample code 2008-01-22 22:09:26 +00:00
Raymond Hettinger 9ed5b57fe2 Give zip() the same guarantee as izip() for left-to-right evaluation. 2008-01-22 20:18:53 +00:00
Raymond Hettinger 48c6293500 Document when to use izip_longest(). 2008-01-22 19:51:41 +00:00
Christian Heimes 74b8e76ec1 Don't repeat yourself
Added the macros PyModule_AddIntMacro and PyModule_AddStringMacro. They shorten PyModule_AddIntConstant(m, "AF_INET", AF_INET) to PyModule_AddIntMacro(m, AF_INET)
2008-01-22 15:25:18 +00:00
Georg Brandl 953e1ee8f4 Fix \xhh specs, #1889. 2008-01-22 07:53:31 +00:00