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
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
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
Changes by berdario :
Added file: http://bugs.python.org/file33596/bug_with_invalidatecaches.py
___
Python tracker
<http://bugs.python.org/issue20321>
___
___
Python-bug
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
Changes by berdario :
Removed file: http://bugs.python.org/file33582/bbug.py
___
Python tracker
<http://bugs.python.org/issue20321>
___
___
Python-bugs-list mailin
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
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
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
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
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
11 matches
Mail list logo