On Tue, May 29, 2012 at 1:16 AM, Mark Dufour <
mark....@gmail.com> wrote:
> I had another look at this, and actually tried it out, and I have to
> admit it's pretty sweet to have shedskin run semi-transparently in the
> background.. :-)
+1, it's great to just add a decorator and don't need to move single
functions to an extra file and create a module of it there and import
it again.
(Which was my main reason for creating the pull request ;))
> otoh, I still don't really like the idea of adding declarations to
> python code (it's the reason I started shedskin), and am also hesitant
> to add in automagic code to avoid having to put 'adder' in a separate
> file, which is not that difficult.. but this may be just me, being
> somewhat obsessed with removing unneeded code from shedskin.. same
> thing for the 'tmpdir' option.. :P
You already need those declarations already for creating the
standalone module (you just have them handy in the "if
__name__=='__main__'" section).
Adding it in a separate file is not difficult, but looks ugly, when
you deal with a bigger project and want to organize it differently.
Then you are forced to add it to another file and import it from there
again (not a big deal, just not so clear and nice as the decorator).
Hmm, while you are talking about "removing unneeded code": :P
52M speed/testdata/stringies
> does anyone else have an opinion about this, and/or a strong desire to
> see the decorator/tmpdir code go in..?
+1 for removing unneeded code, but I wouldn't consider the
decorator/tmpdir as unneeded...
(See the mail of John about the Cython comparison)
Greetings,
Thomas