Elena Oat added the comment:
Here's the example I ran, that indeed fails in Python 3.8 and Python 3.9 (with
different errors) and works in Python 3.7.
from unittest.mock import MagicMock
class CustomMock(MagicMock):
def __init__(self):
super().__init__(__something__='
Elena Oat added the comment:
I am looking at reproducing this and creating a short example of where this
fails. Will look further into more details of why this doesn't work.
--
nosy: +Elena.Oat
___
Python tracker
<https://bugs.py
Change by Elena Oat :
--
pull_requests: +17808
pull_request: https://github.com/python/cpython/pull/18434
___
Python tracker
<https://bugs.python.org/issue39
Change by Elena Oat :
--
keywords: +patch
pull_requests: +17807
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18433
___
Python tracker
<https://bugs.python.org/issu
Elena Oat added the comment:
There was no update on this since 02/04, so I will work on this as I am at the
PyCascades sprints right now.
--
nosy: +Elena.Oat
___
Python tracker
<https://bugs.python.org/issue39
Change by Elena Oat :
--
keywords: +patch
pull_requests: +16549
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17034
___
Python tracker
<https://bugs.python.org/issu
New submission from Elena Oat :
When using patch.object with first argument as a string, e.g.
´´patch.object('SomeClass', 'somemethod')´´ this raises ´´AttributeError:
Something does not have the attribute 'do_something'´´.
This should instead warn user that
Elena Oat added the comment:
I've modified a little your example and it's clearly that the readline moves
the cursor.
```
from __future__ import print_function
import codecs
import io
def run(stream):
offset = stream.tell()
try:
stream.seek(0)
Elena Oat added the comment:
For you specific example I get also a weird result. Tried this in Python 2.7.10
and Python 3.6.0.
--
___
Python tracker
<https://bugs.python.org/issue33
Elena Oat added the comment:
I've tried this with Python 3.6.0 on OSX 10.13.4
--
___
Python tracker
<https://bugs.python.org/issue33361>
___
___
Pytho
Elena Oat added the comment:
I cannot replicate this when the stream is:
In: stream_ex = io.BytesIO(u"abc\ndef\nghi\n".encode("utf-8"))
In: f = codecs.EncodedFile(stream_ex, 'utf-8')
In: run(f)
Out: Got header: b'abc\n'
Skipping the header: b
Change by Elena Oat :
--
keywords: +patch
pull_requests: +6305
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue22069>
___
_
Elena Oat added the comment:
Note that the correct link to the test case is:
https://github.com/python/cpython/blob/master/Lib/test/test_io.py#L2565
--
nosy: +Elena.Oat
___
Python tracker
<https://bugs.python.org/issue22
Change by Elena Oat :
--
keywords: +patch
pull_requests: +6289
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue24356>
___
_
Change by Elena Oat :
--
keywords: +patch
pull_requests: +6287
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue33275>
___
_
Elena Oat added the comment:
I've created a pull request. Could someone review it please?
--
___
Python tracker
<http://bugs.python.org/issue31330>
___
___
Changes by Elena Oat :
--
pull_requests: +3316
___
Python tracker
<http://bugs.python.org/issue31330>
___
___
Python-bugs-list mailing list
Unsubscribe:
Elena Oat added the comment:
It maintains *whitespace*, not the new lines.
I've tested this using whitespaces and I think it keeps them according to the
original description. See the image attached.
--
nosy: +Elena.Oat
Added file: http://bugs.python.org/file47117/Screen Shot 20
Changes by Elena Oat :
--
pull_requests: -3258
___
Python tracker
<http://bugs.python.org/issue31065>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Elena Oat :
--
pull_requests: +3258
___
Python tracker
<http://bugs.python.org/issue31065>
___
___
Python-bugs-list mailing list
Unsubscribe:
Elena Oat added the comment:
Added the link to the regular expression objects.
--
keywords: +patch
nosy: +Elena.Oat
Added file: http://bugs.python.org/file47103/issue26656.diff
___
Python tracker
<http://bugs.python.org/issue26
Elena Oat added the comment:
I've added a sentence saying about the explicit return value.
--
keywords: +patch
nosy: +Elena.Oat
Added file: http://bugs.python.org/file47102/issue31065.diff
___
Python tracker
<http://bugs.python.org/is
Elena Oat added the comment:
I tested the patch and it seems fine. Also ran tests for uuid.py and it they
passed.
--
nosy: +Elena.Oat
___
Python tracker
<http://bugs.python.org/issue19
Elena Oat added the comment:
I've actually tried to test the recursion limit on my Mac OS X. It seems that I
cannot create any subdirectories after around 500 subdir depth. I guess it's
related to the allowed path length (<1024 chars?).
--
nos
Changes by Elena Oat :
Added file: http://bugs.python.org/file42147/issue18859.diff
___
Python tracker
<http://bugs.python.org/issue18859>
___
___
Python-bugs-list mailin
Elena Oat added the comment:
I've combined the patch submitted by Sowmya and also added there clarifications
from points 1, 2 mentioned by Martin Mokrejs.
--
nosy: +Elena.Oat
___
Python tracker
<http://bugs.python.org/is
Elena Oat added the comment:
I submitted a patch for documentation changes related to strftime "%Y"
directive inconsistencies. I am not sure that specifying the OS is correct,
because I haven't tested the inconsistencies on all Linux PCs, Windows versions
or OS X. I still
Elena Oat added the comment:
The issue is not related only to the caret. In fact, as seen in the below
output, the issue occurs anytime there's a newline character in the beginning
or middle of the string to be compared.
In short, if a newline is present in the string and it
Elena Oat added the comment:
Here's the patch regenerated for the latest devguide.
--
nosy: +Elena.Oat
Added file: http://bugs.python.org/file41568/issue19316.diff
___
Python tracker
<http://bugs.python.org/is
Elena Oat added the comment:
Corrected the regular expression and documented why [^.]* is used.
--
keywords: +patch
nosy: +Elena.Oat
Added file: http://bugs.python.org/file41566/issue25517.diff
___
Python tracker
<http://bugs.python.org/issue25
Elena Oat added the comment:
I checked and 2.6 python has maxlen as a parameter, but not a maxlen attribute.
The maxlen attribute was added in 2.7.
--
nosy: +Elena.Oat
___
Python tracker
<http://bugs.python.org/issue25
Elena Oat added the comment:
Wrapped the lines to 80 chars.
--
nosy: +Elena.Oat
Added file: http://bugs.python.org/file41556/issue26001.diff
___
Python tracker
<http://bugs.python.org/issue26
Elena Oat added the comment:
Updated the documentation. Now it says that the hash is derived from id, as it
says already in Python 3 docs.
--
nosy: +Elena.Oat
Added file: http://bugs.python.org/file41552/issue25574.diff
___
Python tracker
<h
Elena Oat added the comment:
Attached is the patch that tries to solve the issue for the strings, tuples,
lists and dictionaries. Tuples, lists and dictionaries use the same value for
the threshold. There's a helper method in the tests that is generic to all
mentioned types.
This issu
Elena Oat added the comment:
testStdin test is useless, it expects that stdin is always unseekable, but
since sys.stdin could be any file, i.e. it can be seekable.
The patch removes the test.
--
keywords: +patch
nosy: +Elena.Oat, pitrou
Added file: http://bugs.python.org/file30828
Changes by Elena Oat :
--
keywords: +patch
Added file: http://bugs.python.org/file30804/issue16937.diff
___
Python tracker
<http://bugs.python.org/issue16
36 matches
Mail list logo