Re: [matplotlib-devel] Cleanup tasks: Version checks

2011-04-12 Thread Michael Droettboom
On 04/12/2011 08:34 AM, Tobias Hoppe wrote: > I've read the status page for py3k and stumbled upon the cleanup tasks, > especially the version checks. I agree that calling sys.version_info[0] is > not a > smart choice. > > Why not use a new variable in __init__.py, something like a boolean > __is

[matplotlib-devel] Cleanup tasks: Version checks

2011-04-12 Thread Tobias Hoppe
I've read the status page for py3k and stumbled upon the cleanup tasks, especially the version checks. I agree that calling sys.version_info[0] is not a smart choice. Why not use a new variable in __init__.py, something like a boolean __is_py3k__. Every module which needs a choice between py2