[issue18991] Overriding OrderedDict.__getitem__() doesn't work

2013-09-09 Thread Davi Post
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

[issue18991] Overriding OrderedDict.__getitem__() doesn't work

2013-09-09 Thread Davi Post
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

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Davi Post
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

[issue12042] What's New multiprocessing example error

2011-05-23 Thread Davi Post
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

[issue12042] What's New multiprocessing example error

2011-05-09 Thread Davi Post
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

[issue11984] Wrong See also in symbol and token module docs

2011-05-03 Thread Davi Post
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

[issue4083] try statement in language reference not updated for v2.6

2008-10-09 Thread Davi Post
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