Chris Jerdonek chris.jerdo...@gmail.com added the comment:
I'd like to work on this if that's okay. I've already written test cases for
issue 7559 and issue 15299 that required creating temporary packages, so I
understand the need. And I'd also like to create test cases for issue 14787,
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
This issue is to refactor the create-package code in test_runpy into a helper
module, as suggested in issue 15358.
This is a prerequisite to moving the pkgutil.walk_package() tests from
test_runpy into test_pkgutil.
--
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
dependencies: +Refactor the create-package code in test_runpy into a helper
module
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15358
Antoine Pitrou pit...@free.fr added the comment:
Yes, there are a number of third-party utility packages (and many,
many e.g. personal custom bash prompts) that check the value of the
$VIRTUAL_ENV variable to detect whether one is currently active, and
display its name. Unless there's an
Nick Coghlan ncogh...@gmail.com added the comment:
That sounds good, and thanks for working on this - if we can get the tests
cleaned up for the 3.3 release, that will make ongoing maintenance a lot easier.
--
___
Python tracker
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
The error message for os.path.join() is misleading when the first argument is
None. The message should probably say something about mixing None and
strings.
Python 3.3.0b1 (default:f954ee489896, Jul 16 2012, 22:42:29)
[GCC 4.2.1
New submission from Serhiy Storchaka storch...@gmail.com:
Tools/unicode/gencodec.py was not properly ported from Python 2 to Python 3.
The suggested patch fixes this porting issue.
--
components: Demos and Tools
files: decode_charmap_maxchar.patch
keywords: patch
messages: 165687
nosy:
Changes by Hynek Schlawack h...@ox.cx:
--
nosy: +hynek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15377
___
___
Python-bugs-list mailing list
New submission from Serhiy Storchaka storch...@gmail.com:
Yet one inconsistency in charmap codec.
import codecs
codecs.charmap_decode(b'\x00', 'strict', '\U0002000B')
('', 1)
codecs.charmap_decode(b'\x00', 'strict', {0: '\U0002000B'})
('', 1)
codecs.charmap_decode(b'\x00', 'strict', {0:
Serhiy Storchaka storch...@gmail.com added the comment:
Oops, wrong message, wrong patch.
Tools/unicode/comparecodecs.py was not properly ported from Python 2 to Python
3. The suggested patch fixes this porting issue.
--
Added file: http://bugs.python.org/file26413/comparecodecs.patch
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file26411/decode_charmap_maxchar.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15378
___
Antoine Pitrou pit...@free.fr added the comment:
Could you add a test to your patch?
Is the issue 3.3-specific?
--
nosy: +benjamin.peterson, ezio.melotti, haypo, lemburg, pitrou
stage: - patch review
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ezio.melotti, georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15378
___
___
Antoine Pitrou pit...@free.fr added the comment:
I agree with David that copy(os.environ) is rather ambiguous. I think the
preferred idiom should be to call dict(os.environ).
As for __copy__, I don't know what it should do: perhaps simply raise an error
when copying is attempted?
--
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15374
___
Antoine Pitrou pit...@free.fr added the comment:
The patch looks simple enough, but you should use spaces, not tabs.
--
nosy: +amaury.forgeotdarc, pitrou
stage: - patch review
___
Python tracker rep...@bugs.python.org
New submission from Mark Summerfield m...@qtrac.eu:
I tried installing CherryPy into my local Python 3.2 build. I don't know if
this is a problem with CherryPy's setup.py or with distribute but suspect the
latter since I've had similar problems before.
$ /home/mark/opt/python32/bin/python3
Hynek Schlawack h...@ox.cx added the comment:
I propose the following patch (against 3.2) that does the right thing.
--
keywords: +patch
nosy: +ncoghlan, pitrou
stage: - patch review
Added file: http://bugs.python.org/file26414/nicer-error-for-none.diff
Changes by Hynek Schlawack h...@ox.cx:
--
assignee: - hynek
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15377
___
___
Volodymyr Kostyrko c.kw...@gmail.com added the comment:
I was wrong. The current behavior is correct. The difference between execution
is a difference between pipe file object and vnode file object. vnode backed
file objects doesn't send any signals and care should be taken to detect file
Nick Coghlan ncogh...@gmail.com added the comment:
I'd be more inclined to tighten up the check for the can't mix message to
something like:
valid_types = all(isinstance(s, (str, bytes, bytearray)) for s in (a, ) + p)
if valid_types:
# Must have a mixture of text and binary data
Nick Coghlan ncogh...@gmail.com added the comment:
*grumble*grumble*os-x-and-its-crazy-symlink-as-tmp-dir*grumble*grumble*
I'm fairly sure I've tripped over this kind of thing before, so I believe I
know how to fix it (add a realpath() call when figuring out the expected path
value).
The
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Certainly. But the submission filter would have caught that.
The question is: Is it acceptible to simply ignore errors from this api when
printing tracebacks? There are other errors that can be returned as well.
The trouble is,
Antoine Pitrou pit...@free.fr added the comment:
The trouble is, any errors in the traceback reporting will be ignored
anyway, since there is no way to report them :)
Which is a good reason to ignore them, isn't it? ;)
--
___
Python tracker
Ned Deily n...@acm.org added the comment:
Distribute is not part of Distutils. According to its PyPI page
(http://pypi.python.org/pypi/distribute#feedback-and-getting-involved), the
project has its own issue tracker at
https://bitbucket.org/tarek/distribute/issues/
--
nosy:
Changes by Ned Deily n...@acm.org:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15380
___
___
Python-bugs-list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 07ed744a47f6 by Nick Coghlan in branch '3.2':
Issue #15230: Attempt to make the OS X buildbots happy by resolving the tmp dir
symlink in the test suite
http://hg.python.org/cpython/rev/07ed744a47f6
New changeset
Nick Coghlan ncogh...@gmail.com added the comment:
One trap to watch out for: it's best to call os.path.realpath() on any
temporary directories created, since the interpreter tends to do that
internally.
I'd previously dealt with this in script_helper.temp_dir, but it came up again
when I
Hynek Schlawack h...@ox.cx added the comment:
Yeah, we talked about that exact think with Antoine on IRC. New proposal.
--
Added file: http://bugs.python.org/file26415/nicer-error-for-none-v2.diff
___
Python tracker rep...@bugs.python.org
Nick Coghlan ncogh...@gmail.com added the comment:
Looks good to me
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15377
___
___
Nick Coghlan ncogh...@gmail.com added the comment:
Closing again, since the OS X buildbot was happy with the change on 3.2. If
trunk fails (which it shouldn't), that should be filed as a new issue (as it
would almost certainly relate to the move from the pkgutil emulation to
importlib).
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5553a53a230a by Hynek Schlawack in branch '3.2':
#15377: Make posixpath.join() more strict when checking for str/bytes mix
http://hg.python.org/cpython/rev/5553a53a230a
New changeset d087ef80372d by Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment:
Fine! :)
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15377
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d896fd0a8ba7 by Eli Bendersky in branch '3.2':
ISsue #14988: restore Python 2's behavior of raising ImportError when unable to
load pyexpat, instead of a SystemError/RuntimeError
Eli Bendersky eli...@gmail.com added the comment:
Committed fixes to raise ImportError in both Python 3.2 and 3.3
At the moment no test added because I'm having trouble using
import_fresh_module to avoid re-importing of pyexpat in the etree tests (it
gets imported anyway).
--
Serhiy Storchaka storch...@gmail.com added the comment:
Fixing for 3.2 and lesser is possible, but expensive, because of narrow build
limitation. If necessary, I will give the patch, but it is easier to mark it as
wont fix for pre-3.3 versions.
Here is a tests for charmap decoding. Tests
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 16e50e85d684 by Nick Coghlan in branch 'default':
Issue #15314: Tweak a pkgutil test to hopefully be more Windows friendly
http://hg.python.org/cpython/rev/16e50e85d684
--
R. David Murray rdmur...@bitdance.com added the comment:
Well, I think the fact that os.environ.copy is explicitly supported (and does
indeed do dict(os.environ)) is an argument in favor of giving that same meaning
to copy(os.environ). I think that follows the principle of least surprise.
Nick Coghlan ncogh...@gmail.com added the comment:
OK, I just pushed a tweak to the test that will hopefully resolve the problem.
If the tweak works, though, it does suggest we have a bit of weirdness in
importlib: it means pkgutil.get_importer() is returning an importer on POSIX
systems, but
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 51978f89e5ed by Eli Bendersky in branch 'default':
Optimize tostringlist by taking the stream class outside the function. It's now
2x faster on short calls. Related to #1767933
New submission from Eli Bendersky eli...@gmail.com:
From this pydev thread:
http://mail.python.org/pipermail/python-dev/2012-July/120981.html
BytesIO is actually missing an optimisation that is already used in
StringIO: the StringIO C implementation uses a fragment accumulator
internally, and
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15381
___
___
Eli Bendersky eli...@gmail.com added the comment:
This optimization for StringIO was done in issue #13149
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15381
___
Brett Cannon br...@python.org added the comment:
I disagree. They are outdated benchmarks and probably should either be removed
or left undocumented. Proper testing of performance is with the Unladen Swallow
benchmarks.
--
nosy: +brett.cannon
___
Serhiy Storchaka storch...@gmail.com added the comment:
I am not see that BytesIO is slower than StringIO (both are about 30% slower
than append/join).
$ ./python -m timeit -s import io; d=[b'a'*10,b'bb'*5,b'ccc'*5]*1000 b=[];
w=b.append for x in d: w(x) b''.join(b)
1000 loops, best of 3:
Marc-Andre Lemburg m...@egenix.com added the comment:
Brett Cannon wrote:
Brett Cannon br...@python.org added the comment:
I disagree. They are outdated benchmarks and probably should either be
removed or left undocumented. Proper testing of performance is with the
Unladen Swallow
Richard Oudkerk shibt...@gmail.com added the comment:
Updated patch which clarifies that for an installed python on a posix system,
get_config_var('srcdir') == get_path('stdlib').
Eg, if sys.executable == '/usr/local/bin/python3.3' then
get_config_var('srcdir') == '/usr/local/lib/python3.3'.
Changes by John O'Connor tehj...@gmail.com:
--
nosy: +jcon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15381
___
___
Python-bugs-list mailing
Florent Xicluna florent.xicl...@gmail.com added the comment:
Actually, I discovered python -m test.pystone during the talk of Mike Müller
at EuroPython. http://is.gd/fasterpy
Even if they are suboptimal for true benchmarks, they should probably be
mentioned somewhere.
In the same paragraph,
Meador Inge mead...@gmail.com added the comment:
New patch that addresses feedback from Brett's code review (thanks!).
--
Added file: http://bugs.python.org/file26418/issue15368-v1.patch
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka storch...@gmail.com added the comment:
How about porting this to 3.2? The main difficulty I see with the tests, which
significantly differ in 3.2 and 3.3.
--
___
Python tracker rep...@bugs.python.org
Brett Cannon br...@python.org added the comment:
The Unladen Swallow benchmarks are in no way specific to JITs; it is a set of
thorough benchmarks for measuring the overall performance of a Python VM.
As for speed.python.org, we know that it is currently not being updated as we
are waiting
Changes by Yury Selivanov yselivanov...@gmail.com:
--
nosy: -Yury.Selivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15151
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset b79d276041a8 by Vinay Sajip in branch 'default':
Closes #15307: symlinks now work on OS X with framework Python builds. Patch
by Ronald Oussoren.
http://hg.python.org/cpython/rev/b79d276041a8
--
Christopher the Magnificent ultimate.mac.fana...@gmail.com added the comment:
ISSUE CONFIRMED FIXED ON MY END, AND MANY THANKS
I downloaded, compiled, and installed the latest Python 3.3 beta on my machine
with Mercurial, and can confirm that the problem is no longer presenting itself.
Thank
Yury Selivanov yselivanov...@gmail.com added the comment:
The new patch version (inspect.pep362.2.patch) includes more examples and
includes recommendations to use the Signature Object instead of
'inspect.getfullargsspec'. Please review.
--
Added file:
Changes by Ilpo Nyyssönen i...@iki.fi:
--
nosy: +biny
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15109
___
___
Python-bugs-list mailing list
Yury Selivanov yselivanov...@gmail.com added the comment:
New patch version - inspect.pep362.3.patch
I decided to put the new doc section above the Classes and functions. The new
section is now called Introspecting callables with Signature Object. Aside
from that everything is the same as in
Ned Deily n...@acm.org added the comment:
This is a little arbitrary, but seems as sensible a value as any other.
(Or maybe it would be better to have get_config_var('srcdir') == None
instead.)
'srcdir' is problematic for any installed build. Once make install has been
performed, there is
Changes by Mikhail Korobov kmik...@gmail.com:
--
nosy: +kmike
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15027
___
___
Python-bugs-list mailing
New submission from Arfrever Frehtes Taifersar Arahesis
arfrever@gmail.com:
Contrarily to documentation:
1. os.utime() accepts a tuple with floats passed by ns argument:
os.utime(file, ns=(0.5, 0.5))
2. os.utime() does not accept explicit ns=None:
os.utime(file, times=None)
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15381
___
David Lam d...@dlam.me added the comment:
yup yup, go for it
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11176
___
___
Python-bugs-list
Roger Serwy roger.se...@gmail.com added the comment:
Attached is a preliminary patch to check ns != Py_None.
--
components: +Library (Lib)
keywords: +patch
nosy: +serwy
type: - behavior
Added file: http://bugs.python.org/file26421/issue15382.patch
STINNER Victor victor.stin...@gmail.com added the comment:
@serwy: can you please write a test for your patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15382
___
Richard Oudkerk shibt...@gmail.com added the comment:
Beyond that, I don't understand why the patch behavior depends on
whether the srcdir is an absolute path or not.
The os.path.isabs() test is actually redundant since os.path.join(base, srcdir)
== srcdir if srcdir is an absolute path. I
Roger Serwy roger.se...@gmail.com added the comment:
_rev1 has a basic test. Is it sufficient?
--
Added file: http://bugs.python.org/file26423/issue15382_rev1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15382
Ned Deily n...@acm.org added the comment:
Upon further consideration, while it sounds appealing, perhaps returning None
is not the better choice. As far as I know, up until now all config vars are
either of type str or type int. Adding None to the mix might be asking for
trouble.
With no
Ned Deily n...@acm.org added the comment:
I should have noted that, in the above tests,
distutils.sysconfig.get_makefile_filename() is already doing the right thing:
dsc.get_makefile_filename()
Éric Araujo mer...@netwok.org added the comment:
Agree on fixing this for 3.3, if it’s not possible to backport to all stable
branches. Will review.
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Roger Serwy roger.se...@gmail.com:
--
components: +IDLE -Installation, Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14513
___
Changes by Roger Serwy roger.se...@gmail.com:
--
components: +Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14513
___
___
Python-bugs-list
Eli Bendersky eli...@gmail.com added the comment:
Frankly, I don't think the problem is serious enough to warrant a backport to
3.2, given that 3.3 gonna be out in a few weeks. The issue was open for 5 years
without anyone seriously complaining :)
--
New submission from Tyler Crompton gtr...@gmail.com:
Doing one of the following crashes Python.
del __builtins__
a{Tab}
or
builtins = __builtins__
del __builtins__
a{Tab}
If you do a print screen, immediately, you will see the following error:
*** Internal Error:
Roger Serwy roger.se...@gmail.com added the comment:
With 3.3.0b1 amd64, I can pin IDLE to the taskbar with the appropriate icon
(white page with Python logo). When I unpin IDLE with an editor window focused,
the icon becomes the Tk logo. However, re-pinning the app brings back the other
Serhiy Storchaka storch...@gmail.com added the comment:
Please, can anyone do a final review and commit?
Here are three patches for three Python versions:
2.7: utf16_error_handling-2.7.patch. Fix for one minor bug (overreading) and
tests.
3.2: utf16_error_handling-3.2_4.patch. Fix for one
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Interpreter Core, Unicode
versions: +Python 2.7 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14579
___
77 matches
Mail list logo