Re: [Tutor] Reading CSV files in Pandas

2013-10-20 Thread Mark Lawrence
m, and random number capabilities" -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] string list in alphabetical!

2013-10-20 Thread Mark Lawrence
ed_fruits.docx' ,"r") IOError: [Errno 2] No such file or directory: 'Desktop/unsorted_fruits.docx' >>> Once you have fixed the file name error which Steven has already pointed out, do you intend to call the function find that you have defined? If yes can I su

Re: [Tutor] Reading CSV files in Pandas

2013-10-21 Thread Mark Lawrence
mming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to add a new column to a hierarchical dataframe grouped by groupby

2013-10-21 Thread Mark Lawrence
mailing list at gmane.comp.python.pydata. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

Re: [Tutor] Reading CSV files in Pandas

2013-10-21 Thread Mark Lawrence
yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Fwd: Re: Passing arguments?

2013-10-22 Thread Mark Lawrence
But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Argparse and how best to use it

2013-10-24 Thread Mark Lawrence
/listinfo/tutor You can save yourself much pain by using the third party docopt, it's absolutely awesome. Download from here https://pypi.python.org/pypi/docopt/ -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Law

Re: [Tutor] Argparse and how best to use it

2013-10-24 Thread Mark Lawrence
pment section here https://github.com/docopt/docopt it's vladi...@keleshev.com -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@pytho

Re: [Tutor] taking a tuple with input

2013-10-26 Thread Mark Lawrence
u don't need to enter the parentheses, it's the comma that makes the tuple. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@pyth

Re: [Tutor] Python and memory allocation

2013-10-26 Thread Mark Lawrence
n the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] taking a tuple with input

2013-10-26 Thread Mark Lawrence
ttp://www.cnsiva.com* - Congratulations, for managing to break threading you have won tonight's star prize, a two week, all expenses paid holiday to Three Mile Island, Pennsylvania :) -- Python is the second best programming language in the world. But the best has yet to be invented

Re: [Tutor] Graphs and Python

2013-10-28 Thread Mark Lawrence
/AnotherPyGraphvizAgain/0.2.0 I've been using the former for years and it's excellent. I know nothing about the latter. HTH. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___

Re: [Tutor] UnicodeDecodeError while parsing a .csv file.

2013-10-28 Thread Mark Lawrence
language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python String Help

2013-10-29 Thread Mark Lawrence
n extremely strong hint for all newbies is to try any and all of the above suggestions at the interactive prompt. This tool is one of Python's great strengths so use it. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark

Re: [Tutor] Geometric sequence

2013-10-30 Thread Mark Lawrence
thon is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] grading programm

2013-10-30 Thread Mark Lawrence
esn't paste your code here. State exactly what you expected it to do. State what it actually did. Provide the full traceback if any, the Python version and your OS. HTH. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Ti

Re: [Tutor] Help with converting a string into a integer

2013-10-31 Thread Mark Lawrence
put, use raw_input instead. So try that and when you hit problems please get back to us, giving the data that Bob Gailer asked for earlier. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence __

Re: [Tutor] Help with converting a string into a integer

2013-10-31 Thread Mark Lawrence
aketrans(...). -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] load test a web application?

2013-11-01 Thread Mark Lawrence
Regardless of this I wish you the best of luck with your endeavours :) -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsu

Re: [Tutor] Positional Arguments

2013-11-01 Thread Mark Lawrence
uage in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] load test a web application?

2013-11-02 Thread Mark Lawrence
On 02/11/2013 11:11, Albert-Jan Roskam wrote: --- On Fri, 11/1/13, Mark Lawrence wrote: Subject: Re: [Tutor] load test a web application? To: tutor@python.org Date: Friday, November 1, 2013, 3:05 PM On 01/11/2013 09:51, Albert-Jan Roskam

Re: [Tutor] space between words printed

2013-11-03 Thread Mark Lawrence
enerate()] + verb[generate()] return y def generate(): random0_6 = random.randint(0, 6) return random0_6 def main(): print (wordList(), ".", sep="") main() Look very carefully at your assignment to y in wordList and you'll eventually answer your own question. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Creating class / OOP structure

2013-11-06 Thread Mark Lawrence
t the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Finding a nearest perfect cube

2013-11-08 Thread Mark Lawrence
ismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Finding a nearest perfect cube

2013-11-08 Thread Mark Lawrence
On 08/11/2013 10:12, Joel Goldstick wrote: On Fri, Nov 8, 2013 at 4:36 AM, Mark Lawrence wrote: On 07/11/2013 22:25, donsuni wrote: Hi, I am new to python and i have to write a following code without using any inbuilt function or a for loop. Only while and if loops are allowed. This is

Re: [Tutor] sequence of elements problem

2013-11-08 Thread Mark Lawrence
e best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Hi!

2013-11-12 Thread Mark Lawrence
ented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] basic function concept

2013-11-17 Thread Mark Lawrence
gramming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Link required for difference between class and object

2013-11-17 Thread Mark Lawrence
invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tutor Digest, Vol 117, Issue 33[ Re: Ideas ? ]

2013-11-19 Thread Mark Lawrence
t my email client? -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.

Re: [Tutor] Sending sensible e-mail

2013-11-22 Thread Mark Lawrence
g language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Extarcting data tables from a text file

2013-11-22 Thread Mark Lawrence
into problems please feel free to get back to us. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscri

Re: [Tutor] Is there a package to "un-mangle" characters?

2013-11-21 Thread Mark Lawrence
field/1282752 1) Would something like this help https://pypi.python.org/pypi/charset/1.0.1 ? 2) Surely this topic is too advanced for a tutor mailing list? -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Law

Re: [Tutor] Else vs. Continue

2013-11-24 Thread Mark Lawrence
e second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Date time

2013-11-25 Thread Mark Lawrence
t also like to look up dateutil. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

Re: [Tutor] how to only loop over first 'x' items of a list; writing a Twitter bot with tweepy

2013-11-25 Thread Mark Lawrence
s. for i, follower in enumerate(tweepy.Cursor(api.followers).items()): if i == 20: break follower_ids.append(follower.id <http://follower.id>) -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence _

Re: [Tutor] How to set variables inside a class()

2013-11-26 Thread Mark Lawrence
__init__. The constructor is called __new__. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription

Re: [Tutor] Splitting lists with strings and integers

2013-11-26 Thread Mark Lawrence
x] = int(animal[x]) Before posting anything else would you please do a tutorial yourself. The above for loop is appalling newbie code, I'll leave you to post the Pythonic format. -- Python is the second best programming language in the world. But the best has yet to be invented. Ch

Re: [Tutor] Issue w/ string input "for", "not", "while", "else" etc.

2013-11-27 Thread Mark Lawrence
tried to fix that by changing input("What is your name?") to input(str("What is your name?)) but that didn't work. Thanks in advance, I took the freedom to report it myself: http://bugs.python.org/issue19808 Thanks Peter. -- Python is the second best prog

Re: [Tutor] Splitting lists with strings and integers

2013-11-27 Thread Mark Lawrence
hen I'm already exhausted. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscri

Re: [Tutor] Loop over floating point values

2013-12-01 Thread Mark Lawrence
nge :) -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listi

Re: [Tutor] Occurrence of number 2 in a range from 1 to 100

2013-12-01 Thread Mark Lawrence
question here, preferably one that makes sense :) Unless of course your question above is to be taken literally, in which case Mr. K'Aprano has already answered. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Law

Re: [Tutor] Occurrence of number 2 in a range from 1 to 100

2013-12-01 Thread Mark Lawrence
than Python 2. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.pyth

Re: [Tutor] Occurrence of number 2 in a range from 1 to 100

2013-12-01 Thread Mark Lawrence
On 01/12/2013 17:59, Joel Goldstick wrote: On Sun, Dec 1, 2013 at 12:53 PM, Mark Lawrence mailto:breamore...@yahoo.co.uk>> wrote: On 01/12/2013 17:40, eryksun wrote: On Sun, Dec 1, 2013 at 6:14 AM, Steven D'Aprano mailto:st...@pearwood.info>> wrote:

Re: [Tutor] Occurrence of number 2 in a range from 1 to 100

2013-12-01 Thread Mark Lawrence
stian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Loop over floating point values

2013-12-02 Thread Mark Lawrence
ce but I double checked, please take another look :) -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subs

Re: [Tutor] ignoring diacritical signs

2013-12-02 Thread Mark Lawrence
//spanish.about.com/b/2010/11/29/two-letters-dropped-from-spanish-alphabet.htm. We should just stick with English as we all know that's easy, don't we? http://www.i18nguy.com/chaos.html :) -- Python is the second best programming language in the world. But the best has yet to be invented

Re: [Tutor] Help with python

2013-12-02 Thread Mark Lawrence
ure of the issues would be a good starting point. If you've not already read it here's a good starting point for how to put your question(s) together http://sscce.org/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our langu

Re: [Tutor] Beginner's question: Looping through variable & list simultaneously

2013-12-03 Thread Mark Lawrence
or maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor Loop around your list using the enumerate builtin function and an appropriate value for start, see http://docs.python.org/3/library/functions.html#enumerate

Re: [Tutor] Beginner's question: Looping through variable & list simultaneously

2013-12-03 Thread Mark Lawrence
te through the resultant iterable of tuples. for x, country in zip (range (2009, 2014)): Print (x, country) You can't zip one iterator and it's print :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence __

Re: [Tutor] Beginner's question: Looping through variable & list simultaneously

2013-12-03 Thread Mark Lawrence
In 2012 there were 1749006 backpackers worldwide and their most popular country was India. In 2013 there were 2011357 backpackers worldwide and their most popular country was Vietnam. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. M

Re: [Tutor] Beginner's question: Looping through variable & list simultaneously

2013-12-03 Thread Mark Lawrence
itably, there is a data structure within the standard library or somewhere online (e.g. pypi) that'll do the job you want, including looping, without having to reinvent wheels. And if you have to reinvent wheels, it's usually better to make them round :) -- My fellow Pythonistas,

Re: [Tutor] Beginner's question: Looping through variable & list simultaneously

2013-12-03 Thread Mark Lawrence
ot; :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Beginner's question: Looping through variable & list simultaneously

2013-12-03 Thread Mark Lawrence
On 03/12/2013 16:15, Steven D'Aprano wrote: On Tue, Dec 03, 2013 at 04:04:33PM +0000, Mark Lawrence wrote: On 03/12/2013 15:51, Steven D'Aprano wrote: Here's a modification to your earlier code using zip: PopularCountries = ["Brazil", "China", "

Re: [Tutor] 'slice', etc

2013-12-06 Thread Mark Lawrence
do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] 'slice', etc

2013-12-06 Thread Mark Lawrence
some cases at least it is not? Denis The good news is there is a memoryview in Python, see http://docs.python.org/3/library/functions.html#func-memoryview. The bad news is it doesn't work on strings. See here for the slice object http://docs.python.org/3/library/functions.html#slice.

Re: [Tutor] 'slice', etc

2013-12-06 Thread Mark Lawrence
[Once again I didn't actually write what Joel is replying to :( ] On 07/12/2013 01:49, Joel Goldstick wrote: On Fri, Dec 6, 2013 at 8:45 PM, Mark Lawrence http://docs.python.org/3.3/__library/functions.html#slice <http://docs.python.org/3.3/library/functions.ht

Re: [Tutor] Guess my number game

2013-12-07 Thread Mark Lawrence
ook you", tries, "tries!\n") input("\n\nPress the enter key to exit.") -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Unit testing in Python (3.3.0) for beginners

2013-12-08 Thread Mark Lawrence
chine. Perhaps pick some builtin functions and modules from the standard library that you've used, and see how the core developers go about testing them. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] saving Tkinter canvas as jpg

2013-12-08 Thread Mark Lawrence
python.org/pypi/Pillow/ is a fork of PIL. I've never used it myself but here's hoping!!! -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tuto

Re: [Tutor] Converting integers into digit sum (Python 3.3.0)

2013-12-10 Thread Mark Lawrence
k not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Need to create code

2013-12-10 Thread Mark Lawrence
not the physical dimensions. Then and only then will you see some actual code. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] formatting datetime.timedelta to "HH:MM:SS"

2013-12-11 Thread Mark Lawrence
so look for them around here http://docs.python.org/3/library/string.html#formatstrings -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] formatting datetime.timedelta to "HH:MM:SS"

2013-12-11 Thread Mark Lawrence
[top posting fixed] On 11 December 2013 13:37, Mark Lawrence mailto:breamore...@yahoo.co.uk>> wrote: On 11/12/2013 13:12, Jignesh Sutar wrote: print str(exe_time).split('.')[0] Sorry, I guess my question was why I can't use something simila

Re: [Tutor] recursive function example

2013-12-11 Thread Mark Lawrence
On 10/12/2013 14:48, uga...@talktalk.net wrote: [snipped] As you're clearly struggling here's my attempt at showing you what is happening. c:\Users\Mark\MyPython>type mytest.py level = 0 def mult(a, b): global level level += 1 print('level now', level, &#x

Re: [Tutor] recursive function example

2013-12-12 Thread Mark Lawrence
can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] How not to post (Was Re: Tutor Digest, Vol 118, Issue 53)

2013-12-12 Thread Mark Lawrence
ythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Superb exemplar

2013-12-12 Thread Mark Lawrence
llow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] I'm new here, just saying hi

2013-12-12 Thread Mark Lawrence
you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Using python's smtp server

2013-12-13 Thread Mark Lawrence
do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Thanks a bunch (was Re: Tutor Digest, Vol 118, Issue 64)

2013-12-13 Thread Mark Lawrence
. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] 'slice', etc

2013-12-13 Thread Mark Lawrence
On 07/12/2013 10:41, spir wrote: On 12/07/2013 02:45 AM, Mark Lawrence wrote: The good news is there is a memoryview in Python, see http://docs.python.org/3/library/functions.html#func-memoryview. The bad news is it doesn't work on strings. See here for the slice object http://docs.pytho

Re: [Tutor] list comprehension equivalent to map(function, list item)

2013-12-13 Thread Mark Lawrence
return 1 + int(number) y = [add(z) for z in x] -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Quantum computing

2013-12-14 Thread Mark Lawrence
ellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Quantum computing

2013-12-14 Thread Mark Lawrence
On 14/12/2013 17:14, Alan Gauld wrote: On 14/12/13 15:37, Mark Lawrence wrote: I believe that quantum computing is way OT for the Python tutor mailing list. Yeah, you are probably right. Although there are precedents where we have discussed general topics about the future of computing and

Re: [Tutor] Quantum computing

2013-12-15 Thread Mark Lawrence
On 15/12/2013 04:55, William Ray Wing wrote: On Dec 14, 2013, at 1:22 PM, Mark Lawrence wrote: On 14/12/2013 17:14, Alan Gauld wrote: On 14/12/13 15:37, Mark Lawrence wrote: I believe that quantum computing is way OT for the Python tutor mailing list. Yeah, you are probably right

Re: [Tutor] Prime Numbers

2013-12-15 Thread Mark Lawrence
#x27;is_prime return True') return True for i in range(2, 10): is_prime(i) print() -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@p

Re: [Tutor] Logging script output

2013-12-15 Thread Mark Lawrence
k not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] How to get nested boundaries in Multipart email

2013-12-15 Thread Mark Terry
Hello all, I'm trying to script email from database data. Following the examples at http://docs.python.org/3.3/library/email-examples.html I'm able to send simple emails, multipart emails with attachments, and multipart emails with alternative text. What I'm trying to do now is get multipart em

Re: [Tutor] Introduction

2013-12-15 Thread Mark Lawrence
vance I know nothing about the book myself, but there is a very positive review here http://neopythonic.blogspot.co.uk/2013/10/book-review-charles-dierbach.html from some Dutch geezer :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our langua

Re: [Tutor] Continue Statement

2013-12-16 Thread Mark Lawrence
an do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Built In Functions

2013-12-17 Thread Mark Lawrence
modify the body of the code in your original check_values functions by removing one word. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Built In Functions

2013-12-17 Thread Mark Lawrence
he other missing bit, a right parenthesis, now did I? Well I missed both, partly due to being hopelessly unobservant, and partly down to having too much faith in Steven so not reading it properly :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our

Re: [Tutor] set locals

2013-12-18 Thread Mark Lawrence
setattr(), really. Really, yes! Denis Can I be so bold as to ask how discussing metaclasses and __setattr__ on a tutor mailing list is going to help the newbie who's having problems with their "hello world" program? -- My fellow Pythonistas, ask not what our language can

Re: [Tutor] Getting Started

2013-12-18 Thread Mark Lawrence
onistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Getting Started

2013-12-18 Thread Mark Lawrence
On 18/12/2013 20:47, Alan Gauld wrote: On 18/12/13 19:21, Mark Lawrence wrote: languages such as Java and C++. For example, I use Eclipse and Pydev and have the static code checker Pylint automatically look at my code as I type. Ooh! that's a new one, how do you set that up? I use Ec

Re: [Tutor] Tutor Digest, Vol 118, Issue 95

2013-12-20 Thread Mark Lawrence
ll be surprised if a 5 y.o. gets through it. They suggest 10 yo and up. But kids can often rise to challenges, good luck! -- Keith Please change the subject if you're replying to a digest. TIA. -- My fellow Pythonistas, ask not what our lang

Re: [Tutor] Tutor Digest, Vol 118, Issue 99

2013-12-21 Thread Mark Lawrence
nce variables, would you care to explain it please. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Stuck on error

2013-12-22 Thread Mark Lawrence
econd time? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailma

Re: [Tutor] The Charms of Gmail

2013-12-22 Thread Mark Lawrence
On 21/12/2013 18:57, Keith Winston wrote: On Sat, Dec 21, 2013 at 6:00 AM, mailto:tutor-requ...@python.org>> wrote: I'm unsure as to what the subject line has in common with class and instance variables, would you care to explain it please. I'm sorry Mark, I'm s

Re: [Tutor] Using asyncio in event-driven network library

2013-12-22 Thread Mark Lawrence
do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] The Charms of Gmail

2013-12-22 Thread Mark Lawrence
is has happened on at least the last six messages I've seen from you. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] print in py3

2013-12-22 Thread Mark Lawrence
ndex book marked :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Chutes & Ladders

2013-12-23 Thread Mark Lawrence
aybe this helps https://wiki.python.org/moin/PythonSpeed/PerformanceTips ? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Using asyncio in event-driven network library

2013-12-23 Thread Mark Lawrence
On 23/12/2013 12:06, Tobias M. wrote: On 22.12.2013 16:59, Tobias M. wrote: On 12/22/2013 04:50 PM, Mark Lawrence wrote: I'm sorry that I can't help directly, but the asyncio module is so new that I don't know if any of the other regulars here can help either :( I'd be inc

Re: [Tutor] How to post: Was Re: The Charms of Gmail

2013-12-23 Thread Mark Lawrence
rt us for places such as stackoverflow, where they can read top voted answers that are completely wrong. They'll feel great but may have been lead up the garden path regarding Python. -- My fellow Pythonistas, ask not what our language can d

Re: [Tutor] How to post: Was Re: The Charms of Gmail

2013-12-23 Thread Mark Lawrence
On 23/12/2013 15:11, Steven D'Aprano wrote: On Mon, Dec 23, 2013 at 12:59:15PM +0000, Mark Lawrence wrote: I entirely agree. I'll offer to supply the cotton wool, baby oil, bibs and nappies that we can wrap the newbies up in "Wrap the newbies up in"? Who taught you to

Re: [Tutor] Fwd: Re: How to post: Was Re: The Charms of Gmail

2013-12-23 Thread Mark Lawrence
ll soon be rid of the whole lot!!! -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription opti

Re: [Tutor] unicode: alpha, whitespaces and digits

2013-12-29 Thread Mark Lawrence
nt to look at http://docs.python.org/3.3/howto/unicode.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] lists of lists: more Chutes & Ladders!

2013-12-31 Thread Mark Lawrence
chutes & ladders, and related stats. As always, any comments on style or substance are appreciated. Please intersperse or bottom post, top posting makes things very difficult to follow, especially in long threads. TIA. -- My fellow Pythonistas, ask not wha

<    3   4   5   6   7   8   9   10   11   12   >