Serhiy Storchaka added the comment:
Here is a little simpler patch. Instead of checking string length in custom
converter, it is checked after invocation of PyArg_ParseTuple. Also added
bigmem tests.
--
Added file: http://bugs.python.org/file35345/tkinter_strlen_overflow_alt.patch
Serhiy Storchaka added the comment:
Why you should check the type? There is no difference between '.' and u'.'.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21343
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21331
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20197
___
___
Raymond Hettinger added the comment:
Attaching a draft patch with tests.
--
Added file: http://bugs.python.org/file35346/fix_set_abc.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
Roundup Robot added the comment:
New changeset 4fd17e28d4bf by Serhiy Storchaka in branch 'default':
Issue #20197: Added support for the WebP image type in the imghdr module.
http://hg.python.org/cpython/rev/4fd17e28d4bf
--
nosy: +python-dev
___
Serhiy Storchaka added the comment:
Thank you for your contribution Fabrice and Claudiu.
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20197
New submission from Serhiy Storchaka:
It would be good to add support of all image types which are supported in PIL
to the imghdr module.
--
components: Library (Lib)
keywords: easy
messages: 219078
nosy: Claudiu.Popa, effbot, serhiy.storchaka
priority: normal
severity: normal
stage:
Claudiu.Popa added the comment:
Sounds good, I'll create a patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21574
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
type: - enhancement
versions: +Python 2.7, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19925
Roundup Robot added the comment:
New changeset 3fa76139c908 by Serhiy Storchaka in branch '3.4':
Issue #18918: Removed non-existing topic from a list of available topics.
http://hg.python.org/cpython/rev/3fa76139c908
New changeset e5bac5b2f38d by Serhiy Storchaka in branch 'default':
Issue
Serhiy Storchaka added the comment:
Fixed in Python 3. Thanks Claudiu.
But it is not clear why this topic is absent in 2.7.
--
nosy: +serhiy.storchaka
versions: -Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
Vajrasky Kok added the comment:
Thanks, Serhiy, for the review! Here is the updated patch.
--
Added file: http://bugs.python.org/file35347/unittest_for_spwd_v3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19925
Serhiy Storchaka added the comment:
There is no need to speed up methods which do IO (__getitem__, __setitem__,
__delitem__). However method which works only with an index (keys, iterkeys,
__contains__, __len__) can be optimized. In the __contains__ method an
exception can be raised not only
Xavier de Gaye added the comment:
An improved patch with a test case.
--
Added file: http://bugs.python.org/file35349/refleak_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20766
___
New submission from Jan-Philip Gehrcke:
Currently, the tutorial for the list sort method does not show allowed
arguments:
list.sort()
Sort the items of the list in place.
(see e.g. https://docs.python.org/3.4/tutorial/datastructures.html)
Is there a reason why we do not show the
Roundup Robot added the comment:
New changeset 9724eb19f6d0 by Charles-François Natali in branch 'default':
Issue #21565: multiprocessing: use contex-manager protocol for synchronization
http://hg.python.org/cpython/rev/9724eb19f6d0
--
nosy: +python-dev
Roundup Robot added the comment:
New changeset c35274fe5b35 by Serhiy Storchaka in branch '2.7':
Issue #19925: Added tests for the spwd module. Original patch by Vajrasky Kok.
http://hg.python.org/cpython/rev/c35274fe5b35
New changeset 9bdbe0b08dff by Serhiy Storchaka in branch '3.4':
Issue
Andy Maier added the comment:
The pydoc.py of Python 3.4 that supposedly has been fixed has a lot of changes
compared to 2.7, but the place where I applied my fix in TextDoc.docclass()
is unchanged.
So it seems that my fix should be regarded only to be a quick fix, and the real
fix would be
Serhiy Storchaka added the comment:
Committed with some changes. geteuid() is used instead getuid(), and checked
that os.geteuid exists (see test_shutil). Checked deprecated attributes sp_nam
and sp_pwd. Added tests for the calling getspnam() with wrong number of
arguments and with bytes (on
New submission from beta:
Results:
Block: 2d = {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} same as {'Blocks': 3,
'Name': 'Fregatten', 'uuid': 0}
Block: 2e = {'Blocks': 3, 'Name': 'Fregatten', 'uuid': 0} same as {'Blocks': 3,
'Name': 'Fregatten', 'uuid': 0}
Block: 2f = {'Blocks': 3, 'Name':
Nick Coghlan added the comment:
Ah, interesting - I completely missed the comparison operators in my patch and
tests. Your version looks good to me, though.
That looks like a patch against 2.7 - do you want to add 2.7 3.4 back to the
list of target versions for the fix?
--
Changes by Florent Rougon frou...@users.sourceforge.net:
--
nosy: +frougon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17679
___
___
Matt Bachmann added the comment:
There is a difference! '.' is a bytes string and u'.' is a unicode one!
I found this problem because I work on a project that supports both python2 and
python3.
In python3 I pass in unicode I get back unicode. In python2.7 I pass in unicode
and I get back a
Charles-François Natali added the comment:
Committed (I've added a versionchanged as suggested by Antoine), closing.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Matt Bachmann added the comment:
Perhaps this is the bug I should be filing but here is why this comes up for
me.
I get different output from this function if I pass in two types.
On my machine:
os.path.relpath(u'test_srcl.txt', u'.') returns u'test_src.txt'
os.path.relpath(u'test_srcl.txt',
Berker Peksag added the comment:
I get a test failure when I run the test suite with unittest.patch:
test_Exit (unittest.test.test_program.Test_TestProgram) ... test test_unittest
crashed -- Traceback (most recent call last):
File /home/berker/projects/cpython-default/Lib/test/regrtest.py,
Saimadhav Heblikar added the comment:
Modifications in htest-25052014.diff
1. ClassBrowser, PathBrowser, EditorWindow no longer close parent when closed
2. Sample code in _color_delegator changed to string, instead of reading from
file.
3. String text change for Tooltip.
4. Adds htest for
Serhiy Storchaka added the comment:
In Python 2 str is coerced to unicode, so most functions should return the same
(or compatible) result for str and unicode argument if it contains only 7-bit
ASCII characters. Of course there are several obvious exceptions, such as
type() or repr(). And
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
versions: +Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
___
Raymond Hettinger added the comment:
Adding tests for non-set iterables as suggested by Serhiy.
--
Added file: http://bugs.python.org/file35353/fix_set_abc2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8743
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10203
___
___
Serhiy Storchaka added the comment:
LGTM. Perhaps it is worth to add a test for negative indices (valid (-1) and
invalid ( -length)).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10203
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21560
___
___
Éric Araujo added the comment:
I assume it is on purpose that the tutorial does not show all methods with all
their arguments. It could overwhelm readers with too much information, and
would also duplicate the full doc that’s in the reference.
A link from this tutorial page to the list
Damian added the comment:
Just a quick comment that I ran into this again, but turns out that it's not an
issue with python. Rather, this is a quirk with how readline works...
https://stackoverflow.com/questions/9468435/look-how-to-fix-column-calculation-in-python-readline-if-use-color-prompt
Serhiy Storchaka added the comment:
LGTM. But most other tests in this file use tester() to test str and bytes. And
it would be good to test multicomponent arguments (e.g. '~test\\foo\\bar' and
'~/foo/bar').
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
Claudiu.Popa added the comment:
Thanks. Here's the updated patch. It supports negative indeces (my previous
patch didn't do that).
--
Added file: http://bugs.python.org/file35354/issue10203.patch
___
Python tracker rep...@bugs.python.org
Claudiu.Popa added the comment:
Here's an updated patch.
--
Added file: http://bugs.python.org/file35355/issue21493.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21493
___
Florent Xicluna added the comment:
I've been bitten by this issue with a custom psycopg2 mock.
cur = mock.Mock()
cur.connection.cursor.return_value = cur
cur.reset_mock()
RuntimeError: maximum recursion depth exceeded
the patch looks ok, except the mix of tab and spaces :-)
--
Terry J. Reedy added the comment:
Thanks for the followup. This should be useful info for anyone who finds this
issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12972
___
Roundup Robot added the comment:
New changeset d7eea8f608c2 by Terry Jan Reedy in branch '3.4':
Issue #21477: Idle htest: modify run; add more tests.
http://hg.python.org/cpython/rev/d7eea8f608c2
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
0. I pushed a slight revision of the patch. See 2) for the main change. In
htest, I also did 3), corrected some line spacing issues, and changed
'focussing' to the US spelling 'focusing'. A tested 2.7 version of the
attached, htest-25052014-34.py, is top
Terry J. Reedy added the comment:
Yes, remove unscrollable (test2) tree widget (review response).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21477
___
Raymond Hettinger added the comment:
Added tests that include the pure python sets.Set(). Only the binary
or/and/sub/xor methods are tested.
The comparison operators were designed to only interact with their own kind. A
comment from Tim Peters explains the decision raise a TypeError
beta added the comment:
import copy
ship = {'Name': 'Slagschip', 'Blocks': 5}
shipData = copy.deepcopy(ship) # needed, otherwise linked-object
shipData['uuid'] = Id # unique Id
Is this the correct Python behavior?
--
resolution: - not a bug
___
Raymond Hettinger added the comment:
Thanks Stefan. For us, I don't see the need to add a restriction, possibly
breaking code that is currently working fine (with high mode = low). The
important part is that we now allow low==mode or high==mode and have a smooth
transition to low==high.
Roundup Robot added the comment:
New changeset 7ea6c8eb91e2 by Raymond Hettinger in branch '3.4':
Issue 13355: Make random.triangular degrade gracefully when low == high.
http://hg.python.org/cpython/rev/7ea6c8eb91e2
--
___
Python tracker
Roundup Robot added the comment:
New changeset 6dc5c4ba7544 by Raymond Hettinger in branch '2.7':
Issue 13355: Make random.triangular degrade gracefully when low == high.
http://hg.python.org/cpython/rev/6dc5c4ba7544
--
___
Python tracker
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13355
___
Roundup Robot added the comment:
New changeset ebeade01bd8e by Raymond Hettinger in branch '3.4':
Issue 21558: Fix a typo in the contextlib docs
http://hg.python.org/cpython/rev/ebeade01bd8e
--
nosy: +python-dev
___
Python tracker
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
nosy: +ncoghlan
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21558
___
Roundup Robot added the comment:
New changeset 7574f94b1068 by Raymond Hettinger in branch 'default':
Issue 21137: Better repr for threading.Lock()
http://hg.python.org/cpython/rev/7574f94b1068
--
nosy: +python-dev
___
Python tracker
Raymond Hettinger added the comment:
Thanks Berker.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21137
___
Roundup Robot added the comment:
New changeset dc353953ce8b by Raymond Hettinger in branch 'default':
Issue 15246: Improve test coverage for collections.abc.Set. (Contributed by
James King).
http://hg.python.org/cpython/rev/dc353953ce8b
--
nosy: +python-dev
Raymond Hettinger added the comment:
Thanks for the patch. Nice work.
--
resolution: - fixed
status: open - closed
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15246
Raymond Hettinger added the comment:
Is there a reason why we do not show the arguments there?
It was likely an oversight. I think it should be updated so that people know
the options are there.
--
nosy: +rhettinger
___
Python tracker
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file35358/sort_tut.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21575
tholzer added the comment:
No problem, I've attached a patch for socket.py for Python 2.7.3.
A few notes:
getaddrinfo (and gethostbyname, etc.) are already immune to this bug, so I've
just fixed the connect() call.
The socket does need to be closed after EINTR, otherwise a EINPROGRESS might
tholzer added the comment:
I've also attached a potential patch for the C module Modules/socketmodule.c
inside internal_connect().
A few notes:
This seems to work both without time-out and with time-out sockets
(non-blocking).
One concern would be a signal storm prolonging the operation
Changes by tholzer thol...@wetafx.co.nz:
Added file: http://bugs.python.org/file35361/socketmodule_2.7.6_eintr_patch.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20611
___
Changes by tholzer thol...@wetafx.co.nz:
Removed file: http://bugs.python.org/file35360/socketmodule_2.7.6_eintr_patch.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20611
___
Changes by Jeff Quast cont...@jeffquast.com:
Added file: http://bugs.python.org/file35363/opensolaris-ctypes-python-3.x.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20664
___
Jeff Quast added the comment:
Submitting fix to fallback to alternate '/usr/bin/dump' path, confirmed using
SmartOS.
As for the issues writing to /lib and /usr/lib from a zone, and the request for
An environment variable .. to override this functionality. I have to
disagree: crle(1) already
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Added file: http://bugs.python.org/file35364/htest-25052014-27.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21477
___
New submission from Eric Snow:
Currently:
__init__(self, /, *args, **kwargs)
Proposed:
__init__(self, /, *args, name=None, path=None, **kwargs)
Even that is still a little vague, but at least it doesn't gloss over the
kwonly args added in 3.3.
--
components: Interpreter Core
New submission from Eric Snow:
ImportError(spam='spam')
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: ImportError does not take keyword arguments
However, it *does* take keyword arguments:
ImportError(name='spam', path='spam')
ImportError()
--
Matt Bachmann added the comment:
Looking into the project im working on I discovered why relpath was acting
strangely.
It is because the project mocks get_cwd but not get_cwdu. Your request helped
me track that down :-)
So that is not an issue. However, the issue described in the original
Eric Snow added the comment:
Any chance we could revive ModuleNotFoundError? It's nice to be able to
distinguish between the failure to *find* the module during import from other
uses of ImportError. I'd definitely expect it to work the way Guido explained.
Basically only
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16774
___
Roundup Robot added the comment:
New changeset 2781fb146f4a by Raymond Hettinger in branch 'default':
Issue 16774: Add a new itertools recipe (suggested by Alexey Kachayev).
http://hg.python.org/cpython/rev/2781fb146f4a
--
nosy: +python-dev
___
Raymond Hettinger added the comment:
In the end, I decided to add a variant of take_last().
Thank you for the suggestion.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16774
Roundup Robot added the comment:
New changeset 3615cdb3b86d by Raymond Hettinger in branch '2.7':
Issue 8743: Improve interoperability between sets and the collections.Set
abstract base class.
http://hg.python.org/cpython/rev/3615cdb3b86d
--
nosy: +python-dev
Berker Peksag added the comment:
Thanks Raymond, will do.
--
stage: patch review - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21558
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: patch review - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21137
___
___
New submission from Марк Коренберг:
Suppose code:
=
import os
import tempfile
want_to_replace = 'zxc.dat'
tmpdir=os.path.dirname(os.path.realpath(want_to_replace))
with tempfile.NamedTemporaryFile(dir=tmpdir) as fff:
# do somewhat with fff here... and
New submission from Martin Panter:
At the bottom of the “tkinter” doc page it mentions the “data” option is
available. However I was unable to get it to work well when passing a plain
bytes() string in. It seems the bytes() string gets interpreted as UTF-8
somewhere along the line, although
Eric Snow added the comment:
I'd rather see something like load_from_spec() added to importlib.util, a la
issue #21235.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21436
___
78 matches
Mail list logo