RE: trying to improve my knn algorithm

2020-07-02 Thread Raine Pretorius
Hi, I think you sent this to the wrong person. [cid:storage_emulated_0__EmailTempImage_5_TempSignature_signature_20200630_205218_jpg_1593543161247] [cid:storage_emulated_0__EmailTempImage_5_TempSignature_signature_20200630_205334_jpg_1593543223538]

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Change by Arcadiy Ivanov : -- components: +Interpreter Core type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: No C extensions, working on giving you a reproducer. -- ___ Python tracker ___ ___

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: A shorter reproducer; >>> import sys >>> sys.modules.clear() Traceback (most recent call last): File "", line 1, in RuntimeError: lost builtins module >>> import _ast >>> import gc >>> gc.collect() Modules/gcmodule.c:114: gc_decref: Assertion

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: > old_modules = dict(sys.modules) > sys.modules.clear() > sys.modules.update(old_modules) -- ___ Python tracker ___

[issue41195] Interface to OpenSSL's security level

2020-07-02 Thread Matthew Hughes
Change by Matthew Hughes : -- pull_requests: +20431 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21282 ___ Python tracker ___

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: To complete this report, this is a regression. This exact code runs perfectly in 2.7, 3.5 - 3.8. This is the PR in Travis: https://travis-ci.org/github/pybuilder/pybuilder/builds/704312142 -- ___ Python tracker

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread STINNER Victor
STINNER Victor added the comment: Well, two errors were already ignored (bpo-19891). I just made the "except" more generic. I don't think that we can do anything more useless than ignoring the error if the filesystem is read-only. I don't think that a warning would be useful. --

Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Rhodri James
We've had the requested 24 hour cooling off, and I don't imagine anyone is surprised that the situation remains unchanged. The commit message that caused the controversy is still in the PEP repository, and is still controversial. Whether you think it's the best thing since the last best

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: That's not an entirely accurate reproducer as the references to the modules are still held in the collection when the sys.modules.clear() is called. -- ___ Python tracker

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread Zbyszek Jędrzejewski-Szmek
Zbyszek Jędrzejewski-Szmek added the comment: Wow, that was quick. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing

EuroPython 2020: Our Keynotes

2020-07-02 Thread M.-A. Lemburg
We’re happy to announce our keynote lineup for EuroPython 2020. * EuroPython 2020 Keynotes * https://ep2020.europython.eu/events/keynotes/ Guido van Rossum - Q -- In this session, you’ll get a chance to get your questions answered by Guido

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-07-02 Thread Larry Hastings
Larry Hastings added the comment: New changeset f52bf62fe12d46267e958f80dbe1f4425b55cd0f by Christian Heimes in branch '3.5': bpo-41183: Update finite DH params to 3072 bits (#21278) https://github.com/python/cpython/commit/f52bf62fe12d46267e958f80dbe1f4425b55cd0f --

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread STINNER Victor
STINNER Victor added the comment: Can you please provide a reproducer? Does PyBuilder use C extensions? -- ___ Python tracker ___

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: How to reproduce: 1. Clone github.com/pybuilder/pybuilder 2. Checkout https://github.com/pybuilder/pybuilder/pull/724 3. Run `PYTHONWARNINGS=ignore python ./build.py -v -X` The failure occurs in the integration test smoke test in smoke_clean_tests.py

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: Once any of the integration tests run, the integration test environment is created and the test can be run directly from the command line via: '.../pybuilder/target/venv/test/cpython-3.9.0.beta.3/bin/python'

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-07-02 Thread STINNER Victor
STINNER Victor added the comment: Using https://github.com/sphinx-doc/sphinx/pull/7905 but without -W, I'm able to build the unmodified Python documentation with Sphinx 3! I tried c_allow_pre_v3=1. The PR was updated to add a second c_warn_on_allowed_pre_v3=0 option so we can keep -W.

[issue41175] Static analysis issues reported by GCC 10

2020-07-02 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: My guess is that the issue is related to the sys.modules manipulation, i.e. these parts of the integration test harness: def smoke_test(self, *args): old_argv = list(sys.argv) del sys.argv[:] sys.argv.append(self.build_py)

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Arcadiy Ivanov
Arcadiy Ivanov added the comment: So as soon as I started using CPython 3.9.0b3 with debug, the stack trace changed and the corruption apparently occurs in the GC, probably because the assertion is triggered vs release-style build: Modules/gcmodule.c:114: gc_decref: Assertion

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: If I'm not wrong, this is the commit that introduced the regression. commit ac46eb4ad6662cf6d771b20d8963658b2186c48c (HEAD -> bpo-x) Author: Dino Viehland Date: Wed Sep 11 10:16:34 2019 -0700 bpo-38113: Update the Python-ast.c generator to PEP384

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the crash using the following script.py: --- import gc; gc.set_threshold(5) import sys old_modules = dict(sys.modules) sys.modules.clear() sys.modules.update(old_modules) import _ast import gc gc.collect() --- And the command: --- ./python

[issue41139] cgi uses the locale encoding for log files

2020-07-02 Thread Ethan Furman
Ethan Furman added the comment: Which functionality? - cgi.log() - opening with current locale I don't mind keeping the function, but if the file isn't already opened I think using UTF-8 is an appropriate choice. -- ___ Python tracker

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Mats Wichmann
On 7/2/20 12:04 PM, Rhodri James wrote: > On 02/07/2020 18:11, Dieter Maurer wrote: >> I am no member of the Council. Thus, your questions are not directed >> to me. **BUT** you made your questions public and thus you are >> likely prepared to receive public comments. > > Fortunately you don't

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Michael Torrie
On 7/2/20 11:11 AM, Dieter Maurer wrote: > In the replaced sentence > `When writing English, follow Strunk and White` > I interpret "Strunk and White" as a reference to some > document containing rules for readable English and "Strunk and White" > are likely the authors of this document. I do not

[issue41196] APPDATA directory is different in store installed python

2020-07-02 Thread aku911
Change by aku911 : -- components: Windows nosy: aku911, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: APPDATA directory is different in store installed python type: behavior versions: Python 3.8

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Rhodri James
On 02/07/2020 18:11, Dieter Maurer wrote: I am no member of the Council. Thus, your questions are not directed to me. **BUT** you made your questions public and thus you are likely prepared to receive public comments. Fortunately you don't answer any of the questions, so I don't need to have

[issue12029] Allow catching virtual subclasses in except clauses

2020-07-02 Thread Simon Charette
Change by Simon Charette : -- nosy: +charettes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33665] tkinter.ttk.Scrollbar.fraction() under-estimates length

2020-07-02 Thread E. Paine
Change by E. Paine : Added file: https://bugs.python.org/file49293/ttkscrl.tcl ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32958] socket module calls with long host names can fail with idna codec error

2020-07-02 Thread Steve Bowman
Steve Bowman added the comment: When will this issue be fixed? Thanks! -- nosy: +sdbowman ___ Python tracker ___ ___

[issue41197] Async magic methods in contextlib.closing

2020-07-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +20433 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21284 ___ Python tracker ___

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Ethan Furman
On 07/02/2020 06:39 AM, Rhodri James wrote: We've had the requested 24 hour cooling off, and I don't imagine anyone is surprised that the situation remains unchanged.  The commit message that caused the controversy is still in the PEP repository, and is still controversial.  Whether you

[issue41139] cgi uses the locale encoding for log files

2020-07-02 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I am for keeping this functionality. Unless others in this nosy list think otherwise. -- nosy: +thatiparthy ___ Python tracker

[issue41196] APPDATA directory is different in store installed python

2020-07-02 Thread aku911
New submission from aku911 : Install the windows store python then run this code: import os os.listdir(os.environ['APPDATA']) Install another version of python and run the same code. You'll get different results. This can cause issues when trying to share data in a user's APPDATA folder.

[issue41196] APPDATA directory is different in store installed python

2020-07-02 Thread aku911
aku911 added the comment: This is causing this issue here: https://github.com/microsoft/vscode-python/issues/11412 -- ___ Python tracker ___

[issue41197] Async magic methods in contextlib.closing

2020-07-02 Thread Рамзан Б .
New submission from Рамзан Б. : # Async magic methods in contextlib.closing I think `__aenter__` and `__aexit__` methods should be added to `contextlib.closing`, so that we can use `contextlib.closing` in async code too. For example: ```python3 class SomeAPI: ... async def

[issue41139] cgi uses the locale encoding for log files

2020-07-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Available options: 1. Do nothing (keep cgi.log() and continue to use the default encoding for open()). 2. Remove cgi.log(). I think that the deprecation period is not needed because the function is not documented, is not imported by star-import, and is

[issue41197] Async magic methods in contextlib.closing

2020-07-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And what happen when you accidentally use synchronous "with" instead of "async with" with closing()? with closing(SomeAPI()) as api: ... I think it is intentionally that different functions/methods/classes are used for synchronous and asynchronous

[issue33665] tkinter.ttk.Scrollbar.fraction() under-estimates length

2020-07-02 Thread E. Paine
E. Paine added the comment: I agree that the `tkinter.ttk.Scrollbar.fraction` under-estimates the length of the trough and I have written a program to try to measure this precisely. When tested (only on Linux, granted), this deficit was measured to be 9 pixels (unless I got the maths

[issue38980] Compile libpython with -fno-semantic-interposition

2020-07-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: and to echo others: Do not worry about LD_PRELOAD users trying to override internals. That is not a supported use case. It is always a hack. anyone using it knows this. -- ___ Python tracker

[issue41198] Round built-in function not shows zeros acording significant figures and calculates different numbers of odd and even

2020-07-02 Thread Tim Peters
Tim Peters added the comment: I assumed Mark would tell us what's up with the arange() oddity, so let's see whether he does. There is no truly good way to generate "evenly spaced" binary floats using a non-representable conceptual decimal delta. The dumbass ;-) way doesn't show a

[issue41162] Clear audit hooks after destructors

2020-07-02 Thread Steve Dower
Steve Dower added the comment: PR 21222 (with test updates) is a good fix, though we know there can still be arbitrary code executed afterwards. But it's not in a place where we can reliably hook. Probably the best thing to do is to make sure that events are raised for anything that would

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Random832
On Thu, Jul 2, 2020, at 18:29, Michael Torrie wrote: > Come again? I can see no other link in the verbage with the "relics of > white supremacy" that she referred to. If there are other links, they > should be included in the commit message. I agree with Rhodri that an > explanation would be

[issue38980] Compile libpython with -fno-semantic-interposition

2020-07-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yes this should become part of --with-optimizations when building on a platform using a compiler that (a) supports it and (b) where it matters. If this is only relevant on --enable-shared builds (not the default), i'd assume also make it conditional on

[issue41198] Round built-in function not shows zeros acording significant figures and calculates different numbers of odd and even

2020-07-02 Thread Carlos Neves
New submission from Carlos Neves : Hi, I am observing unexpected behavior with round built-in function about (1) significant figures in analytical methods and (2) number of odd and even numbers obtained by this function. https://docs.python.org/3/library/functions.html#round

[issue41196] APPDATA directory is different in store installed python

2020-07-02 Thread Steve Dower
Steve Dower added the comment: As an aside, virtual environments will have the same redirection as the base interpreter, so this is really only an issue between a 3.7 install and a 3.8 install, or a Store install and a traditional install. -- ___

Re: FW: Pycharm Won't Do Long Underscore

2020-07-02 Thread Danilo Coccia
Il 30/06/2020 23:46, Joe Pfeiffer ha scritto: > "Peter J. Holzer" writes: > >> On 2020-06-24 15:33:16 -0600, Joe Pfeiffer wrote: >>> One other note -- while you may want various good-looking fonts with >>> ligatures in other domains, for writing code a monospace font with no >>> ligatures lets

[issue41198] Round built-in function not shows zeros acording significant figures and calculates different numbers of odd and even

2020-07-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: Thank you for your long and detailed bug report, but please post one issue per bug report. Tim, we agree that the notion of significant figures is irrelevant; is Carlos' even/odd test sufficiently flawed that we should close this bug report, or keep it

[issue41198] Round built-in function not shows zeros acording significant figures and calculates different numbers of odd and even

2020-07-02 Thread Carlos Neves
Carlos Neves added the comment: Hi Peters, I will pay more attention to the Python docs :) Thank you for your direction. Carlos A. Neves Em qui., 2 de jul. de 2020 às 18:22, Tim Peters escreveu: > > > Tim Peters added the comment: > > For the first, your hardware's binary floating-point

Re: PEP 622

2020-07-02 Thread Chris Angelico
On Fri, Jul 3, 2020 at 7:48 AM Stephen Carboni wrote: > > Why are OR patterns going to use the bitwise operator instead of > logical or operator? > > https://www.python.org/dev/peps/pep-0622/#combining-multiple-patterns-or-patterns > Keep reading :)

[issue41196] APPDATA directory is different in store installed python

2020-07-02 Thread Steve Dower
Steve Dower added the comment: This is by (Windows's) design - separate apps are treated as separate by the Windows app model. In the latest and N-1 updates to Windows, the AppData redirection only applies to newly created files, not those that already exist. [1] Before then, it used

PEP 622

2020-07-02 Thread Stephen Carboni
Why are OR patterns going to use the bitwise operator instead of logical or operator? https://www.python.org/dev/peps/pep-0622/#combining-multiple-patterns-or-patterns -Steve -- https://mail.python.org/mailman/listinfo/python-list

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Ethan Furman
On 07/02/2020 12:14 PM, Michael Torrie wrote: The fact she would conflate an author's name with some kind of race-related thing is a bit embarrassing, frankly. It seems she has studied literary and English history, at least as related to the 20th century, so I don't think any name conflation

[issue17805] No such class: multiprocessing.pool.AsyncResult

2020-07-02 Thread Volker Weißmann
Volker Weißmann added the comment: The documentation here: https://docs.python.org/3/library/multiprocessing.html#module-multiprocessing.pool says that apply_async is "A variant of the apply() method which returns a result object." You should replace "a result object" with "a

[issue17805] No such class: multiprocessing.pool.AsyncResult

2020-07-02 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Volker Weißmann, this issue has been closed for 7 years, if you want to propose a change, please open a new issue. -- nosy: +remi.lapeyre ___ Python tracker

[issue41198] Round built-in function not shows zeros acording significant figures and calculates different numbers of odd and even

2020-07-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: If you change the starting point of the rounding away from zero, the bias flips back and forth, which is exactly what I would expect from Banker's Rounding: def check_bias(start): d = 0.001 ne = no = 0 for i in range(1000):

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-02 Thread Stefan Behnel
Stefan Behnel added the comment: I think we missed the train for fixing 3.7 (which was questionable anyway), but I added a test, so it's ready for merging into 3.8+ (minus merge conflicts for the test in 3.8, probably). -- ___ Python tracker

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Jon Ribbens via Python-list
On 2020-07-02, Michael Torrie wrote: > Agreed. She just needs to fix her commit message to remove the sentence > about the relics of white supremacy. The fact she would conflate an > author's name with some kind of race-related thing is a bit > embarrassing, frankly. She didn't - you did. --

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Michael Torrie
On 7/2/20 1:26 PM, Jon Ribbens via Python-list wrote: > On 2020-07-02, Michael Torrie wrote: >> Agreed. She just needs to fix her commit message to remove the sentence >> about the relics of white supremacy. The fact she would conflate an >> author's name with some kind of race-related thing is

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Bev In TX
> On Jul 2, 2020, at 5:48 PM, Random832 wrote: > > but the point is that the *whole idea* of "standard English" is tied to white > supremacy Bunkum. It is racist to claim that standards are against people, when their purpose to to make the written word understood by all who read it, as

[issue41197] Async magic methods in contextlib.closing

2020-07-02 Thread Ramzan Bekbulatov
Ramzan Bekbulatov added the comment: In this case: ```python3 class A: async def close(self): pass with closing(A()): pass ``` Python will raise `RuntimeWarning: coroutine 'A.close' was never awaited`. In another case: ```python3 class B: def close(self):

Re: FW: Pycharm Won't Do Long Underscore

2020-07-02 Thread Michael Torrie
On 7/2/20 2:55 PM, Danilo Coccia wrote: > Il 30/06/2020 23:46, Joe Pfeiffer ha scritto: >> "Peter J. Holzer" writes: >>> I agree. Although there are some fonts with special ligatures for >>> programming. I have never used one, but that seems like an interesting >>> concept. >> >> I've never heard

[issue41180] marshal load bypass code.__new__ audit event

2020-07-02 Thread Steve Dower
Steve Dower added the comment: Actually, a quick search of codeobject.c and a look at tkmk's PR makes it seem like the audit event should be being raised from inside PyCode_NewWithPosOnlyArgs anyway (which IIRC didn't exist when I first added the event, though it was probably there before

[issue41177] ConvertingList and ConvertingTuple lack iterators and ConvertingDict lacks items()

2020-07-02 Thread Michael DePalatis
Michael DePalatis added the comment: I think the other issue here is that the ConvertingX classes aren't documented apart from comments in the code where they are defined. -- nosy: +mivade ___ Python tracker

[issue41198] Round built-in function not shows zeros acording significant figures and calculates different numbers of odd and even

2020-07-02 Thread Tim Peters
Tim Peters added the comment: For the first, your hardware's binary floating-point has no concept of significant trailing zeroes. If you need such a thing, use Python's `decimal` module instead, which does support a "significant trailing zero" concept. You would need an entirely new data

[issue35105] Document that CPython accepts "invalid" identifiers

2020-07-02 Thread Roy Smith
Roy Smith added the comment: Just as another edge case, type() can do the same thing: Foo = type("Foo", (object,), {"a b": 1}) f = Foo() for example, will create a class attribute named "a b". Maybe this actually calls setattr() under the covers, but if it's going to be documented, it

[issue41169] socket.inet_pton raised when pass an IPv6 address like "[::]" to it

2020-07-02 Thread Wator Sead
Wator Sead added the comment: The point is square brackets, not the address, they (socket.inet_pton and socket.socket) behave different. Can make it not be accepted, any conditions? -- versions: -Python 3.7, Python 3.8 ___ Python tracker

[issue41180] marshal load bypass code.__new__ audit event

2020-07-02 Thread Yunfan Zhan
Yunfan Zhan added the comment: Before this, we only audit code.__new__ and code.replace, as these methods allow constructing arbitrary code objects, and we don't audit code object coming from the normal way (like compile,exec,eval). If the event is raised in PyCode_NewWithPosOnlyArgs, is it

[issue41196] APPDATA directory is different in store installed python

2020-07-02 Thread Eryk Sun
Eryk Sun added the comment: > What it really means for apps that are trying to share state across > different Python runtimes is that they're not going to have such a > great time. I tried impersonating the token of Explorer in the current thread (i.e. GetShellWindow,

[issue896330] pyconfig.h is not placed in --includedir

2020-07-02 Thread Ned Deily
Change by Ned Deily : -- nosy: -Mario Gonzalez ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue896330] pyconfig.h is not placed in --includedir

2020-07-02 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg372730 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17805] No such class: multiprocessing.pool.AsyncResult

2020-07-02 Thread Volker Weißmann
Volker Weißmann added the comment: Tomorror, or in a few days, I'm gonna create a pullrequest for it. -- ___ Python tracker ___ ___

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-02 Thread miss-islington
miss-islington added the comment: New changeset bfec674254ea22ef9c0c335587eb65683f4145c7 by Miss Islington (bot) in branch '3.9': bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" (GH-21092)

[issue41066] Update documentation for Pathlib

2020-07-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Michael Torrie
On 7/2/20 4:46 PM, Random832 wrote: > It's possible that this wasn't explained clearly enough in the commit > message itself (though I would argue it was definitely adequately > explained in the ensuing on-list discussion, and wonder how much of > that discussion you've actually read), but the

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41197] Async magic methods in contextlib.closing

2020-07-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be a duplicate of issue40213 with a link to implementation in trio. -- nosy: +xtreak ___ Python tracker ___

[issue41197] Async magic methods in contextlib.closing

2020-07-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Warning is not error. It may left unnoticed, especially if the code is executed on server. And in this particular case turning the warning into exception by setting warning filters does not help, because it would be raised in the context where exceptions

[issue33665] tkinter.ttk.Scrollbar.fraction() under-estimates length

2020-07-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for testing it E. Paine. I agree that it is not a Tkinter issue. -- resolution: -> third party stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +20435 pull_request: https://github.com/python/cpython/pull/21288 ___ Python tracker ___

[issue41198] Round built-in function not shows zeros acording significant figures and calculates different numbers of odd and even

2020-07-02 Thread Tim Peters
Tim Peters added the comment: Cool! So the only thing surprising to me here is just how far off balance the arange() run was. So I'd like to keep this open long enough for Mark to notice, just in case it's pointing to something fishy in numpy. --

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-02 Thread miss-islington
miss-islington added the comment: New changeset 148f32913573c29250dfb3f0d079eb8847633621 by scoder in branch 'master': bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" (GH-21092)

[issue41073] [C API] PyType_GetSlot() should accept static types

2020-07-02 Thread hai shi
hai shi added the comment: > You'll probably need some table like typeslots.inc to record which sub-slots > struct each slot belongs to. Looks like it's a good way to solve this probleam, Let me try it ;) -- ___ Python tracker

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Dieter Maurer
Rhodri James wrote at 2020-7-2 14:39 +0100: >We've had the requested 24 hour cooling off, and I don't imagine anyone >is surprised that the situation remains unchanged. The commit message >that caused the controversy is still in the PEP repository, and is still >controversial. Whether you think

[issue41139] cgi uses the locale encoding for log files

2020-07-02 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: My bad. I meant cgi.log(), I pressed submit changes in a hurry. +1 for utf-8. -- ___ Python tracker

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-02 Thread Guido van Rossum
Guido van Rossum added the comment: Stefan can you do the 3.8 backport? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41199] Docstring convention not followed for dataclasses documentation page

2020-07-02 Thread Jackstraw
New submission from Jackstraw : The InventoryItem class on the dataclasses page [https://docs.python.org/3.7/library/dataclasses.html#module-dataclasses] has single quotes for the docstring, as opposed to double quotes (as described by PEP-257. -- assignee: docs@python components:

[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-02 Thread Inada Naoki
Inada Naoki added the comment: Hmm. You are right. The warnings are shown by default. On the other hand, some project uses custom `setup.py test` command. It hides the DeprecationWarning. https://github.com/warner/python-ed25519/blob/master/setup.py

[issue40213] contextlib.aclosing()

2020-07-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you have use cases or want to add it for pure "symmetry" reasons? contextlib.closing() was added when context managers were new, and many classes that own resources did have the close() method but did not support the context manager protocol. Now most

[issue41195] Interface to OpenSSL's security level

2020-07-02 Thread Matthew Hughes
New submission from Matthew Hughes : While investigating Python's SSL I noticed there was no interface for interacting with OpenSSL's SSL_CTX_{get,set}_security_level (https://www.openssl.org/docs/manmaster/man3/SSL_CTX_get_security_level.html) so I thought I'd look into adding one (see

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0ab917e07ed64c6bfde6f6e791f9b28acc97b510 by Victor Stinner in branch 'master': bpo-41193: Ignore OSError in readline write_history() (GH-21279) https://github.com/python/cpython/commit/0ab917e07ed64c6bfde6f6e791f9b28acc97b510 --

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +20429 pull_request: https://github.com/python/cpython/pull/21280 ___ Python tracker

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +20430 pull_request: https://github.com/python/cpython/pull/21281 ___ Python tracker ___

[issue41195] Interface to OpenSSL's security level

2020-07-02 Thread Christian Heimes
Christian Heimes added the comment: I'm not sure it's a good idea to expose a setter for security level. In general the security level is a system-wide policy decision that should be controlled by administrators. Applications should not change this setting. Python libraries tend to follow

[issue41194] SIGSEGV in Python 3.9.0b3 in Python-ast.c:1412

2020-07-02 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: If you aren't able to share some reproducer snippets, would you try a bisect? An interesting commit would be this ac46eb4ad66 to try and check if this crash happens before and after it? -- ___ Python tracker

[issue18080] setting CC no longer overrides default linker for extension module builds on OS X

2020-07-02 Thread Ned Deily
Ned Deily added the comment: Jason, what action(s) are you expecting with regard to this and by whom? This issue has been long closed. -- ___ Python tracker ___

[issue41195] Interface to OpenSSL's security level

2020-07-02 Thread Matthew Hughes
Matthew Hughes added the comment: > Applications should not change this setting > A read-only getter for the policy sounds like a good idea, though. Thanks for the feedback, sounds reasonable to me. I'll happily work on getting a PR up for the read-only setter. --

[issue41193] traceback when exiting on read-only file system

2020-07-02 Thread miss-islington
miss-islington added the comment: New changeset 53d2b715d10e5c81cb9c86fd25e88ace4e41bc25 by Miss Islington (bot) in branch '3.8': bpo-41193: Ignore OSError in readline write_history() (GH-21279) https://github.com/python/cpython/commit/53d2b715d10e5c81cb9c86fd25e88ace4e41bc25 --

  1   2   >