Raymond Hettinger
e896acc98c
Let most inspect functions return named tuples
2008-01-11 03:04:50 +00:00
Raymond Hettinger
097a190303
Have Decimal.as_tuple return a named tuple.
2008-01-11 02:24:13 +00:00
Raymond Hettinger
a7d984e838
Comment-out missing constant (from rev 59819)
2008-01-11 02:12:33 +00:00
Raymond Hettinger
fff4e6e171
Doctest results return a named tuple for readability
2008-01-11 01:25:54 +00:00
Raymond Hettinger
d1ef85420f
Run doctests on the collections module
2008-01-11 00:23:13 +00:00
Raymond Hettinger
15b5e55b48
Neaten-up the named tuple docs
2008-01-10 23:00:01 +00:00
Amaury Forgeot d'Arc
d08a8ebf2a
Closing issue1761.
...
Surprising behaviour of the "$" regexp: it matches the
end of the string, AND just before the newline at the end
of the string::
re.sub('$', '#', 'foo\n') == 'foo#\n#'
Python is consistent with Perl and the pcre library, so
we just document it.
Guido prefers "\Z" to match only the end of the string.
2008-01-10 21:59:42 +00:00
Raymond Hettinger
e850c466c7
Clarify how to add a field to a named tuple.
2008-01-10 20:37:12 +00:00
Raymond Hettinger
e1655088ca
Examples for named tuple subclassing should include __slots__
2008-01-10 19:15:10 +00:00
Thomas Heller
44c38c16b8
Reflow a paragraph, and fix a typo.
2008-01-10 18:45:40 +00:00
Andrew M. Kuchling
7c22ccc3dd
Check for fd of -1 to save fsync() and fstat() call
2008-01-10 13:37:12 +00:00
Neal Norwitz
3fc15b8ba4
Reword entry, not sure I made it much better though.
2008-01-10 05:42:58 +00:00
Thomas Heller
61390fd884
Change amd64 buildbot scripts to use Visual Studio 2008, and
...
to use the required versions of external sources.
External sources are not yet built, so the build-step fails to
built some targets.
2008-01-09 21:35:43 +00:00
Thomas Heller
f71b59b072
Change amd64 buildbot scripts to use Visual Studio 2008, and
...
to use the required versions of external sources.
External sources are not yet built, so the build-step fails to
built some targets.
2008-01-09 21:35:04 +00:00
Christian Heimes
3403f1589d
Fixed #1776 . __import__() no longer imports modules by file name
2008-01-09 19:56:33 +00:00
Christian Heimes
195b883bb4
vs9to8 sync
2008-01-09 14:46:10 +00:00
Andrew M. Kuchling
3eb4aa733a
Related to patch #1114 : fix another place where attr_t is assumed to be a long
2008-01-09 12:27:41 +00:00
Thomas Heller
3247aa9078
Set the output file in the _ctypes Debug|x64 configuration.
2008-01-09 11:19:19 +00:00
Raymond Hettinger
dc1854dec4
Fix typo
2008-01-09 03:13:20 +00:00
Fred Drake
d4e5613c5f
minor cleaning
2008-01-09 03:11:28 +00:00
Raymond Hettinger
e11230e11b
Syntax highlighting only works when >>> lines are accompanied by ... lines
2008-01-09 03:02:23 +00:00
Facundo Batista
4473d225a8
Issue 846388. Adds a call to PyErr_CheckSignals to
...
SRE_MATCH so that signal handlers can be invoked during
long regular expression matches. It also adds a new
error return value indicating that an exception
occurred in a signal handler during the match, allowing
exceptions in the signal handler to propagate up to the
main loop. Thanks Josh Hoyt and Ralf Schmitt.
2008-01-08 21:10:12 +00:00
Georg Brandl
8d10167236
Better method for associating .py files with the interpreter.
2008-01-08 19:42:30 +00:00
Georg Brandl
502d6312db
Fix markup errors from r59857 and clarify key.__enter__/__exit__ docs
2008-01-08 16:18:26 +00:00
Christian Heimes
b39a756afd
Added __enter__ and __exit__ functions to HKEY object
...
Added ExpandEnvironmentStrings to the _winreg module.
2008-01-08 15:46:10 +00:00
Thomas Heller
41f278ffa5
Use relative instead of absolute filenames in the C-level tracebacks.
...
This prevents traceback prints pointing to files in this way:
File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function'
2008-01-08 15:15:09 +00:00
Andrew M. Kuchling
62182c8b72
Patch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platforms where attr_t isn't a C long
2008-01-08 14:56:02 +00:00
Andrew M. Kuchling
e0a49b6e05
Patch 1137: allow assigning to .buffer_size attribute of PyExpat.parser objects
2008-01-08 14:30:55 +00:00
Facundo Batista
52b25795c0
Issue #1757 : The hash of a Decimal instance is no longer affected
...
by the current context. Thanks Mark Dickinson.
2008-01-08 12:25:20 +00:00
Christian Heimes
f66f95d419
It's verbose, not debug
2008-01-08 03:40:04 +00:00
Raymond Hettinger
ac5742e0fe
Docs on named tuple's naming conventions and limits of subclassing
2008-01-08 02:24:15 +00:00
Raymond Hettinger
581671419f
Expand comment.
2008-01-08 02:02:05 +00:00
Raymond Hettinger
f6b769b464
Documentation nits.
2008-01-07 21:33:51 +00:00
Raymond Hettinger
f5e8af1bb7
Use get() instead of pop() for the optimized version of _replace().
2008-01-07 20:56:05 +00:00
Raymond Hettinger
fb3ced663d
Minor markup fix
2008-01-07 20:17:35 +00:00
Raymond Hettinger
9a359210aa
Cleanup named tuple subclassing example.
2008-01-07 20:07:38 +00:00
Christian Heimes
4d7e6702e9
Fixed indention problem that caused the second TIPC test to run on systems without TIPC
2008-01-07 19:58:41 +00:00
Vinay Sajip
aa0665ba17
Added section about adding contextual information to log output.
2008-01-07 19:40:10 +00:00
Georg Brandl
3ccb49afed
Clarify metaclass docs and add example.
2008-01-07 19:17:10 +00:00
Georg Brandl
61d2886491
Fix two further doc build warnings.
2008-01-07 18:57:03 +00:00
Raymond Hettinger
1b0ebb168d
Fix inconsistent title levels -- it made the whole doc build crash horribly.
2008-01-07 18:52:19 +00:00
Georg Brandl
62416bcf5a
#467924 , patch by Alan McIntyre: Add ZipFile.extract and ZipFile.extractall.
2008-01-07 18:47:44 +00:00
Georg Brandl
76b30d1688
Fix #define ordering.
2008-01-07 18:41:34 +00:00
Georg Brandl
62647653eb
Restructure urllib doc structure.
2008-01-07 18:23:27 +00:00
Georg Brandl
dfe5dc8455
Make Python compile with --disable-unicode.
2008-01-07 18:16:36 +00:00
Georg Brandl
aed6c66aa8
patch #1668 : clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.
2008-01-07 17:25:53 +00:00
Georg Brandl
2da0fceba7
Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.
2008-01-07 17:09:35 +00:00
Georg Brandl
b3255ed8c9
Restore "somenamedtuple" as the "class" for named tuple attrs.
2008-01-07 16:43:47 +00:00
Mark Summerfield
86dfee5c45
Added a hyperlink from sequence types to mutable sequence types.
2008-01-07 16:42:08 +00:00
Georg Brandl
882ed5595b
#1755 : typo.
2008-01-07 16:41:57 +00:00