]> granicus.if.org Git - python/log
python
21 years agoGetting rid of macfs.
Jack Jansen [Thu, 27 Feb 2003 23:18:46 +0000 (23:18 +0000)]
Getting rid of macfs.

21 years agoAdded a deprecation warning.
Jack Jansen [Thu, 27 Feb 2003 23:17:59 +0000 (23:17 +0000)]
Added a deprecation warning.

21 years agoM rpc.py
Kurt B. Kaiser [Thu, 27 Feb 2003 23:04:17 +0000 (23:04 +0000)]
M rpc.py
M run.py

Move exception formatting out of rpc.py.  This allows each end of the
link to format and print exceptions how and where it sees fit and makes it
easier for threads to display their own exceptions.

21 years agoAdded a note about EasyDialogs dialogs having become movable.
Jack Jansen [Thu, 27 Feb 2003 22:52:58 +0000 (22:52 +0000)]
Added a note about EasyDialogs dialogs having become movable.

21 years agoStdFilterProc() uses InOut parameters.
Jack Jansen [Thu, 27 Feb 2003 22:50:50 +0000 (22:50 +0000)]
StdFilterProc() uses InOut parameters.

21 years agoChanging the window type to movable modal isn't enough to make the dialogs movable...
Jack Jansen [Thu, 27 Feb 2003 22:36:20 +0000 (22:36 +0000)]
Changing the window type to movable modal isn't enough to make the dialogs movable: apprently you also need to set a bit in the dlgx resource. Did this.

21 years ago* separate opcode definitions into opcode.py
Skip Montanaro [Thu, 27 Feb 2003 21:29:27 +0000 (21:29 +0000)]
* separate opcode definitions into opcode.py
* add disassemble_string
* allow classes and strings containing bytecode to be disassembled

21 years agonew opcode module - extract opcode definitions from dis.py - eventually
Skip Montanaro [Thu, 27 Feb 2003 21:27:52 +0000 (21:27 +0000)]
new opcode module - extract opcode definitions from dis.py - eventually
should be generated automatically

21 years agosimple test case for dis module
Skip Montanaro [Thu, 27 Feb 2003 21:27:07 +0000 (21:27 +0000)]
simple test case for dis module

21 years agoGet rid of many apply() calls.
Guido van Rossum [Thu, 27 Feb 2003 20:14:51 +0000 (20:14 +0000)]
Get rid of many apply() calls.

21 years agoUse floor division (// and __[r]floordiv__ in right-dispatch test.
Guido van Rossum [Thu, 27 Feb 2003 20:04:19 +0000 (20:04 +0000)]
Use floor division (// and __[r]floordiv__ in right-dispatch test.

21 years agoUse floor division (//).
Guido van Rossum [Thu, 27 Feb 2003 18:39:18 +0000 (18:39 +0000)]
Use floor division (//).

21 years agoIn the process of adding all the extended slice support I attempted to
Michael W. Hudson [Thu, 27 Feb 2003 14:50:34 +0000 (14:50 +0000)]
In the process of adding all the extended slice support I attempted to
change _PyEval_SliceIndex to round massively negative longs up to
-INT_MAX, instead of 0 but botched it.  Get it right.

Thx to Armin for the report.

21 years agoWhen bad HTML is encountered, ignore the page rather than failing with
Mark Hammond [Thu, 27 Feb 2003 06:59:10 +0000 (06:59 +0000)]
When bad HTML is encountered, ignore the page rather than failing with
a traceback.

21 years agoModule review:
Raymond Hettinger [Thu, 27 Feb 2003 00:05:31 +0000 (00:05 +0000)]
Module review:
* Changed variable name from 'list' to 'flist'.
* Replaced "while 1" with "while True".
* Replaced if/elif/elif/elif structure with a shorter and
  faster dispatch dictionary that maps attrs to methods.
* Simplified and sped comparison logic by using
  ifilter, ifilterfalse, and dict.fromkeys.
* Used True and False rather than 1 and 0.

21 years agoModule review:
Raymond Hettinger [Wed, 26 Feb 2003 22:45:18 +0000 (22:45 +0000)]
Module review:
* Replaced "while 1" with "while True"
* Rewrote read() and readline() for clarity and speed.
* Replaced variable 'list' with 'hlist'
* Used augmented assignment in two places.

21 years agoThe macfs, macostools, and plistlib should not be expected to run
Fred Drake [Wed, 26 Feb 2003 19:51:23 +0000 (19:51 +0000)]
The macfs, macostools, and plistlib should not be expected to run
beyond Mac OS and Darwin.  I'm not even sure they should be run on
Darwin, but I'll let someone more knowledgable on that tell us.

21 years agoUpdate PyPI link
Andrew M. Kuchling [Wed, 26 Feb 2003 19:00:52 +0000 (19:00 +0000)]
Update PyPI link

21 years ago[Bug #693474, reported by Stuart Bishop]
Andrew M. Kuchling [Wed, 26 Feb 2003 18:58:46 +0000 (18:58 +0000)]
[Bug #693474, reported by Stuart Bishop]
  Fix errors in the list of setup() arguments

21 years ago[Bug #668662] Patch from Pearu Pearson: if a C source file is
Andrew M. Kuchling [Wed, 26 Feb 2003 18:52:07 +0000 (18:52 +0000)]
[Bug #668662] Patch from Pearu Pearson: if a C source file is
    specified with an absolute path, the object file is also
    written to an absolute path.  The patch drops the drive and
    leading '/' from the source path, so a path like /path/to/foo.c
    results in an object file like build/temp.i686linux/path/to/foo.o.

21 years agoMicro-optimizations.
Raymond Hettinger [Wed, 26 Feb 2003 18:11:50 +0000 (18:11 +0000)]
Micro-optimizations.
* List/Tuple checkexact is faster for the common case.
* Testing for Py_True and Py_False can be inlined for faster looping.

21 years agouse bare raise so you get the original tb
Just van Rossum [Wed, 26 Feb 2003 15:28:17 +0000 (15:28 +0000)]
use bare raise so you get the original tb

21 years agoPort test_ucn and test_unicodedata to PyUnit. Add a few tests for error
Walter Dörwald [Wed, 26 Feb 2003 14:49:41 +0000 (14:49 +0000)]
Port test_ucn and test_unicodedata to PyUnit. Add a few tests for error
cases increasing coverage in unicodedata.c from 87% to 95%
(when the normalization tests are run). From SF patch #662807.

21 years agouse the same Python for running the bootstrap script and the main program
Just van Rossum [Wed, 26 Feb 2003 11:27:56 +0000 (11:27 +0000)]
use the same Python for running the bootstrap script and the main program

21 years agoremove sitecustomize hack, will be solved elsewhere
Just van Rossum [Wed, 26 Feb 2003 11:07:59 +0000 (11:07 +0000)]
remove sitecustomize hack, will be solved elsewhere

21 years agoLet's try making the dialogs at least Movable Modal.
Jack Jansen [Tue, 25 Feb 2003 23:35:06 +0000 (23:35 +0000)]
Let's try making the dialogs at least Movable Modal.

21 years agoIf a resource file cannot be decoded because the directory is readonly
Jack Jansen [Tue, 25 Feb 2003 23:02:03 +0000 (23:02 +0000)]
If a resource file cannot be decoded because the directory is readonly
create a temporary file. This fixes #688011.

Got rid of the install() method in macresource, and replaced it with
a resource_filename() method which will optionally decode a given resourcefile
(which may be applesingle-encoded) and return the real resourcefile.

Use this new method in buildtools to copy the correct resource file to
the bundle. This fixes #688007.

21 years agoReverted the rev. 1.8 change: the magic for decoding resourcefiles
Jack Jansen [Tue, 25 Feb 2003 22:58:33 +0000 (22:58 +0000)]
Reverted the rev. 1.8 change: the magic for decoding resourcefiles
is now in buildtools.

21 years agoPatch #683592: unicode support for os.listdir()
Just van Rossum [Tue, 25 Feb 2003 21:42:15 +0000 (21:42 +0000)]
Patch #683592: unicode support for os.listdir()
os.listdir() may now return unicode strings on platforms that set
Py_FileSystemDefaultEncoding.

21 years agotweak error message
Just van Rossum [Tue, 25 Feb 2003 21:08:12 +0000 (21:08 +0000)]
tweak error message

21 years ago- renamed the --copyfile option to --file.
Just van Rossum [Tue, 25 Feb 2003 21:00:55 +0000 (21:00 +0000)]
- renamed the --copyfile option to --file.
- tweaked the help text a little.
(Jack: up to you to change your client code.)

21 years agoadded some comments, minor tweaks
Just van Rossum [Tue, 25 Feb 2003 20:53:12 +0000 (20:53 +0000)]
added some comments, minor tweaks

21 years agoAddendum to #683658:
Just van Rossum [Tue, 25 Feb 2003 20:25:12 +0000 (20:25 +0000)]
Addendum to #683658:
import warnings.py _after_ site.py has run. This ensures that site.py
is again the first .py to be imported, giving it back full control over
sys.path.

21 years agoResolving parts of #688907:
Just van Rossum [Tue, 25 Feb 2003 20:15:40 +0000 (20:15 +0000)]
Resolving parts of #688907:
- Replaced bootstrap shell script with Python script. This means
  standalone apps built with bundlebuilder will not work on MacOS < 10.1,
  since we depend (again) on an installed Python.
- Add a hack to set sys.executable; the bootstrap script does os.execve()
  with an argv[0] that's different from the actual Python executable
  (it has to match the CFBundleExecutable entry in the Info.plist to make
  the app work both from the Finder and the command line, and it has to be
  the bootstrap script), yet a proper sys.executable is needed to spawn
  auxiliary processes.

21 years agotypo
Skip Montanaro [Tue, 25 Feb 2003 17:48:15 +0000 (17:48 +0000)]
typo

21 years agonote the demise of the dospath module (was actually in 2.3a2)
Skip Montanaro [Tue, 25 Feb 2003 17:46:20 +0000 (17:46 +0000)]
note the demise of the dospath module (was actually in 2.3a2)

21 years agoAdded an "Open Recent" command. Fixes 607810.
Jack Jansen [Tue, 25 Feb 2003 15:08:02 +0000 (15:08 +0000)]
Added an "Open Recent" command. Fixes 607810.

21 years agoWorkaround for bug #644243 (which is actually an Apple bug, I think): URLs
Jack Jansen [Tue, 25 Feb 2003 13:34:22 +0000 (13:34 +0000)]
Workaround for bug #644243 (which is actually an Apple bug, I think): URLs
of the form file:/path/to/file don't work whereas file:///path/to/file
works fine. We convert the former to the latter.

21 years agoRefer to the Mac OS X bundle_loader by the altbininstall name, so that
Jack Jansen [Tue, 25 Feb 2003 13:14:43 +0000 (13:14 +0000)]
Refer to the Mac OS X bundle_loader by the altbininstall name, so that
building distutils extension modules also works if you've only done
an altinstall. Fixes bug #677293.

21 years agoTest suite for the plistlib module.
Jack Jansen [Tue, 25 Feb 2003 12:58:58 +0000 (12:58 +0000)]
Test suite for the plistlib module.

21 years agoIn Mac OS X framework builds don't assume that the executable will be
Jack Jansen [Tue, 25 Feb 2003 12:41:10 +0000 (12:41 +0000)]
In Mac OS X framework builds don't assume that the executable will be
called python.exe but actually pass it from the main Makefile to
Mac/OSX/Makefile. This makes framework builds work again on case
sensitive filesystems. Fixes bug #677753.

21 years agoChange the test encoding from "ISO8859-1" to "ISO-8859-1"
Walter Dörwald [Mon, 24 Feb 2003 20:17:32 +0000 (20:17 +0000)]
Change the test encoding from "ISO8859-1" to "ISO-8859-1"
(see SF bug #690309) and raise ImportErrors instead of
RuntimeErrors, so building Python continues even
if importing iconv_codecs fails.

This is a temporary fix until we get proper configure
support for "broken" iconv implementations.

21 years ago2.3b1 patches
Guido van Rossum [Mon, 24 Feb 2003 17:55:37 +0000 (17:55 +0000)]
2.3b1 patches

21 years agoFix building of Idle applet.
Jack Jansen [Mon, 24 Feb 2003 16:30:24 +0000 (16:30 +0000)]
Fix building of Idle applet.

21 years agoAllow specifiying the destination for --extra files (default: same
Jack Jansen [Mon, 24 Feb 2003 16:28:37 +0000 (16:28 +0000)]
Allow specifiying the destination for --extra files (default: same
filename as the source, but in Contents/Resources in the app bundle).

21 years agoAdded a -c (--copyfile) option with argument src:dst which copies file src
Jack Jansen [Mon, 24 Feb 2003 16:27:08 +0000 (16:27 +0000)]
Added a -c (--copyfile) option with argument src:dst which copies file src
into dst in the bundle. The Python API already had this functionality

21 years agoRemove unused variables.
Walter Dörwald [Mon, 24 Feb 2003 15:33:31 +0000 (15:33 +0000)]
Remove unused variables.

21 years agosys.executable can contain spaces, cater for this when passing it to
Jack Jansen [Mon, 24 Feb 2003 15:26:39 +0000 (15:26 +0000)]
sys.executable can contain spaces, cater for this when passing it to
os.popen(). Fixes #692222.

21 years agoThat fix was bogus, undone. The problem is that the iconv include file
Jack Jansen [Mon, 24 Feb 2003 12:56:36 +0000 (12:56 +0000)]
That fix was bogus, undone. The problem is that the iconv include file
is found if you are running fink, but the module doesn't work. For now
I disabled building iconv_codec on darwin.

21 years agoThe test for iconv_incs tested explicitly for None, but [] is returned
Jack Jansen [Mon, 24 Feb 2003 12:48:58 +0000 (12:48 +0000)]
The test for iconv_incs tested explicitly for None, but [] is returned
if the include files cannot be found.

21 years agoAdded a note about MacOS.WMAvailable().
Jack Jansen [Mon, 24 Feb 2003 11:04:17 +0000 (11:04 +0000)]
Added a note about MacOS.WMAvailable().

21 years agoDocumented linkmodel and WMAvailable().
Jack Jansen [Mon, 24 Feb 2003 11:02:36 +0000 (11:02 +0000)]
Documented linkmodel and WMAvailable().

21 years agoSF patch #687598, array.append is sloooow
Neal Norwitz [Mon, 24 Feb 2003 02:08:42 +0000 (02:08 +0000)]
SF patch #687598, array.append is sloooow

This improves speed by about 5.6% for me.

21 years agoFix from SF patch #633359 by Greg Chapman for SF bug #610299:
Guido van Rossum [Mon, 24 Feb 2003 01:18:35 +0000 (01:18 +0000)]
Fix from SF patch #633359 by Greg Chapman for SF bug #610299:
    The problem is in sre_compile.py: the call to
    _compile_charset near the end of _compile_info forgets to
    pass in the flags, so that the info charset is not compiled
    with re.U. (The info charset is used when searching to find
    the first character at which a match could start; it is not
    generated for patterns beginning with a repeat like '\w{1}'.)

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.