Re: bound vs unbound functions

2005-01-29 Thread Kent Johnson
Michael Tobis wrote: I'm trying to do metaprogramming. I'm sure I've got this all wrong wrong wrong, but somehow my approach hasn't yet hit a brick wall. Anyway, I'd like to dynamically add a method to an instance at instantiation time. Something like ## In [71]: class quux(object): : d

Re: Coding style article with interesting section on white space

2005-01-29 Thread Michael Tobis
(unwisely taking the bait...) If you like your language to look like this http://www.cs.rpi.edu/~szymansk/OOF90/bugs.html then more power to you. I prefer my languages to be portable, terse and expressive. That's why I like Python. If you want your language to be obscure, ill-defined and inconsis

Re: cx_freeze error

2005-01-29 Thread Peter Hansen
[EMAIL PROTECTED] wrote: I am new to Python. I made a script, and compiled it with cx_freeze, but I got the following message from it: [cxfreeze]$./FreezePython hello.py Traceback (most recent call last): File "initscripts/ConsoleKeepPath.py", line 15, in ? exec code in m.__dict__ File "FreezePytho

nedd help on using Installer

2005-01-29 Thread zyqnews
hello: I am using Install to create a standalone program for linux. What I has done is : [Installer]$cd source/linux [linux]$python Make.py [linux]$make [Installer]$cd ../../ [Installer]$python Configure.py [Installer]$python Makespec.py hello.py [Installer]$python Build.py hello Traceback (most r

Re: cx_freeze error

2005-01-29 Thread zyqnews
There is no any module like "re.py", I just compiled the hello.py it has only one line: print "hello!" Anyone knows how? -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_freeze error

2005-01-29 Thread Peter Hansen
[EMAIL PROTECTED] wrote: There is no any module like "re.py", I just compiled the hello.py it has only one line: print "hello!" Interesting. Just to confirm, could you try this? Run Python, and at the interactive prompt, type the following: >>> import re >>> re.compile >>> re.__file__ (path to

Re: [Tkinter] problem

2005-01-29 Thread Jeff Epler
These lines > if __name__ == '__main__': > OptionsWindow() mean "if this source code is the main program (not an imported module), call OptionsWindow()". So the behavior should be different when the source code is the main program ('python opt_newlogin.py') and when it's imported ('python -c "

Re: What's so funny? WAS Re: rotor replacement

2005-01-29 Thread Paul Rubin
Skip Montanaro <[EMAIL PROTECTED]> writes: > >> * Quixote > > Paul> Don't know what this is. > > Web app framework. I think Python should add a web app framework to its core, again since it otherwise can't seriously begin to compete with PHP. However, there are lots of approaches so thi

Re: cx_freeze error

2005-01-29 Thread zyqnews
Thanks for your answer. I tried it and the result is: [cxfreeze]$ python Python 2.2.3 (#1, Oct 15 2003, 23:33:35) [GCC 3.3.1 20030930 (Red Hat Linux 3.3.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> re.compile >>> re.__file__ '/usr/lib/py

Re: cx_freeze error

2005-01-29 Thread Peter Hansen
[EMAIL PROTECTED] wrote: Thanks for your answer. I tried it and the result is: [cxfreeze]$ python Python 2.2.3 (#1, Oct 15 2003, 23:33:35) [GCC 3.3.1 20030930 (Red Hat Linux 3.3.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. import re re.compile re.__file__

[Plone] Detailed poll results?

2005-01-29 Thread Adam Twardoch
Hello, Is there a method, or an alternative module that could be used, to have "polls" in Plone that display detailed results of the poll, i.e. all users and the votes they have given? Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: Coding style article with interesting section on white space

2005-01-29 Thread beliavsky
Michael Tobis wrote: > (unwisely taking the bait...) > > If you like your language to look like this > http://www.cs.rpi.edu/~szymansk/OOF90/bugs.html > then more power to you. Thanks for pointing out that interesting article on Fortran 90 bugs. How long would a comparable C++ list be? Even Python

Re: what's OOP's jargons and complexities?

2005-01-29 Thread Larry
Xah Lee wrote: > in computer languages, often a function definition looks like this: > [EMAIL PROTECTED] > http://xahlee.org/PageTwo_dir/more.html Your ideas are original, insightful and simply reflect incredibly deep creative genius. I have read your work and I want to hire you for highly cl

Re: is this sort method the same as the one in python 2.4

2005-01-29 Thread Raymond Hettinger
"Lowell Kirsh" > I'm trying to emulate the sorted() method introduced in python 2.4. The > only difference is that it takes a sequence as one of its arguments > rather than being a method of the sequence class. Does my method do the > same as the sorted()? Almost. This is closer to the mark: def

Trouble installing numeric

2005-01-29 Thread Chris Weisiger
I'm trying to install numeric on my MacOS X box using Darwin, with the eventual goal of satisfying all of PyGame's dependencies so I can finally start working on my semester project. I would be using MacPython, except that I can't seem to get its Package Manager to work. Anyway, when I

Re: is this sort method the same as the one in python 2.4

2005-01-29 Thread Fredrik Lundh
Raymond Hettinger wrote: >> I'm trying to emulate the sorted() method introduced in python 2.4. The >> only difference is that it takes a sequence as one of its arguments >> rather than being a method of the sequence class. Does my method do the >> same as the sorted()? > > Almost. This is closer

Re: Trouble installing numeric

2005-01-29 Thread Robert Kern
Chris Weisiger wrote: I'm trying to install numeric on my MacOS X box using Darwin, with the eventual goal of satisfying all of PyGame's dependencies so I can finally start working on my semester project. I would be using MacPython, except that I can't seem to get its Package Manager to work. A

Need programming tip

2005-01-29 Thread ssaeed1973
I am trying to write a program in python (brand new to Python) that would create a database of posts made to binary groups so the user can search for a certain file and have a nzb file returned. I am planning on using the XOVER command to get the list of posts and then dump those into a database. T

<    1   2