Brett Cannon added the comment:
This is no longer a problem:
import imp
import collections
import collections.abc
module 'collections.abc' from
'/Users/bcannon/Developer/repo/cpython/py3k/Lib/collections/abc.py'
--
assignee: - brett.cannon
resolution: - out of date
status: open -
Jim Jewett jimjjew...@gmail.com added the comment:
(Note that the two patches are not cumulative; both would need to be applied.)
--
nosy: +Jim.Jewett
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14580
New submission from Paul Ollis pyt...@ollis.me.uk:
Code like this::
import collections.abc
imp.reload(collections.abc)
Raises the following exception:
SystemError: Negative size passed to PyUnicode_New
This occurs on the latest mercurial checkout (76302).
--
components:
Paul Ollis pyt...@ollis.me.uk added the comment:
Patch adding a test to reproduce the issue.
--
keywords: +patch
Added file: http://bugs.python.org/file25215/patch01-tests.diff
___
Python tracker rep...@bugs.python.org
Paul Ollis pyt...@ollis.me.uk added the comment:
Patch that fixes the issue.
--
Added file: http://bugs.python.org/file25216/patch01-code.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14580
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +brett.cannon
priority: normal - high
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14580
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14580
___
___
Python-bugs-list