Re: [RELEASE] Python 3.6.0b2 is now available

2016-10-13 Thread eryk sun
On Thu, Oct 13, 2016 at 9:45 PM, Irmen de Jong  wrote:
>
>>> On 12-10-2016 12:56, Robin Becker wrote:
>>>
 I notice an extra space at the windows command prompt compared with 3.5, 
 is that
 deliberate?
> 
> Wow that was stupid, sorry. Anyway, I'm not seeing it with 3.6.0b2 either:
>
> Python 3.6.0b2 (v3.6.0b2:b9fadc7d1c3f, Oct 10 2016, 20:36:51) [MSC v.1900 32 
> bit
> (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
 import sys


I see the problem. In beta 2, PyOS_StdioReadline now decodes the
prompt string as UTF-8 and writes it via WriteConsoleW. This resolves
issue 28333 [1]. In my patch I used the length from strlen(prompt),
which doesn't include the terminating NUL, since it isn't needed when
calling WriteConsoleW. Steve Dower changed this to instead have
MultiByteToWideChar calculate the length, which is fine in itself, but
it does include the trailing NUL. Thus instead of writing ">>> "
(length 4) to the console, it's writing ">>> \x00" (length 5). You can
see this in the debugger when stepping into PyOS_StdioReadline:

python36!PyOS_StdioReadline+0x14c:
`52c89bd4 ff15def80200callqword ptr
[python36!_imp_WriteConsoleW (`52cb94b8)]
ds:`52cb94b8=
{KERNEL32!WriteConsoleW (7fff`6d264bc0)}

0:000> du @rdx
01d9`c334aee0  ">>> "
0:000> r r8
r8=0005
0:000> dw @rdx l5
01d9`c334aee0  003e 003e 003e 0020 

It's a simple fix. Just use (wlen - 1) instead of wlen.

[1]: http://bugs.python.org/issue28333
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [RELEASE] Python 3.6.0b2 is now available

2016-10-13 Thread MRAB

On 2016-10-13 22:45, Irmen de Jong wrote:

On 13-10-2016 23:43, MRAB wrote:

On 2016-10-13 20:42, Irmen de Jong wrote:

On 12-10-2016 12:56, Robin Becker wrote:


I notice an extra space at the windows command prompt compared with 3.5, is that
deliberate?


C:\ux\XB33>\python35\python
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit 
(AMD64)]
on win32
Type "help", "copyright", "credits" or "license" for more information.

import sys




C:\ux\XB33\repos\pyRXP>..\..\py36_amd64\Scripts\python.exe
Python 3.6.0b2 (default, Oct 10 2016, 21:15:32) [MSC v.1900 64 bit (AMD64)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.

 import sys




I'm not seeing this... (using the 32 bits version on win7)

Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit 
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.

import sys




That's Python 3.5.1. The issue is with Python 3.6.0b2.



Wow that was stupid, sorry. Anyway, I'm not seeing it with 3.6.0b2 either:

Python 3.6.0b2 (v3.6.0b2:b9fadc7d1c3f, Oct 10 2016, 20:36:51) [MSC v.1900 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import sys




I'm seeing it on Windows 10.

Python 3.6.0b2 (v3.6.0b2:b9fadc7d1c3f, Oct 10 2016, 20:36:51) [MSC 
v.1900 32 bit (Intel)] on win32

Type "help", "copyright", "credits" or "license" for more information.
>>>  import sys
>>>


Python 3.6.0b2 (default, Oct 10 2016, 21:15:32) [MSC v.1900 64 bit 
(AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.
>>>  import sys
>>>


--
https://mail.python.org/mailman/listinfo/python-list


Re: [RELEASE] Python 3.6.0b2 is now available

2016-10-13 Thread Irmen de Jong
On 13-10-2016 23:43, MRAB wrote:
> On 2016-10-13 20:42, Irmen de Jong wrote:
>> On 12-10-2016 12:56, Robin Becker wrote:
>>
>>> I notice an extra space at the windows command prompt compared with 3.5, is 
>>> that
>>> deliberate?
>>>
 C:\ux\XB33>\python35\python
 Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 
 bit (AMD64)]
 on win32
 Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>>
>>>
 C:\ux\XB33\repos\pyRXP>..\..\py36_amd64\Scripts\python.exe
 Python 3.6.0b2 (default, Oct 10 2016, 21:15:32) [MSC v.1900 64 bit 
 (AMD64)] on win32
 Type "help", "copyright", "credits" or "license" for more information.
>>>  import sys
>>>
>>
>> I'm not seeing this... (using the 32 bits version on win7)
>>
>> Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit 
>> (Intel)] on
>> win32
>> Type "help", "copyright", "credits" or "license" for more information.
> import sys
>
>>
> That's Python 3.5.1. The issue is with Python 3.6.0b2.
> 

Wow that was stupid, sorry. Anyway, I'm not seeing it with 3.6.0b2 either:

Python 3.6.0b2 (v3.6.0b2:b9fadc7d1c3f, Oct 10 2016, 20:36:51) [MSC v.1900 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>>


Irmen

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [RELEASE] Python 3.6.0b2 is now available

2016-10-13 Thread MRAB

On 2016-10-13 20:42, Irmen de Jong wrote:

On 12-10-2016 12:56, Robin Becker wrote:


I notice an extra space at the windows command prompt compared with 3.5, is that
deliberate?


C:\ux\XB33>\python35\python
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit 
(AMD64)]
on win32
Type "help", "copyright", "credits" or "license" for more information.

import sys




C:\ux\XB33\repos\pyRXP>..\..\py36_amd64\Scripts\python.exe
Python 3.6.0b2 (default, Oct 10 2016, 21:15:32) [MSC v.1900 64 bit (AMD64)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.

 import sys




I'm not seeing this... (using the 32 bits version on win7)

Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit 
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.

import sys




That's Python 3.5.1. The issue is with Python 3.6.0b2.

--
https://mail.python.org/mailman/listinfo/python-list


Re: [RELEASE] Python 3.6.0b2 is now available

2016-10-13 Thread Irmen de Jong
Anyone else having problems with pip and python 3.6.0b2?
Pip now fails to create launcher scripts:

  File "c:\python36\lib\site-packages\pip\_vendor\distlib\scripts.py", line 
351, in
_get_launcher
result = finder(distlib_package).find(name).bytes
  File "c:\python36\lib\site-packages\pip\_vendor\distlib\resources.py", line 
324, in finder
raise DistlibException('Unable to locate finder for %r' % package)
pip._vendor.distlib.DistlibException: Unable to locate finder for 
'pip._vendor.distlib'


Using latest pip and distlib versions.
Python 3.6.0b2 32-bits on Windows 7.


Irmen

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [RELEASE] Python 3.6.0b2 is now available

2016-10-13 Thread Irmen de Jong
On 12-10-2016 12:56, Robin Becker wrote:

> I notice an extra space at the windows command prompt compared with 3.5, is 
> that
> deliberate?
> 
>> C:\ux\XB33>\python35\python
>> Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit 
>> (AMD64)]
>> on win32
>> Type "help", "copyright", "credits" or "license" for more information.
> import sys
>
> 
>> C:\ux\XB33\repos\pyRXP>..\..\py36_amd64\Scripts\python.exe
>> Python 3.6.0b2 (default, Oct 10 2016, 21:15:32) [MSC v.1900 64 bit (AMD64)] 
>> on win32
>> Type "help", "copyright", "credits" or "license" for more information.
>  import sys
> 

I'm not seeing this... (using the 32 bits version on win7)

Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 32 bit 
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>>

Irmen

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [RELEASE] Python 3.6.0b2 is now available

2016-10-12 Thread Robin Becker

On 11/10/2016 02:12, Ned Deily wrote:

On behalf of the Python development community and the Python 3.6 release
team, I'm happy to announce the availability of Python 3.6.0b2. 3.6.0b2
is the second of four planned beta releases of Python 3.6, the next major
release of Python, and marks the end of the feature development phase
for 3.6.

...

thanks


--
  Ned Deily
  n...@python.org -- []




I notice an extra space at the windows command prompt compared with 3.5, is that 
deliberate?



C:\ux\XB33>\python35\python
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import sys




C:\ux\XB33\repos\pyRXP>..\..\py36_amd64\Scripts\python.exe
Python 3.6.0b2 (default, Oct 10 2016, 21:15:32) [MSC v.1900 64 bit (AMD64)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.

 import sys


--
Robin Becker

--
https://mail.python.org/mailman/listinfo/python-list


[RELEASE] Python 3.6.0b2 is now available

2016-10-11 Thread Ned Deily
On behalf of the Python development community and the Python 3.6 release
team, I'm happy to announce the availability of Python 3.6.0b2. 3.6.0b2
is the second of four planned beta releases of Python 3.6, the next major
release of Python, and marks the end of the feature development phase
for 3.6.

Among the new major new features in Python 3.6 are:

* PEP 468 - Preserving the order of **kwargs in a function
* PEP 487 - Simpler customization of class creation
* PEP 495 - Local Time Disambiguation
* PEP 498 - Literal String Formatting
* PEP 506 - Adding A Secrets Module To The Standard Library
* PEP 509 - Add a private version to dict
* PEP 515 - Underscores in Numeric Literals
* PEP 519 - Adding a file system path protocol
* PEP 520 - Preserving Class Attribute Definition Order
* PEP 523 - Adding a frame evaluation API to CPython
* PEP 524 - Make os.urandom() blocking on Linux (during system startup)
* PEP 525 - Asynchronous Generators (provisional)
* PEP 526 - Syntax for Variable Annotations (provisional)
* PEP 528 - Change Windows console encoding to UTF-8 (provisional)
* PEP 529 - Change Windows filesystem encoding to UTF-8 (provisional)
* PEP 530 - Asynchronous Comprehensions

Please see "What’s New In Python 3.6" for more information:

https://docs.python.org/3.6/whatsnew/3.6.html

You can find Python 3.6.0b2 here:

https://www.python.org/downloads/release/python-360b2/

Beta releases are intended to give the wider community the opportunity
to test new features and bug fixes and to prepare their projects to
support the new feature release. We strongly encourage maintainers of
third-party Python projects to test with 3.6 during the beta phase and
report issues found to bugs.python.org as soon as possible. While the
release is feature complete entering the beta phase, it is possible that
features may be modified or, in rare cases, deleted up until the start
of the release candidate phase (2016-12-05). Our goal is have no changes
after rc1. To achieve that, it will be extremely important to get as
much exposure for 3.6 as possible during the beta phase. Please keep in
mind that this is a preview release and its use is not recommended for
production environments

The next planned release of Python 3.6 will be 3.6.0b3, currently
scheduled for 2016-10-31. More information about the release schedule
can be found here:

https://www.python.org/dev/peps/pep-0494/

--
  Ned Deily
  n...@python.org -- []

-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[RELEASE] Python 3.6.0b2 is now available

2016-10-10 Thread Ned Deily
On behalf of the Python development community and the Python 3.6 release
team, I'm happy to announce the availability of Python 3.6.0b2. 3.6.0b2
is the second of four planned beta releases of Python 3.6, the next major
release of Python, and marks the end of the feature development phase
for 3.6.

Among the new major new features in Python 3.6 are:

* PEP 468 - Preserving the order of **kwargs in a function
* PEP 487 - Simpler customization of class creation
* PEP 495 - Local Time Disambiguation
* PEP 498 - Literal String Formatting
* PEP 506 - Adding A Secrets Module To The Standard Library
* PEP 509 - Add a private version to dict
* PEP 515 - Underscores in Numeric Literals
* PEP 519 - Adding a file system path protocol
* PEP 520 - Preserving Class Attribute Definition Order
* PEP 523 - Adding a frame evaluation API to CPython
* PEP 524 - Make os.urandom() blocking on Linux (during system startup)
* PEP 525 - Asynchronous Generators (provisional)
* PEP 526 - Syntax for Variable Annotations (provisional)
* PEP 528 - Change Windows console encoding to UTF-8 (provisional)
* PEP 529 - Change Windows filesystem encoding to UTF-8 (provisional)
* PEP 530 - Asynchronous Comprehensions

Please see "What’s New In Python 3.6" for more information:

https://docs.python.org/3.6/whatsnew/3.6.html

You can find Python 3.6.0b2 here:

https://www.python.org/downloads/release/python-360b2/

Beta releases are intended to give the wider community the opportunity
to test new features and bug fixes and to prepare their projects to
support the new feature release. We strongly encourage maintainers of
third-party Python projects to test with 3.6 during the beta phase and
report issues found to bugs.python.org as soon as possible. While the
release is feature complete entering the beta phase, it is possible that
features may be modified or, in rare cases, deleted up until the start
of the release candidate phase (2016-12-05). Our goal is have no changes
after rc1. To achieve that, it will be extremely important to get as
much exposure for 3.6 as possible during the beta phase. Please keep in
mind that this is a preview release and its use is not recommended for
production environments

The next planned release of Python 3.6 will be 3.6.0b3, currently
scheduled for 2016-10-31. More information about the release schedule
can be found here:

https://www.python.org/dev/peps/pep-0494/

--
  Ned Deily
  n...@python.org -- []

-- 
https://mail.python.org/mailman/listinfo/python-list