Hello, I searched the web and python.org but I haven't found a good resource
that explains how to upgrade python from 2.4 to 2.5
What I'm wondering is whether I'll have to start from scratch on the
installation of all my external modules such as Numpy, Matplotlib, PyXML,
etc...
Could someone
repost as didn't reply to list first time:
2008/6/12 Michael yaV [EMAIL PROTECTED]:
A little background on myself. I am a web designer so I am a Mac person. I
have taught myself HTML and flash by reading manuals and a lot of trial and
error over the last 11 years. I have always wanted to
On Wed, Jun 11, 2008 at 5:31 PM, washakie [EMAIL PROTECTED] wrote:
Hello, I searched the web and python.org but I haven't found a good resource
that explains how to upgrade python from 2.4 to 2.5
What I'm wondering is whether I'll have to start from scratch on the
installation of all my
On Wed, Jun 11, 2008 at 3:58 PM, Stephen Nelson-Smith
[EMAIL PROTECTED] wrote:
Hello,
This has to include resources which have not been visited, as the
point is to clean out old stuff.
Ah, I missed that part.
Take a look at AWStats (not Python).
Doesn't this 'only' parse weblogs?
It
In the following code the __init__ for C would end calling two times
object.__init__ . Is this ok or I calling for trouble ? To make
explicit some context: object is the std python object super
is not suposed to be used in any subclass
Why not? This seems to me the problem super is
Yes, it's worth it. It makes it trivial to write simple database
applications.
The smaller the program, the more useful they are.
Both SQLObject and SQLAlchemy have their strengths and weaknesses.
SQLObject will get you and going up really fast. Its really simple to
create
a schema and to
On 11/06/2008, Timo [EMAIL PROTECTED] wrote:
Hello, I'm writing a program in Python/pyGTK and I need to be root 2
times. The first time is to open a file, let's say menu.lst. I use
os.system('gksudo gedit /boot/grub/menu.lst'), so that works. But what
if I have a copy of the file on my
On Monday 09 June 2008 17:51, W W wrote:
Hi,
I've done some cursory searches, and it doesn't appear that what I
want to do is popular, if it's even possible.
I'm trying to control other applications via python (specifically
my web browser).
My hope is there is some way to emulate a series
On Wed, Jun 11, 2008 at 7:20 PM, claxo [EMAIL PROTECTED] wrote:
OTOH why are you calling object.__init__() ? I don't think that is
needed... Kent
I dont know what object may do in his __init__ method, so at least calling
object.__init__(self) seems sensible. Also, the same page advises
On Wed, Jun 11, 2008 at 11:16 AM, W W [EMAIL PROTECTED] wrote:
However, my personal preference is using vi/vim (which you should have
built in on your mac, along with python).
If you open a mac terminal window and type vimtutor at the prompt,
it should start the vim tutor program. There are
On Jun 11, 2008, at 12:58 PM, Stephen Nelson-Smith wrote:
Take a look at AWStats (not Python).
Doesn't this 'only' parse weblogs? I'd still need some kind of spider
to tell me all the possible resources available wouldn't I? It's a
big website, with 1000s of pages.
If you have pages which
On Wed, Jun 11, 2008 at 10:48 AM, Michael yaV [EMAIL PROTECTED] wrote:
So, can anybody head me in the right direction with my endeavor?
I've read 'Programming Python Third Edition' by Mark Lutz.
O'Reilly Assoc., 2006. ISBN 0596009259. It has a lot of
stuff about doing things with the Net in it.
On Wed, 11 Jun 2008 20:47:48 -0400 Kent Johnson [EMAIL PROTECTED] wrote:
This thread has both points of view:
http://coding.derkeiler.com/Archive/Python/comp.lang.python/2004-12/4599.html
I think if you are using super() then your classes that inherit from
object still need to call
I just got Python installed on my Dell laptop running Windows Vista Business.
Can someone recommend a good text editor to use for Python programming? Some
people seem to like PythonWin. In the past I have use ConText.
Thanks!
___
Tutor
Hi Max and everyone,
Max, your reply-to only went to me. You have to work harder to get it to
go to the whole list.
Anyway, my advice is to post your new program and see what people say.
Marilyn
Original Message
Subject: Re: [Tutor]
On Wed, Jun 11, 2008 at 3:11 PM, Trey Keown [EMAIL PROTECTED] wrote:
Hey all,
I'm creating a program that will copy a user's internet history from
Internet Explorer, and I'm having a bit of trouble.
I need to get python to either initiate a command via the command prompt,
or open a file
Christopher Spears ha scritto:
I've been working out of Core Python Programming (2nd Edition). Here is an
example demonstrating multiple inheritance.
class A(object):
... pass
...
class B(A):
... pass
...
class C(B):
... pass
...
class D(A, B):
... pass
...
Traceback
(tried to write a descriptive subject line)
I'm curious whether I should consider learning either SQLObject
or SQLAlchemy, and whether my needs would be worth it. I am
learning to use SQlite databases for fairly simple storage and later
search, and have only recently learned about object
Hello, I'm writing a program in Python/pyGTK and I need to be root 2
times. The first time is to open a file, let's say menu.lst. I use
os.system('gksudo gedit /boot/grub/menu.lst'), so that works. But what
if I have a copy of the file on my desktop? I use shutil.copyfile() to
copy the file from
I am trying to improve my code quality and have started using doc
strings. What format do you guys use for your doc strings ?
I have 'made up' the following general format ...
def gen_vhost(kmotion_dir):
Generate the kmotion vhost file from vhost_template expanding %directory%
I am trying to improve my code quality and have started using doc
strings. What format do you guys use for your doc strings ?
I have 'made up' the following general format ...
def gen_vhost(kmotion_dir):
Generate the kmotion vhost file from vhost_template expanding %directory%
Hi,
Silly question but how do you use python's re module to find
dictionary items that contain the '$' symbol.
Thanks
David
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Thanks for all your help guys, I am getting a strong consensus that
f.close() should be used everywhere, reading files as well as writing
files and not to rely on the PVM to do clean-up for you.
The whole topic came up because I just finished reading 'learning
python' 3rd edition OReilly as a
(20080611) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist - Tutor
How to add a delete button in your web page in Python
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Wed, Jun 11, 2008 at 2:25 AM, simone [EMAIL PROTECTED] wrote:
Christopher Spears ha scritto:
Traceback (most recent call last):
File stdin, line 1, in ?
TypeError: Error when calling the metaclass bases
Cannot create a consistent method resolution
order (MRO) for bases B, A
What
On Wed, Jun 11, 2008 at 12:17 AM, Christopher Spears
[EMAIL PROTECTED] wrote:
tcm.foo
bound method classobj.foo of class __main__.TestClassMethod at 0xb7da0f2c
According to the author, the result for typing in 'tcm.foo' is
calling class method foo()
foo() is part of class: TestClassMethod
--
Message: 4
Date: Wed, 11 Jun 2008 10:35:30 +0100 (GMT+01:00)
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: [Tutor] RegEx to search for the '$' symbol
To: tutor@python.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain;charset=UTF-8
Hi,
On Wed, Jun 11, 2008 at 5:35 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
Silly question but how do you use python's re module to find
dictionary items that contain the '$' symbol.
There is no need to use re for this.
[ v for v in d.values() if '$' in v ]
will give you a list of all
thank you all.
__
New Online ID Theft Protection - http://www.tiscali.co.uk/spyguard
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Greetings,
I want to make a dynamic dashboard, something like:
http://examples.adobe.com/flex3/labs/dashboard/main.html#
but using python. Is it possible ?
Thanks in advance.
Best regards,
Gabriela Soares.
--
Gabriela Soares
I learned that courage was not the absence of fear, but the
Why not have python copy the text to the clipboard for you? You will need
the win32 packages, which is hardly a turnoff since they are so useful.
import win32clipboard
win32clipboard.OpenClipboard()
win32clipboard.EmptyClipboard()
win32clipboard.SetClipboardText(text)
On Wed, Jun 11, 2008 at 9:48 AM, Michael yaV [EMAIL PROTECTED] wrote:
A little background on myself. I am a web designer so I am a Mac person. I
have taught myself HTML and flash by reading manuals and a lot of trial and
error over the last 11 years. I have always wanted to learn a language
On Wed, Jun 11, 2008 at 8:03 AM, Gabriela Soares
[EMAIL PROTECTED] wrote:
Greetings,
I want to make a dynamic dashboard, something like:
http://examples.adobe.com/flex3/labs/dashboard/main.html#
but using python. Is it possible ?
Yes.
-Wayne
___
I am nto an expert but this might help:
http://gaeswf.appspot.com/examples/initial/flex/
Norman
Gabriela Soares wrote:
Greetings,
I want to make a dynamic dashboard, something like:
http://examples.adobe.com/flex3/labs/dashboard/main.html#
but using python. Is it possible ?
Thanks
I use PythonWin and find the Interactive Python Window invaluable.
Does anyone know which of the IDE's mentioned above have a similar
feature. (I'm on Vista,sorry!)
Thanks.
___
Tutor maillist - Tutor@python.org
Hi,
I've been asked to produce a report showing all possible resources in
a website, together with statistics on how frequently they've been
visited. Nothing fancy - just number and perhaps date of last visit.
This has to include resources which have not been visited, as the
point is to clean
To name a few:
. you can specify the keyboard behaviour (Vi, Emacs,...)
. Syntax help
. debugging: step, break, etc, debug I/O window
. python shell
I used Vi before to write all my code. Infact I still do, but for
python, I use Wingware :-)
Cheers!
Wim
On 10 Jun 2008, at 23:21, Dick
as a fun little project i scripted a powerball program. it seems to
have a bug in it that i cant find.
from random import randrange
wins=0
win=[]
count =0
while count !=5:
number=randrange(55)+1
win.append(number)
count=count+1
powerball=randrange(42)+1
count=0
win.sort()
while
max baseman wrote:
as a fun little project i scripted a powerball program. it seems to
have a bug in it that i cant find.
To echo Kent: tell us the expected outcome and why you think there is a
bug.
Also please add a comment explaining the magic number 146107962.
Also add a comment about
Hello,
This has to include resources which have not been visited, as the
point is to clean out old stuff.
Take a look at AWStats (not Python).
Doesn't this 'only' parse weblogs? I'd still need some kind of spider
to tell me all the possible resources available wouldn't I? It's a
big
In the following code the __init__ for C would end calling two times
object.__init__ .
Is this ok or I calling for trouble ?
To make explicit some context:
object is the std python object
super is not suposed to be used in any subclass
class A(object):
def __init__(self,**kwargs):
On Wed, Jun 11, 2008 at 4:05 PM, claxo [EMAIL PROTECTED] wrote:
In the following code the __init__ for C would end calling two times
object.__init__ .
Is this ok or I calling for trouble ?
To make explicit some context:
object is the std python object
super is not suposed to be used
43 matches
Mail list logo