Tim Peters [Sun, 18 Jul 2004 23:58:17 +0000 (23:58 +0000)]
Record that FCNTL.py has gone away; remove FCNTL hack in tempfile.py;
another hack remains in test___all__.py, but the problem that one
addresses is more general than *just* FCNTL, so leaving it alone.
Tim Peters [Sun, 18 Jul 2004 03:48:47 +0000 (03:48 +0000)]
Teach VC 7.1 about the new cjkcodecs structure. This still doesn't compile
on Windows, because of non-standard code in cjkcodes.h, but it's *almost*
there.
Bring CJKCodecs 1.1 into trunk. This completely reorganizes source
and installed layouts to make maintenance simple and easy. And it
also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004
and iso2022-jp-2004.
Tim Peters [Sun, 18 Jul 2004 00:00:03 +0000 (00:00 +0000)]
The Darwin-specific getproxies_internetconfig() was added to urllib,
causing test_pyclbr to fail on all other platforms. Added that routine
to the urllib "ignore" list.
Removed the special case for "g" in the pickle module. types.py deletes
"g" from its namespace; maybe it didn't always. Whatever, the special
case isn't needed today.
Tim Peters [Sat, 17 Jul 2004 23:44:32 +0000 (23:44 +0000)]
Temporarily add the Tcl/Tk bin directory to PATH, so that test_tcl can
actually run. When it fails, it pops up a dialog box, and the test run
hangs waiting for you to click OK -- that sucks too much to bear.
Change CJK encoding aliases to their most popular variation of
hyphen and underscores in consistency of non-CJK aliases.
(Spotted by Mike Brown at SF #969415)
Tim Peters [Sat, 17 Jul 2004 05:00:52 +0000 (05:00 +0000)]
optimize_code(): Repaired gross error in new special-casing for None.
The preceding case statement was missing a terminating "break" stmt,
so fell into the new code by mistake. This caused uncaught out-of-bounds
accesses to the "names" tuple, leading to a variety of insane behaviors.
Jack Jansen [Thu, 15 Jul 2004 22:28:48 +0000 (22:28 +0000)]
Fix for 838140: don't call NSUnlinkModule when we fail to find our
expected entrypoint. The unlinking will crash the application if the
module contained ObjC code. The price of this is small: a little wasted
memory, and only in a case than isn't expected to occur often.
Jack Jansen [Thu, 15 Jul 2004 22:08:33 +0000 (22:08 +0000)]
After more than two years of puzzlement Jurjen Bos found the reason for
the double-scroll problem: when you pass a tracker function to TrackControl
you shouldn't call your hit function again afterwards. Fixes #711989.
Jack Jansen [Thu, 15 Jul 2004 15:06:07 +0000 (15:06 +0000)]
Allow overriding of bgen pathnames in an optional module bgenlocationcustomize.
Editing of bgenlocations.py isn't easy if your Python was supplied by Apple.
Tim Peters [Thu, 15 Jul 2004 05:46:37 +0000 (05:46 +0000)]
SF bug 990749: os constants missing
A LaTeX comment identified the 6 os.O_XXX constants the docs claimed
are available on Windows but aren't. The bug report listed the same 6.
Split these non-Windows constants into a different table with a possibly
correct "Availability:" claim.
Jim Fulton [Wed, 14 Jul 2004 19:07:35 +0000 (19:07 +0000)]
Implemented a new Py_CLEAR macro. This macro should be used when
decrementing the refcount of variables that might be accessed as a
result of calling Python
[ 984722 ] Py_BuildValue loses reference counts on error
I'm ever-so-slightly uneasy at the amount of work this can do with an
exception pending, but I don't think that this can result in anything
more serious than a strange error message.
- Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects
the documented behavior: the function passed to the onerror()
handler can now also be os.listdir.
[I could've sworn I checked this in, but apparently I didn't, or it
got lost???]
- Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects
the documented behavior: the function passed to the onerror()
handler can now also be os.listdir.
[I could've sworn I checked this in, but apparently I didn't, or it
got lost???]
It helps when doing checks if something is in a tuple of strings that if you
put everything in the tuple in caps to use str.upper() instead of str.lower().
Tim Peters [Tue, 13 Jul 2004 17:18:10 +0000 (17:18 +0000)]
Claifications: visit procs are supplied by the core, users aren't
expected to write their own. A NULL "object" must not be passed to
the visit callback. A non-zero return from a visit proc isn't
necessarily an error return (and it doesn't matter to the tp_traverse
code *what* it might signify, their only job is to return it).
Fixes a bug in testing code handling .pth files that did not restore the original
module that is removed for testing "import" lines. Originally deleted the
entry from sys.modules and then just let other code that needed it to import it
again. Problem with this solution is that it lead to code that had already
imported the module in question to have their own reference to a new copy of
the module in question that new code couldn't reach. This lead to a failure in
test_strptime since it monkey-patched the 'time' module it had a reference to
while _strptime had its own reference to another copy of 'time' from being
imported by test___all__ that it was using for a calculation.
Also moved the testing code out of the PthFile class and into the actual test
class. This was to stop using 'assert' which is useless with a -O execution.
Add another point in the "Restrictions" section about how the handling of FTP
URLs will seemingly succeed to read a URL that points to a file whose
permissions you do not have to read.
Backport candidate once everyone agrees with the wording.