Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-27 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Since Anthony didn't speak up, I took his silence as assent and went ahead and committed the changes. r50881 and r50885 for *nix and Windows, just in case the deafening silence turns into a howl of derision :). - -Barry -BEGIN PGP SIGNATUR

Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-21 Thread Nick Coghlan
Georg Brandl wrote: > Perhaps you could put the objects into _testcapi. That way no new module > has to be deployed (is _testcapi installed on every system?) Let's not corrupt _testcapi with something that has an entirely differently purpose. Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTE

Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-20 Thread Terry Reedy
"Barry Warsaw" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > think this patch should go in 2.5. OTOH, I suspect most people just > don't care, which is why I've gotten almost no comments on the patch > (other than one or two mild nods of approval). I use help(ob) quite a bit, ha

Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-20 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 20, 2006, at 3:32 PM, Georg Brandl wrote: > Perhaps you could put the objects into _testcapi. That way no new > module > has to be deployed (is _testcapi installed on every system?) That doesn't seem importable in types.py either. You /coul

Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-20 Thread Georg Brandl
Barry Warsaw wrote: > Why did I do this instead of trying to hunt down some existing getset > or member descriptor? For one thing, there really aren't very good > candidates for such objects in the built-in modules. You can't use > objects like datetime.timedelta.days in types.py because d

Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-20 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 13, 2006, at 12:12 PM, Barry Warsaw wrote: > I've updated SF patch #1520294 and assigned it back to Georg for > another quick review. Neal commented in the patch that it might help to explain the implementation a bit. I'd like to do that

Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-13 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 13, 2006, at 9:15 AM, Nick Coghlan wrote: > Could you include a "look up late-breaking types" function in > types.py that site.py calls after it finishes setting up the > standard library path? > > Still a little hackish, I know, but it see

Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-13 Thread Nick Coghlan
Barry Warsaw wrote: > For example, I could change inspect locally so that it gets the type > of datetime.timedelta.days without adding a constant to types.py. Or > I could patch pydoc.py directly and leave even inspect.py out of it. > Or I could create some stupid internal type in some stup

Re: [Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-12 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 10, 2006, at 9:52 PM, Barry Warsaw wrote: > Patch #1520294 adds support for attributes defined with PyGetSetDef > in extension modules to pydoc, specifically so things like help > (array.array.typecode) gives something useful, like the attri

[Python-Dev] Support for PyGetSetDefs in pydoc

2006-07-10 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patch #1520294 adds support for attributes defined with PyGetSetDef in extension modules to pydoc, specifically so things like help (array.array.typecode) gives something useful, like the attribute's docstring for instance. Along the way, I added