Re: [Tutor] Understanding Classes

2014-01-21 Thread Christian Alexander
previous def salute (self): # again with the self print ("Hello, my name is " + self.name + " and I am " + str(self.age) " years old.") On Mon, Jan 20, 2014 at 4:20 PM, spir wrote: > On 01/19

Re: [Tutor] Understanding Classes

2014-01-20 Thread Christian Alexander
standstill. However, I understand that classes are parallel to that of a blueprint, but that is unfortunately where the buck stops. On Sun, Jan 19, 2014 at 6:50 PM, Alan Gauld wrote: > On 19/01/14 21:59, Christian Alexander wrote: > >> Looked all over the net for class tutorials

[Tutor] Understanding Classes

2014-01-19 Thread Christian Alexander
been a graphic designer), therefore most programming concepts flow irritatingly slow for me. -- Regards, Christian Alexander ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Interactive escape sequences

2014-01-14 Thread Christian Alexander
Hello Tutorians, Why does the interactive prompt not recognize escape sequences in strings? It only works correctly if I use the print function in python 3. >>> "Hello\nWorld" "Hello\nWorld" -- Regards, Christian Alexander _

Re: [Tutor] python 3.3 split method confusion

2014-01-07 Thread Christian Alexander
... else: > ... yield s[start:] > ... return > ... > >>> list(mysplit("this,is,a,test", ",")) > ['this', ',', 'is', ',', 'a', ',', 'test'] > ## > -- Regards, Christian Alexander ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] python 3.3 split method confusion

2014-01-04 Thread Christian Alexander
Thank you for clarifying my inquiry. I was just unable to find the reason as to why the built-in excludes the delimiter from the outpu. On Sat, Jan 4, 2014 at 9:25 AM, Alan Gauld wrote: > On 04/01/14 14:10, Christian Alexander wrote: > > I am curious to know why the split() method

[Tutor] python 3.3 split method confusion

2014-01-04 Thread Christian Alexander
ak at every ' , ' ". But why is the delimiter not printed as well? -- Regards, Christian Alexander ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Mastering the fundamentals

2014-01-03 Thread Christian Alexander
Hello Tutorians, I've just recently acquired "Learning Python", and I must state that it is a fairly thorough book. However it seems as if I am learning at a very slow pace, so my question is, as far as setting a goal to master the basics, where should I be within a years time? Assuming I spend

Re: [Tutor] looking for volunteers with testing simple python program

2013-06-25 Thread Alexander
On Tue, Jun 25, 2013 at 2:04 PM, Walter Prins wrote: > Hi Alexander > > > On 23 June 2013 22:46, Alexander wrote: > >> I guess this is for testing, but I have a question. If somebody sends you >> their .pub file (email or otherwise over internet), and a villainous thi

Re: [Tutor] looking for volunteers with testing simple python program

2013-06-23 Thread Alexander
testing, but I have a question. If somebody sends you their .pub file (email or otherwise over internet), and a villainous third party intercepts that .pub file, will they be able to decrypt the data sent over this program? Thanks. -- Alexander ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] python error

2013-06-23 Thread Alexander
> Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > -- Alexander Etter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Hi, First question

2013-06-16 Thread Alexander
avg=float(sum1)/int(count) > print 'Count-', count,'--', 'Average-', avg > > Any help at all is appreciated, and thanks in advance. > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription optio

Re: [Tutor] How to make a python script run on startup

2013-04-09 Thread Alexander Mark
There is a startup folder, usually on the start menu, you can add the script to. --ame On Apr 9, 2013, at 4:20, daedae11 wrote: > On Windows, how to make a python script run on startup? > > > ___ > Tutor maillist - Tutor@python.org > To unsubscr

Re: [Tutor] Documentation

2013-01-06 Thread Alexander Mark
On Jan 6, 2013, at 22:48, Ed Owens wrote: > I have been working my way through Chun's book Core Python Applications. > > In chapter 9 he has a web crawler program that essentially copies all the > files from a web site by finding and downloading the links on that domain. > > One of the classes

Re: [Tutor] sending email via smtplib

2012-11-18 Thread Alexander
onnected: Connection unexpectedly closed: [Errno > 104] Connection reset by peer > > I can send email via browser. Why is my authentication being blocked by > hotmail? > > P.S: I tried sending from gmail. Same error. > > Saad > > You start TLS but is the connection to the server secured using SSL? Usually email providers have particular ports and types of encryption that must be specified to authenticate before you can DL an entire inbox or send a message from the address. Alexander ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Strings.

2012-10-23 Thread Alexander
r other two examples I suggest understanding slicing. slice! I want the whole pie, myPie [ 0: ] #the : around an index has a special meaning. Try a string with text and observe the output of your questions. aString [ : ] aString [ : 0 ] aStr [ 1: ] etc Check it out, mess around, get back to

Re: [Tutor] Populating a list

2012-10-21 Thread Alexander
On Sun, Oct 21, 2012 at 9:44 PM, Saad Javed wrote: > My program downloads multiple entry values from the net. I'm trying to > combine them in a list in a particular sequence. > > l = [] > feed1 = urllib2.urlopen(rssPage1) > tree1 = etree.parse(feed1) > x = tree1.xpath("/rss/channel/item/title/text

Re: [Tutor] managing memory large dictionaries in python

2012-10-16 Thread Alexander
On Tue, Oct 16, 2012 at 20:43 EST, Mark Lawrence wrote: > For the record Access is not a database, or so some geezer called Alex > Martelli reckons http://code.activestate.com/lists/python-list/48130/, so > please don't shoot the messenger:) > Cheers. > Mark Lawrence. Mark I don't believe your re

Re: [Tutor] Newline question

2012-08-03 Thread Alexander Q.
On Fri, Aug 3, 2012 at 2:09 PM, Alexander Q. wrote: > > > On Fri, Aug 3, 2012 at 1:40 PM, Jerry Hill wrote: > >> On Fri, Aug 3, 2012 at 4:18 PM, Alexander Q. >> wrote: >> > I'm following the tutorial from python.org >> > (http://docs.python.org/

Re: [Tutor] Newline question

2012-08-03 Thread Alexander Q.
On Fri, Aug 3, 2012 at 1:40 PM, Jerry Hill wrote: > On Fri, Aug 3, 2012 at 4:18 PM, Alexander Q. wrote: > > I'm following the tutorial from python.org > > (http://docs.python.org/tutorial/introduction.html) and am having a few > > indiscrepancies regarding the new

[Tutor] Newline question

2012-08-03 Thread Alexander Q.
I'm following the tutorial from python.org ( http://docs.python.org/tutorial/introduction.html) and am having a few indiscrepancies regarding the new line command. The tutorial says that this code hello = "This is a rather long string containing\n\ several lines of text just as you would do in C.

Re: [Tutor] Calling a function does not return what I want it to return

2012-07-19 Thread Alexander Q.
On Thu, Jul 19, 2012 at 4:21 PM, Dave Angel wrote: > On 07/19/2012 06:58 PM, Alexander Q. wrote: > > I have this little program that is supposed to calculate how many > diagonals > > a polygon of x sides has, but it does not return what I have in the > > "return"

[Tutor] Calling a function does not return what I want it to return

2012-07-19 Thread Alexander Q.
I have this little program that is supposed to calculate how many diagonals a polygon of x sides has, but it does not return what I have in the "return" part of the function when I call it. Here is the code: def num_diag(var): ans = 0 if var <= 3: print("No diagonals.") else: for i i

[Tutor] Regular expressions: findall vs search

2012-07-10 Thread Alexander Q.
I'm a bit confused about extracting data using re.search or re.findall. Say I have the following code: tuples = re.findall(r'blahblah(\d+)yattayattayatta(\w+)moreblahblahblah(\w+)over', text) So I'm looking for that string in 'text', and I intend to extract the parts which have parentheses around

Re: [Tutor] Returning multiple objects from a function

2012-07-03 Thread Alexander Q.
On Mon, Jul 2, 2012 at 8:56 PM, Dave Angel wrote: > On 07/02/2012 10:23 PM, Alexander Q. wrote: > > I understand the basics of tuples, but that formulation returned the > > following error: > > > > Traceback (most recent call last): > > File "C:\Users\Ow

Re: [Tutor] Returning multiple objects from a function

2012-07-02 Thread Alexander Q.
parens? In that case, how would I access list1 and list2 when needed? Thanks for your help. On Mon, Jul 2, 2012 at 4:11 PM, Walter Prins wrote: > On 2 July 2012 23:55, Alexander Q. wrote: > > Hello- I'm wondering how to access specific objects returned from a > function > > wh

[Tutor] Returning multiple objects from a function

2012-07-02 Thread Alexander Q.
Hello- I'm wondering how to access specific objects returned from a function when that function returns multiple objects. For example, if I have "return(list1, list2, list 3)" within a function "mainFunc()" that takes no arguments, how do I use list1, list2, and list3 outside of the function once

[Tutor] Re.findall question

2012-06-26 Thread Alexander Quest
I'm a bit confused about extracting data using re.search or re.findall. Say I have the following code: tuples = re.findall(r'blahblah(\d+)yattayattayatta(\w+)moreblahblahblah(\w+)over', text) So I'm looking for that string in 'text', and I intend to extract the parts which have parentheses around

Re: [Tutor] Notepad++ question

2012-06-14 Thread Alexander Quest
Thanks Walter; I believe I understand the reasoning behind it, though not all of the mechanics, but for now, your answer is more than sufficient. -Alex On Thu, Jun 14, 2012 at 4:10 PM, Walter Prins wrote: > Hi Alex, > > On 14 June 2012 23:18, Alexander Quest wrote: > &

Re: [Tutor] Notepad++ question

2012-06-14 Thread Alexander Quest
seen this so far, there is no variable called "_name_", and even if there was, why is it comparing it to "_main_"? Why can't the main function just be called by typing main()- why do we need this if statement to precede it? Thanks. -Alex On Thu, Jun 14, 2012 at 3:17 PM,

Re: [Tutor] Notepad++ question

2012-06-14 Thread Alexander Quest
2 at 6:16 PM, Dave Angel wrote: > On 06/07/2012 02:36 PM, Alexander Quest wrote: > > Ok, thanks guys. I also had one more quick question regarding a piece of > > boilerplate code: > > > > To get a response, you will needs to leave your question at the python > tut

[Tutor] Notepad++ question

2012-06-06 Thread Alexander Quest
Hey all; my question is regarding editing Python code in Notepad++. When I run this piece of code in Notepad++: def fix_start(s): var1 = s[0] var2 = "*" var3 = s.replace(var1, var2) return var3 I get an indentation error, which reads: File "C:\google-python-exercises\google-python

Re: [Tutor] exercise with classes

2012-02-02 Thread Alexander Etter
On Feb 2, 2012, at 12:36, Tonu Mikk wrote: > I feel stumped and don't know how to go about creating this game with two > classes. > > So far I have searched for info on how to pass variables from one class to > another and have been able to create a small two class program (attached). > Tha

Re: [Tutor] Deleting an object

2012-01-29 Thread Alexander
ly not an object anymore > Hi George. Consider what it means for the object to be deleted. When one calls the table.delete_this() method what happens? Is a member variable within the Table object set to None? What members does the table object have? -- Alexander 7D9C597B ___

Re: [Tutor] how to read and write to a file

2012-01-25 Thread Alexander
On Wed, Jan 25, 2012 at 8:32 AM, ken brockman wrote: > > > > From: Alexander > To: ken brockman > Cc: "tutor@python.org" > Sent: Wednesday, January 25, 2012 7:38 AM > Subject: Re: [Tutor] how to read and write to a file >

Re: [Tutor] how to read and write to a file

2012-01-25 Thread Alexander
.txt exists) >>>fh = open ( 'info.txt', 'w' ) >>>fh.write ( 'peter piper picked a pack of pickled peppers.' ) >>>fh.close() >>>fr = open ( 'info.txt', 'r') >>>fr.readline() 'peter piper picked a pac

Re: [Tutor] Namespace question

2012-01-20 Thread Alexander
Tutor maillist - Tutor@python.org >> To unsubscribe or change subscription options: >> http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor> >> > > > __**_ > Tutor maillist -

Re: [Tutor] Zip, tar, and file handling

2012-01-08 Thread Alexander Etter
On Jan 6, 2012, at 22:57, daedae11 wrote: > I was asked to write a program to move files between ZIP(.zip) and > TAR/GZIP(.tgz/.tar.gz) or TAR/BZIP2(.tbz/.tar.bz2) archive. > > my code is: > > > import zipfile; > import tarfile; > import os; > from os import path ; > > def showAllFiles(

Re: [Tutor] Using Python for a client interactive map application

2012-01-05 Thread Alexander
On Thu, Jan 5, 2012 at 12:16 PM, Alan Gauld wrote: > On 05/01/12 15:58, Alexander wrote: > > framework, does anybody have any other suggestions? For example there is >> a server with all the info about a map, and from a browser a user will >> be able to view and interact

[Tutor] Using Python for a client interactive map application

2012-01-05 Thread Alexander
is a server with all the info about a map, and from a browser a user will be able to view and interact with the map at high speeds. And please remember to reply to all. Thanks, -- Alexander 7D9C597B ___ Tutor maillist - Tutor@python.org To unsubscri

Re: [Tutor] question about a exercise

2012-01-05 Thread Alexander
ely going to get patronized for asking for the code as if you're asking for someone to do your homework problem for you. -- Alexander ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Touch Screen

2012-01-02 Thread Alexander
//mail.python.org/mailman/listinfo/tutor > Thanks for the replies gentlemen. Walter, thank you for the Raspberry Pi introduction, it may very well help me with my hobbies. I'll be certain to check it out as I develop my python and development skills. Thanks, -- Alexander 7D9C597B ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Touch Screen

2012-01-02 Thread Alexander
Hi. Just curious if there are any ideas on how to use python with a touch screen. That is a stand alone touchscreen, not something running on a desktop or personal computer; consider a touch screen dedicated to one purpose, like a cash register, running python. Thanks, Alexander

Re: [Tutor] list mail formatting

2011-12-27 Thread Alexander
On Fri, Dec 23, 2011 at 5:24 AM, Steven D'Aprano wrote: > Alexander Etter wrote: > > Ah I know of what you mentioned. On an GNU Emacs mailing list I was >> advised to avoid anything but plaintext. It just seems so archaic. But I'm >> a novice and will learn w

Re: [Tutor] list mail formatting

2011-12-22 Thread Alexander Etter
On Dec 22, 2011, at 4:10, Alan Gauld wrote: > On 22/12/11 03:34, Alexander wrote: > >>> We request, and advise where possible, on setting up email >>> in plain text, but we do not insist > >>> It's a frustration to most folks who were brought up o

Re: [Tutor] list mail formatting

2011-12-21 Thread Alexander
On Wed, Dec 21, 2011 at 11:02 PM, prakash singh wrote: > hi everybody i jsut want to login into  the web page can anyone help > me please i will attach the page i just want to give username and > password using the pyhton code please help me on this.please look for > the attachment. __

Re: [Tutor] list mail formatting

2011-12-21 Thread Alexander
been following a few posts here and there, and now that Alan has posted I feel comfortable exchanging emails for this mailing list from here on in rich formatting. -- Alexander 7D9C597B ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Localhost client-server simple ssl socket test program problems

2011-12-15 Thread Alexander
All certificates and keys self-signed by openssl for test convenience. > > This is the site for referrence : > http://andyjeffries.co.uk/articles/x509-encrypted-authenticated-socket-ruby-client > > Or should I need a real certificate issued by a real CA to let things work? >

Re: [Tutor] Blacklist?

2011-11-27 Thread Alexander Etter
On Nov 27, 2011, at 17:55, Steven D'Aprano wrote: > Alexander Etter wrote: >> I'm top posting because the link below is spam. > > > Why on earth do you think that it is acceptable to repeat spam on the list > just because you top post? > > If you have

Re: [Tutor] Blacklist?

2011-11-27 Thread Alexander Etter
I'm top posting because the link below is spam. Does the email address who sent the message get blacklisted or punished? Alexander On Nov 27, 2011, at 4:45, Mario Cavett wrote: > Hola. > finally my aunt gave me a push in the right direction this turned my luck > around now im

Re: [Tutor] Usenet comp.lang.python

2011-11-19 Thread Alexander
On Sat, Nov 19, 2011 at 6:47 PM, Alan Gauld wrote: > On 19/11/11 19:48, Alexander wrote: > >> Hi. Does anybody know about using the comp.lang.python usenet news >> feed(?) ? >> I'd like help configuring it. I can't seem to find documentation helping >&g

[Tutor] Usenet comp.lang.python

2011-11-19 Thread Alexander
Hi. Does anybody know about using the comp.lang.python usenet news feed(?) ? I'd like help configuring it. I can't seem to find documentation helping me. Thanks for reading, -- Alexander ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] Shorten Code.

2011-11-18 Thread Alexander Etter
to have already created the variables >somewhere and unless there >is a big list its not usually >worth while. Alexander Etter > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.

Re: [Tutor] Find all strings that....

2011-11-11 Thread Alexander
rcise, I'll give it a try. >> > > There are some standard library tools that make this pretty easy. Take a > look into difflib if you're interested. As always, there's nothing wrong > with doing it yourself so that you understand it better, of course.

Re: [Tutor] Suggest Book

2011-11-11 Thread Alexander Etter
ave something to say, but at my school for a class called "intro to problem solving" or something like that CS1114, the book used is by T. Gaddis, "Introduction to Python". I think. I may be incorrect. I'll check it out on amazon. Alexander > _

Re: [Tutor] Find all strings that....

2011-11-10 Thread Alexander Etter
On Nov 10, 2011, at 13:52, Francesco Loffredo wrote: > Alexander Etter wrote: >> >> Hi. My friend gave me a good wake up exercise which I do not want you to >> solve for me: find all strings which can be converted to alpha with at most >> two operations, where al

Re: [Tutor] Find all strings that....

2011-11-10 Thread Alexander
> On 11/10/11, Original Poster Alexander Etter wrote: >> >> Hi. My friend gave me a good wake up exercise which I do not want you to >> solve for me: find all strings which can be converted to alpha with at most >> two operations, where alpha is some string cons

[Tutor] Find all strings that....

2011-11-10 Thread Alexander Etter
is: is there a library or .txt dictionary ( not the data type, rather the merriam webster kind ) I can use to test my script on? I'd imagine this library/dictionary to contain thousands of words. Not random words. Thanks for reading, Alexander ___

Re: [Tutor] Having trouble visiting the subscribers list.

2011-11-07 Thread Alexander
7;t know what an admin address is. Your help is greatly >> appreciated. >> > >From the website: http://mail.python.org/mailman/listinfo/tutor (*The subscribers list is only available to the list administrator.*) And for good reason. We ( you and I and other members of the list ) and

Re: [Tutor] GNU Emacs and Python

2011-11-01 Thread Alexander Etter
On Nov 1, 2011, at 16:06, Wayne Werner wrote: > On Tue, Nov 1, 2011 at 6:31 AM, Alexander Etter wrote: > There is a learning curve. > > Yes, and for a graphical comparison of learning curves: > http://jeetworks.org/files/images/emacs_learning_curves.png > > ;) > &

Re: [Tutor] login window using Tk

2011-11-01 Thread Alexander Etter
On Nov 1, 2011, at 12:47, Chris Hare wrote: > > I am working on a python Tk program which involves a login window and I am > looking for some advice. > > Currently the code I have creates a window (Toplevel) where the login > controls are and I am running that using a main loop for the window

Re: [Tutor] GNU Emacs and Python

2011-11-01 Thread Alexander Etter
countered including a wikipedia page I believe >there is a satiric starwars-like cold-war feud between users of vi and emacs. I'm neutral and won't judge an entity or patronize one for their use of free will. I'm happy. Forgive me if I appear too anything. Good Day. Alexander Etter ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Indexing a list with nested tuples

2011-08-05 Thread Alexander Quest
My bad- meant to say [1]. Thanks. -Alexander On Fri, Aug 5, 2011 at 12:36 PM, Christopher King wrote: > > > On Tue, Aug 2, 2011 at 10:44 PM, Alexander Quest wrote: >> >> have [0] to indicate that I want to go to the second value within that >> first item,

Re: [Tutor] Indexing a list with nested tuples

2011-08-03 Thread Alexander Quest
re it is again for reference: attributes = [("strength", 0), ("health ", 0), ("wisdom ", 0), ("dexterity", 0)] Sorry if this is a bit confusing. Thanks for your help and tips so far Bob. -Alex On Wed, Aug 3, 2011 at 5:52 AM, bob gailer wrote: > On 8/2

Re: [Tutor] Indexing a list with nested tuples

2011-08-03 Thread Alexander Quest
en <__pete...@web.de> wrote: > Alexander Quest wrote: > > > Hi guys- I'm having a problem with a list that has nested tuples: > > > > attributes = [("strength", 0), ("health ", 0), ("wisdom ", 0), > > ("dexterity", 0)

[Tutor] Indexing a list with nested tuples

2011-08-02 Thread Alexander Quest
Hi guys- I'm having a problem with a list that has nested tuples: attributes = [("strength", 0), ("health ", 0), ("wisdom ", 0), ("dexterity", 0)] I've defined the list above with 4 items, each starting with a value of 0. The player enters how many points he or she wants to add to a given item.

[Tutor] Mailing list documentation

2011-07-31 Thread Alexander Etter
Hello everyone, is there a page that contains documentation for this mailing list? I've seen a few users top post and others advise against it; if there isn't a page listing conventions let's create it and if there is what is it's URL and how do you suggest user

Re: [Tutor] How to replace the '\'s in a path with '/'s?

2011-07-30 Thread Alexander Etter
using double slashes when specifying a path. The back slash \ by itself may be interpreted as an escape character or keyword. For example: print(test('C:\\Users\\Dick\\Desktop\\Documents\\Notes\\CollegeNotes.rtf')) Hope that helps, Alexander >

Re: [Tutor] Running files from command prompt

2011-07-29 Thread Alexander Quest
Alexander- thanks for the tip as to sticking with Python 3. Steven, I greatly appreciate that breakdown. You're right about the error: it was a syntax error on that line; I'll make sure to include the descriptions in the future. As far as finding a new tutorial, I am going to see if Goog

Re: [Tutor] Urllib Problem

2011-07-29 Thread Alexander
t Exception: #where code didn't work and an exception occured #whatever you would like to do when a particular *Exception* occurs Hope that helps, Alexander > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change s

Re: [Tutor] Running files from command prompt

2011-07-28 Thread Alexander Quest
above truly is caused by version incompatibility). -Alex On Thu, Jul 28, 2011 at 7:58 PM, Alexander Quest wrote: > Awesome- thanks for that Dave! The programs all work now, except that the > google exercise programs are all from Python 2.X and I'm running 3.1, so > some of them are g

Re: [Tutor] Running files from command prompt

2011-07-28 Thread Alexander Quest
again. -Alex On Thu, Jul 28, 2011 at 7:11 PM, Dave Angel wrote: > On 07/28/2011 09:58 PM, Alexander Quest wrote: > >> I downloaded the google's python exercise files from their website ( >> http://code.google.com/edu/**languages/google-python-class/**set-up.html<http:

[Tutor] Running files from command prompt

2011-07-28 Thread Alexander Quest
file 'hello.py': [Errno 2] No such file or directory. So I guess my question is how do I run .py files from the command prompt now that I seem to have gotten Windows to recognize and open the interpreter when I type in "python"? Thanks for any help. -Alex P.S. Just as an aside

Re: [Tutor] Getting Idle to work in Win7

2011-07-28 Thread Alexander
arget location *(if any), *Target*, *Start in* path, *Run *choice, any *Advanced *options? *Compatability: *anything selected here? *Security: *Are the permissions Full control? *Details: **name, type, path, owner* Looking forward to resolving the issue, Alexander. On Thu, Jul 28, 2011 at 2:38 PM,

Re: [Tutor] Assigning range

2011-07-27 Thread Alexander Quest
- > > middle_number = lambda lo, hi: abs(lo - hi) // 2 > > will work if you just need the mid point of two numbers; either ints or > floats. > > mid_x = middle_number(0, 1000) # mid_x = 500 > > DW > > On Jul 27, 2011, at 8:16 PM, A

Re: [Tutor] Assigning range

2011-07-27 Thread Alexander Quest
Thanks Steven- I'll try that out. -Alex On Wed, Jul 27, 2011 at 5:40 PM, Steven D'Aprano wrote: > Alexander Quest wrote: > >> Does anyone know how to assign a certain numerical range to a variable, >> and >> then choose the number that is the middle of that r

[Tutor] Assigning range

2011-07-27 Thread Alexander Quest
Does anyone know how to assign a certain numerical range to a variable, and then choose the number that is the middle of that range? For example, I want to assign the variable "X" a range between 1 and 50, and then I want to have the middle of that range (25) return with some command when I call it

Re: [Tutor] Object Management

2011-07-27 Thread Alexander
On Tue, Jul 26, 2011 at 6:25 PM, Alan Gauld wrote: > Alexander wrote: > >> Hello everyone. I'm having trouble wrapping my mind around a project I'm >> working on. My goal is to create a program that manages (allows its users >> to >> manipulate, search by

[Tutor] Object Management

2011-07-27 Thread Alexander
on how to get started with tkinter? I'm overwhelmed with the amount of documentation I've had to read and think I have to read to accomplish my goal. Thanks for reading, Alex.ander -- Alexander ___ Tutor maillist - Tutor@python.org To unsubscribe or c

[Tutor] Basic program question

2011-07-24 Thread Alexander Quest
Hello- I am running Python v 3.1.1. As an exercise, I wrote a simple coin flipper program, where the computer flips a coin 100 times and then prints out the number of heads and tails. My program crashes immediately if I run it normally through the command line, but if I go to "Run- Run Module," it

[Tutor] Basic question on spaces

2011-07-19 Thread Alexander Quest
Hello; I'm a new student of Python using "Python Programming for Absolute Beginners" 3rd edition by Michael Dawson as my guide. This is a basic question regarding spaces. I'm not sure how to make it so spaces do not show up between variables and basic strings, particularly before commas and after d

Re: [Tutor] vim as a python editor

2011-02-07 Thread Alexander Fairley
Some high profile ruby hackers have put together a pretty snazzy set of vim/gvim configs together on github at https://github.com/carlhuda/janus On the topic of configuring Capslock to be an escape key, it's because that's where the "meta" key used to be on old school unix keyboards, and so it ma

[Tutor] Please sponsor me to run the Virgin London Marathon

2010-04-16 Thread Alexander Telford
Hi, Next Sunday I am going to run the London Marathon to raise money for Treehouse: an educational charity for children with autism that is very close to my heart. Autism is a condition which my cousin James and hundreds of thousands of other people in the UK suffer from. It impairs their abili

[Tutor] Accessing a list inside a class...

2009-04-09 Thread Alexander Daychilde (Gmail)
I feel like I'm missing something simple, but I have now spent hours googling for an answer. I think I must not be searching for the right terms, or else this is something I'm not supposed to be doing - but it seems straightforward to me. Here's my test code (condensed from the actual much long

[Tutor] Iterating over letters or arbitrary symbols like they were numbers...

2009-03-18 Thread Alexander Daychilde (Gmail)
If there's an easy way to do this, I'd like to have a pointer to it (i.e. what functions would deal with this - not wanting my code written for me...) Right now, I have written code to generate a list of strings that happen to be a range of numbers. (The fact that they're strings is actually desir

[Tutor] Touchscreen GUI for PyKaraoke - Job in London

2009-03-03 Thread Alexander Telford
Hi, I am looking for someone to write a touchscreen GUI for PyKaraoke ( http://www.kibosh.org/pykaraoke/). Looking for someone based in or around London with a lot of experience of Python and Linux who willl be able to complete this project quickly. Knowledge of sound and video processing on Linux

Re: [Tutor] How to foreach over a dynamic number of levels

2009-02-12 Thread Alexander Daychilde (Gmail)
First, thank you VERY much for your help! That's amazingly much easier than I thought it would be... I was considering looping through and generating nested for loops, then exec'ing the whole mess.. UGH, and security risk, to boot... Couple of questions: > Make a list containing all the steps: >

Re: [Tutor] Tkinter Expanding Canvas with AutoScrollBar

2009-02-09 Thread Alexander Grant
Well. I solved my own problem. Mainly I wasn't using the grid manager everywhere, and I think that's what was messing it up! Thanks anyways! Al On Mon, Feb 9, 2009 at 12:29 PM, Alexander Grant wrote: > Hi Tutors, > Thanks in advance for all the advice you've already

[Tutor] Tkinter Expanding Canvas with AutoScrollBar

2009-02-09 Thread Alexander Grant
Hi Tutors, Thanks in advance for all the advice you've already given to others... it has been extremely useful! I'm working on a project, and I wanted to have a header, a footer and an expanding canvas with (possibly) many widgets inside it. I simply modified Fred Lundh's auto-hiding scrollbar c

Re: [Tutor] data structure question

2008-01-28 Thread Alexander
overloading for setting and getting. deadline = property(getDeadline,setDeadline) cost = property(getCost,setCost) # # Methods that have not been # encapsulated in TaskList. # def load(filename=False): ""&

[Tutor] data structure question

2008-01-18 Thread Alexander
nd. Persistence I think I've solved by having the container data structure dump/load itself using pickle. Best regards, Alexander ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] software modeling tools used with Python

2007-06-05 Thread Alexander Kapshuk
Thanks, Alan. The whole situation is clear as day now. Alexander Kapshuk ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] software modeling tools used with Python

2007-06-04 Thread Alexander Kapshuk
Thanks a lot Danny. Will definitely look into those things. Regards, Alexander Kapshuk ISD Education Office ICQ#295-121-606 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] software modeling tools used with Python

2007-06-04 Thread Alexander Kapshuk
seudo-coding them on a piece of paper. How do you design your programs? Regards, Alexander Kapshuk ISD Education Office ICQ#295-121-606 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] software modeling tools used with Python

2007-06-04 Thread Alexander Kapshuk
Dear Python Community, I was just wondering about what software modelling tools are normally used to design Python programs. I have heard of Star UML. Has anyone used it to design their programs? What else is available out there? Thanking you all in advance. Alexander Kapshuk

Re: [Tutor] IDLE running fine now under Windows 95:-)

2007-05-10 Thread Alexander Kapshuk
ng much ado about nothing:-). Thank you all once again. Regards, Alexander Kapshuk ISD Education Office ICQ#295-121-606 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] problems with running IDLE under Windows 95

2007-05-09 Thread Alexander Kapshuk
ce and looking forward to hearing from those of you who may have an answer. Regards, Alexander Kapshuk ISD Education Office ICQ#295-121-606 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] can python run under windows 95?

2007-05-06 Thread Alexander Kapshuk
g Python 2.5 on it, but got a message saying that the installation file could not be unpacked. What could the problem be? Thanking you all in advance and looking forward to hearing from you, Alexander Kapshuk. ___ Tutor maillist - Tutor@

[Tutor] Problem with "Hello, World"

2007-04-30 Thread Alexander Dering
So I've written my first python program (the ubiquitous 'Hello, World'). Already, I'm having problems. First, the question I can't find the answer to. Where (exactly) am I supposed to save my files? When I wrote "hello.py" there was no clearly stated "Make sure you save it HERE or else Python wo

Re: [Tutor] 'word jumble' game

2007-04-17 Thread Alexander Kapshuk
Hello Everyone, This is Alexander Kapshuk writing here again ... Could you please have a look at the code below and let me know of any shortcuts that could be used there. The code works fine as it is. I was just wandering if there was a better, more compact and elegant way of writing

  1   2   >