From slumbaby at yahoo.com Tue May 2 18:17:03 2006 From: slumbaby at yahoo.com (slumbaby) Date: Tue, 2 May 2006 09:17:03 -0700 (PDT) Subject: [Idle-dev] idle doesn't install on fedora core 5 Message-ID: <20060502161703.62735.qmail@web33509.mail.mud.yahoo.com> hi, can anyone tell me if a complete install will aotomatically create the idle gui? I've installed core 5 4 times but have only 3.6 gigs of space. So now I am waiting on a 40gig hard drive. Also, do I need to configure python2.4 or is it all done during install. I really want to program in python, that is my goal but I want idle real bad. Thanks Greg The Fatman walks alone. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From glingl at aon.at Thu May 4 01:03:02 2006 From: glingl at aon.at (Gregor Lingl) Date: Thu, 04 May 2006 01:03:02 +0200 Subject: [Idle-dev] Bug in Calltips + patch Message-ID: <445936A6.70101@aon.at> Hello, I've (re?)-discovered a bug in IDLE call-tips. If you define a function like: >>> def f(x=''): pass Idle displays the following calltip: (x=) Likewise for >>> def g(x='abc'): pass the calltip is (x=abc) for >>> def h(x=(1,2,3)): pass the calltip remains empty. I submit a quick patch which shows the reason for this and repairs it. May be you'll find a better or more universal or more beautiful one. Take it as a suggestion directing in the (hopefully) right direction. It's the function get_arg_text() in CallTips.py, which has to be changed, e.g. in the following way: def get_arg_text(ob): "Get a string describing the arguments for the given object" #### --- add helper function stringify --- #### def stringify(t): if isinstance(t,tuple): return str(t) elif isinstance(t,str): return "'%s'" % t else: return t argText = "" if ob is not None: argOffset = 0 if type(ob)==types.ClassType: # Look for the highest __init__ in the class chain. fob = _find_constructor(ob) if fob is None: fob = lambda: None else: argOffset = 1 elif type(ob)==types.MethodType: # bit of a hack for methods - turn it into a function # but we drop the "self" param. fob = ob.im_func argOffset = 1 else: fob = ob # Try and build one for Python defined functions if type(fob) in [types.FunctionType, types.LambdaType]: try: realArgs = ob.func_code.co_varnames[argOffset:fob.func_code.co_argcount] defaults = fob.func_defaults or [] #### --- ... and use it here --- #### defaults = list(map(lambda name: "=%s" % stringify(name), defaults)) defaults = [""] * (len(realArgs)-len(defaults)) + defaults items = map(lambda arg, dflt: arg+dflt, realArgs, defaults) if fob.func_code.co_flags & 0x4: items.append("...") if fob.func_code.co_flags & 0x8: items.append("***") argText = ", ".join(items) argText = "(%s)" % argText except: pass # See if we can use the docstring doc = getattr(ob, "__doc__", "") if doc: doc = doc.lstrip() pos = doc.find("\n") if pos < 0 or pos > 70: pos = 70 if argText: argText += "\n" argText += doc[:pos] return argText (Attention: possibly strange linebreaks caused by email client) If the bug has been corrected already, please ignore this message. If this is the wrong place to submit a patch like this, please direct me to the right one. I've read that there is an alpha release of IDLE v1.2. Where can I get it? Regards, Gregor Lingl -- Gregor Lingl Reisnerstrasse 3/19 A-1030 Wien Telefon: +43 1 713 33 98 Mobil: +43 664 140 35 27 Website: python4kids.net From noamraph at gmail.com Sat May 6 21:38:47 2006 From: noamraph at gmail.com (Noam Raphael) Date: Sat, 6 May 2006 22:38:47 +0300 Subject: [Idle-dev] Bug in Calltips + patch In-Reply-To: <445936A6.70101@aon.at> References: <445936A6.70101@aon.at> Message-ID: Hello, This bug was fixed in the current version of IDLE, along with a general improvement of the calltips mechanism. Have a good day, Noam From ronaldoussoren at mac.com Thu May 11 22:19:56 2006 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Thu, 11 May 2006 22:19:56 +0200 Subject: [Idle-dev] IDLE on OSX Message-ID: Hello, I have done some work in making IDLE a (slightly) better MacOSX citizen, mostly by moving some menu's around (such as having an IDLE- >About IDLE menu). Those changes are currently only in the python24- fat tree. There's more to do to get an application that doesn't look totally out of place. From the top of my head: * The resize handle in the lower right corner of the editor and shell windows obscures part of the status bar * Popup windows (such as the preferences window) look totally wrong * I don't think it is currently possible to associate IDLE with .py/.pyw files * General tweakage of window & menu layout to improve the look of things. I have two questions regarding all of this: 1. Is there someone reading this list that uses a mac and would like to work on this? These tweaks were my first encounter with tkinter, which makes progress slow ;-). 2. Does someone want to review patches to IDLE or can I just checkin? So-much-to-do-and-so-little-time-ly yours, Ronald From nnorwitz at gmail.com Fri May 12 05:21:09 2006 From: nnorwitz at gmail.com (Neal Norwitz) Date: Thu, 11 May 2006 20:21:09 -0700 Subject: [Idle-dev] IDLE on OSX In-Reply-To: References: Message-ID: I'm pretty good about reviewing all checkins. Though I'm pretty bad about reviewing patchs on SF. -- n On 5/11/06, Ronald Oussoren wrote: > Hello, > > I have done some work in making IDLE a (slightly) better MacOSX > citizen, mostly by moving some menu's around (such as having an IDLE- > >About IDLE menu). Those changes are currently only in the python24- > fat tree. > > There's more to do to get an application that doesn't look totally > out of place. From the top of my head: > > * The resize handle in the lower right corner of the editor and shell > windows obscures part of the status bar > > * Popup windows (such as the preferences window) look totally wrong > > * I don't think it is currently possible to associate IDLE > with .py/.pyw files > > * General tweakage of window & menu layout to improve the look of > things. > > I have two questions regarding all of this: > > 1. Is there someone reading this list that uses a mac and would like > to work on this? These tweaks were my first encounter with tkinter, > which makes progress slow ;-). > > 2. Does someone want to review patches to IDLE or can I just checkin? > > So-much-to-do-and-so-little-time-ly yours, > > Ronald > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > From guido at python.org Fri May 12 06:51:24 2006 From: guido at python.org (Guido van Rossum) Date: Thu, 11 May 2006 21:51:24 -0700 Subject: [Idle-dev] IDLE on OSX In-Reply-To: References: Message-ID: In the specific case of IDLE I'd await Kurt Kaiser's judgement. He sometimes disappears for a week -- who knows why, sometimes it's blamed on his ISP. On 5/11/06, Neal Norwitz wrote: > I'm pretty good about reviewing all checkins. Though I'm pretty bad > about reviewing patchs on SF. -- n > > On 5/11/06, Ronald Oussoren wrote: > > Hello, > > > > I have done some work in making IDLE a (slightly) better MacOSX > > citizen, mostly by moving some menu's around (such as having an IDLE- > > >About IDLE menu). Those changes are currently only in the python24- > > fat tree. > > > > There's more to do to get an application that doesn't look totally > > out of place. From the top of my head: > > > > * The resize handle in the lower right corner of the editor and shell > > windows obscures part of the status bar > > > > * Popup windows (such as the preferences window) look totally wrong > > > > * I don't think it is currently possible to associate IDLE > > with .py/.pyw files > > > > * General tweakage of window & menu layout to improve the look of > > things. > > > > I have two questions regarding all of this: > > > > 1. Is there someone reading this list that uses a mac and would like > > to work on this? These tweaks were my first encounter with tkinter, > > which makes progress slow ;-). > > > > 2. Does someone want to review patches to IDLE or can I just checkin? > > > > So-much-to-do-and-so-little-time-ly yours, > > > > Ronald > > _______________________________________________ > > IDLE-dev mailing list > > IDLE-dev at python.org > > http://mail.python.org/mailman/listinfo/idle-dev > > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > -- --Guido van Rossum (home page: http://www.python.org/~guido/) From ronaldoussoren at mac.com Fri May 19 19:42:24 2006 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Fri, 19 May 2006 19:42:24 +0200 Subject: [Idle-dev] macosx L&F patches Message-ID: <9D4BDB29-D07A-475E-8B99-CEF0D732747D@mac.com> Hi, I've uploaded a patch that implements most of the GUI changes I'd like to see on macosx. It is python patch #1491759. Could somebody please have a look at this? I've tried to ensure that the patch has no effect on other platforms. Ronald From edreamleo at charter.net Thu May 25 00:00:12 2006 From: edreamleo at charter.net (Edward K. Ream) Date: Wed, 24 May 2006 17:00:12 -0500 Subject: [Idle-dev] Questions re idle's debugger Message-ID: <000801c67f7d$6e7e5350$6400a8c0@EDWARDOFFICE> Hello all, Two questions: 1. How can code tell whether it is being run from Idle's debugger? 2. How can code being run from Idle's debugger simulate a breakpoint, such as pdb.set_trace() does? Yes, pdb.set_trace() does work, but I want to enable idle's debugging console and get all of Idle's nice debugging features. Thanks. Edward P.S. I've studied Idle's debugger code for several hours and the answers are not exactly jumping out at me :-) Perhaps it would be good to create wrapper functions (no idea where) to make these tasks easier. Or maybe they already exist? EKR -------------------------------------------------------------------- Edward K. Ream email: edreamleo at charter.net Leo: http://webpages.charter.net/edreamleo/front.html -------------------------------------------------------------------- From leonardo at riseup.net Wed May 31 15:37:36 2006 From: leonardo at riseup.net (Leonardo Gregianin) Date: Wed, 31 May 2006 09:37:36 -0400 Subject: [Idle-dev] Line colored in Python2.5.a2 Message-ID: <447D9C20.9080109@riseup.net> In line: print ('file %s has %d lines' % (filename, line) IDLE Python 2.5.a2 occurs token error that it doesn't occur in the IDLE Python 2.4.1. IDLE Python 2.4.1 colors next line and IDLE Python 2.5.a2 go to last line in file, don't show where error occurs. Screenshots here: http://paginas.terra.com.br/arte/pk/2.4.1.PNG http://paginas.terra.com.br/arte/pk/2.5a2.PNG This is a bug? Regards, leonardo