This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bgamari
Recipients bgamari
Date 2011-09-28.19:32:01
SpamBayes Score 9.892262e-06
Marked as misclassified No
Message-id <1317238322.67.0.925527851228.issue13055@psf.upfronthosting.co.za>
In-reply-to
Content
The distutils.LooseVersion constructor currently only calls parse if vstring has a value. Unfortunately, this means that a user passing in vstring="" or vstring=None gets a version object with self.vstring and self.version unset. This wreaks havoc later when the user tries to do anything with their object. I've attached two possible solutions.

The first attempts to fix the issue by raising an exception when an invalid vstring is given. This seems like the most reasonable treatment of this case as there is no reasonable way to fully initialize the object. The second works around the issue, initializing the uninitialized fields with "" in the event of an invalid vstring.
History
Date User Action Args
2011-09-28 19:32:02bgamarisetrecipients: + bgamari
2011-09-28 19:32:02bgamarisetmessageid: <1317238322.67.0.925527851228.issue13055@psf.upfronthosting.co.za>
2011-09-28 19:32:02bgamarilinkissue13055 messages
2011-09-28 19:32:01bgamaricreate