I've spent the better part of today tracking down a puzzling behavior
with pygr.Data. I distilled it down to the code below. It does vastly
different things depending whether the reload(pygr.Data) line is
commented out or not.

When is commented out it prints a SourceUrl() instance but does not
download anything, when the reload is allowed to execute, it will
download the file (every time!) and it will print out the path to the
file ...

---------------------------

import pygr.Data
from pygr.downloader import SourceURL

url = SourceURL('http://www.doe-mbi.ucla.edu/~leec/test.gz')
url.__doc__ = 'test download'
pygr.Data.Bio.Test.Download1 = url
pygr.Data.save()

#reload(pygr.Data)

f = pygr.Data.Bio.Test.Download1( )
print f

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to