New submission from Davi Post:
class MyOrderedDict(OrderedDict):
def __getitem__(self, key):
OrderedDict.__getitem__(self, key)
After setting a key, getting it returns None. See attached.
Am I missing something?
Discovered this when trying to use the dict_type parameter
Davi Post added the comment:
Oops. Thanks. :-{
On Mon, Sep 9, 2013 at 4:56 PM, Alex Gaynor rep...@bugs.python.org wrote:
Alex Gaynor added the comment:
Your __getitem__ never returns the result of OrderedDict.__getitem__
--
nosy: +alex
resolution: - invalid
status: open
Davi Post p...@pobox.com added the comment:
Thanks Jordan. How about 2.7? Is that not an open branch?
--Davi
On Thu, May 26, 2011 at 12:17 PM, Jordan Stadler rep...@bugs.python.orgwrote:
Jordan Stadler jordan.stad...@gmail.com added the comment:
Alright, patches are up for 3.1 and 3.2
Davi Post p...@pobox.com added the comment:
The What's New docs are the place to find information on changes between
versions. Upgrading to 2.7 from 2.5, I needed to read the 2.6 and 2.7 What's
New docs to learn what changes I should be aware of. I hope errors in these
docs will be fixed
New submission from Davi Post p...@pobox.com:
In this section:
http://docs.python.org/whatsnew/2.6.html#pep-371-the-multiprocessing-package
This sentence follows the first example:
A Queue is used to communicate the input parameter N and the result.
In the example, the queue is used only
New submission from Davi Post p...@pobox.com:
The See also reference in the documentation for the token and symbol modules
is no longer accurate. The second example mentioned was apparently removed in
Python 2.7.
This leaves no explanation for how to use the symbol module.
I don't think
New submission from Davi Post [EMAIL PROTECTED]:
Language Reference for the try statement does not show changes for v2.6,
specifically the PEP 3110: Exception-Handling Changes. At least, the
grammar should include the except ... as syntax.
http://docs.python.org/reference/compound_stmts.html