]> granicus.if.org Git - python/log
python
21 years agoAccept only the system default encoding when converting Python
Jack Jansen [Mon, 3 Mar 2003 13:12:59 +0000 (13:12 +0000)]
Accept only the system default encoding when converting Python
strings to CF strings. Fixes 682215.

21 years agoFix bug
Michael W. Hudson [Mon, 3 Mar 2003 12:29:42 +0000 (12:29 +0000)]
Fix bug

[ 555817 ] Flawed fcntl.ioctl implementation.

with my patch that allows for an array to be mutated when passed
as the buffer argument to ioctl() (details complicated by
backwards compatibility considerations -- read the docs!).

21 years agoDon't call AEInteractWithUser unconditionally on a quit appleevent. The
Jack Jansen [Mon, 3 Mar 2003 12:28:04 +0000 (12:28 +0000)]
Don't call AEInteractWithUser unconditionally on a quit appleevent. The
EasyDIalogs methods will call it if needed.

Fixes #684975.

21 years agoCall AEInteractWithUser() before bringing up any of the dialogs (with the
Jack Jansen [Mon, 3 Mar 2003 12:25:02 +0000 (12:25 +0000)]
Call AEInteractWithUser() before bringing up any of the dialogs (with the
exception of the ProgressBar, which I think is okay to show in the background).

This is a prerequisitite for the fix of #684975.

21 years agoDon't crash on _tkinter.createfilehandler in non-threaded Tcl;
Martin v. Löwis [Mon, 3 Mar 2003 10:40:01 +0000 (10:40 +0000)]
Don't crash on _tkinter.createfilehandler in non-threaded Tcl;
disable this function in threaded Tcl. Likewise for creaetetimerhandler.
Fixes #692416.

21 years agoPatch #671666: Alias ANSI code page to "mbcs".
Martin v. Löwis [Mon, 3 Mar 2003 09:34:01 +0000 (09:34 +0000)]
Patch #671666: Alias ANSI code page to "mbcs".

21 years agoGuard advancing past leading meta-comments.
Ken Manheimer [Mon, 3 Mar 2003 04:05:03 +0000 (04:05 +0000)]
Guard advancing past leading meta-comments.

21 years agoEnhanced pdbtrack to provide for source code that's not findable by
Ken Manheimer [Mon, 3 Mar 2003 00:35:32 +0000 (00:35 +0000)]
Enhanced pdbtrack to provide for source code that's not findable by
the reported path.  (Eg, precompiled scripts with a file path suitable
for a different host, scripts actually running on a remote system or
with no valid path, like Zope through-the-web python scripts.)

On failing to find the code on the reported path, pdbtrack takes the
function name and looks through the buffers, from most to least
recent, seeking the first python-mode buffer that either is named for
the function or has a definition (def or class) for that function.  So
to get source tracking for code that's not located where the path
indicates, you put a copy of the script in a buffer, and pdbtrack will
find it.

Also, fixed a small bug so pdbtrack now properly presents the overlay
arrow when you run the pdb 'w'here command.

21 years agoUse Carbon.File for FSSpec and FSRef conversion, not macfs.
Jack Jansen [Sun, 2 Mar 2003 23:16:50 +0000 (23:16 +0000)]
Use Carbon.File for FSSpec and FSRef conversion, not macfs.

21 years ago_CG module only needs the ApplicationServices framework, not Carbon.
Jack Jansen [Sun, 2 Mar 2003 21:31:51 +0000 (21:31 +0000)]
_CG module only needs the ApplicationServices framework, not Carbon.

21 years agoUndo the apply() removals; this code needs to run under Python 1.5.2.
Guido van Rossum [Sun, 2 Mar 2003 20:47:29 +0000 (20:47 +0000)]
Undo the apply() removals; this code needs to run under Python 1.5.2.

21 years agoMyComplex now works.
Guido van Rossum [Sun, 2 Mar 2003 13:53:18 +0000 (13:53 +0000)]
MyComplex now works.

21 years agoFix from Greg Chapman from SF bug #695651: a complex subclass
Guido van Rossum [Sun, 2 Mar 2003 13:51:47 +0000 (13:51 +0000)]
Fix from Greg Chapman from SF bug #695651: a complex subclass
constructor, when passed a single complex argument, returns the
argument unchanged.  This should be done only for the complex base
class; a complex subclass should of course cast the value to the
subclass in this case.

The fix also revealed a segfault in complex_getnewargs(): the argument
for the Py_BuildValue() format code "D" is the *address* of a
Py_complex struct, not the value.  (This corroborated by the API
documentation.)

I expect this needs to be backported to 2.2.3.

21 years agoCommit MvL's doc patch for SF bug #221327. This adds an example of
Guido van Rossum [Sun, 2 Mar 2003 13:17:20 +0000 (13:17 +0000)]
Commit MvL's doc patch for SF bug #221327.  This adds an example of
calling into Python from a C thread.

21 years agotest_load_from_canned_string(): Created a DATA2 string to test a canned
Tim Peters [Sun, 2 Mar 2003 04:54:24 +0000 (04:54 +0000)]
test_load_from_canned_string():  Created a DATA2 string to test a canned
proto 2 pickle too.

21 years agoAdd updates for alpha2
Andrew M. Kuchling [Sun, 2 Mar 2003 02:31:58 +0000 (02:31 +0000)]
Add updates for alpha2

21 years agoExpand itertools paragraph
Andrew M. Kuchling [Sun, 2 Mar 2003 02:13:52 +0000 (02:13 +0000)]
Expand itertools paragraph

21 years agoTestOnlySetsInBinaryOps: Simplified the non-inplace tests by using
Tim Peters [Sun, 2 Mar 2003 00:36:10 +0000 (00:36 +0000)]
TestOnlySetsInBinaryOps:  Simplified the non-inplace tests by using
assertRaises.  Fixed a repeated subtle bug in the inplace tests by
removing the possibilty that a self.fail() call could raise a
TypeError that the test catches by mistake.

21 years agoTypo repairs in new code.
Tim Peters [Sun, 2 Mar 2003 00:31:23 +0000 (00:31 +0000)]
Typo repairs in new code.

21 years agoSF bug 693121: Set == non-Set is a TypeError.
Tim Peters [Sun, 2 Mar 2003 00:19:49 +0000 (00:19 +0000)]
SF bug 693121:  Set == non-Set is a TypeError.
Allow mixed-type __eq__ and __ne__ for Set objects.  This is messier than
I'd like because Set *also* implements __cmp__.  I know of one glitch now:
cmp(s, t) returns 0 now when s and t are both Sets and s == t, despite
that Set.__cmp__ unconditionally raises TypeError (and by intent).  The
rub is that __eq__ gets tried first, and the x.__eq__(y) True result
convinces Python that cmp(x, y) is 0 without even calling Set.__cmp__.

21 years agoThe doctest was printing Sets, but that's unreliable because set
Tim Peters [Sat, 1 Mar 2003 23:33:34 +0000 (23:33 +0000)]
The doctest was printing Sets, but that's unreliable because set
elements get displayed in undefined dict order.  Use a Set subclass
instead (which arranges to sort the elements for display).

21 years agoFix comment, mode really is used
Neal Norwitz [Sat, 1 Mar 2003 22:58:00 +0000 (22:58 +0000)]
Fix comment, mode really is used

21 years agoFix SF patch #695581, "returnself" -> "return self"
Neal Norwitz [Sat, 1 Mar 2003 15:22:41 +0000 (15:22 +0000)]
Fix SF patch #695581, "returnself" -> "return self"

21 years agoget_completer() takes no args
Neal Norwitz [Sat, 1 Mar 2003 15:19:41 +0000 (15:19 +0000)]
get_completer() takes no args

21 years agoAdded implementation notes for [re]set_exc_info().
Guido van Rossum [Sat, 1 Mar 2003 03:36:33 +0000 (03:36 +0000)]
Added implementation notes for [re]set_exc_info().

21 years agoReindent the new code properly.
Guido van Rossum [Sat, 1 Mar 2003 03:25:41 +0000 (03:25 +0000)]
Reindent the new code properly.

21 years ago- New function sys.exc_clear() clears the current exception. This is
Guido van Rossum [Sat, 1 Mar 2003 03:20:41 +0000 (03:20 +0000)]
- New function sys.exc_clear() clears the current exception.  This is
  rarely needed, but can sometimes be useful to release objects
  referenced by the traceback held in sys.exc_info()[2].  (SF patch
  #693195.)  Thanks to Kevin Jacobs!

21 years agoSeveral of the tools can make direct calls the inner iterators.
Raymond Hettinger [Sat, 1 Mar 2003 01:48:24 +0000 (01:48 +0000)]
Several of the tools can make direct calls the inner iterators.

21 years agoRemoved duplicate test from inner loop.
Raymond Hettinger [Sat, 1 Mar 2003 01:44:32 +0000 (01:44 +0000)]
Removed duplicate test from inner loop.
The PyIter_Check is already performed by PyObject_GetIter.

21 years agoAdd news item for patch #695090
Andrew M. Kuchling [Fri, 28 Feb 2003 22:09:33 +0000 (22:09 +0000)]
Add news item for patch #695090

21 years ago[Patch #695090 from Bernhard Herzog] Allow specifying both py_modules and packages
Andrew M. Kuchling [Fri, 28 Feb 2003 22:03:04 +0000 (22:03 +0000)]
[Patch #695090 from Bernhard Herzog] Allow specifying both py_modules and packages

21 years agoHandle iconv initialization erorrs
Neal Norwitz [Fri, 28 Feb 2003 20:00:42 +0000 (20:00 +0000)]
Handle iconv initialization erorrs

21 years agoFix SF bugs #692951 and 692988, test_timeout.py needs 'network' resource
Neal Norwitz [Fri, 28 Feb 2003 19:57:03 +0000 (19:57 +0000)]
Fix SF bugs #692951 and 692988, test_timeout.py needs 'network' resource

require -u network to run test_timeout since
it fails when not connected to a network.

21 years agoJust pointed out the code was better written with
Neal Norwitz [Fri, 28 Feb 2003 17:39:42 +0000 (17:39 +0000)]
Just pointed out the code was better written with
        try: # ...
        except ImportError, why:
        except: # ...
All other changes are re-indenting/formatting.

21 years agoFix SF bug #690012
Neal Norwitz [Fri, 28 Feb 2003 17:24:00 +0000 (17:24 +0000)]
Fix SF bug #690012

21 years agoFix SF bug #690012 (among others), iconv_codec stops build
Neal Norwitz [Fri, 28 Feb 2003 17:21:39 +0000 (17:21 +0000)]
Fix SF bug #690012 (among others), iconv_codec stops build

Change setup.py to catch all exceptions.
  - Rename module if the exception was an ImportError
  - Only warn if the exception was any other error

Revert _iconv_codec to raising a RuntimeError.

21 years agocompile_atom(): Neal's last checkin removing the setting of i broke
Barry Warsaw [Fri, 28 Feb 2003 15:27:40 +0000 (15:27 +0000)]
compile_atom(): Neal's last checkin removing the setting of i broke
the build, so I'm restoring it.  I'm not sure what Neal's intent was,
since the line following the one he removed was "REQN(i, 1)" so i is
obviously used. ;)

21 years agoCheck modes on install and temporary directories. Fixes #693230.
Jack Jansen [Fri, 28 Feb 2003 15:19:51 +0000 (15:19 +0000)]
Check modes on install and temporary directories. Fixes #693230.

21 years agoRemoved silly print.
Jack Jansen [Fri, 28 Feb 2003 15:18:59 +0000 (15:18 +0000)]
Removed silly print.

21 years agoSF doc patch #692001, properties and __getattribute__. I added some
Guido van Rossum [Fri, 28 Feb 2003 14:11:45 +0000 (14:11 +0000)]
SF doc patch #692001, properties and __getattribute__.  I added some
stuff, and changed 'property' to 'descriptor'.

21 years agoMoved the Apple workaround for the guard define for wchar_t out of
Jack Jansen [Fri, 28 Feb 2003 12:51:18 +0000 (12:51 +0000)]
Moved the Apple workaround for the guard define for wchar_t out of
the #ifdef HAVE_NCURSES_H: the same problem exists on OSX 10.1 with
a fink-installed curses (which uses curses.h as the include file name).

21 years agouse proper constant instead of comment (noted by nnorwitz)
Just van Rossum [Fri, 28 Feb 2003 08:54:01 +0000 (08:54 +0000)]
use proper constant instead of comment (noted by nnorwitz)

21 years agoFix spelling and grammar.
Raymond Hettinger [Fri, 28 Feb 2003 05:11:03 +0000 (05:11 +0000)]
Fix spelling and grammar.

21 years agoRemove setting i since it isn't used. Found in unrelated bug 690012.
Neal Norwitz [Fri, 28 Feb 2003 03:16:07 +0000 (03:16 +0000)]
Remove setting i since it isn't used.  Found in unrelated bug 690012.

21 years agoFix SF bug #694816, remove comparison of unsigned value < 0
Neal Norwitz [Fri, 28 Feb 2003 03:14:37 +0000 (03:14 +0000)]
Fix SF bug #694816, remove comparison of unsigned value < 0

21 years agoIn make clobber also clean out the Python.framework.
Jack Jansen [Thu, 27 Feb 2003 23:19:46 +0000 (23:19 +0000)]
In make clobber also clean out the Python.framework.

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}'.)