Closed GoogleCodeExporter closed 8 years ago
Rewriting the code without a list comprehension works, and produces working
version of "urlparse.py" running under Shed Skin.
Original comment by na...@animats.com
on 8 Nov 2010 at 6:32
thanks for the issues, john! :D I added hextochrtest.py to the unit tests, and
will try to fix the problem later this week.
I'm not sure which version of urlparse.py you were able to compile, but mine
uses collections.namedtuple and mixin-classes, both of which aren't supported..?
Original comment by mark.duf...@gmail.com
on 8 Nov 2010 at 8:42
Here's a version of "urlparse.py" that works with Shed Skin.
I rewrote the code where necessary to make it work with Shed Skin. It didn't
really need "namedtuple" or mixins.
This code still works with CPython.
I've been working on converting various library modules. If I can get
libraries all the way to "urllib2" working with Shed Skin, I'll put them on
Google Code or SourceForge.
The biggest fundamental incompatibility I've encountered so far is the lack of
Unicode support. Almost everything else can be worked around. I'd suggest an
"all Unicode" mode, like Python 3.
Original comment by na...@animats.com
on 8 Nov 2010 at 8:53
Attachments:
ah, dict.update didn't accept arbitrary iterables yet. fixed in GIT, thanks!!
I'd also be very interested in adding these libraries to shedskin, once they
mostly work!! :D
I haven't given unicode much thought, because it's typically not that useful in
compute-intensive code.. or if there is there wouldn't be much of a speedup
from using shedskin (string processing probably will never be faster than in
CPython, because 99% of the time is spent inside hand-optimized string
methods..).
Original comment by mark.duf...@gmail.com
on 13 Nov 2010 at 1:25
Thanks.
(I'll send in or post all the libraries I've converted once I get "httplib"
working. As I work on the higher modules, I keep having to go back and fix
things in the lower ones. Another week, perhaps.)
Original comment by na...@animats.com
on 13 Nov 2010 at 5:41
Original issue reported on code.google.com by
na...@animats.com
on 8 Nov 2010 at 5:55Attachments: