Re: [Tutor] Python Arduino Web Page

2013-08-15 Thread Dave Angel
Engineering wrote: snip o:idmap v:ext=edit data=1 / /o:shapelayout/xml![endif]--/headbody lang=EN-IN link=blue vlink=purplediv class=WordSection1p class=MsoNormalI have written the following code in Python for my Arduinoo:p/o:p/pp class=MsoNormalo:pnbsp;/o:p/pp

[Tutor] please help with read_until, write script

2013-08-15 Thread cindy chao
Hi, all Python Experts, I am a Python beginner. I am trying to script the following steps. I have problem to match the step after 'signature check?' '[999.daisyse.07260019]:' the value of 0726009 is dynamic, every time it will be different, so I don't know how to do it. For sure I have problem

[Tutor] Python

2013-08-15 Thread Jake Wohldmann
Hello I am a beginner to using any type of script. How long does it take to become fluent at a script? I will only be able to practice python on weekends since school is starting. I was also wondering if I could use python on my android phone. ___

Re: [Tutor] [Python-Help] Instancing class issue

2013-08-15 Thread Dino Bektešević
Hello, The name of the variable doesn't matter, that's still what it does; you can think of it as encapsulating any other keyword arguments. def foo(bar, **kwargs): ... print(bar: %s % (bar,)) ... print(kwargs: %r % (kwargs,)) ... foo(bar, baz=qux,

[Tutor] Input into lists?

2013-08-15 Thread leam hall
I'm trying to take input from a file (CSV spreadsheet) and use the first line inputs (header) as the names of lists. So far I'm not successful. :) How do I take line_list[0], the result of line.split(',') and use it as the name of a list? Does that make sense? Thanks! Leam -- Mind on a

[Tutor] Color segmentation -Open cv

2013-08-15 Thread Zoya Tavakkoli
Hi every one , could you please give me suggestion and code for color segmentation via opencv on python? Thanks ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Posting solutions to homeworky problems

2013-08-15 Thread leam hall
I've just started some of the Euler stuff. Most of the time I ask for pointers to the logic needed. I enjoy that much more as hopefully I learn something. Leam -- Mind on a Mission http://leamhall.blogspot.com/ ___ Tutor maillist - Tutor@python.org

[Tutor] Simple Python SNMP ping?

2013-08-15 Thread leam hall
Is there a way to do a simple check in Python to see if a remote host is listening on SNMP port 161/UDP? Thanks! Leam -- Mind on a Mission http://leamhall.blogspot.com/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

[Tutor] Reading a video

2013-08-15 Thread Zoya Tavakkoli
Hi How can read a video frame by frame in python? Thanks Zoya ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Input into lists?

2013-08-15 Thread Alan Gauld
On 13/08/13 16:46, leam hall wrote: I'm trying to take input from a file (CSV spreadsheet) and use the first line inputs (header) as the names of lists. So far I'm not successful. :) Have you tried the csv module? Usually you use a dictionary keyed by the first line values though. But i#'m

Re: [Tutor] Input into lists?

2013-08-15 Thread Dave Angel
leam hall wrote: I'm trying to take input from a file (CSV spreadsheet) and use the first line inputs (header) as the names of lists. So far I'm not successful. :) How do I take line_list[0], the result of line.split(',') and use it as the name of a list? Does that make sense? No, it

Re: [Tutor] Python

2013-08-15 Thread Alan Gauld
On 13/08/13 23:38, Jake Wohldmann wrote: Hello I am a beginner to using any type of script. How long does it take to become fluent at a script? It depends on what you mean by Fluent. I've spent 40+ years programming and am still learning. OTOH I can usually learn enough about a new language

Re: [Tutor] Reading a video

2013-08-15 Thread Alan Gauld
On 15/08/13 14:54, Zoya Tavakkoli wrote: How can read a video frame by frame in python? I'm not aware of anything that does it out of the box in the standard library(*) so you will likely need to use Google (or another equivalent) to find a third party module. But you will need to be much

Re: [Tutor] Python

2013-08-15 Thread Dave Angel
Jake Wohldmann wrote: Hello I am a beginner to using any type of script. How long does it take to become fluent at a script? I will only be able to practice python on weekends since school is starting. I was also wondering if I could use python on my android phone. p dir=ltrHello I am a

Re: [Tutor] Python

2013-08-15 Thread Steven D'Aprano
On 14/08/13 08:38, Jake Wohldmann wrote: Hello I am a beginner to using any type of script. How long does it take to become fluent at a script? How long is a piece of string? The answer could be anything from a couple of hours to forever. It depends on: - what scripting language are you

Re: [Tutor] Python

2013-08-15 Thread Francois Dion
On Aug 15, 2013 8:04 PM, Jake Wohldmann jake.wohldm...@gmail.com wrote: I was also wondering if I could use python on my android phone. Http://qpython.com And then, there is the browser based approach. For example, see http://raspberry-python.blogspot.com That's using Brython and the

Re: [Tutor] Reading a video

2013-08-15 Thread Steven D'Aprano
On 15/08/13 23:54, Zoya Tavakkoli wrote: Hi How can read a video frame by frame in python? Of course! Videos are just binary files, and Python can read binary files. The hard part is writing code that understands the internal structure of a video. There are many video formats (ogv, mp4, mov,

Re: [Tutor] Simple Python SNMP ping?

2013-08-15 Thread Chris Down
Hi Leam, On 2013-08-14 15:21, leam hall wrote: Is there a way to do a simple check in Python to see if a remote host is listening on SNMP port 161/UDP? Simple in this case could either mean technically simple (in which case, use a socket with SOCK_DGRAM and wait for data) or implementationally