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
(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
[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
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
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
[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
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 "
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
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
[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__
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
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
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
"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
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
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
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
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
101 - 118 of 118 matches
Mail list logo