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
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
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
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
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
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
/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
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
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
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
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
/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
___
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
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
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
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
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
__
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
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
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
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
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
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
ismer
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
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
ented. Christian Tismer
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
invented. Christian Tismer
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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.
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
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
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
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
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
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
_
__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
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
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
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
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
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
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
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:
stian Tismer
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
//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
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
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
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
__
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
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,
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
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", "
do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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.
[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
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
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
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
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
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
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
[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
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,
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
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
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
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
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
.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
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
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
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
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
#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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
701 - 800 of 1119 matches
Mail list logo