Closed GoogleCodeExporter closed 8 years ago
Hi,
I've no problem running shedskin.py on your code with either
CPython2.{5,6,7a1+} (but
then, the C++ code does not compile).
What version of shedskin do you use? Did you try the svn version?
Best regards,
Original comment by arkanosis
on 8 Jan 2010 at 9:11
thanks for giving the operator module a try. the code compiles to C++ fine
here, too,
using SVN.
unfortunately, it's not just a matter of compiling a pure-python version. the
reason
is that when we pass around functions from this module, we're actually passing
around
something dynamic, in the sense that these functions work on objects of
different
types. this is not straightforward to translate to C++..
there are some hacks in place to make this work for builtins such as 'int'
(which
also operate on different types). the operator module could probably be
supported by
using similar hacks (adding a static wrapper for each place where a function is
directly referenced).
Original comment by mark.duf...@gmail.com
on 9 Jan 2010 at 10:05
Original comment by mark.duf...@gmail.com
on 22 Jan 2010 at 7:55
Original comment by mark.duf...@gmail.com
on 18 Mar 2010 at 7:59
I merged all standard library issues into issue 106.
Original comment by mark.duf...@gmail.com
on 27 Oct 2010 at 1:02
I merged all standard library issues into issue 106.
Original comment by mark.duf...@gmail.com
on 27 Oct 2010 at 1:02
I'd like to solve a side-problem here. The original error was actually
"AttributeError: moduleVisitor instance has no attribute 'classnodes'" and
that's because he went into the shedskin lib folder and tried to run "python
../ss.py operator.py".
When you're in that lib folder, a lot of imports go wrong and cause that issue.
That's the destination folder for libs, not where they should be compiled.
Original comment by fahh...@gmail.com
on 28 Feb 2011 at 4:23
Original issue reported on code.google.com by
toldb...@gmail.com
on 8 Jan 2010 at 7:06