Le mardi 12 juin 2012 à 11:41 -0700, Ethan Furman a écrit :
Terry Reedy wrote:
http://bugs.python.org/issue12982
Currently, cpython requires the -O flag to *read* .pyo files as well as
the write them. This is a nuisance to people who receive them from
others, without the source. The
. A
major use case for this is to define the implementation for a subclass by
reusing its parent's implementation, e.g. :
@some_generic.register(my_int)
def _(arg):
print(Hello from my_int!)
return some_generic[int](arg)
--
Ronan Lamy
___
Python-Dev
2013/5/24 Ethan Furman et...@stoneleaf.us
On 05/23/2013 02:02 PM, Ronan Lamy wrote:
2013/5/23 Łukasz Langa luk...@langa.pl mailto:luk...@langa.pl
On 23 maj 2013, at 20:13, Éric Araujo mer...@netwok.org mailto:
mer...@netwok.org wrote:
Question: what happens if two functions (say
Le 24/04/15 19:45, Paul Sokolovsky a écrit :
Hello,
On Fri, 24 Apr 2015 18:27:29 +0100
Ronan Lamy ronan.l...@gmail.com wrote:
PyPy's FAQ
has an explanation of why type hints are not for performance.
http://pypy.readthedocs.org/en/latest/faq.html#would-type-annotations-help-pypy-s-performance
Le 23/04/15 14:55, Paul Sokolovsky a écrit :
Hello,
On Thu, 23 Apr 2015 09:15:44 -0400
Daniel Holth dho...@gmail.com wrote:
[]
Also ask why no one used type specifier, they are possible since
Python 3.0 ?
Because it is the wrong way for Python.
That's an example of how perceptions differ.
Le 25/04/15 04:07, Steven D'Aprano a écrit :
On Sat, Apr 25, 2015 at 02:05:15AM +0100, Ronan Lamy wrote:
* Hints have no run-time effect. The interpreter cannot assume that they
are obeyed.
I know what you mean, but just for the record, annotations are runtime
inspectable, so people can