[issue25737] array is not a Sequence

2015-11-26 Thread berdario
berdario added the comment: Ok, basically `Sequence` does not implement `__subclasshook__` and is manually hardcoded to ``` Sequence.register(tuple) Sequence.register(str) Sequence.register(range) Sequence.register(memoryview) ``` This is not by design, is it

[issue25737] array is not a Sequence

2015-11-26 Thread berdario
New submission from berdario: >>> from array import array >>> from collections.abc import Sequence >>> isinstance(array('I', [1]), Sequence) False -- components: Interpreter Core messages: 255413 nosy: berdario priority: normal severity: norm

[issue23310] MagicMock constructor configuration fails for magic methods

2015-01-24 Thread berdario
New submission from berdario: I guess this should be expected... too much magic :P >>> from unittest.mock import MagicMock >>> MagicMock(**{'__hash__.return_value': "FIXME"}) Traceback (most recent call last): File "", line 1, in File &quo

[issue20321] ImportError when a module is created after a catched ImportError

2014-01-21 Thread berdario
Changes by berdario : Added file: http://bugs.python.org/file33596/bug_with_invalidatecaches.py ___ Python tracker <http://bugs.python.org/issue20321> ___ ___ Python-bug

[issue20321] ImportError when a module is created after a catched ImportError

2014-01-21 Thread berdario
berdario added the comment: Ok, the bug is unrelated with timings and the finder caches apparently -- resolution: invalid -> status: closed -> open versions: -3rd party, Python 2.7 ___ Python tracker <http://bugs.python.org/i

[issue20321] ImportError when a module is created after a catched ImportError

2014-01-21 Thread berdario
Changes by berdario : Removed file: http://bugs.python.org/file33582/bbug.py ___ Python tracker <http://bugs.python.org/issue20321> ___ ___ Python-bugs-list mailin

[issue20321] ImportError when a module is created after a catched ImportError

2014-01-21 Thread berdario
berdario added the comment: yes, sorry... I tried to "simplify" and generalize it too much (I tried to avoid creating a new directory in the test, assuming that the same behavior could make sense by only creating a new module in the current directory) I'll reupload the correct

[issue20321] ImportError when a module is created after a catched ImportError

2014-01-20 Thread berdario
New submission from berdario: This small script errors on both Python2.7, Python3.3 and Pypy2.0 (I just reduced the test case supplied to me by ezio) -- components: Interpreter Core files: bbug.py messages: 208608 nosy: berdario, ezio.melotti priority: normal severity: normal status

[issue18069] Subprocess picks the wrong executable on Windows

2013-05-27 Thread berdario
berdario added the comment: I found out what's the problem, from the CreateProcess docs: http://msdn.microsoft.com/en-us/library/ms682425.aspx """ If the file name does not contain a directory path, the system searches for the executable file in the following sequence

[issue18069] Subprocess picks the wrong executable on Windows

2013-05-26 Thread berdario
New submission from berdario: To reproduce: I installed 2 versions of python: python2.7 and python3.3, both in C:\ I then used the distribute-setup and get-pip script on both interpreters http://python-distribute.org/distribute_setup.py https://raw.github.com/pypa/pip/master/contrib/get-pip.py

[issue15932] files in the csv documentation's examples are not closed

2012-09-12 Thread berdario
New submission from berdario: I changed the examples to use the with statement -- assignee: docs@python components: Documentation files: doc.diff keywords: patch messages: 170394 nosy: berdario, docs@python, ezio.melotti priority: normal severity: normal status: open title: files in the