[Python-il] Statically analyzing a Python module to find assignments

Omer Zak w1 at zak.co.il
Sat Apr 16 16:43:58 IDT 2011


On Sat, 2011-04-16 at 09:37 -0400, cool-RR wrote:

>         
>         Then perhaps such metadata shouldn't be kept in __init__.py in
>         the first place? 
>         
>         - Tal
>         
> 
> 
> That would definitely be an easy solution: Tell simpack writers to
> have a file "metadata.txt" or whatever. But I find it less elegant.

How about naming it metadata.py or something similar (Django uses the
name settings.py)?

--- Omer


-- 
$ python
>>> type(type(type))
<type 'type'>          My own blog is at http://www.zak.co.il/tddpirate/
My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html



More information about the Python-il mailing list