New submission from Pierre Quentel pierre.quen...@gmail.com:
The scrolledtext example crashes with this message :
TypeError: unsupported operand type(s) for +: 'dict_keys' and 'dict_keys'
It works if keys() are converted to lists in line 33 :
methods = list(vars(Pack).keys()) +
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +gps
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10763
___
___
Python-bugs-list mailing list
Daniel Urban urban.dani...@gmail.com added the comment:
It probably also works if | is used instead of +, because in 3.2
dict_proxy.keys() are a dict_keys, not a list. See issue10630 .
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
David Leonard d+pyt...@adaptive-enterprises.com added the comment:
Agree that the patches from issue 4804 and wrapping strftime() to catch the
invalid_parameter call would fix this:
windbg trace:
0:000 k
Child-SP RetAddr Call Site
`0021f328 07fe`fdbb27cf
New submission from Sven Brauch svenbra...@googlemail.com:
Hi,
I'm writing a python language support plugin for an IDE. I'm using the AST
module to get information about the loaded source code, which works pretty
well. However, in some cases, the information provided by the AST is simply not
Baptiste Carvello baptiste...@free.fr added the comment:
Hello,
the patch solves the bug for me as well (using locale C, the
filesystem encoding is utf-8). However, I do not understand why the
patch checks that the shebang line decodes with both utf-8 and the
file's encoding. The shebang
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +benjamin.peterson
stage: - needs patch
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10769
___
Skip Montanaro s...@pobox.com added the comment:
John,
The API for the open() builtin function has changed. You should open
the output file with newline= instead of using the default. Take a
look at the documentation for open() and csv.reader:
Brett Cannon br...@python.org added the comment:
That's a fair assessment. A lot of the bugs that are easy to fix got closed out
a couple of years back. The rest are (I think) considered too difficult and too
marginal to worry about.
--
nosy: +brett.cannon
New submission from Sandro Tosi sandro.t...@gmail.com:
Hello,
as reported[1] on python-doc, there's a typo in zipinfo doc.
[1] http://mail.python.org/pipermail/docs/2010-December/002526.html
The attached (trivial) patch fixes it; the file would also need a rewrap to
80th column.
Cheers,
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
ISTM the whole point of an Abstract Syntax Tree is to express semantics while
throwing away the syntax details. The only reason any position information is
kept is to support tracebacks and debugging.
Perhaps the OP's
Benjamin Peterson benja...@python.org added the comment:
2010/12/24 Raymond Hettinger rep...@bugs.python.org:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
ISTM the whole point of an Abstract Syntax Tree is to express semantics while
throwing away the syntax
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
If info fields are added, they need to be optional so that someone manipulating
the tree (adding, rearranging, or removing nodes) doesn't have an additional
burden of supplying this info before compiling into an executable
R. David Murray rdmur...@bitdance.com added the comment:
Where is this example?
--
assignee: - d...@python
components: +Documentation
nosy: +d...@python, r.david.murray
type: crash - behavior
___
Python tracker rep...@bugs.python.org
Daniel Urban urban.dani...@gmail.com added the comment:
I don't think, that this is in an example (but probably there is an example
somewhere, that crashes because of this). I found the code in
Lib/tkinter/scrolledtext.py
--
___
Python tracker
Brian Quinlan br...@sweetapp.com added the comment:
Sorry for being AWOL for so long. Attached is a patch that doesn't install a
handler and checks stderr for the exception output. Unfortunately, it looks
like the logging tests are still messing things up:
./python.exe -m test
Terry J. Reedy tjre...@udel.edu added the comment:
2.6 is closed except for security fixes, which this does not seem to be. If the
problem is in 2.7, then it potentially could be fixed there, but with the same
caveats. I will let Antoine reclose if he thinks appropriate.
--
nosy:
Terry J. Reedy tjre...@udel.edu added the comment:
Mitchell: 2.6 is closed to revision except for security issues
--
nosy: +terry.reedy
resolution: wont fix -
versions: +Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: d...@python -
components: -Documentation
keywords: +easy
nosy: -d...@python
stage: - unit test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10768
Sven Brauch svenbra...@googlemail.com added the comment:
Hi,
well, but you have to agree that there is no point in setting a correct column
offset for bar in
foo[bar] (it's correctly set to 4 here!)
and
foo(bar)
but not for
foo.bar (there's no information provided here)
For me, this looks
Terry J. Reedy tjre...@udel.edu added the comment:
According to the linked doc, Opera has '-noraise' but not '-raise' as a command
line option (to not raise window when receiving remote commands).
It does have 'raise()' (with quotes and parens, but not noraise()) as a
remote command following
Terry J. Reedy tjre...@udel.edu added the comment:
I agree with addition. Patch look OK to my limited .rst knowledge.
To be more parallel to the other entries, the text might say
A bool indicating whether ...
--
nosy: +terry.reedy
stage: - patch review
versions: +Python 3.1, Python
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: -BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10756
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +aimacintyre
stage: - unit test needed
type: compile error - behavior
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10757
Terry J. Reedy tjre...@udel.edu added the comment:
I verified problem with 3.2b1 on 32-bit winxp machine.
IDLE restarts after pythonw crashes.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10762
Brian Quinlan br...@sweetapp.com added the comment:
What's the best way for me to test this? The problem occurs on a Windows-only
code path but there is not enough information for me to debug it.
Should I check-in some additional diagnostics, wait for the buildbot to run,
collect my data and
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
I've been trying to push the history to Launchpad, completely without success;
it just won't authenticate (no such account, even though I can log in!).
I doubt that the history would be much use to you anyway.
--
Brian Curtin cur...@acm.org added the comment:
You can create a branch, checkin to that branch, then specify that a specific
buildbot runs your branch. See the force build page of a build slave.
Additionally, I can give you access to my build slave, the Windows Server 2008
one, but that may
Thorsten Behrens sbehr...@gmx.li added the comment:
Thank you for that patch, Stefan. I am currently tinkering with bringing
pycrypto to 3.x and ran into this issue. initfunc2.patch resolves the issue on
Win7-64, python31-64.
I don't feel comfortable releasing code that requires the user to
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: -terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10733
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
No, I was wrong. This would only be an issue when a parameter's value is
changed, and at that point we should be producing correctly (un)quoted values
no matter what the original quoting of the individual value was.
So I've applied the
Terry J. Reedy tjre...@udel.edu added the comment:
Since 'methods' is converted to a set in the next line, there is no need for
lists. Instead, use | and delete the conversion.
methods = vars(Pack).keys() + vars(Grid).keys() + vars(Place).keys()
methods = set(methods).difference(text_meths)
Terry J. Reedy tjre...@udel.edu added the comment:
A request limited only to fixing the current field for attribute may get more
traction than a request for a new field. Can you dig into to code to get any
idea why the difference between attributes versus indexes and parameters?
--
Sven Brauch svenbra...@googlemail.com added the comment:
Hi Terry,
well, the current behaviour is... logical in some way, as it says the whole
expression which accesses an attribute starts at column 0, i.e. it's easy to
understand why it's done like this. It just turns out that this is pretty
Philip Jenvey pjen...@underboss.org added the comment:
Florent, any chance of signing off on this for 3.2? I was waiting for the patch
to go through your authorized elementtree fork
--
assignee: pjenvey - flox
___
Python tracker
Brian Quinlan br...@sweetapp.com added the comment:
I'm good, thanks Brian C.
br/
It looks like SetEvent is failing with ERROR_INVALID_HANDLE.
CRITICAL:root:SetEvent(2044) failed with 0, GetLastError() = 6
CRITICAL:root:SetEvent(2064) failed with 0, GetLastError() = 6
Sven Brauch svenbra...@googlemail.com added the comment:
Hi,
I found the reason for this behavior in the code now, it's in Python/ast.c,
lines 1745 and 1746 in ast_for_power():
tmp-lineno = e-lineno;
tmp-col_offset = e-col_offset;
Here, the range information for the
Benjamin Peterson benja...@python.org added the comment:
2010/12/24 Sven Brauch rep...@bugs.python.org:
Sven Brauch svenbra...@googlemail.com added the comment:
Hi,
I found the reason for this behavior in the code now, it's in Python/ast.c,
lines 1745 and 1746 in ast_for_power():
Mitchell Model m...@acm.org added the comment:
Thanks for letting me know (and with a personalized message, yet!). I wasn't
paying attention -- i verified that the problem exists in 2.7 and 3.1 and I
just dragged 3.1 down to 2.6. Although I've been working furiously in Python
for the past six
R. David Murray rdmur...@bitdance.com added the comment:
I suspect it would help if there are more changes, though.
I believe that to push to launchpad you have to upload an ssh key. Not sure
why you'd get no such account, though. Barry would probably know :)
--
Matthew Barnett pyt...@mrabarnett.plus.com added the comment:
It does have an SSH key. It's probably something simple that I'm missing.
I think that the only change I'm likely to make is to a support script I use;
it currently uses hard-coded paths, etc, to do its magic. :-)
--
R. David Murray rdmur...@bitdance.com added the comment:
Yes, I think it is a good idea for site.py to issue error messages and continue
on when it is processing files that don't come from the python distribution
itself (such as pth files). However, I think just printing the error message
is
R. David Murray rdmur...@bitdance.com added the comment:
Georg posted a patch to issue 5258 that would fix this. I've posted a
counter proposal that would give more info. We're proposing to simply write to
stderr and then continue. With either patch this issue would be fixed, so I'm
making
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +Arfrever, dwr2, eric.araujo, haypo, tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5258
___
New submission from Devin Jeanpierre jeanpierr...@gmail.com:
In trunk/Doc/reference/datamodel.rst , under _Implementing Descriptors_, the
documentation states:
`The following methods only apply when an instance of the class containing the
method (a so-called *descriptor* class) appears in
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Well, the idea is good and it did cross my mind. Particularly it could be
useful for performance sensitive applications.
However it complicates things.
1) If a GC is rejected, when do we make the next attempt?
2) If a callback
46 matches
Mail list logo