summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of many apply() calls.Guido van Rossum2003-02-2738-91/+85
|
* Use floor division (// and __[r]floordiv__ in right-dispatch test.Guido van Rossum2003-02-271-23/+23
|
* Use floor division (//).Guido van Rossum2003-02-271-3/+3
|
* In the process of adding all the extended slice support I attempted toMichael W. Hudson2003-02-271-4/+4
| | | | | | | 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.
* When bad HTML is encountered, ignore the page rather than failing withMark Hammond2003-02-271-1/+9
| | | | a traceback.
* Module review:Raymond Hettinger2003-02-271-47/+22
| | | | | | | | | | * 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.
* Module review:Raymond Hettinger2003-02-261-40/+30
| | | | | | | * 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.
* The macfs, macostools, and plistlib should not be expected to runFred Drake2003-02-261-0/+33
| | | | | 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.
* Update PyPI linkAndrew M. Kuchling2003-02-261-5/+2
|
* [Bug #693474, reported by Stuart Bishop]Andrew M. Kuchling2003-02-261-5/+8
| | | | Fix errors in the list of setup() arguments
* [Bug #668662] Patch from Pearu Pearson: if a C source file isAndrew M. Kuchling2003-02-261-0/+2
| | | | | | | 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.
* Micro-optimizations.Raymond Hettinger2003-02-261-4/+18
| | | | | * List/Tuple checkexact is faster for the common case. * Testing for Py_True and Py_False can be inlined for faster looping.
* use bare raise so you get the original tbJust van Rossum2003-02-261-1/+1
|
* Port test_ucn and test_unicodedata to PyUnit. Add a few tests for errorWalter Dörwald2003-02-264-266/+337
| | | | | cases increasing coverage in unicodedata.c from 87% to 95% (when the normalization tests are run). From SF patch #662807.
* use the same Python for running the bootstrap script and the main programJust van Rossum2003-02-261-1/+9
|
* remove sitecustomize hack, will be solved elsewhereJust van Rossum2003-02-261-25/+0
|
* Let's try making the dialogs at least Movable Modal.Jack Jansen2003-02-251-0/+0
|
* If a resource file cannot be decoded because the directory is readonlyJack Jansen2003-02-252-44/+41
| | | | | | | | | | | 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.
* Reverted the rev. 1.8 change: the magic for decoding resourcefilesJack Jansen2003-02-251-4/+0
| | | | is now in buildtools.
* Patch #683592: unicode support for os.listdir()Just van Rossum2003-02-252-1/+32
| | | | | os.listdir() may now return unicode strings on platforms that set Py_FileSystemDefaultEncoding.
* tweak error messageJust van Rossum2003-02-251-2/+2
|
* - renamed the --copyfile option to --file.Just van Rossum2003-02-251-4/+6
| | | | | - tweaked the help text a little. (Jack: up to you to change your client code.)
* added some comments, minor tweaksJust van Rossum2003-02-251-3/+34
|
* Addendum to #683658:Just van Rossum2003-02-251-2/+2
| | | | | | 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.
* Resolving parts of #688907:Just van Rossum2003-02-251-9/+29
| | | | | | | | | | | | - 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.
* typoSkip Montanaro2003-02-251-1/+1
|
* note the demise of the dospath module (was actually in 2.3a2)Skip Montanaro2003-02-251-0/+3
|
* Added an "Open Recent" command. Fixes 607810.Jack Jansen2003-02-252-0/+46
|
* Workaround for bug #644243 (which is actually an Apple bug, I think): URLsJack Jansen2003-02-251-0/+4
| | | | | of the form file:/path/to/file don't work whereas file:///path/to/file works fine. We convert the former to the latter.
* Refer to the Mac OS X bundle_loader by the altbininstall name, so thatJack Jansen2003-02-252-3/+3
| | | | | building distutils extension modules also works if you've only done an altinstall. Fixes bug #677293.
* Test suite for the plistlib module.Jack Jansen2003-02-251-0/+59
|
* In Mac OS X framework builds don't assume that the executable will beJack Jansen2003-02-252-6/+8
| | | | | | 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.
* Change the test encoding from "ISO8859-1" to "ISO-8859-1"Walter Dörwald2003-02-241-4/+4
| | | | | | | | | (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.
* 2.3b1 patchesGuido van Rossum2003-02-241-2/+5
|
* Fix building of Idle applet.Jack Jansen2003-02-241-5/+1
|
* Allow specifiying the destination for --extra files (default: sameJack Jansen2003-02-241-6/+8
| | | | filename as the source, but in Contents/Resources in the app bundle).
* Added a -c (--copyfile) option with argument src:dst which copies file srcJack Jansen2003-02-242-3/+12
| | | | into dst in the bundle. The Python API already had this functionality
* Remove unused variables.Walter Dörwald2003-02-241-9/+0
|
* sys.executable can contain spaces, cater for this when passing it toJack Jansen2003-02-242-3/+3
| | | | os.popen(). Fixes #692222.
* That fix was bogus, undone. The problem is that the iconv include fileJack Jansen2003-02-241-3/+3
| | | | | is found if you are running fink, but the module doesn't work. For now I disabled building iconv_codec on darwin.
* The test for iconv_incs tested explicitly for None, but [] is returnedJack Jansen2003-02-241-2/+2
| | | | if the include files cannot be found.
* Added a note about MacOS.WMAvailable().Jack Jansen2003-02-241-1/+2
|
* Documented linkmodel and WMAvailable().Jack Jansen2003-02-241-4/+26
|
* SF patch #687598, array.append is sloooowNeal Norwitz2003-02-241-2/+47
| | | | This improves speed by about 5.6% for me.
* Fix from SF patch #633359 by Greg Chapman for SF bug #610299:Guido van Rossum2003-02-242-1/+2
| | | | | | | | | 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}'.)
* Deleting the 2.2 spec.Guido van Rossum2003-02-241-302/+0
|
* RPM spec file for 2.3a2, contributed by Sean Reifschneider.Guido van Rossum2003-02-241-0/+303
|
* Fix SF bug #691793, Python 2.3a2 build fails on Tru64Neal Norwitz2003-02-231-1/+2
|
* Fix SF bug #691793, Python 2.3a2 build fails on Tru64Neal Norwitz2003-02-232-30/+32
| | | | | | 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.
* Added a linkmodel attribute, showing how Python was built. This is soJack Jansen2003-02-231-0/+13
| | | | | | | | | 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.