[issue29410] Moving to SipHash-1-3

2021-10-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Since the days this was discussed, a lot of new and faster hash algorithms have been developed. It may be worthwhile looking at those instead. E.g. xxHash is a lot more performant than siphash: https://github.com/Cyan4973/xxHash (the link also has

[issue45382] platform() is not able to detect windows 11

2021-10-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: It's probably time to extend the marketing version detection mechanism to use the build number as reference instead of the major.minor system version numbers. Here's a good reference for this: https://en.wikipedia.org/wiki

[issue26651] Deprecate register_adapter() and register_converter() in sqlite3

2021-10-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: FWIW: I'm -1 on removing the possibility to register conversion or adapter hooks in sqlite3. Such mechanisms have become a standard with Python database modules and are widely used to adapt them to applications or middleware using the modules

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I'm not sure I follow, but in any case, please make sure that the freeze tool in Tools/ continues to work with the new mechanism. The freeze tool would also need to know which modules are already frozen via the new script, so that modules don't get

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.10.2021 22:30, Steve Dower wrote: > The version number for "Windows 11" still starts with 10.0. Just like how > Windows 5.x and 6.x were around for a very long time each ;) > > There are tables in platform module that ma

[issue45382] platform() is not able to detect windows 11

2021-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: win32_ver() should be using the internal Windows APIs to figure out the version. I do wonder why those don't return the same version as the "ver" command line tool. Adding our Windows experts to the noisy list. -- nosy: +lemburg,

[issue45372] Unwarranted "certificate has expired" when urlopen-ing R3 sites

2021-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.10.2021 12:48, Aivar Annamaa wrote: > > I can list the root certs with certmgr, but I'm not sure which piece to > investigate further. Check the certs in the LE chain as listed on the page you quoted and compare them to the working ins

[issue45372] Unwarranted "certificate has expired" when urlopen-ing R3 sites

2021-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Are you sure that all updates on the failing machine have been correctly installed ? It's possible that the list of CA root certs is not up to date on the machine. You can use certmgr.msc to check the list of installed CA root certs. -- nosy

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2021-09-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 29.09.2021 10:41, Serhiy Storchaka wrote: > > Restricting the returned position to be strictly larger than start would > solve the problem with infinite loop and OOM. But this is a different issue. Yes, this would make sense, since having

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2021-09-29 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- nosy: +doerwalter ___ Python tracker <https://bugs.python.org/issue36819> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2021-09-29 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- components: +Unicode nosy: +ezio.melotti ___ Python tracker <https://bugs.python.org/issue36819> ___ ___ Python-bugs-list mailin

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2021-09-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Looking at the specs in PEP 293 (https://www.python.org/dev/peps/pep-0293/), it is certainly possible for the error handler to return a newpos outside the range start - end, meaning in most cases: a value >= end. There's a good rea

[issue45020] Freeze all modules imported during startup.

2021-09-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.09.2021 18:20, STINNER Victor wrote: > > STINNER Victor added the comment: > > Marc-Andre: I suppose that you're talking about LANDMARK in Modules/getpath.c > and PC/getpathp.c. Now that you mention it: yes, that as well :-) Bu

[issue45020] Freeze all modules imported during startup.

2021-09-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Eric, I noticed that you are freezing os.py. Please be aware that this module is often being used as indicator for where the stdlib was installed (the stdlib itself does this in site.py to read the LICENSE and the test suite also uses os.__file__

[issue41629] __class__ not set defining 'X' as

2021-09-23 Thread Marc Mueller
Change by Marc Mueller : -- nosy: +cdce8p ___ Python tracker <https://bugs.python.org/issue41629> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40116] Regression in memory use of shared key dictionaries for "compact dicts"

2021-09-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 22.09.2021 21:02, Raymond Hettinger wrote: >> The language specification says that the dicts maintain insertion >> order, but the wording implies that this only to explicit >> dictionaries, not instance attribute or oth

[issue45020] Freeze all modules imported during startup.

2021-09-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 22.09.2021 20:47, Brett Cannon wrote: > What about if there isn't a pre-computed location for __file__? I could > imagine a self-contained CPython build where there is no concept of a file > location on disk for anything using this. This

[issue45261] Unreliable (?) results from timeit (cache issue?)

2021-09-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On the topic average vs. minimum, it's interesting to see this pop up every now and then. When I originally wrote pybench late in 1997, I used average, since it gave good results on my PC at the time. Later on, before pybench was added to Tools/ in Python

[issue45213] Frozen modules are looked up using a linear search.

2021-09-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Perhaps a frozen dict could be used instead of the linear search. This could then also be made available as sys.frozen_modules for inspection by applications and tools such as debuggers or introspection tools trying to find source code (and potentially

[issue45255] sqlite3.connect() should check if the sqlite file exists and throw a FileNotFoundError if it doesn't

2021-09-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Such a change would be backwards incompatible and no longer in line with PEP 249. I also don't understand what you regard as confusing about the message "unable to open database file". The message could be extended to include the path, but

[issue45116] Performance regression 3.10b1 and later on Windows: Py_DECREF() not inlined in PGO build

2021-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: FWIW: Back in the days of Python 1.5.2, the ceval loop was too big for CPU caches as well and one of the things I experimented with at the time was rearranging the opcodes based on how often they were used and splitting the whole switch statement we had

[issue45232] ascii codec is used by default when LANG is not set

2021-09-17 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45232] ascii codec is used by default when LANG is not set

2021-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.09.2021 15:45, Olivier Delhomme wrote: > > Olivier Delhomme added the comment: > > Hi Marc-Andre, > > Please note that setting PYTHONUTF8 with "export PYTHONUTF8=1": > > * Is external to the program and us

[issue45232] ascii codec is used by default when LANG is not set

2021-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Yes, this is intended. ASCII is used as fallback in case Python cannot determine the I/O encoding to use during startup. This is also the reason why later changes to the environment have no affect on this - the determination of the encoding has already

[issue45120] Windows cp encodings "UNDEFINED" entries update

2021-09-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just to be clear: The Python code page encodings are (mostly) taken from the unicode.org set of mappings (ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/). This is our standards body for such mappings, where possible. In some cases, the Unicode

[issue45020] Freeze all modules imported during startup.

2021-09-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: FWIW, I've not found the importer for frozen modules to be lacking features. When using frozen modules, you don't expect to see source code, so the whole part about finding source code is not really relevant for that use case. The only lacking part I

[issue45020] Freeze all modules imported during startup.

2021-08-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 31.08.2021 20:14, Brett Cannon wrote: > > Brett Cannon added the comment: > >> set __file__ (and __path__) on frozen modules? > > See https://bugs.python.org/issue21736 The patch on that ticket is straight from PyRun, where

[issue45020] Freeze all modules imported during startup.

2021-08-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 28.08.2021 06:06, Guido van Rossum wrote: > >> With that in place, it'd be great to pre-cache all the .py files >> automatically read in at startup. > > *All* the .py files? I think the binary bloat cause by deep-freezing the

[issue45020] Freeze all modules imported during startup.

2021-08-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Not sure whether you are aware, but the PyRun project I'm maintaining does that and goes beyond this by freezing almost the complete stdlib and statically linking most C extensions into a single binary: https://www.egenix.com/products/python/PyRun

[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

2021-08-08 Thread Marc Mueller
Change by Marc Mueller : -- nosy: +cdce8p ___ Python tracker <https://bugs.python.org/issue43994> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43532] Add keyword-only fields to dataclasses

2021-08-08 Thread Marc Mueller
Change by Marc Mueller : -- nosy: +cdce8p ___ Python tracker <https://bugs.python.org/issue43532> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-08-06 Thread Marc Culler
Marc Culler added the comment: I should have mentioned that I tested on Intel hardware, not M1. I do not have access to an M1 Apple at this time. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-08-06 Thread Marc Culler
Marc Culler added the comment: I built Tcl and Tk 8.6 on Monterey beta (21A5294g) and I see this traceback in the Wish file dialog demo. Note that this is *not* an error. The file dialog works fine. This is a non-fatal NSInternalInconsistencyException which prints a traceback to stderr

[issue24339] iso6937 encoding missing

2021-06-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Right, the charmap codec was built with the Unicode Consortium mappings in mind. However, you may have some luck decoding the two byte chars in ISO 6937 using combining code points in Unicode. With some extra post processing you could also normalize

[issue24339] iso6937 encoding missing

2021-06-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Maarten, the code posted on bugs is copyrighted by the person who wrote it. We can only accept it for inclusion in Python after the CLA has been signed, since then we are allowed to relicense it. As a result you can only take John's code and post

[issue9102] pybench: Cannot compare 2.x and 3.x benchmarks

2021-06-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Yes, closing. -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/

[issue44118] cython compiler error

2021-05-12 Thread Marc Udoff
Marc Udoff added the comment: Wrong forum -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44118] cython compiler error

2021-05-12 Thread Marc Udoff
New submission from Marc Udoff : Hi, The follow gives an unexpected error during compilation: In [1]: %%cython ...: #cython: infer_types=True ...: class A: ...: def f(self): ...: x = max(self.a, self.a) Removing max, or setting infer_types=False, or setting x

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Steve: I think the point of discussing whether "pip install" can be used to manage system wide packages is moot. It's been like that for ages, not only for pip, but also for the distutils setup.py install process and the old Makefile.pre.in appro

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.05.2021 10:29, Christian Heimes wrote: > > I mean that Steve and you are talking about different things. Could be. I was addressing the point Steve made about not allowing or making it hard to run "pip install" as root user. >

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.05.2021 10:01, Christian Heimes wrote: > >> "as root" imply that there's no user site-packages directory at all > ^ > > Steve is talking about user site-packages, not global s

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.05.2021 22:58, Steve Dower wrote: >> "pip install as root" will need to continue to work and thus distros >> need to get a way to make sure that it doesn't corrupt the system >> installed packages > > Excuse my i

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.05.2021 22:29, Steve Dower wrote: > > Would "pip install --user ..." in a Docker container also work, though? > Presumably all the filesystem paths are being redirected anyway, so is there > a difference? > > (My assum

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 23.04.2021 07:47, Inada Naoki wrote: > > Inada Naoki added the comment: > > I think it is too late. Python 3.9 has been released already. Reverting the > change is also breaking change. > > PEP 100 says: > "Search f

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 23.04.2021 03:37, akdor1154 wrote: > > akdor1154 added the comment: > > If I understand the target of this issue, this is a breaking change in python > 3.9 . > > E.g. see https://github.com/SAP/PyHDB/issues/149 > > I

[issue43552] Add locale.get_locale_encoding() and locale.get_current_locale_encoding()

2021-03-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 19.03.2021 16:15, Inada Naoki wrote: > > `locale.getpreferredencoding()` is special, because it "Return the encoding > used for text data, according to user preferences. User preferences are > expressed differently on different s

[issue43557] Deprecate getdefaultlocale(), getlocale() and normalize() functions

2021-03-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: +1 on getdefaultlocale() as mentioned in https://bugs.python.org/issue43552 However, -1 on getlocale() and normalize(). Those two are needed to access and successfully set the locale on Linux: the lib C setlocale() is very picky about locale names and so

[issue43552] Add locale.get_locale_encoding() and locale.get_current_locale_encoding()

2021-03-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 19.03.2021 13:25, Eryk Sun wrote: >> My assumption is that nl_langinfo(CODESET) does not work on Windows >> or gives wrong results. Is that incorrect ? > > There is no such function for CRT locales. I provided two alternatives t

[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 <https://bugs.python.or

[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

[issue43115] locale.getlocale fails if locale is set

2021-02-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 18.02.2021 19:04, Eryk Sun wrote: > > Eryk Sun added the comment: > >> The APIs were written at a time where locale modifiers >> simply did mot exist. > > Technically, locale modifiers did exist circa 2000, but I suppose

[issue43115] locale.getlocale fails if locale is set

2021-02-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 18.02.2021 10:36, Eryk Sun wrote: > It's not just a Windows problem. For example, getlocale() doesn't return the > POSIX locale modifier in a 3-tuple (language, encoding, modifier). So it > can't be used to restore a locale for which the

[issue43115] locale.getlocale fails if locale is set

2021-02-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 17.02.2021 12:36, Anders Munch wrote: > getlocale is documented to return None for the encoding if no encoding can be > determined. There's no need to guess. Well, not quite... the documentation says that None can be returned, not that it will

[issue20087] Mismatch between glibc and X11 locale.alias

2021-02-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I believe we can close this old issue. The discussion was certainly a useful one. I guess we should stop updating the alias table automatically and instead add new aliases or change existing ones based on more research and using the X11 files as well

[issue42988] Information disclosure via pydoc -p: /getfile?key=path allows to read arbitrary file on the filesystem

2021-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 22.01.2021 01:28, STINNER Victor wrote: > > STINNER Victor added the comment: > >> I'd suggest to print a big warning on the console, explaining that the web >> server will potentially make all content accessible by the user

[issue42988] Information disclosure via pydoc -p

2021-01-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Looking at the _url_handler() code in pydoc.py, this was clearly not written with web server standards in mind. None of the handlers apply security checks on the user input and there are most likely several other vulnerabilities in there to be found

[issue42967] [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-01-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Sorry for the title mess: It seems that when replying to a ticket, RoundUp uses the subject line as the new header regardless of what it was set to before. -- ___ Python tracker <https://bugs.python.

[issue42967] [security] Web cache poisoning - `; ` as a query args separator

2021-01-20 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- title: Web cache poisoning - `;` as a query args separator -> [security] Web cache poisoning - `;` as a query args separator ___ Python tracker <https://bugs.python.org/issu

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2021-01-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 05.01.2021 19:04, Géry wrote: > > @lemburg > >> I guess the SQLite driver does not start a new transaction for SELECTs, >> since these are usually read-only > > Nor for DDL statements (CREATE, DROP). Those are defin

[issue39457] Add an autocommit property to sqlite3.Connection with a PEP 249 compliant manual commit mode and migrate

2021-01-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I think there's a bit of a misunderstanding here. When relying on a DB-API driver's transaction API, you are not allowed to issue separate transaction commands to the DB backend via the .execute() methods. You have to use conn.commit() and conn.rollback

[issue42541] Tkinter colours wrong on MacOS universal2

2021-01-04 Thread Marc Culler
Marc Culler added the comment: Well, actually the release was announced today. There was one bug fix which did not make it into the release but could possibly affect Python, due to the fact that Python is installed as a framework, and frameworks to not have icons. I can supply a (1-line

[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2021-01-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Note: I did not request a backport, since this really is a new feature. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2021-01-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: https://github.com/python/cpython/pull/23140 merged. Thanks for the patch, Kurochan. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue42794] test_nntplib fails on CI

2021-01-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks for the patch, Dong-hee Na. Christian: Tests relying on external resources will always have such issues. This doesn't mean that the code which is being tested is outdated or broken. It's just an issue with the tests. Perhaps we ought to disable

[issue42794] test_nntplib fails on CI

2021-01-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 01.01.2021 13:57, Christian Heimes wrote: > > Does this issue mean that I should include nntplib in PEP 594 again? The test fails because it was relying on an external news server's configuratoin. This doesn't mean the code itself is broken

[issue42794] test_nntplib fails on CI

2020-12-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: FWIW, I'm getting the same errors in PR https://github.com/python/cpython/pull/23140 Checking on the server that's being used, the newsgroup description is empty indeed: https://news.aioe.org/index.php?id=statistics-about-groups=comp.lang.python

[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-12-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks for the patch. Merging is currently prevented by an unrelated test for nntplib failing. See e.g. https://github.com/python/cpython/pull/23140/checks?check_run_id=1630509357. This is being tracked in https://bugs.python.org/issue42794

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-12-28 Thread Marc Culler
Marc Culler added the comment: Hi Ned, I have a comment about the code signing issues that would arise if the Tcl and Tk frameworks were embedded as actual subframeworks inside the Python.framework, and a user later replaced those with newer versions. The answer is that no new issues arise

[issue42257] platform.libc_ver() doesn't consider in case of executable is empty string

2020-12-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Reviewed. Please check on the PR for comments. -- ___ Python tracker <https://bugs.python.org/issue42257> ___ ___ Pytho

[issue30459] PyList_SET_ITEM could be safer

2020-12-05 Thread Espie Marc
Espie Marc added the comment: On Sat, Dec 05, 2020 at 01:28:33AM +, STINNER Victor wrote: > > STINNER Victor added the comment: > > I propose to merge my PR 23645 change right now. If it breaks too many C > extensions, we still have time before Python 3.10.0

[issue42541] Tkinter colours wrong on MacOS universal2

2020-12-03 Thread Marc Culler
Marc Culler added the comment: Yes, I can provide a good commit ID to work with. Please give me a couple of days. The current tip is almost an ideal choice. There have been no Aqua bug reports for quite some time. But now there is one new one (from Kevin) so I'd like to fix

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.11.2020 11:45, Christian Heimes wrote: > > Christian Heimes added the comment: > > PS: MAL, would it be possible to suppress your email footer? BPO is not an > advertisement channel. That's an ancient bug on bpo, which apparentl

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.11.2020 10:39, Christian Heimes wrote: > >> It would be an interface to a file /etc/os-release >> that's common nowadays, just like /etc/lsb-release was some years >> ago. These things change too often to make the stdlib a go

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.11.2020 10:06, Christian Heimes wrote: > > It's not a replacement for platform.linux_distribution(). Right, not even that :-) It would be an interface to a file /etc/os-release that's common nowadays, just like /etc/lsb-release was some yea

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I'm -1 on adding any kind of replacement for platform.linux_distribution() tp Python's stdlib. The experiment has failed and we should acknowledge this. The main reason why it failed was the Linux distros keep inventing new ways to identify themselves

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-11-07 Thread Marc Culler
Marc Culler added the comment: Ned - do you have any news on the topic of packaging Tcl/Tk within the Python bundle? -- ___ Python tracker <https://bugs.python.org/issue42

[issue42157] Cleanup the unicodedata module

2020-10-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 26.10.2020 18:05, STINNER Victor wrote: > > By the way, Unicode 3.2 was released in 2002: 18 years ago. I don't think > that it's still relevant in 2020 to keep backward compatibility with Unicode > 3.2. I propose to deprecate unicodeda

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Marc Culler
Marc Culler added the comment: Dear Ronald, You are correct that "It is already possible to replace the Tcl/Tk libraries by replacing the relevant files in Python.framework." I know that because I have done it. Moreover, having done it, I know that it is much more difficult than

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Marc Culler
Marc Culler added the comment: Dear Eric, I am aware that python is cross platform. The change that I am proposing would be almost entirely limited to the file: Mac/BuildScript/build-installer.py which is entirely mac-specific. It controls how the Mac installer is constructed

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Marc Culler
New submission from Marc Culler : Packaging Tcl and Tk within the python framework is a great idea and a big improvement. But the way it is being done is pretty crazy, and makes it unnecessarily difficult to upgrade the version of Tcl/Tk that python is using. That is something which should

[issue41842] Add codecs.unregister() to unregister a codec search function

2020-09-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 23.09.2020 16:49, STINNER Victor wrote: > > STINNER Victor added the comment: > >> Just found an internal API which already takes care of >> unregistering a search function: _PyCodec_Forget(). >> >> All t

[issue41420] Academic Free License v. 2.1 link is not found and is obsolete

2020-09-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The Adobe form itself also still lists the broken URL. Only Ewa or Betsy can fix this, I suppose. I'll write them an email. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41420] Academic Free License v. 2.1 link is not found and is obsolete

2020-09-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Fixed https://www.python.org/psf/contrib/ to point to https://spdx.org/licenses/AFL-2.1.html instead. The contrib-form page (https://www.python.org/psf/contrib/contrib-form/) already had this change, but the PDF you can download from there still lists

[issue40789] C-level destructor in PySide2 breaks gen_send_ex, which assumes it's safe to call Py_DECREF with a live exception

2020-05-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 27.05.2020 05:56, Nathaniel Smith wrote: > In CPython in general, it could be worked around by not invoking deallocators > with a live exception... I'm actually pretty surprised that this is even > possible! It seems like having a live excep

[issue35967] Better platform.processor support

2020-05-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks, Jason. I'll have a closer look at the issue and report back later this week. -- ___ Python tracker <https://bugs.python.org/issue35

[issue40578] Deprecate numeric item access for platform.uname()

2020-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I am closing this issue, since deprecations should really only be used when no other means are possible. The namedtuples returned by platform.uname() do support index access and so any implementation change altering this is surprising and backwards

[issue35967] Better platform.processor support

2020-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Reopening the ticket, since the implementation makes backwards incompatible changes to platform.uname(): see https://bugs.python.org/issue40570 for a discussion on a better approach to lazy evaluation of getting the processor information. Before we

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Hi Jason, I think I have to review the whole set of changes again to understand what your motivation is/was. For https://bugs.python.org/issue35967 I had already stated that your use case is not special enough to make the platform.py logic more

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ok, let me add some more context: When I wrote the uname interface I was aware that calling the API will take some resources. That's why I added the cache. IMO, that was enough as optimization. Now, you added a late binding optimization for the whole

[issue40570] len(platform.uname()) has changed in Python 3.9

2020-05-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Hi Jason, to achieve better backwards compatibility, it's probably better to use the approach taken for CodeInfo in the codecs.py module: class CodecInfo(tuple): """Codec details when looking up the codec registry"""

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: No, I have not opened a bug report on OpenSUSE. Since the OS uses bi-arch throughout, using lib64 is the natural thing to use for libdir on the OS. I think the issue lies with getpath.c only, since it makes an assumption about the libdir config value

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just to clarify: the CONFIG_SITE script on OpenSUSE causes configure to use lib64, not the Python configure script itself. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : On platforms which configure identifies as bi-arch platform, libdir is set to $[exec_prefix}/lib64, which results in the C extensions to get installed in e.g. /usr/local/lib64/python3.8/lib-dynload/. However, the getpath.c routines use a fixed &quo

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2020-04-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Found an "Unlink" bottom at the bottom of the message view. This appears to remove the messages from the issue. -- ___ Python tracker <https://bugs.python.o

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2020-04-28 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- Removed message: https://bugs.python.org/msg367514 ___ Python tracker <https://bugs.python.org/issue21081> ___ ___ Python-bug

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2020-04-28 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- Removed message: https://bugs.python.org/msg367515 ___ Python tracker <https://bugs.python.org/issue21081> ___ ___ Python-bug

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2020-04-28 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- Removed message: https://bugs.python.org/msg320603 ___ Python tracker <https://bugs.python.org/issue21081> ___ ___ Python-bug

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2020-04-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I have marked the messages as spam. Can't seem to remove them, though. -- ___ Python tracker <https://bugs.python.org/issue21

[issue39891] [difflib] Improve get_close_matches() to better match when casing of words are different

2020-03-08 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: It looks like Brian is expecting some kind of normalization of the strings before they enter the function, e.g. convert to lowercase, remove extra whitespace, convert diacritics to regular letters, combinations of such normalizations, etc. Since both

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2020-01-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just to clarify: the change in the C implementation was the breaking change. The patch just restores the previous behavior: https://github.com/python/cpython/blob/master/Lib/encodings/__init__.py#L43 Please note that external codec packages should

<    1   2   3   4   5   6   7   8   9   10   >