| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
both return true. This restores pydoc's ability to deduce argument lists
for functions and methods coded in Python.
|
|
|
|
|
| |
pydoc how to do something sensible with 2.2 descriptors. To see the
difference, browse __builtin__ via pydoc before and after the patch.
|
|
|
|
|
|
|
|
| |
type(x) is T
tests with
isinstance(x, T)
Also got rid of a future-generators import, left over from code that
wasn't intended to get checked in.
|
|
|
|
|
| |
mostly changes of / operators into //. Once or twice I did more or
less than recommended.
|
|
|
|
|
|
|
|
| |
the yield statement. I figure we have to have this in before I can
release 2.2a1 on Wednesday.
Note: test_generators is currently broken, I'm counting on Tim to fix
this.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
committed.
tokenize.py: I like these changes, and have tested them extensively
without even realizing it, so I just updated the docstring and the docs.
tabnanny.py: Also liked this, but did a little code fiddling. I should
really rewrite this to *exploit* generators, but that's near the bottom
of my effort/benefit scale so doubt I'll get to it anytime soon (it
would be most useful as a non-trivial example of ideal use of generators;
but test_generators.py has already grown plenty of food-for-thought
examples).
inspect.py: I'm sure Ping intended for this to continue running even
under 1.5.2, so I reverted this to the last pre-gen-branch version. The
"bugfix" I checked in in-between was actually repairing a bug *introduced*
by the conversion to generators, so it's OK that the reverted version
doesn't reflect that checkin.
|
|
|
|
|
| |
Bugfix candidate in inspect.py: it was referencing "self" outside of
a method.
|
| |
|
|
|
|
| |
(such as the exceptions in _weakref and _locale!)
|
|
|
|
| |
Make getmodule() on a module return the module itself.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
as long as the filename also doesn't end in a suffix that indicates
a binary file (according to the flags in imp.get_suffixes()).
Shrink try...except clauses and replace some of them with explicit checks.
|
|
|
|
| |
Add getabsfile() for getting a most-normalized path.
|
| |
|
|
|
|
| |
Robustify: don't rely on modules being present in sys.modules.
|
| |
|
| |
|
|
|