[Cython] PEP 498: literal string interpolation (f-strings)
Hi all! Jelle Zijlstra has implemented this and contributed his implementation; I've given it some final touches. https://github.com/cython/cython/pull/501 The PEP has some examples for this new (Py3.6) feature: https://www.python.org/dev/peps/pep-0498/ Not sure if this still qualifies for 0.24 at this point, but it certainly is a very nice language feature. I got all CPython tests working (with minor deviations in Py2.6 where str.format() is "less optimal"), so this seems like a reasonable thing to add. Stefan ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] [cython-users] Re: Cython alpha 0.24
On Mon, Mar 21, 2016 at 6:29 PM Martin Bammer wrote: > Hi, > > I just saw that PyrexTypes.py seems to have a typo in lines 3740 and 3742: > > def __cmp__(self, other): > if isinstance(other, TemplatePlaceholderType): > return cmp(self.name, other.name) > else: > return cmp(type(self), type(other)) > > > PyCharm is complaining that "cmp" is an unresolved reference. > > Regards, > > Martin > > AFAICT, that whole function isn't really necessary. It defines the behavior for when you call `cmp` on an instance of that particular class. In Python 3 that particular builtin function doesn't exist. It'll work fine in Python 2, but since the codebase supports both it's not clear when that would actually be useful. Best, -Ian Henriksen ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel
[Cython] [ANN] Python compilers workshop at SciPy this year
Hi all, I wanted to announce a workshop I'm organizing at SciPy this year, and invite you to attend! What: A two-day workshop bringing together folks working on JIT/AOT compilation in Python. When/where: July 11-12, in Austin, Texas. (This is co-located with SciPy 2016, at the same time as the tutorial sessions, just before the conference proper.) Website: https://python-compilers-workshop.github.io/ Note that I anticipate that we'll be able to get sponsorship funding to cover travel costs for folks who can't get their employers to foot the bill. Cheers, -n -- Nathaniel J. Smith -- https://vorpus.org ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel