summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace tweaks.Greg Ward2000-09-231-35/+32
|
* Reformat docstrings.Greg Ward2000-09-231-65/+63
| | | | Standardize use of whitespace on function calls.
* Maildir.__init__(): Use the correct filter for filenames, so that thisFred Drake2000-09-221-7/+4
| | | | class conforms to the maildir specification.
* - plug a memory leak due to circular listsNeil Schemenauer2000-09-221-0/+3
|
* - Replace debugleak flag with findleaks flag. The new SAVEALL GC option isNeil Schemenauer2000-09-221-6/+14
| | | | used to find cyclic garbage produced by tests.
* - Add test for new SAVEALL debugging flagNeil Schemenauer2000-09-221-31/+92
| | | | | - Use exceptions rather than asserts for failing tests. - Reorganize tests and produce some output if verbose option is set.
* Implemented new os.startfile function, unique to Windows, exposing aTim Peters2000-09-221-1/+1
| | | | | | | | | | | | | | | | subset of Win32 ShellExecute's functionality. Guido wants this because IDLE's Help -> Docs function currently crashes his machine because of a conflict between his version of Norton AntiVirus (6.10.20) and MS's _popen. Docs for startfile are being mailed to Fred (or just read the docstring -- it tells the whole story). Changed webbrowser.py to use os.startfile instead of os.popen on Windows. Changed IDLE's EditorWindow.py to pass an absolute path for the docs (hardcoding ShellExecute's "directory" arg to "." as used to be done let IDLE work, but made the startfile command exceedingly obscure for other uses -- the MS docs are terrible, of course, & still not sure I understand it). Note that Windows Python must link with shell32.lib now! That's where ShellExecute lives.
* More whitespace cleanup, to satisfy tabnanny.py. Don't trust -tt!Guido van Rossum2000-09-221-15/+15
|
* Get rid of the one tab in the file.Guido van Rossum2000-09-221-1/+1
| | | | Closes Bug #115054.
* White space cleanup, including one item that was an error under -tt.Fred Drake2000-09-221-5/+5
|
* Tweak what happens when run on non-Windows platforms: set install prefixGreg Ward2000-09-221-10/+5
| | | | | as well as scheme, and don't convert all installation paths (that's now done by the "install" command for us).
* Changed all paths in the INSTALL_SCHEMES dict to Unix syntax, and addedGreg Ward2000-09-221-43/+56
| | | | | | | | | | | | | | | | | | | | | | | 'convert_paths()' method to convert them all to the local syntax (backslash or colon or whatever) at the appropriate time. Added SCHEME_KEYS to get rid of one hard-coded list of attributes (in 'select_scheme()'). Default 'install_path_file' to true, and never set it false (it's just there in case some outsider somewhere wants to disable installation of the .pth file for whatever reason). Toned down the warning emitted when 'install_path_file' is false, since we no longer know why it might be false. Added 'warn_dir' flag to suppress warning when installing to a directory not in sys.path (again, we never set this false -- it's there for outsiders to use, specifically the "bdist_*" commands). Pulled the loop of 'change_root()' calls out to new method 'change_roots()'. Comment updates/deletions/additions.
* Fix 'convert_path()' so it returns immediately under Unix -- prevents blowingGreg Ward2000-09-221-5/+5
| | | | | up when the pathname starts with '/', which is needed when converting installation directories in the "install" command.
* Indent _connection_class so that it becomes HTTPS._connection_class.Martin v. Löwis2000-09-211-1/+1
|
* Revise the test case for pyexpat to avoid using asserts. Conform betterFred Drake2000-09-212-28/+36
| | | | to the Python style guide, and remove unneeded imports.
* The minidom.Node class has a debug attribute which, when its _debugGuido van Rossum2000-09-211-0/+2
| | | | | | | | | | flag is true, is set to a StringIO object that silently collects all debug messages. This is triggered by the Node._debug=1 statement at the top of test_minidom.py. After the tests, we better delete that StringIO object to avoid wasting memory. We also reset the _debug flag. (Note that this is an undetectable memory leak, and the memory doesn't get collected by the cycle-gc either, because it's all reachable -- it's just useless.)
* Paul Prescod <paul@prescod.net>:Fred Drake2000-09-211-17/+27
| | | | | | | | | Add support for parsing already-opened files. Make sure the parse() method closes exactly those files that it opens. Modified by FLD for better conformance to the Python style guide. This closes SourceForge patch #101512.
* - fixed yet another gcc -pedantic warningFredrik Lundh2000-09-211-0/+5
| | | | | - added experimental "expand" method to match objects - don't use the buffer interface on unicode strings
* SAXException.__getitem__(): Raise AttributeError instead of NameError.Fred Drake2000-09-211-1/+1
|
* fix bogus references to imp; makes test_minidom succeedJeremy Hylton2000-09-211-2/+2
|
* Now uses make_parser to create its parser (patch 101573).Lars Gustäbel2000-09-211-2/+2
|
* Added the make_parser function (patch 101571).Lars Gustäbel2000-09-211-2/+67
|
* Updated XMLGenerator to new DocumentHandler interface (patch 101572).Lars Gustäbel2000-09-211-11/+30
|
* Updated to correct DocumentHandler signatures. (patch 101570)Lars Gustäbel2000-09-211-6/+23
|
* Derived from Martin's SF patch 110609: support unbounded ints in ↵Tim Peters2000-09-211-23/+136
| | | | | | | | | | | | | | | | %d,i,u,x,X,o formats. Note a curious extension to the std C rules: x, X and o formatting can never produce a sign character in C, so the '+' and ' ' flags are meaningless for them. But unbounded ints *can* produce a sign character under these conversions (no fixed- width bitstring is wide enough to hold all negative values in 2's-comp form). So these flags become meaningful in Python when formatting a Python long which is too big to fit in a C long. This required shuffling around existing code, which hacked x and X conversions to death when both the '#' and '0' flags were specified: the hacks weren't strong enough to deal with the simultaneous possibility of the ' ' or '+' flags too, since signs were always meaningless before for x and X conversions. Isomorphic shuffling was required in unicodeobject.c. Also added dozens of non-trivial new unbounded-int test cases to test_format.py.
* Corran Webster: fix 'change_root()' to handle Mac OS paths.Greg Ward2000-09-211-1/+7
|
* change 2-space indent to 4-space indentJeremy Hylton2000-09-201-1081/+1079
|
* *Very* belated application of Thomas Heller's patch to handleGreg Ward2000-09-191-3/+86
| | | | | | | resource files. The gist of the patch is to treat ".rc" and ".mc" files as source files; ".mc" files are compiled to ".rc" and then ".res", and ".rc" files are compiled to ".res". Wish I knew what all these things stood for...
* Treat trailing colon in os.path.join("a:", "b") same way for DOS as inTim Peters2000-09-191-1/+1
| | | | | recent changes to ntpath.py and posixmodule.c. Thanks to Guido for pointing out the inconsistency!
* This patch adds a new Python C API called PyString_AsStringAndSize()Marc-André Lemburg2000-09-192-0/+19
| | | | | | | | | | | | | which implements the automatic conversion from Unicode to a string object using the default encoding. The new API is then put to use to have eval() and exec accept Unicode objects as code parameter. This closes bugs #110924 and #113890. As side-effect, the traditional C APIs PyString_Size() and PyString_AsString() will also accept Unicode objects as parameters.
* Part of SF patch 101481: on Windows, os.path.join("a:", "b") should yieldTim Peters2000-09-191-1/+1
| | | | "a:b", not "a:/b". Similar change was made to posixmodule.c earlier.
* test_userlist.py:Tim Peters2000-09-191-39/+52
| | | | | Added new test for new __contains__ method. Extensive editing to get rid of asserts.
* SF patch 101391: implemented UserList.__contains__.Tim Peters2000-09-191-0/+1
|
* Fix test errors.Paul Prescod2000-09-192-2/+1
|
* New test cases for the StringIO moduleMartin v. Löwis2000-09-192-0/+24
|
* Don't print specific Node instances unless running verbosely.Martin v. Löwis2000-09-192-4/+10
| | | | Closes Bug #114775.
* Fixed the error reporting (raise of TestFailed) for the zip() andBarry Warsaw2000-09-191-2/+2
| | | | zip(None) tests. Found by Finn Bock a while ago.
* Support sizehint in _fileobject.readlines, as documented.Martin v. Löwis2000-09-191-1/+5
|
* Set the 'nt' installation scheme for the install command even if runThomas Heller2000-09-191-8/+25
| | | | | on other systems, so that data, headers, scripts are included in the installer.
* Support sizehint in StringIO.readlines, as documented.Martin v. Löwis2000-09-191-1/+5
|
* Patch #101121, by Ka-Ping Yee: cosmetic cleanup of cgi.py, using myGuido van Rossum2000-09-191-37/+37
| | | | | | | | | | | | style conventions. (Ping has checkin privileges but apparently ignores them at the moment.) Ping improves a few doc strings and fixes style violations like foo ( bar ). An addition of my own: rearrange the printing of various items in test() so that the (long) environment comes at the end. This avoids having to scroll if you want to see the current directory or command line arguments.
* An honest attempt to make this work on Unix, Windows, and evenGuido van Rossum2000-09-191-81/+173
| | | | | | Macintosh (the latter untested). This closes Bug #110839.
* Only supply popen2, popen3 when fork exists.Guido van Rossum2000-09-191-13/+15
| | | | (This avoids defining non-working versions of these on the Mac.)
* Do not close socket when a Content-Length is 0. This make theJeremy Hylton2000-09-181-15/+20
| | | | | | | interface consistent: The client is responsible for closing the socket, regardless of the amount of data received. Restore suport for set_debuglevel call.
* Test output that goes with updated test_minidom.Paul Prescod2000-09-181-0/+44
|
* Fix serious typo!Fred Drake2000-09-181-1/+3
| | | | Add the new constants to the module docstring.
* Change assertions to confirmations so that optimization doesn't disablePaul Prescod2000-09-181-46/+66
| | | | checks.
* Fix up the cleanup of the temporary DB so it works for BSD DB'sFred Drake2000-09-181-4/+12
| | | | compatibility layer as well as "classic" ndbm.
* Reduce the number of imports needed.Fred Drake2000-09-181-20/+23
| | | | Make the code conform better to the Python style guide.
* Richard Mortier <rmm1002@users.sourceforge.net>:Fred Drake2000-09-181-0/+2
| | | | Add the constants "printable" and "punctuation" to the string module.