[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Fixed the bug to default any macos into 'spawn' PR: GH-18529 -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue39

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-02-16 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +17905 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18529 ___ Python tracker <https://bugs.python.org/issu

[issue37970] urllib.parse docstrings incomplete

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Tal, I can also fix that so we can close this issue. Are you talking about the Doc/library/urllib.parse.rst file? -- ___ Python tracker <https://bugs.python.org/issue37

[issue10572] Move test sub-packages to Lib/test

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Moved all 6 modules tests under Lib/test/MODULE_NAME_test Created this PR: GH-18524 -- ___ Python tracker <https://bugs.python.org/issue10

[issue10572] Move test sub-packages to Lib/test

2020-02-16 Thread Ido Michael
Change by Ido Michael : -- pull_requests: +17901 pull_request: https://github.com/python/cpython/pull/18524 ___ Python tracker <https://bugs.python.org/issue10

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Created 2nd PR with the Algorithm documentation: GH-18523 -- ___ Python tracker <https://bugs.python.org/issue39128> ___ ___ Pytho

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

2020-02-16 Thread Ido Michael
Change by Ido Michael : -- pull_requests: +17900 pull_request: https://github.com/python/cpython/pull/18523 ___ Python tracker <https://bugs.python.org/issue39

[issue35885] configparser: indentation

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Created PR GH-18522 -- ___ Python tracker <https://bugs.python.org/issue35885> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35885] configparser: indentation

2020-02-16 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +17899 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18522 ___ Python tracker <https://bugs.python.org/issu

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2020-02-16 Thread Ido Michael
Ido Michael added the comment: Can this issue be closed, I see it was merged successfully? -- ___ Python tracker <https://bugs.python.org/issue27873> ___ ___

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Michael Torrie
On 2/12/20 7:44 AM, Ethan Furman wrote: > On 02/11/2020 04:38 PM, Michael Torrie wrote: > >> It's all just different ways of accounting for the same things. In >> the olden days before the term "technical debt" was invented, we >> called this "total cost

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 6:15 PM, Chris Angelico wrote: > On Wed, Feb 12, 2020 at 12:13 PM Michael Torrie wrote: >> >> On 2/11/20 5:55 PM, Chris Angelico wrote: >>> But you CAN rewrite code such that it reduces technical debt. You can >>> refactor code to make it more logi

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 5:53 PM, Python wrote: > If your hypothetical project was implemented perfectly from the > beginning, in Python2.x, it may never need updating, and therefore > there may well never be any reason to port it to python3. So doing so > would be neither "debt" nor "cost" but rather "waste."

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 5:55 PM, Chris Angelico wrote: > But you CAN rewrite code such that it reduces technical debt. You can > refactor code to make it more logical. You can update things to use > idioms that better express the concepts you're trying to represent > (maybe because those idioms require

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 5:42 PM, Chris Angelico wrote: > Yes, if you consider the term to be synonymous with TCO, then > naturally you'll see it as useless. But it isn't. Technical debt is a > very specific thing and it CAN be paid off. We'll agree to disagree on the last bit. And I'm not the only one that

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 5:37 PM, Chris Angelico wrote: > On Wed, Feb 12, 2020 at 11:32 AM Michael Torrie wrote: >> >> On 2/11/20 2:25 PM, Barry Scott wrote: >>> At Chris said moving to python3 will *reduce* your technical debt. >>> You are paying off the debt. >> >&

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 1:09 PM, Chris Angelico wrote: > What you're talking about is costs in general, but "debt" is a very > specific term. You accrue technical debt whenever you "borrow" time > from the future - doing something that's less effort now at the > expense of being worse in the future. You pay

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 2:25 PM, Barry Scott wrote: > At Chris said moving to python3 will *reduce* your technical debt. > You are paying off the debt. While at the same time incurring new debt. > Not to mention that its harder to hire people to work on tech-debt legacy > code. > > Given the choice between

Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Michael Torrie
On 2/11/20 4:05 AM, Chris Angelico wrote: > Or just the recognition that, eventually, technical debt has to be > paid. Speaking about technical debt is certainly fashionable these days. As if we've somehow discovered a brand new way of looking at things. But it doesn't matter what you do,

[issue37970] urllib.parse docstrings incomplete

2020-02-10 Thread Ido Michael
Ido Michael added the comment: Hey Senthil, Yes the PEP guides was fixed a while ago, also the new comment of adding the same change for the second function were taken care of. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37970] urllib.parse docstrings incomplete

2020-02-10 Thread Ido Michael
Ido Michael added the comment: Any update on this? Adding @Tal Einat on the PR -- ___ Python tracker <https://bugs.python.org/issue37970> ___ ___ Python-bug

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

2020-02-10 Thread Ido Michael
Ido Michael added the comment: Thanks Julien, I forgot about this part, will create a new PR. I thought referencing the abstract of the algorithm + a link to the IETF RFC: Happy Eyeballs: Success with Dual-Stack Hosts When a server's IPv4 path and protocol are working, but the server's

[issue36843] AIX build fails with failure to get random numbers

2020-02-07 Thread Michael Felt
Michael Felt added the comment: FYI: I was contacted this week by someone with this problem. The problem was resolved after they updated AIX (was 7100-04-00-). Please note: any oslevel -s reporting six zeros at the end needs the SP that is released in parallel with the base

Re: How to make a cross platform python app with pyinstaller??

2020-02-04 Thread Michael Torrie
On 2/4/20 8:33 PM, Chris Angelico wrote: > On Wed, Feb 5, 2020 at 2:32 PM Souvik Dutta wrote: >> >> Hi, >> I made a python gui with pyqt5 and packed it with pyinstaller. It is >> running well in my computer but when I gave it to a friend who doesn't have >> any python version installed and it

[issue10572] Move test sub-packages to Lib/test

2020-02-04 Thread Ido Michael
Ido Michael added the comment: Thanks Brett, I'll check this out over the week. Let's take this module for instance: Lib/distutils. I looked on this one test file by now, it looks decoupled (test_bdist.py), 1.What to look for 2.Once decided it's not the right path, just migrate to Lib

[issue37336] os.sendfile() support missing for AIX platform

2020-02-04 Thread Michael Felt
Michael Felt added the comment: OK. Couple of months later. Would appreciate guidance before submitting a patch. In advance: Thank you for your time and consideration. Short: socket.sendfile() and AIX send_file() are very close in terms of functionality - especially the requirement

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-02-03 Thread Michael Felt
Michael Felt added the comment: Not sure I understand what bug I am supposed to report. I apologize if my message https://bugs.python.org/issue39502#msg361116. I assume your comment re: time.localtime(91301504) comes from this bit of the test message (mtime_ns=913015040). Assuming

[issue36034] Suprise halt caused by -Werror=implicit-function-declaration in ./Modules/posixmodule.c

2020-02-03 Thread Michael Felt
Michael Felt added the comment: closing. Will open a new issue with a correct description of the issue at hand. The problem is related to 64-bit mode (which was not mentioned before) and minor() major() macro definitions. -- stage: -> resolved status: open ->

[issue32542] memory not freed, aka memory leak continues...

2020-02-03 Thread Michael Felt
Michael Felt added the comment: Not an issue in 3.9, so, closing: "not relevant" -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.py

[issue28290] BETA report: Python-3.6 build messages to stderr: AIX and "not GCC"

2020-02-03 Thread Michael Felt
Michael Felt added the comment: Closing, as not longer relevant. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue35885] configparser: indentation

2020-02-02 Thread Ido Michael
Ido Michael added the comment: Can I take this? What needs to be done? adding an indent flag and if it's passed indent the keys? -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue35

[issue38101] Update devguide triaging keywords

2020-02-02 Thread Ido Michael
Ido Michael added the comment: It treats the PR as a cpython while it's on the devguide repo, here is the link: https://github.com/python/devguide/pull/570 -- ___ Python tracker <https://bugs.python.org/issue38

[issue38101] Update devguide triaging keywords

2020-02-02 Thread Ido Michael
Ido Michael added the comment: Added a PR: GH-570 -- ___ Python tracker <https://bugs.python.org/issue38101> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

2020-02-02 Thread Ido Michael
Ido Michael added the comment: Created PR added arguments to method signature in doc. GH-18315 -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue39

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

2020-02-02 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +17691 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18315 ___ Python tracker <https://bugs.python.org/issu

[issue10572] Move test sub-packages to Lib/test

2020-02-02 Thread Ido Michael
Ido Michael added the comment: Are there any conclusions? what needs to be done? -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue10

[issue38691] [easy] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-02 Thread Ido Michael
Ido Michael added the comment: Created this PR: GH-18314 -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue38691> ___ ___ Python-bugs-list m

[issue38691] [easy] importlib: PYTHONCASEOK should be ignored when using python3 -E

2020-02-02 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +17690 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18314 ___ Python tracker <https://bugs.python.org/issu

[issue39274] Conversion from fractions.Fraction to bool

2020-02-02 Thread Ido Michael
Ido Michael added the comment: Hi all, I think this issue can be closed right? Saw a successful PR. -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue39

[issue37404] asyncio sock_recv blocks on ssl sockets.

2020-02-02 Thread Ido Michael
Ido Michael added the comment: Sorry it broke the version, what could I have done to avoid this? Also can we close this issue? -- ___ Python tracker <https://bugs.python.org/issue37

[issue28312] Minor change - more direct hint re: multiple machine sizes and LONG_BIT conflicts

2020-02-02 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +17689 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18313 ___ Python tracker <https://bugs.python.org/issu

[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2020-02-02 Thread Michael Felt
Change by Michael Felt : -- versions: +Python 3.8, Python 3.9 -Python 2.7 ___ Python tracker <https://bugs.python.org/issue28276> ___ ___ Python-bugs-list mailin

[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2020-02-02 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +17688 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18312 ___ Python tracker <https://bugs.python.org/issu

[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2020-02-02 Thread Michael Felt
Michael Felt added the comment: This is something from long long ago - time to get it completed. The (remaining) issue is: "c" and "m" may not be shared libraries - so nothing is ever found and the test is "skipped" but reports itself as PASSED. The

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Blinded - got the numbers wrong! So, again: Thanks for PR 18302. I followed your lead and made the additional changes and posted as PR 18303 in the hope this is easier for all. -- ___ Python tracker <ht

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Thanks again for PR 18202. I followed your lead and made the additional changes and posted as PR 18203. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +17680 pull_request: https://github.com/python/cpython/pull/18303 ___ Python tracker <https://bugs.python.org/issue39

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Here is the patch I am working on. I appreciate your example on how to deal with the undefined variables. I had done that incorrectly initially. -- Added file: https://bugs.python.org/file48876/bpo-39020-AIX.patch

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Have looked at your PR. It will not work on AIX because AIX libcurses is missing all four new functions. Once I finished my test on AIX - shall I add my patch as a file here, so you can integrate into yours? I hope that is easier than two PRs

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: removed 3.8, this is new for 3.9. Have established that all four functions added in issue38132 do not exist in stock AIX libcurses.a Was working on my own PR, but shall look at yours first. -- versions: -Python 3.8

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2020-02-01 Thread Michael Felt
Michael Felt added the comment: Adding 3.8 before I post a PR - as I think the initial merge that introduced the regression was before master was considered 3.9. -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue39

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-01-31 Thread Michael Felt
Michael Felt added the comment: p.s., I manually added #18282 to the test, and the results are the same as without - using 64-bit. Will rebuild the 32-bit and try test again. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-01-31 Thread Michael Felt
Michael Felt added the comment: OK. There have been some comments/questions re: PR18282. a) my PR is missing that PR, seems we just missed each other. b) when using my patch I took a suggestion from issue39460 to test again: root@x065:[/home/python/python3-3.9]./python -m test -v

Re: Help on PyQt5 !!

2020-01-30 Thread Michael Torrie
On 1/30/20 4:38 AM, Souvik Dutta wrote: > Hey guys. I might be asking the most childish question. I have a window in > pyqt5 (a file in python). Let's call it win1. > I have another pyqt5 (another file in python). Let's call it win2. Now win2 > is called when add button in win1 is clicked. So far

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-01-30 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +17660 pull_request: https://github.com/python/cpython/pull/18285 ___ Python tracker <https://bugs.python.org/issue39

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-01-30 Thread Michael Felt
Michael Felt added the comment: Seems to be working on 64-bit, starting 32-bit test (with overflow expected). Once finished will post a PR. root@x065:[/data/prj/python/python3-3.9]./python Python 3.9.0a3+ (heads/bpo-39502-dirty:8d49f7ceb4, Jan 30 2020, 14:47:52) [C] on aix Type "

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-01-30 Thread Michael Felt
Michael Felt added the comment: >From memory I recall the 64-bit version worked with values above the threshold >value that broke the 32-bit library. And the additional test was needed because the AIX library (iirc did not return NULL on error) - so had to test range before the call

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-01-30 Thread Michael Felt
Michael Felt added the comment: Probably this broke the 64-bit usage. diff --git a/Python/pytime.c b/Python/pytime.c index 54ddfc952b..6f13e62490 100644 --- a/Python/pytime.c +++ b/Python/pytime.c @@ -1059,7 +1059,7 @@ _PyTime_localtime(time_t t, struct tm *tm) return 0; #else

[issue39502] test_zipfile fails on AIX due to time.localtime

2020-01-30 Thread Michael Felt
Change by Michael Felt : -- nosy: +Michael.Felt ___ Python tracker <https://bugs.python.org/issue39502> ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: PyQt5 QLineEditor help!!!

2020-01-29 Thread Michael Torrie
On 1/29/20 6:11 PM, Souvik Dutta wrote: > Hi guys I just started to learn PyQt5 and was wondering if like kivy we can > delete the text in a textbox after taking the input. That is I want to make > the textbox blank after the text is read. Also can you suggest a way to > connect a cancel button

Re: Help on dictionaries...

2020-01-29 Thread Michael Torrie
On 1/29/20 6:14 PM, Souvik Dutta wrote: > Hey I was thinking how I can save a dictionary in python(obviously) so that > the script is rerun it automatically loads the dictionary. You could use the pickle module for that. See the python.org documentation on pickle. Alternatively you could use a

Re: Python-list Digest, Vol 196, Issue 26

2020-01-27 Thread Michael Torrie
On 1/27/20 12:03 AM, אורי wrote: > Please don't reply to digest. Replying to a digest is just fine. Just make sure to change the subject line in the future so people know what it's referring to. -- https://mail.python.org/mailman/listinfo/python-list

Package Announcement - MicceriRD

2020-01-25 Thread Michael Lance
. The license is free and open-source under the python packaging authority. Michael Lance michael.la...@gmail.com https://pypi.org/project/MicceriRD;>MicceriRD 0.2 - Ted Micceri's (1989) 8 real distributions. (25-Jan-20) -- Python-announce-list mailing list -- python-announce-list@python.org To

[issue39446] Documentation should reflect that all dicts are now ordered

2020-01-24 Thread Michael Shields
New submission from Michael Shields : As of Python 3.7, dicts always preserve insertion order. This is mentioned briefly in the release notes, but it would also be helpful to mention it in the language reference, and in the discussion of collections.OrderedDict. -- assignee: docs

[issue39409] AIX: FAIL: test_specific_values (test.test_cmath.CMathTests)

2020-01-24 Thread Michael Felt
Michael Felt added the comment: I am looking at this, as/when I can. Was hoping for a ancient school option to have the compiler stop with assembly code generation ipv objdump. However, I have not been successful there. Found objdump, and I'll work from that - and also do some of the tests

Re: Clarification on Immutability please

2020-01-21 Thread Michael Torrie
On 1/21/20 6:52 PM, Ethan Furman wrote: > On 01/21/2020 10:55 AM, Michael Torrie wrote: > >> Slicing >> returns a new object whether one is slicing a tuple, list, or a string, >> the latter two are mutable objects. > > Strings are not mutable. Yup I got my ite

Re: Clarification on Immutability please

2020-01-21 Thread Michael Torrie
On 1/21/20 11:38 AM, Chris Angelico wrote: > Are you sure that it does? I can't reproduce this. When you slice the > first two from a tuple, you create a new tuple, and until the > assignment happens, both the new one and the original coexist, which > means they MUST have unique IDs. And

[issue39409] AIX: FAIL: test_specific_values (test.test_cmath.CMathTests)

2020-01-21 Thread Michael Felt
New submission from Michael Felt : Per message: https://bugs.python.org/issue39396#msg360362 opening new issue. Research (as requested) to follow. -- components: Tests messages: 360389 nosy: Michael.Felt, vstinner priority: normal severity: normal status: open title: AIX: FAIL

[issue39396] AIX: self.assertEqualSign(math.nextafter(-0.0, +0.0), +0.0) test fails on AIX

2020-01-20 Thread Michael Felt
Michael Felt added the comment: FYI: On AIX 5.3, after your proposal I get: == FAIL: test_specific_values (test.test_cmath.CMathTests) -- Traceback (most

[issue39396] AIX: self.assertEqualSign(math.nextafter(-0.0, +0.0), +0.0) test fails on AIX

2020-01-20 Thread Michael Felt
Michael Felt added the comment: A hard call to make, imho. Thinking aloud... Currently, for AIX 6.1 and AIX 7.1 your proposal for the code change would be great, but less so for AIX 7.2. However! Since libm (on AIX) is a static library - the behavior depends on the support libm has

[issue39396] AIX: math.nextafter(a, b) breaks AIX bot

2020-01-20 Thread Michael Felt
Michael Felt added the comment: As I said, was investigating. a) is a bug in most AIX system libraries. b) there is a fix, but not one I can install - as my bots and build systems run on AIX 6.1 and AIX 7.1 c) the fix is APAR IV95512 which includes fixes in the following filesets: IV95512

[issue39396] AIX: math.nextafter(a, b) breaks AIX bot

2020-01-20 Thread Michael Felt
New submission from Michael Felt : As issue39288 (that introduces this breakage) is closed, opening a new issue. Back from away - and only starting my investigation - and that will probably be slow. Have not done anything with IEEE754 in over 30 years. -- messages: 360312 nosy

Re: Debian Buster: ModuleNotFoundError: No module named 'mysql'

2020-01-18 Thread Michael Torrie
On 1/18/20 9:03 AM, ^Bart wrote: >> What could I do to fix this issue?! :\ > > I understood I have Python 2.7 and Python 3 but I can't install modules > on Python 3... :\ > > ^Bart pip is probably defaulting to Python 2.7. Try using pip3, or this more explicit syntax: python3 -m pip install

[issue25872] multithreading traceback KeyError when modifying file

2020-01-14 Thread Michael Graczyk
Change by Michael Graczyk : -- pull_requests: +17408 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18007 ___ Python tracker <https://bugs.python.org/issu

[issue39273] ncurses does not include BUTTON5_* constants

2020-01-08 Thread Michael Yoo
New submission from Michael Yoo : Hi, Recently I was working with ncurses, and when handling the mouse scroll events, I noticed that the curses library does not include the BUTTON5_* macros provided by ncurses. On my system, BUTTON5 corresponds to the mouse down event. Is there a reason

Re: Floating point overflow and underflow

2020-01-07 Thread Michael Torrie
On 1/7/20 8:46 PM, Shashank Tiwari wrote: > Yes, I tried this and it worked. I was wondering if I could use the output > of pow (or math.pow). Sure: pow(Decimal('2.2'), Decimal('0.45')) -- https://mail.python.org/mailman/listinfo/python-list

Re: Floating point overflow and underflow

2020-01-07 Thread Michael Torrie
On 1/7/20 8:18 PM, Shashank Tiwari wrote: > Thanks Chris. What if it's pow(2.2,0.45)? Why not do some more experimentation: >>> import decimal >>> a = decimal.Decimal('2.2') >>> b = decimal.Decimal('0.45') >>> a ** b Decimal('1.425903734234490793207619170') Is this what you mean? I'm sure there

[issue39247] dataclass defaults and property don't work together

2020-01-07 Thread Michael Robellard
New submission from Michael Robellard : I ran into a strange issue while trying to use a dataclass together with a property. I have it down to a minumum to reproduce it: import dataclasses @dataclasses.dataclass class FileObject: _uploaded_by: str = dataclasses.field(default=None, init

[issue39232] asyncio crashes when tearing down the proactor event loop

2020-01-07 Thread Michael Hall
Michael Hall added the comment: I don't know if it would be feasible to add this to asyncio, but having a way to mark a resource as needing to be deterministically cleaned up at loop close could probably solve this as well as the underlying reasons why the transports are leaning on __del__

Re: Python, Be Bold! - The Draft

2020-01-06 Thread Michael Torrie
On 1/6/20 6:33 PM, Abdur-Rahmaan Janhangeer wrote: > No, i did not write that, it's not Abdur-Rahmaan Janhangeer wrote rather My mistake. I see now that it was something you forwarded to the list from someone else. Doesn't change my reply, though. Whoever said it, it's not very relevant. Who's

Re:

2020-01-06 Thread Michael Torrie
On 1/6/20 10:06 AM, AAKASH JANA wrote: > Julia is a rapidly progressing language directly attacking python's sweet > spot in a.i , m.l and other computational areas. I love python and want it > to remain undefeated . I think its time we create a compiler for python . > So that python can be

Re: Python, Be Bold! - The Draft

2020-01-06 Thread Michael Torrie
On 1/6/20 10:24 AM, Abdur-Rahmaan Janhangeer wrote: > Maybe but if you know or have heard of Julia the language. You will realise > its going to take over what python gives us. So i think there is urgent > need for upgrades to newer versions of python to make basic tasks on python > way quicker.

[issue39232] asyncio crashes when tearing down the proactor event loop

2020-01-06 Thread Michael Hall
New submission from Michael Hall : When using asyncio.run for an asynchronous application utilizing ssl, on windows using the proactor event loop the application crashes when the loop is closed, completely skipping a finally block in the process. This appears to be due to a __del__ method

[issue25872] multithreading traceback KeyError when modifying file

2020-01-05 Thread Michael Graczyk
Michael Graczyk added the comment: This issue still exists in Python 3. The repro just needs to be changed so that the threads are actually started. - map(lambda t: t.start(), threads) - map(lambda t: t.join(), threads) + [t.start() for t in threads] + [t.join() for t in threads] My fix

Re: Error in python installation - was Re: Python, Be Bold!

2020-01-05 Thread Michael Torrie
On 1/5/20 7:59 AM, Kishor Soni wrote: > After proceeding installation, few minutes later such error appears > "0x80072f7d - unspecified error" > A log file is generated and attached herewith I prefer to keep communication on the list. Where did you download the installer from? Python.org or

Re:

2020-01-04 Thread Michael Torrie
On 1/4/20 3:29 PM, William Johnsson wrote: > Hello! My name is William and im 14 years old and live in sweden. Im > pretty new to programing in python and i need some help with code, > (That’s why i’m here). But i couldn’t really find what i was > searching for on the internet. I’m trying to

Re: Python, Be Bold!

2020-01-03 Thread Michael Torrie
On 2020-01-03 5:44 p.m., Abdur-Rahmaan Janhangeer wrote: > .jar provides more than just compression. It provides app info and has > signing ability This is the first time you've mentioned signing ability in this very long thread. At this point I have no idea what point you are even making

Re: Python, Be Bold!

2020-01-02 Thread Michael Torrie
On 1/2/20 2:11 PM, Abdur-Rahmaan Janhangeer wrote: > But single file are better suited for distribution. Maybe. Most windows applications are distributed with installers. I've made several bundles over the years with Nullsoft's installer builder. That's how commercial companies, including those

Re: Python, Be Bold!

2020-01-02 Thread Michael Torrie
On 1/2/20 1:42 PM, Abdur-Rahmaan Janhangeer wrote: > I am not proposing native executables, but a .jar like executable. The term > executable refers to one click run. But a jar file is not executable on Windows and never has been. You can't go to the cmd.exe window and type "myprogram.jar."

Re: Python, Be Bold!

2020-01-02 Thread Michael Torrie
On 1/2/20 1:33 PM, Chris Angelico wrote: > Using a package manager means you have ONE copy of the Python > interpreter, and all your scripts depend on it. If you update that > interpreter, ALL scripts benefit from the update. This is a solved > problem. Except that it's not actually a solved

Re: Python, Be Bold!

2020-01-02 Thread Michael Torrie
On 1/2/20 2:41 AM, Abdur-Rahmaan Janhangeer wrote: > i wonder who uses windows If this kind of thing is important to a user , what you propose would probably be the responsibility of the entity that is producing a Python distribution, such as Anaconda. Usually in such cases these distributions

[issue39135] time.get_clock_info() documentation still has 'clock' name

2019-12-26 Thread Michael Wayne Goodman
Change by Michael Wayne Goodman : -- keywords: +patch pull_requests: +17154 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17709 ___ Python tracker <https://bugs.python.org/issu

[issue39135] time.get_clock_info() documentation still has 'clock' name

2019-12-26 Thread Michael Wayne Goodman
Michael Wayne Goodman added the comment: Sure, no problem. I've just signed the CLA and forked the code. I'll wait a day for the CLA check to clear then submit. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39135] time.get_clock_info() documentation still has 'clock' name

2019-12-25 Thread Michael Wayne Goodman
New submission from Michael Wayne Goodman : The documentation for Python 3.8 and higher still refer to 'clock' as an accepted 'name' argument for time.get_clock_info() that returns a namespace readable by time.clock(), despite time.clock() being removed since Python 3.8. See the first bullet

[issue20905] Adapt heapq push/pop/replace to allow passing a comparator.

2019-12-22 Thread Michael Rolle
Michael Rolle added the comment: I realize this request is closed, but I hope people will still be reading this comment, and can perhaps either reopen it or submit a new request. I don't know how to submit a new request myself. ... I'd like to see (key=) capability somehow, without

Re: urllib unqoute providing string mismatch between string found using os.walk (Python3)

2019-12-21 Thread Michael Torrie
On 12/21/19 2:46 PM, Ben Hearn wrote: > These 2 paths look identical, one from the drive & the other from an xml url: > a = '/Users/macbookpro/Music/tracks_new/_NS_2018/J.Staaf - ¡Móchate! > _PromoMix_.wav' ^^ > b =

[issue39096] Description of "Format Specification Mini-Language" not accurate for Decimal

2019-12-19 Thread Michael Amrhein
Michael Amrhein added the comment: For a discussion of the different behaviour of float and Decimal see https://bugs.python.org/issue39077. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39077] Numeric formatting inconsistent between int, float and Decimal

2019-12-19 Thread Michael Amrhein
Michael Amrhein added the comment: Created new issue for tracking the deficiencies in the documentation: https://bugs.python.org/issue39096. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracke

[issue39096] Description of "Format Specification Mini-Language" not accurate for Decimal

2019-12-19 Thread Michael Amrhein
New submission from Michael Amrhein : The description of the "Format Specification Mini-Language" states for float and Decimal regarding presentation type 'f': "The default precision is 6." Regarding presentation type None it reads: "Similar to 'g', except that fixed-

[issue39077] Numeric formatting inconsistent between int, float and Decimal

2019-12-18 Thread Michael Amrhein
Michael Amrhein added the comment: Mark, Eric, sometimes the pressure to be backwards compatible is more of a curse than a blessing. But I can live with your decision. And, yes, I will create two separate issues regarding the docs. -- ___ Python

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