[Python-modules-team] Bug#704678: Further useful information.

Mathew Topper damm_horse at yahoo.co.uk
Mon Apr 15 15:08:41 UTC 2013


Interestingly, this was not a problem with the version of  argparse than I has packaged (1.2.1), but rather with the way I had packaged it.

I put an __init__.py file along with argparse.py into a folder and simply added

from argparse import *

into __init.py__.

This is where the problem lies because although argparse defines a __version__ attribute, it also defines an __all__ attribute which did not include __version__. So I added __version__ to the __all__ attribute list and now the ipython version check is OK.

I'm wondering if this is something I should tell the argparse developers or am I just using it in a funny way?

Cheers,

Mat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20130415/1b878a47/attachment.html>


More information about the Python-modules-team mailing list