[issue43371] Mock.assert_has_calls works strange

2021-03-02 Thread Dmitriy Mironiyk
New submission from Dmitriy Mironiyk : I think that behavior of Mock.assert_has_calls is misleading. - When I call Mock.assert_has_calls with any_order=False it checks that expected calls are the same calls as performed on mock and raise an error if mock has some calls other than expected

[issue37512] Error in the documentation about string concatenation

2019-07-06 Thread Dmitriy
Dmitriy added the comment: Yes, optimization is really not working in case of prepending. In case of multiple references I couldn't get quadratic time grow. Concerning the Windows, yes, the optimization may be not always efficient: >>> timeit('a+="a"', setup='

[issue37512] Error in the documentation about string concatenation

2019-07-05 Thread Dmitriy
New submission from Dmitriy : There is an error in documentation about string concatenation: https://docs.python.org/3/library/stdtypes.html --- Common Sequence Operations [...] 6. Concatenating immutable sequences always results in a new object. This means that building up a sequence

[issue12178] csv writer doesn't escape escapechar

2017-12-27 Thread Dmitriy Shashkin
Change by Dmitriy Shashkin <dmitriy.shash...@gmail.com>: -- nosy: +Dmitriy Shashkin ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue10496] Python startup should not require passwd entry

2017-09-15 Thread Dmitriy
Changes by Dmitriy <dmitriy.loktio...@gmail.com>: -- pull_requests: +3602 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue10496> ___

[issue31469] Running inside docker container from non-root user

2017-09-14 Thread Dmitriy
New submission from Dmitriy: When i try to run youtube-dl inside docker container from non root user i recieve this error: failed to import the site module traceback (most recent call last): file "/usr/lib/python3.6/site.py", line 544, in main() file "/usr/lib/python3.6/sit

[issue12482] input() not working correctly on Mac OS X

2011-07-05 Thread Dmitriy Gorbachev
Dmitriy Gorbachev dgorbac...@yahoo.com added the comment: Hello Ned Thank you very much for your time and for your advice where to post questions like mine. I apologise for my mistake: instead of input() there was raw_input() function in the book, which works as expected on all platforms

[issue12482] input() not working correctly on Mac OS X

2011-07-05 Thread Dmitriy Gorbachev
Dmitriy Gorbachev dgorbac...@yahoo.com added the comment: Hi Amaury, Thank you very much for your email. Actually what happedded is that I mistakenly used input() function in place of raw_input() as it is in the book. raw_input correctly inputs bob and 'bob', while input() inputs correctly

[issue12482] input() not working correctly on Mac OS X

2011-07-03 Thread Dmitriy Gorbachev
New submission from Dmitriy Gorbachev dgorbac...@yahoo.com: I am learning Python by running exercises from Programming Python, Mark Lutz on both Windows and Mac. While exercises run flawlessly on Windows, sometimes they do not run on Mac. In particular, in Chapter 1, Step 2: Storing Records

[issue6380] Deadlock during the import in the fork()'ed child process if fork() happened while import_lock was held

2009-06-30 Thread Dmitriy Khramtsov
Dmitriy Khramtsov hig...@gmail.com added the comment: Does the problem also exist in Python 2.6? We will definitely not fix it anymore for 2.4 and 2.5. Yep. Exactly same problem in Python 2.6. This problem does probably exist in all newer versions as well but I didn't explicitly test

[issue6380] Deadlock during the import in the fork()'ed child process if fork() happened while import_lock was held

2009-06-29 Thread Dmitriy Khramtsov
New submission from Dmitriy Khramtsov hig...@gmail.com: Greetings, The 2.4 and 2.5 versions of python contains a deadlock caused by possibility to hold import_lock while doing fork() and not resetting it in the child (on the linux platform). The prove of concept code is: --BEGIN