Neil Schemenauer
dcc819a5c9
Use pymalloc if it's enabled.
2002-03-22 15:33:15 +00:00
Neil Schemenauer
a1a9c51a3e
Add pymalloc object memory management functions. These must be
...
available even if pymalloc is disabled since extension modules might use
them.
2002-03-22 15:28:30 +00:00
Neil Schemenauer
ffd5399728
Make PyObject_{NEW,New,Del,DEL} always use the standard malloc (PyMem_*)
...
and not pymalloc. Add the functions PyMalloc_New, PyMalloc_NewVar, and
PyMalloc_Del that will use pymalloc if it's enabled. If pymalloc is
not enabled then they use the standard malloc (PyMem_*).
2002-03-22 15:25:18 +00:00
Jack Jansen
150ed6113c
Generate with weaklink stubs, so missing routines (on MacOS 8.6 and earlier)
...
don't cause import failure.
Fixes 531398, 2.2.1 candidate.
2002-03-22 14:16:39 +00:00
Jack Jansen
9051e0e577
- Weaklink InterfaceLib in _Res module
...
- forgot to pass libraryflags and stdlibraryflags on to ppc/carbon
project generation.
First half of fix to 531398.
2002-03-22 14:15:07 +00:00
Tim Peters
b26f3639ed
Enable pymalloc by default in the Windows build.
2002-03-22 06:32:32 +00:00
Andrew M. Kuchling
76fffd81e9
Add a simple test suite for netrc.py, and remove it from test_sundry
2002-03-22 02:48:57 +00:00
Tim Peters
bab22beda8
SF bug 533198: Complex power underflow raises exception.
...
Konrad was too kind. Not only did it raise an exception, the specific
exception it raised made no sense. These are old bugs in complex_pow()
and friends:
1. Raising 0 to a negative power isn't a range error, it's a domain
error, so changed c_pow() to set errno to EDOM in that case instead
of ERANGE.
2. Changed complex_pow() to:
A. Used the Py_ADJUST_ERANGE2 macro to try to clear errno of a spurious
ERANGE error due to underflow in the libm pow() called by c_pow().
B. Produced different exceptions depending on the errno value:
i) For errno==EDOM, raise ZeroDivisionError instead of ValueError.
This is for consistency with the non-complex cases 0.0**-2 and
0**-2 and 0L**-2.
ii) For errno==ERANGE, raise OverflowError.
Bugfix candidate.
2002-03-22 02:48:46 +00:00
Andrew M. Kuchling
366a1df7f1
[Bug #532115 ] netrc module was broken
...
* 'macdef' (macro definition) wasn't parsed correctly
* account value not reset for a subsequent 'default' line
* typo: 'whitepace' -> 'whitespace'
Bugfix candidate.
2002-03-22 02:46:41 +00:00
Andrew M. Kuchling
83d042d3a7
[Bug #532136 ] Change path in README, as suggested by Ralph Corderoy
...
Bugfix candidate.
2002-03-21 23:52:20 +00:00
Andrew M. Kuchling
3f1822b468
Add missing Boolean options
...
Remove unused no_compile flag
Initialize the Boolean attribute .compile to 0 instead of None
Bugfix candidate.
2002-03-21 23:46:54 +00:00
Andrew M. Kuchling
da9f0bf4dd
Add unlisted Boolean options. Thomas H., can you please check that I
...
got this right?
Bugfix candidate, unless Thomas notes a problem.
2002-03-21 23:44:01 +00:00
Andrew M. Kuchling
5de82a855e
[Bug #517451 ] bdist_rpm didn't list all of its Boolean options.
...
(Someone should check the other commands for this same error.)
Bugfix candidate.
2002-03-21 23:27:54 +00:00
Jack Jansen
562baabb61
Added an open_pathname() method which opens a resource file by pathname,
...
possibly converting from AppleSingle.
2002-03-21 22:38:32 +00:00
Jack Jansen
b9e6661206
For reasons I don't fully understand we sometimes get unexpected events
...
in MachoPython. As we don't have MacOS.HandleEvent() we drop these on
the floor (with a print).
2002-03-21 22:36:57 +00:00
Jack Jansen
0e5a733887
Solve sync() signature conflict differently: manually return 0 if
...
we have GUSI's void sync().
2002-03-21 21:09:36 +00:00
Jack Jansen
99286f96ac
New checkin to convert from BinHex to AppleSingle encoding.
2002-03-21 20:18:32 +00:00
Martin v. Löwis
41933dd1b7
Patch #532729 : check for sem_init in -lrt.
2002-03-21 15:10:58 +00:00
Neal Norwitz
e22d3dfcc1
Fix grammar
2002-03-21 12:58:54 +00:00
Walter Dörwald
b25c2b0a4a
[Apply SF patch #504943 ]
...
This patch makes it possible to pass Warning instances as the first
argument to warnings.warn. In this case the category argument
will be ignored. The message text used will be str(warninginstance).
2002-03-21 10:38:40 +00:00
Martin v. Löwis
047c05ebc4
Do not insert characters for unicode-escape decoders if the error mode
...
is "ignore". Fixes #529104 .
2002-03-21 08:55:28 +00:00
Andrew M. Kuchling
bdf1f19fee
[Apply patch #500457 from the PyXML tracker]
...
Add iterator support to pulldom.DOMEventStream
New feature, so not a bugfix candidate (though it should be safe for inclusion)
2002-03-20 23:56:34 +00:00
Neal Norwitz
3afb2d2bba
Remove compiler warnings on Solaris 8.
...
Can go into 2.2.x, but not necessary.
2002-03-20 21:32:07 +00:00
Tim Peters
bcc2c125f8
Change raw "except:" constructs to pass on KeyboardInterrupt.
...
Bugfix candidate? Don't know -- never bothered me, but it's minor
either way.
2002-03-20 19:32:03 +00:00
Neal Norwitz
1abca4a515
SF# 522426, add doc for common parameter for filecmp.cmpfiles()
2002-03-20 18:55:09 +00:00
Neil Schemenauer
cacbdf6229
Make GzipFile an iterator. Closes bug #532621 .
2002-03-20 18:36:00 +00:00
Tim Peters
fbb556df15
Arrange to export the _PyMalloc_{Malloc, Realloc, Free} entry points. On
...
Windows some modules are considered (by me, and I don't care what anyone
else thinks about this <wink>) to be part of "the core" despite that they
happen to be compiled into separate DLLs (the "to DLL or not to DLL?"
question on Windows is nearly arbitrary). Making the pymalloc entry
points available to them allows the Windows build to complete without
incident when WITH_PYMALLOC is #define'd.
Note that this isn't unprecedented. Other "private API" functions we
export include _PySequence_IterSearch, _PyEval_SliceIndex, _PyCodec_Lookup,
_Py_ZeroStruct, _Py_TrueStruct, _PyLong_New and _PyModule_Clear.
2002-03-20 04:02:31 +00:00
Andrew M. Kuchling
c63a396c5f
A faster version of the find_prefix_at_end() function (that I found in the
...
last Medusa release)
Should be safe as a bugfix candidate, though it's not fixing a bug.
2002-03-20 02:22:58 +00:00
Andrew M. Kuchling
913b9078cf
[Bug #528914 ] PyTraceBack_Store/Fetch were deleted in 1997, but their
...
prototypes remain. Noted by Yakov Markovitch.
Bugfix candidate.
2002-03-19 16:02:35 +00:00
Martin v. Löwis
4e732dc66a
Expand LINKCC in configure.in. Suggested in bug report #529713 .
2002-03-19 15:15:32 +00:00
Fred Drake
1268678395
Adjust some poor wording in the text that explains what events are used
...
for (reported by Keith Briggs).
Wrap some very long lines.
2002-03-19 14:37:44 +00:00
Fred Drake
2f31d561d5
Clarify that copy_reg.pickle() is not intended for use with "classic" classes.
...
This was stated before, but a minor grammatical error made it difficult to be
sure of the meaning.
This closes SF bug #530143 .
2002-03-19 03:33:33 +00:00
Tim Peters
517a721b7f
Record 2.2.1c1 release date.
2002-03-19 02:12:10 +00:00
Andrew M. Kuchling
a3c0b9334e
[Bug #531616 ] Make HTTPS work again by adding a sendall method to the
...
FakeSocket class. Without it, the sendall() call got the method on
the underlying socket object, and that messed up SSL.
Does httplib use other methods of sockets that FakeSocket doesn't support?
Someone should take a look... (I'll try to give it a once-over.)
2.2.1 bugfix candidate.
2002-03-18 22:51:48 +00:00
Andrew M. Kuchling
56a42356b7
To make 'urllib.py -t' run again, change FTP URL to a file that actually
...
exists.
2002-03-18 22:18:46 +00:00
Fredrik Lundh
b622a81e56
use -kb on idle/Icons/minusnode.gif ("cvs up" kept checking it out all
...
the time...)
2002-03-18 21:43:04 +00:00
Neil Schemenauer
25f3dc21b5
Drop the PyCore_* memory API.
2002-03-18 21:06:21 +00:00
Neil Schemenauer
08de92a267
Re-enable GC of generator objects.
2002-03-18 20:45:09 +00:00
Neil Schemenauer
d91eec9df3
Re-enable GC of method objects.
2002-03-18 20:44:53 +00:00
Neil Schemenauer
dbf409fbfc
Re-enable GC of iter objects.
2002-03-18 20:43:51 +00:00
Barry Warsaw
d164837856
(py-temp-directory): Add /var/tmp to the list of directories this
...
searches. This is added after /tmp. Closes SF bug #505488 , except
that /var/tmp comes after /tmp instead of the patch's suggestion of
putting it before /usr/tmp.
2002-03-18 18:53:56 +00:00
Neal Norwitz
5909402cde
Remove extraneous #define as per effbot's instructions in:
...
[ 530285 ] redefining SRE_CODE in Modules/sre.h
2002-03-18 18:46:14 +00:00
Neil Schemenauer
11f5be8d88
Simpilify PyCore_* macros by assuming the function prototypes for
...
malloc() and free() don't change.
2002-03-18 18:13:41 +00:00
Fred Drake
f6eafc3fe1
Fix up unescaped tilde; reported by several people.
2002-03-18 16:47:14 +00:00
Fred Drake
a8b663806b
Remove extra verb; reported by Detlef Lannert.
2002-03-18 16:45:01 +00:00
Jack Jansen
ca9a4a6e17
Lurking bug found by patch for 531291: FSSpecs should be passed to
...
Py_BuildValue by address, not by value.
2.2.1 candidate.
2002-03-18 15:41:32 +00:00
Jack Jansen
cb6cf13261
Some of the newer routines return an OSErr, like most toolbox calls, in stead of depending on ResError(). Second half of fix for #531291 .
...
2.2.1 candidate.
2002-03-18 15:31:08 +00:00
Jack Jansen
89dbd97279
Some structures should be passed to Py_BuildValue by reference, not by value,
...
notably FSSpec and FSRef objects. First half of fix for #531291 .
2.2.1 candidate.
2002-03-18 15:24:22 +00:00
Michael W. Hudson
bd3e771a97
amk's fix attached to
...
[ 516299 ] urlparse can get fragments wrong
2002-03-18 13:06:00 +00:00
Martin v. Löwis
5c137c2251
Patch #495598 : add an -q (quiet) option to pycompile.
2002-03-18 12:44:08 +00:00