Op 2005-08-24, Magnus Lycka schreef <[EMAIL PROTECTED]>:
> Antoon Pardon wrote:
>> I think he did, because both expression are not equivallent
>> unless some implicite constraints make them so. Values where
>> both expressions differ are:
>>
>> start1=67, stop1=9, start2=10, stop2=29
>
> Ouch! T
Thank you for your praise of my little country, but depending on your
definition, the Netherlands might not be as civil as you assume. A lot of my
foreign collegues commplain about how rude the dutch can be.
Countries like sweden or japan seem to have much better manners.
As to which countries ha
michael <[EMAIL PROTECTED]> wrote:
>I have a question about Windows based python (2.4 and later).
>
>For example, if I make a script called test.py like so:
>
>import sys
>print sys.argv
>
>then run it:
>
>python test.py this is a test
>
>I see a list with
>
>['test.py', 'this', 'is', 'a', 'test'
Hi all
Im trying to learn wxpython by some samples and Ive come across this.
After change EVT_MENU lines from
EVT_MENU(self, ID_OPEN, self.OnOpen) to
self.Bind(wx.EVT_MENU, self.OnOpen)
It can run, but the menu points all trigger the openfile dialog.
Seems like the last bind rules them all.
What
Mike Schilling wrote:
> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
>> "Mike Schilling" <[EMAIL PROTECTED]> writes:
>>> "l v" <[EMAIL PROTECTED]> wrote in message
Xah Lee wrote:
> (circa 1996), and email should be text only (anti-MIME, circa 1995),
I think e-mail shoul
An easy question, but I don't find the answer in the docs :-(
I have a sqlite3 database containing accented characters (latin-1).
How do I set the right encoding? For instance if I do this:
#-*- encoding: latin-1 -*-
from pysqlite2 import dbapi2 as sqlite
import os
DBFILE="/tmp/example.db"
def w
Well, I have used factories of properties external to the class many
times,
and they work pretty well.
Michele Simionato
--
http://mail.python.org/mailman/listinfo/python-list
Michele Simionato ha scritto:
> An easy question, but I don't find the answer in the docs :-(
> I have a sqlite3 database containing accented characters (latin-1).
> How do I set the right encoding? For instance if I do this:
>
Hi,
i usually use this "string" method:
encode([encoding[,errors]])
>But yes, the Netherlands is a highly civilised country - up there with
>Denmark and Canada, and above the UK, France or Germany, IMNERHO. I'm not
>going to bother comparing it to the US!
>
>
How strange that you put Canada so high on your list.
--
http://mail.python.org/mailman/listinfo/pyth
Should I just put a "Proposed PEP" message here? Or is there a more
formal way?
Thanks,
Ken
--
http://mail.python.org/mailman/listinfo/python-list
Thanks micheal, for help.
I think this could solve most of problem.
--
K Naren,MeTel Team.
http://www.midascomm.com/
--
http://mail.python.org/mailman/listinfo/python-list
I found this subject
line in a post to this list on Jan 30, 2004. Does anybody know if this is
possible?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
many thanks to all the fellows who cared to answer!
bye
max
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to overload the divide operator in python for basic arithmetic.
eg. 10/2 ... no classes involved.
I am attempting to redefine operator.__div__ as follows:
# my divide function
def safediv(a,b):
return ...
# reassign buildin __div__
import operator
Hi all,
> What you are "comparing" is either IO times (the "print loop" program),
> where Perl beats C - which means that Perl's IO have been written at a
> very low level instead of relying on the stdlib's IO -
i'd like to know what aspects are really coded in very low level for python ?
rega
H!
I'm searching for the fastest way to convert a list to one big string.
For example:
test = ['test','test2','test3']
print unlist(test)
> test test2 test3 (string)
I know I can make a loop like below but is that the fastest/best option
?
def unlist(test):
output=''
for v in test:
output
Hi
does anyone know how to get a column type from a database using jdbc
and python?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Kenneth McDonald wrote:
> Should I just put a "Proposed PEP" message here? Or is there a more
> formal way?
See PEP 1.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Kenneth McDonald wrote:
> Should I just put a "Proposed PEP" message here?
"Proposed Python Enhancement Proposal"? A bit redundant, don't you
think? :-)
I think "pre-PEP" is the usual term.
> Or is there a more
> formal way?
Not until you get to the post-pre-PEP stage. By all means, please d
my husband is installing an extra bathroom poolside. there is a perfect size
hole (unless you have a huge cock) to stick your dick through into the adjoing
room. come around the side of my house(perfect if you look like a repair man)
enter into the unfisnished bathroom and I'll service you fro
[EMAIL PROTECTED] wrote:
> H!
>
> I'm searching for the fastest way to convert a list to one big string.
>
> For example:
> test = ['test','test2','test3']
>
> print unlist(test)
>
>>test test2 test3 (string)
>
>
>
> I know I can make a loop like below but is that the fastest/best option
> ?
Grant Edwards wrote:
> On 2005-08-23, praba kar <[EMAIL PROTECTED]> wrote:
> > What why it is more efficient. Kindly let me
> > know with some details.
>
> Have you read _any_ of the thread? A number of people have
> already explained in detail why programming in Pything is more
> efficient. Pl
Thanks that's what i need.
--
http://mail.python.org/mailman/listinfo/python-list
The method cursor.executemany is there in order to avoid multiple calls
to cursor.execute().
I have tried, with success, to do like every single example (that I
have found on the www) on the subject shows, to use a insert statement
on the form:
statement = INSERT INTO table (colA,colB,colC) values
[EMAIL PROTECTED] wrote:
> H!
>
> I'm searching for the fastest way to convert a list to one big string.
>
> For example:
> test = ['test','test2','test3']
'-'.join(test)
--
Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl)
www.fiedzia.prv.pl
Stewardesses is the longest w
Shaun wrote:
> Hi,
>
> I'm trying to overload the divide operator in python for basic arithmetic.
> eg. 10/2 ... no classes involved.
>
> I am attempting to redefine operator.__div__ as follows:
>
> # my divide function
> def safediv(a,b):
> return ...
>
> # reassign bui
<[EMAIL PROTECTED]> wrote:
>I'm searching for the fastest way to convert a list to one big string.
The join() method of strings. The string instance in question being
the separator you want, so:
" ".join(test)
--
\S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/
___ | "Frankly I ha
I am going to be a bit blunt. Don't get offended.
>> Also the first thing any newbie to python asks me is abt "raw speed in
>> comparison with similar languages like perl" when i advocate python to perl.
Judging by your other posts, you are a newbie yourself. You are not
really in a position to
> "infidel" <[EMAIL PROTECTED]> (i) wrote:
>i> .readlines() won't return until it hits end-of-file, but the "man"
>i> command waits for user input to scroll the content, like the "more" or
>i> "less" commands let you view "pages" of information on a terminal.
man shouldn't wait for user input
Martin P. Hellwig enlightened us with:
> Personal transportation sucks in the Netherlands, if you live in the
> Randstad (the area of the above mentioned cities) and you have to
> travel across the Randstad, you go with the bike and/or
> bus/tram/metro/train because that is the fastest way of
> tra
Adriaan Renting enlightened us with:
> A lot of my foreign collegues commplain about how rude the dutch can
> be. Countries like sweden or japan seem to have much better
> manners.
I also think the Dutch aren't all that communicative. I was queueing
in a store when they announced to have the new
James enlightened us with:
> One does not compare speed when they use Perl/Python/Ruby/Tcl. They
> are all more or less in the same performance ball park.
I don't want to offend you or anything, but doesn't the second
sentence mean that someone DID do a speed comparison?
Sybren
--
The problem wi
> "Martin P. Hellwig" <[EMAIL PROTECTED]> (MPH) wrote:
>MPH> Of course this is all done with public transport and/or bike, not without
>MPH> reason.
>MPH> Personal transportation sucks in the Netherlands, if you live in the
>MPH> Randstad (the area of the above mentioned cities) and you have t
I am trying the following:
re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_files")
and I get a return of NoneType, and I have no idea why. I know that I
missing something here, but I really can't figure out why (I bet it's
something obvious). I also tried this RE on KODOS and it works fine
there, so
The problem with the world is stupidity. Not saying there should be acapital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Geef mij wat vloerbedekking onder deze vet
On Thu, 25 Aug 2005 00:46:41 -0700, Tim Roberts wrote:
> michael <[EMAIL PROTECTED]> wrote:
>
>>I have a question about Windows based python (2.4 and later).
>>
>>For example, if I make a script called test.py like so:
>>
>>import sys
>>print sys.argv
>>
>>then run it:
>>
>>python test.py this is
Yoav wrote:
> I am trying the following:
>
> re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_files")
>
> and I get a return of NoneType, and I have no idea why. I know that I
> missing something here, but I really can't figure out why (I bet it's
> something obvious). I also tried this RE on KODOS and
Yoav enlightened us with:
> I am trying the following:
>
> re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_files")
>
> and I get a return of NoneType, and I have no idea why.
Because you don't match a carriage return "\r".
> I know that I missing something here, but I really can't figure out
> why (I be
On Thu, 25 Aug 2005 00:46:41 -0700, Tim Roberts wrote:
> michael <[EMAIL PROTECTED]> wrote:
>
>>I have a question about Windows based python (2.4 and later).
>>
>>For example, if I make a script called test.py like so:
>>
>>import sys
>>print sys.argv
>>
>>then run it:
>>
>>python test.py this is
On Tue, 23 Aug 2005 06:15:03 +0100, praba kar wrote:
> Dear All,
>I want to know the link between c and python.
>Some people with C background use Python instead
> of programming in C.why?
>
>
>
> regards
> Prabahar
>
>
>
>
>
>
Just my $.02
I am a l
[EMAIL PROTECTED] wrote:
> The method cursor.executemany is there in order to avoid multiple calls
> to cursor.execute().
>
> I have tried, with success, to do like every single example (that I
> have found on the www) on the subject shows, to use a insert statement
> on the form:
> statement = IN
Sybren Stuvel wrote:
> Martin P. Hellwig enlightened us with:
>
[...]
>
> On the way back, we used the ICE (intercity express) through Germany.
> It got delayed, so we missed our train to Amsterdam by 15 minutes. The
> delay was in Köln, because the pope paid a visit - well known to the
> Deutsc
>
> On Tue, 23 Aug 2005 06:15:03 +0100, praba kar wrote:
>
> > Dear All,
> >I want to know the link between c and python.
> >Some people with C background use Python instead
> > of programming in C.why?
> >
> >
> >
> > regards
> > Prabahar
> >
> >
> >
> >
>
Antoon Pardon wrote:
> Op 2005-08-24, Magnus Lycka schreef <[EMAIL PROTECTED]>:
>
>>Antoon Pardon wrote:
>>
>>>I think he did, because both expression are not equivallent
>>>unless some implicite constraints make them so. Values where
>>>both expressions differ are:
>>>
>>> start1=67, stop1=9, st
I just realised that myself about two minutes ago, but thanks anyway!
--
http://mail.python.org/mailman/listinfo/python-list
"Dr. Who" <[EMAIL PROTECTED]> writes:
> This seems clunky and my next step was going to be to define generic
> functions which would generate the surrounding html tags only when
> passed the proper argument. I was wondering if there was a better way
> to do this with a standard Python library. I
SuppressedPen wrote:
> Hi Everyone!
>
> Just started with Python 2 weeks ago and I can't put it down it's to easy
> and to powerful, I'm sure the goons will be after us for having it soon, Hi
> Hi.
>
> Was wondering if anyone might know where I can find the source code for
> PYTHON 2.1 BIBLE book
Ok , I tried:
try:
os.popen3(...)
except:
as someone suggested here. And on FreeBSD I don't get the error message,
and it works great. However, on Win32 I do get the annoying message. Any
idea why? And How I can make it go away?
thanks.
Yoav wrote:
> I am using os.popen3 to call a co
OllieZ wrote:
> Hi all
>
> Im trying to learn wxpython by some samples and Ive come across this.
> After change EVT_MENU lines from
> EVT_MENU(self, ID_OPEN, self.OnOpen) to
> self.Bind(wx.EVT_MENU, self.OnOpen)
It should be:
self.Bind(wx.EVT_MENU, self.OnOpen, id=ID_OPEN)
Nx wrote:
> I am unpacking a list into variables, for some reason they need to be
> unpacked into variable names like a0,a1,a2upto aN whatever is
> in the list.
Explain this "some reason". This smells, and the way to go would be to
use a dict mapping a_n to whatever is in the list - not cr
Nx wrote:
> Hi
>
> I am unpacking a list into variables, for some reason they need to be
> unpacked into variable names like a0,a1,a2upto aN whatever is
> in the list.
Really? Why?
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dre
"Nx" <[EMAIL PROTECTED]> wrote:
> I am unpacking a list into variables, for some reason they need to be
> unpacked into variable names like a0,a1,a2upto aN whatever is
> in the list.
why?
--
http://mail.python.org/mailman/listinfo/python-list
Nx enlightened us with:
> I am unpacking a list into variables, for some reason they need to
> be unpacked into variable names like a0,a1,a2upto aN whatever is
> in the list.
You're probably doing things the wrong way. What is your ultimate goal
with this? There is probably a better way of doi
Nx schrieb:
> Hi
>
> I am unpacking a list into variables, for some reason they need to be
> unpacked into variable names like a0,a1,a2upto aN whatever is
> in the list.
>
> How to create the variables dynamically ?
>
> I am looking for something like
> pseudo code line follows :
>
"Yoav" wrote:
>I am trying the following:
>
> re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_files")
>
> and I get a return of NoneType, and I have no idea why. I know that I
> missing something here, but I really can't figure out why
instead of struggling with weird REs, why not use Python's standard
f
Hi
I am unpacking a list into variables, for some reason they need to be
unpacked into variable names like a0,a1,a2upto aN whatever is
in the list.
How to create the variables dynamically ?
I am looking for something like
pseudo code line follows :
a%s = str(value)
here below i
Thanks guys. Issue solved.
I am also going to give Microsoft a call about it. Any other issues you
want me to raise while I am talking to them?
Cheers.
Robert Kern wrote:
> Yoav wrote:
>
>>I am trying the following:
>>
>>re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_files")
>>
>>and I get a return
Don't think it will do much good. I need to get them from a file and
extract the last folder in the path. For example:
if I get "c:\dos\util"
I want to extract the string "\util"
Fredrik Lundh wrote:
> "Yoav" wrote:
>
>>I am trying the following:
>>
>>re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_
Shaun wrote:
> Hi,
>
> I'm trying to overload the divide operator in python for basic arithmetic.
> eg. 10/2 ... no classes involved.
>
> I am attempting to redefine operator.__div__ as follows:
>
> # my divide function
> def safediv(a,b):
> return ...
>
> # reassign bui
On 2005-08-25, Ben Sizer <[EMAIL PROTECTED]> wrote:
> Grant Edwards wrote:
>> On 2005-08-23, praba kar <[EMAIL PROTECTED]> wrote:
>> > What why it is more efficient. Kindly let me
>> > know with some details.
>>
>> Have you read _any_ of the thread? A number of people have
>> already explained in
Terry Hancock wrote:
> On Wednesday 24 August 2005 09:12 pm, Peter Hansen wrote:
>>Or even http://www.pythoncad.org/ which, although probably for
>>mechanical CAD work (I haven't looked at it, don't really know), is
>>surely a good place to get ideas of what Python can do in this area.
>
> No, I
Yoav wrote:
> Don't think it will do much good. I need to get them from a file and
> extract the last folder in the path. For example:
> if I get "c:\dos\util"
> I want to extract the string "\util"
like frederik says (I use '/' as I am using Unix):
>>> import os
>>> os.path.split ('c:/foo/ba
Yoav wrote:
> Don't think it will do much good. I need to get them from a file and
> extract the last folder in the path. For example:
> if I get "c:\dos\util"
> I want to extract the string "\util"
Then os.path.basename should be for you.
Reinhold
--
http://mail.python.org/mailman/listinfo/py
Hi,
> Don't think it will do much good. I need to get them from a file and
> extract the last folder in the path. For example:
> if I get "c:\dos\util"
> I want to extract the string "\util"
Still, os.path is your friend:
import os
filepath = r'C:\dos\util'
base, last = os.path.split(file
Sybren Stuvel wrote:
> James enlightened us with:
>
>>One does not compare speed when they use Perl/Python/Ruby/Tcl. They
>>are all more or less in the same performance ball park.
>
>
> I don't want to offend you or anything, but doesn't the second
> sentence mean that someone DID do a speed com
Peter Maas wrote:
> >>> suffix = 'var'
> >>> vars()['a%s' % suffix] = 45
> >>> avar
> 45
Quoting from http://docs.python.org/lib/built-in-funcs.html#l2h-76 about
the "vars" built in:
The returned dictionary should not be modified: the effects on the
corresponding symbol table are undefined.
Yoav wrote:
> Don't think it will do much good. I need to get them from a file and
> extract the last folder in the path. For example:
> if I get "c:\dos\util"
> I want to extract the string "\util"
You mean like this:
import os
os.path.sep + os.path.split(r"c:\dos\util")[-1]
--
Robert Kern
[
Hi Everyone,
I'm totally captivated by Python so far. I want to develop
professional-looking Win32 applications with the least effort.
I have many years experience with PowerBuilder, PowerBuilder Foundation
Class, and SQL Anywhere. I would really like to leverage as many of
these skills as p
CBFalconer wrote:
> Mike Schilling wrote:
>> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
>>> "Mike Schilling" <[EMAIL PROTECTED]> writes:
"l v" <[EMAIL PROTECTED]> wrote in message
> Xah Lee wrote:
>
>> (circa 1996), and email should be text only (anti-MIME, circa 1995),
Before you do too much work you should probably check out:
http://spambayes.sourceforge.net/
There has already been a lot of work done on this project.
FYI, Larry
David MacQuigg wrote:
> Are you as mad about spam as I am? Are you frustrated with the
> pessimism and lack of progress these last
In article <[EMAIL PROTECTED]>, Toby White wrote:
>
[snip]
I do similar stuff in the new (upcoming) version of Atox
(atox.sf.net), which works with potentially ill-formed, partial XML
(in the form of PYX events) internally, and can take partial,
ill-formed XML as input.
>The problem is that when
Thanks for the many replies
here is an example for what it will be used for , in this case
fixed at 31 fieldvalues:
inputvalues=(s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25,
s26,s27,s28,s29,s30,s31)
MYINSERTSELECT = "INSERT INTO
ADD
David MacQuigg wrote:
> Are you as mad about spam as I am? Are you frustrated with the
> pessimism and lack of progress these last two years? Do you have
> faith that an open-source project can do better than the big companies
> competing for a lock-in solution? If so, you might be interested in
Nx wrote:
> Thanks for the many replies
>
> here is an example for what it will be used for , in this case
> fixed at 31 fieldvalues:
>
>
> inputvalues=(s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25,
> s26,s27,s28,s29,s30,s31)
>MYINS
On Thu, 2005-08-25 at 10:43, Nx wrote:
> Thanks for the many replies
>
> here is an example for what it will be used for , in this case
> fixed at 31 fieldvalues:
>
>
> inputvalues=(s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25,
> s26,s2
You might be able to do something along the lines of
for count in range(0,maxcount):
value = values[count]
exec(eval("'a%s=%s' % (count, value)"))
But I am also wonder: why?
Peter Maas wrote:
> >>>suffix = 'var'
> >>>vars()['a%s' % suffix] = 45
> >>>avar
>45
--
http://mail.python.
Norm Goertzen wrote:
I can just answer about books:
> -Programming Python, 2nd Edition; Mark Lutz
Quite good. Exhaustive and authoritative. The 1st edition was questionable
but the second one is very fine.
> -Python Standard Library; Fredrik Lundh
Quite a need for a beginner. The HTML docu of Py
On Thu, 2005-08-25 at 11:04, I hastily wrote:
> On Thu, 2005-08-25 at 10:43, Nx wrote:
> > Thanks for the many replies
> >
> > here is an example for what it will be used for , in this case
> > fixed at 31 fieldvalues:
> >
> >
> > inputvalues=(s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14
In article <[EMAIL PROTECTED]>, Yoav <[EMAIL PROTECTED]> wrote:
>Fredrik Lundh wrote:
>> "Yoav" wrote:
>>>I am trying the following:
>>>
>>>re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_files")
>> instead of struggling with weird REs, why not use Python's standard
>> filename manipulation library inste
> """
>
> Why unpack inputvalues if your next step is to pack'em back again ? Or
> what did I miss ?
>
The original values in this case are being read from a text file
with one value including a linefeed per line and the original idea was,
that having them read into a list was the best way to ma
Thank you all guys. It seems like the simpler the solution, the more I
am happy about it. Sorry, for the simple question, I am quite new to
this lang.
Cheers.
Robert Kern wrote:
> Yoav wrote:
>
>>Don't think it will do much good. I need to get them from a file and
>>extract the last folder i
I am creating several tkinter widgets. In my classes they each have a
change() method that is a callback to various IntVar, and StringVar
objects. Everything works fine, but don't really want to trigger the
callback when I am initializing each widget/control variable. I can
use a "flag" like se
Hey, if the man wants to write it that way, let the man write it that
way. If it works for him, great... he's sure confused the heck out of
all of us, and that translates into job security for him! As you can
see, the name of the post is 'variable hell' and that is exactly what
he is creating, so "
I compiled Python 2.3.5 from source on my Cygwin machine (XP), and I got
the following error when I tried to initialize Zope:
Traceback (most recent call last):
File "/opt/Zope-2.7.7/lib/python/ZEO/runzeo.py", line 42, in ?
import socket
File "/opt/Python23//lib/python2.3/socket.py", line
Peter Hansen enlightened us with:
> Yes, and has shown that they are in the same ballpark, and therefore
> one does not _need_ to compare speed any more.
Ok. I'd worded it as "there have been tests already, so there is no
need to do your own", instead of "one does not test".
Sybren
--
The proble
"CBFalconer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Mike Schilling wrote:
>> "Mike Meyer" <[EMAIL PROTECTED]> wrote in message
>>> "Mike Schilling" <[EMAIL PROTECTED]> writes:
"l v" <[EMAIL PROTECTED]> wrote in message
> Xah Lee wrote:
>
>> (circa 1996), an
Cheers everyone, I aim to learn a programming language and haven't yet
decided on what's going to be. Here I'd like to hear some voices on where I
should start, and pls don't hit me google. I have been doing some research,
but I'd like to hear about some real life expiriencies on subject.
Is Pyth
Eric Brunel wrote:
> On Wed, 24 Aug 2005 15:07:27 GMT, William Gill <[EMAIL PROTECTED]> wrote:
>
>> Working with tkinter, I have a createWidgets() method in a class.
>> Within createWidgets() I create several StringVars() and
>> assign them to the textvariable option of several widgets.
>> Effec
On Thu, 25 Aug 2005 10:18:37 -0400, Peter Hansen <[EMAIL PROTECTED]>
wrote:
>David MacQuigg wrote:
>> Are you as mad about spam as I am? Are you frustrated with the
>> pessimism and lack of progress these last two years? Do you have
>> faith that an open-source project can do better than the big
Shoeshine wrote on 25/08/2005 17:43:
> Cheers everyone, I aim to learn a programming language and haven't yet
> decided on what's going to be. Here I'd like to hear some voices on
> where I should start, and pls don't hit me google. I have been doing
> some research, but I'd like to hear about som
Adriaan Renting wrote:
> You might be able to do something along the lines of
>
> for count in range(0,maxcount):
> value = values[count]
> exec(eval("'a%s=%s' % (count, value)"))
why using the eval?
exec ('a%s=%s' % (count, value))
should be fine
--
rafi
"Imagination is more imp
Hello everyone,
I'm writing a simple spam filter as a project, partly to learn python.
I want to filter by filetype, however, the mime content type I get
using .get_content_type gives limited and possibly bogus information,
especially when trying to detect viruses or spam.
I would like to use the
Python is a very good place to start.
However,Perl isn't a bad place to start either. Perl has a gazillion
ways to express yourself. Perl is overly complicated (yet easy to get
started with), so you are exposed to numerous ways to think. Perl
gives you 8 million different sized and colored rope
In article <[EMAIL PROTECTED]>,
Benji York <[EMAIL PROTECTED]> wrote:
> Peter Maas wrote:
> > >>> suffix = 'var'
> > >>> vars()['a%s' % suffix] = 45
> > >>> avar
> > 45
>
> Quoting from http://docs.python.org/lib/built-in-funcs.html#l2h-76 about
> the "vars" built in:
>
> The returned dicti
Your file is attached.--
http://mail.python.org/mailman/listinfo/python-list
Ron Garret wrote:
> If you really want to make something like this work you can define a
> class that would work like this:
>
> vars = funkyclass()
> varname = 'x'
> vars[varname] = value
> vars.x
>
> But this is clearly a design mistake. Either you know the names of the
> variables when you
Thanx for sharing... -it was of use.
---
-Linux-
-Becouse PC is a terible thing to waste...
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 25 Aug 2005, Mike Schilling wrote:
> Another advantage is that evewry internet-enabled computer today already
> comes with an HTML renderer (AKA browser), so that a message saved to a file
> can be read very easily.
I think you're missing the point: email and Usenet are, historically have
Nx wrote:
>>"""
>>
>>Why unpack inputvalues if your next step is to pack'em back again ? Or
>>what did I miss ?
>
> The original values in this case are being read from a text file
> with one value including a linefeed per line and the original idea was,
> that having them read into a list was the
I'd say, start with Python and work yourself into more complex
languages. Python teaches you to indent properly, and it is good with
being simple, yet powerful at the same time. I'd be happy to teach you
the basics with Python. I've taught a few people how to program, and
they learn Python pretty q
1 - 100 of 212 matches
Mail list logo