[issue4326] type of UserList instance returns class instead of instance

2008-11-18 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: I repeat, what is this easy condition good for? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4326 ___ ___

[issue1694663] Overloading int.__pow__ does not work

2008-11-18 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- assignee: georg.brandl - zseil ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1694663 ___ ___

[issue2736] datetime needs and epoch method

2008-11-18 Thread Anders J. Munch
Anders J. Munch [EMAIL PROTECTED] added the comment: Any thoughts to time zone/DST handling for naive datetime objects? E.g. suppose the datetime object was created by .utcnow or .utcfromtimestamp. For aware datetime objects, I think the time.mktime(dt.timetuple()) approach doesn't work; the tz

[issue2029] python -m pydoc -g fails

2008-11-18 Thread Nick Coghlan
Changes by Nick Coghlan [EMAIL PROTECTED]: -- nosy: +ncoghlan ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2029 ___ ___ Python-bugs-list mailing list

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-11-18 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Christian, is this still a problem for you after the release or can we close it? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082 ___

[issue4343] New function in Tkinter.py: setup_master

2008-11-18 Thread Guilherme Polo
New submission from Guilherme Polo [EMAIL PROTECTED]: Hi, I've added a new function called setup_master. This function is responsible for returning an usable master to the caller, or fail and say so. The function is useful for any wrapper basically, since all them has to set up a master

[issue4343] New function in Tkinter.py: setup_master

2008-11-18 Thread Guilherme Polo
Changes by Guilherme Polo [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12041/applying_setup_master.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4343 ___

[issue4343] New function in Tkinter.py: setup_master

2008-11-18 Thread Guilherme Polo
Changes by Guilherme Polo [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12040/setup_master.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4343 ___

[issue4343] New function in Tkinter.py: setup_master

2008-11-18 Thread Guilherme Polo
Changes by Guilherme Polo [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12042/setup_master.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4343 ___

[issue4344] crash upon launch

2008-11-18 Thread kasper
New submission from kasper [EMAIL PROTECTED]: Hi I'm new at programming and have chosen to start with python, and so I have installed python 2.6, and played around with it a little. However, a problem has occured: yesterday when i tried to run the program - pythonwin editor 2.6.0 - a crash

[issue3767] tkColorChooser may fail if no color is selected

2008-11-18 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: I've noticed a problem with the previous patch, so this new one includes a comment too so people can remember about the check being applied. -- versions: +Python 2.5.3, Python 2.7 Added file:

[issue4345] Implement nb_nonzero for PyTclObject

2008-11-18 Thread Guilherme Polo
New submission from Guilherme Polo [EMAIL PROTECTED]: Implementing it makes this crazy check in http://bugs.python.org/issue3767 (http://bugs.python.org/file12043/tkColorChooser.diff) be no longer needed -- components: Tkinter files: _tkinter__nonzero__.diff keywords: patch messages:

[issue4346] PyObject_CallMethod changes the exception message already set by PyObject_GetAttr

2008-11-18 Thread Guilherme Polo
New submission from Guilherme Polo [EMAIL PROTECTED]: Why is PyObject_CallMethod resetting the exception message that is already set (if an exception happened, that is) by PyObject_Getattr ? -- components: Interpreter Core files: abstract_dont_re_set_except_msg.diff keywords: patch

[issue4347] Dependencies of graminit.h are not rebuilt when the file is regenerated

2008-11-18 Thread Thomas Lee
New submission from Thomas Lee [EMAIL PROTECTED]: It's important that dependencies of grammar.h get rebuilt if graminit.h is regenerated (e.g. the Grammar is modified). If these dependencies do not get rebuilt, the constants associated with each type of parse node will have inconsistent values

[issue4344] crash upon launch

2008-11-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: What URL precisely did you download Python from? Where precisely did you get pythonwin from? -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4344

[issue4348] bytearray methods returning self

2008-11-18 Thread Dino Viehland
New submission from Dino Viehland [EMAIL PROTECTED]: In 2.6 but not in 3.0 RC2: x = bytearray(b'abc') y = x.replace(b'abc', b'bar', 0) id(x) == id(y) In 2.6 and in 3.0 RC2: t = bytearray() for i in range(256): t.append(i) x = bytearray(b'') y = x.translate(t) id(x) == id(y) --

[issue4348] bytearray methods returning self

2008-11-18 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- priority: - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4348 ___ ___

[issue4349] sys.path includes extraneous junk

2008-11-18 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone [EMAIL PROTECTED]: With a recent build of the py3k branch, sys.path ends up with this element: /home/exarkun/Projects/python/branches/py3k/Lib/[EMAIL PROTECTED]@ which doesn't exist and doesn't look like it should exist. plat-linux2, which does exist,

[issue4344] crash upon launch

2008-11-18 Thread kasper
kasper [EMAIL PROTECTED] added the comment: i got it from this URL, which i believe is indeed not phoney: http://www.activestate.com/store/productdetail.aspx?prdGuid=b08b04e0-6872-4d9d-a722-7a0c2dea2758 it's their own homepage. would you happen to know why this happens? the problem occurs

[issue4348] bytearray methods returning self

2008-11-18 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: I verified that the results for 3.0c2 are False (correct) and True (bug). Guido today on pydev: this is a bug IMO and we should fix it in 2.6.1 and 3.0rc3 -- nosy: +tjreedy ___ Python tracker [EMAIL

[issue4348] bytearray methods returning self

2008-11-18 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: I'll try to come up with some tests and a fix later. -- nosy: +christian.heimes stage: - needs patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4348

[issue4348] bytearray methods returning self

2008-11-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Attaching patch. -- keywords: +needs review, patch nosy: +benjamin.peterson Added file: http://bugs.python.org/file12047/make_sure_to_copy.patch ___ Python tracker [EMAIL PROTECTED]

[issue4344] crash upon launch

2008-11-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: If this is a problem in ActivePython, please report it to ActiveState. This bug tracker is for bugs in Python only as downloaded from www.python.org. -- resolution: - invalid status: open - closed versions: +3rd party

[issue4348] bytearray methods returning self

2008-11-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Here's another patch for 2.7/2.6 that handles the translation problem correctly. It appears that the return_self problem isn't present in 3.0, but that can be handled in the merge. Added file:

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2008-11-18 Thread Eric Huss
Eric Huss [EMAIL PROTECTED] added the comment: I'm disappointed to see this closed. Exception pickling is still broken in some cases in 2.6. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1692335 ___

[issue4116] name conflict in ScrolledCanvas.__init__() in Lib/turtle.py

2008-11-18 Thread Gregor Lingl
Gregor Lingl [EMAIL PROTECTED] added the comment: I'd like to see this patch accepted and done for Python 2.6.1 and (at the same time) python 3.0 before the last rc is released. So could you dedicate a few minutes to reviewing it. To demonstrate the nature of this issue (and also the nuisance

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2008-11-18 Thread Gregor Lingl
Gregor Lingl [EMAIL PROTECTED] added the comment: I'd also like to see this patch accepted and done for Python 2.6.1 and (at the same time) python 3.0 before the last rc is released. So perhaps you could you dedicate a few minutes to this one also. Thanks for your efforts, Gregor

[issue4349] sys.path includes extraneous junk

2008-11-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Here's a simple patch. -- keywords: +needs review, patch nosy: +benjamin.peterson priority: - release blocker Added file: http://bugs.python.org/file12049/remove_old_cruft.patch ___ Python

[issue4349] sys.path includes extraneous junk

2008-11-18 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Go on -- nosy: +christian.heimes resolution: - accepted ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4349 ___

[issue4349] sys.path includes extraneous junk

2008-11-18 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Fixed in r67269. -- resolution: accepted - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4349 ___

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2008-11-18 Thread Eric Huss
Eric Huss [EMAIL PROTECTED] added the comment: In the attached test_exception_pickle.py file, class C and D cannot be unpickled (raises TypeError). class C(Exception): Extension with values, args not set. def __init__(self, foo): self.foo = foo class D(Exception): Extension

[issue4317] Buffer overflow in imageop module

2008-11-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Fixed in revisions r67266, 67267, r67268, r67270: (trunk, 2.6, 2.5, 2.4) -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4317

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2008-11-18 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- nosy: -benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1692335 ___ ___

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2008-11-18 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: OK, reopening. Can you post an example that fails today? -- resolution: out of date - status: closed - open ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1692335

[issue4117] missing update() in _Screen.setup() of Lib/turtle.py

2008-11-18 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Why are you using update instead of update_idletasks ? I'm not talking exactly about this line being added, but this ends up calling TurtleScreenBase._update which calls self.cv.update(), cv being a canvas. update_idletasks should be used

[issue4350] Remove dead code from Tkinter.py

2008-11-18 Thread Guilherme Polo
New submission from Guilherme Polo [EMAIL PROTECTED]: There are some methods (which call tk commands) that no longer exist, for a long time now so this patch remove them. There are also these indices functions, which do not belong to the module space and now are gone too. -- files:

[issue4351] [PATCH] Better stacklevel for GzipFile.filename DeprecationWarning

2008-11-18 Thread Philip Jenvey
New submission from Philip Jenvey [EMAIL PROTECTED]: This should be a stacklevel of 2 so we're told who accessed the attribute -- components: Library (Lib) files: gzip-deprecation_r67276.diff keywords: patch messages: 76031 nosy: pjenvey severity: normal status: open title: [PATCH]

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: I can reproduce it here with tk8.4, using tk8.5 doesn't cause this. -- nosy: +gpolo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028 ___

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I indeed tested that the PyPI user registration refuses non-ascii characters in both username and password. But the reported error is only the first of a bytes/str mess. See attached patch. - I chose to encode package metadata with

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Here is a patch that doesn't use magic numbers :P I didn't hit the problem described in issue4313 with this one, and PythonCmd should be doing this anyway, but ideally we should move to Tcl_CreateObjCommand. Added file:

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Guilherme Polo
Changes by Guilherme Polo [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12053/PythonCmd_check_for_utf.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028 ___

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Removed some repeated code in the patch Added file: http://bugs.python.org/file12054/PythonCmd_check_for_utf.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028

[issue4348] bytearray methods returning self

2008-11-18 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: Since 3.0c2 bytearray.translate() *does* return self with no change, I don't understand your first comment, unless you meant 'is' instead of 'is not'. But I presume merging forward will fix it. ___ Python

[issue1108] Problem with doctest and decorated functions

2008-11-18 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: I applied this patch to my trunk sandbox. It seems to solve the problem I just encountered where doctests are hidden in decorated functions tests pass. Checked in as r67277. Should be backported to 2.6 and forward ported to 3.0. --

[issue1108] Problem with doctest and decorated functions

2008-11-18 Thread Skip Montanaro
Changes by Skip Montanaro [EMAIL PROTECTED]: -- stage: patch review - committed/rejected ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1108 ___ ___

[issue4352] imp.find_module() causes UnicodeDecodeError with non-ASCII search paths

2008-11-18 Thread Jukka Aho
New submission from Jukka Aho [EMAIL PROTECTED]: imp.find_module() seems to cause an UnicodeDecodeError when the path list contains paths with non-ASCII names. Tested on Windows [1]; see the attached test case which demonstrates the problem. [1] Python 3.0rc2 (r30rc2:67141, Nov 7 2008,

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2008-11-18 Thread Jukka Aho
Changes by Jukka Aho [EMAIL PROTECTED]: -- title: imp.find_module() causes UnicodeDecodeError with non-ASCII search paths - imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths ___ Python tracker [EMAIL

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I think Hagen's strategy is about right: report one problem at a time. Of course, it would speed up the process if Hagen would provide a patch that fixes a number of such issues at one. Without such an effort, it is likely that distutils in

[issue4338] TypeError (bytes/str) in distutils command upload

2008-11-18 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Your patch seems to contain a number of unrelated changes, such as introducing an abbreviation for http.client, and using .reqest() instead of putrequest/putheader/endheaders/send. What is the rationale for these changes? If they are unrelated

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2008-11-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I confirmed PythonCmd_check_for_utf.diff worked on my machine. IDLE didn't crash. I can reproduce it here with tk8.4, using tk8.5 doesn't cause this. That is, this is a bug of tk8.4, and solved in tk8.5 which is already stable release? If