Commit graph

8691 commits

Author SHA1 Message Date
Guido van Rossum
02de8979cc Patch #1583 by Adam Olsen.
This adds signal.set_wakeup_fd(fd) which sets a file descriptor to
which a zero byte will be written whenever a C exception handler runs.

I added a simple C API as well, PySignal_SetWakeupFd(fd).
2007-12-19 19:41:06 +00:00
Andrew M. Kuchling
d586559c31 Add a bunch of items 2007-12-19 02:02:04 +00:00
Raymond Hettinger
85dfcf3530 Users demand iterable input for named tuples. The author capitulates. 2007-12-18 23:51:15 +00:00
Christian Heimes
0a8143f646 Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
The patch unifies float("inf") and repr(float("inf")) on all platforms.
2007-12-18 23:22:54 +00:00
Raymond Hettinger
8777bcae27 Simplify and speedup _asdict() for named tuples. 2007-12-18 22:21:27 +00:00
Raymond Hettinger
88880b2dd6 Add more namedtuple() test cases. Neaten the code and comments. 2007-12-18 00:13:45 +00:00
Georg Brandl
d41b8dc58c Don't use quotes for non-string code. 2007-12-16 23:15:07 +00:00
Georg Brandl
9f72d237f8 Use PEP 8. 2007-12-16 23:13:29 +00:00
Georg Brandl
001e8388d4 Simplify. 2007-12-16 23:11:16 +00:00
Georg Brandl
eee1fc51ba Adapt conf.py to new option names. 2007-12-16 19:36:51 +00:00
Georg Brandl
1bd51e3eec Remove curious space-like characters. 2007-12-16 16:00:36 +00:00
Georg Brandl
6dfe956bfc Remove another unnecessary Unicode character. 2007-12-16 15:59:19 +00:00
Georg Brandl
459744cc71 Remove gratuitous unicode character. 2007-12-16 15:53:49 +00:00
Georg Brandl
05df69b2ea Remove orphaned footnote reference. 2007-12-16 15:47:46 +00:00
Georg Brandl
4257ca7afb Argh, wrong version. 2007-12-15 09:36:37 +00:00
Georg Brandl
07b55eadc2 Add note about future import needed for with statement. 2007-12-15 09:34:59 +00:00
Andrew M. Kuchling
90921cc4b5 Bump the version number, and make a few small edits 2007-12-14 22:52:36 +00:00
Andrew M. Kuchling
df2d745f38 Remove warning about URL 2007-12-14 22:41:18 +00:00
Raymond Hettinger
e846f38c77 Add usage note 2007-12-14 21:51:50 +00:00
Raymond Hettinger
07ae83f840 Faster and simpler _replace() method 2007-12-14 19:19:59 +00:00
Georg Brandl
adbda844d0 Add a section about nested listcomps to the tutorial.
Thanks to Ian Bruntlett and Robert Lehmann.
2007-12-14 19:03:36 +00:00
Raymond Hettinger
366523c667 Update method names for named tuples. 2007-12-14 18:12:21 +00:00
Raymond Hettinger
48eca67ab9 Add line spacing for readability 2007-12-14 18:08:20 +00:00
Raymond Hettinger
42da874cdd Cleaner method naming convention 2007-12-14 02:49:47 +00:00
Raymond Hettinger
04a9a0e904 Simplify implementation of __replace__() 2007-12-13 22:55:52 +00:00
Georg Brandl
2382832bf3 Add another GHOP contributor. 2007-12-11 16:32:49 +00:00
Christian Heimes
7c7f6afa92 Added wide char api variants of getch and putch to msvcrt module. The wide char methods are required to fix #1578 in py3k. I figured out that they might be useful in 2.6, too. 2007-12-10 15:12:41 +00:00
Brett Cannon
338d41850a Use a versionchanged directive. 2007-12-09 05:09:37 +00:00
Georg Brandl
e151ab4282 Adapt style. 2007-12-08 17:56:07 +00:00
Skip Montanaro
546624609e correct email address 2007-12-08 15:26:16 +00:00
Skip Montanaro
ffe455c3a2 + "context manager" 2007-12-08 15:23:31 +00:00
Georg Brandl
e40a6a85ee Add examples to the datetime documentation. Written for GHOP by "h4wk.cz". 2007-12-08 11:23:13 +00:00
Georg Brandl
e7d118a5a1 Fix markup in whatsnew, use new directive in ACKS. 2007-12-08 11:05:05 +00:00
Georg Brandl
013d574183 Update to windows doc from Robert. 2007-12-07 15:16:57 +00:00
Raymond Hettinger
ba9eea5aaa Don't have the docs berate themselves. Keep a professional tone.
If a todo is needed, put it in the tracker.
2007-12-07 01:53:01 +00:00
Georg Brandl
d6b20dc54f Better re.split examples. 2007-12-06 09:45:39 +00:00
Georg Brandl
2b92f6bab3 Diverse markup fixes. 2007-12-06 01:52:24 +00:00
Georg Brandl
923ad7a948 Add another GHOP student to ACKS. 2007-12-06 00:24:23 +00:00
Georg Brandl
749fddc093 Add Ross Light, a GHOP student, to ACKs. 2007-12-05 21:52:40 +00:00
Georg Brandl
0b60a14f13 Another markup fix. 2007-12-05 20:03:57 +00:00
Georg Brandl
45c088c2e7 Fix markup. 2007-12-05 19:49:21 +00:00
Georg Brandl
b8df156ab5 Add examples to re docs. Written for GHOP by Dan Finnie. 2007-12-05 18:30:48 +00:00
Georg Brandl
722e1011c9 Add examples to csv, pprint and traceback docs.
Written by Ross for GHOP.
2007-12-05 17:56:50 +00:00
Georg Brandl
c37f288ec6 Add tutorial and examples to logging docs, from GHOP student "oscar8thegrouch". 2007-12-04 17:46:27 +00:00
Georg Brandl
21c666501b Fix duplicate label and a typo. 2007-12-04 16:50:28 +00:00
Christian Heimes
1206a227c9 Added warning that make install may overwrite or masquerade the default python binary. Use make altinstall instead.
A native English speaker may want to rephrase the paragraph. ;)
2007-12-04 16:36:20 +00:00
Georg Brandl
d95a1ee652 Add "Python on Unix" document, mostly written for GHOP
by Shriphani Palakodety.
2007-12-04 16:10:02 +00:00
Andrew M. Kuchling
6e751f4ffa Grammar fix 2007-12-03 21:28:41 +00:00
Georg Brandl
0a0cf16de9 Add examples to the xmlrpclib docs.
Written for GHOP by Josip Dzolonga.
2007-12-03 20:03:46 +00:00
Christian Heimes
44eeaec173 Patch #1537 from Chad Austin
Change GeneratorExit's base class from Exception to BaseException
(This time I'm applying the patch to the correct sandbox.)
2007-12-03 20:01:02 +00:00