[issue10193] Simplify instrospection used by turtle module

2010-10-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyth

[issue10193] Simplify instrospection used by turtle module

2010-10-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Oct 27, 2010 at 8:10 AM, Éric Araujo wrote: .. > I wonder about the name “name”, since we’re looping other default values > here.) Good point. I changed that and committed in revision 85857. -- ___

[issue10193] Simplify instrospection used by turtle module

2010-10-27 Thread Éric Araujo
Éric Araujo added the comment: +1. This is a small but nice improvement for the added readability and foremost for the removal of obscure code (testing for varargs is easier to understand than “if co_flags & 0x4”). (“"=%r" % (name,)” reminds me I never remember to protect my RHS with %-form

[issue10193] Simplify instrospection used by turtle module

2010-10-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky resolution: -> accepted stage: -> commit review ___ Python tracker ___ ___

[issue10193] Simplify instrospection used by turtle module

2010-10-25 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The turtle module uses introspection in order to generate module level functions. Attached patch streamlines the introspection code by using inspect module function instead of direct access to cod object attributes. -- components: Library (Li