summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Donn Cave <donn@u.washington.edu>:Fred Drake2000-10-061-0/+10
| | | | | | | | Script to regenerate platform-specific modules of constants. [I moved common paths to variables for easier reading by humans. -- FLD] This closes SourceForge patch #101781.
* [ Bug #110677 ] PRIVATE: various minor Tkinter things (PR#388)Guido van Rossum2000-10-061-12/+15
| | | | | | | | | | | | | | http://sourceforge.net/bugs/?func=detailbug&group_id=5470&bug_id=110677 Canvas.CanvasItem & Canvas.Group: - bind lacks an optional "add" param - unbind lacks an optional "funcid" param - tkraise/lower should call self.canvas.tag_XXXX (markus.oberhumer@jk.uni-linz.ac.at) Note: I'm *not* fixing "bbox() return value is inconsistent with Canvas.bbox()" -- it might break existing code.
* SF bug 115831 and Ping's SF patch 101751, 0.0**-2.0 returns inf rather thanTim Peters2000-10-061-30/+55
| | | | | | | | | | raise ValueError. Checked in the patch as far as it went, but also changed all of ints, longs and floats to raise ZeroDivisionError instead when raising 0 to a negative number. This is what 754-inspired stds require, as the "true result" is an infinity obtained from finite operands, i.e. it's a singularity. Also changed float pow to not be so timid about using its square-and-multiply algorithm. Note that what math.pow does is unrelated to what builtin pow does, and will still vary by platform.
* Add support for "import re" -- it uses pre, but user code does not needFred Drake2000-10-051-0/+10
| | | | to.
* translation(): Minor optimization patch which avoids instantiating theBarry Warsaw2000-10-051-1/+5
| | | | default value's instance unless it's absolutely necessary.
* Fix Bug #115907: encode '=' as '=3D' and not '=='Jeremy Hylton2000-10-051-121/+122
|
* Fix for test_class.py on Win64. id(self), which on Win64 returns aTrent Mick2000-10-041-1/+1
| | | | | PyLong, was used for the return value of a class __hash__ method, which *must* return a PyInt. Solution: hash() the id(self) value.
* test_popen2 broke on Windows shortly after 2.0b2 was released. Fixed it.Tim Peters2000-10-031-1/+1
|
* 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.