]> granicus.if.org Git - python/log
python
21 years agoDeleting the 2.2 spec.
Guido van Rossum [Mon, 24 Feb 2003 01:12:54 +0000 (01:12 +0000)]
Deleting the 2.2 spec.

21 years agoRPM spec file for 2.3a2, contributed by Sean Reifschneider.
Guido van Rossum [Mon, 24 Feb 2003 01:09:53 +0000 (01:09 +0000)]
RPM spec file for 2.3a2, contributed by Sean Reifschneider.

21 years agoFix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz [Sun, 23 Feb 2003 23:45:35 +0000 (23:45 +0000)]
Fix SF bug #691793, Python 2.3a2 build fails on Tru64

21 years agoFix SF bug #691793, Python 2.3a2 build fails on Tru64
Neal Norwitz [Sun, 23 Feb 2003 23:28:15 +0000 (23:28 +0000)]
Fix SF bug #691793, Python 2.3a2 build fails on Tru64

Need to make sure that preprocessor directives start in first column.
This means we can't indent code which has preprocessor directives,
nor have a space between [ #include for example.

21 years agoAdded a linkmodel attribute, showing how Python was built. This is so
Jack Jansen [Sun, 23 Feb 2003 23:23:47 +0000 (23:23 +0000)]
Added a linkmodel attribute, showing how Python was built. This is so
packages can check that extension modules are built for the right type
of python. Current values can be static, framework, shared and cfm (for
completeness, for MacPyton-OS9).

Closes bug #691889. The reporter suggests backporting this to 2.2.3
and I think I agree.

21 years agoGet test to work on alpha
Neal Norwitz [Sun, 23 Feb 2003 23:15:26 +0000 (23:15 +0000)]
Get test to work on alpha

21 years agoFix SF bug #689659, 64-bit int and long hash keys incompatible
Neal Norwitz [Sun, 23 Feb 2003 23:11:41 +0000 (23:11 +0000)]
Fix SF bug #689659, 64-bit int and long hash keys incompatible

On a 64-bit machine, a dictionary could contain duplicate int/long keys
if the value was > 2**32.

21 years agoDisabled -prebind again when linking the interpreter on MacOSX. It caused
Jack Jansen [Sun, 23 Feb 2003 22:59:01 +0000 (22:59 +0000)]
Disabled -prebind again when linking the interpreter on MacOSX. It caused
a serious slowdown when loading dynamic modules that depend on large shared
libraries or frameworks.

21 years agoExpect to skip test_iconv_codecs on MacOSX.
Jack Jansen [Sun, 23 Feb 2003 22:56:58 +0000 (22:56 +0000)]
Expect to skip test_iconv_codecs on MacOSX.

21 years agoFix SF bug #690081, test_posix fails when run in non-interactive mode
Neal Norwitz [Sun, 23 Feb 2003 22:12:24 +0000 (22:12 +0000)]
Fix SF bug #690081, test_posix fails when run in non-interactive mode

Don't bother testing os.getlogin() if we aren't running from a tty (terminal)
It fails when run without a tty (e.g., when run from cron).

21 years agoossaudiodev has been building, so remove unnecessary pass and invalid comment
Neal Norwitz [Sun, 23 Feb 2003 21:47:05 +0000 (21:47 +0000)]
ossaudiodev has been building, so remove unnecessary pass and invalid comment

21 years agoFix SF bug #690435, apply fails to check if warning raises exception
Neal Norwitz [Sun, 23 Feb 2003 21:45:43 +0000 (21:45 +0000)]
Fix SF bug #690435, apply fails to check if warning raises exception
(patch provided by Greg Chapman)

21 years agoFix SF bug #691276, shutil.copytree documentation bug
Neal Norwitz [Sun, 23 Feb 2003 21:36:47 +0000 (21:36 +0000)]
Fix SF bug #691276, shutil.copytree documentation bug

21 years agoFix SF bug #691276, shutil.copytree documentation bug
Neal Norwitz [Sun, 23 Feb 2003 21:36:32 +0000 (21:36 +0000)]
Fix SF bug #691276, shutil.copytree documentation bug
Also use True/False instead of 1/0 for symlink flag.

21 years agoUser requested changes to the itertools module.
Raymond Hettinger [Sun, 23 Feb 2003 04:40:07 +0000 (04:40 +0000)]
User requested changes to the itertools module.
Subsumed times() into repeat().
Added cycle() and chain().

21 years agoAfter the removal of SET_LINENO, PyCode_Addr2Line has always been
Michael W. Hudson [Sat, 22 Feb 2003 13:07:53 +0000 (13:07 +0000)]
After the removal of SET_LINENO, PyCode_Addr2Line has always been
called to find tb_lineno -- even if Py_OptimizeFlag is true.

So don't call it again when printing the traceback.

21 years agoGetting rid of macfs.
Jack Jansen [Fri, 21 Feb 2003 23:18:48 +0000 (23:18 +0000)]
Getting rid of macfs.

21 years agoGet rid of macfs.
Jack Jansen [Fri, 21 Feb 2003 23:14:30 +0000 (23:14 +0000)]
Get rid of macfs.

21 years agoChecking mac-specific stuff from the 2.3a2 branch in on the trunk.
Jack Jansen [Fri, 21 Feb 2003 22:33:55 +0000 (22:33 +0000)]
Checking mac-specific stuff from the 2.3a2 branch in on the trunk.

21 years agogetpid doesn't exist on MacOS9.
Jack Jansen [Fri, 21 Feb 2003 22:29:45 +0000 (22:29 +0000)]
getpid doesn't exist on MacOS9.

21 years agoRemove _reduce_2, it's now implemented in C.
Guido van Rossum [Fri, 21 Feb 2003 22:20:31 +0000 (22:20 +0000)]
Remove _reduce_2, it's now implemented in C.

21 years agoWASTEconst.py goes one level above the toolbox directory.
Jack Jansen [Fri, 21 Feb 2003 22:11:45 +0000 (22:11 +0000)]
WASTEconst.py goes one level above the toolbox directory.

21 years agoImplementing the salient parts of __reduce_ex__ in C.
Guido van Rossum [Fri, 21 Feb 2003 22:02:54 +0000 (22:02 +0000)]
Implementing the salient parts of __reduce_ex__ in C.
This still falls back to helpers in copy_reg for:
   - pickle protocols < 2
   - calculating the list of slot names (done only once per class)
   - the __newobj__ function (which is used as a token but never called)

21 years agoSF bug 690622: test_cpickle overflows stack on MacOS9.
Tim Peters [Fri, 21 Feb 2003 20:14:35 +0000 (20:14 +0000)]
SF bug 690622: test_cpickle overflows stack on MacOS9.
test_nonrecursive_deep():  Reduced nesting depth to 60.

Not a bugfix candidate.  2.3 increased the number of stack frames
needed to pickle a list (in order to get implement the "list
batching" unpickling memory optimization new in 2.3).

21 years agoI'm am the PyPy sprint waiting for a Grand Renaming so I killed a few
Michael W. Hudson [Fri, 21 Feb 2003 20:11:09 +0000 (20:11 +0000)]
I'm am the PyPy sprint waiting for a Grand Renaming so I killed a few
seconds making the doc for get_completer marginally less minimal :)

21 years agoAdd some minimal doc for get_completer added for patch 676342
Neal Norwitz [Fri, 21 Feb 2003 18:57:05 +0000 (18:57 +0000)]
Add some minimal doc for get_completer added for patch 676342

21 years agoUse 'ISO8859-1' instead of 'ASCII' when testing whether byteswapping
Walter Dörwald [Fri, 21 Feb 2003 18:18:49 +0000 (18:18 +0000)]
Use 'ISO8859-1' instead of 'ASCII' when testing whether byteswapping
is required for the chosen internal encoding in the init function,
as this seems to have a better chance of working under Irix and
Solaris.

Also change the test character from '\x01' to '0'.

This might fix SF bug #690309.

21 years agoDoubled TimeoutTestCase.fuzz, to slash the frequency of bogus failures
Tim Peters [Fri, 21 Feb 2003 16:45:41 +0000 (16:45 +0000)]
Doubled TimeoutTestCase.fuzz, to slash the frequency of bogus failures
on the boxes I use.

21 years agoAdded a method WMAvailable(). This will return True if and only if there
Jack Jansen [Fri, 21 Feb 2003 16:31:11 +0000 (16:31 +0000)]
Added a method WMAvailable(). This will return True if and only if there
is a window manager and we can connect to it, i.e. if it is safe to try
and put up windows.

As a side effect the first call will make the current process frontmost.

21 years agoPort all string tests to PyUnit and share as much tests
Walter Dörwald [Fri, 21 Feb 2003 12:53:50 +0000 (12:53 +0000)]
Port all string tests to PyUnit and share as much tests
between str, unicode, UserString and the string module
as possible. This increases code coverage in stringobject.c
from 83% to 86% and should help keep the string classes
in sync in the future. From SF patch #662807

21 years agoFill in missing table entries.
Raymond Hettinger [Fri, 21 Feb 2003 05:42:13 +0000 (05:42 +0000)]
Fill in missing table entries.

21 years agoSF bug #685775: turtle circle() documentation error
Raymond Hettinger [Fri, 21 Feb 2003 03:14:08 +0000 (03:14 +0000)]
SF bug #685775: turtle circle() documentation error

21 years agoSF bug #690377: Dud footnote reference in distutils docs
Raymond Hettinger [Fri, 21 Feb 2003 02:47:09 +0000 (02:47 +0000)]
SF bug #690377: Dud footnote reference in distutils docs

21 years agoMarkup and nits.
Raymond Hettinger [Fri, 21 Feb 2003 01:45:34 +0000 (01:45 +0000)]
Markup and nits.

21 years agoSF bug #690083: test_random fails sometimes
Raymond Hettinger [Fri, 21 Feb 2003 01:41:36 +0000 (01:41 +0000)]
SF bug #690083:  test_random fails sometimes

time.sleep(1) sometimes delays for fractionally less than a second
resulting in too short of an interval for C's time.time() function
to create a distinct seed.

21 years agoflex_complete looks like a private (but callback) function, so make it static
Neal Norwitz [Fri, 21 Feb 2003 00:30:18 +0000 (00:30 +0000)]
flex_complete looks like a private (but callback) function, so make it static

21 years agoAdd some notes about HIGHEST_PROTOCOL.
Neal Norwitz [Fri, 21 Feb 2003 00:26:33 +0000 (00:26 +0000)]
Add some notes about HIGHEST_PROTOCOL.

21 years agoStrange control flow in PyInt_AsLong. When nb_int is called inside
Thomas Heller [Thu, 20 Feb 2003 20:32:11 +0000 (20:32 +0000)]
Strange control flow in PyInt_AsLong.  When nb_int is called inside
the PyInt_AsLong function, and this returns a long, the value is first
retrieved with PyLong_AsLong, but afterwards overwritten by a call to
PyInt_AS_LONG.

Fixes SF #690253.

21 years agoUpdate PY_VERSION to indicate that we're beyond 2.3a2 now.
Guido van Rossum [Thu, 20 Feb 2003 18:46:54 +0000 (18:46 +0000)]
Update PY_VERSION to indicate that we're beyond 2.3a2 now.

21 years agoAs far as I can tell PyEval_GetOwner was removed in 1997 (when it was
Michael W. Hudson [Thu, 20 Feb 2003 17:59:17 +0000 (17:59 +0000)]
As far as I can tell PyEval_GetOwner was removed in 1997 (when it was
called something else!).  I can't imagine removing the prototype is
going to hurt, but put it back if *you* can.

21 years agoAdd PEP 301 metadata.
Guido van Rossum [Thu, 20 Feb 2003 02:52:04 +0000 (02:52 +0000)]
Add PEP 301 metadata.

21 years agoDon't use self.announce() in a function that's not a method.
Guido van Rossum [Thu, 20 Feb 2003 02:11:43 +0000 (02:11 +0000)]
Don't use self.announce() in a function that's not a method.

Use level=3 (i.e. log.WARN) for the warnings about failed imports.
(Hmm...  Why is that code in an "if 1: ..."?  What's the else branch
for?)

21 years agoannounce(): use the level argument to control the log level.
Guido van Rossum [Thu, 20 Feb 2003 02:10:08 +0000 (02:10 +0000)]
announce(): use the level argument to control the log level.

21 years agoset_verbosity(): do something reasonable for out-of-range verbosity
Guido van Rossum [Thu, 20 Feb 2003 02:09:30 +0000 (02:09 +0000)]
set_verbosity(): do something reasonable for out-of-range verbosity
levels.  (Previously, -vvv would be the same as -q!)

21 years agoPrepped for 2.3b1.
Guido van Rossum [Thu, 20 Feb 2003 01:56:17 +0000 (01:56 +0000)]
Prepped for 2.3b1.

Added an extra blank line before "What's New in Python 2.2 final?".

21 years agoMatch parentheses.
Guido van Rossum [Thu, 20 Feb 2003 01:52:48 +0000 (01:52 +0000)]
Match parentheses.

21 years agoMerge in changes made to the 2.3a2 release.
Guido van Rossum [Thu, 20 Feb 2003 01:38:31 +0000 (01:38 +0000)]
Merge in changes made to the 2.3a2 release.

21 years agofixed markup
David Goodger [Wed, 19 Feb 2003 23:31:51 +0000 (23:31 +0000)]
fixed markup

21 years agoUpdate versions/dates for release of 2.3a2. Added some last-minute news.
Guido van Rossum [Wed, 19 Feb 2003 18:18:47 +0000 (18:18 +0000)]
Update versions/dates for release of 2.3a2.  Added some last-minute news.

21 years agoThe connect timeout code wasn't working on Windows.
Guido van Rossum [Wed, 19 Feb 2003 17:50:16 +0000 (17:50 +0000)]
The connect timeout code wasn't working on Windows.

Rather than trying to second-guess the various error returns
of a second connect(), use select() to determine whether the
socket becomes writable (which means connected).

21 years agoAdd a note about the recent PEP 293 changes.
Walter Dörwald [Wed, 19 Feb 2003 16:34:11 +0000 (16:34 +0000)]
Add a note about the recent PEP 293 changes.

21 years agoAdded a note about the new itertools module. (Omission noted by
Fred Drake [Wed, 19 Feb 2003 16:08:08 +0000 (16:08 +0000)]
Added a note about the new itertools module.  (Omission noted by
Gerrit Holl in email to python-docs.)

21 years ago- PyEval_GetFrame() is now declared to return a PyFrameObject *
Guido van Rossum [Wed, 19 Feb 2003 15:53:17 +0000 (15:53 +0000)]
- PyEval_GetFrame() is now declared to return a PyFrameObject *
  instead of a plain PyObject *.  (SF patch #686601 by Ben Laurie.)

21 years ago- sys.path[0] (the directory from which the script is loaded) is now
Guido van Rossum [Wed, 19 Feb 2003 15:25:10 +0000 (15:25 +0000)]
- sys.path[0] (the directory from which the script is loaded) is now
  turned into an absolute pathname, unless it is the empty string.
  (SF patch #664376, by Skip Montanaro.)

21 years agoInclude download_url in the data POSTed to the catalog server
Andrew M. Kuchling [Wed, 19 Feb 2003 14:27:21 +0000 (14:27 +0000)]
Include download_url in the data POSTed to the catalog server

21 years ago[Patch #683939] Add download_url field to metadata
Andrew M. Kuchling [Wed, 19 Feb 2003 14:16:01 +0000 (14:16 +0000)]
[Patch #683939] Add download_url field to metadata

21 years ago[Patch #684398] Rename verbose argument to show-response; don't conditionalize the...
Andrew M. Kuchling [Wed, 19 Feb 2003 13:49:35 +0000 (13:49 +0000)]
[Patch #684398] Rename verbose argument to show-response; don't conditionalize the get_classifiers() call

21 years agologging.warn() renamed to warning()
Andrew M. Kuchling [Wed, 19 Feb 2003 13:46:18 +0000 (13:46 +0000)]
logging.warn() renamed to warning()

21 years agoOS/2 has no concept of file ownership, like DOS & MS Windows version
Andrew MacIntyre [Wed, 19 Feb 2003 12:51:34 +0000 (12:51 +0000)]
OS/2 has no concept of file ownership, like DOS & MS Windows version
prior to NT.  EMX has a number of Posix emulation routines, including
geteuid() but lacks chown(), so silently skip trying to actually set
a file ownership when extracting a file from a tar archive.

21 years agoOS/2 EMX build updates for recent CVS changes
Andrew MacIntyre [Wed, 19 Feb 2003 12:42:36 +0000 (12:42 +0000)]
OS/2 EMX build updates for recent CVS changes

21 years agoUse pythonw as the default interpreter also for .py scripts (overridable
Jack Jansen [Wed, 19 Feb 2003 10:37:08 +0000 (10:37 +0000)]
Use pythonw as the default interpreter also for .py scripts (overridable
by the user), as this will cause the least surprises with scripts
brought over from other unixen. Suggested by Kevin Altis.

21 years agoos.mkdir() would crash with a Unicode filename and mode param.
Mark Hammond [Wed, 19 Feb 2003 04:08:27 +0000 (04:08 +0000)]
os.mkdir() would crash with a Unicode filename and mode param.

21 years agoPyObject_Generic{Get,Set}Attr:
Guido van Rossum [Wed, 19 Feb 2003 03:19:29 +0000 (03:19 +0000)]
PyObject_Generic{Get,Set}Attr:

Don't access tp_descr_{get,set} of a descriptor without checking the
flag bits of the descriptor's type.  While we know that the main type
(the type of the object whose attribute is being accessed) has all the
right flag bits (or else PyObject_Generic{Get,Set}Attr wouldn't be
called), we don't know that for its class attributes!

Will backport to 2.2.

21 years agoReverted whitespace normalization on this file. I should really change
Tim Peters [Wed, 19 Feb 2003 02:44:12 +0000 (02:44 +0000)]
Reverted whitespace normalization on this file.  I should really change
this thing so it doesn't rely on being unnormalized.  (That's the
editorial "I", if anyone's listening <wink>.)

21 years agoRemoved debugging print in test_tarfile.
Tim Peters [Wed, 19 Feb 2003 02:41:44 +0000 (02:41 +0000)]
Removed debugging print in test_tarfile.
In the Windows installer, continued the endless battle to copy over files
with new one-shot extensions.

21 years agoWhitespace normalization.
Tim Peters [Wed, 19 Feb 2003 02:35:07 +0000 (02:35 +0000)]
Whitespace normalization.

21 years agoRename _better_reduce to _reduce_2, to make sure that any code that
Guido van Rossum [Wed, 19 Feb 2003 01:58:53 +0000 (01:58 +0000)]
Rename _better_reduce to _reduce_2, to make sure that any code that
was still referencing it will fail.  Also removed some debug cruft
from _reduce_ex.

21 years agoUse __reduce_ex__.
Guido van Rossum [Wed, 19 Feb 2003 01:45:13 +0000 (01:45 +0000)]
Use __reduce_ex__.

21 years agoRemove now unused _better_reduce.
Guido van Rossum [Wed, 19 Feb 2003 01:20:40 +0000 (01:20 +0000)]
Remove now unused _better_reduce.

21 years agoUse __reduce_ex__ in copy.py. The test_*copy_cant() tests are simpler again.
Guido van Rossum [Wed, 19 Feb 2003 01:19:28 +0000 (01:19 +0000)]
Use __reduce_ex__ in copy.py.  The test_*copy_cant() tests are simpler again.

21 years agoFix bug 683658 - PyErr_Warn may cause import deadlock.
Mark Hammond [Wed, 19 Feb 2003 00:33:33 +0000 (00:33 +0000)]
Fix bug 683658 - PyErr_Warn may cause import deadlock.

21 years agoUndid half of the previous checkin: continue using BuildApplet for most
Jack Jansen [Tue, 18 Feb 2003 23:33:39 +0000 (23:33 +0000)]
Undid half of the previous checkin: continue using BuildApplet for most
applets. PackageManager is still built with bundlebuilder itself.

21 years agoAdded a note that MacOSX applets can no longer be run from a terminal window.
Jack Jansen [Tue, 18 Feb 2003 23:32:47 +0000 (23:32 +0000)]
Added a note that MacOSX applets can no longer be run from a terminal window.

21 years agoEnable argv emulation if required.
Jack Jansen [Tue, 18 Feb 2003 23:30:27 +0000 (23:30 +0000)]
Enable argv emulation if required.
Fixed a bug for applets with their own plist files.

21 years agoAdded an argv_emulation option (command line option: --argv or -a) which
Jack Jansen [Tue, 18 Feb 2003 23:29:46 +0000 (23:29 +0000)]
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).

21 years agoArgvemulator still used the old Alias API. Fixed.
Jack Jansen [Tue, 18 Feb 2003 23:28:05 +0000 (23:28 +0000)]
Argvemulator still used the old Alias API. Fixed.

21 years agoRemove unused _better_reduce (which will disappear soon) and
Guido van Rossum [Tue, 18 Feb 2003 22:49:10 +0000 (22:49 +0000)]
Remove unused _better_reduce (which will disappear soon) and
_reconstructor (whose import here is a mystery to me).

21 years agoThree test cases for __reduce_ex__. This fails for cPickle, until Tim
Guido van Rossum [Tue, 18 Feb 2003 22:41:24 +0000 (22:41 +0000)]
Three test cases for __reduce_ex__.  This fails for cPickle, until Tim
checks in his changes to support this in cPickle.c.

21 years agoI entered the wrong year for 2.3a2.
Tim Peters [Tue, 18 Feb 2003 22:17:40 +0000 (22:17 +0000)]
I entered the wrong year for 2.3a2.

21 years agoBump version number.
Fred Drake [Tue, 18 Feb 2003 22:11:58 +0000 (22:11 +0000)]
Bump version number.

21 years agoIntroducing __reduce_ex__, which is called with a protocol number argument
Guido van Rossum [Tue, 18 Feb 2003 22:05:12 +0000 (22:05 +0000)]
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.

21 years agoBump Windows build number for 2.3a2.
Tim Peters [Tue, 18 Feb 2003 22:00:05 +0000 (22:00 +0000)]
Bump Windows build number for 2.3a2.

21 years agoBump version # to 2.3a2.
Tim Peters [Tue, 18 Feb 2003 21:58:53 +0000 (21:58 +0000)]
Bump version # to 2.3a2.

21 years agoUse python.org as the repository
Andrew M. Kuchling [Tue, 18 Feb 2003 21:28:20 +0000 (21:28 +0000)]
Use python.org as the repository

21 years agosave_global(): Trying to resolve module.name can fail for two
Tim Peters [Tue, 18 Feb 2003 20:50:45 +0000 (20:50 +0000)]
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.

21 years agoRemoved unreferenced label.
Tim Peters [Tue, 18 Feb 2003 19:32:50 +0000 (19:32 +0000)]
Removed unreferenced label.

21 years agoThe recent changes to super(), in particular supercheck(), broke when
Guido van Rossum [Tue, 18 Feb 2003 19:22:22 +0000 (19:22 +0000)]
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.

21 years agoMake __module__ writable except in restricted mode (like for classic classes).
Guido van Rossum [Tue, 18 Feb 2003 17:18:35 +0000 (17:18 +0000)]
Make __module__ writable except in restricted mode (like for classic classes).

21 years agoMake __module__ settable on functions and methods.
Jeremy Hylton [Tue, 18 Feb 2003 17:02:15 +0000 (17:02 +0000)]
Make __module__ settable on functions and methods.

21 years agoOne doctest displaying a dict didn't sort it first. *Maybe* this fixes
Tim Peters [Tue, 18 Feb 2003 16:54:41 +0000 (16:54 +0000)]
One doctest displaying a dict didn't sort it first.  *Maybe* this fixes
the AIX problem with this test.

21 years agodefault_3way_compare(): use PyNumber_Check(), rather than testing for
Guido van Rossum [Tue, 18 Feb 2003 16:40:09 +0000 (16:40 +0000)]
default_3way_compare(): use PyNumber_Check(), rather than testing for
tp_as_number directly.

21 years agoMake PyNumber_Check() a bit more careful, since all sorts of things
Guido van Rossum [Tue, 18 Feb 2003 16:36:28 +0000 (16:36 +0000)]
Make PyNumber_Check() a bit more careful, since all sorts of things
now have tp_as_number.  Check for nb_int or nb_float.

21 years agoFold some long lines.
Guido van Rossum [Tue, 18 Feb 2003 16:11:11 +0000 (16:11 +0000)]
Fold some long lines.

Change fatal errors during module initialization into RuntimeErrors.

21 years agoFix SF bug #688424, 64-bit test problems
Neal Norwitz [Tue, 18 Feb 2003 15:45:44 +0000 (15:45 +0000)]
Fix SF bug #688424, 64-bit test problems

21 years agoFix SF bug #688424, 64-bit test problems
Neal Norwitz [Tue, 18 Feb 2003 15:22:10 +0000 (15:22 +0000)]
Fix SF bug #688424, 64-bit test problems

21 years agoCopy the trace module here from Tools/scripts.
Jeremy Hylton [Tue, 18 Feb 2003 15:06:17 +0000 (15:06 +0000)]
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.

21 years agoSF patch #687683, Patches to logging (updates from Vinay)
Neal Norwitz [Tue, 18 Feb 2003 14:20:07 +0000 (14:20 +0000)]
SF patch #687683, Patches to logging (updates from Vinay)

Mostly rename WARN -> WARNING
Other misc tweaks
Update tests (not in original patch)

21 years agoUse "$@" to pass arguments to Python in stead of "${1}". This passes all
Jack Jansen [Tue, 18 Feb 2003 11:24:31 +0000 (11:24 +0000)]
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.

21 years agoDon't try to build dl on darwin. It doesn't build out of the box, and it
Jack Jansen [Tue, 18 Feb 2003 10:24:34 +0000 (10:24 +0000)]
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.

21 years agoFix 64-bit problem, ParseTuple("i") needs C ints; ("l") needs C longs.
Neal Norwitz [Tue, 18 Feb 2003 03:37:49 +0000 (03:37 +0000)]
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.