[issue47174] Define behavior of descriptor-typed fields on dataclasses

2022-04-01 Thread mike bayer
Change by mike bayer : -- nosy: +zzzeek ___ Python tracker <https://bugs.python.org/issue47174> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32658] Metacharacter (\) documentation suggestion

2022-04-01 Thread mike mcleod
Change by mike mcleod : -- keywords: +patch pull_requests: +30302 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32230 ___ Python tracker <https://bugs.python.org/issu

[issue47183] Cant compile html docs

2022-04-01 Thread mike mcleod
mike mcleod added the comment: Works for me. The command installed the correct version of Sphinx. Thanks. -- stage: -> resolved status: pending -> closed ___ Python tracker <https://bugs.python.org/i

[issue47183] Cant compile html docs

2022-03-31 Thread mike mcleod
New submission from mike mcleod : After sync'ing to upstream/main and then python/Doc on  main via  v3.11.0a6+ ❯ make html mkdir -p build Building NEWS from Misc/NEWS.d with blurb PATH=./venv/bin:$PATH sphinx-build -b html -d build/doctrees -W . build/html Running Sphinx v3.5.4 building

[issue32658] Metacharacter (\) documentation suggestion

2022-03-31 Thread mike mcleod
mike mcleod added the comment: After sync'ing to upstream/main and then running make html I get: ... checking consistency... done preparing documents... failed Warning, treated as error: unsupported theme option 'license_url' given make: *** [Makefile:53: build] Error 2 I cant see anything

[issue32658] Metacharacter (\) documentation suggestion

2022-03-29 Thread mike mcleod
mike mcleod added the comment: Sorry, forgot this one. Would you like me to move this forward? Or do you want to take it? I don't mind either way. -- ___ Python tracker <https://bugs.python.org/issue32

[issue46751] Windows-style path is not recognized under cygwin

2022-02-14 Thread Mike Kaganski
Mike Kaganski added the comment: > As for 3.9: it's not available through the 64 bit installer (at least, I > don't see it there). I'll look and see what's involved in installing it. I don't remember if I did something special to install it; however, just maybe you need to install py

[issue46751] Windows-style path is not recognized under cygwin

2022-02-14 Thread Mike Kaganski
Mike Kaganski added the comment: Thanks for looking at this! > Are you running from bash (or another cygwin shell), or from cmd.exe, or > something else? :) Citing myself: > Trying this *bash* command line: > To my knowledge, cygwin's installer doesn't have a 3.9 availab

[issue46751] Windows-style path is not recognized under cygwin

2022-02-14 Thread Mike Kaganski
New submission from Mike Kaganski : Using cyqwin 3.3.4-2, and python3: Python 3.9.10 (main, Jan 20 2022, 21:37:52) [GCC 11.2.0] on cygwin Trying this bash command line: > python3 C:/path/to/script.py results in this error: "python3: can't open file '/cygdrive/c/path/to/curdir

[issue43882] [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline and tabs.

2022-02-06 Thread Mike Lissner
Mike Lissner added the comment: Looks like that CVE isn't public yet. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0391 Any chance I can get access (I originally reported this vuln.). My email is m...@free.law, if it's possible and my email is needed. Thanks

[issue46654] urllib.request.urlopen doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Change by Mike Auty : -- title: file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes) -> urllib.request.urlopen doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slas

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: I can confirm that url2pathname work with either number of slashes, and that open_file appears to have had the file: removed. However, in even if the check in open_file were bypassed, it calls open_local_file, which then strips any host before calling

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: Here's the revised code sample: import pathlib import urllib.request path = "Z:\\test.py" print(f"Stock open: {pathlib.Path(path).as_uri()}") with urllib.request.urlopen(pathlib.Path(path).as_uri()) as fp:

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: My bad, sorry, I realized I was conflating open with urllib.request.urlopen. I believe the issue still exists though, sorry for the confusion. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: > Why are you adding `.as_uri()`? The API we provide accepts URIs, so whilst the example seems a little contrived, the code itself expects a URI and then calls open (making use of the ability to add open handlers). > Builtin open() calls C open(). As

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
New submission from Mike Auty : I've found open to have difficulty with a resolved pathlib path: Example code of: import pathlib path = "Z:\\test.py" with open(path) as fp: print("Stock open: works") data = fp.read() with open(pathlib.Path(pa

[issue32442] Result of pathlib Path.resolve() with UNC path is not very useful

2022-02-05 Thread Mike Auty
Mike Auty added the comment: Sorry for the spam, thought I was in a different text box. 5:( -- nosy: +ikelos title: file_open unc -> Result of pathlib Path.resolve() with UNC path is not very useful ___ Python tracker <https://bugs.pyth

[issue32442] file_open unc

2022-02-05 Thread Mike Auty
Change by Mike Auty : -- title: Result of pathlib.Path.resolve() with UNC path is not very useful -> file_open unc ___ Python tracker <https://bugs.python.org/issu

[issue32658] Metacharacter (\) documentation suggestion

2022-01-21 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. Is that acceptable? -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue32

[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest

2022-01-21 Thread mike mcleod
mike mcleod added the comment: I would like to help on this issue. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue1521051> ___ ___ Pytho

[issue10434] Document the rules for "public names"

2022-01-21 Thread mike mcleod
mike mcleod added the comment: I would like to help on this issue. Is there anyone available to push a PR through? If I make the changes. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue10

[issue10202] ftplib doesn't check close status after sending file

2022-01-21 Thread mike mcleod
Change by mike mcleod : -- keywords: +patch pull_requests: +28934 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30747 ___ Python tracker <https://bugs.python.org/issu

[issue10202] ftplib doesn't check close status after sending file

2022-01-15 Thread mike mcleod
mike mcleod added the comment: Working.. should be able to create pull request soon. Note part of suggestions include using SIOCOUTQ, but this does not have an equivalent for windows. And as Murphy's law goes this is likely to be where the problem

[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Mike Schiessl
Mike Schiessl added the comment: Yes, enforcing interval == 1 or interval == None (which pulls the TimedRotatingFileHandler class __init__ default value which is also 1) works perfectly with midnight. I do not see any urge on that topic - as I personally now know the issue :D - but I

[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Mike Schiessl
Mike Schiessl added the comment: i've just checked PR and you're right, something with the PR went wrong. Anyway, midnight (at least from the wording) specifies the "atTime". (which should be midnight). Again, if there's (by mistake) an interval bigger than 1 set(which in my m

[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Mike Schiessl
New submission from Mike Schiessl : Using the TimedRotatingFileHandler along with "when='midnight'" and interval > 1, midnight is handled equally to "days" which is a little misleading. Expectation: setting when to 'midnight', the file is rotated every midnight

[issue24364] Not all defects pass through email policy

2021-12-24 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue24364> ___ ___ Pytho

[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2021-12-24 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I'm new to this space hence I am not aware of what patch review means. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue4

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-12-22 Thread mike mcleod
Change by mike mcleod : -- pull_requests: +28450 pull_request: https://github.com/python/cpython/pull/30228 ___ Python tracker <https://bugs.python.org/issue1284

[issue10483] http.server - what is executable on Windows

2021-12-20 Thread mike mcleod
Change by mike mcleod : -- pull_requests: +28437 pull_request: https://github.com/python/cpython/pull/30216 ___ Python tracker <https://bugs.python.org/issue10

[issue10483] http.server - what is executable on Windows

2021-12-04 Thread mike mcleod
Change by mike mcleod : -- keywords: +patch pull_requests: +28141 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29624 ___ Python tracker <https://bugs.python.org/issu

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-12-01 Thread mike mcleod
mike mcleod added the comment: Minor fix after test. -- Added file: https://bugs.python.org/file50467/2.html ___ Python tracker <https://bugs.python.org/issue1284

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-12-01 Thread mike mcleod
mike mcleod added the comment: I have made the changes as indicated in the diff files. I have tested against the latest from my GitHub copy. The result is: ./python -m test -j0 == CPython 3.11.0a2+ (heads/main:3a91617590, Dec 1 2021, 15:11:41) [GCC 11.2.0] == Linux-5.13.0-22-generic-x86_64

[issue10483] http.server - what is executable on Windows

2021-11-27 Thread mike mcleod
mike mcleod added the comment: I will work on this next week. -- ___ Python tracker <https://bugs.python.org/issue10483> ___ ___ Python-bugs-list mailin

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-11-27 Thread mike mcleod
mike mcleod added the comment: Ok, I will work on this soon and make further comments. -- ___ Python tracker <https://bugs.python.org/issue1284670> ___ ___ Pytho

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-11-19 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I note the history (using Git Dag) of the modulefinder.py shows that it has been modified with changes related here: Author: Éric Araujo 2011-07-28 22:35:29 Committer: Éric Araujo 2011-07-28 22:35:29 Parent

[issue10483] http.server - what is executable on Windows

2021-11-18 Thread mike mcleod
mike mcleod added the comment: Hi Victor, Ok I'll do that. Regards, Mike On Thu, 18 Nov 2021 at 15:36, STINNER Victor wrote: > > STINNER Victor added the comment: > > I searched for open issues which contain "cgi" in their title. I found 43 > open issues. The

[issue10202] ftplib doesn't check close status after sending file

2021-11-12 Thread mike mcleod
mike mcleod added the comment: I would like to help on this issue. I understand the arguments here but it has been a lone time since this was raised and there does not seem to be any further issues discussed or support for this issue. -- nosy: +mikecmcleod

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2021-11-12 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I note that when I test against 3.10 this error does not show. Also, all tests for test_tarfile pass. I am wondering if it may be reasonable to close this due to the age and currently its not an issue in the latest Python

[issue10483] http.server - what is executable on Windows

2021-11-10 Thread mike mcleod
mike mcleod added the comment: I have put the question on Discuss and wait for (any) responses, -- ___ Python tracker <https://bugs.python.org/issue10

[issue21501] docs: mmap example for use in documentation

2021-11-10 Thread mike mcleod
mike mcleod added the comment: One of the things I did when the example code didn't work was to see what other examples could be found and there are I would argue plenty or just enough, eg: https://medium.com/analytics-vidhya/memory-mapping-files-and-mmap-module-in-python-with-lot-of-examples

[issue21501] docs: mmap example for use in documentation

2021-11-10 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I note that a few changes need to be made to the code example for compatibility for the latest version of Python. I can get this working but I am not sure this is a good example. Also, the example is more about threads

[issue10483] http.server - what is executable on Windows

2021-11-10 Thread mike mcleod
mike mcleod added the comment: Should I go ahead and make the changes as per msg122208 ? on my local copy and test? -- ___ Python tracker <https://bugs.python.org/issue10

[issue2628] ftplib Persistent data connection

2021-11-02 Thread mike mcleod
mike mcleod added the comment: You're welcome. Regards, Mike On Tue, 2 Nov 2021 at 05:52, Ethan Furman wrote: > > Ethan Furman added the comment: > > Ah. Well, in that case closing seems like the best idea. > > Thank you, Jonathan, for getting the CLA signed and pro

[issue10483] http.server - what is executable on Windows

2021-11-01 Thread mike mcleod
mike mcleod added the comment: Hi Éric, Then would the easiest way of dealing with this issue, to close it without any further work? Possibly adding to the documents it doesn't work on windows.. I can move to the next issue. Regards, Mike On Sun, 31 Oct 2021 at 18:03, Éric Araujo wrote

[issue2628] ftplib Persistent data connection

2021-11-01 Thread mike mcleod
mike mcleod added the comment: I am happy to do any testing. My reason for getting involved is I am new to helping with Cpython and thought this may be the least intrusive way of getting started with something that nobody really cares about that much. Hence, the oldest issue I see can

[issue10483] http.server - what is executable on Windows

2021-10-31 Thread mike mcleod
mike mcleod added the comment: Hi, I would like to help on this issue. Let me know what can be done? -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue10

[issue2628] ftplib Persistent data connection

2021-10-26 Thread mike mcleod
mike mcleod added the comment: Hi Ethan, Thanks, awaiting reply.. Regards, Mike On Tue, 26 Oct 2021 at 01:36, Ethan Furman wrote: > > Ethan Furman added the comment: > > We don't have a CLA from jbell. I've sent an email asking him to do so... > we'll s

[issue2628] ftplib Persistent data connection

2021-10-24 Thread mike mcleod
mike mcleod added the comment: Hi, I would like to help on this issue. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue2628> ___ ___

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread Mike Gilbert
Change by Mike Gilbert : -- keywords: +patch pull_requests: +27176 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28881 ___ Python tracker <https://bugs.python.org/issu

[issue45433] libpython should not be linked with libcrypt

2021-10-11 Thread Mike Gilbert
New submission from Mike Gilbert : In https://bugs.python.org/issue44751, crypt.h was removed from Python.h. This would imply that libpython is not meant to expose any crypt-related symbols. In fact, it looks like libpython does not use crypt() or crypt_r() at all. These are only used

[issue41710] acquire(timeout) of threading.Lock and threading.Condition is affected by jumps in system time: Python should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread Mike Crowe
Mike Crowe added the comment: vstinner wrote: > The glibc 2.30 adds pthread_cond_clockwait() which could be used to use > CLOCK_MONOTONIC. But if pthread_cond_clockwait() is available (glibc > 2.30 or newer), it expects that pthread_condattr_setclock() is also > available. So

[issue27035] Cannot set exit code in atexit callback

2021-08-19 Thread Mike Hommey
Mike Hommey added the comment: > In 2.7 the only exception that _did_ change the exit code was SystemExit. (and only if it was the last thrown exception) -- ___ Python tracker <https://bugs.python.org/issu

[issue27035] Cannot set exit code in atexit callback

2021-08-19 Thread Mike Hommey
Mike Hommey added the comment: > I think we should change the documentation to expand the parenthetical " > (unless SystemExit is raised)" to a complete explanation of that special case. That would not be enough, since the case for other exceptions would still be ambiguous,

[issue41710] Timeout is affected by jumps in system time

2021-08-11 Thread Mike Crowe
Mike Crowe added the comment: glibc v2.30 onwards provides sem_clockwait which can wait on either CLOCK_MONOTONIC or CLOCK_REALTIME. I failed to notice that https://sourceware.org/bugzilla/show_bug.cgi?id=14717 existed until today. :( -- nosy: +mikecrowe

[issue44352] Native Windows Python builds running on Europe/Moscow TZ report wrong time from datetime.datetime.now when there is TZ environment variable also set to Europe/Moscow

2021-06-11 Thread Mike Kaganski
Mike Kaganski added the comment: @Eryk Sun: yes, of course you are right - but please see the date of the commit; I didn't know what you kindly explained me in your reply yesterday :-) Thank you again. -- ___ Python tracker <ht

[issue44352] Native Windows Python builds running on Europe/Moscow TZ report wrong time from datetime.datetime.now when there is TZ environment variable also set to Europe/Moscow

2021-06-10 Thread Mike Kaganski
Mike Kaganski added the comment: Thank you Eryk! This is a good workaround for me. I have implemented it: https://git.libreoffice.org/core/+/3bcaa4ba79477a21251ddaa06e0ea159196a7ffb It looks like it's not a Python's problem; I suppose this may be closed. Thanks again! -- resolution

[issue44352] Native Windows Python builds running on Europe/Moscow TZ report wrong time from datetime.datetime.now when there is TZ environment variable also set to Europe/Moscow

2021-06-08 Thread Mike Kaganski
New submission from Mike Kaganski : On a Windows 10 system, which TZ is set to Moscow (UTC+3), I use a native Windows Python build (as opposed to e.g. one from Cygwin). Specifically, I tested both custom Python build created by LibreOffice project, as well as the Python by Python Software

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-05 Thread mike bayer
mike bayer added the comment: great news! Based on how many random factors were needed to reproduce as well as that it seemed to be gc related and appeared very suddenly, I had an intuition this was on the cpython side, thanks so much for doing this Pablo

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-04 Thread mike bayer
mike bayer added the comment: yes, if I have time I will begin to undertake that, wanted to put it up here in case anyone has git bisect on speed dial for cpython. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-03 Thread mike bayer
mike bayer added the comment: if the issue is in greenlet this can be bounced back to https://github.com/python-greenlet/greenlet/issues/242 -- ___ Python tracker <https://bugs.python.org/issue44

[issue44304] segmentation fault appeared in python 3.10.0b2

2021-06-03 Thread mike bayer
New submission from mike bayer : segmentation fault related to object deallocation and traceback objects, is extremely difficult to reproduce and definitely appeared as of 3.10.0b2, does not occur in 3.10.0b1. linux and osx platforms are affected. The issue requires "greenlet==

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-06 Thread Mike Lissner
Mike Lissner added the comment: > With the fix for this bug, urlsplit silently removes (some of) those > characters before we can replace them, modifying the output of our > sanitisation code I don't have any good solutions for 3.9.5, but going forward, this feels like anothe

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-05 Thread Mike Lissner
Mike Lissner added the comment: > I'd wonder how to pass through valid exceptions without urlparse raising > something. Oops, meant to say "valid URLs", not valid exceptions, sorry. -- ___ Python tracker <https://bugs.py

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-05 Thread Mike Lissner
Mike Lissner added the comment: > Instead of the patches as you see them, we could've raised an exception. In my mind the definition of a valid URL is what browsers recognize. They're moving towards the WHATWG definition, and so too must we. If we make python raise an exception when a

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-05-04 Thread Mike Lissner
Mike Lissner added the comment: I haven't watched that Blackhat presentation yet, but from the slides, it seems like the fix is to get all languages parsing URLs the same as the browsers. That's what @orsenthil has been doing here and plans to do in https://bugs.python.org/issue43883

[issue43882] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-04-19 Thread Mike Lissner
Change by Mike Lissner : -- nosy: +Mike.Lissner ___ Python tracker <https://bugs.python.org/issue43882> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43883] Making urlparse WHATWG conformant

2021-04-19 Thread Mike Lissner
Change by Mike Lissner : -- nosy: +Mike.Lissner ___ Python tracker <https://bugs.python.org/issue43883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43484] valid datetimes can become invalid if the timezone is changed

2021-03-19 Thread mike bayer
mike bayer added the comment: > I don't really know why it would be a "security vulnerability", but presumably a library could either convert their datetimes to UTC as soon as they get them from the user if they want to use them as UTC in the future, or they could simply ref

[issue43493] EmailMessage mis-folding headers of a certain length

2021-03-17 Thread Mike Glover
Mike Glover added the comment: Further research shows that email.parser.Parser is not handling the affected lines correctly -- the leading '\n ' is not being stripped from the header value. Attached is the (ugly, worksforme) function I'm using to workaround this problem -- Added

[issue43493] EmailMessage mis-folding headers of a certain length

2021-03-14 Thread Mike Glover
New submission from Mike Glover : The attached file demonstrates the incorrect folding behavior I'm seeing. Header lines of a certain total length get folded after the colon following the header name, which is not valid RFC. Slightly longer or shorter lines are folded correctly

[issue43484] we can create valid datetime objects that become invalid if the timezone is changed

2021-03-12 Thread mike bayer
New submission from mike bayer : So I'm pretty sure this is "not a bug" but it's a bit of a problem and I have a user suggesting the "security vulnerability" bell on this one, and to be honest I don't even know what any library would do to "prevent" this. Ba

[issue43180] Lists without commas?

2021-02-09 Thread Mike Siegel
New submission from Mike Siegel : Perhaps I'm missing something here but this behavior seems unexpected to me. "Lists The items of a list are arbitrary Python objects. Lists are formed by placing a *comma-separated* list of expressions in square brackets. (Note that there are no sp

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

2021-01-06 Thread mike bayer
mike bayer added the comment: I think this issue just discusses the naming of an attribute called ".autocommit". for the discussion for SQLite's unusual starting of transactions, that's all in two other issues: https://bugs.python.org/issue9924 https://bugs.python.org/issue1

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

2021-01-05 Thread mike bayer
mike bayer added the comment: > Under your proposal, the first line would be changed to say > "autocommit=True", even though not all the code below is in autocommit mode > (according to the SQLite engine's definition). What's more, I could insert > this line of cod

[issue42771] Implement interactive hotkey, Ctrl+L to clear the console in Windows.

2020-12-28 Thread Mike Miller
Mike Miller added the comment: I found an implementation of this for Windows in case it is needed. Not sure if it is the best way to do it, as the Console API is rather clumsy. However this one works to my knowledge: https://github.com/tartley/colorama/blob/master/colorama/winterm.py#L111

[issue42771] Implement interactive hotkey, Ctrl+L to clear the console in Windows.

2020-12-28 Thread Mike Miller
New submission from Mike Miller : The Ctrl+L as clear-screen hotkey is supported just about everywhere, Unix and Windows, with the exceptions of cmd.exe and python.exe interactive mode. As the legacy cmd.exe can be easily replaced, that leaves python.exe. Likely needs to be configured via

[issue16535] json encoder unable to handle decimal

2020-12-20 Thread mike bayer
Change by mike bayer : -- nosy: +zzzeek ___ Python tracker <https://bugs.python.org/issue16535> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42555] math function sqrt() not working in 3.9

2020-12-03 Thread mike dalrymple
New submission from mike dalrymple : Downloaded Python 3.9.0 Documentation indicates: math.sqrt(x) Return the square root of x. When I use in IDLE shell 3.9.0, I receive error: >>> sqrt(25) Traceback (most recent call last): File "", line 1, in sqrt(25) Na

[issue42341] xml.dom.minidom parsing omits Text nodes in top level

2020-11-12 Thread Mike Frysinger
New submission from Mike Frysinger : $ python3 Python 3.8.5 (default, Aug 2 2020, 15:09:07) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from xml.dom import minidom # Lets parse a simple XM

[issue23436] xml.dom.minidom.Element.ownerDocument is hidden

2020-11-12 Thread Mike Frysinger
Change by Mike Frysinger : -- title: xml.dom.minidom.Element.ownerDocument is hiden -> xml.dom.minidom.Element.ownerDocument is hidden ___ Python tracker <https://bugs.python.org/issu

[issue42253] xml.dom.minidom.rst missing standalone documentation

2020-11-12 Thread Mike Frysinger
Change by Mike Frysinger : -- assignee: -> docs@python components: +Documentation nosy: +docs@python title: xml.dom.minidom.rst missed informations -> xml.dom.minidom.rst missing standalone documentation ___ Python tracker

[issue42173] Drop Solaris support

2020-10-30 Thread Mike La Spina
Mike La Spina added the comment: I suspect the download stats are not a full indication of usage on “SunOS” based on download stats. The bits are preinstalled. I do use it frequently via Illumos. Please support the platform. Regards, Mike -- nosy: +michael.laspina

[issue41629] __class__ not set defining 'X' as . Was __classcell__ propagated to type.__new__?

2020-08-24 Thread mike bayer
New submission from mike bayer : This is likely related or a dupe of https://bugs.python.org/issue29270, but the error message is different. I'm posting this to confirm it's the same issue, or not, and to at least provide a google result for people who also see this error as 29270 seems

[issue22239] asyncio: nested event loop

2020-07-08 Thread mike bayer
mike bayer added the comment: I tested "cancellation", shutting down the DB connection mid query. Because the greenlet is only in the middle and not at the endpoints, it propagates the exception and there does not seem to be anything different except for the greenlet sequence in

[issue22239] asyncio: nested event loop

2020-07-08 Thread mike bayer
mike bayer added the comment: as far as cancellation, I gather you're referring to what in gevent / greenlet is the GreenletExit exception. Sure, that thing is a PITA. Hence we're all working to provide asyncio frontends and networking backends so that the effects of cancellation I

[issue22239] asyncio: nested event loop

2020-07-07 Thread mike bayer
mike bayer added the comment: slight correction: it is of course possible to use gevent with a database driver without monkeypatching, as I wrote my own gevent benchmarks using psycogreen. I think what I'm getting at is that it's a good thing if async DBAPIs could target asyncio explicitly

[issue22239] asyncio: nested event loop

2020-07-07 Thread mike bayer
mike bayer added the comment: > Oh, I thought the primary problem for SQLAlchemy supporting async is that the > ORM needs to do IO from inside __getattr__ methods. So I assumed that the > reason you were so excited about greenlets was that it would let you use > await_() from

[issue22239] asyncio: nested event loop

2020-07-07 Thread mike bayer
mike bayer added the comment: > With greenlets OTOH, it becomes possible for another task to observe > someobj.a == 1 without someobj.b == 2, in case someobj.__setattr__ internally > invoked an await_(). let me try this one more time.Basically if someone wrote this: async def

[issue22239] asyncio: nested event loop

2020-07-07 Thread mike bayer
mike bayer added the comment: > With greenlets OTOH, it becomes possible for another task to observe > someobj.a == 1 without someobj.b == 2, in case someobj.__setattr__ internally > invoked an await_(). Any operation can potentially invoke a context switch. > So debugging gr

[issue22239] asyncio: nested event loop

2020-07-06 Thread mike bayer
mike bayer added the comment: yes so if you have async/await all internal, are you saying you can make that work for synchronous code *without* running the event loop? that is, some kind of container that just does the right thing? my concern with that would still be performance.When

[issue22239] asyncio: nested event loop

2020-07-06 Thread mike bayer
mike bayer added the comment: > This recipe was one of the reasons why I added `loop.set_task_factory` > method to the spec, so that it's possible to implement this in an *existing* > event loop like uvloop. But ultimately asyncio is flexible enough to let > users use their ow

[issue22239] asyncio: nested event loop

2020-07-06 Thread mike bayer
mike bayer added the comment: hey there, I seem to have two cents to offer so here it is.An obscure issue in the Python bug tracker is probably not the right place for this so consider this as an early draft of something that maybe I'll talk about more elsewhere. > This basica

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
mike stern added the comment: i am calm but sometimes I am wondering if the philosophy behind python is really like they claimed to make it very simple. Well I see a lot of confusions sometimes , and this is one From: report=bugs.python

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
mike stern added the comment: sorry but that article was about version 2.2 in 2000 Created:11-Mar-2001 Python-Version: 2.2 where is the one for 3.7 From: report=bugs.python@roundup.psfhosted.org on behalf of Tim Peters Sent: Monday, June 22

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
mike stern added the comment: I appreciate your answer I just didn't like how she answered earlier saying I cannot reproduce. 2 / 2 gives 1.0 to me. which is not true thanks anyway, now i am gonna have to do some reading From: report=bugs.python

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
mike stern added the comment: Not satisfied with that reply you can't just decide to close the ticket without even giving a reasonable answer, or even try that on 2.7 or 3.7 to see if it is true what I said. Besides, that is not a convincing answer, that is actually no answer at all!!! I

[issue41071] from an int to a float , why

2020-06-22 Thread mike stern
New submission from mike stern : please I would like to know why python changes an integer result in a division to a float even in the result is even like print(2 / 2) gives 2.0 instead of 2 or a = 2 / 2 print(a) -- components: Interpreter Core messages: 372033 nosy: rskir

[issue40283] Documentation of turtle.circle()

2020-06-17 Thread Mike Weilgart
Change by Mike Weilgart : -- keywords: +patch nosy: +Weildcard nosy_count: 6.0 -> 7.0 pull_requests: +20107 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20928 ___ Python tracker <https://bugs.p

[issue40981] increment is wrong in 3.7 but not in 2.7

2020-06-15 Thread mike stern
mike stern added the comment: sorry but I don't see the option to delete From: report=bugs.python@roundup.psfhosted.org on behalf of Terry J. Reedy Sent: Monday, June 15, 2020 11:46 AM To: rskir...@hotmail.com Subject: [issue40981] increment is wrong

  1   2   3   4   5   6   7   >