Commit graph

376 commits

Author SHA1 Message Date
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
70992c3c83 Expand on re.split behavior with captured expressions. 2008-03-06 07:19:15 +00:00
Raymond Hettinger
040f10e9b3 Add examples. 2008-03-06 01:15:52 +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
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
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
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
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
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
Brett Cannon
499969a08c Add minor markup for a string. 2008-02-25 05:33:07 +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
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
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
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
5e203f56db #2131: note that codecs.open() always opens files in binary mode. 2008-02-17 11:33:38 +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