- 15 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
distinguish __dict__ and __defined__ any more. In the C structure, tp_cache takes its place -- but this hasn't been implemented yet.
-
- 23 Eyl, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
point out, pydoc doesn't tell you where class attributes were defined, gets several new 2.2 features wrong, and isn't aware of some new features checked in on Thursday <wink>. pydoc is hampered in part because inspect.py has the same limitations. Alas, I can't think of a way to fix this within the current architecture of inspect/pydoc: it's simply not possible in 2.2 to figure out everything needed just from examining the object you get back from class.attr. You also need the class context, and the method resolution order, and tests against various things that simply didn't exist before. OTOH, knowledge of how to do that is getting quite complex, so doesn't belong in pydoc. classify_class_attrs takes a different approach, analyzing all the class attrs "at once", and returning the most interesting stuff for each, all in one gulp. pydoc needs to be reworked to use this for classes (instead of the current "filter dir(class) umpteen times against assorted predicates" approach).
-
- 22 Eyl, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
easy for 2.2 new-style classes, but trickier for classic classes, and different approaches are needed "depending". The function will allow later code to treat all flavors of classes uniformly.
-
- 20 Eyl, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
both return true. This restores pydoc's ability to deduce argument lists for functions and methods coded in Python.
-
Tim Peters yazdı
pydoc how to do something sensible with 2.2 descriptors. To see the difference, browse __builtin__ via pydoc before and after the patch.
-
- 16 Eyl, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
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.
-
- 04 Eyl, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
mostly changes of / operators into //. Once or twice I did more or less than recommended.
-
- 15 Tem, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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.
-
- 29 Haz, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
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.
-
- 18 Haz, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Bugfix candidate in inspect.py: it was referencing "self" outside of a method.
-
- 13 Nis, 2001 3 kayıt (commit)
-
-
Ka-Ping Yee yazdı
-
Ka-Ping Yee yazdı
(such as the exceptions in _weakref and _locale!)
-
Ka-Ping Yee yazdı
Make getmodule() on a module return the module itself.
-
- 12 Nis, 2001 1 kayıt (commit)
-
-
Ka-Ping Yee yazdı
-
- 10 Nis, 2001 1 kayıt (commit)
-
-
Ka-Ping Yee yazdı
-
- 23 Mar, 2001 2 kayıt (commit)
-
-
Ka-Ping Yee yazdı
-
Ka-Ping Yee yazdı
-
- 16 Mar, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 10 Mar, 2001 1 kayıt (commit)
-
-
Ka-Ping Yee yazdı
-
- 02 Mar, 2001 3 kayıt (commit)
-
-
Ka-Ping Yee yazdı
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.
-
Ka-Ping Yee yazdı
Add getabsfile() for getting a most-normalized path.
-
Ka-Ping Yee yazdı
-
- 01 Mar, 2001 2 kayıt (commit)
-
-
Ka-Ping Yee yazdı
Robustify: don't rely on modules being present in sys.modules.
-
Ka-Ping Yee yazdı
-
- 28 Şub, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 27 Şub, 2001 1 kayıt (commit)
-
-
Ka-Ping Yee yazdı
-