On 05/23/2013 04:52 PM, Terry Jan Reedy wrote:
On 5/23/2013 2:52 PM, Matthew Gilson wrote:
This is a question regarding the documentation around dictionary
unpacking. The documentation for the call syntax
(http://docs.python.org/3/reference/expressions.html#grammar-token-call)
says:
"I
On 05/23/2013 03:20 PM, Neil Cerutti wrote:
On 2013-05-23, Matthew Gilson wrote:
That's fine, but what is a keyword argument? According to the glossary
(http://docs.python.org/3.3/glossary.html):
/"keyword argument/: an argument preceded by an identifier (e.g. name=)
in a functi
This is a question regarding the documentation around dictionary
unpacking. The documentation for the call syntax
(http://docs.python.org/3/reference/expressions.html#grammar-token-call)
says:
"If the syntax **expression appears in the function call, expression
must evaluate to a mapping, th
A Counter is definitely the way to go about this. Just as a little more
information. The below example can be simplified:
from collections import Counter
count = Counter(mylist)
With the other example, you could have achieved the same thing (and been
backward compatible to python2.
On 4/19/13 2:27 PM, Terry Jan Reedy wrote:
On 4/19/2013 10:27 AM, Matthew Gilson wrote:
) It seems to me that the operator module should have a `not_in` or
`not_contains` function. It seems asymmetric that there exists a
`is_not` function which implements `x is not y` but there isn
I believe that I read somewhere that this is the place to start
discussions on feature requests, etc. Please let me know if this isn't
the appropriate venue (and what the appropriate venue would be if you know).
This request has 2 related parts, but I think they can be considered
seperately: