[issue28884] Python 3.5.2 non-segfaulting bugs (from PyPy)

2021-12-12 Thread Irit Katriel


Irit Katriel  added the comment:

B7 passes on 3.11.

--
nosy: +iritkatriel

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28983] Windows: Python 3.5.2 won't install on my computer

2021-10-19 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27658] python 3.5.2 built from source fails to install completely on Mac OS X 10.11.6. Crashes subsequently.

2021-09-07 Thread Ned Deily


Change by Ned Deily :


--
stage:  -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27658] python 3.5.2 built from source fails to install completely on Mac OS X 10.11.6. Crashes subsequently.

2021-09-07 Thread Irit Katriel


Irit Katriel  added the comment:

3.5 is long out of maintenance. I suggest we close this and look into it if the 
problem is reported for a newer version.

--
nosy: +iritkatriel
resolution:  -> third party
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28344] Python 3.5.2 installer hangs when run in session 0

2021-03-13 Thread Eryk Sun


Eryk Sun  added the comment:

I tested installing 3.10 in session 0 for the current user, as a user with the 
batch logon right. The installation succeeded. If you're running as SYSTEM, 
then installing for the current user doesn't see reasonable to me. I won't test 
that case. 

I tested installing 3.10 in session 0 as SYSTEM, with the option 
InstallAllUsers=1. The installation succeeded. There's a caveat (bpo-25166) 
that the installer registers the uninstall record only for the current user. 
The SYSTEM account uses the default profile, so the uninstall record is stored 
under "HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Uninstall". In 
this case, to uninstall you have to run the installer as SYSTEM with the 
/uninstall option.

--
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28356] Windows: os.rename different in python 2.7.12 and python 3.5.2

2021-03-05 Thread Eryk Sun


Change by Eryk Sun :


--
type: behavior -> enhancement
versions:  -Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28356] Windows: os.rename different in python 2.7.12 and python 3.5.2

2021-02-25 Thread Eryk Sun


Eryk Sun  added the comment:

The documentation of os.rename() should mention that on Windows the "operation 
will fail if src and dst are on different filesystems". For POSIX, instead of 
"will" it says "may", but the failure is a certainty in Windows since 
MOVEFILE_COPY_ALLOWED isn't used.

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
stage:  -> needs patch
versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 
2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ANN] Pycopy/pycopy-lib 3.5.2, a minimalist Python dialect

2021-02-09 Thread Paul Sokolovsky
Hello,

Pycopy is a minimalist, lightweight, resource-efficient implementation
of Python(-like) language. Pycopy to CPython is a similar thing as
Scheme to Common Lisp. Executable sizes of 300-400KB, instant startup,
no need to carry around large monolithic library consisting largely of
legacy modules - are some but not all of Pycopy's features.

Project page: https://github.com/pfalcon/pycopy

Now has website too: https://pycopy.github.io/

The 3.5 releases implement lightweight import hooking support
(forward-compatible with CPython), and contain numerous fixes for
previously introduced "strict execution mode" and for general CPython
compatibility.

Pycopy's standard library, pycopy-lib
https://github.com/pfalcon/pycopy-lib , is also under continued
development.

Prebuilt binaries of this release are available at
https://github.com/pfalcon/pycopy/releases/tag/v3.5.2


More details about Pycopy
-

Pycopy strives to define a core language features suitable to easily
develop efficient programs, while allow for extensibility to a wider
set of features for compatibility with existing software.

Pycopy doesn't come with a large builtin module library. Instead,
a set of a few core modules are included builtin: inspired, being a
noticeable subset, and a little bit of extension, of the corresponding
CPython modules. Also, clearly namespaced, to still allow room to
implement fully compatible CPython modules. These new modules aren't
intended to be an adhoc thing, just an alternative API with a
constraint of minimality. Implementation of that API also exists for
CPython (WIP), allowing Pycopy -> CPython forward compatibility.

The rest is handled outside the core language, via a separate project,
pycopy-lib: https://github.com/pfalcon/pycopy-lib , which strives to
port CPython stdlib to Pycopy, while, where needed, provide more
lightweight module variants and extensions.

Pycopy is a full-stack project, with ecosystem including a web
micro-framework, pure-Python Python parser, FFMPEG bindings, SDL
bindings, LLVM bindings, etc.: https://github.com/topics/pycopy 


-- 
Best regards,
 Paul  mailto:pmis...@gmail.com
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


[issue28884] Python 3.5.2 non-segfaulting bugs (from PyPy)

2020-12-05 Thread mattip


mattip  added the comment:

No, my bad, B6 passes now on CPython

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28884] Python 3.5.2 non-segfaulting bugs (from PyPy)

2020-12-05 Thread mattip


mattip  added the comment:

It seems (B6) is still failing (both on PyPy3.7 and on CPython3.8.6)

--
nosy: +mattip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: ERROR GENERATED AFTER INSTALLING PYTHON 3.5.2 64-BIT

2020-04-15 Thread Tarjei Bærland via Python-list
ogunleye ayobami  writes:

> Dear Python Team,
>
> After downloading and installing python on my system, error generated on
> command prompt is
> C:\Users\Olakunle Johnson>python
>
> *'python' is not recognized as an internal or external command,operable
> program or batch file.*

Given that the installation went as it should, this probably means that
python is not in your path. This,
https://geek-university.com/python/add-python-to-the-windows-path/,
seems to explain fully how to add your python install directory to the
path.

Regards,
Tarjei



>
> Kindly assist.
> Regards
>
> 
> Virus-free.
> www.avg.com
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ERROR GENERATED AFTER INSTALLING PYTHON 3.5.2 64-BIT

2020-04-15 Thread Souvik Dutta
Glad to hear it!

On Wed, 15 Apr, 2020, 6:12 pm ogunleye ayobami, <
ogunleyeayobamihezek...@gmail.com> wrote:

> Thanks. Indeed helpful and am now good.
>
> Regards
>
> On Wed, Apr 15, 2020, 1:39 PM Souvik Dutta 
> wrote:
>
>> You have not added python to your system's path variable. Follow this.
>> https://superuser.com/questions/143119/how-do-i-add-python-to-the-windows-path
>>
>> On Wed, 15 Apr, 2020, 5:53 pm ogunleye ayobami, <
>> ogunleyeayobamihezek...@gmail.com> wrote:
>>
>>> Dear Python Team,
>>>
>>> After downloading and installing python on my system, error generated on
>>> command prompt is
>>> C:\Users\Olakunle Johnson>python
>>>
>>> *'python' is not recognized as an internal or external command,operable
>>> program or batch file.*
>>>
>>> Kindly assist.
>>> Regards
>>>
>>> <
>>> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
>>> >
>>> Virus-free.
>>> www.avg.com
>>> <
>>> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
>>> >
>>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>> --
>>> https://mail.python.org/mailman/listinfo/python-list
>>>
>>
>> On Wed, 15 Apr, 2020, 5:53 pm ogunleye ayobami, <
>> ogunleyeayobamihezek...@gmail.com> wrote:
>>
>>> Dear Python Team,
>>>
>>> After downloading and installing python on my system, error generated on
>>> command prompt is
>>> C:\Users\Olakunle Johnson>python
>>>
>>> *'python' is not recognized as an internal or external command,operable
>>> program or batch file.*
>>>
>>> Kindly assist.
>>> Regards
>>>
>>> <
>>> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
>>> >
>>> Virus-free.
>>> www.avg.com
>>> <
>>> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
>>> >
>>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>> --
>>> https://mail.python.org/mailman/listinfo/python-list
>>>
>>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ERROR GENERATED AFTER INSTALLING PYTHON 3.5.2 64-BIT

2020-04-15 Thread Souvik Dutta
You have not added python to your system's path variable. Follow this.
https://superuser.com/questions/143119/how-do-i-add-python-to-the-windows-path

On Wed, 15 Apr, 2020, 5:53 pm ogunleye ayobami, <
ogunleyeayobamihezek...@gmail.com> wrote:

> Dear Python Team,
>
> After downloading and installing python on my system, error generated on
> command prompt is
> C:\Users\Olakunle Johnson>python
>
> *'python' is not recognized as an internal or external command,operable
> program or batch file.*
>
> Kindly assist.
> Regards
>
> <
> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
> >
> Virus-free.
> www.avg.com
> <
> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
> >
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

On Wed, 15 Apr, 2020, 5:53 pm ogunleye ayobami, <
ogunleyeayobamihezek...@gmail.com> wrote:

> Dear Python Team,
>
> After downloading and installing python on my system, error generated on
> command prompt is
> C:\Users\Olakunle Johnson>python
>
> *'python' is not recognized as an internal or external command,operable
> program or batch file.*
>
> Kindly assist.
> Regards
>
> <
> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
> >
> Virus-free.
> www.avg.com
> <
> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
> >
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ERROR GENERATED AFTER INSTALLING PYTHON 3.5.2 64-BIT

2020-04-15 Thread ogunleye ayobami
Thanks. Indeed helpful and am now good.

Regards

On Wed, Apr 15, 2020, 1:39 PM Souvik Dutta  wrote:

> You have not added python to your system's path variable. Follow this.
> https://superuser.com/questions/143119/how-do-i-add-python-to-the-windows-path
>
> On Wed, 15 Apr, 2020, 5:53 pm ogunleye ayobami, <
> ogunleyeayobamihezek...@gmail.com> wrote:
>
>> Dear Python Team,
>>
>> After downloading and installing python on my system, error generated on
>> command prompt is
>> C:\Users\Olakunle Johnson>python
>>
>> *'python' is not recognized as an internal or external command,operable
>> program or batch file.*
>>
>> Kindly assist.
>> Regards
>>
>> <
>> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
>> >
>> Virus-free.
>> www.avg.com
>> <
>> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
>> >
>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
>
> On Wed, 15 Apr, 2020, 5:53 pm ogunleye ayobami, <
> ogunleyeayobamihezek...@gmail.com> wrote:
>
>> Dear Python Team,
>>
>> After downloading and installing python on my system, error generated on
>> command prompt is
>> C:\Users\Olakunle Johnson>python
>>
>> *'python' is not recognized as an internal or external command,operable
>> program or batch file.*
>>
>> Kindly assist.
>> Regards
>>
>> <
>> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
>> >
>> Virus-free.
>> www.avg.com
>> <
>> http://www.avg.com/email-signature?utm_medium=email_source=link_campaign=sig-email_content=webmail
>> >
>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ERROR GENERATED AFTER INSTALLING PYTHON 3.5.2 64-BIT

2020-04-15 Thread Barry Scott



> On 15 Apr 2020, at 09:28, ogunleye ayobami 
>  wrote:
> 
> Dear Python Team,
> 
> After downloading and installing python on my system, error generated on
> command prompt is
> C:\Users\Olakunle Johnson>python
> 
> *'python' is not recognized as an internal or external command,operable
> program or batch file.*
> 

Try the "py" command instead.

Is there a reason to use a very old version of python?
The latest version of 3.8.

Barry


> Kindly assist.
> Regards
> 
> 
> Virus-free.
> www.avg.com
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 

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


ERROR GENERATED AFTER INSTALLING PYTHON 3.5.2 64-BIT

2020-04-15 Thread ogunleye ayobami
Dear Python Team,

After downloading and installing python on my system, error generated on
command prompt is
C:\Users\Olakunle Johnson>python

*'python' is not recognized as an internal or external command,operable
program or batch file.*

Kindly assist.
Regards


Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue39023] random.seed with string and version 1 not deterministic in 3.5.2

2019-12-10 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39023] random.seed with string and version 1 not deterministic in 3.5.2

2019-12-10 Thread Michael Thompson


Michael Thompson  added the comment:

Thanks.  I found 3.6 works for me.
--Mike

On Tue, Dec 10, 2019 at 5:10 PM Mark Dickinson 
wrote:

>
> Mark Dickinson  added the comment:
>
> I think this was already fixed in 3.5, but the fix would have gone in
> later than the 3.5.2 release: see issue #27706. 3.5.3 and later should have
> the fix.
>
> --
> nosy: +mark.dickinson
>
> ___
> Python tracker 
> <https://bugs.python.org/issue39023>
> ___
>

--

___
Python tracker 
<https://bugs.python.org/issue39023>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39023] random.seed with string and version 1 not deterministic in 3.5.2

2019-12-10 Thread Mark Dickinson


Mark Dickinson  added the comment:

I think this was already fixed in 3.5, but the fix would have gone in later 
than the 3.5.2 release: see issue #27706. 3.5.3 and later should have the fix.

--
nosy: +mark.dickinson

___
Python tracker 
<https://bugs.python.org/issue39023>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39023] random.seed with string and version 1 not deterministic in 3.5.2

2019-12-10 Thread Michael Thompson


New submission from Michael Thompson :

Version 3.5.2, the "rand string seed" is not deterministic in code sample below 
across multiple invocations of the program.  Python 3.6.8 works fine.

#!/usr/bin/env python3
import random
lis = '94'
random.seed(lis, version=1)
w = random.random() * 100
print('rand string seed: %d' % w)
lis = 94
random.seed(lis, version=1)
w = random.random() * 100
print('rand int seed: %d' % w)


Running in a Docker container: uname -a:
Linux formatstring-igrader 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 
UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

--
messages: 358236
nosy: mfthomps
priority: normal
severity: normal
status: open
title: random.seed with string and version 1 not deterministic in 3.5.2
type: behavior
versions: Python 3.5

___
Python tracker 
<https://bugs.python.org/issue39023>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-13 Thread STINNER Victor


STINNER Victor  added the comment:

> Yes, that slows down Python 3.7.0a3 to the 3.7.0a4 level.

Ok, so something calls setlocale(LC_CTYPE, "") or setlocale(LC_ALL, "") in 
Python 3.7.0. I'm not interested to dig the Git history. It doesn't really 
matter at this point.

Can you try to get the current LC_CTYPE locale on Python 3.6 or 3.7.0a3? 
Example:

$ python3 -c 'import _locale; print(_locale.setlocale(_locale.LC_CTYPE, None))'
fr_FR.utf8

Or using the locale module (it should give the same result):

$ python3 -c 'import locale; print(locale.setlocale(locale.LC_CTYPE, None))'
fr_FR.utf8

Can also also try on 3.7.0a4 and newer (ex: Python 3.7.1): 
locale.setlocale(locale.LC_ALL, "C"), to see it does workaround your 
performance issue? I don't recall if "C" or "POSIX" locales are supported on 
Windows.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke


Christoph Gohlke  added the comment:

> test_isdigit.c: Can you try to call locale.setlocale(locale.LC_CTYPE, "") 
> before running your benchmark on Python 3.7.0?

Yes, that slows down Python 3.7.0a3 to the 3.7.0a4 level.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

> This issue may be related to bpo-34485.

I'm thinking to:

New changeset 177d921c8c03d30daa32994362023f777624b10d by Victor Stinner in 
branch 'master':
bpo-34485, Windows: LC_CTYPE set to user preference (GH-8988)
https://github.com/python/cpython/commit/177d921c8c03d30daa32994362023f777624b10d

Oh, I only made this change in the future Python 3.8 (master branch). So this 
change may be unrelated.

Note: Right now, my Windows VM is broken, so I cannot investigate this 
performance issue which seems to be specific to the msvcrt (libc of Microsoft 
VisualStudio).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

test_isdigit.c: Can you try to call locale.setlocale(locale.LC_CTYPE, "") 
before running your benchmark on Python 3.7.0?

This issue may be related to bpo-34485.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke


Christoph Gohlke  added the comment:

I attached a minimal C extension module that can be used to demonstrate the 
performance degradation from Python 3.7.0a3 to 3.7.0a4.

Build the extension with `py setup.py build_ext --inplace`, then run the 
following code on Python 3.7.0a3 to 3.7.0a4:

```
import time
from test_isdigit import test_isdigit

start_time = time.time()
test_isdigit()
print(time.time() - start_time)
```

On my Windows 10 Pro WS system, the timings are:

Python 3.7.0a3: ~0.0156
Python 3.7.0a4: ~0.3281


I would expect that other locale aware functions in the UCRT are also affected 
but I have not tested that.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

> digits = ''.join([str(i) for i in range(10)]*1000)
> %timeit digits.isdigit() # --> 2X+ slower on python 3.7.1

This code calls:

* (Python) str.isdigit()
* unicode_isdigit_impl()
* _PyUnicode_IsDigit()
* _PyUnicode_ToDigit() which uses Python internal Unicode database

This code doesn't depend on locales at all. It's pure Unicode.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Dragoljub


Dragoljub  added the comment:

Here is a simple pure python example:

digits = ''.join([str(i) for i in range(10)]*1000)
%timeit digits.isdigit() # --> 2X+ slower on python 3.7.1

Basically in Pandas C-code parser we call the isdigit() function for each 
number that is to be parsed. so 12345.6789 calls isdigt() 9 times to determine 
if this is a digit character that can be converted to a float. The problem is 
in the latest version of Python with locale updates isdigit() takes a locale 
argument that seems to be passed over and over slowing down this check. Is it 
possible that we disable any local passing from Python down to lower-level C 
code, or simply set the default locale to 'C' to keep it from thrashing?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke


Change by Christoph Gohlke :


Added file: https://bugs.python.org/file47929/setup.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke


Change by Christoph Gohlke :


Added file: https://bugs.python.org/file47928/test_isdigit.c

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Christoph Gohlke


Christoph Gohlke  added the comment:

> Can someone please try to write an example which only uses the stdlib?

The simplest is to compare performance of the 
`windll.LoadLibrary('API-MS-WIN-CRT-STRING-L1-1-0.DLL')` function on Python 
3.7.0a3 and 3.7.0a4, but that will mostly measure Python/ctypes overhead. I 
will post a minimal C extension instead.


> What are these extensions? Where do them come from?

The `isdigit` function is from the UCRT. The `parsers` Cython/C extension is 
part of the pandas wheel on PyPI. The context for this issue is at 
https://github.com/pandas-dev/pandas/issues/23516


> I don't understand which "locale changes" you are talking about. You can 
> change the locale using locale.setlocale().

The `UCRT.isdigit` function, when run on Python >=3.7.0a4, calls the 
`_isdigit_l` function, which calls `_LocaleUpdate::_LocaleUpdate` (see the VS 
profiler output).

--
nosy: +cgohlke

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread STINNER Victor


STINNER Victor  added the comment:

Can someone please try to write an example which only uses the stdlib?

> The culprit is the isdigit function called in the parsers extension module.

What are these extensions? Where do them come from?

> Any way you can help test out a config setting to avoid the locale changes on 
> Python 3.7.0a4+?

(I fixed 2.7 => 3.7)

I don't understand which "locale changes" you are talking about. You can change 
the locale using locale.setlocale().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-12 Thread Dragoljub


Dragoljub  added the comment:

@Vstinner,

Any way you can help test out a config setting to avoid the locale changes on 
Python 2.7.0a4+? It is currently causing the isdigit() low-level function to 
call the local-specific function on windows and update locals each call slowing 
down CSV Paring on Windows 3.5X

How can we configure python to not be different than 3.6.7 when it come to 
locale behavior?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-10 Thread Dragoljub


Dragoljub  added the comment:

@cgohlke compared the statement df2 = pd.read_csv(csv) on Python 3.7.0a3 and a4 
in the Visual Studio profiler. The culprit is the isdigit function called in 
the parsers extension module. On 3.7.0a3 the function is fast at ~8% of 
samples. On 3.7.0a4 the function is slow at ~64% samples because it calls the 
_isdigit_l function, which seems to update and restore the locale in the 
current thread every time...

3.7.0a3:
Function Name   Inclusive Samples   Exclusive Samples   Inclusive 
Samples % Exclusive Samples % Module Name
 + [parsers.cp37-win_amd64.pyd] 705 347 28.52%  14.04%  
parsers.cp37-win_amd64.pyd
   isdigit  207 207 8.37%   8.37%   ucrtbase.dll
 - _errno   105 39  4.25%   1.58%   ucrtbase.dll
   toupper  24  24  0.97%   0.97%   ucrtbase.dll
   isspace  21  21  0.85%   0.85%   ucrtbase.dll
   [python37.dll]   1   1   0.04%   0.04%   python37.dll
3.7.0a4:
Function Name   Inclusive Samples   Exclusive Samples   Inclusive 
Samples % Exclusive Samples % Module Name
 + [parsers.cp37-win_amd64.pyd] 8,613   478 83.04%  4.61%   
parsers.cp37-win_amd64.pyd
 + isdigit  6,642   208 64.04%  2.01%   ucrtbase.dll
 + _isdigit_l   6,434   245 62.03%  2.36%   ucrtbase.dll
 + _LocaleUpdate::_LocaleUpdate 5,806   947 55.98%  9.13%   ucrtbase.dll
 + __acrt_getptd2,121   1,031   20.45%  9.94%   ucrtbase.dll
   FlsGetValue  647 647 6.24%   6.24%   KernelBase.dll
 - RtlSetLastWin32Error 296 235 2.85%   2.27%   ntdll.dll
   _guard_dispatch_icall_nop101 101 0.97%   0.97%   ucrtbase.dll
   GetLastError 46  46  0.44%   0.44%   KernelBase.dll
 + __acrt_update_multibyte_info 1,475   246 14.22%  2.37%   ucrtbase.dll
 - __crt_state_management::get_current_state_index  1,229   513 11.85%  
4.95%   ucrtbase.dll
 + __acrt_update_locale_info1,263   235 12.18%  2.27%   ucrtbase.dll
 - __crt_state_management::get_current_state_index  1,028   429 9.91%   
4.14%   ucrtbase.dll
   _ischartype_l383 383 3.69%   3.69%   ucrtbase.dll

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-09 Thread Dragoljub


Dragoljub  added the comment:

I tested this at runtime with sys._enablelegacywindowsfsencoding()

Also this was new in 3.6 and Py 3.6 does not have the slowdown issue.

New in version 3.6: See PEP 529 for more details.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-09 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I have limited understanding of Windows and I don't have access to a Windows 
machine to check this out. I am adding Victor who implemented the PEP and might 
help here. There also seems to be PYTHONLEGACYWINDOWSFSENCODING for windows 
specific use case. Some more notes on the original issue 
https://bugs.python.org/issue29240#msg285278.

https://bugs.python.org/issue29240#msg285325

> Handle PYTHONLEGACYWINDOWSFSENCODING: this env var now disables the UTF-8 
> mode and has the priority over -X utf8 and PYTHONUTF8

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-09 Thread Dragoljub


Dragoljub  added the comment:

I tried playing around with the UTF-8 mode settings but did not get a speed 
improvement.

After reading through the PEP it appears that on Windoes:

"To allow for better cross-platform binary portability and to adjust 
automatically to future changes in locale availability, these checks will be 
implemented at runtime on all platforms other than Windows, rather than 
attempting to determine which locales to try at compile time."

So if i'm understanding this correctly the locale coercion would not be 
controllable from Windows after Python is compiled?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-09 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

>From the PEP 540

This mode is off by default, but is automatically activated when using the 
"POSIX" locale.

Add the -X utf8 command line option and PYTHONUTF8 environment variable to 
control UTF-8 Mode.

https://docs.python.org/3.7/using/cmdline.html#envvar-PYTHONUTF8

I think you can set it to 0 from the docs yo see if it has any effect.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-09 Thread Dragoljub


Dragoljub  added the comment:

After some more digging it appears that we see the 3.5x slowdown manifest in 
Python 3.7.0a4 and is not present in Python 3.7.0a3.

One guess is that 

https://docs.python.org/3.7/whatsnew/changelog.html#python-3-7-0-alpha-4

bpo-29240: Add a new UTF-8 mode: implementation of the PEP 540

may contribute to this slowdown on windows. Is there a way to ensure we disable 
any native to UTF conversion that may be happening in Python 3.7.a4?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-09 Thread Dragoljub


Dragoljub  added the comment:

After some more benchmarks I'm seeing this line of code called in Python 3.7 
but not in Python 3.5:

{built-in method _thread.allocate_lock}

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-08 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-08 Thread Dragoljub


New submission from Dragoljub :

xref: https://github.com/pandas-dev/pandas/issues/23516

Example:
import io
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.randn(100, 10), columns=('COL{}'.format(i) for 
i in range(10)))
csv = io.StringIO(df.to_csv(index=False))
df2 = pd.read_csv(csv) #3.5X slower on Python 3.7.1

pd.read_csv() reads data at 30MB/sec on Python 3.7.1 while at 100MB/sec on 
Python 3.6.7.

This issue seems to be only present on Windows 10 Builds both x86 & x64. 

Possibly some IO changes in Python 3.7 could have contributed to this slowdown 
on Windows but not on Linux?

--
components: IO
messages: 329490
nosy: Dragoljub
priority: normal
severity: normal
status: open
title: Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 
On Windows 10
type: performance
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue35195>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2018-04-02 Thread Ned Deily

Ned Deily  added the comment:

https://www.python.org/ftp/python/doc/3.5.0/ now contains copies of the 3.5.0 
final downloadable docs and no longer contains any pre-release versions.  
Thanks everyone!

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28883] Python 3.5.2 crashers (from PyPy)

2018-02-25 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

C5 is fixed in 3.8 by issue17611.

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25170] 3.4.4, 3.4.5, 3.5.0, 3.5.1, 3.5.2 documentation archives missing

2018-02-22 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

It appears that all the docs from the issue title (and the subsequent releases) 
exist on https://www.python.org/ftp/python/doc/ now, except that the 3.5.0 ones 
are for alpha releases instead of the final.  Larry mentioned that in 
msg271236.  Not sure if fixing that is something that can still be done or if 
this issue can be closed as resolved?

Thanks!

--
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: How to diagnose this, fails on 3.6.3, works on 3.5.2?

2018-01-26 Thread Chris Green
Peter Otten <__pete...@web.de> wrote:
> Chris Green wrote:
> 
> > I have a fairly simple little python program to automate starting an
> > editor on a wiki page.  It works fine on the system where I wrote it
> > (xubuntu 16.04, python 3 version 3.5.2) but it comes up with the
> > following error on a newer system (xubuntu 17.10, python 3 version
> > 3.6.3).
> > 
> > Here is the error:-
> > 
> > chris$ no
> > Traceback (most recent call last):
> >   File "/home/chris/bin/no", line 59, in 
> > os.execvp("vi", ("", monthFile,))
> >   File "/usr/lib/python3.6/os.py", line 559, in execvp
> > _execvpe(file, args)
> >   File "/usr/lib/python3.6/os.py", line 594, in _execvpe
> > exec_func(fullname, *argrest)
> > ValueError: execv() arg 2 first element cannot be empty
> > 
> > Has execvp() become stricter in 3.6.3 or what?
> 
> Yes; the relevant issue on the bug tracker seems to be
> 
> https://bugs.python.org/issue28732
> 
OK, thanks all, I just need to put 'vi' in that empty parameter.

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to diagnose this, fails on 3.6.3, works on 3.5.2?

2018-01-24 Thread Peter Otten
Chris Green wrote:

> I have a fairly simple little python program to automate starting an
> editor on a wiki page.  It works fine on the system where I wrote it
> (xubuntu 16.04, python 3 version 3.5.2) but it comes up with the
> following error on a newer system (xubuntu 17.10, python 3 version
> 3.6.3).
> 
> Here is the error:-
> 
> chris$ no
> Traceback (most recent call last):
>   File "/home/chris/bin/no", line 59, in 
> os.execvp("vi", ("", monthFile,))
>   File "/usr/lib/python3.6/os.py", line 559, in execvp
> _execvpe(file, args)
>   File "/usr/lib/python3.6/os.py", line 594, in _execvpe
> exec_func(fullname, *argrest)
> ValueError: execv() arg 2 first element cannot be empty
> 
> Has execvp() become stricter in 3.6.3 or what?

Yes; the relevant issue on the bug tracker seems to be

https://bugs.python.org/issue28732

> ... and here is the program:-

[snip]

A smaller demo is

$ cat demo.py
import os
os.execvp("ls", ("",))
$ python3.5 demo.py 
demo.py
$ python3.6 demo.py 
Traceback (most recent call last):
  File "demo.py", line 2, in 
os.execvp("ls", ("",))
  File "/usr/local/lib/python3.6/os.py", line 559, in execvp
_execvpe(file, args)
  File "/usr/local/lib/python3.6/os.py", line 594, in _execvpe
exec_func(fullname, *argrest)
ValueError: execv() arg 2 first element cannot be empty


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


How to diagnose this, fails on 3.6.3, works on 3.5.2?

2018-01-24 Thread Chris Green
I have a fairly simple little python program to automate starting an
editor on a wiki page.  It works fine on the system where I wrote it
(xubuntu 16.04, python 3 version 3.5.2) but it comes up with the
following error on a newer system (xubuntu 17.10, python 3 version
3.6.3).

Here is the error:-

chris$ no
Traceback (most recent call last):
  File "/home/chris/bin/no", line 59, in 
os.execvp("vi", ("", monthFile,))
  File "/usr/lib/python3.6/os.py", line 559, in execvp
_execvpe(file, args)
  File "/usr/lib/python3.6/os.py", line 594, in _execvpe
exec_func(fullname, *argrest)
ValueError: execv() arg 2 first element cannot be empty

Has execvp() become stricter in 3.6.3 or what?


... and here is the program:-


#!/usr/bin/python3
#
#
# Create Dokuwiki journal month pages
#
import sys
import os
import time
import calendar

jdir = "/home/chris/wiki/data/pages/journal"
#
#
# Default month and year is 'now'
#
month = time.localtime().tm_mon
year = time.localtime().tm_year
#
#
# If one parameter is given then it's the month
#
if len(sys.argv) == 2:
month = int(sys.argv[1])
#
#
# If two parameters are given they are month and year
#
if len(sys.argv) == 3:
year = int(sys.argv[2])
month = int(sys.argv[1])
#
#
#
#
#
#
# Check if the year directory exists and create it if it doesn't
#
yearDir = os.path.join(jdir, str(year))
if not os.path.exists(yearDir):
os.mkdir(yearDir)
#
#
# Check if month file exists, create it if it doesn't and write heading and 
links
#
if month < 10:
monthFile = os.path.join(yearDir, '0' + str(month) + '.txt')
else:
monthFile = os.path.join(yearDir, str(month) + '.txt')
if not os.path.exists(monthFile):
monthName = calendar.month_name[month]
f = open(monthFile, 'w')
f.write(monthName + " " + str(year) + "\n")
for i in range(len(monthName) + 5):
f.write("=")
f.write("\n")
f.close()

os.execvp("vi", ("", monthFile,))

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue27804] IDLE 3.5.2 crashes when typing ^ on keyboard

2017-09-15 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee: terry.reedy -> 
resolution: third party -> duplicate
superseder:  -> IDLE crashes when I press ^ key

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27487] -m switch regression in Python 3.5.2 (under rare circumstances)

2017-07-12 Thread Nick Coghlan

Nick Coghlan added the comment:

I've added a second answer to the referenced Stack Overflow issue that attempts 
to more clearly explain what is going on: 
https://stackoverflow.com/questions/43393764/python-3-6-project-structure-leads-to-runtimewarning/45070583#45070583

(The problem there is that proj.__init__ implicitly imports the module being 
executed by -m)

If that answer is still insufficient to diagnose the problem you're seeing, 
then I'd suggest submitting a new SO question explaining how the behaviour in 
your case differs from that one, and then providing a link to it as a comment 
on my answer.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27487] -m switch regression in Python 3.5.2 (under rare circumstances)

2017-07-12 Thread Luke

Luke added the comment:

I recently started getting this warning message (see bottom) that seems to be 
due to the changes from this issue.  I'm running a submodule as main using the 
`-m` flag, but I'm not doing any modification to `sys.modules`, or even 
`sys.path`...  I've taken a look at [The double-import 
trap](http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html#the-double-import-trap),
 but it doesn't really seem to apply.  I really have no idea how to go about 
debugging this.

1) Would it be possible for the warning to include information about how/where 
the double import is happening?

2) Are there other, common ways of this occurring when the `sys` module isn't 
being messed with?

The issue on stackexchange 
(https://stackoverflow.com/questions/43393764/python-3-6-project-structure-leads-to-runtimewarning)
 seems similar, although this one in particular isn't reproducible.

Any help would be greatly appreciated.  Thanks!


File "/n/home00/lkelley/.conda/envs/py35/lib/python3.6/runpy.py", line 183, in 
_run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/n/home00/lkelley/.conda/envs/py35/lib/python3.6/runpy.py", line 125, 
in _get_module_details
warn(RuntimeWarning(msg))
  File "/n/home00/lkelley/.conda/envs/py35/lib/python3.6/warnings.py", line 99, 
in _showwarnmsg
msg.file, msg.line)
  File "/n/home00/lkelley/zcode/zcode/inout/inout_core.py", line 835, in 
warn_with_traceback
traceback.print_stack()
/n/home00/lkelley/.conda/envs/py35/lib/python3.6/runpy.py:125: RuntimeWarning: 
'mbhmergers.gwb.deterministic.grid_calc' found in sys.modules after import of 
package 'mbhmergers.gwb.deterministic', but prior to execution of 
'mbhmergers.gwb.deterministic.grid_calc'; this may result in unpredictable 
behaviour
  warn(RuntimeWarning(msg))

--
nosy: +lzkelley

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: EXTERNAL: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread breamoreboy
On Wednesday, May 3, 2017 at 3:50:01 PM UTC+1, Joaquin Henriquez wrote:
> >Hi, I am using Python 3.5.2 on Linux Mint (X64) at the moment, and
> >wondering how to update it to 3.5.3. Are there some simple commands to do
> >that?
> 
> If available on the Mint repository you should be able to upgrade it manyally.
> 
> Centos: yum upgrade
> Debian: apt-get upgrade
> 
> Then for Mint you should have a similar command to do that.

Why have you put the EXTERNAL: into the header, hence destroying the threading 
that I, and presumably others, see?

Kindest regrads.

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


Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Chris Angelico
On Thu, May 4, 2017 at 2:43 AM, Thomas Nyberg  wrote:
> Interesting...learn something new every day! I knew that they would
> backport security updates, but I never realized they would actually use
> a newer (micro) version of the interpreter while retaining the original
> number on the package. (Of course using a newer micro version really
> just means officially backporting all those patches...which might mean
> basically the same thing as just using the newer micro release and
> adding their own changes.)
>
> Anyway thanks for pointing this out! This is exactly the kind of
> misconception that could fester for a long time without my every
> realizing it.

They won't update the entire package to 3.4.3 without changing the
version number, but what usually happens is that there are just a
handful of critical security patches on top of 3.4.2. So they keep
calling it 3.4.2, but it's as safe as 3.4.3.

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


Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Thomas Nyberg
On 05/03/2017 01:14 PM, Matt Ruffalo wrote:
> This isn't quite true -- Ubuntu 14.04 shipped with Python 3.4.0, but was
> updated at some point to 3.4.3 (which will be installed automatically
> through normal update mechanisms).
> 
> MMR...
> 

Well I'm less worried about whether it is _always_ true and rather that
it is possibly _ever_ true (which apparently it is for 16.04). :)

But thanks for pointing this out as well! Really I just need to file
this in my brain under "assumptions I should not make"...

Cheers,
Thomas
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Matt Ruffalo
On 2017-05-03 12:43, Thomas Nyberg wrote:
> On 05/03/2017 11:47 AM, Wolfgang Maier wrote:
>> On 03.05.2017 17:11, Thomas Nyberg wrote:
>>> On 05/03/2017 11:04 AM, Daiyue Weng wrote:
>>>> nope, I was thinking it might be good to update to 3.5.3 for security
>>>> reasons?
>>>>
>>> (CCing back in python-list since I accidentally dropped it.)
>>>
>>> I wouldn't worry about it. Package managers tend to usually take care of
>>> security updates. (Of course there is criticism of Linux Mint saying
>>> they're not as great at this...) Looking at Ubuntu 16.04, they are still
>>> on 3.5.1 (plus Ubuntu's own patches):
>>>
>>> http://packages.ubuntu.com/xenial/python3
>>>
>> Maybe I'm mistaken here, but I don't think that is fully true. With an
>> LTS version of Ubuntu you I don't think you will *ever* get upgraded to
>> a new Python version. Instead Canonical will backport changes from new
>> maintainance releases like 3.5.2/3.5.3 to older releases of the same
>> minor version (like the 3.5 series). So while the package for Python3.5
>> for Ubuntu 16.04 will seem pinned at version 3.5.1 over the lifetime of
>> the OS, the actual Python version you are running may be newer. In fact,
>> on my 16.04:
>>
>> % apt list python3
>> python3/xenial,now 3.5.1-3 amd64 [installed]
>>
>> % python3 -V
>> Python 3.5.2
>>
>> I have no clue how Mint handles this though.
>>
>> Wolfgang
>>
> Interesting...learn something new every day! I knew that they would
> backport security updates, but I never realized they would actually use
> a newer (micro) version of the interpreter while retaining the original
> number on the package. (Of course using a newer micro version really
> just means officially backporting all those patches...which might mean
> basically the same thing as just using the newer micro release and
> adding their own changes.)
>
> Anyway thanks for pointing this out! This is exactly the kind of
> misconception that could fester for a long time without my every
> realizing it.
>
> Cheers,
> Thomas

This isn't quite true -- Ubuntu 14.04 shipped with Python 3.4.0, but was
updated at some point to 3.4.3 (which will be installed automatically
through normal update mechanisms).

MMR...

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


Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Thomas Nyberg
On 05/03/2017 11:47 AM, Wolfgang Maier wrote:
> On 03.05.2017 17:11, Thomas Nyberg wrote:
>> On 05/03/2017 11:04 AM, Daiyue Weng wrote:
>>> nope, I was thinking it might be good to update to 3.5.3 for security
>>> reasons?
>>>
>>
>> (CCing back in python-list since I accidentally dropped it.)
>>
>> I wouldn't worry about it. Package managers tend to usually take care of
>> security updates. (Of course there is criticism of Linux Mint saying
>> they're not as great at this...) Looking at Ubuntu 16.04, they are still
>> on 3.5.1 (plus Ubuntu's own patches):
>>
>> http://packages.ubuntu.com/xenial/python3
>>
> 
> Maybe I'm mistaken here, but I don't think that is fully true. With an
> LTS version of Ubuntu you I don't think you will *ever* get upgraded to
> a new Python version. Instead Canonical will backport changes from new
> maintainance releases like 3.5.2/3.5.3 to older releases of the same
> minor version (like the 3.5 series). So while the package for Python3.5
> for Ubuntu 16.04 will seem pinned at version 3.5.1 over the lifetime of
> the OS, the actual Python version you are running may be newer. In fact,
> on my 16.04:
> 
> % apt list python3
> python3/xenial,now 3.5.1-3 amd64 [installed]
> 
> % python3 -V
> Python 3.5.2
> 
> I have no clue how Mint handles this though.
> 
> Wolfgang
> 
Interesting...learn something new every day! I knew that they would
backport security updates, but I never realized they would actually use
a newer (micro) version of the interpreter while retaining the original
number on the package. (Of course using a newer micro version really
just means officially backporting all those patches...which might mean
basically the same thing as just using the newer micro release and
adding their own changes.)

Anyway thanks for pointing this out! This is exactly the kind of
misconception that could fester for a long time without my every
realizing it.

Cheers,
Thomas
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Chris Angelico
On Thu, May 4, 2017 at 1:47 AM, Wolfgang Maier
<wolfgang.ma...@biologie.uni-freiburg.de> wrote:
>> I wouldn't worry about it. Package managers tend to usually take care of
>> security updates. (Of course there is criticism of Linux Mint saying
>> they're not as great at this...) Looking at Ubuntu 16.04, they are still
>> on 3.5.1 (plus Ubuntu's own patches):
>>
>> http://packages.ubuntu.com/xenial/python3
>>
>
> Maybe I'm mistaken here, but I don't think that is fully true. With an LTS
> version of Ubuntu you I don't think you will *ever* get upgraded to a new
> Python version. Instead Canonical will backport changes from new
> maintainance releases like 3.5.2/3.5.3 to older releases of the same minor
> version (like the 3.5 series). So while the package for Python3.5 for Ubuntu
> 16.04 will seem pinned at version 3.5.1 over the lifetime of the OS, the
> actual Python version you are running may be newer. In fact, on my 16.04:
>
> % apt list python3
> python3/xenial,now 3.5.1-3 amd64 [installed]
>
> % python3 -V
> Python 3.5.2
>
> I have no clue how Mint handles this though.

It's also worth noting that important security patches are often
backported. You said "plus Ubuntu's own patches", and those patches
often include anything that the Ubuntu maintainers deem important from
later in that branch, or even a different branch. I also have no clue
how Mint handles this, but with Red Hat, the general rule (if I have
been informed correctly) is that the version number marks the oldest
component in the package, but any patches from newer versions may be
applied.

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


Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Wolfgang Maier

On 03.05.2017 17:11, Thomas Nyberg wrote:

On 05/03/2017 11:04 AM, Daiyue Weng wrote:

nope, I was thinking it might be good to update to 3.5.3 for security
reasons?



(CCing back in python-list since I accidentally dropped it.)

I wouldn't worry about it. Package managers tend to usually take care of
security updates. (Of course there is criticism of Linux Mint saying
they're not as great at this...) Looking at Ubuntu 16.04, they are still
on 3.5.1 (plus Ubuntu's own patches):

http://packages.ubuntu.com/xenial/python3



Maybe I'm mistaken here, but I don't think that is fully true. With an 
LTS version of Ubuntu you I don't think you will *ever* get upgraded to 
a new Python version. Instead Canonical will backport changes from new 
maintainance releases like 3.5.2/3.5.3 to older releases of the same 
minor version (like the 3.5 series). So while the package for Python3.5 
for Ubuntu 16.04 will seem pinned at version 3.5.1 over the lifetime of 
the OS, the actual Python version you are running may be newer. In fact, 
on my 16.04:


% apt list python3
python3/xenial,now 3.5.1-3 amd64 [installed]

% python3 -V
Python 3.5.2

I have no clue how Mint handles this though.

Wolfgang

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


Re: EXTERNAL: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Chris Angelico
On Thu, May 4, 2017 at 1:03 AM, Daiyue Weng  wrote:
> not too urgent, just thinking it might be better to update python to the
> latest version for security reasons?

Let your upstream worry about that. It's their responsibility to
balance security against the potential to break things. Once they're
ready to upgrade to 3.5.3, you'll be able to get the update through
the regular apt upgrade system.

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


Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Thomas Nyberg
On 05/03/2017 11:04 AM, Daiyue Weng wrote:
> nope, I was thinking it might be good to update to 3.5.3 for security
> reasons?
> 

(CCing back in python-list since I accidentally dropped it.)

I wouldn't worry about it. Package managers tend to usually take care of
security updates. (Of course there is criticism of Linux Mint saying
they're not as great at this...) Looking at Ubuntu 16.04, they are still
on 3.5.1 (plus Ubuntu's own patches):

http://packages.ubuntu.com/xenial/python3

Unless you have some specific bug you're avoiding, I think you should be
okay. Or at least, I personally would just stay with the package version
if I were in your shoes.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: EXTERNAL: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Chris Angelico
On Thu, May 4, 2017 at 12:55 AM, Daiyue Weng  wrote:
> tried apt-get upgrade, but didn't get python updated, maybe 3.5.3 isn't in
> the repository. Might have to download it and install?

How urgently do you need 3.5.3?

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


Re: EXTERNAL: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Daiyue Weng
not too urgent, just thinking it might be better to update python to the
latest version for security reasons?

On 3 May 2017 at 15:58, Chris Angelico  wrote:

> On Thu, May 4, 2017 at 12:55 AM, Daiyue Weng  wrote:
> > tried apt-get upgrade, but didn't get python updated, maybe 3.5.3 isn't
> in
> > the repository. Might have to download it and install?
>
> How urgently do you need 3.5.3?
>
> ChrisA
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Fwd: EXTERNAL: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Daiyue Weng
tried apt-get upgrade, but didn't get python updated, maybe 3.5.3 isn't in
the repository. Might have to download it and install?

On 3 May 2017 at 15:42, Joaquin Henriquez <joaquin.henriq...@countercept.com
> wrote:

> >Hi, I am using Python 3.5.2 on Linux Mint (X64) at the moment, and
> >wondering how to update it to 3.5.3. Are there some simple commands to do
> >that?
>
> If available on the Mint repository you should be able to upgrade it
> manyally.
>
> Centos: yum upgrade
> Debian: apt-get upgrade
>
> Then for Mint you should have a similar command to do that.
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Thomas Nyberg
On 05/03/2017 10:34 AM, Daiyue Weng wrote:
> Hi, I am using Python 3.5.2 on Linux Mint (X64) at the moment, and
> wondering how to update it to 3.5.3. Are there some simple commands to do
> that?
> 
> cheers
> 
I wouldn't mess with the system python if I were you. That could clash
with Linux Mint's package management. Instead I would just install it in
my home directory as follows:

1. Create a folder like $HOME/src and download/extract the python 3.5.3
source to that directory.
2. Run (this may require installing your source repos first...see
below*) to install the necessary libraries to compile it:

$ sudo apt-get update
$ sudo apt-get build-dep python3.5

3. Go into $HOME/src/name_of_directory and run:

$ ./configure --prefix=$HOME
$ make && make install

4. After this you will be able to access this version of python as long
as you have your path setup right. I.e. if you open up an interpreter
and run:

$ export PATH=$HOME/bin:$PATH

You can also add that to your $HOME/.bashrc file at the end so that it
happens automatically whenever you open a terminal.

After this is done you should have a fresh installation. At this point
you can install whatever and use python 3.5.3 without messing with your
system's python.

*Source repos. I'm having trouble finding a clear explanation adding
source repos on line (your google foo may be more advanced), but
basically you can go into your `/etc/apt/sources.list` file and replace
lines like (I use debian so it's a bit different) this:

deb http://ftp.us.debian.org/debian/ jessie main non-free contrib

with slines like this:

deb-src http://ftp.us.debian.org/debian/ jessie main non-free contrib

After you've done that you should run

$ sudo apt-get update

CAUTION: If you haven't done this before, save yourself potential
problems by making a backup of the `/etc/apt/sources.list` file before
editing it...

Cheers,
Thomas
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: EXTERNAL: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Joaquin Henriquez
>Hi, I am using Python 3.5.2 on Linux Mint (X64) at the moment, and
>wondering how to update it to 3.5.3. Are there some simple commands to do
>that?

If available on the Mint repository you should be able to upgrade it manyally.

Centos: yum upgrade
Debian: apt-get upgrade

Then for Mint you should have a similar command to do that.
-- 
https://mail.python.org/mailman/listinfo/python-list


How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread Daiyue Weng
Hi, I am using Python 3.5.2 on Linux Mint (X64) at the moment, and
wondering how to update it to 3.5.3. Are there some simple commands to do
that?

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


[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +956

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2017-01-10 Thread Brett Cannon

Brett Cannon added the comment:

I think if you're up for doing individual issues, Armin, that's preferred. But 
if it's too much work we will take it all in this single issue instead of 
risking the loss of the information. And if you want to use this issue as a 
meta one to track everything you report that's obviously fine.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2017-01-10 Thread Armin Rigo

Armin Rigo added the comment:

> Armin, it would help if you report all cases as separate issues.

I asked on python-dev before creating these three issues, and got the opposite 
answer.  If you decide it was a bad idea after all, I will open separate issues 
in the future.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2017-01-10 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Armin, it would help if you report all cases as separate issues. Some of them 
are already resolved, some can be closed with "won't fix" resolution, others 
need special discussions. This issue can be left as a metaissue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2017-01-10 Thread Armin Rigo

Armin Rigo added the comment:

(S6) 'xxx' % b'foo' == 'xxx'
 b'xxx' % b'foo' raises TypeError

The first case is because PyMapping_Check() is true on b'foo', so it works like 
'xxx' % {...}, which always just returns 'xxx'.  The second case is because 
_PyBytes_Format() contains more special cases, for bytes and bytearray, which 
are not present in PyUnicode_Format().

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28983] Windows: Python 3.5.2 won't install on my computer

2017-01-03 Thread STINNER Victor

Changes by STINNER Victor <victor.stin...@gmail.com>:


--
title: Python 3.5.2 won't install on my computer -> Windows: Python 3.5.2 won't 
install on my computer

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28983>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2017-01-01 Thread Steve Dower

Changes by Steve Dower :


--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28983] Python 3.5.2 won't install on my computer

2016-12-28 Thread Steve Dower

Steve Dower added the comment:

Apologies for the delayed response - I haven't been going through bugs recently.

If you're still having trouble, please try uninstalling and then running the 
commands above. After that, try reinstalling. (Those are uninstall commands 
that should fix the problem of it not-quite-uninstalling. If you run them after 
installing, you will definitely corrupt your installation.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29027] 3.5.2 compile error from ssl related.

2016-12-22 Thread kevin

kevin added the comment:

Hi Christian,

This issue is resolved.

Thanks a lot.

--
resolution: not a bug -> fixed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29027] 3.5.2 compile error from ssl related.

2016-12-22 Thread Christian Heimes

Christian Heimes added the comment:

Python 3.5.2 is not compatible with OpenSSL 1.1.0. You have to wait until 3.5.3 
is released in about a month or downgrade OpenSSL to 1.0.2.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29027>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29027] 3.5.2 compile error from ssl related.

2016-12-22 Thread kevin

kevin added the comment:

Hi Christian,
Thanks for your reply.

The machine's information as following:

Platform: x86_64;

OS: ubuntu16.04;

Compiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609;

Openssl version:OpenSSL 1.1.0c  10 Nov 2016.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Thank you so much! This solved it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread Eryk Sun

Eryk Sun added the comment:

openwithidle_for_frostyelsa.reg adds an open command for the current user that 
opens the target file in IDLE. This will take precedence over the per-machine 
open command that executes the file using the launcher. 

It also adds "Run" and "Run as administrator" commands to execute the file 
using the launcher.

--
Added file: http://bugs.python.org/file45994/openwithidle_for_frostyelsa.reg

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Before re-installing Windows 10, I was able to open up all my .py files  by 
double-clicking on them and it would open them up in the IDLE (where I could 
edit the code manually and what have you). I'm not sure why it's never been a 
feature: I was doing that for many months.

--
Added file: http://bugs.python.org/file45993/double clicking on .py should show 
this.PNG

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread Eryk Sun

Eryk Sun added the comment:

> I want this to be a regular installation of Python wherein I can 
> associate .py files with IDLE

That isn't a regular installation. It's not even an optional configuration, and 
never has been. You'd have to set that up manually. Are you looking to [-r]un 
files in IDLE by double clicking on them, or simply open them in the editor?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread Eryk Sun

Eryk Sun added the comment:

> I did that, and now all the options are gone.

Removing the broken HKLM entry shouldn't have removed all of the options. The 
"Edit with IDLE" menu should be there as long as Python.File is selected for 
the file association. It's defined for the current user on your system, under 
the following key:

HKCU\SOFTWARE\Classes\Python.File\Shell\editwithidle

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Also, just to clarify, I want this to be a regular installation of Python 
wherein I can associate .py files with IDLE (i.e. when I double click on a .py 
file, it takes me straight to the code) *as well as* having the option to "Edit 
with IDLE" when right-clicking on a .py file. For some reason, on this machine, 
I'm not able to replicate the same installation as on my other Windows machine 
not matter how much I try.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Also, just to clarify, I want this to be a regular installation of Python 
wherein I can associate .py files with IDLE (i.e. when I double click on a .py 
file, it takes me straight to the code) *as well as* having the option to "Edit 
with IDLE" when right-clicking on a .py file. For some reason, on this machine, 
I'm not able to replicate the same installation as on my other Windows machine 
not matter how much I try.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

I did that, and now all the options are gone.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread Eryk Sun

Eryk Sun added the comment:

To remove the broken "Edit with IDLE" entry, open an elevated (administrator) 
command prompt and run the following:

reg delete "HKLM\SOFTWARE\Classes\Python.File\shell\Edit with IDLE" /f

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Following your instructions on key deletion, I have now 2 "Edit with IDLE" 
options now. The top one does *not* work. The second one, however, does work. 
But when I tried to associate the .py with idle (so it opens up in IDLE) it 
reverted back to the command-line run of the .py file and eliminated the "Edit 
with IDLE" options from the right-click menu. Very odd. 

Thank you so much for staying with this issue.

--
Added file: http://bugs.python.org/file45992/progress so far.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Couple things to note: I was not able to delete a couple of the keys. 
Regardless I've made some progress which I will outline in the next comment.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread Eryk Sun

Eryk Sun added the comment:

Let's do a bit of house cleaning. Run the following commands in a command 
prompt:

reg delete HKCU\SOFTWARE\Classes\.py /f
reg delete HKCU\SOFTWARE\Classes\py_auto_file /f
reg delete HKCU\SOFTWARE\Classes\Applications\python.exe /f
reg delete HKCU\SOFTWARE\Classes\Applications\py.exe /f
reg delete 
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py /f

HKCU\SOFTWARE\Classes\.py is selecting the PyCharm2016.3 ProgId. This takes 
precedence over HKLM\SOFTWARE\Classes\.py, the key that selects Python.File. I 
expect this causes Explorer to automatically reselect the PyCharm2016.3 ProgId. 
Deleting it in combination with deleting "...\Explorer\FileExts\.py" may fix 
the problem, i.e. restore the Edit with IDLE menu.

The "...\Applications\python.exe" and "...\Applications\py.exe" keys were 
created by manually associating with the given executable. Note how the open 
commands have the script path (%1) but no command-line arguments (%*). It's 
harmless to delete these keys.

--
nosy: +eryksun

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Couple things: I installed PyCharm after all other options where exhausted. I 
needed to do some work on multiple projects. 

And also, I deleted .py key and it still doesn't show up. I tried associating 
it with idle.pyw and that didn't work either: Windows said it can't run that on 
my PC.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread Steve Dower

Steve Dower added the comment:

It looks like PyCharm has taken over your shortcut:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py\UserChoice
HashREG_SZ55jxudRhknE=
ProgIdREG_SZPyCharm2016.3

If you delete the entire "FileExts\.py" key with registry editor then it should 
reset back to either our launcher, or give you the ability to choose.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Thank you for your help. Attached is the py_config.txt that your .bat file gave 
me.

--
Added file: http://bugs.python.org/file45991/py_config.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread Eryk Sun

Changes by Eryk Sun :


Added file: http://bugs.python.org/file45989/dump_py_config.bat

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread eryk sun

Changes by eryk sun :


Removed file: http://bugs.python.org/file45988/dump_py_config.bat

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread eryk sun

eryk sun added the comment:

There are many possible points of failure, so I'd like to get a clearer picture 
of your system configuration. Please download and run the attached batch file 
"dump_py_config.bat" and upload the "py_config.txt" file that it creates.

--
Added file: http://bugs.python.org/file45988/dump_py_config.bat

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Yes, I have IDLE installed, and Launcher is installed as well. I can open up 
IDLE from the shortcut, however I am not able to access it within "Open With" 
or "Default Programs" or "Change" (within Properties). I _can_ open up the file 
only if I open up IDLE first then click "File" and then "Open" of the .py file 
in question. But the process of doing that compared to just double-clicking the 
IDLE-associated .py file is enormous and a workaround I'm trying to avoid. 

I've done steps 1-4 on a clean installation however there is one thing missing: 
the Python Launcher. It does not appear in the list of programs to choose. I 
tried everything up to and including idle.bat. But I'm not going to use 
idle.bat, that is a workaround I'm also trying to avoid. I just want a correct 
installation. I think it has something to do with my OS preventing the Python 
Installer from tinkering with the "Open With" options. 

The original shortcut for a clean installation for me is the python run command 
in the command-prompt. I need to able to see the code in IDLE when I double 
click on a .py file. 

Thank you for your help.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread Steve Dower

Steve Dower added the comment:

But you definitely have idle installed, right? The commands earlier made an 
assumption about your installation that could be wrong, so that would explain 
it.

I'm still not entirely clear whether you've done these steps yet:

1. Right-click a .py file and select Open With
1a. If this gives you a deeper menu, select Another App
2. Find the Python launcher in the window that appears and select it.
3. Select Always Open with this app check box
4. Click Open/ok/whatever button is on there

That should reset your personal customization back to the original shortcut.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-21 Thread David

David added the comment:

Also, I created a reg file with the commands in a txt file and when I merged 
it, it was able to show the "Edit with IDLE" but it would do nothing. IDLE 
isn't there. Very perplexing.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-20 Thread David

David added the comment:

So I tried changing it to py.exe, and it doesn't load the IDLE: instead, it 
opens up the run command for the program in command prompt. That's not what I 
want it to do. Also, there still is no Edit With IDLE option. And I tried doing 
the ProgID stuff, but none of it worked even after repairing/uninstalling, etc. 

I'm kind of hopeless at this point. Thank you everyone for helping.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-20 Thread eryk sun

eryk sun added the comment:

> There's no reason to for IDLE to be a system-level association if 
> the user has not chosen the association

Ok, to clarify, SystemFileAssociations can be defined in either the system or 
user hive. It's fine if the IDLE menu is added this way when it's done just for 
the current user (perhaps with an addition option in the installer). The 
problem is setting it in the system hive for a per-machine install because an 
individual user won't be able to disable the menu.

> I'd rather figure out adding an "Open With" entry for IDLE

As you've suggested before, that requires bundling an idle.exe launcher.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-20 Thread Steve Dower

Steve Dower added the comment:

> Steve, you could move the "Edit with IDLE" menu out of the Python.File ProgId 
> to an entry defined in SystemFileAssociations.

I could, but I don't want to. I'd rather figure out adding an "Open With" entry 
for IDLE.

There's no reason to for IDLE to be a system-level association if the user has 
not chosen the association, just as I'd expect any text editor to be opt-in.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   >