On Fri, 8 Apr 2005, C Smith wrote:
> Tony wrote:
> With Python 2.4 I get these results (all imports are factored
> out, all give
> the same result except for CSV which strips the "s) with
> timeit.py:
>
> Just a note here in terms of results. Although the results are all
Tony wrote:
With Python 2.4 I get these results (all imports are factored out,
all givethe same result except for CSV which strips the "s) with
timeit.py:
Just a note here in terms of results. Although the
results are all the same and they work for the case where there is
single quoted phrase wit
Personally, I tend to winRar. Paying for software isn't a bad thing. Open source != free.
On Apr 9, 2005 2:35 PM, Lee Harr <[EMAIL PROTECTED]> wrote:>>I'm a newbie. My friend asked me for a help. He wanted to backup his files>>into multi disks zip file. Is there any possibilities for me to help him
Hi Øyvind, A few errors in this here function - > def message():> print New_Toplevel_1.v.get()> # print self.v.get() This doesn't seem to work eitherYour class New_Toplevel_1 is not instantiated as New_Toplevel_1 - you created an instance of it as >w = New_Toplevel_1 (root)So def message
I'm a newbie. My friend asked me for a help. He wanted to backup his files
into multi disks zip file. Is there any possibilities for me to help him
by
using python?
Err... you probably could, but why reinvent the wheel? WinZip?
winzip is not free, and I always found it terribly annoying.
Info-ZI
On Sat, 9 Apr 2005, j2 wrote:
> Well, doesn't fly for me, because I can't install it. Can you offer any
> help on the below?
Hi J2,
This is a slightly specialized question for tutor; you might be able to
get some better help by asking on the db-sig mailing list:
http://mail.python.org/mail
I need a backup editor for IDLE, so I'm trying Notepad++. It looks nice, but there is no direct support for running Python.What you have to do is click the "Run" menu item and then you type the command line for the Python interpreter. This should be simple; there are only to .exe files: python and
>I had the same question. The best I found is this:
>http://www.object-craft.com.au/projects/mssql/
>but that has a lot of strong language saying "this isn't ready for use".
>
>I found it perfectly usable for simply running queries, but haven't tried
>to do anything more complicated with it. Not
Rick Muller wrote:
On Apr 8, 2005, at 11:37 AM, [EMAIL PROTECTED] wrote:
From: joe_schmoe <[EMAIL PROTECTED]>
For example, this is what I am currently doing:
=code block
# generate unique numbers and append to list
nmbr01 = random.randrange( 1, 20 )
On Fri, 8 Apr 2005 [EMAIL PROTECTED] wrote:
> I've noticed that after 20 or 30 compile/link/execute runs, IDLE
> crashes. This seems to happen pretty consistently. At the time, I'm not
> doing anything that might cause it to crash. Does this happen to anyone
> else? What causes it? Is it just a
Bernard Lebel wrote on Fri, 8 Apr 2005 15:05:13 -0400:
> I'm experimenting with basic inheritance concepts, and something that
> I would assume to work returns an error.
>
class A:
> ... def __init__( self ):
> ... self.a = 13
> ...
class B( A ): # create sub-class of cl
Thank you Jeff
Case Closed until I test it with MySQL blob typeI'll let you know hot it went
Thanks guys
AlbertoFrom: "Jeffrey Maitland" <[EMAIL PROTECTED]> >To: tutor@python.org >Subject: [Tutor] Re: Support >Date: Fri, 08 Apr 2005 15:00:19 -0400 > >Alberto Troiano writes: > >>
Hello,
I'm experimenting with basic inheritance concepts, and something that
I would assume to work returns an error.
>>> class A:
... def __init__( self ):
... self.a = 13
...
>>> class B( A ): # create sub-class of class A
... def __init__( self ):
... self.b =
Alberto Troiano wrote:
Thanks
Apparently it worked but one question do
What kind of data is the return of the function tostring()
It's a string
Can i put it in a blob type of a databaseor maybe in a longtext??
I would try longtext.
Kent
___
Tutor
Alberto Troiano writes:
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I would personally use a blob. That is why they are there. To store that
binary data. I am sure you could use a longtext but this way space
On Apr 8, 2005, at 11:37 AM, [EMAIL PROTECTED] wrote:
From: joe_schmoe <[EMAIL PROTECTED]>
For example, this is what I am currently doing:
=code block
# generate unique numbers and append to list
nmbr01 = random.randrange( 1, 20 )
nmbr_list.append( n
Thanks
Apparently it worked but one question do
What kind of data is the return of the function tostring()
Can i put it in a blob type of a databaseor maybe in a longtext??
That'll be allThanks for the reply Kent
Alberto>From: Kent Johnson <[EMAIL PROTECTED]> >CC: tutor@python.org >Subject:
ot;
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050408/42201ce3/attachment-0001.html
--
Message: 2
Date: Fri, 08 Apr 2005 16:55:26 +0100
From: joe_schmoe <[EMAIL PROTECTED]>
Subject: [Tutor] Recursive list checking
To:
Yes, Danny - that makes sense. I was getting hung up how to handle the
parens in this part
dict['some'](thing)
all clear now.
:-)
On Apr 7, 2005 4:40 PM, Danny Yoo <[EMAIL PROTECTED]> wrote:
>
>
> On Thu, 7 Apr 2005, Luke Jordan wrote:
>
> > I am looking for a little clarification of how exa
Jeffrey Maitland wrote:
joe_schmoe writes:
Dear Pythonites
I am looking for a more elegant solution to a piece of code that is
too unwieldy and reptitive. The purpose of the code is for a new
addition to a list to check whether it is a duplicate of a list
element already a member of that list, a
On Fri, 8 Apr 2005, Kent Johnson wrote:
> Marilyn Davis wrote:
> > Is there a reason to prefer one over the other? Is one faster? I
> > compiled my regular expression to make it quicker.
>
> The only way to know which is faster is to time them both. The timeit module
> makes it pretty easy to
Jeffrey Maitland writes:
joe_schmoe writes:
Dear Pythonites
I am looking for a more elegant solution to a piece of code that is too
unwieldy and reptitive. The purpose of the code is for a new addition to
a list to check whether it is a duplicate of a list element already a
member of tha
joe_schmoe writes:
Dear Pythonites
I am looking for a more elegant solution to a piece of code that is too
unwieldy and reptitive. The purpose of the code is for a new addition to a
list to check whether it is a duplicate of a list element already a member
of that list, and if so to regenera
Alberto Troiano wrote:
I tried the code below but the image gets messed up:
import Image
im=Image.open("auto.jpg")
im.show() ###This is to show the image so you can see it
m=im.tostring()
ima=Image.fromstring("RGB",im.size,m)###I tried also with F,RGBA
and L mode instead of RGB
maybe ima=Image.fro
Kent Johnson wrote:
joe_schmoe wrote:
Greetings
I am attempting to compare the items in two lists across two criteria
- membership and position. For example:
list_a = [ 0, 4, 3, 6, 8 ]
list_b = [ 1, 8, 4, 6, 2 ]
Membership = There are 3 items that are common to both lists, that is
3 items in lis
Dear Pythonites
I am looking for a more elegant solution to a piece of code that is too
unwieldy and reptitive. The purpose of the code is for a new addition to
a list to check whether it is a duplicate of a list element already a
member of that list, and if so to regenerate itself randomly and
Hi
Thanks Brian for the tip
I tried the code below but the image gets messed up:
import Image
im=Image.open("auto.jpg")
im.show() ###This is to show the image so you can see it
m=im.tostring()
ima=Image.fromstring("RGB",im.size,m)###I tried also with F,RGBA and L mode instead of RGB
ima.show()
Than
Alberto Troiano said unto the world upon 2005-04-08 10:35:
I am trying to make an application with Python 2.3.4, PIL 1.1.5 and
I want to convert an image file to binary so I can store it in a
MySQL database and then retrieve it and show it from binary to
Image again so I can show the image
Please h
I am trying to make an application with Python 2.3.4, PIL 1.1.5 and I want to convert an image file to binary so I can store it in a MySQL database and then retrieve it and show it from binary to Image again so I can show the image
Please help
Thanks
Alberto
___
On Apr 8, 2005 6:29 AM, BRINER Cedric <[EMAIL PROTECTED]> wrote:
>
> <(hint: rsmFirstname = françois)>
>
> import pickle
>
> q=pickle.dumps(a)
> >>> type(q)
>
> so this is a string
>
> >>> unicode(q)
> Traceback (most recent call last):
> File "", line 1, in ?
> UnicodeDecodeError: 'ascii' co
Kevin gmail.com> writes:
> Well this OOP stuff is realy hard for me as I have never even
> programmed it took me a while just to understand defs. However I am
> determined to learn how to do it. My biggest problem is with __init__
> I still don't understand how to use it. Though I did try somthin
The freetds project talks to Sybase and mssql
http://www.freetds.org/
http://mail.python.org/pipermail/db-sig/2005-April/004403.html
A new sybase module has been released. Note the instructions for
installing with freetds.
--
Lloyd Kvam
Venix Corp
_
Alan Gauld wrote:
this exemple will also works if you replace the:
super(C,self).__init__( *args, **kw)
by
dict.__init__(self, *args, **kw)
but I do not understand this dict.__init_... call.
Shouldn't you call the super class constructor??
super is just a convenience feature added to make Python s
hi,
sorry to relaunch this topie but I really need this to work. (o.o)'
how can I have an unicode pickled data ???
e.g.
a={'partition': u'/export/diskH1/home_evol/ricquebo',
'rsmFirstname': u'Fran\xe7ois',
'rsmLastname': u'Ricquebourg',
'size': u'8161222.0',
'size_max': '1'}
<(hint: rsmFirstna
Hello.
I am trying to make a little gui. It has a button and a checkbox. If I
push the button, it is supposed to print the value of the checkbox. But, I
can not seem to get it right. How should I define the variable? Where
should I put it? I have tried every way possible, and gotten lots of
differ
Hi Brian,
Thanks for the help. I'll get the code.
Ony.
-Original Message-
From: Brian van den Broek [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 12:58 PM
To: Dionysius Malle
Cc: tutor@python.org
Subject: Re: [Tutor] How to create multi disks zip file
***
Y
> > super is just a convenience feature added to make Python slightly
> > more like some other OOP languages. It is effectively just a
> > wrapper around the explicit call to the super class:
> >
> > Thus super(C,self...) is the same as
> >
> > dict.__init__(self...)
> after you telling me that dic
Marilyn Davis wrote:
Is there a reason to prefer one over the other? Is one faster? I
compiled my regular expression to make it quicker.
The only way to know which is faster is to time them both. The timeit module makes it pretty easy to
do this.
Here is a simple example of using timeit for a d
> Well this OOP stuff is realy hard for me as I have never even
> programmed it took me a while just to understand defs.
That's OK, OOP is quite a strange concept for many folks. Its
actually easier to learn as a beginner than for folks who
have been programming without OOP for a long time!
> det
Thanks to Matt, Kent and Danny for helping me with my regex question. I
will try your suggestions this morning.
In response to Danny's question about tokenising first, there are reasons
why I don't want to do this - the initial problem was that filenames in my
test data were being tokenised as
> > 1-
> > this exemple will also works if you replace the:
> > super(C,self).__init__( *args, **kw)
> > by
> > dict.__init__(self, *args, **kw)
> >
> > but I do not understand this dict.__init_... call.
> > Shouldn't you call the super class constructor??
>
> super is just a convenience feature a
Well this OOP stuff is realy hard for me as I have never even
programmed it took me a while just to understand defs. However I am
determined to learn how to do it. My biggest problem is with __init__
I still don't understand how to use it. Though I did try somthing
different with my code rather the
Bob Gailer alum.rpi.edu> writes:
> At 12:22 PM 4/7/2005, Andrei wrote:
> >Kevin gmail.com> writes:
> >
> > > I am fooling around with classes and I was trying to create a very
> > > small one player text adventure. I made a class called commands here
> >I don't think you're making proper use of
43 matches
Mail list logo