Re: [Tutor] subtyping builtin type

2013-12-31 Thread Mark Lawrence
it, can someone explain 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] ValueError: could not convert string to float: '13,2'

2013-12-31 Thread Mark Lawrence
cale.LC_NUMERIC, "en_DK.UTF-8") print(locale.atof("3,14")) See http://docs.python.org/3/library/locale.html#background-details-hints-tips-and-caveats for the background. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can d

Re: [Tutor] subtyping builtin type

2013-12-31 Thread Mark Lawrence
On 31/12/2013 17:53, eryksun wrote: On Tue, Dec 31, 2013 at 11:21 AM, Mark Lawrence wrote: The glossary entry for __slots__ states "A declaration inside a class that saves memory by pre-declaring space for instance attributes and eliminating instance dictionaries. Though popular, the tech

Re: [Tutor] subtyping builtin type

2013-12-31 Thread Mark Lawrence
On 31/12/2013 21:11, Mark Lawrence wrote: On 31/12/2013 17:53, eryksun wrote: Refer to the language reference: http://docs.python.org/3/reference/datamodel.html#notes-on-using-slots Not found on the windows CHM file. Looks like another bug report to keep our lazy, bone idle core developers

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

2014-01-01 Thread Mark Lawrence
, 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] Shelve & immutable objects

2014-01-01 Thread Mark Lawrence
n some who pose questions here!!! Happy New Year to everybody. And as I've already said elsewhere, let's hope 2014 is more code, less bugs :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our

Re: [Tutor] What's in a name?

2014-01-02 Thread Mark Lawrence
It doesn't help that the code you've posted isn't even valid. If you add the missing colon at the end of the for loop, you've still got a problem in that standard lists don't have a name attribute. -- My fellow Pythonistas, ask not what our lan

Re: [Tutor] What's in a name?

2014-01-02 Thread Mark Lawrence
7;ve never used eval in over 10 years of using Python, here's why http://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___

Re: [Tutor] Fwd: What's in a name?

2014-01-02 Thread Mark Lawrence
On 03/01/2014 06:18, Keith Winston wrote: Shoot: I sent this response directly to Mark, without even trimming. Here it is to the list... Hi Mark: sorry for unclarity. I am probably going to make a hash of explaining this, but here goes: I want to iterate a variable across a list of objects

Re: [Tutor] Fwd: What's in a name?

2014-01-02 Thread Mark Lawrence
On 03/01/2014 06:55, Keith Winston wrote: Mark wrote: You enjoy making life difficult for yourself :) You've assigned strings to the name func, just assign the functions themselves? Like. for func in max, min: print(func.__name__, func(range(5))) Output. max 4

Re: [Tutor] sqlite3 import problem

2014-01-03 Thread Mark Lawrence
e me Alan, this is an oft used idiom in Python. A typical example would be having a fast C module but if this can't be imported fall back to a Python implementation. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can d

Re: [Tutor] python, speed, game programming

2014-01-03 Thread Mark Lawrence
On 03/01/2014 21:41, Keith Winston wrote: -- Keith Frankly I think you're lining up to jump fences when you're actually riding on the flat :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mar

Re: [Tutor] Copying [was Re: What's in a name?]

2014-01-03 Thread Mark Lawrence
docs.python.org/3/library/copy.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:

Re: [Tutor] python problems on android

2014-01-04 Thread Mark Lawrence
asssuming that there is one. -- 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://

Re: [Tutor] More or less final Chutes & Ladders

2014-01-04 Thread Mark Lawrence
integers. Use the dis module to compare the byte code that the two lines of code produce. The difference is interesting. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___

Re: [Tutor] encoding question

2014-01-05 Thread Mark Lawrence
future.org/ -- 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] garbage collecting

2014-01-08 Thread Mark Lawrence
know where to make the call. Even then, if memory is being allocated and Python thinks it's still in use, calling the GC won't have any impact anyway. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence _

Re: [Tutor] OverflowError: cannot fit 'long' into an index-sized integer

2014-01-08 Thread Mark Lawrence
h" yet, that's interesting. As usual, I don't totally get it... Keith Search for python context managers, then read to your hearts's content :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] garbage collecting

2014-01-08 Thread Mark Lawrence
ithm or buy more ram :) A slight aside you've managed to lose all of my context, more problems with gmail I take it? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___

Re: [Tutor] garbage collecting

2014-01-08 Thread Mark Lawrence
On 08/01/2014 10:41, Alan Gauld wrote: On 08/01/14 08:15, Mark Lawrence wrote: Did I? :) I just saw where I could do os.system('python'), but in restarting the interpreter I'd lose everything currently loaded: my real question involves merely pushing the garbage collector

Re: [Tutor] need help how to run it on python 3.3

2014-01-08 Thread Mark Lawrence
lease Select the number which is the correct definition of the word:" ,keywords[word] Please add the needed brackets, print is a function in Python 3, not a statement. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mar

Re: [Tutor] need help how to run it on python 3.3

2014-01-08 Thread Mark Lawrence
3.0.html#common-stumbling-blocks Have you read this document already? Please don't attach 118kb screenshot files when you could have used cut and paste for the four lines that are relevant. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for

Re: [Tutor] Python Question

2014-01-10 Thread Mark Lawrence
parameter and prints them to the screen. This is my closest guess: def print_ID(“Amy Davidson”, 1) The def line should finish with a colon. How do you expect to call this function for "Mark Lawrence", 1? Research something like:- python functions parameters arguments. Stud

Re: [Tutor] Windows Install Issue

2014-01-11 Thread Mark Lawrence
omputing.co.uk/software/pyqt/download5, find the section "Binary Packages" and this gives Windows 32 and 64 bit installers. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___

Re: [Tutor] Windows Install Issue

2014-01-11 Thread Mark Lawrence
On 11/01/2014 15:24, Matthew Ngaha wrote: On Sat, Jan 11, 2014 at 2:55 PM, Mark Lawrence wrote: On Windows finding a binary installer is always the first thing to do, makefiles indeed. Go here http://www.riverbankcomputing.co.uk/software/pyqt/download5, find the section "Binary Packages

Re: [Tutor] need help

2014-01-11 Thread Mark Lawrence
guage 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] Basic tips - was Re: Tutor Digest, Vol 115, Issue 28

2014-01-11 Thread Mark Lawrence
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] another better way to do this ?

2014-01-12 Thread Mark Lawrence
to figure out... maybe next week ;) A better idea would be to find out why the above dosn't work correctly, I'll leave that in your capable hands :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___

Re: [Tutor] how to use 2to3

2014-01-13 Thread Mark Lawrence
ITHOUT* the -w flag. Am I correct? You could have found this out for yourself by using this command:- 2to3 --help -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tuto

Re: [Tutor] Naming variables

2014-01-19 Thread Mark Lawrence
ven D'Aprano to supply us with the actual figures from the timeit module :) -- 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.or

Re: [Tutor] string indexing

2014-01-19 Thread Mark Lawrence
nistas, 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] 4.7.5

2014-01-20 Thread Mark Lawrence
)] I have increased the size of the two s's to show the problem. Doug What has the name you've given your lambda parameter got to do with the name of your list? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence _

Re: [Tutor] how run it on python 3

2014-01-20 Thread Mark Lawrence
as, 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] How to print certain elements

2014-01-21 Thread Mark Lawrence
a shorthand single line form. hth If you must top post please get your facts right. In [1]: X=['washington','adams','jefferson','madison','monroe'] In [2]: print(X[::3]) ['washington', 'madison'] In [3]: pri

Re: [Tutor] downloading Python

2014-01-23 Thread Mark Lawrence
s both my main and spare crystal balls are currently being mended. So if you'd be kind enough to tell us exactly what you've tried and exactly what went wrong then I'm certain that we'll be able to help. -- My fellow Pythonistas, ask not what our language can do for you,

Re: [Tutor] code works in windows command but not ubuntu terminal

2014-01-25 Thread Mark Lawrence
our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] code works in windows command but not ubuntu terminal

2014-01-25 Thread Mark Lawrence
ll :-) Still my favourite http://english.stackexchange.com/questions/16285/what-is-the-meaning-of-the-expression-we-can-table-this as it caused a row between UK and US commanders during WWII. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our l

Re: [Tutor] When is = a copy and when is it an alias

2014-01-27 Thread Mark Lawrence
thing from the numpy maths library and not pure Python. -- 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 subscri

Re: [Tutor] reading files

2014-01-29 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] reading files

2014-01-29 Thread Mark Lawrence
On 29/01/2014 14:50, Gabriele Brambilla wrote: thanks to everyone, I've used David's method. Gabriele 2014-01-29 Mark Lawrence mailto:breamore...@yahoo.co.uk>> On 29/01/2014 02:09, Gabriele Brambilla wrote: Hi, how could I read float numbers if the dat

Re: [Tutor] help with data insert into Access table

2014-01-29 Thread Mark Lawrence
inting out that there is a difference here between the OP's 'Site Name's Harbor.JPG' and Peter's "Site Name's Harbor.JPG". Left as homework for the newbies :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our

Re: [Tutor] help with data insert into Access table

2014-01-29 Thread Mark Lawrence
On 29/01/2014 19:47, Keith Winston wrote: On Wed, Jan 29, 2014 at 12:11 PM, Mark Lawrence wrote: I think it's worth pointing out that there is a difference here between the OP's 'Site Name's Harbor.JPG' and Peter's "Site Name's Harbor.JPG". Lef

Re: [Tutor] interactive script

2014-01-31 Thread Mark Lawrence
Python 3. -- 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] help me

2014-02-01 Thread Mark Lawrence
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] learning recursion

2014-02-08 Thread Mark Lawrence
==2: return 1 else: return fib(n-2) + fib(n-1) thanks, rakesh -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http

Re: [Tutor] Python .decode issue

2014-02-10 Thread Mark Lawrence
tion options: https://mail.python.org/mailman/listinfo/tutor "AttributeError: 'str' object has no attribute 'decode'" is saying that header_hex has no attribute decode, the string 'hex' doesn't enter into the equation. -- My fellow Pythonistas, ask no

Re: [Tutor] Performing an union of two files containing keywords

2014-02-17 Thread Mark Lawrence
nd(fin2.readlines()) with open("D:\\file3.txt", "r+") as fout: fout.write('\n'.join(lines)) Use sets http://docs.python.org/3/library/stdtypes.html#set -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: [Tutor] Upload a file using python

2014-02-17 Thread Mark Lawrence
not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] for: how to skip items

2014-02-17 Thread Mark Lawrence
Please don't top post on this list. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com __

Re: [Tutor] Regular expression - I

2014-02-18 Thread Mark Lawrence
ll last) in () > 1 re.match(r'',string).group() AttributeError: 'NoneType' object has no attribute 'group' In [44]: re.match(r'',string) Thanks, santosh Please do not top post on this list. -- My fellow Pythonistas, ask not what our language c

Re: [Tutor] could please convert this code to 3.X by using 2to3

2014-02-18 Thread Mark Lawrence
On 18/02/2014 20:57, S Tareq wrote: sorry, is there any other way to convert the coding Use an editor? Or try this:- c:\Users\Mark>2to3 --help Usage: 2to3 [options] file|dir ... Options: -h, --helpshow this help message and exit -d, --doctests_only Fix up doctests o

Re: [Tutor] Looking for IAC solutions in Python

2014-02-19 Thread Mark Lawrence
u try the main Python mailing list/newsgroup rather than this tutor list. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active.

Re: [Tutor] constructing semi-arbitrary functions

2014-02-19 Thread Mark Lawrence
info/tutor, looks as if your choices are activestate or gmane, I'm unsure as to whether or not you can grab gzip'd text. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and m

Re: [Tutor] os.symlink can't find target

2014-02-24 Thread Mark Lawrence
he directory exists. # A thorough coder would check the errno here pass Python 3.3+ allows finer grained error handling than that shown above, so you could catch FileExistsError, see http://legacy.python.org/dev/peps/pep-3151/ for the details. -- My fellow Pythonistas, ask not what our

Re: [Tutor] running unittests on multiple OS, including non-Posix

2014-02-28 Thread Mark Lawrence
e that this question is suited to a tutor mailing list? Strangely enough I don't but I'm pleased to see that you've taken Ben Finney's advice and gone to the testing mailing list. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our

Re: [Tutor] Help with "Guess the Number" script

2014-03-01 Thread Mark Lawrence
unction in Python 3, again a great way to observe what your code is doing. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is ac

[Tutor] What is the unladen airspeed velocity of a swallow in flight?

2014-03-02 Thread Mark Lawrence
r you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscripti

Re: [Tutor] Equality Check.

2014-03-02 Thread Mark Lawrence
the comparison. You also don't have to read the whole file just to compare a specific line. I'll leave you to find out how :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from virus

Re: [Tutor] Equality Check.

2014-03-02 Thread Mark Lawrence
t thinking straight :( -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www

Re: [Tutor] HTML Parser woes

2014-03-04 Thread Mark Lawrence
alue == 'x165' if 'x165' in value and every other test I can think of. Why am I not seeing the "We got a date" message? PS. Please don't suggest other modules/packages etc, I'm using html.parser for a reason. Frustratedly, Steven has pointed out the sy

Re: [Tutor] Help with Guess the number script

2014-03-08 Thread Mark Lawrence
guess < 1 or guess > 100: Only now do I feel that it's time to point out that the above line would probably be written by an experienced Python programmer as:- if 1 > guess > 100: -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do fo

Re: [Tutor] Help with Guess the number script

2014-03-08 Thread Mark Lawrence
or our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.pyt

Re: [Tutor] educational

2014-03-09 Thread Mark Lawrence
ly be helped by the extremely sensible PEP 434 http://legacy.python.org/dev/peps/pep-0434/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus prot

Re: [Tutor] Help with Guess the number script

2014-03-10 Thread Mark Lawrence
On 10/03/2014 02:05, Scott W Dunning wrote: On Mar 8, 2014, at 7:35 AM, Mark Lawrence wrote: I have no interest in the efficiency, only what is easiest for me to read, which in this case is the chained comparison. As a rule of thumb I'd also prefer it to be logically correct :)

Re: [Tutor] Help with Guess the number script

2014-03-10 Thread Mark Lawrence
as, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@pytho

Re: [Tutor] Trying to read dBase files

2014-03-12 Thread Mark Lawrence
3 against dbfpy. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com __

Re: [Tutor] Loop Issue

2014-03-12 Thread Mark Lawrence
istas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@pyt

Re: [Tutor] How to create a sqlite table schema dynamically

2014-03-19 Thread Mark Lawrence
#x27;') But I don't know how to pass the os key to the sqlite command. Thank you in advance for any help, Kind regards, http://docs.python.org/3/library/sqlite3.html#module-sqlite3 the 7th paragraph describes 'parameter substitution' -- My fellow Pythonistas, ask not wh

Re: [Tutor] FW: Beginner - list not returning correct variable value

2014-03-19 Thread Mark Lawrence
7;s reply that was posted on the same day as your original query? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is act

Re: [Tutor] please help

2014-03-21 Thread Mark Lawrence
pecific questions about any problems that you may encounter. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is activ

Re: [Tutor] please help

2014-03-21 Thread Mark Lawrence
http://docs.python.org/3/library/collections.html#collections.Counter :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avas

Re: [Tutor] 2 Very basic queries

2014-03-26 Thread Mark Lawrence
Please raise an issue on the bug tracker if there isn't one already, as Terry Reedy and others have been doing a lot of work to improve IDLE recently, helped by PEP 434 "IDLE Enhancement Exception for All Branches". -- My fellow Pythonistas, ask not what our language can do for

Re: [Tutor] 2 Very basic queries

2014-03-27 Thread Mark Lawrence
On 26/03/2014 16:54, Alan Gauld wrote: On 26/03/14 15:38, Mark Lawrence wrote: On 26/03/2014 01:26, Alan Gauld wrote: >>> if ph < 7.0: print(ph, "is acidic.") elif ph > 7.0: print(ph, "is basic.") in my IDLE. That's pretty ugly and I

Re: [Tutor] Help Noob Question

2014-03-27 Thread Mark Lawrence
;" python string1.py""""" into the interpreter! maybe a dumb question but i would appreciate the help for sure. thanks :) Please don't top post on this list. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: [Tutor] Help Noob Question

2014-03-27 Thread Mark Lawrence
what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] Help Noob Question

2014-03-28 Thread Mark Lawrence
by `cd PythonProjects`… Because the desktop is hardly ever anywhere near where the cmd prompt lands you. So cd desktop usually results in an error and typing the full path (even with directory completion, Mark) is a royal pain because you have to remember where it is. There is no ~ shortcut in

Re: [Tutor] while loop

2014-03-31 Thread Mark Lawrence
e(s, str) assert isinstance(n, int) They say that the truth hurts, so if that's the best you can come up with, I suggest you give up programming :( -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This

Re: [Tutor] exercise (while loop)

2014-04-01 Thread Mark Lawrence
, but let's make sure about this. Can you explain what 'x', 'y' are in this function? And the difference between eps and epsilon while (ouch) we're at it. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

[Tutor] Learn programming by visualizing code execution

2014-04-03 Thread Mark Lawrence
That's what this site http://pythontutor.com/ claims although I haven't tried it myself. Hopefully it's of some use to all you newbies out there :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- Thi

Re: [Tutor] conditional execution

2014-04-03 Thread Mark Lawrence
hon-libraries/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com _

Re: [Tutor] One on one tutor

2014-04-05 Thread Mark Lawrence
guage can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] Delete unwanted rows

2014-04-09 Thread Mark Lawrence
ndas that does this for you? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com _

Re: [Tutor] Delete unwanted rows

2014-04-09 Thread Mark Lawrence
is mostly about the basics of generic Python. gmane.comp.python.pydata or https://groups.google.com/forum/#!forum/pydata but I'd definitely recommend the former. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: [Tutor] masking library files

2014-04-09 Thread Mark Lawrence
On 09/04/2014 15:17, uga...@talktalk.net wrote: Is it common for files saved to a working directory to 'mask' library files located in the Python framework? -A Yes. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mar

Re: [Tutor] masking library files

2014-04-10 Thread Mark Lawrence
community such as Dave. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www

Re: [Tutor] improving speed using and recalling C functions

2014-04-10 Thread Mark Lawrence
istas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@pyt

Re: [Tutor] Creating an Invalid message for user

2014-04-11 Thread Mark Lawrence
enter 123&&gf I am not told to try again with a valid input - how do I implement this in the code above Thanks Saba https://docs.python.org/3/tutorial/errors.html#handling-exceptions is as good a starting point as any. -- My fellow Pythonistas, ask not what our language can do for

Re: [Tutor] Quick Question

2014-04-15 Thread Mark Lawrence
means least, where is the Python question here? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com

Re: [Tutor] Recognising Errors

2014-04-21 Thread Mark Lawrence
on whether you're talking about Outlook the Office application or Outlook the new name for Hotmail. I think :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because a

Re: [Tutor] Help needed with Python programming

2014-04-22 Thread Mark Lawrence
ath\to\file.txt' -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com _

Re: [Tutor] inheritance and super() function in python

2014-04-23 Thread Mark Lawrence
professional response. Jorge Excellent article here on super for anybody who's interested http://rhettinger.wordpress.com/2011/05/26/super-considered-super/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This

Re: [Tutor] global list

2014-04-24 Thread Mark Lawrence
k not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@python.o

[Tutor] attributes vs globals (was Re: global list)

2014-04-24 Thread Mark Lawrence
t our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@python.org To unsubscri

Re: [Tutor] xlrd package

2014-04-26 Thread Mark Lawrence
-- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor

Re: [Tutor] New to Python

2014-04-28 Thread Mark Lawrence
l, why should we now waste our time attempting to help you? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active.

Re: [Tutor] array('c')

2014-05-01 Thread Mark Lawrence
de see https://docs.python.org/2/library/array.html#module-array but note that this does *NOT* exist in Python 3. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and ma

Re: [Tutor] Final review

2014-05-01 Thread Mark Lawrence
hat our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com ___ Tutor maillist - Tutor@python.org To unsub

Re: [Tutor] PyCountry currency formatting woes

2014-05-04 Thread Mark Lawrence
but even then "it falls over" isn't too helpful. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast

[Tutor] Please give a sensible subject (was (no subject))

2014-05-12 Thread Mark Lawrence
On 11/05/2014 16:50, munazah zaidi wrote: i want help http://www.catb.org/esr/faqs/smart-questions.html http://www.sscce.org/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and

Re: [Tutor] Read a matrix with lines in different behavior

2014-05-23 Thread Mark Lawrence
ne.split, not four, and I'm unsure whather or not the call to vector.append is what you actually want. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because

<    4   5   6   7   8   9   10   11   12   >