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
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='
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
Change by Dmitriy Shashkin <dmitriy.shash...@gmail.com>:
--
nosy: +Dmitriy Shashkin
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Changes by Dmitriy <dmitriy.loktio...@gmail.com>:
--
pull_requests: +3602
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue10496>
___
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
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
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
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
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
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
11 matches
Mail list logo