Re: [Python-Dev] C99

2016-10-08 Thread Steven D'Aprano
On Thu, Oct 06, 2016 at 10:10:54PM -0700, Nathaniel Smith wrote: > The reason this matters is that the official vendor compiler on RHEL 5 > is gcc 4.1, but there's also a separately-distributed version of gcc > 4.8.2 that can target it. Where can I get that 4.8 for RHEL 5? I'm using Centos 5,

Re: [Python-Dev] C99

2016-10-08 Thread Nathaniel Smith
On Sat, Oct 8, 2016 at 9:23 AM, Steven D'Aprano wrote: > On Thu, Oct 06, 2016 at 10:10:54PM -0700, Nathaniel Smith wrote: > >> The reason this matters is that the official vendor compiler on RHEL 5 >> is gcc 4.1, but there's also a separately-distributed version of gcc >>

Re: [Python-Dev] Check dict implementation details

2016-10-08 Thread Raymond Hettinger
> On Oct 8, 2016, at 3:01 AM, Serhiy Storchaka wrote: > > Since dict is ordered in CPython 3.6, it can be used instead of OrderedDict > in some places (e.g. for implementing simple limited caches). But since this > is implementation detail, it can't be used in the stdlib

Re: [Python-Dev] Check dict implementation details

2016-10-08 Thread Nick Coghlan
On 8 October 2016 at 20:01, Serhiy Storchaka wrote: > Since dict is ordered in CPython 3.6, it can be used instead of OrderedDict > in some places (e.g. for implementing simple limited caches). But since this > is implementation detail, it can't be used in the stdlib

Re: [Python-Dev] Is explicit registration of Iterators needed?

2016-10-08 Thread Guido van Rossum
On Fri, Oct 7, 2016 at 3:52 PM, Ivan Levkivskyi wrote: > I have a question about the registration of builtins. Currently, typing.py > contains this line: > > ByteString.register(type(memoryview(b''))) > > But there are two test lines in test_collections.py > >

Re: [Python-Dev] Is explicit registration of Iterators needed?

2016-10-08 Thread Serhiy Storchaka
On 07.10.16 18:08, Guido van Rossum wrote: On Fri, Oct 7, 2016 at 7:47 AM, Serhiy Storchaka wrote: Should we register missed builtin iterators? For example longrange_iterator. I don't feel strongly about this either way. Let sleeping dogs lie, etc. (Is this related to

[Python-Dev] Check dict implementation details

2016-10-08 Thread Serhiy Storchaka
Since dict is ordered in CPython 3.6, it can be used instead of OrderedDict in some places (e.g. for implementing simple limited caches). But since this is implementation detail, it can't be used in the stdlib unconditionally. Needed a way to check whether dict is ordered. Actually there are