Re: [Tutor] Help on best way to check resence of item inside list

2014-05-27 Thread Mark Lawrence
for an item in a list. However a very quick glance at your code suggests that you could cut out the list completely and do the same using the in keyword against your dict. Better still I think the defaultdict is what you need here, I'll l

Re: [Tutor] pylab axis

2014-05-29 Thread Mark Lawrence
e as I've been there :) -- 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] Python Code Error

2014-05-29 Thread Mark Lawrence
ython you're almost certainly doing it wrong. For loops usually look like this. for ay in Ay11: doSomeThingWithAy(ay) -- 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 malwa

Re: [Tutor] Swampy: No module name World

2014-06-02 Thread Mark Lawrence
ssing that you've downloaded a tar or zip file and manually installed it soemwhere else, am I correct? -- 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!

Re: [Tutor] How does one construct a module for import?

2014-06-02 Thread Mark Lawrence
On 02/06/2014 17:08, Sydney Shall wrote: Would you please be kind enough to stop top posting, it makes following a thread difficult, thanks. -- 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

Re: [Tutor] Swampy: No module name World

2014-06-03 Thread Mark Lawrence
indows tool over the command-line in this case. Never heard of it so thanks for the link. -- 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 pr

Re: [Tutor] How to create a dictionary for ount elements

2014-06-03 Thread Mark Lawrence
27;, 'sample2', 'TLK1', '4'] I want to create a dictionary with set data with the names of the genes: example: dic = {} dic['program1-sample1] = set(TP53) dic['program1-sample2] = set(TP53,PRNP,ATF3) So If I have a dictionary like that I can compare two se

[Tutor] idlex

2014-06-06 Thread Mark Lawrence
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 chan

Re: [Tutor] idlex

2014-06-07 Thread Mark Lawrence
On 07/06/2014 01:12, Alan Gauld wrote: On 06/06/14 23:13, Mark Lawrence wrote: I'd never heard of this until today so thought I'd flag it up for the benefit of anybody who might be interested. It's at http://idlex.sourceforge.net/ IdleX is cool. They've been tryin

Re: [Tutor] Simple python help

2014-06-10 Thread Mark Lawrence
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 unsubscribe or

Re: [Tutor] A couple newbie questions about Python

2014-06-12 Thread Mark Lawrence
nistas, 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 - Tuto

Re: [Tutor] AttributeError: 'module' object has no attribute 'start'

2014-06-12 Thread Mark Lawrence
better answers on the wxpython list, especially consdiering that you asked there all of two minutes before asking 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 beca

Re: [Tutor] AttributeError: 'module' object has no attribute 'start'

2014-06-13 Thread Mark Lawrence
On 12/06/2014 17:51, jason sam wrote: The last question i hadn't asked yet..and if u are not interested in answering the question then also refrain from commenting please! On Thu, Jun 12, 2014 at 9:47 PM, Mark Lawrence mailto:breamore...@yahoo.co.uk>> wrote: On 12/06/2014 05:51

Re: [Tutor] global variables/constants versus volatile variables/constants

2014-06-15 Thread Mark Lawrence
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.python.org

Re: [Tutor] Tips

2014-06-18 Thread Mark Lawrence
ythonistas, 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@

Re: [Tutor] Tips

2014-06-18 Thread Mark Lawrence
e the interface Can you please explain what you mean by this? He means use the Python interpreter, by going to your console and typing "python", or in Windows it's called 'IDLE'. Nope, I meant what Mark and Danny said. For example don't do this: def add(a,b

Re: [Tutor] Tips

2014-06-18 Thread Mark Lawrence
On 18/06/2014 20:17, Albert-Jan Roskam wrote: - Original Message - From: Mark Lawrence To: tutor@python.org Cc: Sent: Wednesday, June 18, 2014 9:03 PM Subject: Re: [Tutor] Tips On 18/06/2014 15:25, Albert-Jan Roskam wrote: - Original Message - From: Alan Gauld To

Re: [Tutor] Tips

2014-06-18 Thread Mark Lawrence
r 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.python.o

Re: [Tutor] Tips

2014-06-19 Thread Mark Lawrence
On 19/06/2014 10:09, Albert-Jan Roskam wrote: - Original Message - From: Mark Lawrence To: tutor@python.org Cc: Sent: Thursday, June 19, 2014 8:41 AM Subject: Re: [Tutor] Tips On 19/06/2014 02:36, Danny Yoo wrote: [content about __add__ dispatch resolution cut] We should

Re: [Tutor] python libraries online

2014-06-19 Thread Mark Lawrence
are umpteen other Python versions, IronPython for .Net amongst others. Please don't top post on this list, it's extremely irritating following long threads when this is done. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Ma

Re: [Tutor] python libraries online

2014-06-19 Thread Mark Lawrence
low 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 maillist - T

Re: [Tutor] write dictionary to file

2014-06-20 Thread Mark Lawrence
happens you're creating a tuple when you assign output, as it's the comma that makes a tuple, so unless I've missed something there's your problem. Further advice is to slow down a bit, remember more haste, less speed. Walking away from the problem for a few minutes to c

Re: [Tutor] Fwd: Re: Tips

2014-06-21 Thread Mark Lawrence
rgotten more about Python than I've ever learned, the @#$%^&* :) -- 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 protectio

Re: [Tutor] regarding my strange issue output not showing up as floats

2014-06-21 Thread Mark Lawrence
out http://sscce.org/ as it's a very handy reference. -- 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

[Tutor] How to list/process files with identical character strings

2014-06-24 Thread mark murphy
help? Thanks so much! Mark -- Mark S. Murphy Alumnus Department of Geography msmur...@alumni.unc.edu 951-252-4325 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to list/process files with identical character strings

2014-06-24 Thread mark murphy
Hi Danny, Marc, Peter and Alex, Thanks for the responses! Very much appreciated. I will take these pointers and see what I can pull together. Thanks again to all of you for taking the time to help! Cheers, Mark On Tue, Jun 24, 2014 at 4:39 PM, Danny Yoo wrote: > The sorting appro

Re: [Tutor] How to list/process files with identical character strings

2014-06-24 Thread Mark Lawrence
On 24/06/2014 22:01, mark murphy wrote: Hi Danny, Marc, Peter and Alex, Thanks for the responses! Very much appreciated. I will take these pointers and see what I can pull together. Thanks again to all of you for taking the time to help! Cheers, Mark On Tue, Jun 24, 2014 at 4:39 PM, Danny

Re: [Tutor] Package Installation Issue

2014-06-27 Thread Mark Lawrence
u've tried and precisely what went wrong I'm sure that we can help. -- 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 protect

Re: [Tutor] Finding numeric day in a year...

2014-06-28 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 ch

Re: [Tutor] Finding numeric day in a year...

2014-06-28 Thread Mark Lawrence
ng it, and then converting it back to a date again... Well spotted :) Ken G. please see https://docs.python.org/3/library/sqlite3.html#default-adapters-and-converters -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ---

Re: [Tutor] 2.7.7 Initial Problem

2014-07-02 Thread Mark Lawrence
something else? -- 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] Instead of *.TXT I would like to use *.CSV exported from Excel

2014-07-03 Thread Mark Lawrence
Slight aside, it appears from "cell#" that you're in prison. Is that the case, or did you actually mean "mobile phone number"? :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email i

Re: [Tutor] Why is Quick Search at docs.Python.org so useless?

2014-07-05 Thread Mark Lawrence
s? :) -- 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 ___ Tut

Re: [Tutor] Why is Quick Search at docs.Python.org so useless?

2014-07-05 Thread Mark Lawrence
. Deb in WA, USA It's known to be useless so don't bother, use a google site specific search instead. Aside, your paragraphs are on one line, hope you're not using the dreaded google groups? :) -- My fellow Pythonistas, ask not what our language can do for you, ask what

Re: [Tutor] Why is Quick Search at docs.Python.org so useless?

2014-07-06 Thread Mark Lawrence
On 06/07/2014 19:08, memilanuk wrote: On 07/05/2014 11:53 AM, Mark Lawrence wrote: As I said it's a known problem, but then so are the 4600 bugs at bugs.python.org. So why bother spending the time making the search useful when there is a well known workaround Because it's supposed

Re: [Tutor] Why is Quick Search at docs.Python.org so useless?

2014-07-06 Thread Mark Lawrence
h was not very high up the priority list, possibly not even on it :( -- 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] How to Create Webpage with Python

2014-07-09 Thread Mark Lawrence
ng all of the information out there on Google. Thanks For the excel side see http://www.python-excel.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 malware because

Re: [Tutor] plz find error

2014-07-10 Thread Mark Lawrence
." Is that bad? -- 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:

[Tutor] Anti-Patterns in Python Programming

2014-07-10 Thread Mark Lawrence
Just came across this and thought it might be handy for newbies, lurkers and the like http://lignos.org/py_antipatterns/ -- 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

Re: [Tutor] Gmane archive/web site

2014-07-10 Thread Mark Lawrence
/www.gmane.org says it's down. -- 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] Anti-Patterns in Python Programming

2014-07-10 Thread Mark Lawrence
/howto/doanddont.html are always up to date, the one you give is by definition 3.1 specific and so will never change until such time as it presumably disappears completely. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] sometimes I feel like my head is going to explode

2014-07-10 Thread Mark Lawrence
I don't believe that you can call yourself a professional programmer until you've inadvertantly written an infinite number of infinite loops :) -- 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

Re: [Tutor] Anti-Patterns in Python Programming

2014-07-11 Thread Mark Lawrence
On 10/07/2014 20:06, Mark Lawrence wrote: On 10/07/2014 19:06, Albert-Jan Roskam wrote: Just came across this and thought it might be handy for newbies, lurkers and the like http://lignos.org/py_antipatterns/ This one is also nice: https://docs.python.org/3.1/howto/doanddont.html Links

Re: [Tutor] Anti-Patterns in Python Programming

2014-07-11 Thread Mark Lawrence
On 11/07/2014 15:39, Albert-Jan Roskam wrote: - Original Message - From: Mark Lawrence To: tutor@python.org Cc: Sent: Friday, July 11, 2014 3:26 PM Subject: Re: [Tutor] Anti-Patterns in Python Programming On 10/07/2014 20:06, Mark Lawrence wrote: On 10/07/2014 19:06, Albert-Jan

Re: [Tutor] Anti-Patterns in Python Programming

2014-07-11 Thread Mark Lawrence
On 11/07/2014 16:07, Steven D'Aprano wrote: On Fri, Jul 11, 2014 at 02:26:26PM +0100, Mark Lawrence wrote: This one is also nice: https://docs.python.org/3.1/howto/doanddont.html What timing http://bugs.python.org/issue21956 :( I reject that bug report. The "Do And Don't&

Re: [Tutor] how do I set variables in Python 3.4

2014-07-11 Thread Mark Lawrence
lease help Please show us your code and the complete traceback. Please use cut and paste, don't try typing it in by hand as this inevitably leads to mistakes. -- 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] TypeError: 'int' object is not iterable

2014-07-11 Thread Mark Lawrence
l to min() Thank you for your help! Not at all. -- 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] Anti-Patterns in Python Programming

2014-07-12 Thread Mark Lawrence
rson and maybe you all don't realize how much you take for granted. Deb in WA, USA Start at wikipedia. For Python specific terms see https://docs.python.org/3/glossary.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

Re: [Tutor] Python 2 Vs python 3

2014-07-13 Thread Mark Lawrence
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 subscription options: https://mail.

Re: [Tutor] name error

2014-07-14 Thread Mark Lawrence
r 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 unsubscribe

Re: [Tutor] Question about style

2014-07-17 Thread Mark Lawrence
llow 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 maillis

Re: [Tutor] Read, Write, Split and Append lines from a text file

2014-07-19 Thread Mark Lawrence
reply? -- 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] (no subject)

2014-07-20 Thread Mark Lawrence
at 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 unsu

Re: [Tutor] (no subject)

2014-07-20 Thread Mark Lawrence
On 21/07/2014 03:05, Marc Tompkins wrote: On Sun, Jul 20, 2014 at 6:12 PM, Mark Lawrence wrote: Ah. I missed that, as I've only noticed this newer thread. And I apologize for imputing motive (a liking for "while True"); I'd just noticed that you often advise it. I d

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Mark Lawrence
On 05/08/2014 15:56, Marc Tompkins wrote: On Tue, Aug 5, 2014 at 12:48 AM, Maxime Steisel wrote: I think this is because on windows, *.py files are associated with py.exe that choose the python version depending on the first line of your file. No. *ix operating systems (Unix, Linux, OS X, et

Re: [Tutor] Printing multi-line variables horizontally

2014-08-08 Thread Mark Lawrence
nly but see this https://pypi.python.org/pypi/UniCurses/1.2 as an alternative for other platforms. -- 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] IndentationError

2014-08-11 Thread Mark Lawrence
to find an IndentationError. Please see this http://sscce.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 subscripti

Re: [Tutor] how to fix coordinates a part in assembly

2014-08-12 Thread Mark Lawrence
d, Correct (Compilable), Example" at http://sscce.org/ for instructions on how to put a question together for this 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] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Mark Lawrence
I do know that google groups screws up anything and everything that goes near it. That's why https://wiki.python.org/moin/GoogleGroupsPython exists. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our lang

[Tutor] Top posting

2014-08-21 Thread Mark Lawrence
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

[Tutor] Help with running an API

2014-10-25 Thread Mark Meanwell
Hi Folks - new to python and trying to run an API. Running version 2.7.3. on Windows 7 machine. Here is the scenario for the given API (FRED API in this case): easy_install Fred from C:\ - this installs to C:\site packages then I fire up the python shell and run file created for fred api: from

Re: [Tutor] Fwd: Newbie

2015-01-05 Thread Mark Lawrence
lease reply asap. https://mail.python.org/mailman/listinfo/core-mentorship -- 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 ch

Re: [Tutor] Improving My Simple Game Code for Speed, Memory and Learning

2015-01-05 Thread Mark Lawrence
ython programmer. -- 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/lis

Re: [Tutor] Error 22

2015-01-07 Thread Mark Lawrence
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] Improving My Simple Game Code for Speed, Memory and Learning

2015-01-12 Thread Mark Lawrence
o you always write something like:- for row in grid: for cell in row: process(cell) I say this as I'm all for short term pain, long term gain, especially when it's guaranteed to eliminate "list index out of range" errors. -- My fellow Pythonistas,

Re: [Tutor] Timing a python program

2015-01-16 Thread Mark Lawrence
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] selecting data from a list

2015-01-18 Thread Mark Lawrence
27;Vauxhall', 'Land Rover', 'Jaguar'] for car in cars: doSomething(car) -- 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

Re: [Tutor] How to paste text from from clipboard to command line?

2015-01-21 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] Testing a string to see if it contains a substring

2015-01-21 Thread Mark Lawrence
'd use https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime to test the first ten characters of the string. I'll leave that and handling IndexError or ValueError to you :) -- My fellow Pythonistas, ask not what our language can

Re: [Tutor] Testing a string to see if it contains a substring (Steve and Mark)

2015-01-23 Thread Mark Lawrence
On 22/01/2015 16:15, dw wrote: Thanks so much Steve and Mark! You've given me a lot to chew on. :-D I'll pursue! More Python FUN!! Thanks for the thanks, but please don't change the subject as it breaks threa

Re: [Tutor] Testing a string to see if it contains a substring (dw)

2015-01-23 Thread Mark Lawrence
ow 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] R: Re: Re: Re: Class learning

2015-01-24 Thread Mark Lawrence
ute lookup that is, at least in cPython. I've no idea what the impact is in other implementations. I'd guess that 99% of the time 99% of Python programmers needn't worry about it. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do fo

Re: [Tutor] Using if statement with csv file

2015-01-27 Thread Mark Lawrence
tr() >>> '10' > 10 Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: str() > int() -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___

Re: [Tutor] Risk Dice Program

2015-01-27 Thread Mark Lawrence
in to be far more Pythonic. It also avoids the superfluous brackets which always drive me around the bend. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillis

Re: [Tutor] Risk Dice Program

2015-01-27 Thread Mark Lawrence
On 28/01/2015 01:28, Alan Gauld wrote: On 28/01/15 00:09, Mark Lawrence wrote: To get round that you need to explicitly compare o_die1 to both values: if (o_die1 > d_die1) or (o_die1 > d_die2): I consider the chained comparisons shown here https://docs.python.org/3/ref

Re: [Tutor] Using if statement with csv file

2015-01-28 Thread Mark Lawrence
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] Python - Rules engine

2015-01-30 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] first post

2015-02-01 Thread Mark Lawrence
ow 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] Fwd: Re: Lost message re serial comms

2015-02-01 Thread Mark Lawrence
istinfo/python-list, as gmane.comp.python.general or news:comp.lang.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

Re: [Tutor] GUI

2015-02-02 Thread Mark Lawrence
ion called Phoenix is still in development. More here http://wiki.wxpython.org/ProjectPhoenix -- 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@pyt

Re: [Tutor] GUI

2015-02-02 Thread Mark Lawrence
On 02/02/2015 21:48, Marc Tompkins wrote: On Mon, Feb 2, 2015 at 1:18 PM, Mark Lawrence wrote: On 02/02/2015 20:59, Marc Tompkins wrote: On Mon, Feb 2, 2015 at 9:13 AM, Alan Gauld wrote: Don't expect a whole heap of support from the GUIs. A lot of the work will have to come from y

[Tutor] Macintosh Help with Python

2015-02-03 Thread Mark Warren
Can you help me through a phone number or chat on working with Python? -- Mark Warren Humboldt Unified School District # 258 801 New York Street Humboldt, Kansas 66748 Phone -- (620) 704-1527 ___ Tutor maillist - Tutor@python.org To unsubscribe or

Re: [Tutor] How can I replicate a list in a for loop

2015-02-03 Thread Mark Lawrence
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] Nested for loops, possibly?

2015-02-05 Thread Mark Lawrence
7;, 'y'] >>> for source, sync in zip(source_list, sync_list): ... do_sync(source, sync) ... Source is a Sync is w Source is b Sync is x Source is c Sync is y Am I close? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: [Tutor] How to easily recover the current index when using Python-style for loops?

2015-02-05 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 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How do I call a variable within an input () function?

2015-02-06 Thread Mark Lawrence
ot; or "string concatenation"? String formatting should also be mentioned, old style using the % operator as in C or new style using {} and format. favFood1 = input("\n%s what's your favorite food? " % name) favFood1 = input("\n{} what's your favorite food? &

Re: [Tutor] Explanation of this print statement

2015-02-08 Thread Mark Lawrence
her the Python 3 or (Python 2 with from __future__ import print_function) print function. -- 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] Creating a pojo in python

2015-02-09 Thread Mark Lawrence
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 goto or labels in Python?

2015-02-11 Thread Mark Lawrence
t 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] Asking for help with installation of pyttsx (text to speech)

2015-02-11 Thread Mark Lawrence
here is nothing to stop you trying. -- 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] Comparing two CSV filess using Python

2015-02-13 Thread Mark Lawrence
x27;t come here since the !Sample_geo_accession column value didn't match. -AN If you're looking at serious data work then I'd recommend pandas http://pandas.pydata.org/ -- My fellow Pythonistas, ask not what our language can do for you, ask what you

Re: [Tutor] trivial simple program..can it be made more concise?

2015-02-13 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 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python Help with Program

2015-02-16 Thread Mark Lawrence
gh the code, e.g. why bother doing all the work to get sn1 and sn2? -- 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 with program

2015-02-16 Thread Mark Lawrence
.Skinner -- 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] OT: Preferred email client for sending plain text programming code snippets

2015-02-17 Thread Mark Lawrence
my Gmail account, etc.? Thunderbird. Access to 300+ Python mailing lists, blogs and the rest all in one place via gmane. Personally I've never had a single problem with it. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

Re: [Tutor] mySQL and Python

2015-02-18 Thread Mark Lawrence
x27;t as valid as I had thought. My pet hate on this list is top posting as it makes following a thread so difficult. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor

Re: [Tutor] Topic focus of ‘python-tutor’

2015-02-19 Thread Mark Lawrence
tor IMHO you're talking crap, now can we please move on? -- 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] updating a dictionary

2015-02-19 Thread Mark Lawrence
eve this https://docs.python.org/3/library/collections.html#defaultdict-examples is exactly what you need. Am I close? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor mai

Re: [Tutor] python script

2015-02-20 Thread Mark Lawrence
sk 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] updating a dictionary

2015-02-20 Thread Mark Lawrence
>>> mystruct {'MOL02997_C': [{'7': '0', '8': '0', '2': '0', '9': '0'}]} >>> mystruct['MOL02997_C'] [{'7': '0', '8': '0', '2': '0', '9': '0'}] >>> mystruct['MOL02997_C'][0] {'7': '0', '8': '0', '2': '0', '9': '0'} >>> mystruct['MOL02997_C'][0]['8'] '0' Got that? -- 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

<    5   6   7   8   9   10   11   12   >