R. David Murray rdmur...@bitdance.com added the comment:
I still don't understand. I haven't used threading much, but I don't believe
I've ever used a static method with it.
--
___
Python tracker rep...@bugs.python.org
New submission from Virgil Dupras hs...@hardcoded.net:
Currently, there is no (documented) way to easily extract arguments in an
argparse Namespace as a dictionary. This way, it would me easy to interface a
function taking a lot of kwargs like this:
args = parser.parse_args()
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Roy, it's not clear what you're after. What is it that you think is special
about the way the target is called?
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
Sebastien Douche sdou...@gmail.com added the comment:
Oups sorry Eric. I created the report very quickly after a discussion with
Tarek. If you type a wrong command like python -m distutils2:run wrong,
disutils2 still parses the setup.cfg. How resolve this? Don't know, maybe a
migration to
Ned Deily n...@acm.org added the comment:
Since IDLE and the turtle modules both use Tkinter and thus are both Tcl/Tk
applications, it wouldn't be surprising if you had problems trying to run a
program using the IDLE module from within IDLE. However, I find I can
successfully run at least
Ned Deily n...@acm.org added the comment:
er, trying to run a program using the turtle module from within IDLE
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11075
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Do yourself a favor and don't become a PEP 8 nut ;-)
The primary purpose of the example in whatsnew is to teach, demonstrate, and
explain. Any PEP 8 considerations take a back seat to that purpose (even PEP 8
itself
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
+1 for making the object readily convertible to a dictionary. That would also
serve to make it more introspectable without losing the simplicity of the
current design.
--
nosy: +rhettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
You can put in the backslashes before the two periods, but not the other
changes. I want the method names to continue to be spelled-out in full so that
it is more clear what they are referring to. Even in spoken English, I
Georg Brandl ge...@python.org added the comment:
I agree with Raymond: whoever puts in 95% of work for a single document should
have artistic license over the style.
I also don't complain if people use a different indentation style in module
docs they write (but I reserve the right to use
STINNER Victor victor.stin...@haypocalc.com added the comment:
As explained in issue #10828: Python 3.2 doesn't support non-ASCII module names
on Windows because module names are encoded to UTF-8 instead of the filesystem
encoding (the ANSI code page).
--
Jesús Cea Avión j...@jcea.es added the comment:
Martin, I guess stat deprecation could require a few years and it would be an
extra incompatibility burden between 2.7 and 3.x.
Beside the symbolic constants, why would you see stat deprecated?.
--
SilentGhost ghost@gmail.com added the comment:
r81947 introduced this issue:
from struct import *
pack_into
Traceback (most recent call last):
File pyshell#1, line 1, in module
pack_into
NameError: name 'pack_into' is not defined
struct.__all__ has a duplicate entry and misses
STINNER Victor victor.stin...@haypocalc.com added the comment:
Python’s import mechanism can now load modules installed in directories with
non-ASCII characters in the path name: import møøse.bites
møøse is not a module *path*, but a module *name*... This example doesn't work
on Windows: see
STINNER Victor victor.stin...@haypocalc.com added the comment:
Should we add imports in all examples? Eg. add import math in:
repr(math.pi)
'3.141592653589793'
str(math.pi)
'3.141592653589793'
At least, accumulate should be replaced by itertools.accumulate in the
following example:
STINNER Victor victor.stin...@haypocalc.com added the comment:
The import in the following example is wrong :
import datetime
datetime.now(timezone.utc)
...
It should be replaced by: from datetime import datetime, timezone.
--
___
Python tracker
Roy Smith r...@panix.com added the comment:
Here's the code I ended up writing:
class Foo():
def __init__(self):
self.thread = Thread(target=Foo.runner, args=[self])
self.thread.start()
@staticmethod
def runner(self):
# blah, blah, blah
It was not immediately
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Nick, thanks for highlighting the logging changes. In addition to what you
mentioned, there's still more, at least some of which deserves to get into
what's new :-)
1. QueueHandler and QueueListener classes were added to help with logging
STINNER Victor victor.stin...@haypocalc.com added the comment:
ABCMeta should be replaced by abc.ABCMeta, or other abc. prefixes should be
removed.
class Temperature(metaclass=ABCMeta):
@abc.abstractclassmethod
def from_fahrenheit(self, t):
...
@abc.abstractclassmethod
Brian Curtin cur...@acm.org added the comment:
It was not immediately clear from the documentation if my runner() method
should be declared static or not.
The doc doesn't mention static methods at all, and my uses and others that I've
seen have never used static methods.
--
nosy:
Antoine Pitrou pit...@free.fr added the comment:
You don't have to use any staticmethod here (actually, staticmethod is an
anti-pattern in Python). Just write:
class Foo():
def __init__(self):
self.thread = Thread(target=self.runner)
self.thread.start()
def runner(self):
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Thanks Victor.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11071
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Please consider mentioning that several modules can now be called with -m:
pickle, pickletools and tkinter.
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
New submission from Scott M scott.m...@comcast.net:
The more I look at GUI support in Python, the more I realize that the lack of
basic thread safety in GUI support is simply a bug. I know Java's Swing has the
same thread limitation, but that doesn't make it right. Xlib is thread safe.
The
stan mihai stanmih...@gmail.com added the comment:
attached patch with tests
I have no experience with python development so the tests will actually need a
more detailed review. Also I only checked it on win64.
--
Added file: http://bugs.python.org/file20626/ctypes_win64_tests.diff
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The proposed patch looks fine to me, but it is attached to the wrong issue. It
belongs to #8973 or better yet to follow RC2 rules pedantically, it should be
posted in a separate issue.
This is important, because this
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Wait, #8973 *is* this issue. But r81947 is clearly not about docstrings. We
definitely need a saparate issue. This is too confusing.
--
___
Python tracker
New submission from R. David Murray rdmur...@bitdance.com:
Inspired by what happened in issue 8973, I offer the attached patch for
test__all__ to have it check the __all__ list for duplicates. Interestingly,
the first failure is not in struct, but in os. Obviously the patch can't be
applied
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
Removed message: http://bugs.python.org/msg127607
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Wait, #8973 *is* this issue. But r81947 is clearly not only about docstrings.
We definitely need a separate issue. This is too confusing.
--
___
Python tracker
Changes by Jérôme Radix jerome.ra...@gmail.com:
--
nosy: +Jérôme Radix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6792
___
___
Python-bugs-list
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +PythonInTheGrass -BreamoreBoy
resolution: wont fix -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1252236
Changes by Brian Curtin cur...@acm.org:
--
title: Tkinter is not thread safe. This is a bug. - Tkinter is not thread safe
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11077
___
Antoine Pitrou pit...@free.fr added the comment:
Patch verified to work under Linux and win32. It looks good, except for tab
characters in the Modules/_ctypes/_ctypes_test.c (indentation of C files should
use 4 spaces); that's a detail that we can fix ourselves.
--
assignee: theller -
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
One possible solution was presented in issue1252236: move tkinter event loop
into Python main loop. However, to consider this report a bug, we need an
example code that shows the behavior that you consider incorrect.
New submission from Raymond Hettinger rhettin...@users.sourceforge.net:
In Applications, the 3.2 entry includes:
* Python Launcher
* IDLE
* Update Shell.Profile Command
* Extras directory
The latter should be dropped (most of the tools only make sense from the
command-line) and should be
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
+1. This is a fairly common mistake. Usually benign, but as issue 8973 shows,
may highlight a visible error.
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
Tres Seaver tsea...@agendaless.com added the comment:
georg.brandl (2010-12-03 10:20):
Don't worry, it will be ported.
When? Why would it *not* be merged to the 2.7 and 3.1 branches at the
time the bug is closed? Delaying the port only increases the chance
that the fix will fall between the
Antoine Pitrou pit...@free.fr added the comment:
Let's reopen until then.
--
assignee: pitrou -
resolution: fixed - accepted
stage: - committed/rejected
status: closed - open
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
The “Documentation” component is used for bugs found in files under the Doc
directory of a CPython checkout or source tarball. PEPs are tracked in their
own repository and are not part of the CPython distribution. They are not part
of the
Éric Araujo mer...@netwok.org added the comment:
Well, the setup.cfg could register a command named “wrong”, so d2 really has to
parse all config files before rejecting a command.
--
___
Python tracker rep...@bugs.python.org
Jérôme Radix jerome.ra...@gmail.com added the comment:
Could you please change the priority of this Issue to 'High' as this problem is
a big annoyance for all Windows 64bits users which is a rather large niche of
users (a niche getting larger and larger everyday), don't you think ?
--
New submission from Terry M. Topka to...@ge.com:
Attempting to read a fixed amount of data when the serial port is configured
for non-blocking reads (i.e. self.timeout == 0) will occasionally throw an
invalid memory access exception, due to an error in the following code:
### pyserial-2.5-rc2
Brian Curtin cur...@acm.org added the comment:
You should contact pyserial.
--
nosy: +brian.curtin
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11080
SilentGhost ghost@gmail.com added the comment:
At the moment test fails only for os module on windows.
These are the offending names: putenv, spawnv, spawnve
The reason is that __all__ is extended with ntpath.__all__ and then again in
the body of os.py (I'm not entirely sure how this
Changes by Jesús Cea Avión j...@jcea.es:
--
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8998
___
___
R. David Murray rdmur...@bitdance.com added the comment:
Well, the test stops testing after the first failure. Perhaps another
enhancement request would be to make test__all__ a parameterized test so that
it tests all modules even if one or more fail.
On linux, the dups are putenv and
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Mon, Jan 31, 2011 at 12:09 PM, R. David Murray
rep...@bugs.python.org wrote:
..
On linux, the dups are putenv and unsetenv. And yes, deeper investigation of
why
os.py is adding them is required to fix this :)
Too
R. David Murray rdmur...@bitdance.com added the comment:
Well, checking if the token is there before adding it would certainly be a fix,
but I think it would be worth understanding why it gets added if it is already
there, because instead perhaps it is possible to simply remove the adding code
New submission from SilentGhost ghost@gmail.com:
the following issue was introduced in r81947:
from struct import *
pack_into
Traceback (most recent call last):
File pyshell#1, line 1, in module
pack_into
NameError: name 'pack_into' is not defined
struct.__all__ has a duplicate
SilentGhost ghost@gmail.com added the comment:
new issue #11081 was created for struct.__all__ fix
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8973
___
R. David Murray rdmur...@bitdance.com added the comment:
I'll leave priority setting to tarek, but it doesn't look to me like raising
the priority is going to make any difference, since it doesn't sound from
reading the ticket like anyone has found a solution yet (other than offering
64bit
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I would say if anything can go in after rc2 at all, this should be accepted.
George?
I ran a few sanity checks with the patch applied:
set(struct.__all__) - set(dir(struct))
set()
set(dir(struct)) -
R. David Murray rdmur...@bitdance.com added the comment:
FYI, a python traceback is not a segfault. Nor is it a 'crash' in the sense we
use in this tracker.
The warning has been added to the download page, though there is discussion
about whether or not it should be more prominent.
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Yeah I agree. Until we get a solution + patch the priority here does not really
matter.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6792
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
dependencies: +from struct import * misses pack_into
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11078
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11081
___
David Meier djme...@gmail.com added the comment:
Sorry that what I had pasted in does not show a segfault, however if you run it
as `idle` (i.e. no `(idle)) the command line reports a generic Segmentation
fault with no traceback. So, yes, it is a segmentation fault - but I figured
it was
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file16584/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8176
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file16615/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8176
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
It looks like the bug cannot be reproduced anymore. Since it was discovered
using a python instance with third-party extension modules, it may not even be
a python bug to begin with.
--
assignee: - belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Ryan,
Do you still have the setup that can reproduce this error? If so, can you try
running it with pickle rather than cPickle? If it works with pickle, please
see if you can reproduce the error by unpickling the
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file17899/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9197
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7358
___
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Amaury,
Can you post your Linux code reproducing the issue? I would like to take a
look, but don't want to dig through an XCode project.
--
assignee: - belopolsky
nosy: +belopolsky
title: Crash when importer an
STINNER Victor victor.stin...@haypocalc.com added the comment:
If you are still able to reproduce the bug, you may try the following module to
get a backtrace: https://github.com/haypo/faulthandler/
--
status: pending - open
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Victor,
I was thinking about pointing the OP to your faulthandler module, but decided
not to because in the failing thread python has already finished execution and
most of finalization. It is very unlikely that
Antoine Pitrou pit...@free.fr added the comment:
The issue looks quite clear: cStringIO.write() asserts that the required
storage size is less than INT_MAX. Therefore, in all likelihood, the pickle
dump is simply larger than 2GB.
Now, the cStringIO structures seem 64-bit safe, so the
Scott M scott.m...@comcast.net added the comment:
I don't have an opinion on 1252236. I'm not certain it would help.
I have an extension that runs a bunch of (alien) threads into Python code. The
threads deliver information for all sorts of real world events, asynchronously.
Multiple threads
Antoine Pitrou pit...@free.fr added the comment:
I wouldn't be surprised if the crash was related to some concurrency issues
during shutdown. Other (Python or not Python) threads can continue running
while the main thread is running Py_Finalize; this might be the reason; or
perhaps some
R. David Murray rdmur...@bitdance.com added the comment:
Eric, what you say is technically true, but we don't have any other place to
track PEP bugs.
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python, r.david.murray
resolution: invalid -
stage:
Changes by Brian Curtin cur...@acm.org:
--
title: Tkinter is not thread safe (and that's... bad) - Tkinter is not thread
safe
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11077
___
Georg Brandl ge...@python.org added the comment:
Yes, this can go in.
--
assignee: georg.brandl - belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11081
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Here are the files I used to reproduce the crash.
See build.sh for the build command, there may be better ways...
--
Added file: http://bugs.python.org/file20631/simpletest.zip
___
Python
Georg Brandl ge...@python.org added the comment:
Because I don't think porting every change immediately is worth my time when I
can do it much faster in mass-merges.
I know other developers do this differently, but since I use svnmerge to do my
mass-merges, there won't be any falling through
R. David Murray rdmur...@bitdance.com added the comment:
I see correct doc strings on both 2.7 head and 3.1.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue571767
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Hmm, either my hand is too slow or my laptop is too fast, but I cannot
reproduce the crash. Can you create a non-interactive script? Maybe start a
separate thread generating launch events?
What do you mean by crash? Do
Changes by Étienne BERSAC bersac...@gmail.com:
--
nosy: -Felix Schwarz
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
___
___
Changes by Étienne BERSAC bersac...@gmail.com:
--
nosy: +bersace
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
___
___
Python-bugs-list
Changes by Étienne BERSAC bersac...@gmail.com:
--
nosy: +Felix Schwarz
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
___
___
Python-bugs-list
New submission from William Wu willie...@gmail.com:
I found this bug when I started to trying Python 3.2 release candidate 1.
When using urllib.request.urlopen to handle HTTP POST, I got the error message:
ValueError: Content-Length should be specified for iterable data of type
class
New submission from Federico Culloca djthrot...@gmail.com:
In the threading module documentation, about the start() method of the
threading.Thread class, it says that, upon calling start() more then once, a
RuntimeException is raised. I couldn't find in the whole documentation other
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I converted TkinterCrash2.py to 3.x using 2to3 (result attached as
TkinterCrash3.py) and it works with 3.2rc2 just fine.
--
Added file: http://bugs.python.org/file20632/TkinterCrash3.py
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Committed in revision 88280.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by William Wu willie...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file20633/test_urllib_request.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11082
___
Changes by William Wu willie...@gmail.com:
Added file: http://bugs.python.org/file20634/urllib_request.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11082
___
Brian Curtin cur...@acm.org added the comment:
Thanks, fixed in r88281. Back porting to the other branches as well.
--
nosy: +brian.curtin
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.1, Python 3.2
___
New submission from GDR! g...@go2.pl:
xmlrpc.client (and xmlrpclib in 2.x) can't serialize instances of Decimal,
throwing TypeError instead. Because XML is a textual format, converting from
decimal to float may cause loss of data.
According to http://www.xmlrpc.com/spec, encoding Decimal as
Changes by Brett Cannon br...@python.org:
--
assignee: georg.brandl - brett.cannon
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11074
___
New submission from Raymond Hettinger rhettin...@users.sourceforge.net:
For the 3.3, make _abcoll (which is full of the collections abstract base
classes) visible as a module called collections.abc and document that as the
preferred way to access them.
For backwards compatibility, continue to
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10992
___
___
Brett Cannon br...@python.org added the comment:
Once Python 3.3 is open I will apply the cgi fix. Just to double-check, can I
close this issue once the test_cgi patch goes in?
--
assignee: georg.brandl - brett.cannon
___
Python tracker
Matt Cain cainm...@gmail.com added the comment:
I re-wrote encode() to be simpler and faster.
My version runs about 10 times faster on a 30KB message.
I have tested it somewhat but not rigorously
see attached patch
--
keywords: +patch
nosy: +cainmatt
Added file:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
-1 on an implicit, lossy conversion.
The principal reasons for using decimal in the first place is avoid
representation error. For example, when money is being represented as a
decimal, it is improper to convert it to
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - r.david.murray
nosy: +r.david.murray
stage: needs patch - patch review
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5803
R. David Murray rdmur...@bitdance.com added the comment:
Why not just put them in the 'abc' namespace? IMO, collections.abc.Callable
makes a lot less sense than abc.Mapping.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
stan mihai stanmih...@gmail.com added the comment:
ok, please also fix the first parameter of the tests. Because it has the same
value in the first call and the callback it will always be right by accident,
since the first call puts the value in both standard and floating point
registers.
O.C. oc-spa...@laposte.net added the comment:
Hello,
I read the proposed patch event_generate__data2.diff and the Tcl/Tk manual
http://www.tcl.tk/man/tcl8.5/TkCmd/bind.htm#M24
* Could you please also add a field e.user_data ? This would simply be a copy
of 'd' :
---
e.detail = d
e.user_data
New submission from Brett Cannon br...@python.org:
There is no reason why the 2to3 script can't be gutted and turned into just a
stub that uses runpy to call lib2to3.__main__. Also has the nice benefit that
one can use ``-m lib2to3`` instead of having to use the 2to3 script.
--
GDR! g...@go2.pl added the comment:
I didn't mean to implicitly convert Decimal to float. My point was that
xmlrpclib should serialize Decimals natively to avoid loss of precision when
converting to float and then to string.
Whether other party will be able to represent this number exactly or
1 - 100 of 132 matches
Mail list logo