[Python-Dev] Python3 compiled listcomp can't see local var - bug or feature?

2018-06-05 Thread Rob Cliffe via Python-Dev
Is this a bug or a feature? Consider the following program: # TestProgram.py def Test():   # global x     x = 1     exec(compile('print([x+1,x+2])', 'MyTest', 'exec'))     exec(compile('print([x+i for i in range(1,3)])', 'MyTest', 'exec')) Test() In Python 2.7.15 the output is [2, 3] [2, 3]

Re: [Python-Dev] Microsoft to acquire GitHub for $7.5 b

2018-06-05 Thread Alex Walters
> -Original Message- > From: Python-Dev list=sdamon@python.org> On Behalf Of Ivan Pozdeev via Python-Dev > Sent: Tuesday, June 5, 2018 10:01 PM > To: python-dev@python.org > Subject: Re: [Python-Dev] Microsoft to acquire GitHub for $7.5 b > > On 05.06.2018 17:28, Martin Gainty

Re: [Python-Dev] Unicode 11.0.0 released

2018-06-05 Thread Benjamin Peterson
On Tue, Jun 5, 2018, at 12:17, MRAB wrote: > Unicode 11.0.0 has been released. Will Python 3.7 be updated to it, or > is it too late? https://github.com/python/cpython/pull/7439 will update 3.8. Generally, we've considered updating the Unicode database to be a feature and not backported

Re: [Python-Dev] Microsoft to acquire GitHub for $7.5 b

2018-06-05 Thread Ivan Pozdeev via Python-Dev
On 05.06.2018 17:28, Martin Gainty wrote: who owns the Data hosted on Github? Github Author? Microsoft? Martin https://help.github.com/articles/github-terms-of-service/#d-user-generated-content : "/You own content you create, but you allow us certain rights to it, so that we can display

Re: [Python-Dev] Microsoft to acquire GitHub for $7.5 b

2018-06-05 Thread Martin Gainty
who owns the Data hosted on Github? Github Author? Microsoft? Martin __ From: Python-Dev on behalf of M.-A. Lemburg Sent: Tuesday, June 5, 2018 7:54 AM To: Antoine Pitrou; python-dev@python.org Subject: Re:

[Python-Dev] Unicode 11.0.0 released

2018-06-05 Thread MRAB
Unicode 11.0.0 has been released. Will Python 3.7 be updated to it, or is it too late? ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Stable ABI

2018-06-05 Thread Brett Cannon
I know Kushal set up ABI testing for Fedora and has brought up taking the work he did for that and bringing it over to CPython, but I also know he is offline for personal reasons ATM and won't be able to to reply for a little while. On Mon, 4 Jun 2018 at 08:06 Eric Snow wrote: > I've pointed

Re: [Python-Dev] Microsoft to acquire GitHub for $7.5 billion

2018-06-05 Thread Nick Coghlan
On 5 June 2018 at 23:10, Matěj Cepl wrote: > On 2018-06-04, 23:38 GMT, Steven D'Aprano wrote: > > No, but Guido is right: neither is anyone else. > > > > In that regard, Microsoft is probably *more* likely to keep pumping > > money into a failing business if it gives them a strategic advantage,

Re: [Python-Dev] Docstrings on builtins

2018-06-05 Thread Ivan Pozdeev via Python-Dev
On 05.06.2018 17:56, Chris Barker wrote: OK, looking a bit deeper: In [69]: timedelta.__new__.__doc__ Out[69]: 'Create and return a new object.  See help(type) for accurate signature.' In [70]: timedelta.__init__.__doc__ Out[70]: 'Initialize self.  See help(type(self)) for accurate

Re: [Python-Dev] Docstrings on builtins

2018-06-05 Thread Chris Barker via Python-Dev
OK, looking a bit deeper: In [69]: timedelta.__new__.__doc__ Out[69]: 'Create and return a new object. See help(type) for accurate signature.' In [70]: timedelta.__init__.__doc__ Out[70]: 'Initialize self. See help(type(self)) for accurate signature.' In [71]: timedelta.__doc__ Out[71]:

Re: [Python-Dev] Microsoft to acquire GitHub for $7.5 billion

2018-06-05 Thread Miro Hrončok
On 5.6.2018 15:10, Matěj Cepl wrote: On 2018-06-04, 23:38 GMT, Steven D'Aprano wrote: No, but Guido is right: neither is anyone else. In that regard, Microsoft is probably *more* likely to keep pumping money into a failing business if it gives them a strategic advantage, compared to other

Re: [Python-Dev] Microsoft to acquire GitHub for $7.5 billion

2018-06-05 Thread Matěj Cepl
On 2018-06-04, 23:38 GMT, Steven D'Aprano wrote: > No, but Guido is right: neither is anyone else. > > In that regard, Microsoft is probably *more* likely to keep pumping > money into a failing business if it gives them a strategic advantage, > compared to other investors with no long-term

Re: [Python-Dev] Microsoft to acquire GitHub for $7.5 billion

2018-06-05 Thread M.-A. Lemburg
Something that may change is the way they treat Github accounts, after all, MS is very much a sales driven company. But then there's always the possibility to move to Gitlab as alternative (hosted or run on PSF VMs), so I would worry too much. Do note, however, that the value in Github is not so

Re: [Python-Dev] Withdraw PEP 546? Backport ssl.MemoryBIO and ssl.SSLObject to Python 2.7

2018-06-05 Thread Victor Stinner
So sorry for Python 2.7, I just rejected my PEP 546, no ssl.MemoryBIO for you! https://www.python.org/dev/peps/pep-0546/#rejection-notice The workaround is to use PyOpenSSL on Python 2.7. Victor 2018-05-30 16:28 GMT+02:00 Victor Stinner : > Hi, > > tl; dr I will withdraw the PEP 546 in one week