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
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
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
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
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
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,
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
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
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
Change by Marc-Andre Lemburg :
--
nosy: +doerwalter
___
Python tracker
<https://bugs.python.org/issue36819>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Marc-Andre Lemburg :
--
components: +Unicode
nosy: +ezio.melotti
___
Python tracker
<https://bugs.python.org/issue36819>
___
___
Python-bugs-list mailin
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
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
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__
Change by Marc Mueller :
--
nosy: +cdce8p
___
Python tracker
<https://bugs.python.org/issue41629>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Change by Marc-Andre Lemburg :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
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
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
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
Change by Marc Mueller :
--
nosy: +cdce8p
___
Python tracker
<https://bugs.python.org/issue43994>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Marc Mueller :
--
nosy: +cdce8p
___
Python tracker
<https://bugs.python.org/issue43532>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Marc-Andre Lemburg added the comment:
Yes, closing.
--
stage: needs patch -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.org/
Marc Udoff added the comment:
Wrong forum
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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.
>
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
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
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
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
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
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
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
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
Change by Marc-Andre Lemburg :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
Marc-Andre Lemburg added the comment:
Reviewed. Please check on the PR for comments.
--
___
Python tracker
<https://bugs.python.org/issue42257>
___
___
Pytho
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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"""
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
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
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
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
Change by Marc-Andre Lemburg :
--
Removed message: https://bugs.python.org/msg367514
___
Python tracker
<https://bugs.python.org/issue21081>
___
___
Python-bug
Change by Marc-Andre Lemburg :
--
Removed message: https://bugs.python.org/msg367515
___
Python tracker
<https://bugs.python.org/issue21081>
___
___
Python-bug
Change by Marc-Andre Lemburg :
--
Removed message: https://bugs.python.org/msg320603
___
Python tracker
<https://bugs.python.org/issue21081>
___
___
Python-bug
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
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
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
101 - 200 of 2192 matches
Mail list logo