Steven Bethard
6f778cfb5b
Document unicode.isnumeric() and unicode.isdecimal() (issue2326)
2008-03-17 19:33:11 +00:00
Gregory P. Smith
f48f9d38c0
Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms
...
regardless of the native sizeof(long) used in the integer object.
This somewhat odd behavior of returning a signed is maintained in 2.x for
compatibility reasons of always returning an integer rather than a long object.
Fixes Issue1202 for Python 2.6
2008-03-17 18:48:05 +00:00
Mark Summerfield
43da35de7b
Added a footnote to each pointing out that for XML output if an encoding
...
string is given it should conform to the appropriate XML standards---for
example, "UTF-8" is okay, but "UTF8" is not.
2008-03-17 08:28:15 +00:00
Vinay Sajip
91f0ee4db6
Clarified documentation on use of shutdown().
2008-03-16 21:35:58 +00:00
Georg Brandl
87b0551931
#2299 : typos in newtypes.rst.
2008-03-16 08:00:19 +00:00
Raymond Hettinger
a6cfeb4b9d
Update docs to reflect removal of Exact/Inexact
2008-03-16 05:20:42 +00:00
Skip Montanaro
fc070d2731
add %f format to datetime - issue 1158
2008-03-15 16:04:45 +00:00
Skip Montanaro
75e51680f1
note that fork and forkpty raise OSError on failure
2008-03-15 02:32:49 +00:00
Georg Brandl
0267781742
Fix lots of broken links in the docs, found by Sphinx' external link checker.
2008-03-15 00:20:19 +00:00
Georg Brandl
bd77681f36
Remove obsolete paragraph. #2288 .
2008-03-14 23:10:34 +00:00
Raymond Hettinger
53bdf09343
Issue 2274: Add heapq.heappushpop().
2008-03-13 19:03:51 +00:00
Andrew M. Kuchling
d51e842a3f
Add class decorators
2008-03-13 11:07:35 +00:00
Georg Brandl
2e25551ef8
#1720705 : add docs about import/threading interaction, wording by Nick.
2008-03-13 07:21:41 +00:00
Georg Brandl
4bb40b9428
#2270 : fix typo.
2008-03-13 07:17:14 +00:00
Georg Brandl
d85a13a954
#2265 : fix example.
2008-03-13 07:15:56 +00:00
Raymond Hettinger
513460f80d
Improve docs for itemgetter(). Show that it works with slices.
2008-03-11 21:37:46 +00:00
Raymond Hettinger
e8b4b60555
Add recipe to docs.
2008-03-11 00:19:07 +00:00
Georg Brandl
5bb647dfa8
Update for newest Sphinx.
2008-03-09 18:18:30 +00:00
Georg Brandl
c557db5268
#2249 : document assertTrue and assertFalse.
2008-03-09 15:11:39 +00:00
Facundo Batista
c54aec1fda
Issue 1106316. post_mortem()'s parameter, traceback, is now
...
optional: it defaults to the traceback of the exception that is currently
being handled.
2008-03-08 16:50:27 +00:00
Georg Brandl
372d55e3e6
#1533486 : fix types in refcount intro.
2008-03-08 10:05:24 +00:00
Georg Brandl
47a5aec836
#2253 : fix continue vs. finally docs.
2008-03-08 09:54:06 +00:00
Andrew M. Kuchling
31c6de4f79
Grammar fix
2008-03-07 21:09:23 +00:00
Nick Coghlan
7af53be66f
Speed up with statements by storing the __exit__ method on the stack instead of in a temp variable (bumps the magic number for pyc files)
2008-03-07 14:13:28 +00:00
Jeffrey Yasskin
e75f59a578
Progress on issue #1193577 by adding a polling .shutdown() method to
...
SocketServers. The core of the patch was written by Pedro Werneck, but any bugs
are mine. I've also rearranged the code for timeouts in order to avoid
interfering with the shutdown poll.
2008-03-07 06:22:15 +00:00
Raymond Hettinger
38fb9bee6c
Tweak recipes and tests
2008-03-07 01:33:20 +00:00
Georg Brandl
a7bd27f0a8
#2225 : return nonzero status code from py_compile if not all files could be compiled.
2008-03-06 07:41:16 +00:00
Georg Brandl
6c45dc12b3
Add isinstance/issubclass to tutorial.
2008-03-06 07:31:34 +00:00
Georg Brandl
26bab5f92a
Little clarification of assignments.
2008-03-06 07:22:09 +00:00
Georg Brandl
70992c3c83
Expand on re.split behavior with captured expressions.
2008-03-06 07:19:15 +00:00
Georg Brandl
1df03405fc
#1725737 : ignore other VC directories other than CVS and SVN's too.
2008-03-06 06:47:18 +00:00
Andrew M. Kuchling
1d136bb91e
Add two items
2008-03-06 01:36:27 +00:00
Raymond Hettinger
040f10e9b3
Add examples.
2008-03-06 01:15:52 +00:00
Georg Brandl
9c06574024
#2239 : PYTHONPATH delimiter is os.pathsep.
2008-03-05 19:31:44 +00:00
Thomas Heller
f3c0559b5e
Issue 1872: Changed the struct module typecode from 't' to '?', for
...
compatibility with PEP3118.
2008-03-05 15:34:29 +00:00
Georg Brandl
225163d6a6
Fix some rst.
2008-03-05 07:10:35 +00:00
Andrew M. Kuchling
3710a13506
Add more items; add fragmentary notes
2008-03-05 00:44:41 +00:00
Georg Brandl
fd6cabfe21
#2230 : document that PyArg_* leaves addresses alone on error.
2008-03-04 07:33:30 +00:00
Georg Brandl
27504dae1b
Fix some patch attributions.
2008-03-04 07:25:54 +00:00
Raymond Hettinger
d553d856e7
Beef-up docs and tests for itertools. Fix-up end-case for product().
2008-03-04 04:17:08 +00:00
Andrew M. Kuchling
378586a844
Thesis night results: add various items
2008-03-04 01:50:32 +00:00
Andrew M. Kuchling
3fe1843cee
Add versionadded tags
2008-03-04 01:49:37 +00:00
Andrew M. Kuchling
684868ac90
Fix sentence fragment
2008-03-04 01:47:38 +00:00
Andrew M. Kuchling
ece10b4004
Grammar fix; markup fix
2008-03-04 01:30:10 +00:00
Georg Brandl
8e67ef52db
Expand a bit on genexp scopes.
2008-03-03 21:31:50 +00:00
Georg Brandl
3e9d66fee1
There are now sixteen isfoo functions.
2008-03-03 20:37:55 +00:00
Christian Heimes
608c1d8e87
Since abc._Abstract was replaces by a new type flags the regression test suite fails. I've added a new function inspect.isabstract(). Is the mmethod fine or should I check if object is a instance of type or subclass of object, too?
2008-03-03 18:28:04 +00:00
Georg Brandl
e6dab2a077
Fix factual error.
2008-03-02 14:15:04 +00:00
Georg Brandl
72780a4b0c
Make clear that the constants are strings.
2008-03-02 13:41:39 +00:00
Raymond Hettinger
2b7a5c468b
Tighten example code.
2008-03-02 11:17:51 +00:00
Raymond Hettinger
f287f17779
Finish-up docs for combinations() and permutations() in itertools.
2008-03-02 10:59:31 +00:00
Georg Brandl
47dff40a40
New default basename for HTML help files.
2008-03-02 06:45:40 +00:00
Georg Brandl
f017728219
Make patchlevel print out the release if called as a script.
2008-03-02 06:44:08 +00:00
Georg Brandl
7f7e30ae2e
Update year.
2008-03-02 06:32:32 +00:00
Georg Brandl
db9ff5f565
It's 2.6 now.
2008-03-02 06:28:16 +00:00
Barry Warsaw
189b6d85c9
More copyright year and version number bumps
2008-03-01 03:15:20 +00:00
Georg Brandl
3fd0c442dc
#2208 : allow for non-standard HHC location.
2008-02-29 18:21:29 +00:00
Georg Brandl
3c94088d98
Until we got downloadable docs, stop confusing viewers by talking about a nonexisting table.
2008-02-29 18:15:36 +00:00
Raymond Hettinger
330958e647
Document impending updates to itertools.
2008-02-28 19:41:24 +00:00
Raymond Hettinger
18750ab2a0
Add repeat keyword argument to itertools.product().
2008-02-28 09:23:48 +00:00
Raymond Hettinger
c105289ec4
Simply the sample code for combinations().
2008-02-27 01:44:34 +00:00
Raymond Hettinger
93e804da9c
Add itertools.combinations().
2008-02-26 23:40:50 +00:00
Georg Brandl
3ef2063ec8
#2194 : fix some typos.
2008-02-26 19:13:45 +00:00
Neal Norwitz
ca37661a69
Add a timing flag to Trace so you can see where slowness occurs
...
like waiting for socket timeouts in test_smtplib :-).
2008-02-26 08:21:28 +00:00
Georg Brandl
1b3e41c67e
Banish tab.
2008-02-26 06:40:10 +00:00
Raymond Hettinger
3fa41d5a1c
Docs for itertools.combinations(). Implementation in forthcoming checkin.
2008-02-26 02:46:54 +00:00
Georg Brandl
fd429063e1
Revert r61029.
2008-02-25 20:20:45 +00:00
Georg Brandl
976a0590bb
Rename sphinx.addons to sphinx.ext.
2008-02-25 20:17:56 +00:00
Brett Cannon
499969a08c
Add minor markup for a string.
2008-02-25 05:33:07 +00:00
Andrew M. Kuchling
e7b53c52bb
Remove stray word
2008-02-24 02:39:15 +00:00
Georg Brandl
4425e7cee7
Specify what kind of warning -3 emits.
2008-02-23 23:43:01 +00:00
Georg Brandl
f1699cd4c1
Document import ./. threading issues. #1720705 .
2008-02-23 23:25:26 +00:00
Georg Brandl
ebcfd11c16
#1506171 : added operator.methodcaller().
2008-02-23 23:04:35 +00:00
Georg Brandl
e2065c65d3
#1826 : allow dotted attribute paths in operator.attrgetter.
2008-02-23 23:02:23 +00:00
Georg Brandl
b0b0317ba2
#1825 : correctly document msilib.add_data.
2008-02-23 22:55:18 +00:00
Georg Brandl
ffada76d04
Add examples to modulefinder docs. Written for GHOP by Josip Dzolonga.
2008-02-23 22:05:38 +00:00
Georg Brandl
7d009926ad
#2101 : fix removeAttribute docs.
2008-02-23 21:59:11 +00:00
Georg Brandl
1704828098
Documentation coverage builder, part 1.
2008-02-23 18:47:04 +00:00
Andrew M. Kuchling
8887e54867
#835521 : Add index entries for various pickle-protocol methods and attributes
2008-02-23 16:39:43 +00:00
Andrew M. Kuchling
085f75a851
#1330538 : Improve comparison of xmlrpclib.DateTime and datetime instances.
...
Remove automatic handling of datetime.date and datetime.time.
This breaks backward compatibility, but python-dev discussion was strongly
against this automatic conversion; see the bug for a link.
2008-02-23 16:23:05 +00:00
Georg Brandl
5972493383
#2161 : Fix opcode name.
2008-02-23 15:43:48 +00:00
Andrew M. Kuchling
b678f98511
#2072 : correct documentation for .rpc_paths
2008-02-23 15:41:51 +00:00
Georg Brandl
080b094d20
More difflib examples. Written for GHOP by Josip Dzolonga.
2008-02-23 15:19:54 +00:00
Facundo Batista
7e251e83d5
Issue 1089358. Adds the siginterrupt() function, that is just a
...
wrapper around the system call with the same name. Also added
test cases, doc changes and NEWS entry. Thanks Jason and Ralf
Schmitt.
2008-02-23 15:07:35 +00:00
Georg Brandl
1647923bbf
#1492 : allow overriding BaseHTTPServer's content type for error messages.
2008-02-23 15:02:28 +00:00
Facundo Batista
b12f0b581a
Issue 1781. Now ConfigParser.add_section does not let you add a
...
DEFAULT section any more, because it duplicated sections with
the rest of the machinery. Thanks Tim Lesher and Manuel Kaufmann.
2008-02-23 12:46:10 +00:00
Raymond Hettinger
7832d4d534
Add recipe using itertools.product().
2008-02-23 10:04:15 +00:00
Raymond Hettinger
c5705a823b
Document itertools.product().
2008-02-22 19:50:06 +00:00
Georg Brandl
1699db145f
Another fix.
2008-02-22 12:57:05 +00:00
Georg Brandl
4e37c66262
Don't reference pyshell.
2008-02-22 12:56:34 +00:00
Georg Brandl
907a720f89
A lot more typo fixes by Ori Avtalion.
2008-02-22 12:31:45 +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
Georg Brandl
e1b8e9c666
Fixes contributed by Ori Avtalion.
2008-02-20 19:12:36 +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
27cca3cca7
Fix function name.
2008-02-17 15:14:10 +00:00
Georg Brandl
5e203f56db
#2131 : note that codecs.open() always opens files in binary mode.
2008-02-17 11:33:38 +00:00
Georg Brandl
943321d586
#2120 : broken links in advocacy document.
2008-02-16 09:37:32 +00:00
Raymond Hettinger
e9b9b35931
Update example to match the current syntax.
2008-02-15 21:21:25 +00:00
Thomas Heller
e7fb0c5114
Try to correct a markup error that does hide the following paragraph.
2008-02-14 21:00:28 +00:00
Raymond Hettinger
5111c522e7
Fix markup
2008-02-14 19:02:39 +00:00
Raymond Hettinger
0cd717007d
Simplify moneyfmt() recipe.
2008-02-14 12:49:37 +00:00
Christian Heimes
3b718a79af
Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation.
2008-02-14 12:47:33 +00:00
Raymond Hettinger
50361d4d9b
Fix markup.
2008-02-14 12:05:42 +00:00
Raymond Hettinger
d68bf02810
Show how to remove exponents.
2008-02-14 11:57:25 +00:00
Raymond Hettinger
27a90d989d
Improve rst markup
2008-02-14 11:01:10 +00:00
Raymond Hettinger
4631481dfd
Add fixed-point examples to the decimal FAQ
2008-02-14 10:46:57 +00:00
Raymond Hettinger
abe3237187
Fix decimal repr which should have used single quotes like other reprs.
2008-02-14 02:41:22 +00:00
Thomas Heller
a06a1a88ee
Add pickle support to ctypes types.
2008-02-13 20:21:53 +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
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
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
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
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
3a94ee05f7
Typos in decimal comment and documentation
2008-02-10 15:19:58 +00:00
Raymond Hettinger
13a707577f
Clarify that decimal also supports fixed-point arithmetic.
2008-02-10 07:21:09 +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
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