Re: How to sort this without 'cmp=' in python 3?

2023-10-24 Thread Chris Angelico via Python-list
On Wed, 25 Oct 2023 at 13:02, Mike H via Python-list wrote: > Is it possible to use lambda expression instead of defining a `Key` class? > Something like `sorted(my_list, key = lambda x, y: x+y > y+x)`? Look up functools.cmp_to_key. ChrisA --

Re: How to sort this without 'cmp=' in python 3?

2023-10-24 Thread Mike H via Python-list
bda a,b: cmp(a+b, b+a), reverse=True) > > > > But how to do this in python 3? > > > > Thank you > While cmp_to_key is neat doing it by hand should also be instructive. > Essentially you move the comparison into a method of the key: > > $ cat translate_cmp.py &

[Python-announce] ANN: Shed Skin 0.9.6 - adds Python 3 support!

2022-12-30 Thread Mark Dufour
Hi all, I have just released version 0.9.6 of Shed Skin, a restricted-Python-to-C++ compiler. The highlight of this release is the migration to Python 3. For more information about the release: http://blogfarts.blogspot.com/2022/12/shed-skin-restricted-python-to-c.html Project homepage: http

[issue47240] Python 3.x built for ppc+ppc64 errs on: No module named 'msvcrt', '_posixsubprocess'

2022-04-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: The problem you should look into is why the _posixsubprocess doesn't build, the message about msvcrt is a red herring due to the way subprocess.py is structured. Also compare the pyconfig.h files created for the two single architecture builds, maybe there

[issue47240] Python 3.x built for ppc+ppc64 errs on: No module named 'msvcrt', '_posixsubprocess'

2022-04-06 Thread Sergey Fedorov
New submission from Sergey Fedorov : While adding definitions for additional universal binary option (ppc+ppc64) is rather straightforward (following already existing examples in the source code), and Python 3.x after patching do build as universal for named two arch, trying to install any

[Python-announce] Python 3 complete documentation - offline Android Apps

2022-02-18 Thread Mohee
Dear, I would like to contribute to the Python Documentation, to announce the availability of Python offline documentation to Google Android devices/Tablets world. Here are the apps available at Google Play store (free): Python 3.10 complete HTML offline docs app:

[issue37422] Documentation on the change of __path__ in Python 3

2022-01-19 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue37422] Documentation on the change of __path__ in Python 3

2022-01-12 Thread Irit Katriel
Irit Katriel added the comment: >From the discussion is seems like there is nothing that needs to be added to >the docs. I will close this in a while if nobody objects. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue38884] __import__ is not thread-safe on Python 3

2021-12-08 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Given that the behavior changes between Python 3.2 (no deadlock) and Python 3.3 (deadlock), this should be easily bisectable if someone has the right setup to build and run Python versions from sources in that range. --

[issue38884] __import__ is not thread-safe on Python 3

2021-12-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25810] Python 3 documentation for eval is incorrect

2021-12-01 Thread Irit Katriel
Irit Katriel added the comment: Help is now showing eval(source, globals=None, locals=None, /) with the / that indicates the args are positional only. The docs were updated here to state that the args are positional. -- nosy: +iritkatriel resolution: -> fixed stage: patch review

Re: How to decode ISO8859-1 in Python 3?

2021-11-28 Thread Chris Green
Stefan Ram wrote: > Chris Green writes: > >I have some text files which are ISO8859-1 encoded and I want to output > >them to screen using Python. > > Well, the first attempt would be: > > import pathlib > name = r"C:\example.txt" > encoding = r"iso8859-1" > path = pathlib.Path( name ) >

How to decode ISO8859-1 in Python 3?

2021-11-28 Thread Chris Green
This sounds as if it should be trivial but searching only seems to produce ways ofd doing it in Python 2. I have some text files which are ISO8859-1 encoded and I want to output them to screen using Python. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2021-10-20 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed superseder: -> Close 2to3 issues and list them here ___ Python tracker

[issue45377] Default python 3 docs still pointing to 3.9.7

2021-10-05 Thread Eric V. Smith
Eric V. Smith added the comment: You should report this at https://github.com/python/pythondotorg/issues -- nosy: +eric.smith resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

[issue45377] Default python 3 docs still pointing to 3.9.7

2021-10-05 Thread Raúl Cumplido
to python 3.10 already? -- assignee: docs@python components: Documentation messages: 403235 nosy: docs@python, mdk, raulcd priority: normal severity: normal status: open title: Default python 3 docs still pointing to 3.9.7 type: behavior versions: Python 3.10

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Always happy to help :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-22 Thread Stefan Behnel
Stefan Behnel added the comment: Sorry for that, Pablo. I knew exactly where the problem was, the second I read your notification. Thank you for resolving it so quickly. -- ___ Python tracker

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 1c7e98dc258a0e7ccd2325a1aefc4aa2de51e1c5 by Pablo Galindo Salgado in branch 'main': bpo-24076: Fix reference in sum() introduced by GH-28469 (GH-28493) https://github.com/python/cpython/commit/1c7e98dc258a0e7ccd2325a1aefc4aa2de51e1c5

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Sorry, I meant PR 28493 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Opened #28493 to fix the refleak -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +26888 pull_request: https://github.com/python/cpython/pull/28493 ___ Python tracker ___

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately commit debd80403721b00423680328d6adf160a28fbff4 introduced a reference leak: ❯ ./python -m test test_grammar -R : 0:00:00 load avg: 2.96 Run tests sequentially 0:00:00 load avg: 2.96 [1/1] test_grammar beginning 9 repetitions 123456789

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you again Stefan. Now no doubts are left. BTW, pyperf gives more stable results. I use it if have any doubts (either the results of timeit are not stable or the difference is less than say 10%). -- ___

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Stefan Behnel
Stefan Behnel added the comment: Old, with PGO: $ ./python -m timeit -s 'd = list(range(2**61, 2**61 + 1))' 'sum(d)' 1000 loops, best of 5: 340 usec per loop $ ./python -m timeit -s 'd = list(range(2**30, 2**30 + 1))' 'sum(d)' 2000 loops, best of 5: 114 usec per loop $ ./python -m

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Stefan Behnel
Stefan Behnel added the comment: Hmm, thanks for insisting, Serhiy. I was accidentally using a debug build this time. I'll make a PGO build and rerun the microbenchmarks. -- ___ Python tracker

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you. Could you please test PGO builds? -- ___ Python tracker ___ ___ Python-bugs-list

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Stefan Behnel
Stefan Behnel added the comment: Original: $ ./python -m timeit -s 'd = list(range(2**61, 2**61 + 1))' 'sum(d)' 500 loops, best of 5: 712 usec per loop $ ./python -m timeit -s 'd = list(range(2**30, 2**30 + 1))' 'sum(d)' 2000 loops, best of 5: 149 usec per loop $ ./python -m timeit -s

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Stefan Behnel
Change by Stefan Behnel : -- Removed message: https://bugs.python.org/msg402301 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Stefan Behnel
Stefan Behnel added the comment: Original: $ ./python -m timeit -s 'd = list(range(2**61, 2**61 + 1))' 'sum(d)' 500 loops, best of 5: 712 usec per loop $ ./python -m timeit -s 'd = list(range(2**30, 2**30 + 1))' 'sum(d)' 2000 loops, best of 5: 149 usec per loop $ ./python -m timeit -s

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What are microbenchmark results for PR 28469 in comparison with the baseline? -- ___ Python tracker ___

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-21 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset debd80403721b00423680328d6adf160a28fbff4 by scoder in branch 'main': bpo-24076: Inline single digit unpacking in the integer fastpath of sum() (GH-28469) https://github.com/python/cpython/commit/debd80403721b00423680328d6adf160a28fbff4

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-20 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds good, you have my blessing. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-20 Thread Stefan Behnel
Stefan Behnel added the comment: > The patch looks fine, but it looks a bit like benchmark chasing. Is the speed > of builtin sum() of a sequence of integers important enough to do this bit of > inlining? Given that we already accepted essentially separate loops for the int, float and

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-20 Thread Guido van Rossum
Guido van Rossum added the comment: The patch looks fine, but it looks a bit like benchmark chasing. Is the speed of builtin sum() of a sequence of integers important enough to do this bit of inlining? (It may break if we change the internals of Py_Long, as Mark Shannon has been wanting to

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I created a PR from my last patch, inlining the unpacking > of single digit integers. Thanks, that gets to the heart of the issue. I marked the PR as approved (though there is a small coding nit you may want to fix). --

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-20 Thread Stefan Behnel
Stefan Behnel added the comment: I created a PR from my last patch, inlining the unpacking of single digit integers. Since most integers should fit into a single digit these days, this is as fast a path as it gets. https://github.com/python/cpython/pull/28469 -- versions: +Python

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-20 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: +26868 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/28469 ___ Python tracker ___

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-20 Thread Raymond Hettinger
>= 0 || (x^b) >= 0) { // Semi cheap i_result = x; // Zero cost Py_DECREF(item);// Most expensive step, but still cheap continue; }

[issue24076] sum() several times slower on Python 3 64-bit

2021-09-18 Thread Guido van Rossum
Guido van Rossum added the comment: @Stefan > FWIW, a PGO build of Py3.7 is now about 20% *faster* here than my Ubuntu > 16/04 system Python 2.7 Does that mean we can close this issue? Or do I misunderstand what you are comparing? 32 vs. 64 bits? PGO vs. non-PGO? OTOH on my Mac I still

Re: How to iterate through maildir messages in python 3?

2021-06-27 Thread Chris Green
Dennis Lee Bieber wrote: > On Fri, 25 Jun 2021 09:19:49 +0100, Chris Green declaimed the > following: > > > > >Here's the full program where I'm encountering the error (yes, I > >should have posted this first time around) :- > > > >#!/usr/bin/python3 > > > >import mailbox > >import

Re: How to iterate through maildir messages in python 3?

2021-06-26 Thread Chris Green
t; > > >print msg # or whatever you want to do with the message > > > > > > > > > > > > However in python 3 this produces "TypeError: string argument > > > > expected, got 'bytes'". > > > > > > > > How

Re: How to iterate through maildir messages in python 3?

2021-06-25 Thread Chris Angelico
to do with the message > > > > > > > > > However in python 3 this produces "TypeError: string argument > > > expected, got 'bytes'". > > > > > > How should one iterate over a maildir in python3? > > > > You're already iterating o

Re: How to iterate through maildir messages in python 3?

2021-06-25 Thread Chris Green
Gilmeh Serda wrote: > On Fri, 25 Jun 2021 09:19:49 +0100, Chris Green wrote: > > > TypeError: string argument expected, got 'bytes' > > couple things comes to mind: > > 1. find py2 as archive, put it somewhere and run it from that > Hmm! :-) > 2. convert the bytes to str (find and replace)

Re: How to iterate through maildir messages in python 3?

2021-06-25 Thread Chris Green
Greg Ewing wrote: > On 25/06/21 7:06 am, Chris Green wrote: > > In python 2 one can do:- > > > > for msg in maildir: > >print msg # or whatever you want to do with the message > > > > > > However in python 3 this produces

How to iterate through maildir messages in python 3?

2021-06-24 Thread Chris Green
In python 2 one can do:- for msg in maildir: print msg # or whatever you want to do with the message However in python 3 this produces "TypeError: string argument expected, got 'bytes'". How should one iterate over a maildir in python3? (I've been h

Re: How to iterate through maildir messages in python 3?

2021-06-24 Thread Greg Ewing
On 25/06/21 7:06 am, Chris Green wrote: In python 2 one can do:- for msg in maildir: print msg # or whatever you want to do with the message However in python 3 this produces "TypeError: string argument expected, got 'bytes'". How should one iterate over

[issue25682] __package__ not set to None under pdb in Python 3

2021-06-14 Thread Irit Katriel
Irit Katriel added the comment: Thanks Keith. Closing and we can look into it if someone else has an issue. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue25682] __package__ not set to None under pdb in Python 3

2021-06-14 Thread Keith Prussing
that expected to run using the -m option but could be run as a script too. A few things have changed since the original report: 1. I have forgotten which script/tool I was working on so I wouldn't be able to find it if I tried. 2. I was trying to support Python 2.7 and Python 3 (which I have 0

[issue25682] __package__ not set to None under pdb in Python 3

2021-06-14 Thread Irit Katriel
Irit Katriel added the comment: pdb imports the module with importlib, and populates __main__ with data from its spec, including the package. This doesn't contradict the fact that the python command line can have only one "-m". What is the actual problem here? -- nosy: +iritkatriel

Re: Retrieving non-/etc/passwd users with Python 3?

2021-04-01 Thread Loris Bennett
he PyPi package >>>> >>>> getent >>>> >>>> I get the error >>>> >>>> File "/tmp/pip-build-vu4lziex/getent/setup.py", line 9, in >>>> long_description = file('README.rst').read(), >>>> NameError:

Re: Retrieving non-/etc/passwd users with Python 3?

2021-03-31 Thread Christian Heimes
r >>> >>> File "/tmp/pip-build-vu4lziex/getent/setup.py", line 9, in >>> long_description = file('README.rst').read(), >>> NameError: name 'file' is not defined >>> >>> I duckduckwent a bit and the problem seems to be that 'file'

Re: Retrieving non-/etc/passwd users with Python 3?

2021-03-31 Thread Loris Bennett
ription = file('README.rst').read(), >> NameError: name 'file' is not defined >> >> I duckduckwent a bit and the problem seems to be that 'file' from Python >> 2 has been replaced by 'open' in Python 3. >> >> So what's the standard way of getting a list of use

Re: Retrieving non-/etc/passwd users with Python 3?

2021-03-31 Thread Chris Angelico
duckduckwent a bit and the problem seems to be that 'file' from Python > 2 has been replaced by 'open' in Python 3. > > So what's the standard way of getting a list of users in this case? > I don't have LDAP experience so I don't know for sure, but is the stdlib "pwd" module s

Retrieving non-/etc/passwd users with Python 3?

2021-03-31 Thread Loris Bennett
"/tmp/pip-build-vu4lziex/getent/setup.py", line 9, in long_description = file('README.rst').read(), NameError: name 'file' is not defined I duckduckwent a bit and the problem seems to be that 'file' from Python 2 has been replaced by 'open' in Python 3. So what's the st

[issue38241] doc: Pickle with protocol=0 in python 3 does not produce a 'human-readable' format

2021-03-25 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation nosy: +docs@python title: Pickle with protocol=0 in python 3 does not produce a 'human-readable' format -> doc: Pickle with protocol=0 in python 3 does not produce a 'human-readable' format ve

[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- type: behavior -> enhancement versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-06 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b225d91f0a92d657d9a1b62daa53ab239c8191e3 by Kamil Turek in branch 'master': bpo-43391: Remove the broken Python 2.4 link from the comment (GH-24736) https://github.com/python/cpython/commit/b225d91f0a92d657d9a1b62daa53ab239c8191e3

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-03 Thread Kamil Turek
Change by Kamil Turek : -- keywords: +patch pull_requests: +23507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24736 ___ Python tracker ___

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-03 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: https://www.python.org/download/releases/2.4/license/ is the correct link for the Python 2.4 license. Note that the contributor agreement allows the PSF to distribute the code under a different OSS license and so the current Python license applies for

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-03 Thread Jake Gustafson
Jake Gustafson added the comment: *significantly different even than Python 2.7.16's. -- ___ Python tracker ___ ___

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-03 Thread Jake Gustafson
docs@python, poikilos priority: normal severity: normal status: open title: The comments have invalid license information (broken Python 2.4 URL for Python 3) versions: Python 3.7 ___ Python tracker <h

Re: SSL/TLS certificate verification suddenly broken, Python 3 on Windows 10

2021-02-16 Thread Michał Jaworski
I’ve had similar issue today on macOS when trying to download something from PyPI with Python 3.9.1 but I didn’t try to debug it and just moved on to different things. Maybe we both have outdated ca bundles? Michał Jaworski > Wiadomość napisana przez Carlos Andrews w dniu > 16.02.2021, o

SSL/TLS certificate verification suddenly broken, Python 3 on Windows 10

2021-02-16 Thread Carlos Andrews
Hi All, I ran into an error I, so far, cannot explain regarding Python's general ability to communicate via SSL/TLS. I'm using Python a lot to communicate with web servers and APIs, which worked just fine until yesterday (or somewhen late last week). I first noticed yesterday, when a

[issue43171] Counter not supported add in Python 3.x

2021-02-08 Thread Irit Katriel
Irit Katriel added the comment: That’s correct. This changed in python 3. See section about ordering comparisons in https://docs.python.org/3.0/whatsnew/3.0.html -- nosy: +iritkatriel resolution: -> not a bug stage: -> resolved status: open -&g

[issue43171] Counter not supported add in Python 3.x

2021-02-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43171] Counter not supported add in Python 3.x

2021-02-08 Thread Frank AK
``` >>> from collections import Counter >>> x={1:['a','b','c']} >>> y={1:['d','e','f'],2:['g']} >>> Counter(x) + Counter(y) Counter({2: ['g'], 1: ['a', 'b', 'c', 'd', 'e', 'f']}) ``` -- messages: 386667 nosy: landpack priority: normal

[issue32054] Creating RPM on Python 2 works, but Python 3 fails because of sys.implementation.cache_tag

2021-02-03 Thread Steve Dower
Steve Dower added the comment: Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-17 Thread Michał Jaworski
ry to port that to Python 3. First, it would be clearly against the licence agreement. Second, that would probably result in total mess and take more time that it takes to earn for a new printer. If you really want to keep the printer (I wouldn't) I would do the following: upgrade your system, install

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-17 Thread Chris Green
roduce > your problems? (I've got no printer of course, but...) > Try running scantool.py, that should pop up a little GUI. It uses GTK which of course in itself makes migration tricky because one has to move from the native Python 2 code to the 'introspection' code on Python 3. However

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Cameron Simpson
;as I don't have the source, I can't build for Python 3. >> >> ChrisA I think suggested keeping a Python 2.7 install around for this. >> >Not possible really as there are other python conflicts that start >appearing if one tries to retain the libraries needed. Runtime pyth

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
me from a PPA to support Python GTK, these conflict with > ongoing updates to Python. The PPA works OK in Ubuntu 20.04 but > prevents some updates in 20.10. I expect it will get worse as time > goes on. > Try getting JUST the printer info in Python 2, and then outputting that to stdou

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Green
Cameron Simpson wrote: > On 16Dec2020 18:51, Chris Green wrote: > >The specific problem that finally prevented me from managing to get it > >to work was a (Linux) .so file that had been built for Python 2 and, > >as I don't have the source, I can't build for Python 3

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
he source, I can't build for Python 3. > > ChrisA I think suggested keeping a Python 2.7 install around for this. (MRAB did, but I agree with it.) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Cameron Simpson
On 16Dec2020 18:51, Chris Green wrote: >The specific problem that finally prevented me from managing to get it >to work was a (Linux) .so file that had been built for Python 2 and, >as I don't have the source, I can't build for Python 3. ChrisA I think suggested keeping a Python 2.

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
On Thu, Dec 17, 2020 at 7:27 AM MRAB wrote: > > On 2020-12-16 19:16, Chris Angelico wrote: > > On Thu, Dec 17, 2020 at 6:06 AM Chris Green wrote: > >> > >> Some time ago (in July) I asked some questions here > >> about problems migrat

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread MRAB
On 2020-12-16 19:16, Chris Angelico wrote: On Thu, Dec 17, 2020 at 6:06 AM Chris Green wrote: Some time ago (in July) I asked some questions here about problems migrating some code from Python 2 to Python 3. The specific problem that finally prevented me from managing to get it to work

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Angelico
On Thu, Dec 17, 2020 at 6:06 AM Chris Green wrote: > > Some time ago (in July) I asked some questions here > about problems migrating some code from Python 2 to Python 3. > > The specific problem that finally prevented me from managing to get it > to work was a (Linux) .so

Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Chris Green
Some time ago (in July) I asked some questions here about problems migrating some code from Python 2 to Python 3. The specific problem that finally prevented me from managing to get it to work was a (Linux) .so file that had been built for Python 2 and, as I don't have the source, I can't build

[issue28850] Regression in Python 3: Subclassing PrettyPrinter.format doesn't work anymore

2020-11-23 Thread Tal Einat
Tal Einat added the comment: Thanks for the report, Michael! Thanks for the fix, Irit! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8, Python 3.9 ___ Python tracker

[issue28850] Regression in Python 3: Subclassing PrettyPrinter.format doesn't work anymore

2020-11-23 Thread Tal Einat
Tal Einat added the comment: New changeset ff420f0e08a2443339da0df7ace95e14177bac53 by Irit Katriel in branch 'master': bpo-28850: Fix PrettyPrinter.format overrides ignored for contents of small containers (GH-22120)

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Steve Dower
Steve Dower added the comment: Thanks for the patch, Zackery! -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Steve Dower
Steve Dower added the comment: New changeset f62dad16b8e540486a0a0fed41e723d36986f860 by Zackery Spytz in branch 'master': bpo-38506: Fix the Windows py.exe launcher's misordering of 3.10 (GH-18307) https://github.com/python/cpython/commit/f62dad16b8e540486a0a0fed41e723d36986f860

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Steve Dower
Steve Dower added the comment: It's cosmetic in the sense that it *only* affect usability, and not correctness. If it had no impact at all, I'd be calling it "pointless" ;) -- ___ Python tracker

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Guido van Rossum
Change by Guido van Rossum : -- versions: -Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Guido van Rossum
Guido van Rossum added the comment: You may call it cosmetic, but for me it's a matter of usability. Nevertheless, given how you designed the installer, we can drop the backport. -- ___ Python tracker

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-16 Thread Steve Dower
Steve Dower added the comment: We can backport it, but the latest version always wins. I deliberately designed the installer (which has multiple embedded MSIs in it) to make sure this worked, so that earlier versions won't overwrite the launcher (anymore). Besides, this is a purely cosmetic

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-15 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, actually I think this needs to be backported to 3.8 and 3.9 (at least) since IIUC whichever release is installed last (or first?) overwrites "py.exe", so if "py.exe" came from e.g. 3.9, and 3.10 is present, we still want it to sort that correctly.

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-15 Thread Guido van Rossum
Change by Guido van Rossum : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38506] Launcher for Windows (py.exe) may rank Python 3.xx (in the future) after 3.x

2020-11-15 Thread Guido van Rossum
Guido van Rossum added the comment: I think now's the time to fix it, given that we're two alphas into 3.10 already. (I independently discovered this and filed it as issue 42365.) -- nosy: +gvanrossum ___ Python tracker

Re: Python 3

2020-11-07 Thread Hernán De Angelis
Hi, Wikipedia has an article on the duodecimal system, that includes an explanation of how to convert from decimal and the other way around. https://en.wikipedia.org/wiki/Duodecimal?wprov=sfla1 Peerrhaps it can be easily implemented as a function. Good luck. H. Den lör 7 nov. 2020 07:55Nick

Re: Python 3

2020-11-07 Thread Barry Scott
> On 7 Nov 2020, at 06:51, Nick Li wrote: > > Does anyone know how to turn a decimal number into duodecimal or if there is > a function built-in for it? I see lots of interesting answer in here: https://stackoverflow.com/questions/2267362/how-to-convert-an-integer-to-a-string-in-any-base

Python 3

2020-11-06 Thread Nick Li
Does anyone know how to turn a decimal number into duodecimal or if there is a function built-in for it? -- https://mail.python.org/mailman/listinfo/python-list

[issue40562] SEO: differentiate between Python 2 and Python 3 docs on Google SERP

2020-10-28 Thread Edouard Moine
Edouard Moine added the comment: Hey Simon, you can use the breadcrumb markup and other markups structured data with json on your webpage if you want google to read more efficiently your page in the browser. I used it on my https://www.mixy-design.com/;>web agency website if you want to

[issue19438] Where is NoneType in Python 3?

2020-10-21 Thread Andrés Delfino
Andrés Delfino added the comment: As per https://github.com/python/cpython/pull/22336 I believe this issue can be closed now. My PR is not relevant to the problem stated by OP, so I'm "unlinking" it. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue41471] After installing python 3.x on Mac pip doesn't work at all

2020-10-20 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41471] After installing python 3.x on Mac pip doesn't work at all

2020-10-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: New changeset aa7b03b31bf09b21a012b24e21977538e66b0172 by Miss Skeleton (bot) in branch '3.9': bpo-41471: Ignore invalid prefix lengths in system proxy settings on macOS (GH-22762) (GH-22773)

  1   2   3   4   5   6   7   8   9   10   >