Barry Warsaw
63ce5af496
Added the -X/--no-docstrings flag which takes a filename containing a
...
list of files to not extract docstrings from when the -D option is
given. This isn't optimal, but I didn't want to change the semantics
of -D, and it's bad form to allow optional switch arguments.
Bumping __version__ to 1.4.
TokenEater.__init__(): Initialize __curfile to None.
__waiting(): In order to extract docstrings from the module, both the
-D flag should be set, and the __curfile should not be named in
the -X filename (i.e. it isn't in opts.nodocstrings).
set_filename(): Fixed a bug where once the first module docstring is
extracted, no subsequent module docstrings will be extracted. The
bug was that the first extraction set __freshmodule to 0, but that
flag was never reset back to 1. set_filename() is always called
when the next file is being processed, so use it to reset the
__freshmodule flag.
main(): Add support for -X/--no-docstring.
2001-07-27 16:47:18 +00:00
Guido van Rossum
702d08ec05
Fix buffer_info() docstring to match reality. See SF bug #444842 .
2001-07-27 16:05:32 +00:00
Jack Jansen
b4a7db7736
config.h renamed to pyconfig.h
2001-07-27 09:22:03 +00:00
Jack Jansen
8d2f3d66ee
ProgressBar crashed when you tried to drag it. Fixed. Thanks go to Alfonso Baciero.
2001-07-27 09:21:28 +00:00
Tim Peters
33dc0a1705
One more crack at join(): stop trying to pretend this isn't a mass of
...
special cases. test_pkg works again on Windows.
2001-07-27 08:09:54 +00:00
Tim Peters
4223f89edd
Change ntpath.join() so that join("d:/", "/whatever") returns
...
d:/whatever instead of /whatever. While I'm afraid changing isabs()
to be *consistent* with this would break lots of code, it makes
best sense for join() to do it this way. Thanks to Alex Martelli for
pushing back on this one!
2001-07-26 21:54:37 +00:00
Tim Peters
76f373d081
Repair more now-obsolete references to config.h.
2001-07-26 21:34:59 +00:00
Fred Drake
bd2e3b03d6
Document the PYTHONY2K environment variable that had been left out of this
...
list.
Present the URLs at the bottom in a consistent manner, conforming to the
style guide.
Remove the lone use of "e.g.", which the style guide does not allow.
2001-07-26 21:25:58 +00:00
Greg Ward
54f65094c3
Typo fix.
2001-07-26 21:01:21 +00:00
Tim Peters
7321ec437b
SF bug #444510 : int() should guarantee truncation.
...
It's guaranteed now, assuming the platform modf() works correctly.
2001-07-26 20:02:17 +00:00
Marc-André Lemburg
7cf92fa1c8
Add backwards compatibility.
2001-07-26 18:06:58 +00:00
Marc-André Lemburg
ae21df59c3
Undoing the UCS-4 patch addition which caused unichr() to return
...
surrogates for Unicode code points outside range(0x10000) on narrow
Python builds.
2001-07-26 16:29:25 +00:00
Martin v. Löwis
4f1cd8bdcb
Patch #411138 : Rename config.h to pyconfig.h. Closes bug #231774 .
2001-07-26 13:41:06 +00:00
Martin v. Löwis
4eb5940a4d
Untabify IPv6 changes.
2001-07-26 13:37:33 +00:00
Guido van Rossum
2e441f7836
Fix a denial-of-service attack, SF bug #443120 .
...
Code by Evan Simpson.
2001-07-25 21:00:19 +00:00
Greg Ward
7cf7e7e529
Undo revision 1.7: always mangle a #! line containing "python" to point
...
to the current Python interpreter (ie. the one used for
building/installation), even (especially!) if "/usr/bin/env" appears in
the #! line.
Rationale: installing scripts with "#!/usr/bin/env python" is asking for
trouble, because
1) it might pick the wrong interpreter (not the one used to
build/install the script)
2) it doesn't work on all platforms (try it on IRIX 5, or on Linux
with command-line options for python)
3) "env" might not be in /usr/bin
2001-07-25 20:20:11 +00:00
Greg Ward
e628a2fa85
Don't "import *" from stat at all -- just import what's needed, and
...
do it back in copy_file() (not at module level).
2001-07-25 19:48:03 +00:00
Skip Montanaro
41d7d58cc4
trivial rewording in footnote 5.
2001-07-25 16:18:19 +00:00
Marc-André Lemburg
80d1dd5f3b
Fix for bug #444493 : u'\U00010001' segfaults with current CVS on
...
wide builds.
2001-07-25 16:05:59 +00:00
Martin v. Löwis
784d3df09f
Allow usage of gcc on OSF/1; this reverts rev 1.23 of configure.in,
...
and fixes bug #438786 .
2001-07-25 07:30:35 +00:00
Martin v. Löwis
1669669f4c
Remove unused imports from previous checkin.
2001-07-25 06:12:16 +00:00
Martin v. Löwis
a43c2f845e
Patch #401196 : Use getaddrinfo and AF_INET6 in TCP servers and clients.
2001-07-24 20:34:08 +00:00
Fred Drake
d61e3eab44
Add entry for the new distutils section.
2001-07-24 16:20:13 +00:00
Fred Drake
4fefcc3ce4
Overview comments for the distutils package, with links to the distutils
...
manuals for more information. This is being added to make it easier to
find the documentation for the distutils code.
2001-07-24 16:19:24 +00:00
Fred Drake
f1b3de8d5c
Add labels to all \section and \subsection headings for use in references.
2001-07-24 14:38:34 +00:00
Jack Jansen
5bb6ff926b
Changed findertools.move() to move() in movetotrash.
2001-07-24 11:37:23 +00:00
Thomas Wouters
7aeb6ef941
Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of
...
snprintf.
2001-07-24 11:03:34 +00:00
Martin v. Löwis
3db5b8cc76
Patch #443669 : Permit _tkinter to build on cygwin32.
2001-07-24 06:54:01 +00:00
Martin v. Löwis
791bfda2b3
Autocheck for snprintf, and use sprintf if it is not available.
...
Remove declaration of h_errno, since it is supposedly declared in netdb.h.
Changes proposed by itojun.
2001-07-24 06:33:08 +00:00
Fred Drake
c547b46c06
Be more specific about corner cases in the description of the $ RE syntax,
...
and include an example where the MULTILINE flag makes a real difference.
This closes SF bug #441600 .
2001-07-23 21:14:59 +00:00
Fred Drake
5e9eb98ff6
Oh, ok, so plainpager is probably marginally better.
2001-07-23 19:48:10 +00:00
Fred Drake
0a66fcb116
If $TERM is "dumb" or "emacs", just dump the text instead of trying to run
...
"less".
Patch contributed by Alex Convertry.
This closes SF patch #443551 .
2001-07-23 19:44:30 +00:00
Fred Drake
6fd3b22847
When explaining the enterabs() method, using the modern spelling of apply(),
...
and relax the type of the argument list from tuple to sequence.
2001-07-23 19:28:09 +00:00
Fred Drake
6fdb90c0ca
Remove self-reference from the anydbm module.
...
This closes SF patch #443788 .
2001-07-23 19:22:42 +00:00
Fred Drake
8a2adcf812
Typo: Added missing "if".
...
This is part of SF patch #442788 .
2001-07-23 19:20:56 +00:00
Fred Drake
c046e97dc2
Add StopIteration to the list of exceptions *not* derived from StandardError.
...
Slightly re-word discussion of SystemExit and fork().
This is part of SF patch #443788 .
2001-07-23 19:19:39 +00:00
Fred Drake
63bc2e0fcb
Convert the use of apply(f, args) to the new spelling: f(*args).
...
This is part of SF patch #443788 .
2001-07-23 19:16:22 +00:00
Neil Schemenauer
649414c630
Fix typo in comment.
2001-07-23 16:50:15 +00:00
Neil Schemenauer
7d4bb9f179
Add -E command line switch (ignore environment variables like PYTHONHOME
...
and PYTHONPATH).
2001-07-23 16:30:27 +00:00
Fred Drake
f973c6d594
Make this test work under Windows as well.
2001-07-23 16:30:21 +00:00
Fred Drake
99e87f9e23
Test for the "glob" module, contributed by Nick Mathewson.
...
Heavily modified so this doesn't break on Windows.
This closes SF patch #441175 .
2001-07-23 16:08:36 +00:00
Moshe Zadka
03897ea1f7
Patch number #422106 by Greg Ball, to fix segmentation
...
fault in sys.displayhook.
Please check this in on the 2.2a1 branch (or whatever is necessary
to get it working next release)
2001-07-23 13:32:43 +00:00
Guido van Rossum
8fcc8e1b4f
Alex Coventry (SF patch 441791).
2001-07-23 13:28:37 +00:00
Guido van Rossum
f48f11cd79
SF Patch #441791 , with changes: when "import foo.bar" fails with an
...
exception in the execution of bar, ensure that foo.bar exists.
(Previously, while sys.modules['foo.bar'] would exist, foo.bar would
only be created upon successful execution of bar. This is
inconvenient; some would say wrong. :-)
2001-07-23 13:27:49 +00:00
Tim Peters
fa712ca1ed
Whitespace normalization.
...
Note: This test fails on Windows. Don't know why yet.
2001-07-23 09:44:21 +00:00
Martin v. Löwis
fe36fc91ed
Before declaring h_errno, do not check for Win32 only. Instead, do check
...
whether h_errno is a macro.
2001-07-23 07:27:16 +00:00
Fred Drake
4c81d60fcb
Tests for the "commands" module, contributed by Nick Mathewson.
...
This closes SF patch #440291 .
2001-07-23 04:08:01 +00:00
Fred Drake
1586136193
New tests by Nick Mathewson, for the fpformat module.
...
This closes SF patch #440290 .
2001-07-23 02:46:35 +00:00
Martin v. Löwis
9db2f571c3
Instead of accessing ss_family, cast sockaddr_storage to sockaddr and access sa_family.
2001-07-23 01:30:10 +00:00
Tim Peters
b5c61a899e
Leave the Inno script in better shape. Added registration of .py etc
...
extensions -- but Inno uninstall doesn't restore previous ones (if any),
so that's another step backwards.
2001-07-21 21:16:39 +00:00