[issue41691] Idle 3.8.5 on Win64 won't save a file if it didn't include a newline when it was opened (ex: opening empty file)

2020-09-02 Thread David Crespo
David Crespo added the comment: Thanks for your answers. I tried to search if the bug was already reported using some text searches but I couldn't find it so I opened a new one. Next time I'll try what you recommend. Regards and thanks for keeping Python in

[issue41717] [AIX] test_io: files was modified by test_io: (@test_6488748_tmpæ) on POWER6 AIX 3.9

2020-09-04 Thread David Edelsohn
David Edelsohn added the comment: Bisection failed after 101 iterations and 0:20:29 -- ___ Python tracker <https://bugs.python.org/issue41717> ___ ___ Python-bug

[issue41717] [AIX] test_io: files was modified by test_io: (@test_6488748_tmpæ) on POWER6 AIX 3.9

2020-09-04 Thread David Edelsohn
David Edelsohn added the comment: It's the same system. It doesn't fail alone. Didn't we both previously see issues with the interaction of tests due to the other of tests, that previous tests left things in the environment that affec

[issue41401] Using non-ascii that require UTF-8 breaks AIX testing

2020-09-05 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker <https://bugs.python.org/issue41401> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12806] argparse: Hybrid help text formatter

2020-09-07 Thread David Steele
Change by David Steele : -- keywords: +patch pull_requests: +21210 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22129 ___ Python tracker <https://bugs.python.org/issu

[issue12806] argparse: Hybrid help text formatter

2020-09-07 Thread David Steele
David Steele added the comment: I've submitted FlexiHelpFormatter as PR22129. This adds the FlexiHelpFormatter class to argparse. It supports wrapping text, while preserving paragraphs. Bullet lists are supported. There are a number of differences, relative to the latest patch in the

[issue41743] Remove Unnecessarily Gendered Language from the Documentation

2020-09-08 Thread David Williams
New submission from David Williams : The Python documentation contains unnecessarily verbose and gendered language which does not enhance clarity, and rather, serves as non-inclusive to the LGTBQ community For example: https://www.python.org/dev/peps/pep-3136/ "Introduction The

[issue41743] Remove Unnecessarily Gendered Language from the Documentation

2020-09-08 Thread David Williams
David Williams added the comment: Thanks Victor, I will submit a change request for both of the documents you specified. https://www.python.org/dev/peps/pep-3136/ https://github.com/python/devguide/issues/605 Steven, it sounds like we agree to the change proposal, which is to remove

[issue41743] Remove Unnecessarily Gendered Language from the Documentation

2020-09-08 Thread David Williams
David Williams added the comment: Thanks also for your input and feedback, Ammar. -- ___ Python tracker <https://bugs.python.org/issue41743> ___ ___ Python-bug

[issue7946] Convoy effect with I/O bound threads and New GIL

2020-10-03 Thread David Beazley
David Beazley added the comment: About nine years ago, I stood in front of a room of Python developers, including many core developers, and gave a talk about the problem described in this issue. It included some live demos and discussion of a possible fix. https://www.youtube.com/watch?v

[issue42025] zoneinfo: fold not taken into account in time difference when tzinfo is equal

2020-10-13 Thread David Grellscheid
New submission from David Grellscheid : I'm comparing two aware timestamps during a clock transition that differ only in their fold= value. When taking the difference of two aware timestamps with the *same* tzinfo, the fold parameter is ignored. A difference between two timestamps

[issue42025] zoneinfo: fold not taken into account in time difference when tzinfo is equal

2020-10-13 Thread David Grellscheid
David Grellscheid added the comment: To make it clear that this issue is not covered by ... "Two such instances that differ only by the value of the fold attribute will not be distinguishable by any means other than an explicit access to the fold value." (PEP 495) I have mo

[issue42025] zoneinfo: wrong time difference across transition when tzinfo is equal

2020-10-13 Thread David Grellscheid
David Grellscheid added the comment: Here's a third example, without fold= involved. The spring transition also does not work when the timezone in the difference is equal: 01:59:00 to 03:01:00 should be 2 minutes All these should be 0:02:00 apart 1:02:00 Oslo_1 - Oslo_0 0:02:00 Ber

[issue42025] zoneinfo: wrong time difference across transition when tzinfo is equal

2020-10-13 Thread David Grellscheid
David Grellscheid added the comment: OK, having read https://blog.ganssle.io/articles/2018/02/aware-datetime-arithmetic.html, this bizarreness is actually intended behaviour. It goes completely against my intuitive understanding of how this should come out. No additions are involved, just

[issue42047] DragonFlyBSD thread native id support missing

2020-10-15 Thread David CARLIER
Change by David CARLIER : -- components: Extension Modules nosy: devnexen priority: normal severity: normal status: open title: DragonFlyBSD thread native id support missing type: enhancement versions: Python 3.10 ___ Python tracker <ht

[issue42047] DragonFlyBSD thread native id support missing

2020-10-15 Thread David CARLIER
Change by David CARLIER : -- keywords: +patch pull_requests: +21681 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22714 ___ Python tracker <https://bugs.python.org/issu

[issue42030] Drop support for dynload_aix

2020-10-15 Thread David Edelsohn
David Edelsohn added the comment: If Python has been defaulting to dlopen() on AIX systems that support it, there is no reason to maintain the historical, AIX-specific load() support in dynload_aix.c I believe that dlopen() was introduced on AIX in release 4.3. The official end of support

[issue35753] Importing call from unittest.mock directly causes ValueError

2020-10-20 Thread David Antonini
David Antonini added the comment: Somehow I missed the follow up here until now. I don't remember the original code, but I'm fairly confident that mocked_print is the patched print function eg with patch('dionysus_app.class_functions.print') as mocked_print: Probably s

[issue42232] mmap module add Darwin specific madvise options

2020-11-01 Thread David CARLIER
Change by David CARLIER : -- components: macOS nosy: devnexen, ned.deily, ronaldoussoren priority: normal pull_requests: 21996 severity: normal status: open title: mmap module add Darwin specific madvise options type: enhancement ___ Python tracker

[issue42247] unittest hides traceback frames in chained exceptions

2020-11-02 Thread David Mandelberg
New submission from David Mandelberg : The traceback in the output of the attached test (see below) doesn't include line 5, which is where the original exception is raised. I think this is because https://github.com/python/cpython/blob/b9ee4af4c643a323779fd7076e80b29d611f2709/Lib/uni

[issue42179] Clarify chaining exceptions in tutorial/errors.rst

2020-11-05 Thread David Martinez
Change by David Martinez : Added file: https://bugs.python.org/file49575/Cellular-Z 20200909 14:25:47 SLOT1.CSV ___ Python tracker <https://bugs.python.org/issue42

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread David Edelsohn
David Edelsohn added the comment: nextafter is a known problem on AIX. I believe that it is being addressed in newer releases of AIX. Michael and I are helping the IBM AIX Open Source team to increase their attention on Python, but things only move so fast

[issue39168] Generic type subscription is a huge toll on Python performance

2020-11-15 Thread David Lord
David Lord added the comment: Is this performance issue supposed to be fixed in 3.9? I'm still observing severe slowdown by inheriting from `Generic[T]`. I'm currently adding typing to Werkzeug, where we define many custom data structures such as `MultiDict`. It would be ideal

[issue39168] Generic type subscription is a huge toll on Python performance

2020-11-15 Thread David Lord
David Lord added the comment: I'm using Arch Linux. After your reply I tried again and now I'm seeing the same result as you, negligible difference from inheriting `Generic` on Python 3.9. I can't explain it, I ran the timings repeatedly before I posted here, but I guess

[issue42087] Remove pre-AIX 6.1 dead code paths

2020-11-16 Thread David Edelsohn
David Edelsohn added the comment: I think that it is reasonable to drop support for AIX 5.3. -- ___ Python tracker <https://bugs.python.org/issue42087> ___ ___

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-16 Thread David Edelsohn
David Edelsohn added the comment: I investigated another problem with nextafter() in 2015 and opened an internal IBM AIX PMR. At the time it was not using decimal float code. The earlier problem was the handling of -0.0. At the time, the code was hand-written assembly language that did

[issue42375] subprocess DragonFlyBSD build update

2020-11-16 Thread David CARLIER
Change by David CARLIER : -- components: Extension Modules nosy: devnexen priority: normal pull_requests: 22211 severity: normal status: open title: subprocess DragonFlyBSD build update type: enhancement versions: Python 3.10 ___ Python tracker

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-16 Thread David Edelsohn
David Edelsohn added the comment: I believe that Michael was trying to probe under what circumstances the failure appears. But, not GCC 4.7 is not relevant. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42415] python3.lib in Python3.9.0 Windows distribution does not contain PyObject_CallNoArgs symbol

2020-11-19 Thread David Hewitt
New submission from David Hewitt : I'm unsure if this is a packaging error or a misunderstanding by me. I'm trying to link a binary on windows with Py_LIMITED_API set. According to https://www.python.org/dev/peps/pep-0384/#linkage I _think_ I'm supposed to be linking agai

[issue42434] Library json, file json/encoder.py: Function floatstr should be a class-level function.

2020-11-22 Thread David Salač
New submission from David Salač : The logic as it is implemented now does not allow to user to override floatstr function. That makes things enormously inconvenient for people who need any different of behaviour (for example return string values defining Infinity, NaN or -Infinity). If it was

[issue13824] argparse.FileType opens a file without excepting resposibility for closing it

2012-01-19 Thread David Layton
New submission from David Layton : argparse.FileType.__call__ opens the specified file and returns it. This is well documented as an anit-idiom in http://docs.python.org/howto/doanddont.html#exceptions. "...a serious problem — due to implementation details in CPython, the file would n

[issue13507] Modify OS X installer builds to package liblzma for the new lzma module

2012-01-29 Thread David Bolen
David Bolen added the comment: I recently built the xz library on my OSX Tiger buildbot (that also does the daily DMGs via the build script), and Nadeem mentioned this ticket. As an FYI, I wasn't able to get the xz library (5.0.3) to configure/build as a universal build (i386/ppc)

[issue13824] argparse.FileType opens a file and never closes it

2012-02-03 Thread David Layton
David Layton added the comment: Eric, checked that the file exists But then you’d run into race conditions. The only sure was to say if a file can be opened is to open it. I think you misunderstand me. I am NOT suggesting that you open and close the file. I am saying that you should not

[issue13979] Automatic *libc.so loading behaviour

2012-02-09 Thread David Goulet
New submission from David Goulet : I'm working with the LTTng (Linux Tracing) team and we came across a problem with our user-space tracer and Python default behaviour. We provide a libc wrapper that instrument free() and malloc() and is usable with a simple LD_PRELOAD. This lib *was*

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-03-20 Thread David Andrzejewski
Changes by David Andrzejewski : -- nosy: +dandrzejewski ___ Python tracker <http://bugs.python.org/issue9720> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2012-03-23 Thread David Manowitz
David Manowitz added the comment: I don't see why this should be considered acceptable behavior. Why don't threads have their own ThreadExit exception, rather than overloading the use, and therefore, the meaning, of the SystemExit exception? As indicated by their names, sys.ex

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2012-03-26 Thread David Manowitz
David Manowitz added the comment: I have a couple of issues with that argument: 1.) Until fairly recently, the fact that sys.exit() when called from a non-primary thread only causes the thread to die, was not clearly documented (and still isn't in the python2.6 docs). Admittedly, thread

[issue12537] mailbox's _become_message is very fragile

2012-04-12 Thread David Lam
David Lam added the comment: Wow, cool! Thanks for the update. -- ___ Python tracker <http://bugs.python.org/issue12537> ___ ___ Python-bugs-list mailin

[issue35894] Apparent regression in 3.8-dev: 'TypeError: required field "type_ignores" missing from Module'

2019-05-19 Thread David Lord
Change by David Lord : -- nosy: +davidism ___ Python tracker <https://bugs.python.org/issue35894> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-21 Thread David Bolen
David Bolen added the comment: Since this patch was introduced to the 3.x branch my Windows 7 and 10 buildbots have been failing in test_urlopener_retrieve_file. See https://buildbot.python.org/all/#/builders/3/builds/2661 for the first such failure on the Win10 worker. The problem

[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-21 Thread David Bolen
David Bolen added the comment: Yes, PR 13476 tested locally on the Win10 builder resolves the error. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-21 Thread David Bolen
David Bolen added the comment: Oh, and just for historical purposes, it looks like the root cause was that the nturl2path.pathnametourl forces an uppercase drive letter. So that's where the inconsistency in the test got introduced. -- ___ P

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread David Bolen
David Bolen added the comment: I've been investigating issues with test failures on my Windows buildbots seemingly not showing up in the master's web interface (but just showing warnings), and it appears likely due to this change. For example, test_urllib (a test problem from i

[issue36511] Add Windows ARM32 buildbot

2019-05-23 Thread David Bolen
David Bolen added the comment: Yeah, I think you're right. It looks like without an explicit code, it won't propagate the result as the exit code of cmd itself for those cases where cmd does exit (which would include the

[issue33164] Blake 2 module update

2019-05-28 Thread David Carlier
Change by David Carlier : -- pull_requests: +13533 pull_request: https://github.com/python/cpython/pull/13633 ___ Python tracker <https://bugs.python.org/issue33

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-29 Thread David Carlier
Change by David Carlier : -- pull_requests: +13548 pull_request: https://github.com/python/cpython/pull/13654 ___ Python tracker <https://bugs.python.org/issue36

[issue37087] Adding native id support for openbsd

2019-05-29 Thread David Carlier
New submission from David Carlier : Following up on bpo-36084 -- messages: 343896 nosy: David Carlier priority: normal pull_requests: 13549 severity: normal status: open title: Adding native id support for openbsd versions: Python 3.8 ___ Python

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-01 Thread David Radcliffe
David Radcliffe added the comment: I think that binomial(n, k) should return 0 when k > n or k < 0. This is a practical consideration. I'm concerned about evaluating sums involving binomial coefficients. Mathematicians are often rather loose about specifying the upper and lowe

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-02 Thread David Radcliffe
David Radcliffe added the comment: I understand that pure mathematics is not the primary use case. But I would expect that math.comb() would be used to implement mathematical formulas. As a simple example, the number of edges in a complete graph on n vertices is binomial(n, 2), and this should

[issue37160] thread native id netbsd support

2019-06-05 Thread David Carlier
Change by David Carlier : -- components: Interpreter Core nosy: David Carlier priority: normal pull_requests: 13714 severity: normal status: open title: thread native id netbsd support versions: Python 3.9 ___ Python tracker <ht

[issue36853] inconsistencies in docs builds (Sphinx 2)

2019-06-11 Thread David Jones
David Jones added the comment: I believe the issue is only triggered if you actually have some suspicious markup in your documentation (which is why your plain build on Sphinx 2 appears to work). Remove some lines from Doc/tools/susp-ignored.csv to trigger it. -- nosy: +drj

[issue37258] Logging cache not cleared properly when setting level

2019-06-12 Thread David Wang
New submission from David Wang : If you call setLevel() on a subclass of logging.Logger, it does not reset the cache for that logger. This mean that if you make some logging calls, then call setLevel(), the logger still acts like it still has its old level. See the attached python file for a

[issue37291] AST - code cleanup

2019-06-15 Thread David Carlier
New submission from David Carlier : Removing little dead code part. -- messages: 345674 nosy: David Carlier priority: normal pull_requests: 13959 severity: normal status: open title: AST - code cleanup versions: Python 3.9 ___ Python tracker <ht

[issue37471] mmap module, adding new constant

2019-07-01 Thread David CARLIER
Change by David CARLIER : -- components: Extension Modules, FreeBSD nosy: devnexen, koobs priority: normal pull_requests: 14329 severity: normal status: open title: mmap module, adding new constant versions: Python 3.9 ___ Python tracker <ht

[issue37511] mmap module add OpenBSD MADV_CONCEAL flag

2019-07-05 Thread David Carlier
Change by David Carlier : -- nosy: David Carlier priority: normal pull_requests: 14424 severity: normal status: open title: mmap module add OpenBSD MADV_CONCEAL flag versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue37

[issue37471] mmap module: add MAP_ALIGNED_SUPER FreeBSD and MAP_CONCEAL OpenBSD constants

2019-07-08 Thread David CARLIER
Change by David CARLIER : -- title: mmap module: add MAP_ALIGNED_SUPER FreeBSD constant -> mmap module: add MAP_ALIGNED_SUPER FreeBSD and MAP_CONCEAL OpenBSD constants ___ Python tracker <https://bugs.python.org/issu

[issue36279] os.wait3() leaks some uninitialized stack when no processes exist

2019-07-26 Thread David Wilson
David Wilson added the comment: The original diff is attached here (per the old process) so others can find it, and the PR+fork are closed, as carrying a fork in my GitHub for 4 months has non-zero cost. I'm presently more interested in having a clean GH account than carrying aroun

[issue37690] Simplify linking of shared libraries on the AIX OS

2019-07-26 Thread David Edelsohn
David Edelsohn added the comment: Absolutely, positively no. This is horrible and completely wrong. Applications on AIX should not be compiled to allow dynamic linking to make them operate more like SVR4/Linux. Python does not require dynamic linking. This simply is masking a symptom in a

[issue37690] Simplify linking of shared libraries on the AIX OS

2019-07-26 Thread David Edelsohn
David Edelsohn added the comment: Runtime linking allows a dynamically loaded library to interpose symbols. The classic example is allowing a program or dynamic library to overload C++ operator new. A library or program overrides the symbol by name. Python does not require this. Python does

[issue37696] FileIO.read() on a closed TTY throws an exception prematurely

2019-07-28 Thread David Wilson
New submission from David Wilson : Given: $ cat tty-failure.py import pty import os master, slave = pty.openpty() master = os.fdopen(master, 'r+b', 0) slave = os.fdopen(slave, 'r+b', 0) slave.write(b'foo') slave.close() pri

[issue37696] FileIO.read() on a closed TTY throws an exception prematurely

2019-07-28 Thread David Wilson
David Wilson added the comment: Happy to send a patch for this if we can agree on the semantic being incorrect, and more importantly, someone is happy to review the patch once it reaches GitHub ;) -- ___ Python tracker <https://bugs.python.

[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread David Heiberg
David Heiberg added the comment: I'm happy to take a look at this, I found one example here: https://docs.python.org/3/library/winreg.html#winreg.DisableReflectionKey How would I go about submitting a patch for all of the docs across the versions? Would I apply the patch to the rel

[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread David Heiberg
David Heiberg added the comment: Super, thanks for the help, I'll submit a PR as soon as it is ready -- ___ Python tracker <https://bugs.python.org/is

[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-07-31 Thread David Heiberg
Change by David Heiberg : -- keywords: +patch pull_requests: +14811 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15062 ___ Python tracker <https://bugs.python.org/issu

[issue37736] asyncio.wait_for is still confusing

2019-08-01 Thread David Lewis
New submission from David Lewis : This issue is a follow up to previous discussions about confusing results with asyncio.wait_for. In the current implementation, it seems unintuitive that a coroutine with a timeout argument may easily wait forever. Perhaps wait_for could use an

[issue37737] mmap module track anonymous page on macOS

2019-08-01 Thread David CARLIER
Change by David CARLIER : -- components: macOS nosy: devnexen, ned.deily, ronaldoussoren priority: normal pull_requests: 14815 severity: normal status: open title: mmap module track anonymous page on macOS versions: Python 3.9 ___ Python tracker

[issue37730] NotImplemented is used instead of NotImplementedError in docs

2019-08-05 Thread David Heiberg
Change by David Heiberg : -- pull_requests: +14872 pull_request: https://github.com/python/cpython/pull/15133 ___ Python tracker <https://bugs.python.org/issue37

[issue37696] FileIO.read() on a closed TTY throws an exception prematurely

2019-08-08 Thread David Wilson
David Wilson added the comment: Interesting, this immediately turns into a little rabbit hole :) The reason read() is failing in this case, is because argument clinic defaults the size parameter to -1, which redirects the call to readall(). So this issue is actually about readall

[issue37696] FileIO.read() on a closed TTY throws an exception prematurely

2019-08-08 Thread David Wilson
David Wilson added the comment: If we treat different errnos specially, the list of 'okay to silently fail' errors seems quite succinct. In another project I treat EIO, EPIPE and ECONNRESET as EOF, and raise all others -- https://github.com/dw/mi

[issue37696] FileIO.read() on a closed TTY throws an exception prematurely

2019-08-08 Thread David Wilson
David Wilson added the comment: A real example of where returning the partial buffer is dangerous would be EBADF. - Repeated reading succeeds, building up a partial buffer. Another thread runs, and buggy code causes an unrelated fd blonging to the file object to be closed. - Original

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-21 Thread David Haney
David Haney added the comment: I submitted a pull request for a possible fix for this issue but haven't received any feedback yet. Is there any additional information needed from me? -- pull_requests: +2361 ___ Python tracker

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-21 Thread David Haney
Changes by David Haney : -- pull_requests: -2361 ___ Python tracker <http://bugs.python.org/issue30183> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-29 Thread David Bolen
David Bolen added the comment: Antoine, yes. Send me your public key (db3l.net at gmail) and I'll set it up. -- ___ Python tracker <http://bugs.python.org/is

[issue30838] re \w does not match some valid Unicode characters

2017-07-03 Thread David Lord
New submission from David Lord: This came up while writing a regex to match characters that are valid in Python identifiers for Jinja. https://github.com/pallets/jinja/pull/731 `\w` matches all valid identifier characters except for 4 special cases: import unicodedata import re import sys

[issue30838] re \w does not match some valid Unicode characters

2017-07-03 Thread David Lord
David Lord added the comment: Adding `or ('a' + s).isidentifer()`, to catch valid id_continue characters, to the test in the previous script reveals many more characters that seem like valid word characters but aren't matched by `\w`. -- ___

[issue30838] re \w does not match some valid Unicode characters

2017-07-05 Thread David Lord
David Lord added the comment: After thinking about it more, I guess I misunderstood what \w was doing compared to isidentifier. Since Python just relies on the Unicode database, there's not much to be done anyway. Closing this. For anyone interested, we ended up with a hybrid approac

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-07-07 Thread David Haney
David Haney added the comment: I've attached the test output summary from a recent build. -- Added file: http://bugs.python.org/file46995/tests.out ___ Python tracker <http://bugs.python.org/is

[issue30938] pdb lacks debugger command to list and show all user-defined variables

2017-07-15 Thread David Rieger
New submission from David Rieger: IPython's "who" and "whos" command provide a way to list all user-defined variables and inspect them, respectively. At the moment, a way to work around this would be by either using e.g. "pp locals()" to list all local

[issue23916] module importing performance regression

2017-07-16 Thread David Roundy
David Roundy added the comment: Here is a little script to demonstrate the regression (which yes, is still bothering me). -- type: -> performance versions: +Python 3.5 Added file: http://bugs.python.org/file47016/test.py ___ Python tracker &l

[issue27715] call-matcher breaks if a method is mocked with spec=True

2017-07-27 Thread David Hoyes
David Hoyes added the comment: I came across a different failing test case, which looks a lot like the same issue: ``` from unittest import mock class Foo(object): def __call__(self, x): return x m = mock.create_autospec(Foo, instance=True) m(7) m.assert_called_once_with(7

[issue31184] Fix data descriptor detection in inspect.getattr_static

2017-08-11 Thread David Halter
New submission from David Halter: inspect.getattr_static is currently not identifying data descriptors the right way. Data descriptors are defined by having a __get__ attribute and at least one of the __set__ and __delete__ attributes. Implementation detail: Both __delete__ and __get__ set

[issue31193] re.IGNORECASE strips combining character from lower case of LATIN CAPITAL LETTER I WITH DOT ABOVE

2017-08-13 Thread David MacIver
New submission from David MacIver: chr(304).lower() is a two character string - a lower case i followed by a combining chr(775) ('COMBINING DOT ABOVE'). The re module seems not to understand the combining character and a regex compiled with IGNORECASE will erroneously match a si

[issue31193] re.IGNORECASE strips combining character from lower case of LATIN CAPITAL LETTER I WITH DOT ABOVE

2017-08-14 Thread David MacIver
David MacIver added the comment: Sure, but 'i' is a single code point. The bug is that the regex matches 'i', not that it doesn't match the actual two codepoint lower case of the string. -- ___ Python tracker <http:

[issue31307] ConfigParser.read silently fails if filenames argument is a byte string

2017-09-03 Thread David Ellis
David Ellis added the comment: This is related to the issue I'd brought up previously here so closing this would also close that issue: http://bugs.python.org/issue29627 I did originally attempt to add support for bytes in PR where I added support for Path-like objects: https://githu

[issue31385] `import as` does not work when module has same same as parent module

2017-09-07 Thread David Hagen
New submission from David Hagen: Consider the following Python project: bugtest/ __init__.py (Contents: from .foo import *) foo/ __init__.py (Contents: from .foo import *) foo.py (Contents: ) Then in a Python session, the following line executes without error (as expected

[issue35369] List sorting makes duplicate comparisons

2018-11-30 Thread David Wyde
New submission from David Wyde : Python's Timsort sometimes makes the same comparison twice. This leads to extra compares, which can hurt performance. Python sorts several length-3 permutations in 4 steps, and the problem accumulates with bigger data. There are ~9,800 duplicate less

[issue35369] List sorting makes duplicate comparisons

2018-11-30 Thread David Wyde
Change by David Wyde : Added file: https://bugs.python.org/file47963/sort.py ___ Python tracker <https://bugs.python.org/issue35369> ___ ___ Python-bugs-list mailin

[issue35369] List sorting makes duplicate comparisons

2018-12-01 Thread David Wyde
David Wyde added the comment: Thanks for the speedy and helpful response. Keeping complexity down is fair. The wasted if-checks on subsequent iterations are certainly a negative trade-off. I saw that binarysort() is only called in one place, but I understand wanting to keep it generic. I

[issue35369] List sorting makes duplicate comparisons

2018-12-01 Thread David Wyde
David Wyde added the comment: Okay. Thanks! -- ___ Python tracker <https://bugs.python.org/issue35369> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35448] ConfigParser .read() - handling of nonexistent files

2018-12-10 Thread David Heiberg
Change by David Heiberg : -- nosy: +dheiberg ___ Python tracker <https://bugs.python.org/issue35448> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35433] Correctly detect installed SDK versions

2018-12-10 Thread David Bolen
David Bolen added the comment: I'm not that familiar (ok, at all) with the build process configuration, but in looking at the changes to python.props, it appears to now enforce the minimum in the build process regardless of whether it is found, whereas before the build tool was allow

[issue35433] Correctly detect installed SDK versions

2018-12-10 Thread David Bolen
David Bolen added the comment: Well, correct me if I'm wrong, but installing 15063 would then match one of the checks, and become the selected SDK, so be expected to work fine, right? I think (not sure) that the issue with my Win8/10 workers is they only have the later 16299. So in

[issue35433] Correctly detect installed SDK versions

2018-12-10 Thread David Bolen
David Bolen added the comment: Oh, since my reading comprehension must be low today, it appears like Jeremy actually had a closer situation previously as I'm in now, with a later (not older) version of the SDK that wasn't in the list. Which is interesting, since he got an error

[issue35433] Correctly detect installed SDK versions

2018-12-10 Thread David Bolen
David Bolen added the comment: (sorry for the rapid updates) I'm also fairly sure that none of my workers have update 3 for VS2015. They do however all have VS2017 - but I think VS2015 still gets picked for 3.6 if both are present, right? So that's another variable, in that

[issue35433] Correctly detect installed SDK versions

2018-12-10 Thread David Bolen
David Bolen added the comment: > So before the change, the 16299 SDK wasn't being detected either, but perhaps > the 10240 one was? So I'm just confused It does seems likely that 10240 of the UCRT was being used (based on the attached msbuild logs). Howevr, the UCR

[issue35433] Correctly detect installed SDK versions

2018-12-10 Thread David Bolen
David Bolen added the comment: (and the working log) -- Added file: https://bugs.python.org/file47986/msbuild-win10-good.log ___ Python tracker <https://bugs.python.org/issue35

[issue35433] Correctly detect installed SDK versions

2018-12-10 Thread David Bolen
David Bolen added the comment: Hmm, VS2015 started as a full installation (with UI), probably right from its initial release. The build tools only installation (v141) is for VS2017. Best I can tell I'm at update 1 - my update version in the registry is 14.0.24720 (plus I have

[issue35433] Correctly detect installed SDK versions

2018-12-10 Thread David Bolen
David Bolen added the comment: Oh, it's not the installation itself, I'm just wondering if allowing a newer version is ok too? Of course, it doesn't preclude expanding the build script in the future, so I've installed 15063 to both Win8/10 workers. I don't current

[issue35433] Correctly detect installed SDK versions

2018-12-10 Thread David Bolen
David Bolen added the comment: Ah, got it (and see the pipelines comment by Steve). Jeremy, I suspect you might actually be able to restart the most recent 3.6 builds on my builders since you were the committer. It changed in Sep to only allow python-core users and the "owner" of

[issue35486] subprocess module breaks backwards compatibility with older import hooks

2018-12-13 Thread David Wilson
New submission from David Wilson : The subprocess package since 880d42a3b24 / September 2018 has begun using this idiom: try: import _foo except ModuleNotFoundError: bar However, ModuleNotFoundError may not be thrown by older import hook implementations, since that subclass was only

<    6   7   8   9   10   11   12   13   14   15   >