summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix header file usage so that NULL is defined. NULL is needed byMarc-André Lemburg2000-09-301-1/+1
| | | | unicodedata_db.h.
* 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
|
* Fixed spelling of module; closes bug 115712.Martin v. Löwis2000-09-301-1/+1
|
* 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.
* Replace to XXX notes to add references with real references.Fred Drake2000-09-301-2/+7
|
* 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.
* PyModule_AddStringConstant(): Make this static since it isn't usedFred Drake2000-09-291-1/+5
| | | | elsewhere in 1.5.2.
* Remove unused VERSION #define.Martin v. Löwis2000-09-291-5/+26
| | | | | Add PyModule_AddStringConstant and PyModule_AddObject if version <2.0, to allow to share this file with PyXML.
* 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
|
* Capitalized an "if" that should have been -- noted by Grant GriffinFred Drake2000-09-291-1/+1
| | | | <grant.griffin@honeywell.com>.
* Add a paragraph about an optimization bug in SGI compilers which affectsFred Drake2000-09-291-0/+7
| | | | | | | complex objects, and explain how to build so that Objects/complexobject.c is compiled without optimization. Closing SourceForge bug #110695 as "Won't Fix".
* Reversely --> ConverselyFred Drake2000-09-291-2/+2
| | | | This closes SourceForge bug #115673.
* Added a missing "is" -- noted by Grant GriffinFred Drake2000-09-291-1/+1
| | | | <grant.griffin@honeywell.com>.
* Spelling: internalization --> internationalizationFred Drake2000-09-291-56/+48
| | | | | | | | | | | | | | | | | | | | | Fixed displays of the interactive prompt in running text. These close SourceForge bug #115658. Also: Updated discussion of tuple unpacking to reflect the general ability to unpack any sequence type. Explained that it is possible to create tuples which contain mutable values, and noted in the dictionary section that such tuples cannot be used as keys. Noted that .pyc and .pyo files can be run directly when provided as the script parameter to the interpreter, and slightly clarified comments about using modules with only the byte compiled code. Removed some XXX comments that are no longer relevant. Removed commented-out paragraph about __private names being experimental. Adjusted markup for consistency in some places.
* 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.
* os.startfile() documentation, based on text from Tim Peters.Fred Drake2000-09-291-0/+18
|
* The 2.0b2 change to write .pyc files in exclusive mode (if possible)Tim Peters2000-09-291-1/+6
| | | | | | | | unintentionally caused them to get written in text mode under Windows. As a result, when .pyc files were later read-- in binary mode --the magic number was always wrong (note that .pyc magic numbers deliberately include \r and \n characters, so this was "good" breakage, 100% across all .pyc files, not random corruption in a subset). Fixed that.
* Update list of extension modules that may be interesting to enable onFred Drake2000-09-291-5/+6
| | | | | | most modern Unix flavors. The age of this portion of the README was noted in SourceForge bug #115625.
* Clarify that the Tk interface is not enabled by default when buildingFred Drake2000-09-281-2/+3
| | | | | | from sources, not in general. This closes SourceForge bug #115608.
* Add #ifdef's for platforms that don't have the constants POLLRDNORM andAndrew M. Kuchling2000-09-281-0/+8
| | | | friends. (Modified version of patch #101682 from Neil Schemenauer)
* Fix typo: config.stat --> config.statusFred Drake2000-09-281-1/+1
|
* Consistency nits, untabify.Fred Drake2000-09-281-38/+39
|
* Updated documentation relating to the various flavors of popen[234]()Fred Drake2000-09-282-24/+79
| | | | for Windows & Unix.
* 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.
* Minor style nits.Fred Drake2000-09-281-10/+10
|
* Remove imports of string when string methods will do.Fred Drake2000-09-281-5/+3
|
* Minor ANSIfication: lib_python no longer needs to be initializedFred Drake2000-09-281-4/+1
| | | | dynamically to support K&R C since we are requiring an ANSI compiler.
* Add regex and regsub to the list of undocumented obsolete modules.Fred Drake2000-09-281-0/+12
|
* Added some tests for the truncate() method; one is commented out becauseFred Drake2000-09-282-0/+25
| | | | | | | | cStringIO does not get it right (reported as SF bug #115531). Added test for ValueError when write() is called on a closed StringIO object. Commented out because cStringIO does not get it right (reported as SF bug #115530).
* Add truncate() method to StringIO objects.Fred Drake2000-09-281-0/+13
| | | | This closes SourceForge bug #115527.
* Remove change that had not been saved when the output was generated;Fred Drake2000-09-281-3/+0
| | | | | not terribly useful. Reported by Mark Favas <Mark.Favas@per.dem.csiro.au>.
* Fix includes; not including Python.h caused the module not to compile onFred Drake2000-09-281-1/+1
| | | | | | some platforms. This *should* close SourceForge patch #115506.
* Update the documentation for ConfigParser to match the recent changes.Fred Drake2000-09-271-2/+13
|
* Regression test for ConfigParser module.Fred Drake2000-09-272-0/+195
|
* Allow spaces in section names.Fred Drake2000-09-271-18/+33
| | | | | | | | | | | | | | | Do not expose the __name__ when reporting the list of options available for a section since that is for internal use. This closes SourceForge bug #115357. Additionally, define InterpolationDepthError and MAX_INTERPOLATION_DEPTH. The exception is raised by get*() when value interpolation cannot be completed within the defined recursion limit. The constant is only informative; changing it will not affect the allowed depth. Fix the exit from get() so that None is not returned if the depth is met or exceeded; either return the value of raise InterpolationDepthError.
* Fix buffer overflow vulnerabilities in calculate_path(). Code usedJeremy Hylton2000-09-271-16/+41
| | | | | | | copied strings from environment variables and argv[0] into fixed-length buffers without checking their length. Reported by Stan Bubrouski; advice on fix from John Viega.
* Updated hash values to match the new encoding (UTF-8) used in the test.Marc-André Lemburg2000-09-271-1/+1
|
* Fixed encoding to use an endianness independent format.Marc-André Lemburg2000-09-271-1/+3
|
* Fixed misleading qname in test_xmlgen_ns (reported by loewis).Lars Gustäbel2000-09-271-2/+2
|