Georg Brandl
d1c131a6e3
Back out r59931 - test_ctypes fails with it.
2008-01-13 15:04:05 +00:00
Ka-Ping Yee
9e0f116fac
Check in the patch proposed by Ben Hayden (benjhayden) for issue
...
#1550 : help('modules') broken by several 3rd party libraries.
Tested with Python build: trunk:54235:59936M -- the reported error
occurs with Django installed (or with any __init__.py present on
the path that raises an exception), and such errors indeed go away
when this change is applied.
2008-01-13 11:25:13 +00:00
Thomas Heller
5f0b7ae481
Make Modules/socketobject.c compile for Windows again.
2008-01-13 11:19:43 +00:00
Georg Brandl
9f1e2ecb48
Clarify the effect of text mode.
2008-01-13 09:36:18 +00:00
Raymond Hettinger
8bdd044dfd
Fix spelling.
2008-01-13 06:18:07 +00:00
Raymond Hettinger
c20ed51dc3
Named tuple is a concept, not a specific type.
2008-01-13 06:15:15 +00:00
Georg Brandl
fca4e1ffa1
Fix editing glitch.
2008-01-12 16:11:09 +00:00
Georg Brandl
27e26ec418
Patch #1700288 : Method cache optimization, by Armin Rigo, ported to
...
2.6 by Kevin Jacobs.
2008-01-12 13:47:57 +00:00
Georg Brandl
57fe0f2902
Move OSError docs to exceptions doc, remove obsolete descriptions
...
from os docs, rework posix docs.
2008-01-12 10:53:29 +00:00
Mark Dickinson
59bc20bb27
Issue 1780: Allow leading and trailing whitespace in Decimal constructor,
...
when constructing from a string. Disallow trailing newlines in
Context.create_decimal.
2008-01-12 01:56:00 +00:00
Raymond Hettinger
bed4dd459d
Update the opcode docs for STORE_MAP and BUILD_MAP
2008-01-11 23:25:18 +00:00
Thomas Heller
43617bc610
Fix a potential 'SystemError: NULL result without error'.
...
NULL may be a valid return value from PyLong_AsVoidPtr.
Will backport to release25-maint.
2008-01-11 20:29:19 +00:00
Thomas Heller
c682614df0
Raise an error instead of crashing with a segfault when a NULL
...
function pointer is called.
Will backport to release25-maint.
2008-01-11 19:34:06 +00:00
Andrew M. Kuchling
de68037202
Bug #1790 : update link; remove outdated paragraph
2008-01-11 19:33:24 +00:00
Raymond Hettinger
0f6a656ec1
Speed-up and simplify code urlparse's result objects.
2008-01-11 18:04:55 +00:00
Christian Heimes
0f973934f4
Removed unused variable
2008-01-11 15:42:29 +00:00
Thomas Heller
eb65c99d00
Revert revision 59913, because it was wrong:
...
The sqlite3 dll, when compiled in debug mode, must be linked with
/MDd to use the debug runtime library. Further, the dll will be
named sqlite3_d.dll.
2008-01-11 15:38:46 +00:00
Thomas Heller
348fd45ec4
The sqlite3 dll, when compiled in debug mode, must be linked with /MDd
...
to use the debug runtime library. Further, the dll will be named
sqlite3_d.dll.
2008-01-11 12:41:39 +00:00
Georg Brandl
e3c3db59b5
Documentation for r5990[3567].
2008-01-11 09:55:53 +00:00
Georg Brandl
2f32c39227
News entries for rev. 5990[567].
2008-01-11 09:20:58 +00:00
Georg Brandl
ff15c866a6
Guard definition of TIPC_SUB_CANCEL with an #ifdef.
2008-01-11 09:19:11 +00:00
Thomas Heller
d17315f1c2
Add an important missing blank.
2008-01-11 08:04:03 +00:00
Raymond Hettinger
0ff4dafee0
Improve usability of the SequenceMatcher by returning named tuples describing match ranges.
2008-01-11 03:20:54 +00:00
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