aigeano / pympler

Automatically exported from code.google.com/p/pympler
Apache License 2.0
0 stars 0 forks source link

Python 3.0 compliance #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
All pympler modules and the infrastructure should be made compatible with
Python 3.0. 

* 2to3 can help to find incompatibilities in modules
* We need to find a way of importing modules that works with all supported
Python versions (*/__init__.py files)
* test with "python runtest.py -P python3.0"

Original issue reported on code.google.com by lhae...@gmail.com on 26 Oct 2008 at 1:34

GoogleCodeExporter commented 9 years ago
A possibility to avoid SyntaxErrors when importing the __init__ files is to 
wrap the
Python 2.6/3.0 relative import statements in strings:

try:
  from module import *
except ImportError:
  exec ("from .module import *")

Not pretty, but it works.

Original comment by lhae...@gmail.com on 26 Oct 2008 at 4:56

GoogleCodeExporter commented 9 years ago
Mandatory for Pympler 0.2.

* asizeof and tracker work with Python 3.0
* all muppy modules cannot be imported by Python 3.0 yet

Original comment by lhae...@gmail.com on 7 Feb 2009 at 9:48

GoogleCodeExporter commented 9 years ago

Original comment by lhae...@gmail.com on 19 Feb 2011 at 3:04