Martin v. Löwis
114619e1ed
Apply file system default encoding to exec and spawn path and arguments.
2002-10-07 06:44:21 +00:00
Tim Peters
92e4dd8657
s/_alloca/alloca/g; Windows doesn't need the former, at least not unless
...
__STDC__ is defined (or something like that ...).
2002-10-05 01:47:34 +00:00
Mark Hammond
d389036069
Trivial fix to the pep277 checkin: ensure that exceptions always have a filename attribute (previously did only when string filenames were passed, but not when unicode)
2002-10-03 07:24:48 +00:00
Mark Hammond
c2e85bd4e2
Patch 594001: PEP 277 - Unicode file name support for Windows NT.
2002-10-03 05:10:39 +00:00
Martin v. Löwis
3c6d6f2ff7
Support UCS-4 builds.
2002-10-01 18:50:56 +00:00
Martin v. Löwis
71e25a0e06
Eliminate constness warnings with Tcl 8.4.
2002-10-01 18:08:06 +00:00
Martin v. Löwis
6bfa2e6892
Drop support for Tk 8.0 and 8.1.
2002-10-01 17:48:31 +00:00
Martin v. Löwis
21ee4091e1
Patch #615069 : Fix build problems on SCO Open Server 5. Backported to 2.2.
2002-09-30 16:19:48 +00:00
Guido van Rossum
9b1a80baf4
Patch for the DEC Alpha under Linux, by Lee Busby.
2002-09-26 16:52:02 +00:00
Thomas Heller
7bdabe67a3
I did fix too much - including winsock.h is sufficient.
2002-09-24 17:03:26 +00:00
Thomas Heller
106f4c7ba7
On Windows, call WSAGetLastError() to retrieve the error number.
...
Bugfix candidate, will backport to release22-maint myself.
2002-09-24 16:51:00 +00:00
Fred Drake
117ac85c4e
Be more careful with the type of the xmlhandlersetter; it takes an
...
XML_Parser, which happens to be a pointer type, not an XML_Parser*.
This generated warnings when compiled with Expat 1.95.5, which no
longer defines XML_Parser to be void*.
2002-09-24 16:24:54 +00:00
Martin v. Löwis
8eb92a014b
Patch #608999 : Fix portability problems with MIPSPro 7.x
2002-09-19 08:03:21 +00:00
Martin v. Löwis
29275c9331
Deal with NULL fields in mkpwent.
2002-09-17 09:34:06 +00:00
Martin v. Löwis
ceb7c18c10
Deal with a NULL gr_passwd. Reported by Anders Qvist.
2002-09-17 07:05:25 +00:00
Martin v. Löwis
658009afdb
Make BadPickleGet a class. Fixes #609164 .
2002-09-16 17:26:24 +00:00
Guido van Rossum
bd6be7aba5
I think it makes more sense that the pseudo filename used by fdopen()
...
be "<fdopen>" rather than "(fdopen)".
2002-09-15 18:45:46 +00:00
Neal Norwitz
bcf9f9eb3b
SF # 602108 ensure string is null terminated after strncpy
2002-09-13 14:35:56 +00:00
Michael W. Hudson
806d1c817a
Fix *really* embarrassing typo reported by Raymond Hettinger.
2002-09-11 17:09:45 +00:00
Michael W. Hudson
02ff6a9952
A slight change to SET_LINENO-less tracing.
...
This makes things a touch more like 2.2. Read the comments in
Python/ceval.c for more details.
2002-09-11 15:36:32 +00:00
Tim Peters
96940cf30d
extract_time(): Squash compiler warning about possibly information-
...
losing implicit double->long cast.
2002-09-10 15:37:28 +00:00
Martin v. Löwis
076b209ca4
Add missing return statement.
2002-09-10 15:04:41 +00:00
Martin v. Löwis
6aa9fdb86a
Use utimes(2) where available to support microsecond timestamps.
2002-09-10 09:16:13 +00:00
Martin v. Löwis
a32c994129
Always generate floats for stat_result; fix configure test.
2002-09-09 16:17:47 +00:00
Martin v. Löwis
94717ed1d4
Patch #606592 : Subsecond timestamps in stat_result.
2002-09-09 14:24:16 +00:00
Neal Norwitz
b567392bbf
SF bug # 585792, Invalid mmap crashes Python interpreter
...
Raise ValueError if user passes a size to mmap which is larger
than the file.
2002-09-05 21:48:07 +00:00
Neal Norwitz
884baa1e6b
--with(out)-thread is deprecated according to configure --help
2002-09-05 21:31:04 +00:00
Guido van Rossum
83a072d953
Update the module doc comment.
2002-09-03 19:10:18 +00:00
Guido van Rossum
960bc5490b
(Most of) SF patch 601369 (Christos Georgiou): obmalloc,structmodule:
...
64bit, big endian (issue 2 only).
This adds a bunch of memcpy calls via a temporary variable to avoid
alignment errors. That's needed for some platforms.
2002-09-03 18:42:21 +00:00
Fred Drake
f57b22a716
Minor change for symmetry with PyXML: PyDoc_STR should not include
...
the "safety" parentheses since some older compilers refuse to compile
the module then, claiming that static initializers are non-constant.
This doesn't actually make any difference for Python, since these
definitions are not used when compiling with a version of Python that
already defines the PyDoc_* macros.
2002-09-02 15:54:06 +00:00
Walter Dörwald
3aeb632c31
PEP 293 implemention (from SF patch http://www.python.org/sf/432401 )
2002-09-02 13:14:32 +00:00
Guido van Rossum
674deb2eea
SF bug 601775 - some int results that should be bool.
2002-09-01 15:06:28 +00:00
Raymond Hettinger
5959c559df
Added __pow__(a,b) to the operator module. Completes the pattern of
...
all operators having a counterpart in the operator module.
Closes SF bug #577513 .
2002-08-19 03:19:09 +00:00
Tim Peters
7dca21e59f
SF bug 595919: popenN return only text mode pipes
...
popen2() and popen3() created text-mode pipes even when binary mode
was asked for. This was specific to Windows.
2002-08-19 00:42:29 +00:00
Guido van Rossum
84b2bed435
Squash a few calls to the hideously expensive PyObject_CallObject(o,a)
...
-- replace then with slightly faster PyObject_Call(o,a,NULL). (The
difference is that the latter requires a to be a tuple; the former
allows other values and wraps them in a tuple if necessary; it
involves two more levels of C function calls to accomplish all that.)
2002-08-16 17:01:09 +00:00
Barry Warsaw
0a51b58e6b
base64.decodestring('') should return '' instead of raising an
...
exception. The bug fix for SF #430849 wasn't quite right. This
closes SF bug #595671 . I'll backport this to Python 2.2.
2002-08-15 22:14:24 +00:00
Michael W. Hudson
dd32a91cc0
This is my patch
...
[ 587993 ] SET_LINENO killer
Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab.
Many sundry changes to document and adapt to this change.
2002-08-15 14:59:02 +00:00
Martin v. Löwis
8a8da798a5
Patch #505705 : Remove eval in pickle and cPickle.
2002-08-14 07:46:28 +00:00
Neal Norwitz
72cf6a8c07
Fix memory leaks reported by valgrind
2002-08-14 02:03:50 +00:00
Skip Montanaro
23b5918f68
add some example docstrings using PyDoc_STR
2002-08-14 01:45:37 +00:00
Skip Montanaro
d9e7d24557
add PyDoc_STR and PyDoc_STRVAR calls as examples for module authors
2002-08-14 01:44:33 +00:00
Neal Norwitz
200788ce45
Allow more docstrings to be removed during compilation in some modules
2002-08-13 22:20:41 +00:00
Guido van Rossum
4030714a93
For new-style classes, we can now test for tp_del instead of asking
...
for a __del__ attribute, to see if there's a finalizer.
2002-08-09 17:39:14 +00:00
Sjoerd Mullender
9cf424b04b
On Cygwin, put stdin, stderr, and stdout in binary mode when the -u
...
flag is given (to mimic native Windows).
2002-08-09 13:35:18 +00:00
Neal Norwitz
90128ba22c
SF bug #592645 fix memory leak in socket.getaddrinfo
2002-08-09 03:37:42 +00:00
Fred Drake
9d416a7c10
Update the text on the Expat module and library.
2002-08-09 02:39:13 +00:00
Guido van Rossum
12e3c710db
The other half of the patches added to SF patch 555085 by A I
...
MacIntyre. At least on OS/2, a subsequent connect() on a nonblocking
socket returns errno==EISCONN to indicate success. This seems
harmless on Unix.
2002-08-08 20:39:30 +00:00
Guido van Rossum
22a97159cd
Clean up some docstrings. Some docstrings didn't show their return
...
value; others were inconsistent in what to name the argument or return
value; a few module-global functions had "socket." in front of their
name, against convention.
2002-08-08 20:37:08 +00:00
Jason Tishler
4df78cddaa
Patch #588561 : Cygwin _hotshot patch
...
YA Cygwin module patch very similar to other patches
that I have submitted. I tested under Cygwin and Red
Hat Linux 7.1.
2002-08-08 19:46:15 +00:00
Martin v. Löwis
3f19b10ca5
Replace abort with Py_FatalError.
2002-08-07 16:21:51 +00:00