This is more of a doubt than a new idea. Python has always worked
intuitively but this was a bummer.

A list has an append method. So I can do list.append(value).
I tried doing list(range(10)).append(10) and it returns None. I'd usually
assume list(range(10)) returns a list, to which I can append whatever I
want.
I tried this with List comprehension also. Doesn't work there either.
Why doesn't this work?
Moreover, shouldn't it work?
How do I add that feature in Python?
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/FY4RSVJ6T6F7JNPQA6A22QQ3GORJTOHI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to