Alan Gauld wrote:
> "Jeffrey Dates" <[EMAIL PROTECTED]> wrote
>
>
>> Let me get back to you with my result after I study this a bit.
>> thanks!!
>>
>
> One wee tip you might find useful.
>
> To test if a lertter comes after 'm you could
>
> a) create a string with all letters after m
>
>
"Jeffrey Dates" <[EMAIL PROTECTED]> wrote
> Let me get back to you with my result after I study this a bit.
> thanks!!
One wee tip you might find useful.
To test if a lertter comes after 'm you could
a) create a string with all letters after m
>>> after_m = 'nopqrstuvwxyz'
then test whether
Thanks all for the posts,
I guess I'm thinking in 'matrices' and in a matlab syntax. So I was trying
to get the third element of a list of lists, or lists in a dictionay in
syntax like matlab (yes, I should be using numpy or scipy).
Anyway, Alan's final suggestion (and everyone else's) has helped
That's Bob, and Tony, exactly what I'm looking for. ( not the answer, but
the path to it... )
Let me get back to you with my result after I study this a bit.
thanks!!
Jeffrey Dates
www.kungfukoi.com
On undefined, bob gailer <[EMAIL PROTECTED]> wrote:
> Jeffrey Dates wrote:
> > Greetings,
>
Jeffrey Dates wrote:
> Greetings,
>
> I have no previous experience in scripting. Python is my first
> language...
> I'm currently trying to build a logic model for how to 'think' in
> Python, so please excuse my ignorance.
>
> Currently, I'm running through some basic 101 tutorials, to wrap my
On Wed, Apr 2, 2008 at 12:50 PM, Jeffrey Dates <[EMAIL PROTECTED]> wrote:
> Sorry forgot to post what I had so far:
>
> for code in range(ord("a"), ord("z") +1):
> if code == ord("m"):
> print chr(code +1)
>
> Now, this solves for the first letter after "M", but doesn't do it via a
> s
On Wed, Apr 02, 2008 at 10:44:10AM -0400, Bryan Fodness wrote:
> I have a data pair separated by a backslash. I didn' t think it would see
> an end of line if the backslash was inside the quotes.
> Can this be done? I don't have a choice in what the separator is.
>
> >>> LeafJawPositions='-42.00
On Wed, Apr 02, 2008 at 10:20:41AM +, linuxian iandsd wrote:
> well, here is a piece of final script :
>
> #!/usr/bin/python
> #
>
> import sys
>
> b=[]
> while 1:
> data = sys.stdin.readline()
> if data != '\n':
> b.append(data)
> else:
> break
I'd keep working on that loop a bit in
Sorry forgot to post what I had so far:
for code in range(ord("a"), ord("z") +1):
if code == ord("m"):
print chr(code +1)
Now, this solves for the first letter after "M", but doesn't do it via a
string
thanks,
Jeffrey Dates
www.kungfukoi.com
On Wed, Apr 2, 2008 at 12:44 PM
Greetings,
I have no previous experience in scripting. Python is my first language...
I'm currently trying to build a logic model for how to 'think' in Python, so
please excuse my ignorance.
Currently, I'm running through some basic 101 tutorials, to wrap my head
around solving problems.
I'm loo
Bryan Fodness wrote:
> Thanks everyone,
> I was trying it this way.
>
> x1, x2 = LeafJawPositions.split(r'\\')
That is a string containing *two* backslashes.
Kent
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Thanks everyone,
I was trying it this way.
x1, x2 = LeafJawPositions.split(r'\\')
On Wed, Apr 2, 2008 at 11:00 AM, Michael Connors <[EMAIL PROTECTED]>
wrote:
>
> >>> LeafJawPositions='-42.0001\29.8001'
> > >>> LeafJawPositions
> > '-42.0001\x029.8001'
> > >>>
On Wed, Apr 2, 2008 at 7:44 AM, Bryan Fodness <[EMAIL PROTECTED]> wrote:
> I have a data pair separated by a backslash. I didn' t think it would see
> an end of line if the backslash was inside the quotes.
The backlash is seen as an escape character.
Try the below, notice the string prefix r and
"Bryan Fodness" <[EMAIL PROTECTED]> wrote
> I have a data pair separated by a backslash.
> I didn' t think it would see an end of line if the backslash
> was inside the quotes.
Backslashes don't indicate end of line, they indicate a
continuation of a line. ie they tell Python to *ignore* the
On Wed, Apr 02, 2008 at 10:44:10AM -0400, Bryan Fodness wrote:
> I have a data pair separated by a backslash. I didn' t think it would see
> an end of line if the backslash was inside the quotes.
> Can this be done? I don't have a choice in what the separator is.
>
> >>> LeafJawPositions='-42.00
I have a data pair separated by a backslash. I didn' t think it would see
an end of line if the backslash was inside the quotes.
Can this be done? I don't have a choice in what the separator is.
>>> LeafJawPositions='-42.0001\29.8001'
>>> LeafJawPositions
'-42.0001\x029.8
If you do sqlalchemy, I recommend you at least also look at sqlsoup to help
making your mappings easier: http://www.sqlalchemy.org/trac/wiki/SqlSoup
If you don't want to write mappers and you don't need the relational
database, ZODB also works: http://www.zope.org/Products/StandaloneZODB
WW wrote:
> I'm really interested in learning some socket driven programming,
> specifically asyncore/asynchat. I don't need the power or complication
> of twisted, but I'm having serious trouble finding any decent tutorials
> about asyncore/asychat... so where can I find a good tutuorial?
Goo
Well, the source is easy enough to read.
Although I wouldn't call Twisted a complication. If all you want is your
async server Hello World example, asyncore is fine. If you intend to use
the stuff for serious things, one usually starts to reinvent/reimplement
Twisted anyway.
Andreas
Am Mittwoch,
Hi, I'm new to the list, and fairly new-ish to python. I'd rate my
programming experience as beginning-intermediate, and I've had some
experience with c++ and VBS, and I'm currently a freshman CS major.
Now to my question(s?).
I'm really interested in learning some socket driven programming,
spec
There are many as you said yourself. Recommendation: sqlalchemy.org
Andreas
Am Mittwoch, den 02.04.2008, 16:51 +0530 schrieb hiren kumar:
> Hi,
>
> I am very much new to Python and it's available framework.
>
> When I search the over net about Python ORM, I found there are so many
> ORMs availa
Hi,
I am very much new to Python and it's available framework.
When I search the over net about Python ORM, I found there are so many ORMs
available and I was confused between them? I don't understand where to go?
:(
Can you please tell me something about Python ORM?
Regards,
Kumar
well, here is a piece of final script :
#!/usr/bin/python
#
import sys
b=[]
while 1:
data = sys.stdin.readline()
if data != '\n':
b.append(data)
else:
break
for i in (0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16):
b[i]=b[i].split(':')[1].strip()
#print b[i]
b[1]=b[1].split(':')
b[1]=b[1][1]
linuxian iandsd wrote:
> well, i don't know how to pipe the file to my script !!
It's how procmail works. Presuming you looked up how to write
a procmail rule to save the body of your mail into a file, you
should also see right next to it the instructions for piping
the message to a program. (It
"elis aeris" <[EMAIL PROTECTED]> wrote
>I know how to check msdn site, but I don't understand how things are
> organized under windll
>
> where do they have this ?
>
>>
>> Also Wikipedia has a good overview with more links.
>>
>> Finally the Pythonwin help file has a lot of the same info
>> bu
linuxian iandsd wrote:
> ok - as i mentioned in my first email i use procmail to put THE BODY of all
> incoming mail into a file (that is one per incoming email as i use the
> variable $date-$time in the name).
>
> now this file can contain only one email but it can also contain 2 or more
> (this
26 matches
Mail list logo