Mark Hammond
a43fd0c899
Fix bug 683658 - PyErr_Warn may cause import deadlock.
2003-02-19 00:33:33 +00:00
Jack Jansen
4ccf3e14f0
Undid half of the previous checkin: continue using BuildApplet for most
...
applets. PackageManager is still built with bundlebuilder itself.
2003-02-18 23:33:39 +00:00
Jack Jansen
5d44b347c9
Added a note that MacOSX applets can no longer be run from a terminal window.
2003-02-18 23:32:47 +00:00
Jack Jansen
9f59d528c5
Enable argv emulation if required.
...
Fixed a bug for applets with their own plist files.
2003-02-18 23:30:27 +00:00
Jack Jansen
a03adde31b
Added an argv_emulation option (command line option: --argv or -a) which
...
creates the sys.argv emulation wrapper for droplets. Also updates
the plist, if needed, and the includedModules (but this last is untested).
2003-02-18 23:29:46 +00:00
Jack Jansen
b135548d0d
Argvemulator still used the old Alias API. Fixed.
2003-02-18 23:28:05 +00:00
Guido van Rossum
443ada47c3
Remove unused _better_reduce (which will disappear soon) and
...
_reconstructor (whose import here is a mystery to me).
2003-02-18 22:49:10 +00:00
Guido van Rossum
2a30b21f64
Three test cases for __reduce_ex__. This fails for cPickle, until Tim
...
checks in his changes to support this in cPickle.c.
2003-02-18 22:41:24 +00:00
Tim Peters
d6cfccf4cf
I entered the wrong year for 2.3a2.
2003-02-18 22:17:40 +00:00
Fred Drake
7f90c7fcb3
Bump version number.
2003-02-18 22:11:58 +00:00
Guido van Rossum
c53f009f94
Introducing __reduce_ex__, which is called with a protocol number argument
...
if it exists in preference over __reduce__. Now Tim can go implement this
in cPickle.c.
2003-02-18 22:05:12 +00:00
Tim Peters
2b0643a95d
Bump Windows build number for 2.3a2.
2003-02-18 22:00:05 +00:00
Tim Peters
1441cf9dfc
Bump version # to 2.3a2.
2003-02-18 21:58:53 +00:00
Andrew M. Kuchling
e12dcd7ff4
Use python.org as the repository
2003-02-18 21:28:20 +00:00
Tim Peters
b9ce7cd8b8
save_global(): Trying to resolve module.name can fail for two
...
reasons: importing module can fail, or the attribute lookup
module.name can fail. We were giving the same error msg for
both cases, making it needlessly hard to guess what went wrong.
These cases give different error msgs now.
2003-02-18 20:50:45 +00:00
Tim Peters
97e5ff555e
Removed unreferenced label.
2003-02-18 19:32:50 +00:00
Guido van Rossum
8e80a72be4
The recent changes to super(), in particular supercheck(), broke when
...
using super() for an instance in a metaclass situation. Because the
class was a metaclass, the instance was a class, and hence the
PyType_Check() branch was taken. But this branch didn't apply. Make
it so that if this branch doesn't apply, the other branch is still
tried. All tests pass.
2003-02-18 19:22:22 +00:00
Guido van Rossum
6b29c0147b
Make __module__ writable except in restricted mode (like for classic classes).
2003-02-18 17:18:35 +00:00
Jeremy Hylton
ff71c98449
Make __module__ settable on functions and methods.
2003-02-18 17:02:15 +00:00
Tim Peters
e2052ab82a
One doctest displaying a dict didn't sort it first. *Maybe* this fixes
...
the AIX problem with this test.
2003-02-18 16:54:41 +00:00
Guido van Rossum
fb50d3ffa1
default_3way_compare(): use PyNumber_Check(), rather than testing for
...
tp_as_number directly.
2003-02-18 16:40:09 +00:00
Guido van Rossum
6921eca227
Make PyNumber_Check() a bit more careful, since all sorts of things
...
now have tp_as_number. Check for nb_int or nb_float.
2003-02-18 16:36:28 +00:00
Guido van Rossum
55dc26cbc7
Fold some long lines.
...
Change fatal errors during module initialization into RuntimeErrors.
2003-02-18 16:11:11 +00:00
Neal Norwitz
dcfdceb9a2
Fix SF bug #688424 , 64-bit test problems
2003-02-18 15:45:44 +00:00
Neal Norwitz
eb2a5ef36a
Fix SF bug #688424 , 64-bit test problems
2003-02-18 15:22:10 +00:00
Jeremy Hylton
4edaa0d516
Copy the trace module here from Tools/scripts.
...
There are some problems with this module, but the tool works for
simple tasks and no one else has volunteered a better code coverage
tool. Should cleanup and document before the beta release.
2003-02-18 15:06:17 +00:00
Neal Norwitz
6fa635df7a
SF patch #687683 , Patches to logging (updates from Vinay)
...
Mostly rename WARN -> WARNING
Other misc tweaks
Update tests (not in original patch)
2003-02-18 14:20:07 +00:00
Jack Jansen
d6a3f93070
Use "$@" to pass arguments to Python in stead of "${1}". This passes all
...
arguments, and also does the right thing for the no argument case.
2003-02-18 11:24:31 +00:00
Jack Jansen
0feb8c347e
Don't try to build dl on darwin. It doesn't build out of the box, and it
...
wouldn't serve a useful purpose anyway.
2003-02-18 10:24:34 +00:00
Neal Norwitz
0c0aad948a
Fix 64-bit problem, ParseTuple("i") needs C ints; ("l") needs C longs.
...
Use "l" as that *probably* makes more sense (at least to me it does :-)
And the test passes on the alpha.
2003-02-18 03:37:49 +00:00
Andrew M. Kuchling
679bc9fce5
[Patch #681504 ] Call customize_compiler in config command
2003-02-18 01:28:51 +00:00
Andrew M. Kuchling
d87eeb9477
Add two acks; bump version number
2003-02-18 00:56:56 +00:00
Andrew M. Kuchling
7ee9b51ba5
[Bug #688261 ] Fix optparse example and output
2003-02-18 00:48:23 +00:00
Andrew M. Kuchling
acddabc6ec
[Bug #683416 ] Make PEP263 coverage a bit more explicit, and add it to the
...
porting section
2003-02-18 00:43:24 +00:00
Neal Norwitz
2ff51a87b3
Make changes suggested by Walter to use self.assert*() methods.
2003-02-17 22:40:31 +00:00
Neal Norwitz
3b8fb47fb0
Import test_support properly
2003-02-17 22:38:56 +00:00
Tim Peters
003eb30882
test_posix is an expected skip on Win32. Also fixed test_posix to
...
import from test.test_support instead of directly from test_support.
2003-02-17 21:48:48 +00:00
Kurt B. Kaiser
003091cd51
M NEWS.txt
...
M PyShell.py
M ScriptBinding.py
M rpc.py
M run.py
Clean up the way IDLEfork handles termination of the subprocess, restore
ability to interrupt user code in Windows (so long as it's doing terminal
I/O).
1. Handle subprocess interrupts in Windows with an RPC message.
2. Run/F5 will restart the subprocess even if user code is running.
3. Restart the subprocess if the link is dropped.
4. Exit IDLE cleanly even during I/O.
4. In rpc.py, remove explicit calls to statelock, let the condition
variable handle acquire() and release().
2003-02-17 18:57:16 +00:00
Neal Norwitz
f927f14eda
Fix SF bug #687655 , String formatting conversions misleading
2003-02-17 18:57:06 +00:00
Marc-André Lemburg
1fb1400d08
Add URL for PEP to the source code encoding warning.
...
Remove the usage of PyErr_WarnExplicit() since this could cause
sensitive information from the source files to appear in e.g.
log files.
2003-02-17 18:31:57 +00:00
Neal Norwitz
08ea61ad45
Remove PyArg_ParseTuple() for methods which take no args,
...
use METH_NOARGS instead
2003-02-17 18:18:00 +00:00
Neal Norwitz
e241ce830a
Added test_posix (hopefully it works on Windows).
...
Remove PyArg_ParseTuple() for methods which take no args,
use METH_NOARGS instead
2003-02-17 18:17:05 +00:00
Neal Norwitz
5c1ba53f8c
Use correct function name to PyArg_ParseTuple("is_package").
...
Fix off-by-1 error in normalize_line_endings():
when *p == '\0' the NUL was copied into q and q was auto-incremented,
the loop was broken out of,
then a newline was appended followed by a NUL.
So the function, in effect, was strcpy() but added two extra chars
which was caught by obmalloc in debug mode, since there was only
room for 1 additional newline.
Get test working under regrtest (added test_main).
2003-02-17 18:05:20 +00:00
Jack Jansen
946c19445c
When installing resource files whose name ends in .rsrc use the
...
"copy anything to a data fork based resource file" trick of macresource.
Fixes #688007 .
2003-02-17 16:47:12 +00:00
Jack Jansen
3d3b74677a
Optionally honour #! paths in scripts. Fixes #676358 .
2003-02-17 15:40:00 +00:00
Neal Norwitz
996acf122d
Actually run these tests from regrtest.py.
...
There was no test_main() and the main body was protected
by if __name__ == '__main__' so the test didn't happen
on import either.
2003-02-17 14:51:41 +00:00
Michael W. Hudson
9e5d87fa20
Reword section about moving variables to os.path to match intent (or
...
at least, what I thought the intent was).
2003-02-17 12:26:23 +00:00
Jack Jansen
a460f446e9
- Added support for zip archives
...
- Better messages in case of a crash of the install-test script
2003-02-17 12:21:05 +00:00
Andrew MacIntyre
251b816297
Patch 686397:
...
move definition of platform dependent path related variables from os.py
to platform dependent path modules (ntpath, etc).
2003-02-17 09:20:23 +00:00
Andrew MacIntyre
437966c2cc
Tweak to Skip's checkin of patch 686397:
...
- 'os2' references in ntpath.py relate to the VACPP port, not the EMX port;
- the VACPP port uses the same defpath as all other ntpath.py supported
platforms except 'ce'.
2003-02-17 09:17:50 +00:00