summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* _PyUnicode_Fini(): Initialize the local freelist walking variable `u'Barry Warsaw2000-10-031-2/+3
| | | | | | after unicode_empty has been freed, otherwise it might not point to the real start of the unicode_freelist. Final closure for SF bug #110681, Jitterbug PR#398.
* Accept keyword arguments for (most) pattern and match objectFredrik Lundh2000-10-031-31/+45
| | | | methods. Closes buglet #115845.
* Recompile pattern if (?x) flag was found inside the pattern during theFredrik Lundh2000-10-032-2/+9
| | | | first scan. Closes bug #115040.
* In _PyUnicode_Fini(), decref unicode_empty before tearng down the freeGuido van Rossum2000-10-031-2/+2
| | | | list. Discovered by Barry, fix approved by MAL.
* Remove old note that os.popen() on Windows is unreliable; this is noFred Drake2000-10-031-3/+1
| | | | longer true.
* 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.
* Clarify that isatty is only guaranteed to return true for slave ends ofThomas Wouters2000-10-031-1/+1
| | | | terminals, not the master end (though it does, on most systems.)
* 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.
* Bump the release number for the upcoming candidate.Fred Drake2000-10-031-1/+1
|
* Fixed negative lookahead/lookbehind. Closes bug #115618.Fredrik Lundh2000-10-032-4/+3
|
* _PyImport_Fini(): Closed small memory leak when an embedded app callsBarry Warsaw2000-10-031-0/+2
| | | | | Py_Initialize()/Py_Finalize() in a loop. _PyImport_Filetab needed to be deallocated. Partial closure of SF #110681, Jitterbug PR#398.
* Jim Ahlstrom sent a few corrections to my changes. (Thanks!)Fred Drake2000-10-031-20/+27
|
* 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
|
* $OFF_SITE_LINK_ICON: Don't define here; simply defining it overrides aFred Drake2000-10-031-7/+11
| | | | | | | | | | | | | | | | | | | definition provided by previously loaded configuration code, and testing whether it's defined isn't needed since the default was false anyway. get_link_icon(): Add support for $OFF_SITE_LINK_ICON_HEIGHT and $OFF_SITE_LINK_ICON_WIDTH, giving the dimensions of the icon being used. This can make for faster page display. Both are optional. make_my_titlegraphic(): Fix insertion of the off-site icon link. do_env_funcdesc(): Remove debugging print. handle_rfclike_reference(): Remove trailing colon from first line; it doesn't really make sense and looks bad if we add an icon to mark off-site links.
* Replace minimal \seetext references with better annotated \seerfcFred Drake2000-10-031-7/+8
| | | | | references, telling the reader more about what to expect at the other end of the links.
* 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.
* Added some comments on the interaction of reload() and extension modules.Fred Drake2000-10-021-1/+6
| | | | Based on comments from Chris Barker <cbarker@jps.net>.
* Add deprecation note since the XML support is shaping up.Fred Drake2000-10-021-0/+3
|
* Remove redundent information from a docstring.Fred Drake2000-10-021-3/+0
|
* Minor change to attributes so that the stylesheets can have better control.Fred Drake2000-10-021-1/+1
|
* Remove comment about -lucb for the mmap module -- the module has beenFred Drake2000-10-021-3/+2
| | | | | | | changed so that this is no longer needed on the only platform this is known to have been needed on. Fixed on indentation-related consistency nit.
* 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.
* Substantially revised documentation for the zipfile module, partially basedFred Drake2000-10-021-60/+164
| | | | | | on revised text from Jim Ahlstrom <jim@interet.com>. This closes SourceForge bug #115681.
* Minor stylesheet nit.Fred Drake2000-10-021-1/+2
|
* Supporting rl_library_version is more trouble than it's worth --Guido van Rossum2000-10-021-8/+1
| | | | | | | readline doesn't have it before readline 2.2 and there's no compile-time way to find out which readline version is in use. Sigh. GNU readline sucks.
* Added Daniel Dittmar, for helping get the configuration working forFred Drake2000-10-021-0/+1
| | | | Reliant UNIX.
* make_icon_filename(): Convenience function to turn a partial filenameFred Drake2000-10-021-20/+45
| | | | | | | | | | | into a usable filename using $ICONSERVER and $IMAGE_TYPE as needed. get_link_icon(): Function to examine a URL and return the string to use to insert an icon if the link points off-site, if needed and $OFF_SITE_LINK_ICON is set. Adjusted appropriate places to use these new functions.
* typoJeremy Hylton2000-10-021-1/+1
|
* Fix a bug in stack overflow error handling. This fixes half of BugGuido van Rossum2000-10-021-1/+1
| | | | | | | | | | | #115555. The error from s_push() on stack overflow was -1, which was passed through unchanged by push(), but not tested for by push()'s caller -- which only expected positive error codes. Fixed by changing s_push() to return E_NOMEM on stack overflow. (Not quite the proper error code either, but I can't be bothered adding a new E_STACKOVERFLOW error code in all the right places.)
* Minor usage fix.Fred Drake2000-10-021-3/+5
| | | | | Add a note that some way of reliably detecting the use of KDE would be really nice.
* 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!
* Add documentation and warnings for the isCallable(), isMappingType(),Fred Drake2000-10-021-0/+50
| | | | | | isNumberType(), and isSequenceType() functions. This closes SourceForge bug #115789.
* 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.
* my_getpagesize(): New function; returns the size of a page of memory.Fred Drake2000-10-011-12/+18
| | | | | | | | | | Versions are defined for Windows and Unix; the Unix flavor uses sysconf() to get the page size; this avoids the use of getpagesize(), which is deprecated and requires an additional library on some platforms (specifically, Reliant UNIX). This partially closes SourceForge bug #113797.
* 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.
* Added skeletal "Building Extensions: Tips and Tricks" section. ThisGreg Ward2000-09-301-0/+25
| | | | is where all the FAQs about extension-building will be answered.
* 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()'.