it's on the slide after that. I think he says he committed that on python
3.x but of course its backportable.
Il giorno lunedì 22 luglio 2013 17:35:03 UTC+2, Richard ha scritto:
>
> Thanks for sharing Simone!
>
> Appreciate!
>
> I notice one change that can improve web2py, but not seems available
Technically it would be equivalent to
try:
os.unlink(filename)
except IOError:
pass
one could define OSError= IOError and from future import with_statement,
then define ignore(...). It is not difficult but slower than the above
syntax. I prefer if os.path.exists(filename).
On Monday, 2
Thanks for sharing Simone!
Appreciate!
I notice one change that can improve web2py, but not seems available in
python 2.7 :
with ignore(OSError):
os.unlink(filename)
In replacement to :
if os.path.exists(filename):
os.unlink(filename)
https://speakerdeck.com/pyconslides/transforming-c
I actually skipped over this a few times and today I finally reached its
place in my playlist for free time... sorry if you seen it before, but I
actually learned at least 5 things out of it that I really didn't know
of.
https://www.youtube.com/watch?v=OSGv2VnC0go
if you want slides
https
4 matches
Mail list logo