Re: [Tutor] suggestions to improve design

2012-06-04 Thread Justin Straube
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/04/2012 11:28 AM, Prasad, Ramit wrote: > Unless the script gets a *very* large list of emotes or you are on > an older machine I doubt that you will really see any performance > issues. That being said, my comments are below and other tutors T

Re: [Tutor] use the data None

2012-06-04 Thread Dave Angel
On 06/04/2012 06:14 AM, Tehn Yit Chin wrote: > Thanks for the quick answers. > > The potential for the variable not to exists is when I am using the > optparser module, and I want to check if a particular parameter was passed > in or not. If the parameter was not passed in, then the variable would

Re: [Tutor] Beginner

2012-06-04 Thread Alan Gauld
On 04/06/12 19:50, dispatc...@live.com wrote: The tutorial I am using says not to write GUI in the idle section I suspect it only says not to *run* it in IDLE. Writing it in IDLE is fine. But sometimes running Tkinter apps in Idle causes strange behaviour. So save the file then run it from

Re: [Tutor] Beginner

2012-06-04 Thread Walter Prins
Hello, On 4 June 2012 19:50, dispatc...@live.com wrote: > I am new to the python idle. I am a little confused on the GUI section on > where to write it. I think that's perhaps an understatement. >> The tutorial I am using says not to write GUI in the idle section so I have > been using the pyt

Re: [Tutor] [Parser/pgen] Error 1

2012-06-04 Thread Walter Prins
Hi, On 4 June 2012 18:27, Alan Gauld wrote: > On 04/06/12 17:18, Prasad, Ramit wrote: > > apt-cache search python | grep ^python[1-9] > >> Works on Ubuntu too. But when I try it (10.4 LTS) it only > shows versions 2.6, 3 and 3.1. Not 2.7... Just to add/point out for the sake of the original post

Re: [Tutor] suggestions to improve design

2012-06-04 Thread Prasad, Ramit
> I've written a script to use within XChat (IRC client) and everything is > working without issue. The script is a little tool to give an emote > command and a handful of general pre written actions. > > As it is now, the script works. But I've got maybe a dozen emotes in > there, using if/elif l

Re: [Tutor] [Parser/pgen] Error 1

2012-06-04 Thread Alan Gauld
On 04/06/12 17:18, Prasad, Ramit wrote: The Ubuntu repository should have most versions you would want if you decide you need a different version than the system default. `apt-cache search python | grep ^python` apt-cache search python | grep ^python[1-9] Works on Ubuntu too. But when I try

Re: [Tutor] [Parser/pgen] Error 1

2012-06-04 Thread Prasad, Ramit
> > I was following instructions on this link: > > > > http://eli.thegreenplace.net/2011/10/10/installing-python-2-7-on-ubuntu/ > > > > > > Thank you all so much I cannot wait to learn from you guys :) > Not sure about your error. However, python is pre installed in > ubuntu. go to a shell and t

Re: [Tutor] Joining all strings in stringList into one string

2012-06-04 Thread Prasad, Ramit
> But more importantly, some years ago (Python 2.4, about 8 years ago?) the > Python developers found a really neat trick that they can do to optimize > string concatenation so it doesn't need to repeatedly copy characters over > and > over and over again. I won't go into details, but the thing is,

[Tutor] suggestions to improve design

2012-06-04 Thread Justin Straube
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Tutors, I've written a script to use within XChat (IRC client) and everything is working without issue. The script is a little tool to give an emote command and a handful of general pre written actions. As it is now, the script works. But I've

Re: [Tutor] Web Questionnaire

2012-06-04 Thread Akeria Timothy
Thanks Joel the email box suggestion is a good one. I guess I'm lookingfor an easier way to get the information from faculty members on my campus. My boss currently just sends an email out to them. The error with this is that they reply with answers not related to what the email asks. On Jun 4, 20

Re: [Tutor] Web Questionnaire

2012-06-04 Thread James Reynolds
I would say start using django. The best way to learn is by doing. This will let you learn about databases, servers, webapps, and you can get some functionality out of it. Just start going through the django tutorial. On Jun 4, 2012 11:57 AM, "Joel Goldstick" wrote: > On Mon, Jun 4, 2012 at 11:

Re: [Tutor] Web Questionnaire

2012-06-04 Thread Joel Goldstick
On Mon, Jun 4, 2012 at 11:12 AM, Akeria Timothy wrote: > Hello All, > > I am still new to learning Python and I wanted to know if anyone knew of a > script out there that would allow users to answer three basic questions, hit > submit and send that information to an excel spreadsheet? > > So, I wo

[Tutor] Web Questionnaire

2012-06-04 Thread Akeria Timothy
Hello All, I am still new to learning Python and I wanted to know if anyone knew of a script out there that would allow users to answer three basic questions, hit submit and send that information to an excel spreadsheet? So, I would want them to submit the following information: Name: Dept: Soft

Re: [Tutor] packets_USB_python

2012-06-04 Thread BILAL Mustapha
Le 04/06/2012 16:10, Alan Gauld a écrit : On 04/06/12 14:58, BILAL Mustapha wrote: - Process 2 receives icmpv6 (or any packet) from process1 and retransmit it to a serial link (USB) - Process 2 receives icmpv6 (or any packet) from the serial link (USB) and restransmit it to process 1. Oddly,

Re: [Tutor] packets_USB_python

2012-06-04 Thread Emile van Sebille
On 6/4/2012 6:58 AM BILAL Mustapha said... Hello, I am beginner with python and I recently started to use it in order to achieve a small part of something I am working on. I have 2 processes (process 1 and process 2). I am wondering if you can provide me with some example or sample code of how

Re: [Tutor] packets_USB_python

2012-06-04 Thread Alan Gauld
On 04/06/12 14:58, BILAL Mustapha wrote: - Process 2 receives icmpv6 (or any packet) from process1 and retransmit it to a serial link (USB) - Process 2 receives icmpv6 (or any packet) from the serial link (USB) and restransmit it to process 1. Oddly, Python does not have ICMP support in its st

[Tutor] packets_USB_python

2012-06-04 Thread BILAL Mustapha
Hello, I am beginner with python and I recently started to use it in order to achieve a small part of something I am working on. I have 2 processes (process 1 and process 2). I am wondering if you can provide me with some example or sample code of how I can do the following: - Process 2

Re: [Tutor] use the data None

2012-06-04 Thread Sander Sweers
On 4 June 2012 12:14, Tehn Yit Chin wrote: > The potential for the variable not to exists is when I am using the > optparser module, and I want to check if a particular parameter was passed > in or not. If the parameter was not passed in, then the variable would not > exists. Eg Optparse will alw

Re: [Tutor] use the data None

2012-06-04 Thread Tehn Yit Chin
Thanks for the quick answers. The potential for the variable not to exists is when I am using the optparser module, and I want to check if a particular parameter was passed in or not. If the parameter was not passed in, then the variable would not exists. Eg If I call a python script is expecting