Hello,
will await be allowed also in the "if" part of comprehensions? And what
about the "in" part? (e.g. if I'm not mistaken, we may have an asynchronous
function returning an asynchronous iterator.)
Regards,
Adam Bartoš
___
Python-ideas mailing list
P
On Sun, Sep 4, 2016 at 4:20 AM, Steven D'Aprano wrote:
> On Sun, Sep 04, 2016 at 12:26:58AM +0300, Koos Zevenhoven wrote:
>> On Friday, while replying to a post on python-dev about PEP 526
>> (variable annotations), I ended up mentioning things that I think a
>> good type checker should do, which
On Sun, Sep 4, 2016 at 2:33 AM, Koos Zevenhoven wrote:
> On Sun, Sep 4, 2016 at 2:22 AM, Chris Angelico wrote:
>> On Sun, Sep 4, 2016 at 7:44 AM, Koos Zevenhoven wrote:
I wonder if it would be different if you wrote that as a single expression:
x = 1 if cond else 1.5
x =
I have a piece of code that essentially reimplements OrderedDict. I have
been wondering why the key ordered is not preserved correctly (tests fail).
c = Container(a=1,b=2,c=3,d=4)
self.assertEqual(c.keys(), ["a","b","c","d"])
self.assertEqual(c.values(), [1,2,3,4])
self.assertEqual(c.items(), [("a
This has been discussed before. See for example https://mail.python.or
g/pipermail/python-ideas/2010-October/008445.html
There's even PEP about this: https://www.python.org/dev/peps/pep-0468
___
Python-ideas mailing list
[email protected]
https://m