| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
examples to flesh it out for the uninitiated. Here they are.
|
| |
|
| |
|
|
|
|
|
| |
test_new: new.code() noew takes two more arguments
test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)
|
|
|
|
| |
New tests cases for nested scopes.
|
|
|
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
| |
Track changes to new opcodes. Add hasfree list that applies to all
ops that use the closure.
|
|
|
|
|
| |
also normalize checks for syntax errors and delete commented out
definition of verify.
|
|
|
|
| |
test___all__.py: fail silently in check_all if the module can't be imported
|
|
|
|
|
| |
loaded - prevents second import later from succeeding spuriously - mostly of
use in regression tests where the module might get imported more than once
|
|
|
|
|
|
|
| |
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!).
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
are different (Ping didn't test this).
|
|
|
|
| |
are different (Ping couldn't test this).
|
|
|
|
|
| |
to find the prefix of strings, thus removing a warning, and simply
uses straightforward string slicing.
|
|
|
|
| |
Switch from octal escapes to hex escapes for other nonprintable characters.
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
know which names it exports. Didn't fix its ignorance, but patched
over the consequence.
|
|
|
|
|
| |
crop of changes, the files are small enough to do this). Also
adds "name" and "lookup" functions to unicodedata.
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
| |
fixed typo in ihooks docstring
|
| |
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
| |
don't fail if they're not available.
|
|
|
|
|
| |
otherwise used in the same code block. (Not sure this is the right
place, but there is no test_list_comprehensions.py.)
|
|
|
|
|
|
|
|
|
| |
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?)
|
| |
|
|
|
|
| |
they're run.
|
|
|
|
|
|
| |
commented it out), and added an explanation as to *why*.
Added period to docstring.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
now
None < all numeric types < all other types
so that once again
map(max, Squares(3), Squares(2))
equals
[0, 1, 4]
|
|
|
|
| |
non-numeric ones, so 4 < None again in the 'map' test.
|
|
|
|
| |
Allow pickle.py to be using with Jython unicode strings
|
|
|
|
| |
test_class.py.
|
| |
|
| |
|
|
|
|
| |
Suggested by Kevin Jacobs in bug report #129417.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
pdb (pdb calls it 'where'). Added 'bt' as an alias for 'where'.
|
| |
|