Re: [Python-Dev] semantics of subclassing things from itertools

2015-09-10 Thread Raymond Hettinger
> On Sep 10, 2015, at 3:23 AM, Maciej Fijalkowski wrote: > > I would like to know what are the semantics if you subclass something > from itertools (e.g. islice). > > Right now it's allowed and people do it, which is why the > documentation is incorrect. It states "equivalent to: a function-or

Re: [Python-Dev] cpython (3.5): whatsnew/3.5: Editorialization pass on library section

2015-09-10 Thread Yury Selivanov
On 2015-09-10 6:16 PM, Serhiy Storchaka wrote: On 11.09.15 00:36, yury.selivanov wrote: https://hg.python.org/cpython/rev/3265f33df731 changeset: 97874:3265f33df731 branch: 3.5 parent: 97872:70c97a626c41 user:Yury Selivanov date:Thu Sep 10 17:35:38 2015 -0400 summa

Re: [Python-Dev] cpython (3.5): whatsnew/3.5: Editorialization pass on library section

2015-09-10 Thread Serhiy Storchaka
On 11.09.15 00:36, yury.selivanov wrote: https://hg.python.org/cpython/rev/3265f33df731 changeset: 97874:3265f33df731 branch: 3.5 parent: 97872:70c97a626c41 user:Yury Selivanov date:Thu Sep 10 17:35:38 2015 -0400 summary: whatsnew/3.5: Editorialization pass on libr

Re: [Python-Dev] semantics of subclassing things from itertools

2015-09-10 Thread Terry Reedy
On 9/10/2015 3:23 AM, Maciej Fijalkowski wrote: Hi I would like to know what are the semantics if you subclass something from itertools (e.g. islice). I believe people are depending on an undocumented internal speed optimization. See below. Right now it's allowed and people do it, which i

Re: [Python-Dev] Yet another "A better story for multi-core Python" comment

2015-09-10 Thread Martin Dengler
On Wed, Sep 09, 2015 at 04:33:49PM -0400, Trent Nelson wrote: PyObjects, loads a huge NumPy array, and has a WSS of ~11GB. [...] I've done a couple of consultancy projects now that were very data science oriented (with huge data sets), so I really gained an appreciation for how common the situa

Re: [Python-Dev] Can't post to bugs.python.org

2015-09-10 Thread R. David Murray
On Thu, 10 Sep 2015 09:02:01 -0400, "R. David Murray" wrote: > If this continues to plague you, we'll probably need to do some live > debugging. You can ping me (bitdancer) on IRC, I should be on for the > next 8 hours or so. This turns out to have been specific to Serhiy (or any issue on which

Re: [Python-Dev] Can't post to bugs.python.org

2015-09-10 Thread R. David Murray
On Thu, 10 Sep 2015 13:27:42 +0300, Serhiy Storchaka wrote: > I can't neither post a message to existing issue nor open a new issue. > The irker854 bot on IRC channel #python-dev cites my message and the > tracker updates activity time of existing issue, but doesn't show my > message and doesn

Re: [Python-Dev] semantics of subclassing things from itertools

2015-09-10 Thread Maciej Fijalkowski
On Thu, Sep 10, 2015 at 10:26 AM, Serhiy Storchaka wrote: > On 10.09.15 10:23, Maciej Fijalkowski wrote: >> >> I would like to know what are the semantics if you subclass something >> from itertools (e.g. islice). >> >> Right now it's allowed and people do it, which is why the >> documentation is

[Python-Dev] Can't post to bugs.python.org

2015-09-10 Thread Serhiy Storchaka
I can't neither post a message to existing issue nor open a new issue. The irker854 bot on IRC channel #python-dev cites my message and the tracker updates activity time of existing issue, but doesn't show my message and doesn't reflect changes of status. Posting via e-mail doesn't work as well

Re: [Python-Dev] semantics of subclassing things from itertools

2015-09-10 Thread Serhiy Storchaka
On 10.09.15 10:23, Maciej Fijalkowski wrote: I would like to know what are the semantics if you subclass something from itertools (e.g. islice). Right now it's allowed and people do it, which is why the documentation is incorrect. It states "equivalent to: a function-or a generator", but you can

[Python-Dev] semantics of subclassing things from itertools

2015-09-10 Thread Maciej Fijalkowski
Hi I would like to know what are the semantics if you subclass something from itertools (e.g. islice). Right now it's allowed and people do it, which is why the documentation is incorrect. It states "equivalent to: a function-or a generator", but you can't subclass whatever it is equivalent to, w