[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: You can open script made in python 2.x and it stops immediately working after saving, if it is coding-aware. You can have bigger project and use idle for editing config and text files from this project too. It is "unfair" to change without notification the encodin

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: I forgot about "Perhaps IDLE should offer to convert it on opening." That would be nice, too. ___ Python tracker ___ __

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: Here is a patch to provide an explicit message that the file will be converted when the file is opened (also querying what encoding should be converted from), answering the complaint that the conversion is without notice. If you want to edit Python 2.x scripts

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Sorry, where is the patch? ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- keywords: +patch Added file: http://bugs.python.org/file12561/conv.diff ___ Python tracker ___ ___ Pyth

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- keywords: +needs review priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list maili

[issue4796] Decimal to receive from_float method

2009-01-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> marketdickinson keywords: +needs review -patch Added file: http://bugs.python.org/file12562/decimal2.diff ___ Python tracker

[issue4796] Decimal to receive from_float method

2009-01-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file12558/decimal.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: OK, I got it. In my opinion it would nice if user can either convert file to utf8 or to do nothing and add new encodings declaration or cancel. Current "Cancel" gives an Decoding error. If you give an encodings that doesn't exist, it shouldn't destroy IDLE. Hop

[issue4796] Decimal to receive from_float method

2009-01-03 Thread Mark Dickinson
Mark Dickinson added the comment: Instead of the repeated divisions and Inexact tests, how about a direct approach: n/2**k = (n*5**k)/10**k, so something like: sign = 0 if copysign(1.0, self) == 1.0 else 1 n, d = abs(self).as_integer_ratio() k = d.bit_length() - 1 return _dec_

[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-03 Thread Thomas Finley
New submission from Thomas Finley : This is a patch for the Python 3.1 build checked out from http://svn.python.org/projects/python/branches/py3k The current behavior of itertools.combinations(iterable,r) and itertools.permutations(iterable,r) is to throw a ValueError if iterable yields fewer th

[issue4608] urllib.request.urlopen does not return an iterable object

2009-01-03 Thread Jakub Wilk
Jakub Wilk added the comment: Oops, __next__ is OK. Sorry for the confusion. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue4817] PyOS_GetLastModificationTime is unused

2009-01-03 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt : This is just to record that the above function is wrongly documented, inconsistently implemented, but fortunately unused, so it can be removed. In addition to the patch attached, there are two files that can be removed: Python/getmtime.c RISCOS/Python/getmti

[issue4751] Patch for better thread support in hashlib

2009-01-03 Thread ebfe
Changes by ebfe : Removed file: http://bugs.python.org/file12557/md5module_small_locks.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4796] Decimal to receive from_float method

2009-01-03 Thread Mark Dickinson
Mark Dickinson added the comment: A couple more things: 1. There's a typo 'equilvalent' in the decimal.py part of the patch. 2. Can I suggest using return d._fix(self) instead of return self.plus(d) in create_decimal_from_float. The plus method does two things: rounds to the current con

[issue4818] Patch for thread-support in md5module.c

2009-01-03 Thread ebfe
New submission from ebfe : Here is another patch, this time for the fallback-md5-module. I know that situations are rare where openssl is not present but threading is. However they might occur out there and the md5module needed some love anyway: - The MD5 class from the fallback module can now a

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > In my opinion it would nice if user can either convert file to utf8 or > to do nothing and add new encodings declaration or cancel. Ypu can still add an encoding declaration after the file got converted. Cancelling is also possible. > If you give an encodin

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file12561/conv.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4818] Patch for thread-support in md5module.c

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: ebfe, please identify yourself with a real name; please also sign a contributor form. -- nosy: +loewis ___ Python tracker ___ _

[issue4812] Junk in the decimals namespace

2009-01-03 Thread Mark Dickinson
Mark Dickinson added the comment: Done (r68191 through r68194). -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-03 Thread Mark Dickinson
Mark Dickinson added the comment: I agree that the proposed behaviour seems more correct: the collection of all subsets of size 4 of range(3) is perfectly valid and well-defined; it just happens to be empty. I've also encountered this in practice (in code that was enumerating partitions of

[issue4751] Patch for better thread support in hashlib

2009-01-03 Thread ebfe
ebfe added the comment: Haypo, we can probably reduce overhead by defining ENTER_HASHLIB like this: #define ENTER_HASHLIB(obj) \ if ((obj)->lock) { \ if (!PyThread_acquire_lock((obj)->lock, 0)) { \ Py_BEGIN_ALLOW_THREADS \ PyThread_acquire_lock((obj)->lock, 1

[issue1717] Get rid of more refercenes to __cmp__

2009-01-03 Thread Mark Dickinson
Mark Dickinson added the comment: [Georg Brandl, on spark.py] > This is used by asdl_c.py which generates Python-ast.c -- it should be > updated. The only issue here is a single comment, which reads: # GenericASTMatcher. AST nodes must have "__getitem__" and "__cmp__" Still, I'm reluctant t

[issue1717] Get rid of more references to __cmp__

2009-01-03 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- title: Get rid of more refercenes to __cmp__ -> Get rid of more references to __cmp__ ___ Python tracker ___ _

[issue4580] slicing of memoryviews when itemsize != 1 is wrong

2009-01-03 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- keywords: -needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue4580] slicing of memoryviews when itemsize != 1 is wrong

2009-01-03 Thread Martin v. Löwis
Changes by Martin v. Löwis : -- assignee: -> pitrou resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4818] Patch for thread-support in md5module.c

2009-01-03 Thread Lukas Lueg
Lukas Lueg added the comment: Sent the form by fax ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue4819] Misc/cheatsheet needs updating

2009-01-03 Thread Mark Dickinson
New submission from Mark Dickinson : Misc/cheatsheet could do with an upgrade, both for the 2.x and 3.x branches. For 3.x, I guess the changes needed are quite extensive. I'm not sure how much needs to be changed or added for 2.x; at a quick glance, the 'with' statement, the 'x if b else y' con

[issue4753] Faster opcode dispatch on gcc

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm not an expert in this kind of optimizations. Could we gain more > speed by making the dispatcher table more dense? Python has less than > 128 opcodes (len(opcode.opmap) == 113) so they can be squeezed in a > smaller table. I naively assume a smaller table

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2009-01-03 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: I'm getting confused about whether it's actually desired behaviour that generators can be star arguments. The error message seems to say it's not: "argument after * must be a sequence". The docs seem to agree: "If the syntax *expression appears in the function

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file11200/tkinter_remove_mainloop.patch ___ Python tracker ___ ___ Python-bugs

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread STINNER Victor
STINNER Victor added the comment: > Tkapp_Mainloop is supposed to work both as a module function > and a method, and it tests for self to find out which > case it is. Now, this test is apparently broken in 3.x, ... Ok. In Python 2.x, selfptr is NULL whereas selfptr is a pointer to the module

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Ok. In Python 2.x, selfptr is NULL whereas selfptr is a pointer to the > module in Python 3.x. New attached patch uses PyModule_Check() to > check if selfptr is the module or an object. The patch looks right in principle. Please make sure not to include pr

[issue4811] invalid reST markup in several documents

2009-01-03 Thread Akira Kitada
Akira Kitada added the comment: Could you also fix the indentation of "Queues" example code at http://docs.python.org/library/multiprocessing.html#exchanging-objects-between-processes ? -- nosy: +akitada ___ Python tracker

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Guilherme Polo
Guilherme Polo added the comment: Victor, you seem to be confusing "code that supports it" with "functions that use it". There are some conditional code inside Tkapp_MainLoop that depends on self being available, that is what Martin meant by code that supports it, and since it would no longer be

[issue4811] invalid reST markup in several documents

2009-01-03 Thread Georg Brandl
Georg Brandl added the comment: Done. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opt

[issue4818] Patch for thread-support in md5module.c

2009-01-03 Thread Lukas Lueg
Lukas Lueg added the comment: fixed naming, lock get's tried before releasing the gil to wait for it Added file: http://bugs.python.org/file12568/md5module_small_locks-2.diff ___ Python tracker

[issue4818] Patch for thread-support in md5module.c

2009-01-03 Thread Lukas Lueg
Changes by Lukas Lueg : Removed file: http://bugs.python.org/file12565/md5module_small_locks.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue4820] ctypes.util.find_library incorrectly documented

2009-01-03 Thread David M. Beazley
New submission from David M. Beazley : In the "ctypes reference / Finding shared libraries" section of the ctypes documentation, the find_library() function is described as being located in ctypes.util. However, it's formal description right below that lists it as ctypes.find_library(). ---

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Now, I'm much more in favour to remove it from moduleMethods than from > adjusting it to work in py3k. Would you apply the same reasoning to the other Tkapp methods available on _tkinter? IIRC, these functions were there first; the Tkapp object was added la

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: seems to be working. Seems to me now I get it. The file encoding is ruled by the encoding declaration. When I stated # -*- coding: cp1250 -*- then the file would be saved in cp1250. Now hoping that I would keep this issue, cause it comes with this patches: w

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Now hoping that I would keep this issue, cause it comes with this > patches: when I open file *with* say # -*- coding: cp1250 -*-, I am > asked to change to utf8. This behaviour was not before and is probably > unwanted. Actually, the behavior was there

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread STINNER Victor
STINNER Victor added the comment: > Victor, you seem to be confusing "code that supports it" with "functions > that use it" Oh ok, I didn't understood what "code that supports it" mean. > There are some conditional code inside Tkapp_MainLoop that > depends on self being available, that is wha

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Guilherme Polo
Guilherme Polo added the comment: > Martin v. Löwis added the comment: > >> Now, I'm much more in favour to remove it from moduleMethods than from >> adjusting it to work in py3k. > > Would you apply the same reasoning to the other Tkapp methods available > on _tkinter? > As I see all those fu

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Well, thanks a lot. (aware this is really off this issue): Now I even get the system of patches - issue 4008 solved the inconvenience in print Unicode signs inside IDLE. Still not sure how works patches for Python versions. I vote for including this a that patc

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > But I don't see a RPC being used there, I just see some polling. Consider Tkapp_Call (e.g.). If this is invoked in the Tk interpreter thread, then there is a direct call to Tcl_EvalObjv/Tkapp_CallResult. If the call is made from a different thread, then a T

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > I > vote for including this a that patch about IDLE even in some 3.0.1, not > only in branch 3.1. This is my plan, yes - hence I marked them all release-critical. They still need review. I agree that IDLE in 3.0 is fairly broken wrt. non-ASCII characters. I

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Guilherme Polo
Guilherme Polo added the comment: > Martin v. Löwis added the comment: > >> But I don't see a RPC being used there, I just see some polling. > > Consider Tkapp_Call (e.g.). If this is invoked in the Tk interpreter > thread, then there is a direct call to Tcl_EvalObjv/Tkapp_CallResult. > > If th

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > This is all true but the dispatching isn't used there actually. > dispatching is being used in a polling manner to try to catch the > thread running the tcl interpreter which someone tried to call into, > the code then proceeds to do what you described. Righ

[issue4821] Patches for thread-support in built-in SHA modules

2009-01-03 Thread Lukas Lueg
New submission from Lukas Lueg : Here is the follow-up to issue #4818. The patches attached allow the built-in SHA modules to release the GIL. Also the build-in SHA modules will now no longer accept "s#" as input. Input is parsed just as in the openssl-driven classes where unicode-objects are ex

[issue4751] Patch for better thread support in hashlib

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure about the approach of dynamically allocating self->lock. Imagine you allocate this lock while another thread is between ENTER_HASHLIB and LEAVE_HASHLIB. What happens on LEAVE_HASHLIB? The thread tries to release a lock it hadn't acquired (because th

[issue4821] Patches for thread-support in built-in SHA modules

2009-01-03 Thread Lukas Lueg
Changes by Lukas Lueg : -- keywords: +patch Added file: http://bugs.python.org/file12569/sha1module_small_locks.diff ___ Python tracker ___ ___

[issue4821] Patches for thread-support in built-in SHA modules

2009-01-03 Thread Lukas Lueg
Changes by Lukas Lueg : Added file: http://bugs.python.org/file12570/sha256module_small_locks.diff ___ Python tracker ___ ___ Python-bugs-list

[issue4821] Patches for thread-support in built-in SHA modules

2009-01-03 Thread Lukas Lueg
Changes by Lukas Lueg : Added file: http://bugs.python.org/file12571/sha512module_small_locks.diff ___ Python tracker ___ ___ Python-bugs-list

[issue4580] slicing of memoryviews when itemsize != 1 is wrong

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch is committed in r68200, r68202. Thanks! ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue4822] Fix indentation in memoryobject.c

2009-01-03 Thread Antoine Pitrou
New submission from Antoine Pitrou : The rules state new files should be indented with 4-spaces, but indentation has no consistent indentation: parts of it are indented with tabs, others with spaces. We could probably reindent it all with 4-spaces, especially since it hasn't been backported to tr

[issue4580] slicing of memoryviews when itemsize != 1 is wrong

2009-01-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4751] Patch for better thread support in hashlib

2009-01-03 Thread Lukas Lueg
Lukas Lueg added the comment: The lock is created while having the GIL in EVP_update. No other function releases the GIL (besides the creator-function which does not need the local lock). Thereby no other thread can be in between ENTER and LEAVE while the lock is allocated. ___

[issue4817] PyOS_GetLastModificationTime is unused

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks for the patch. Committed as r68203 and r68204. -- nosy: +loewis resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue4753] Faster opcode dispatch on gcc

2009-01-03 Thread djc
Changes by djc : -- nosy: +djc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

[issue4822] Fix indentation in memoryobject.c

2009-01-03 Thread Georg Brandl
Georg Brandl added the comment: I think this is the kind of reindention that Guido approved of on python-dev, along with unicodeobject.c. -- nosy: +georg.brandl ___ Python tracker __

[issue4822] Fix indentation in memoryobject.c

2009-01-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: +1 -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue4823] idle height and place

2009-01-03 Thread Pavel Kosina
New submission from Pavel Kosina : Nearly always (after opening) is IDLE window outside visible area. Mainly the status bar is hidden under bottom windows menu bar. Same situation happens when choosing Window-Zoom Height from IDLE menu. xpsp3, 1024x768, py2.x-3.x -- components: IDLE mes

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-03 Thread Duncan McGreggor
Duncan McGreggor added the comment: I am a contributor to netaddr, having deprecated my own old and crufty IP address library in its favor. JP's comments on the library in this ticket are included in the set of reasons that I initially chose it to replace my own. When I first looked at the i

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Perhaps the following might be a prudent course: This sounds all good. It is better if the experts in a domain make a recommendation, than if some random committer makes a choice. > As for shutting down any project that is chosen, does such an action not >

[issue4822] Fix indentation in memoryobject.c

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file12572/reindent-memview.patch ___ Python tracker ___ _

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4822] Fix indentation in memoryobject.c

2009-01-03 Thread Georg Brandl
Georg Brandl added the comment: Do you expect a review? ;) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-03 Thread Duncan McGreggor
Duncan McGreggor added the comment: >> As for shutting down any project that is chosen, does such an action not >> leave older Python versions out in the cold? Shouldn't the project >> remain open to support Python versions < 2.7, with a highly visible note >> that the code is included in 2

[issue3959] Add Google's ipaddr.py to the stdlib

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: If there's going to be lots of discussion, perhaps it should be taken to python-dev? ___ Python tracker ___ _

[issue4718] wsgiref package totally broken

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: It is committed now in py3k and the 3.0 maintenance branch. Thanks all for your participation! -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue4823] idle height and place

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: sorry it is duplicate to issue 3286 pls close ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue3286] IDLE opens window too low on Windows

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: +1 -- nosy: +geon versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue4796] Decimal to receive from_float method

2009-01-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: The direct method is *much* faster! Applied Mark's suggestions. Committed as r68208 and r68211 . -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.1 ___ Python tracker

[issue4822] Fix indentation in memoryobject.c

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, committed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue4823] idle height and place

2009-01-03 Thread Guilherme Polo
Changes by Guilherme Polo : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue3329] API for setting the memory allocator used by Python

2009-01-03 Thread Neil Richardson
Neil Richardson added the comment: I'll be in agreement here. I integrated Python into a game engine not too long ago, and had to a do a fair chunk of work to isolate Python into it's own heap - given that fragmentation on low memory systems can be a bit of a killer. Would also make future up

[issue4718] wsgiref package totally broken

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Reopening, the patch actually produces failures when run with "python -bb", that is there are comparisons between str and bytes. See the errors at the end of http://www.python.org/dev/buildbot/3.x.stable/ppc%20Debian%20unstable%203.0/builds/26/step-test/0

[issue4718] wsgiref package totally broken

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: People, does this patch look ok to you? Added file: http://bugs.python.org/file12573/wsgiref-bb.patch ___ Python tracker ___ ___

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Guilherme Polo
Guilherme Polo added the comment: Here is a patch, two actually. The next one deprecates the functions in trunk Added file: http://bugs.python.org/file12574/issue3638.diff ___ Python tracker ___

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Guilherme Polo
Changes by Guilherme Polo : Added file: http://bugs.python.org/file12575/deprecated_funcs.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue4718] wsgiref package totally broken

2009-01-03 Thread Dmitry Vasiliev
Dmitry Vasiliev added the comment: Antoine Pitrou wrote: > People, does this patch look ok to you? Oh, didn't know about -bb. The patch looks OK for me. ___ Python tracker ___ __

[issue4718] wsgiref package totally broken

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le samedi 03 janvier 2009 à 20:24 +, Dmitry Vasiliev a écrit : > Dmitry Vasiliev added the comment: > > Antoine Pitrou wrote: > > People, does this patch look ok to you? > > Oh, didn't know about -bb. Well, it's meant to catch potential bugs. str and byt

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: These look fine. I think further changes are necessary: tkinter/__init__.py tries to load createfilehandler/deletefilehandler; this becomes redundant. Also, why did you leave DoOneEvent and Quit as-is - don't they fall into the same category? One minor nit: I

[issue4718] wsgiref package totally broken

2009-01-03 Thread Dmitry Vasiliev
Dmitry Vasiliev added the comment: Antoine Pitrou wrote: > There's another problem in that buildbot failure with the environment > variable "NO_PROXY". We'll see if it's still there after the patch. Strange error and it seems there is only part of the traceback. I've already seen such "partiall

[issue4718] wsgiref package totally broken

2009-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Strange error and it seems there is only part of the traceback. I've > already seen such "partially displayed" Python 3 traceback and error > actually can be in very different place. If you can reproduce such a problem, please open a bug. ___

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: I might have another problem with this patch and maybe also that one in issue 4008. Having a file with print ("ěščřžýáíé") # saved in cp1250 Open - confirm converting to utf8 - F5 - error: see attached file idleunicode1.jpg Added file: http://bugs.python.org/fi

[issue4718] wsgiref package totally broken

2009-01-03 Thread Dmitry Vasiliev
Dmitry Vasiliev added the comment: Antoine Pitrou wrote: >> Strange error and it seems there is only part of the traceback. I've >> already seen such "partially displayed" Python 3 traceback and error >> actually can be in very different place. > > If you can reproduce such a problem, please op

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > print ("ěščřžýáíé") > # saved in cp1250 I can't reproduce the problem. Can you please attach the exact file that failed to work? ___ Python tracker _

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Guilherme Polo
Guilherme Polo added the comment: > These look fine. I think further changes are necessary: > tkinter/__init__.py tries to load createfilehandler/deletefilehandler; > this becomes redundant. Indeed, I forgot to look into the Python code. I also see as redundant the checks for _tkinter._flatten

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Guilherme Polo
Guilherme Polo added the comment: > I get an empty string with the text below, but I was expecting some s/text/test ___ Python tracker ___ ___

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Martin v. Löwis napsal(a), dne 3.1.2009 22:24: > I can't reproduce the problem. Can you please attach the > exact file that failed to work? > You can use that one that is already here: cp1250.py. It is the same error with me.

[issue3638] tkinter.mainloop() is meaningless and crash: remove it

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > But these all would deserve another(s) issues, so I will be moving > "quit" and "dooneevent" from there too. I haven't tried reproducing these problems, but this all sounds plausible. So go ahead and check in all the changes for this issue. Don't forget Mi

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > You can use that one that is already here: cp1250.py. It is the same > error with me. Ok, then what are the exact steps to reproduce? What code base, what patches applied, what user interaction in what order? ___ Python

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Microsoft Windows XP [Verze 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\prg\Python30\Lib\idlelib>svn update# from http://svn.python.org/projects/python/branches/py3k/Lib/idlelib Restored 'AutoCompleteWindow.py' Restored 'ToolTip.py' Restored 'UndoDe

[issue4718] wsgiref package totally broken

2009-01-03 Thread Dmitry Vasiliev
Dmitry Vasiliev added the comment: Attached patch for test_urllib, possible source of the "NO_PROXY" problem. Added file: http://bugs.python.org/file12577/no_proxy.patch ___ Python tracker _

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: I see. Here is a revised patch. This sets the modified flag on the buffer after conversion, so that you get asked to save it before running it. Added file: http://bugs.python.org/file12578/conv.diff ___ Python tracker

[issue3638] Remove module level functions in _tkinter that depend on TkappObject

2009-01-03 Thread Guilherme Polo
Guilherme Polo added the comment: Thanks Martin, trunk: r68231 (blocked on py3k) py3k: r68237 release30-maint: r68239 -- resolution: -> fixed status: open -> closed title: tkinter.mainloop() is meaningless and crash: remove it -> Remove module level functions in _tkinter that depend

[issue4753] Faster opcode dispatch on gcc

2009-01-03 Thread Yann Ramin
Changes by Yann Ramin : -- nosy: +theatrus ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Yes. God job. ;-) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

  1   2   >