summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* verify that Python raises SyntaxError for long and deeply-nested expressionsJeremy Hylton2000-06-202-0/+20
|
* add minimal test of exception use. verify that each exception can beJeremy Hylton2000-06-201-0/+12
| | | | raised, caught, and converted to a string.
* Pekka Pessi <Pekka.Pessi@nokia.com>:Fred Drake2000-06-201-3/+3
| | | | | Patch to add support for sip: (Session Initiation Protocol, RFC2543) URLs.
* Fix bug when the replacement template is a callable objectAndrew M. Kuchling2000-06-181-1/+1
|
* Patch from /F:Andrew M. Kuchling2000-06-181-0/+6
| | | | | | | | | | this patch adds a fast _flatten function to the _tkinter module, and imports it from Tkinter.py (if available). this speeds up canvas operations like create_line and create_polygon. for example, a create_line with 5000 vertices runs about 50 times faster with this patch in place.
* 'get_platform()' now just returns 'sys.platform' on all platforms.Greg Ward2000-06-181-12/+4
|
* Additional tests for seek() method, written by Trent MickAndrew M. Kuchling2000-06-182-1/+36
|
* Pulled the MSVC++-specific hackery out to a new method, 'prelink_hook()',Greg Ward2000-06-171-36/+63
| | | | | | and added (empty) 'precompile_hook()' for symmetry. One can envision a much more elaborate hook mechanism, but this looks like it'll do for now.
* Renamed PATH_CREATED to _path_created, on the grounds that it's private andGreg Ward2000-06-171-8/+8
| | | | mutable, rather than public and constant.
* Changed 'remove_tree()' to use the new 'grok_environment_error()' functionGreg Ward2000-06-171-7/+6
| | | | instead of muddling through IOError and OSError exception objects itself.
* Changed to use the new 'grok_environment_error()' function instead ofGreg Ward2000-06-171-10/+1
| | | | muddling through IOError and OSError exception objects right here.
* Added 'grok_environment_error()' function to deal with the variousGreg Ward2000-06-171-0/+20
| | | | forms that IOError and OSError can take (taken from core.py).
* Bastian Kleineidam: added 'remove_tree()' function. Needed so thatGreg Ward2000-06-171-10/+25
| | | | | | | | | 'remove_tree()' can cooperate with 'mkpath()' in the maintenance of the PATH_CREATED cache: specifically, if a directory is created with 'mkpath()', later removed with 'remove_tree()', and 'mkpath()' is again requested to create it, then it would erroneously think the directory already existed, because it was in the PATH_CREATED cache. The patch (slightly tweaked by me) fixes that.
* Fixed install directory for header files on Unix.Greg Ward2000-06-171-1/+1
|
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-141-6/+0
| | | | | Removed a test which can fail when the default locale setting uses a Latin-1 encoding. The test case is not applicable anymore.
* James C. Ahlstron <jim@interet.com>:Fred Drake2000-06-131-1/+1
| | | | Thanks to Hubert Hoegl <hubert.hoegl@dlr.de> for finding this bug.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-131-3/+12
| | | | | | | | Fixed some tests to not cause the script to fail, but rather output a warning (which then is caught by regrtest.py as wrong output). This is needed to make test_unicode.py run through on JPython. Thanks to Finn Bock.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-131-2/+2
| | | | | Removed import of string module -- use string methods directly. Thanks to Finn Bock.
* Applied simplifications suggested by Greg Stein.Andrew M. Kuchling2000-06-101-15/+4
|
* Add contents of curses packageAndrew M. Kuchling2000-06-102-0/+68
|
* Added test for linnuxaudiodev module; directly adapted from sunaudiodevFred Drake2000-06-102-0/+21
| | | | | test. Someone with more Linux audio knowledge should at least take a brief look at it.
* Comment out an apparent debug printAndrew M. Kuchling2000-06-101-1/+1
|
* Patch from /F: this patch brings the CVS version of SRE in sync with theAndrew M. Kuchling2000-06-091-118/+178
| | | | latest public snapshot.""
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-081-2/+2
| | | | | Updated to the fix in %c formatting: it now always checks for a one character argument.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-081-3/+61
| | | | | | Added emulations of the C APIs in _locale to be used when the _locale module is not enabled. They return the correct values assuming the 'C' locale.
* Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb ifGreg Ward2000-06-081-0/+2
| | | | passed None.
* Include setup.cfg in the list of default files to distribute.Greg Ward2000-06-081-1/+5
|
* Moved the code that prunes the file list after reading the manifestGreg Ward2000-06-081-9/+14
| | | | | | | | | | template into a new method 'prune_file_list()', called from 'get_file_list()' rather than 'read_manifest()' -- this keeps 'read_manifest()' more general. Deleted the redundant call to 'exclude_pattern()' in 'make_distribution()' -- this had the same intention as 'prune_file_list()', but was incomplete (only pruned the release tree, not the build tree) and in the wrong place (the prune wouldn't be reflected in the manifest file).
* Renamed 'find_defaults()' to 'add_defaults()'.Greg Ward2000-06-081-13/+5
| | | | Deleted old, commented-out 'exclude_pattern()' method.
* Docstring addition binge.Greg Ward2000-06-081-15/+44
|
* Fixed so we print more than just the first line of help for options withGreg Ward2000-06-081-3/+3
| | | | a short form and text that wraps onto multiple lines.
* Docstring reformatting binge.Greg Ward2000-06-081-28/+23
|
* Cosmetic tweaks to imports, the 'show_formats()' function, and theGreg Ward2000-06-081-11/+19
| | | | 'help_options' list; also added an editorial comment.
* Made all debug output go through the 'debug_print()' method instead ofGreg Ward2000-06-081-75/+90
| | | | | | | | | | | | | | | | directly printing to stdout. This was a bit more work than it sounds like it should have been: * turned 'select_pattern()' and 'exclude_pattern()' from functions into methods, so they can refer to 'self' to access the method * commented out the *other* 'exclude_pattern()' method, which appears to be vestigial code that was never cleaned up when the 'exclude_pattern()' function was created * changed the one use of the old 'exclude_pattern()' method to use the new 'exclude_pattern()' (same behaviour, slightly different args) * some code and docstring reformatting * and, of course, changed all the debugging prints to 'debug_print()' calls Added/tweaked some regular ('self.announce()') output for better runtime feedback.
* Added 'debug_print()' method (driven by DEBUG global from distutils.core).Greg Ward2000-06-081-0/+9
|
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-071-0/+22
| | | | | Added some more codec aliases. Some of them are needed by the new locale.py encoding support.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-071-2/+37
| | | | | | | | | | Added support to set the default encoding of strings at startup time to the values defined by the C locale. The sys.setdefaultencoding() API is deleted after having set up the encoding, so that user code cannot subsequentely change the setting. This effectively means that only site.py may alter the default setting.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-071-11/+505
| | | | | | Added a new locale name aliasing engine which also supports locale encodings, a feature which is used by the new default encoding support in site.py.
* New codec which always raises an exception when used. ThisMarc-André Lemburg2000-06-071-0/+34
| | | | | codec can be used to effectively switch off string coercion to Unicode.
* Patch from Rene Liebscher: this adds "--help-foo" options to list theGreg Ward2000-06-078-25/+107
| | | | | | | | | | values that "--foo" can take for various commands: eg. what formats for "sdist" and "bdist", what compilers for "build_ext" and "build_clib". I have *not* reviewed this patch; I'm checking it in as-is because it also fixes a paper-bag-over-head bug in bdist.py, and because I won't have time to review it properly for several days: so someone else can test it for me, instead!
* Always look for the system config file in the Distutils module directory,Greg Ward2000-06-071-9/+12
| | | | | and call it "distutils.cfg" instead of "pydistutils.cfg" (personal config files are still ".pydistutils.cfg" or "pydistutils.cfg", though).
* Patch from Rene Liebscher:Greg Ward2000-06-071-15/+16
| | | | | | | | Look for personal config file in /home/greg on Windows, too: users will have to set /home/greg to use this, so it's not something that many people will use. But if python-dev comes up with the "right way" to divine a home directory on Windows, we can use that to set /home/greg and poof! -- personal Distutils config files on Windows.
* First crack at the Distutils "config" command. Unlike other commands, thisGreg Ward2000-06-061-0/+180
| | | | | | | | | | | | | | one doesn't *do* anything by default; it's just there as a conduit for data (eg. include dirs, libraries) from the user to the "build" commands. However, it provides a couple of Autoconf-ish methods ('try_compile()', 'try_link()', 'try_run()') that derived, per-distribution "config" commands can use to poke around the target system and see what's available. Initial experimenst with mxDateTime indicate that higher-level methods are necessary: analogs of Autoconf's AC_CHECK_HEADER, AC_CHECK_LIB will be needed too (and that's just to probe the C/C++ system: how to probe the Python system is wide open, and someday we'll have to worry about probing a Java system too).
* Fix 'reinitialize_command()' so it resets the 'have_run' flag for theGreg Ward2000-06-061-0/+1
| | | | command being reinitialized to false.
* Support for multiple distribution formats in one run.Greg Ward2000-06-061-17/+18
|
* 'get_outputs()' now returns an empty list instead of None.Greg Ward2000-06-061-1/+1
|
* Fixed syntax error.Greg Ward2000-06-041-9/+14
| | | | | | Half-fixed RPM 2 compatibility:added 'rpm_base' option, which must be set (to eg. /usr/src/redhat on a stock Red Hat system) if rpm2_mode is on. Still not quite working, though.
* Use 'ensure_string_list()' for 'formats' option, so that it can beGreg Ward2000-06-041-2/+1
| | | | spelled sensibly in a config file.
* Patch from Harry Henry Gebel:Greg Ward2000-06-041-59/+103
| | | | | | | | | | | | | | | | | Fills in question marks in help Reads scripts in from files rather than strings Adds RPM 2 compatibility mode (untested). Use of this mode requires that --bdist-base be specified because bdist_rpm has no way of detecting where RPM wants to find spec files and source files. An unmodified RedHat 5.0 system would require '--bdist-base=/usr/src/RedHat'. (You would also have to be root.) If the rpmrc file has been modified to allow RPMs to be built by normal users then --build-base would need to be changed accordingly. Formats the changelog. GPW: tweaked formatting, added some editorial comments.
* Added the 'ensure_*' methods from bdist_rpm; refactored 'ensure_filename()'Greg Ward2000-06-041-1/+72
| | | | and added 'ensure_dirname()'.