[Tutor] get a module's own (top_level) dict?

2008-11-09 Thread spir
Hello pyhonistas, Example: === module content === a = 1 b = 2 == I'm looking for a way to get something like {'a':a, b':2}. Actually, names defind in the module will be instances of a custom type. I want to give them an attribute that holds their own name. E.g.: for key,ob

Re: [Tutor] Upgrading from Python 2.5 to Python 2.6 - IDLE not working...

2008-11-09 Thread Lie Ryan
On Sat, 08 Nov 2008 18:34:54 -0500, Dan wrote: > Hi All, > > This is my first post, so I apologize in advance for any etiquette > violations. > > I am interested in learning Python, and to that end, I undertook to > upgrade my current version of Python 2.5 (available via openSUSE > repositories

Re: [Tutor] get a module's own (top_level) dict?

2008-11-09 Thread Lie Ryan
On Sun, 09 Nov 2008 11:34:37 +0100, spir wrote: > Hello pyhonistas, > > Example: > === module content === > a = 1 > b = 2 > == > > I'm looking for a way to get something like {'a':a, b':2}. Actually, > names defind in the module will be instances of a custom type. I want to >

Re: [Tutor] get a module's own (top_level) dict?

2008-11-09 Thread Kent Johnson
On Sun, Nov 9, 2008 at 5:34 AM, spir <[EMAIL PROTECTED]> wrote: > Hello pyhonistas, > > Example: > === module content === > a = 1 > b = 2 > == > > I'm looking for a way to get something like {'a':a, b':2}. Actually, names > defind in the module will be instances of a custom type

Re: [Tutor] Question

2008-11-09 Thread Rich Lovely
All you really need for python is a basic text editor, and the interpretter. Everything else is icing. Notepad++ has syntax highlighting support for python, and sounds as if it has brace and bracket completion. Most people here will tell you that auto- completion in python is a complex issue

Re: [Tutor] cgi scripts

2008-11-09 Thread Tim Johnson
On Saturday 08 November 2008, Kent Johnson wrote: > On Sat, Nov 8, 2008 at 3:38 AM, Jim Morcombe <[EMAIL PROTECTED]> wrote: > > I think the problem wasn't in getting the keys and values, but I might > > have been producing illegal HTML code before. > > I think I'd better brush up on my HTML skills

Re: [Tutor] get a module's own (top_level) dict?

2008-11-09 Thread Kent Johnson
On Sun, Nov 9, 2008 at 3:42 PM, spir <[EMAIL PROTECTED]> wrote: > Thank you Lie & Kent, that's it. Excuse me, Lie, I answered too fast. > Now, to answer Kent questions, there are several reasons why I wish to do > that. > These objects will be of a 'pattern' type that (unlike function, for > instan