Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file23773/9512712044a6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Changes by Nick Coghlan ncogh...@gmail.com:
Added file: http://bugs.python.org/file23773/9512712044a6.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Nick Coghlan ncogh...@gmail.com added the comment:
I have updated my BitBucket repo with the following changes:
- the main API is now dis.get_instructions()
- the info class is now dis.Instruction
- get_instructions() accepts a 'line_offset' argument that is added to any
source code line
New submission from Martin Unzner abmelde...@gmx.de:
Hi all,
while executing the following piece of code:
import tkinter
import tkinter.tix
if __name__=='__main__':
root = tkinter.Tk()
dirlist = tkinter.tix.DirSelectBox(root)
dirlist.pack()
root.mainloop()
the following error
Christian Iversen c...@sikkerhed.org added the comment:
Terry, the %g format always trims trailing zeroes, so you'd have to try with a
number that doesn't end in zero.
I had to make a re-implementation of format for javascript:
http://paste.pocoo.org/show/513078/
If you look at the %g case,
Antoine Pitrou pit...@free.fr added the comment:
Well, you only call the clock at the begining and end of a timing run, not at
each iteration.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13481
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 23ed66484ff2 by Charles-François Natali in branch 'default':
Issue #13415: Skip test_os.test_unset_error on FreeBSD 7 and OS X 10.6
http://hg.python.org/cpython/rev/23ed66484ff2
--
Martin Unzner abmelde...@gmx.de added the comment:
Sorry, I just found the programming example in the documentary. Works now.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13482
Lars Gustäbel l...@gustaebel.de added the comment:
This is no bad idea. I recommend keeping it as simple as possible. I would
definitely not be supportive of a full tar clone. List, extract, create - that
should be enough. There are two possible command line choices: do what the
zipfile
Charles-François Natali neolo...@free.fr added the comment:
_clocks = ['CLOCK_PROCESS_CPUTIME_ID', 'CLOCK_MONOTONIC_RAW',
'CLOCK_MONOTONIC', 'CLOCK_REALTIME']
Beware, we're mixing CPU time and wall-clock time:
$ ./python -c from time import *; id = CLOCK_REALTIME; t =
Antoine Pitrou pit...@free.fr added the comment:
With CLOCK_PROCESS_CPUTIME_ID:
- depending on the platform, we'll measure either wall-clock time or
CPU time
Indeed. I thought CPU time would be more useful (and that's the point of
the patch) but perhaps it breaks the spec.
- preemtion,
Charles-François Natali neolo...@free.fr added the comment:
Indeed. I thought CPU time would be more useful (and that's the point
of the patch)
Ah, OK.
Then you should probably rename the issue make timeit measure CPU time, or
something like that, because I really thought this issue was
Antoine Pitrou pit...@free.fr added the comment:
But does it include kernel CPU time for the given process?
Yes. But it won't be reliable, for example, to measure the performance
of a new readinto() implentation, since time spent by the process in
'S' or 'D' state won't be accounted for.
Éric Araujo mer...@netwok.org added the comment:
Eric: Actually I posted my comments after reading only Nick’s message, not
yours, so no worry :)
Nick:
the just do the right thing aspect is covered by PEP 395.
This is great. Thanks for clarifying.
This is an orthogonal proposal that allows
Éric Araujo mer...@netwok.org added the comment:
When someone puts thought into a report or patch, they deserve to be in
Misc/ACKS. Just noticing one typo doesn’t qualify, but pretty much anything
above does. :)
--
nosy: +eric.araujo
versions: -Python 3.4
Éric Araujo mer...@netwok.org added the comment:
python.org is not specific to CPython, but I agree with Antoine that
docs.python.org/devguide is. So I went and found the blog post that Frank
alludes to in the OP is here:
http://fwierzbicki.blogspot.com/2011/11/contributing-to-jython.html
Éric Araujo mer...@netwok.org added the comment:
Thanks, I’ll fix this.
--
assignee: docs@python - eric.araujo
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13467
___
Éric Araujo mer...@netwok.org added the comment:
I guess you’re suggesting adding a mention of -m in the section near the top
that says that a script file and code passed to -c are blocks? Makes sense.
The same commit could also improve the markup to link to the description of
script, -c
New submission from Antoine Pitrou pit...@free.fr:
Similar to issue #11849, this patch proposes to use VirtualAlloc/VirtualFree to
allocate the Python allocator's memory arenas (rather than malloc() / free()).
It might help release more memory if there is some fragmentation, although I
don't
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13477
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
The tests break on the Windows buildbots:
==
ERROR: test_relative_path (test.test_py_compile.PyCompileTests)
Éric Araujo mer...@netwok.org added the comment:
__import__ and importlib in Python 3.3 already use repr (see c4361bab6914 and
9f9b7b656761):
Traceback (most recent call last):
File string, line 1, in module
ImportError: No module named 'string\n'
For other stdlib modules, see #8754.
Éric Araujo mer...@netwok.org added the comment:
I read this report again a few days ago and saw you were right, so I fixed it.
Thanks!
(The peps repo is not hooked up to close bugs, because we don’t usually use the
bug tracker to discuss PEPs (we use mailing lists). The PEPs pages (not
Giampaolo Rodola' g.rod...@gmail.com added the comment:
New patch in attachment takes care of modifying empty() and queue property
according with the new implementation.
With this, the API behaves the same as before (this was my main concern).
Also, it's smarter when it comes to cleaning up too
Changes by Giampaolo Rodola' g.rod...@gmail.com:
Added file: http://bugs.python.org/file23786/bench.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13451
___
Éric Araujo mer...@netwok.org added the comment:
Okay, I think it’s a valuable use case.
(Out of curiosity, why don’t you want byte-compiled files on your system? It
speeds up imports, and problems due to the presence of stray pyc files when the
py is deleted are gone in 3.2+. Maybe you
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +brian.curtin, tim.golden
stage: - patch review
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10752
___
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file23778/ref_shlex.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1521950
___
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file23779/test_shlex.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1521950
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the diff and test. (I removed the older versions; there are “edit”
links in the list of files leading to pages where it’s possible to remove them,
if one has the required permissions.)
Your script passes with dash, which is probably
Éric Araujo mer...@netwok.org added the comment:
if a line ends with ;;, _pop_values() will call interpret() with an empty
string. [...]
it just means interpret() would return False, causing the line to be ignored,
which is probably
fine for that border case
Hm, I’d rather call that a
Éric Araujo mer...@netwok.org added the comment:
I have a few arguments in favor of my position:
Hm, I said that people wanted a “feature-full library” but I was confused:
We’re talking about a Python built for contributing, not to develop your app,
so my argument does not apply. So, the
Éric Araujo mer...@netwok.org added the comment:
Latest patch looks good.
Looking at the examples with ';;' or even '--', I think that their role is
non-obvious. Even though the PEP and docs explained them, there is value in
using intuitive (“guessable”) markup. So if the constraints are
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Looking back at this patch, I think we can extract the thread-synchronization
parts and the peek() method, as they're both valuable additions, especially the
first one.
The very sched doc says:
In multi-threaded environments, the
Dan Christian robo...@users.sourceforge.net added the comment:
On Sat, Nov 26, 2011 at 7:12 AM, Éric Araujo rep...@bugs.python.org wrote:
Your script passes with dash, which is probably the most POSIX-compliant
shell we can find. (bash has extensions, zsh/csh don’t use the POSIX shell
Meador Inge mead...@gmail.com added the comment:
On Sat, Nov 26, 2011 at 7:17 AM, Antoine Pitrou rep...@bugs.python.org wrote:
The tests break on the Windows buildbots:
I am investigating now.
--
___
Python tracker rep...@bugs.python.org
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Victor: Thanks for the review; I've replied to your comments and updated
the patch. Let me know what you think of the changes.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
I was just looking for a reference where I didn't have to sift through tons
of documentation.
Sure :) That’s why I suggest using dash for quick tests and rely on the work
of other people who did read the POSIX spec. I’ll have to check it too
New submission from David W. Lambert b49p23t...@stny.rr.com:
I sent this question to tu...@python.org as advertised at
http://mail.python.org/mailman/listinfo/tutor
The message was returned, and we still need an answer to the question. I'll
post it as a separate bug.
Thank you, Dave.
From:
New submission from David W. Lambert b49p23t...@stny.rr.com:
I was unable to solve this question.
http://forums.devshed.com/python-programming-11/setting-tkinter-checkbox-default-graphical-state-865148.html
Summary: Trouble initiating button in checked state.
Éric Araujo mer...@netwok.org added the comment:
Please report troubles to the listmasters listed on the bottom of each mailing
list’s description page. Thanks.
--
components: -None
nosy: +eric.araujo
resolution: - invalid
stage: - committed/rejected
status: open - closed
Dan Christian robo...@users.sourceforge.net added the comment:
Sure :) That’s why I suggest using dash for quick tests and rely on the work
of other people who did read the POSIX spec. I’ll have to check it too
before committing a patch.
The point of ref_shlex.py is that all shells act
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset b23453530d5f by Meador Inge in branch '2.7':
Issue #12618: fix py_compile unit tests to handle different drives on Windows
http://hg.python.org/cpython/rev/b23453530d5f
New changeset 7097d52cacee by Meador Inge in
Meador Inge mead...@gmail.com added the comment:
The tests are fixed now. A relative path was being computed, but on Windows
the current working directory drive and the drive of the relative path we were
computing was different (and so this test bug would *not* be seen if running on
a
R. David Murray rdmur...@bitdance.com added the comment:
Well, most of the point of Python3 is that the string type *is* unicode, which
is what I meant by saying that you probably wanted Python3 in order to solve
your concern :)
There are still a few bugs to work out in the
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Sorry, the issue tracker is not a place to ask for help.
Please use the python-list mailing list or the comp.lang.python channel instead.
--
nosy: +amaury.forgeotdarc
resolution: - invalid
status: open - closed
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 150e096095e5 by Antoine Pitrou in branch '3.2':
Issue #13444: When stdout has been closed explicitly, we should not attempt to
flush it at shutdown and print an error.
http://hg.python.org/cpython/rev/150e096095e5
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 150e096095e5 by Antoine Pitrou in branch '3.2':
Issue #13444: When stdout has been closed explicitly, we should not attempt to
flush it at shutdown and print an error.
http://hg.python.org/cpython/rev/150e096095e5
New submission from Jahangir j4han...@yahoo.com:
msvc9compiler.py aims to generate a manifestation file but it will always fail
as MSVC (cl.exe) needs a second /MANIFEST parameter to do so.
This makes the subsequent 'linking' processes fail with the following error:
general error c1010070:
Antoine Pitrou pit...@free.fr added the comment:
Attached patch allows Python to run even if no standard stream is available. I
use dup() to detect whether a fd is valid.
--
keywords: +patch
nosy: +neologix
stage: - patch review
versions: +Python 3.3 -Python 3.1
Added file:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oh, thanks Charles François for your two patches.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13415
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
The last patch (9276fc685c05.diff) looks good to me. Go ahead for the commit!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6715
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 919259054621 by Victor Stinner in branch 'default':
Issue #13415: Help to locate curses.h when _curses module is linked to ncursesw
http://hg.python.org/cpython/rev/919259054621
--
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
Removed message: http://bugs.python.org/msg148428
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13415
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
New changeset 919259054621 by Victor Stinner in branch 'default':
Issue #13415: Help to locate curses.h when _curses module is linked to ncursesw
http://hg.python.org/cpython/rev/919259054621
(Oops, wrong issue number, again)
STINNER Victor victor.stin...@haypocalc.com added the comment:
This broke several Gentoo buildbots.
setup.py is unable to locate correctly curses.h. I added a hack to always
search in /usr/include/ncursesw/. The hack is needed on Ubuntu 11.10 if you
only have libncursesw5-dev but not
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13475
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6135
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13466
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10318
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13457
___
___
Python-bugs-list
Eric Snow ericsnowcurren...@gmail.com added the comment:
Thanks, Éric. That's what I figured. I asked because the PEPs page doesn't
appear to reflect the change:
http://www.python.org/dev/peps/
I checked to be sure it fixed it before I submitted the patch. That's why I
asked about
Julian Berman julian+python@grayvines.com added the comment:
Well, if there's opposition I don't know how strongly I feel about this then,
but I generally agree with you Ezio, if there's an occasion where 1) applies
fixing the docs is certainly reasonable. If I'm checking the source
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5319
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13444
___
Nick Coghlan ncogh...@gmail.com added the comment:
Zbigniew posted a nice summary of some of the issues sys.path[0]
autoinitialisation can cause to python-dev:
http://mail.python.org/pipermail/python-dev/2011-November/114668.html
--
___
Python
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7111
___
Meador Inge mead...@gmail.com added the comment:
we don’t know what people do with symlinks and relative paths out
there, so I’d prefer adding a safe special case* rather than always
calling abspath. What do you think?
Éric, I agree. I didn't know about the strange symlink + relative
Changes by Jesús Cea Avión j...@jcea.es:
--
hgrepos: +92
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
___
Python-bugs-list mailing list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset fc1e01fe7f30 by Antoine Pitrou in branch 'default':
test hook with issue #2771.
http://hg.python.org/test/rev/fc1e01fe7f30
--
___
Python tracker rep...@bugs.python.org
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
I suggest to not use pyc and pyo in options, because .pyc and .pyo
filename extensions are specific to a subset of Python implementations. Jython
uses $py.class filename extension (module$py.class for module.py).
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
What exactly do you consider to backport to distutils?
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13473
New submission from Erik Tollerud erik.tolle...@gmail.com:
The inspect.getmodule function crashes if packages are installed that futz with
sys.modules while they are being tested for module status or the like. I'm not
actually sure which packages are doing this, but the symptom is the for
Ilya Sandler ilya.sand...@gmail.com added the comment:
I confirm the bug. But I don't think disabling Ctrl-C (SIGINT) handling by
default is a good idea. Proper Ctrl-C support seems like a fundamental feature
for a command line debugger.
However, I think the bug is easily fixable w/o
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13487
___
___
Python-bugs-list
New submission from Jesús Cea Avión j...@jcea.es:
While working in dtrace probes, I have discovered that some old C preprocessors
don't recognize #define if not in the first column.
File Include/dynamic_annotations.h has quite a few indented #define. This
is neither necessary neither regular
Changes by Jesús Cea Avión j...@jcea.es:
--
title: Some old preprocessors have problem with #define not in the first
colum - Some old preprocessors have problem with #define not in the first
column
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 05979ae431fb by Jesus Cea in branch '3.2':
Closes issue #13488: Some old preprocessors have problem with #define not in
the first column
http://hg.python.org/cpython/rev/05979ae431fb
New changeset 3a44640682c3 by
Changes by Jesús Cea Avión j...@jcea.es:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13488
___
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file23792/d7c58422eada.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Jesús Cea Avión j...@jcea.es added the comment:
Preview of the 3.3 patch. Includes work from issue #13488.
Work to do:
- line probe.
- jstack() helper.
- Instance names work, but using internal undocumented API. Change that.
Probably keeping an encoded version of the name for each type.
New submission from Shawn Ligocki sligo...@gmail.com:
collections.Counter doc does not list added version:
http://docs.python.org/library/collections.html
It appears to only have been added in 2.7 (while the rest of the doc says it is
valid since 2.4)
--
assignee: docs@python
Ezio Melotti ezio.melo...@gmail.com added the comment:
I see the note just after the sausage example and in the table at the top of
the page, from the link you provided.
--
nosy: +ezio.melotti
resolution: - invalid
stage: - committed/rejected
status: open - closed
versions: -Python
Shawn Ligocki sligo...@gmail.com added the comment:
Ah, I see, it seems like that would be better suited directly after the section
title, don't you?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13489
Ezio Melotti ezio.melo...@gmail.com added the comment:
The convention is to put the note at the end of the section. For this specific
case the section about Counter is immediately followed by the documentation of
its methods, so it's indeed hard to notice. Maybe a different CSS would make
85 matches
Mail list logo