[issue18991] Overriding OrderedDict.__getitem__() doesn't work
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 of ConfigParser.RawConfigParser -- caused an AttributeError. Possibly relevant to http://bugs.python.org/issue9534 -- components: Library (Lib) files: OrderedDictTest.py messages: 197404 nosy: davipo priority: normal severity: normal status: open title: Overriding OrderedDict.__getitem__() doesn't work type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file31703/OrderedDictTest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18991 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18991] Overriding OrderedDict.__getitem__() doesn't work
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 - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18991 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18991 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12042] What's New multiprocessing example error
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. I'm not sure if I can just make one for the 3.x's so I made both. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12042 ___ -- Added file: http://bugs.python.org/file22141/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12042 ___Thanks Jordan. How about 2.7? Is that not an open branch?divbr/divdiv--Davi/divdivbrbrdiv class=gmail_quoteOn Thu, May 26, 2011 at 12:17 PM, Jordan Stadler span dir=ltrlt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span wrote:br blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;br Jordan Stadler lt;a href=mailto:jordan.stad...@gmail.com;jordan.stad...@gmail.com/agt; added the comment:br br Alright, patches are up for 3.1 and 3.2. I#39;m not sure if I can just make one for the 3.x#39;s so I made both.br br --br divdiv/divdiv class=h5br ___br Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br lt;a href=http://bugs.python.org/issue12042; target=_blankhttp://bugs.python.org/issue12042/agt;br ___br /div/div/blockquote/divbr/div ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12042] What's New multiprocessing example error
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, at least for a few versions back. (This particular fix is not so important, but I'm trying to practice the habit of at least reporting problems I see, to make a contribution to Python.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12042 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12042] What's New multiprocessing example error
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 for the result, not the input parameter N. [P.S. I'd be happy to submit corrections, but don't want to have to install and learn Mercurial. Is there a simpler way?] -- assignee: docs@python components: Documentation messages: 135626 nosy: davipo, docs@python priority: normal severity: normal status: open title: What's New multiprocessing example error versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12042 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11984] Wrong See also in symbol and token module docs
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 this See also belongs in the token module at all. (It's in Python 2.5 and 2.6 as well.) http://docs.python.org/release/2.7.1/library/symbol.html See also: Module parser The second example for the parser module shows how to use the symbol module. -- assignee: docs@python components: Documentation messages: 135017 nosy: davipo, docs@python priority: normal severity: normal status: open title: Wrong See also in symbol and token module docs versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11984 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4083] try statement in language reference not updated for v2.6
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#try http://docs.python.org/whatsnew/2.6.html#pep-3110-exception-handling- changes http://www.python.org/dev/peps/pep-3110/#compatibility -- assignee: georg.brandl components: Documentation messages: 74556 nosy: davipo, georg.brandl severity: normal status: open title: try statement in language reference not updated for v2.6 type: behavior versions: Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com