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
Martin v. Löwis
c7cdc63755
Set ai_addrlen even if there is no sa_len.
2001-07-21 18:48:56 +00:00
Martin v. Löwis
2d8d4276c6
Patch #401196 : IPv6 extensions to the socket module.
...
New functions getnameinfo, getaddrinfo. New exceptions socket.gaierror,
socket.herror. Various new constants, in particular AF_INET6 and error
codes and parameters for getaddrinfo.
AF_INET6 support in setipaddr, makesockaddr, getsockaddr, getsockaddrlen,
gethost_common, PySocket_gethostbyaddr.
2001-07-21 18:05:31 +00:00
Fred Drake
b7cea6324a
Add item about the new xml.sax.saxutils.quoteaddr() function.
2001-07-21 12:25:10 +00:00
Steven M. Gava
ba247a6bbb
updated about info for 0.8.1 release
2001-07-21 09:59:58 +00:00
Steven M. Gava
88ff736ee2
new material for 0.8.1 release
2001-07-21 09:50:55 +00:00
Martin v. Löwis
c925b1538a
Silence warnings in MSVC++: hide unused variables, add constness back to
...
inet_pton/ntop, convert htons argument to u_short.
2001-07-21 09:42:15 +00:00
Tim Peters
20f51a7b38
Get started on 2.2a2 NEWS.
2001-07-21 02:31:40 +00:00
Tim Peters
137759407b
On WIndows, skip the part of test_dircache that can't work on Windows.
2001-07-21 02:22:14 +00:00
Tim Peters
87cc0c329e
Whitespace normalization, plus:
...
+ test_quopri.py relied on significant trailing spaces. Fixed.
+ test_dircache.py (still) doesn't work on Windows (directory mtime on
Windows doesn't work like it does on Unix).
2001-07-21 01:41:30 +00:00
Fred Drake
3332778f35
Corrected a section reference (title was wrong).
...
Added information on the return values of PyArg_ParseTuple() and
PyArg_ParseTupleAndKeywords().
2001-07-20 20:59:49 +00:00
Fred Drake
88fdaa7c9e
Typo: PyArgs_ParseTuple --> PyArg_ParseTuple
...
Moved the PyArg_Parse*(), Py_BuildValue() functions to the Utilities
chapter, added a minimal description and reference to the Extending
manual for Py_BuildValue().
2001-07-20 20:56:11 +00:00
Fred Drake
6d988559a3
Added information on Py_BuildValue().
2001-07-20 20:55:31 +00:00
Fred Drake
7f5296e7c0
Make the add*() helper functions more robust for use after intialization
...
is complete: recompute _dirs_in_sys_path each time these functions are
entered after module initialization is complete, and reset before
returning to user code.
This closes SF patch #442983 .
2001-07-20 20:06:17 +00:00
Andrew M. Kuchling
5a3e4cb0a2
Patch #429442 from Jason Tishler: Corrects sys.platform and
...
distutils.util.get_platform() problems caused by the cruft contained
in Cygwin's uname -s.
2001-07-20 19:29:04 +00:00
Fred Drake
79e75e1916
Use string.ascii_letters instead of string.letters (SF bug #226706 ).
2001-07-20 19:05:50 +00:00