summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Support non-namespace elements in *ElementNS of XMLGenerator.Martin v. Löwis2000-10-032-3/+15
|
* Recompile pattern if (?x) flag was found inside the pattern during theFredrik Lundh2000-10-032-2/+9
| | | | first scan. Closes bug #115040.
* Fix a few problems with the _Printer class and the license variable.Guido van Rossum2000-10-031-23/+41
| | | | | | | | | | | | | | | | 1. repr(license) will no longer print to stdout and read from stdin; you have to use license(). `license` is a short message explaining this. 2. Use lazy initialization so that startup isn't slowed down by the search for the LICENSE file. 3. repr(license) actually returns the desired string, rather than printing to stdout and returning ''. (Why didn't we think of this before?) 4. Use the pythonlabs license URL as the license fallback instead of the CNRI license handle.
* On some systems (like Solaris), the master end of a tty/pty pair isThomas Wouters2000-10-031-2/+0
| | | | | | apparently not considered a terminal, and so isatty(3) returns false. So we skip the test for ttyness of the master side and just check the slave side, which should really be a terminal.
* Fixed negative lookahead/lookbehind. Closes bug #115618.Fredrik Lundh2000-10-031-0/+2
|
* Undo Ping's change.Guido van Rossum2000-10-031-1/+1
| | | | | | | | | CGI scripts should *not* use /usr/bin/env, since on systems that don't come standard with Python installed, Python isn't on the default $PATH. Too bad that this breaks on Linux, where Python is in /usr/bin which is on the default path -- the point is that you must manually edit your CGI scripts when you install them.
* Change first line to #!/usr/bin/env python (really just to test check-in).Ka-Ping Yee2000-10-031-1/+1
|
* Bump version to 1.0.Greg Ward2000-10-031-1/+1
|
* Remove some debugging prints.Greg Ward2000-10-031-2/+0
|
* Fixed so --no-compile is a negative alias for --compile.Greg Ward2000-10-031-0/+1
|
* Added a long-winded comment (and commented-out comment to go with out)Greg Ward2000-10-031-1/+17
| | | | | | | | | | about how it would be nice to write absolute paths to the temporary byte-compilation script, but this doesn't work because it screws up the trailing-slash trickery done to 'prefix' in build_py's 'byte_compile()' method. Fixed to use 'execute()' instead of 'os.remove()' to remove the temporary script: now it doesn't blow up in dry-run mode!
* Provide a clearer error message when urlopen fails because of anJeremy Hylton2000-10-021-5/+13
| | | | | | | | | | invalid proxy setting. Minor change to call of unknown_url; always pass data argument explicitly since data defaults to None. PEP 42: Add as a feature that urllib handle proxy setting that contain only the host and port of the proxy.
* Remove redundent information from a docstring.Fred Drake2000-10-021-3/+0
|
* Delay import of py_compile until needed, since is is only used by theFred Drake2000-10-021-31/+45
| | | | | | | | PyZipFile class. End sentences in docstrings with periods. Reformat docstrings to be more similar to those of other modules.
* Do not set Konquerer to be the default browser if $KDEDIR is set -- someFred Drake2000-10-021-3/+1
| | | | | | Linux distributions which provide both KDE and Gnome set this environment variable even if the user is not using KDE. We do *not* want to start Konquerer if KDE is not running unless the user actually tells us to!
* Typo fix.Greg Ward2000-10-021-1/+1
|
* Added the ability to do byte-compilation at build time, currently offGreg Ward2000-10-021-5/+51
| | | | | | | | | by default (since compiling at install time works just fine). Details: - added 'compile' and 'optimize' options - added 'byte_compile()' method - changed 'get_outputs()' so it includes bytecode files A lot of the code added is very similar to code in install_lib.py; would be nice to factor it out further.
* Added --compile, --optimize options so users have an easy way toGreg Ward2000-10-021-0/+12
| | | | instruct the "install_lib" command from the command-line.
* Finished the overhaul of byte-compilation options: there's now a 6-wayGreg Ward2000-10-021-15/+66
| | | | | | | | | | | | choice between (compile, no-compile) * (optimize=0, optimize=1, optimize=2). Details: - added --no-compile option to complement --compile, which has been there for ages - changed --optimize (which never worked) to a value option, which expects 0, 1, or 2 - renamed 'bytecompile()' method to 'byte_compile()', and beefed it up to handle both 'compile' and 'optimize' options - fix '_bytecode_filenames()' to respect the new options
* Remove the temporary byte-compilation script when we're done with it.Greg Ward2000-10-021-0/+1
|
* From 'run()', only call 'bytecompile()' if we actually haveGreg Ward2000-10-011-1/+1
| | | | pure Python modules to compile.
* Tweaked 'byte_compile()' so it silently skips non-Python files, rather thanGreg Ward2000-10-011-5/+7
| | | | blowing up.
* Don't rename Tkinter to Tk; closes bug 115714Martin v. Löwis2000-10-011-6/+6
| | | | Subclass Error from Exception.
* Added a zip() test where one of the arguments is an instance whoseBarry Warsaw2000-10-011-0/+12
| | | | class has no __getitem__(). This raises an AttributeError.
* Add missing "s" from format string.Fred Drake2000-09-301-1/+1
| | | | This closes SourceForge patch #101714.
* Reduced the 'bytecompile()' method to a one-line wrapper aroundGreg Ward2000-09-301-15/+4
| | | | | 'util.byte_compile()'. Currently just reproduces the existing functionality -- doesn't use any of the fancy features in the new 'byte_compile()'.
* Added 'byte_compile(): an all-singing, all-dancing wrapper around theGreg Ward2000-09-301-2/+129
| | | | | | | | | | standard 'py_compile.compile()' function. Laundry list of features: - handles standard Distutils 'force', 'verbose', 'dry_run' flags - handles various levels of optimization: can compile directly in this interpreter process, or write a temporary script that is then executed by a new interpreter with the appropriate flags - can rewrite the source filename by stripping an optional prefix and preprending an optional base dir.
* Various docstring tweaks.Greg Ward2000-09-301-12/+14
| | | | | | Fixed 'subst_vars()' so it actually blows up like the docstring claims (and fixed the docstring not to claim it handles ${var}, which it doesn't).
* Reformat docstrings.Greg Ward2000-09-301-24/+23
|
* Standardized whitespace around function calls.Greg Ward2000-09-3014-339/+338
|
* Andrew Kuchling: changed so the '_path_created' dictionary is keyed onGreg Ward2000-09-301-5/+8
| | | | | absolute pathnames; this lets it keep working in the face of chdir'ing around.
* Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.Greg Ward2000-09-301-1/+2
|
* Expect a tuple (dest_name, copied) from 'copy_file()'.Greg Ward2000-09-302-3/+3
|
* Changed 'build_module()' so it returns the result of 'copy_file()'Greg Ward2000-09-301-1/+1
| | | | on the module file -- could be useful for subclasses overriding it.
* Changed 'copy_file()' so it returns a tuple (dest_name, copied) -- hopefully,Greg Ward2000-09-301-6/+7
| | | | this will please everyone (as if that's possible).
* In 'get_platform()', handle so-called POSIX systems that don't haveGreg Ward2000-09-301-1/+1
| | | | 'uname()' -- specifically NeXTSTEP.
* Changed to use the 'sub-commands' machinery:Greg Ward2000-09-301-21/+29
| | | | | | - added 'sub_commands' class attr - added 'has_*()' predicates referenced by the sub-command list - rewrote 'run()' so it's a trivial loop over relevant sub-commands
* Moved some things around for better organization.Greg Ward2000-09-301-26/+36
|
* Add mimetools testcase.Martin v. Löwis2000-09-302-0/+23
|
* Return after writing 7bit or 8bit encodings. Closes bug 115712Martin v. Löwis2000-09-301-2/+2
|
* Mention in the module's doc string that other functions of the socket APIMartin v. Löwis2000-09-301-1/+2
| | | | appear as methods on socket objects.
* Always use the same name for the exception defined in this module!Fred Drake2000-09-291-12/+12
| | | | | | Error reported via email by Pete Shinners <pete@visionart.com>. Fixed some indentation inconsistencies.
* Use string functions instead of methods to allow sharing this module with PyXMLMartin v. Löwis2000-09-291-3/+5
|
* Remove dependency from saxutils when loading xmlreaderMartin v. Löwis2000-09-291-2/+1
|
* Removed the extra_dirs and path_file metadata options.Thomas Heller2000-09-291-270/+260
| | | | | | | | | | | | | They are unneeded: All this stuff is already done by the install command which is run by bdist_wininst. One bug has been fixed: The root of the fake install tree is install.install_purelib, not install.install_lib! They are different if the extra_path option is used in the setup function. Rebuild after the changes to wininst.exe.
* Removed the implib_dir instance variable because it is unused.Thomas Heller2000-09-281-13/+9
| | | | | | | | | | | Removed get_ext_libname() because it is unused. Fixed get_libraries() to append an '_d' to the python debug import library. If MSVC is used, do not add 'pythonxx.lib' to the list of libraries, because this is handled better by a pragma in config.h. This should fix bug #115595, but it needs some more testing.
* popen4(): Added for Unix.Fred Drake2000-09-281-3/+7
| | | | Fixed a typo in a docstring.
* popen4(), class Popen4: popen4() support for Unix.Fred Drake2000-09-281-49/+64
| | | | | | | | | | | | popen2(), popen3(): Reversed order of bufsize and mode parameters to comply with what was here before (Python 1.5.2). class Popen3: Factored the __init__() into a more basic initializer and a helper method, to allow some re-use by the Popen4 class. Use os.dup2() instead of os.dup() to create the proper file descriptors in the child process. This closes SourceForge bug #115330 and partially closes #115353.
* Convert all entries on sys.path to absolute paths, and also update theFred Drake2000-09-281-8/+31
| | | | | | | | | | | | | __file__ attributes of already-imported modules to be absolute. This helps robustify the interpreter against os.chdir() calls from the application. Only remove setdefaultencoding() from sys if it exists; if this module is run as a script (since there is a _test() function that gets run), it broke because the script attempts to remove it again after the import of site has already done so. This allows the module to be run as a script again. makepath(): New function, standardizes all pathname normalization in one place.
* Avoid import of string module; it is only needed for expandvars().Fred Drake2000-09-283-48/+46
| | | | | | Never assume that os.sep is for the module-specific platform; use the right separator character directly. Fix some minor style consistency nits.