summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* The combo of getstate/setstate/jumpahead is very powerful, but needsTim Peters2001-01-261-6/+45
| | | | examples to flesh it out for the uninitiated. Here they are.
* SF bug 130030: Claim of bad betavariate algorithm.Tim Peters2001-01-261-6/+19
|
* Cosmetic changes after some sleep; no change in semantics.Tim Peters2001-01-251-64/+82
|
* PEP 227 implementationJeremy Hylton2001-01-253-1/+18
| | | | | test_new: new.code() noew takes two more arguments test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)
* PEP 227 implementationJeremy Hylton2001-01-252-0/+262
| | | | New tests cases for nested scopes.
* In subst_vars(), change the name of the argument from str to s toJeremy Hylton2001-01-251-2/+2
| | | | | | | | | prevent binding for str from masking use of builtin str in nested function. (This is the only case I found in the standard library where a local shadows a global or builtin. There may be others, but the regression test doesn't catch them.)
* PEP 227 implementationJeremy Hylton2001-01-251-1/+15
| | | | | Track changes to new opcodes. Add hasfree list that applies to all ops that use the closure.
* add extra tests to verify that co_varnames is being set up properlyJeremy Hylton2001-01-252-24/+23
| | | | | also normalize checks for syntax errors and delete commented out definition of verify.
* added a few more __all__ listsSkip Montanaro2001-01-254-8/+16
| | | | test___all__.py: fail silently in check_all if the module can't be imported
* fail more completely by deleting dbhash from sys.modules if bsddb can't beSkip Montanaro2001-01-251-1/+7
| | | | | loaded - prevents second import later from succeeding spuriously - mostly of use in regression tests where the module might get imported more than once
* Fix bugs introduced by rewrite (in particular, time-based initializationTim Peters2001-01-251-4/+38
| | | | | | | got broken). Also added new method .jumpahead(N). This finally gives us a semi-decent answer to how Python's RNGs can be used safely and efficiently in multithreaded programs (although it requires the user to use the new machinery!).
* Reworked random.py so that it no longer depends on, and offers all theTim Peters2001-01-251-257/+413
| | | | | | | | | | | functionality of, whrandom.py. Also closes all the "XXX" todos in random.py. New frequently-requested functions/methods getstate() and setstate(). All exported functions are now bound methods of a hidden instance. Killed all unintended exports. Updated the docs. FRED: The more I fiddle the docs, the less I understand the exact intended use of the \var, \code, \method tags. Please review critically. GUIDO: See email. I updated NEWS as if whrandom were deprecated; I think it should be.
* Fix the test output, now that escapes in repr() of string and UnicodeGuido van Rossum2001-01-242-6/+6
| | | | are different (Ping didn't test this).
* Fix the test output, now that escapes in repr() of string and UnicodeGuido van Rossum2001-01-241-3/+3
| | | | are different (Ping couldn't test this).
* New asynchat.py from Sam Rushing: this foregoes using the regex moduleAndrew M. Kuchling2001-01-241-36/+12
| | | | | to find the prefix of strings, thus removing a warning, and simply uses straightforward string slicing.
* Show '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.Ka-Ping Yee2001-01-243-162/+162
| | | | Switch from octal escapes to hex escapes for other nonprintable characters.
* There is no more Modules/Makefile, use toplevel Makefile.Neil Schemenauer2001-01-241-1/+1
|
* Updated version of asyncore.py from Sam Rushing:Andrew M. Kuchling2001-01-241-4/+40
| | | | | | Adds support for using select.poll() if it's available Move a 'map is None' test out of an else branch and into the right place
* Part of patch #102409: special cases for Cygwin:Andrew M. Kuchling2001-01-241-0/+18
| | | | | | | | | Lib/distutils/command/build_ext.py(build_ext.finalize_options): Add Cygwin specific code to append Python's library directory to the extension's list of library directories. (build_ext.get_libraries): Add Cygwin specific code to append Python's (import) library to the extension's list of libraries.
* test___all__ was failing on WIndows because locale.py doesn't reallyTim Peters2001-01-241-3/+10
| | | | | know which names it exports. Didn't fix its ignorance, but patched over the consequence.
* Move uchhash functionality into unicodedata (after the recentFredrik Lundh2001-01-241-7/+8
| | | | | crop of changes, the files are small enough to do this). Also adds "name" and "lookup" functions to unicodedata.
* a few more modules get __all__Skip Montanaro2001-01-2411-0/+31
|
* __all__: removed "error", "abort", "readonly", as these are notBarry Warsaw2001-01-241-2/+2
| | | | | | | exportable module attributes (they're attributes on the IMAP class). Fixed the case typo on Time2Internaldate. Does anybody run the test suite any more? <wink>
* It's "gopherlib" not "gopher".Barry Warsaw2001-01-241-1/+1
|
* Fixed autoraise glitches.Eric S. Raymond2001-01-231-5/+5
|
* added a few more __all__ listsSkip Montanaro2001-01-239-1/+26
| | | | fixed typo in ihooks docstring
* Expose the autoraise capability. Improve the documentation.Eric S. Raymond2001-01-231-10/+7
|
* Rewrite webbrowser.py to fix various bugs following Ka-Ping Yee'sEric S. Raymond2001-01-231-178/+222
| | | | | | | | complaints. The new version moves most of its initialization to package load time; it's simpler, faster, smaller, and adds support for Mozilla and Links. Interpretation of the BROWSER variable now works and is documented. The open_new entry point and methods are marked "deprecated; may be removed in 2.1".
* Restore alphabetic order. Also try to import rlcompleter and curses, butTim Peters2001-01-231-7/+15
| | | | don't fail if they're not available.
* Add simple test of list comprehension that uses a name that isn'tJeremy Hylton2001-01-232-0/+7
| | | | | otherwise used in the same code block. (Not sure this is the right place, but there is no test_list_comprehensions.py.)
* - Use "exec ... in dict" to avoid having to walk on eggshells; localsGuido van Rossum2001-01-221-14/+20
| | | | | | | | | no don't have to start with underscore. - Add spaces after commas in argument lists. - Only test dbhash if bsddb can be imported. (Wonder if there are more like this?)
* Typo repair.Tim Peters2001-01-221-1/+1
|
* Reorganize pickle/cPickle testing so the tests pass regardless of the orderTim Peters2001-01-224-170/+157
| | | | they're run.
* The "user" module cannot reasonably be tested. Moved to the end (andFred Drake2001-01-221-2/+6
| | | | | | commented it out), and added an explanation as to *why*. Added period to docstring.
* OK, changed my mind once more on this. The comparison hierarchy isGuido van Rossum2001-01-221-1/+1
| | | | | | | | | | | | | | now None < all numeric types < all other types so that once again map(max, Squares(3), Squares(2)) equals [0, 1, 4]
* Numeric-smelling objects now once again compare smaller thanGuido van Rossum2001-01-221-1/+1
| | | | non-numeric ones, so 4 < None again in the 'map' test.
* Finn Bock (SF patch #103349):Guido van Rossum2001-01-221-0/+33
| | | | Allow pickle.py to be using with Jython unicode strings
* Finn Bock (SF patch #103345): Avoid outdated exec form inGuido van Rossum2001-01-221-2/+2
| | | | test_class.py.
* Patch #103342: Make shutil.copytree more useful under Jython.Tim Peters2001-01-211-5/+8
|
* Patch #103343: Allow the important test_pkg to succeed under Jython.Tim Peters2001-01-212-6/+6
|
* In format(), consider sign only after grouping.Martin v. Löwis2001-01-211-4/+9
| | | | Suggested by Kevin Jacobs in bug report #129417.
* Patch #103344: Sort dicts from extcall for easier comparison with Jython.Tim Peters2001-01-212-41/+49
|
* Whitespace normalization.Tim Peters2001-01-213-13/+12
|
* Bug #128475: mimetools.encode (sometimes) fails when called from a thread.Tim Peters2001-01-211-2/+1
| | | | | | | | pythonrun.c: In Py_Finalize, don't reset the initialized flag until after the exit funcs have run. atexit.py: in _run_exitfuncs, mutate the list of pending calls in a threadsafe way. This wasn't a contributor to bug 128475, it just burned my eyeballs when looking at that bug.
* more __all__ updatesSkip Montanaro2001-01-2012-0/+34
|
* added some tests for urlencodeSkip Montanaro2001-01-201-0/+16
|
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-2039-0/+138
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* docstring typoSkip Montanaro2001-01-201-1/+1
|
* I've been using gdb a lot lately -- I'm missing 'bt' as a command inGuido van Rossum2001-01-201-1/+4
| | | | pdb (pdb calls it 'where'). Added 'bt' as an alias for 'where'.
* rewrite of robotparser.py by Bastian Kleineidam. Closes patch 102229.Skip Montanaro2001-01-201-60/+179
|