summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Added math.rint() -- round according to current IEEE754 modeGuido van Rossum2000-05-112-0/+7
|
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-0/+6
| | | | | Added another test for string formatting (the one that produced the core dump now fixed in unicodeobject.c).
* Add a simple directory listing function.Guido van Rossum2000-05-091-9/+38
|
* Set HTTPServer class variable allow_reuse_address to 1, so restartingGuido van Rossum2000-05-091-0/+2
| | | | the server after it died doesn't require a wait period.
* Add class variable allow_reuse_address in TCPServer -- if nonzero, theGuido van Rossum2000-05-091-0/+5
| | | | server_bind() method calls setsockopt(SOL_SOCKET, SO_REUSEADDR, 1).
* ConfigParser.read():Fred Drake2000-05-091-1/+1
| | | | | Instead of wrapping 'filenames' value in a list if it's a string, wrap it if it's a string or unicode string.
* Caolan McNamara: properly undo the byte-stuffing of lines startingGuido van Rossum2000-05-091-0/+3
| | | | with a dot. [GvR change: only unstuff when line starts with two dots.]
* Added comment about the MSVC-specific kludge.Greg Ward2000-05-091-0/+10
|
* Deleted some modules that are no longer supported.Guido van Rossum2000-05-083-451/+0
|
* The usual...Guido van Rossum2000-05-0856-667/+5051
|
* Deleted the stdwin-based test() function.Guido van Rossum2000-05-081-66/+0
|
* Deleting all stdwin library modules.Guido van Rossum2000-05-0834-3829/+0
|
* if the GzipFile constructor fails, the __del__ method is stillJeremy Hylton2000-05-081-3/+7
| | | | called. catch the resulting AttributeError and exit cleanly.
* Don't use 'set_option()' or 'get_option()' method -- direct attribute access,Greg Ward2000-05-072-2/+2
| | | | or getattr/setattr, is all that's needed.
* Got rid of several little-used and not-very-useful methods: 'get_option()',Greg Ward2000-05-071-47/+2
| | | | 'get_options()', 'get_command_option()', 'get_command_options()'.
* Got rid of some little-used and not-very-useful methods: 'get_option()' andGreg Ward2000-05-071-44/+3
| | | | 'get_options()'.
* Added the ability to sneak extra flags onto the C compiler command lineGreg Ward2000-05-061-1/+3
| | | | via an 'extra_compile_args' option in the 'build_info' dictionary.
* Alas, Vladimir's patch was too aggressive, and started causing reallyGuido van Rossum2000-05-051-1/+1
| | | | | | | | weird errors. (E.g. see thread "weird bug in test_winreg" in python-dev.) Since it's actually useful to be able to re-run an individual test after running test.autotest, we keep the unloading code, but only for modules whose full name starts with "test.".
* Raise ImportError when os.fork does not exist.Guido van Rossum2000-05-041-0/+5
|
* patches from Mark HammondJeremy Hylton2000-05-024-14/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attached is a set of diffs for the .py compiler that adds support for the new extended call syntax. compiler/ast.py: CallFunc node gets 2 new children to support extended call syntax - "star_args" (for "*args") and "dstar_args" (for "**args") compiler/pyassem.py It appear that self.lnotab is supposed to be responsible for tracking line numbers, but self.firstlineno was still hanging around. Removed self.firstlineno completely. NOTE - I didnt actually test that the generated code has the correct line numbers!! Stack depth tracking appeared a little broken - the checks never made it beyond the "self.patterns" check - thus, the custom methods were never called! Fixed this. (XXX Jeremy notes: I think this code is still broken because it doesn't track stack effects across block bounaries.) Added support for the new extended call syntax opcodes for depth calculations. compiler/pycodegen.py Added support for the new extended call syntax opcodes. compiler/transformer.py Added support for the new extended call syntax.
* I know this is only a temporary stop-gap measure, but the match() andGuido van Rossum2000-05-021-2/+1
| | | | | | search() functions didn't even work because _fixflags() isn't idempotent. I'm adding another stop-gap measure so that you can at least use sre.search() and sre.match() with a zero flags arg.
* Caolan McNamara:Guido van Rossum2000-05-021-0/+1
| | | | | | | telnetlib is unable to connect to a few telnet daemons because of improper IAC handling, heres an attached oneliner to reject WILL messages which will allow many more telnet daemons to work with it, namely FreeBSD.
* Eric Raymond:Guido van Rossum2000-05-011-0/+8
| | | | Add a convenience function to generate C-compiler style error leaders.
* Eric Raymond:Guido van Rossum2000-05-011-17/+66
| | | | | | | | | | | | Added and documented the capability for shlex to handle lexical-level inclusion and a stack of input sources. Also, the input stream member is now documented, and the constructor takes an optional source-filename. The class provides facilities to generate error messages that track file and line number. [GvR: I changed the __main__ code so that it actually stops at EOF, as Eric surely intended -- however it returned '' instead of the None he was testing for.]
* Marc-Andre Lemburg:Guido van Rossum2000-05-011-2/+2
| | | | | The two methods .readline() and .readlines() in StreamReaderWriter didn't define the self argument. Found by Tom Emerson.
* Get rid of memory leak caused by assingning sys.exc_info() to a local.Guido van Rossum2000-04-281-2/+2
| | | | Store sys.exc_info()[:2] instead.
* Deviant1 didn't work as advertisedJeremy Hylton2000-04-271-4/+4
|
* add some more contains tests on the builtin typesJeremy Hylton2000-04-271-0/+47
|
* Added the "--root" option as a sort of meta-install-base; if supplied,Greg Ward2000-04-271-11/+31
| | | | | | it is forcibly prepended onto all installation directories, even if they are already absolute. Added 'dump_dirs()' to clean up the debug output a bit.
* Added 'change_root()' to forcibly slap a new root directory onto a pathname,Greg Ward2000-04-271-0/+26
| | | | | | even if it's already absolute. Currently only implemented for Unix; I'm not entirely sure of the right thing to do for DOS/Windows, and have no clue what to do for Mac OS.
* Michael Hudson fixes a case where execv() is called (for a test) withGuido van Rossum2000-04-261-1/+1
| | | | | an empty argument list -- another patch he's checking in will make this illegal (the first argument should always be the program name).
* Hacked things up a bit so that configuration variables are expandedGreg Ward2000-04-261-27/+52
| | | | | | | | | | | | | | | | | | in command-line options, and in two phases at that: first, we expand 'install_base' and 'install_platbase', and then the other 'install_*' options. This lets us do tricky stuff like install --prefix='/tmp$sys_prefix' ...oooh, neat. Simplified 'select_scheme()' -- it's no longer responsible for expanding config vars, tildes, etc. Define installation-specific config vars in 'self.config_vars', rather than in a local dictionary of one method. Also factored '_expand_attrs()' out of 'expand_dirs()' and added 'expand_basedirs()'. Added a bunch of debugging output so I (and others) can judge the success of this crazy scheme through direct feedback.
* Harry Henry Gebel: import exception classes.Greg Ward2000-04-261-1/+1
|
* Harry Henry Gebel: add 'long_description' to DistributionMetadata.Greg Ward2000-04-261-1/+7
|
* Supply short form for --manifest-only (-o) and --force-manifest (-f)Greg Ward2000-04-261-2/+2
| | | | options.
* Harry Henry Gebel:Greg Ward2000-04-261-5/+5
| | | | Fix 'sdist.write_manifest()' to respect the value of dry_run.
* Michael Hudson:Guido van Rossum2000-04-251-1/+29
| | | | | | | | I think that after this patch, all objects in the os module (with names that don't start with "_") that can have docstrings, do, on Linux at least. Also fix a nit in one of my spawn* docstrings.
* Bumped version to 0.8.2.Greg Ward2000-04-251-1/+1
|
* Harry Henry Gebel:Greg Ward2000-04-253-11/+20
| | | | | | | | | | | | | | | Adds bztar format to generate .tar.bz2 tarballs Uses the -f argument to overright old tarballs automatically, I am assuming that if the old tarball was wanted it would have been moved or else the version number would have been changed. Uses the -9 argument to bzip2 and gzip to use maximum compression. Compress uses the maximum compression by default. Tests for correct value for the 'compress' argument of make_tarball. This is one less place for someone adding new compression programs to forget to change.
* Lyle Johnson: fixed broken logic in 'native_path()'.Greg Ward2000-04-251-7/+7
|
* Fix to previous patch: send the request data when it's providedAndrew M. Kuchling2000-04-241-0/+2
|
* Added a provision to stop all threads before exiting from the test:Guido van Rossum2000-04-241-1/+7
| | | | | | the change to regrtest.py to unload all newly imported modules did something bad to the threads -- and I realized that they would never stop!
* Fix spelling error and remove Windows line endings.Guido van Rossum2000-04-241-1/+1
|
* Security patch for Unix by Chris McDonough.Guido van Rossum2000-04-241-7/+21
| | | | | | This uses the same precautions when trying to find a temporary directory as when the actual tempfile is created (using O_CREAT and O_EXCL). On non-posix platforms, nothing is changed.
* Fixed bug reported by JP Calderone: https:// URL's didn't work.Andrew M. Kuchling2000-04-231-2/+8
| | | | The fix also adds support for POSTing to an https URL
* Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.Greg Ward2000-04-231-2/+2
|
* Sporadic, untested Python 1.5.1 compatibility changes.Greg Ward2000-04-221-1/+1
|
* Merged in Python 1.5.1 compatibility changes from the 0.1.3 branch:Greg Ward2000-04-221-0/+24
| | | | added 'abspath()' and 'extend()'.
* Merged in code from the 0.1.5 release to handle IOError and OSErrorGreg Ward2000-04-221-6/+12
| | | | exceptions better.
* Check that 'self.formats' is good early on.Greg Ward2000-04-221-3/+8
|