Discussion:
[PEAK] simplegeneric & Python 3
Thomas Kluyver
2011-08-14 16:01:49 UTC
Permalink
Hi,

While working on IPython, I've patched simplegeneric to work with Python 3.
It didn't require any major changes. The diff is here if you want to
incorporate it:

https://github.com/takluyver/ipython/commit/34f06125b2f989f0d096f57642a2a0196c98bb1a

Our installation process for Python 3 runs all the code through 2to3, but
that doesn't actually make any changes to simplegeneric, so with this patch,
it should be directly usable in Python 3.

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eby-sarna.com/pipermail/peak/attachments/20110814/5b7f5100/attachment.html
P.J. Eby
2011-09-01 03:55:04 UTC
Permalink
Post by Thomas Kluyver
Hi,
While working on IPython, I've patched simplegeneric to work with
Python 3. It didn't require any major changes. The diff is here if
<https://github.com/takluyver/ipython/commit/34f06125b2f989f0d096f57642a2a0196c98bb1a>https://github.com/takluyver/ipython/commit/34f06125b2f989f0d096f57642a2a0196c98bb1a
Our installation process for Python 3 runs all the code through
2to3, but that doesn't actually make any changes to simplegeneric,
so with this patch, it should be directly usable in Python 3.
I've implemented a similar change in SVN now (with a revamped test
suite as well), and released simplegeneric 0.8 to PyPI. Thanks for the report!
Thomas Kluyver
2011-09-01 07:25:43 UTC
Permalink
Great - thanks for this.

IPython people, we should "upgrade" the bundled simplegeneric to 0.8,
although the code changes are probably minimal.

Thomas
Post by Thomas Kluyver
Hi,
While working on IPython, I've patched simplegeneric to work with Python
3. It didn't require any major changes. The diff is here if you want to
<https://github.com/takluyver/**ipython/commit/**
34f06125b2f989f0d096f57642a2a0**196c98bb1a<https://github.com/takluyver/ipython/commit/34f06125b2f989f0d096f57642a2a0196c98bb1a>
https://github.com/**takluyver/ipython/commit/**
34f06125b2f989f0d096f57642a2a0**196c98bb1a<https://github.com/takluyver/ipython/commit/34f06125b2f989f0d096f57642a2a0196c98bb1a>
Our installation process for Python 3 runs all the code through 2to3, but
that doesn't actually make any changes to simplegeneric, so with this patch,
it should be directly usable in Python 3.
I've implemented a similar change in SVN now (with a revamped test suite as
well), and released simplegeneric 0.8 to PyPI. Thanks for the report!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eby-sarna.com/pipermail/peak/attachments/20110901/de107935/attachment.html
Loading...