andrea crotti added the comment:
It has been a long time but if it's still useful sure.
I can see some tests have been added in commit
863b1e4d0e95036bca4e97c1b8b2ca72c19790fb
but if these are still relevant I'm happy to go ahead.
--
Changes by andrea crotti :
--
resolution: invalid ->
___
Python tracker
<http://bugs.python.org/issue13991>
___
___
Python-bugs-list mailing list
Unsubscri
andrea crotti added the comment:
I reopen the ticket because I'm still not convinced..
I tried to substitute the setuptools namespace declaration with the more
standard python:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
It behaves exactly in the sam
andrea crotti added the comment:
About the binary file, in theory I agree with you, but that archive contains 5
or 6 subdirectories with a few almost empty files.
Of course I can write a script that recreates that situation, but does it make
sense when I can just tar and untar it?
And what
andrea crotti added the comment:
There is nothing binary in the archive, just a simple example of namespace
packages, which was the minimal example that I could create to make things fail.
I use the standard pkg_resources way to do things:
__import__('pkg_resources').declare
New submission from andrea crotti :
I am not really sure that it is a bug, but for me it's at least not the
expected behaviour.
In short supposing I have two namespace packages ab and ac (as seen in the tar
file), this works perfectly:
import sys
from os import path
sys.path.a
andrea crotti added the comment:
It's really hard to understand true, and if should not go in the patch in
general of course.
The sense was that the only test I added is trivial, but I haven't produced
something better yet.
And ok I will remove the docstrings, I was actually d
New submission from andrea crotti :
This patch increases test coverage for pstats.py from 25 to 36%.
It's my first proposed patch so sorry in advance if there are problems. Much
more can be done for pstats.py (which is also not much commented) but I want to
get some feedback on this