[issue39720] Signature.bind TypeErrors could be more helpful

2020-02-21 Thread Frazer McLean
New submission from Frazer McLean : Signature.bind does not tell you if a missing argument is keyword-only for example. I created the following snippet to examine the differences: import inspect def run(f): try: f() except TypeError as exc

[issue30814] Import dotted name as alias breaks with concurrency

2017-06-30 Thread Frazer McLean
Changes by Frazer McLean : -- nosy: +RazerM ___ Python tracker <http://bugs.python.org/issue30814> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25538] Traceback from __exit__ method is misleading

2017-03-29 Thread Frazer McLean
Changes by Frazer McLean : -- nosy: +RazerM ___ Python tracker <http://bugs.python.org/issue25538> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29922] error message when __aexit__ is not async

2017-03-29 Thread Frazer McLean
Changes by Frazer McLean : -- nosy: +RazerM ___ Python tracker <http://bugs.python.org/issue29922> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Frazer McLean
Frazer McLean added the comment: I ran it on AppVeyor to double check, the crash appears from 3.5 onwards as I saw on my computer. https://ci.appveyor.com/project/RazerM/issue29392/build/3 -- ___ Python tracker <http://bugs.python.org/issue29

[issue29392] msvcrt.locking crashes python

2017-01-30 Thread Frazer McLean
New submission from Frazer McLean: On 3.5.2 and 3.5.3, but not 3.4.3 or 2.7.10 (Windows 64-bit), the third line causes Python to crash with exit code 0xC417. import msvcrt fp = open('file.txt', 'w') msvcrt.locking(fp.fileno(), msvcrt.LK_NBLCK, -1) print('End

[issue7434] general pprint rewrite

2016-12-13 Thread Frazer McLean
Changes by Frazer McLean : -- nosy: +RazerM ___ Python tracker <http://bugs.python.org/issue7434> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26423] __len__() returns 32 bit int on windows leading to overflows

2016-02-23 Thread Frazer McLean
Changes by Frazer McLean : -- nosy: +RazerM ___ Python tracker <http://bugs.python.org/issue26423> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25322] contextlib.suppress not tested for nested usage

2015-10-06 Thread Frazer McLean
Frazer McLean added the comment: I may not have been clear—I understand how context managers work with exceptions. I'm just pointing out that the nested context manager isn't called, so those final two lines aren't testing

[issue25322] contextlib.suppress not tested for nested usage

2015-10-06 Thread Frazer McLean
New submission from Frazer McLean: In Lib/test/test_contextlib.py, there is a bug in the nested usage part of the following function: def test_cm_is_reentrant(self): ignore_exceptions = suppress(Exception) with ignore_exceptions: pass with ignore_exceptions