Skip Montanaro
f0d5f7917e
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
...
warning from GCC. Closes patch #1006629 .
2004-08-15 14:08:23 +00:00
Johannes Gijsbers
8d3b9dd09c
Quote \r\n correctly, remove random indentation (patch #1009384 ). Thanks
...
Cherniavsky Beni!
2004-08-15 12:23:10 +00:00
Brett Cannon
add33601c2
Correct the order of application for decorators. Meant to be bottom-up and not
...
top-down. Now matches the PEP.
2004-08-15 07:21:25 +00:00
Brett Cannon
31f8350f43
Fix incorrect comment for (struct compiling)->c_cellvars
2004-08-15 01:15:01 +00:00
Johannes Gijsbers
9e15dd6861
Let cgi.parse_header() properly unquote headers (patch #1008597 ).
2004-08-14 15:39:34 +00:00
Johannes Gijsbers
34c4120731
bug #989672 : pdb.doc and the help messages for the help_d and help_u methods
...
of the pdb.Pdb class gives have been corrected. d(own) goes to a newer frame,
u(p) to an older frame, not the other way around.
2004-08-14 15:19:28 +00:00
Johannes Gijsbers
4ec40648a5
bug #990669 : os.path.realpath() will resolve symlinks before normalizing the
...
path, as normalizing the path may alter the meaning of the path if it contains
symlinks.
Also add tests for infinite symlink loops and parent symlinks that need to be
resolved.
2004-08-14 15:01:53 +00:00
Johannes Gijsbers
f9a098efe1
Catch OSError raised when src or dst argument to os.path.samefile doesn't
...
exist.
2004-08-14 14:51:01 +00:00
Johannes Gijsbers
b112d6ed78
bug 990669: os.path.normpath may alter the meaning of a path if it contains
...
symbolic links. This has been documented in a comment since 1992, but is now in
the library reference as well.
2004-08-14 14:41:32 +00:00
Johannes Gijsbers
9d134b7386
bug #851123 : shutil.copyfile will raise an exception when trying to copy a file
...
onto a link to itself. Thanks Gregory Ball.
2004-08-14 14:03:03 +00:00
Johannes Gijsbers
68128715f2
Unwrap too-smart loop: we can't use `src` for both hard and symbolic links.
2004-08-14 13:57:08 +00:00
Johannes Gijsbers
46f1459860
Raise an exception when src and dst refer to the same file via a hard link or a
...
symbolic link (bug #851123 / patch #854853 , thanks Gregory Ball).
2004-08-14 13:30:02 +00:00
Johannes Gijsbers
404b06814c
Reset old locale after running tests. Not doing so broke
...
test_format/test_unicode in some circumstances (patch #1007539/bug #992078 ).
2004-08-14 10:56:54 +00:00
Tim Peters
7c399d3e68
Removed item about an asyncore patch that got backed out.
2004-08-13 22:34:14 +00:00
Tim Peters
83e259a2c2
Another microburst of snail-like progress.
2004-08-13 21:55:21 +00:00
Andrew M. Kuchling
9d499f2f96
Back out patch #982681
2004-08-13 20:06:57 +00:00
Brett Cannon
b3de2e13ba
'inspect' was not listing the functions in a module properly if the module was
...
reached through a symlink (was comparing path of module to path to function and
were not matching because of the symlink). os.path.realpath() is now used to
solve this discrepency.
Closes bug #570300 . Thanks Johannes Gijsbers for the fix.
2004-08-13 18:46:24 +00:00
Martin v. Löwis
08d786a608
Help compiling icons into an exe, for use with MSI advertisement.
2004-08-13 15:26:40 +00:00
Raymond Hettinger
cc0def1868
Convert weak iterators to generator form.
2004-08-13 07:12:45 +00:00
Tim Peters
bf9ac4bd89
Whitespace normalization.
2004-08-13 03:57:22 +00:00
Tim Peters
41a65ea7fe
Doctest has new traceback gimmicks in 2.4. While trying to document
...
them (which they are now), I had to rewrite the code to understand
it. This has got to be the most DWIM part of doctest -- but in context
is really necessary.
2004-08-13 03:55:05 +00:00
Neal Norwitz
f076953eb1
SF patch #1005778 , Fix seg fault if list object is modified during list.index()
...
Backport candidate
2004-08-13 03:18:29 +00:00
Fred Drake
39689c5c6a
make exception propogation more efficient; this avoids having Expat parse
...
the remaining data in the buffer (which it had done happily without reporting
any results)
this depends on a new feature in Expat added in 1.95.8
2004-08-13 03:12:57 +00:00
Fred Drake
d7ea55b1b8
include at least one example of an exception passing through pyexpat
2004-08-13 03:09:07 +00:00
Neal Norwitz
2e56c8a260
SF #1005913 , Patch to allow building of paper-*/dist.pdf by Jeff Epler
...
There were subsections without sections, so drop a sub.
2004-08-13 02:56:16 +00:00
Neal Norwitz
ee6511b309
Fix the version number in which changes were made
2004-08-13 02:34:06 +00:00
Tim Peters
7ea48ddd4f
Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is
...
implemented, just what it does.
2004-08-13 01:52:59 +00:00
Tim Peters
2603960525
Markup fiddling.
2004-08-13 01:49:12 +00:00
Tim Peters
8a3b69ca8f
Excruciatingly slow progress on the docs. Option flags / directive names
...
are documented now, and ripped out a bunch of "private name" convolutions.
2004-08-12 22:31:25 +00:00
Tim Peters
79b52b7261
Boosted the stack reservation for python.exe and python_w.exe from the
...
default 1MB to 2 million bytes. The test suite passes with -uall again
(test_compiler no longer drives WinXP into an insane state).
2004-08-12 18:37:10 +00:00
Michael W. Hudson
e667e66507
Report refleaks to stderr as the tests run as well as logging them
...
to a file.
2004-08-12 18:27:48 +00:00
Michael W. Hudson
800ba2375a
This is my patch:
...
[ 1005891 ] support --with-tsc on PPC
plus a trivial change to settscdump's docstring and a Misc/NEWS entry.
2004-08-12 18:19:17 +00:00
Tim Peters
d459f536c5
code_new(): Wouldn't compile on Windows, because of gcc'ism.
2004-08-12 18:16:43 +00:00
Michael W. Hudson
5e897959db
This is my patch
...
[ 1004703 ] Make func_name writable
plus fixing a couple of nits in the documentation changes spotted by MvL
and a Misc/NEWS entry.
2004-08-12 18:12:44 +00:00
Michael W. Hudson
5523c2517f
A NEWS entry for my last checked in change (I've gotten out of the
...
habit of these, sorry).
2004-08-12 18:09:00 +00:00
Michael W. Hudson
6093462739
Fix bug
...
[ 1005248 ] new.code() not cleanly checking its arguments
using the result of new.code() can still destroy the sun, but merely
calling the function shouldn't any more.
I also rewrote the existing tests of new.code() to use vastly less
un-bogus arguments, and added tests for the previous insane behaviours.
2004-08-12 17:56:29 +00:00
Martin v. Löwis
fd39ad4937
Patch #1005468 : Disambiguate "min() or max()" exception string.
2004-08-12 14:42:37 +00:00
Martin v. Löwis
9ecf326714
Patch #1006916 : Remove ODBC library references.
2004-08-12 14:07:49 +00:00
Martin v. Löwis
d632050d1d
Define _BSD_TYPES. Fixes #1005308 . Backported to 2.3.
2004-08-12 13:45:08 +00:00
Martin v. Löwis
0cb3c63503
Patch #1005568 : Use _SC_PAGESIZE on Irix.
...
Backported to 2.3.
2004-08-12 13:26:56 +00:00
Martin v. Löwis
a9170c7eac
Patch #808719 : Ignore the locale's encoding if it is an empty string.
...
Backported to 2.3.
2004-08-12 13:14:52 +00:00
Edward Loper
68ba9a685d
In output_difference(), replace blank lines in `want` with <BLANKLINE>
...
(rather than replacing <BLANKLINE> with blank lines in `got`). This
makes it easier to see what's intended.
2004-08-12 02:43:49 +00:00
Edward Loper
a5db6009fe
- Changed output of DocTestParser.get_program() to make it easier to
...
visually distinguish the expected output from the comments (use
"##" to mark expected outputs, and "#" to mark comments).
- If the string given to DocTestParser.get_program() is indented, then
strip its indentation. (In particular, find the min indentation of
non-blank lines, and strip that indentation from all lines.)
2004-08-12 02:41:30 +00:00
Edward Loper
8e4a34ba09
- Added __docformat__
...
- Added comments for some regexps
- If the traceback type/message don't match, then still print full
traceback in report_failure (not just the first & last lines)
- Renamed DocTestRunner.__failure_header -> _failure_header
2004-08-12 02:34:27 +00:00
Edward Loper
74bca7aa44
- Changed option directives to be example-specific. (i.e., they now
...
modify option flags for a single example; they do not turn options
on or off.)
- Added "indent" and "options" attributes for Example
- Got rid of add_newlines param to DocTestParser._parse_example (it's
no longer needed; Example's constructor now takes care of it).
- Added some docstrings
2004-08-12 02:27:44 +00:00
Edward Loper
ac20f57c28
- Added a register_optionflag function (so users can add their own
...
option flags); and use it to define the existing optionflag
constants.
2004-08-12 02:02:24 +00:00
Fred Drake
568671fc0f
avoid version numbers in the text where possible
2004-08-10 21:20:10 +00:00
Fred Drake
ba100c98ad
clarify the behavior of the .first() and .last() methods for empty
...
databases
this should be backported to the release23-maint branch
2004-08-10 19:22:48 +00:00
Andrew M. Kuchling
f54ac7e0ee
Spelling fix
2004-08-10 19:01:50 +00:00
Fred Drake
d62d507b9a
added missing documentation for UseForeignDTD() (new in 2.3)
...
someone should backport to the release23-maint branch
2004-08-10 17:18:32 +00:00