[issue1916] Add inspect.isgenerator

2008-02-17 Thread Facundo Batista
Facundo Batista added the comment: Fixed in r60884. Thank you all very much! -- nosy: +facundobatista resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1916] Add inspect.isgenerator

2008-02-17 Thread Facundo Batista
Changes by Facundo Batista: Removed file: http://bugs.python.org/file9445/test_inspect.py.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list ma

[issue1916] Add inspect.isgenerator

2008-02-17 Thread Facundo Batista
Changes by Facundo Batista: Removed file: http://bugs.python.org/file9444/test_inspect.py.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list ma

[issue1916] Add inspect.isgenerator

2008-02-17 Thread Javier Mansilla
Javier Mansilla added the comment: And now I'm attaching a new patch test_inspect.py.diff with a more complete test coverage. You didn't add isgenerator nor isgeneratorfunction tests. I did. Added file: http://bugs.python.org/file9447/test_inspect.py.diff __ Trac

[issue1916] Add inspect.isgenerator

2008-02-17 Thread Javier Mansilla
Javier Mansilla added the comment: My dear, what is wrong with my browser (or with me). Now, yes, the one with the typo. Added file: http://bugs.python.org/file9446/inspect.py.diff __ Tracker <[EMAIL PROTECTED]>

[issue1916] Add inspect.isgenerator

2008-02-17 Thread Javier Mansilla
Javier Mansilla added the comment: Sorry, I attached the wrong file The previous post saying "fixing typo" should attached inspect.py.diff. This is the one. Added file: http://bugs.python.org/file9445/test_inspect.py.diff __ Tracker <[EMAIL PROTECTED]>

[issue1916] Add inspect.isgenerator

2008-02-17 Thread Javier Mansilla
Javier Mansilla added the comment: I merged my working copy with your patches and they look fine. I fixed a typo on the method doc ("is" instead of "i") so I'm attaching my inspect.py.diff patch -- nosy: +javimansilla Added file: http://bugs.python.org/file9444/test_inspect.py.diff ___

[issue1916] Add inspect.isgenerator

2008-02-07 Thread Guilherme Polo
Guilherme Polo added the comment: Adding a patch that fixes inspect test and doc. Added file: http://bugs.python.org/file9381/inspect_doc_and_test.patch __ Tracker <[EMAIL PROTECTED]> __ _

[issue1916] Add inspect.isgenerator

2008-02-07 Thread Guilherme Polo
Guilherme Polo added the comment: I'm attaching a patch, it adds two new functions and removes some constants defined in the code that can be retrieved from compiler.consts Added file: http://bugs.python.org/file9380/inspect.py.diff __ Tracker <[EMAIL PROTECTED]>

[issue1916] Add inspect.isgenerator

2008-02-07 Thread Guilherme Polo
Guilherme Polo added the comment: Maybe there should be two new functions then ? isgeneratorfunction and isgenerator. __ Tracker <[EMAIL PROTECTED]> __

[issue1916] Add inspect.isgenerator

2008-02-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I know two real usages: - the nose and py.test packages accept a generator function, as described here: http://codespeak.net/py/dist/test.html#generative-tests-yielding-more-tests http://somethingaboutorange.com/mrl/projects/nose/#test-generators. function

[issue1916] Add inspect.isgenerator

2008-02-06 Thread Guilherme Polo
Guilherme Polo added the comment: Is this wanted at all ? After checking http://www.python.org/dev/summary/2006-06-01_2006-06-15/#inspect-isgenerator that points to: http://mail.python.org/pipermail/python-dev/2006-May/065334.html http://mail.python.org/pipermail/python-dev/2006-June/065508.html

[issue1916] Add inspect.isgenerator

2008-01-23 Thread Christian Heimes
New submission from Christian Heimes: The inspect module has no function isgenerator. -- components: Documentation, Library (Lib) keywords: easy messages: 61577 nosy: tiran priority: low severity: normal status: open title: Add inspect.isgenerator type: rfe versions: Python 2.6, Python 3