Re: [Tutor] Dictionary Issue

2015-08-06 Thread Mark Lawrence
On 06/08/2015 05:22, Ltc Hotspot wrote: Please don't top post here, it makes following long threads difficult. Mark, Replace count[address]= count.get(address,0) +1 with c = Counter(['address'])? Try it at the interactive prompt and see what happens. Regards, Hal On W

Re: [Tutor] how to define constant width errorbars on log-log plot

2015-08-06 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] Dictionary Issue

2015-08-06 Thread Mark Lawrence
On 06/08/2015 18:17, Ltc Hotspot wrote: On Thu, Aug 6, 2015 at 8:28 AM, Mark Lawrence wrote: On 06/08/2015 05:22, Ltc Hotspot wrote: Please don't top post here, it makes following long threads difficult. Mark, Replace count[address]= count.get(address,0) +1 with c = Counter([&#x

Re: [Tutor] Dictionary Issue

2015-08-06 Thread Mark Lawrence
ad the entire write up why are you still wasting time with a loop to find a maximum that simply doesn't work, when there is likely a solution in the Counter class right in front of your eyes? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do f

Re: [Tutor] Dictionary Issue

2015-08-07 Thread Mark Lawrence
On 07/08/2015 01:30, Ltc Hotspot wrote: Mark, I'm following the instructor's video exercise, available at https://www.youtube.com/watch?v=3cwXN5_3K6Q. View attached screen shot file, image file shows a copy of the counter: cou[wrd] =cou.get(wrd,0) +1 Please, explain the diff

Re: [Tutor] Help with Pygame

2015-08-08 Thread Mark Lawrence
---^ the pygame im trying to use is pygame-1.9.2a0.win32-py3.2 --^^^ -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist -

Re: [Tutor] Need advise on protein sequence alignment code in python 2.7 giving wrong output

2015-08-11 Thread Mark Lawrence
/Main_Page -- 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

Re: [Tutor] Need advise on protein sequence alignment code in python 2.7 giving wrong output

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

Re: [Tutor] Need advise on protein sequence alignment code in python 2.7 giving wrong output

2015-08-11 Thread Mark Lawrence
On 11/08/2015 22:16, Alan Gauld wrote: On 11/08/15 22:09, Mark Lawrence wrote: On 11/08/2015 19:54, Laura Creighton wrote: You posted incomplete code -- at any rate I cannot get it to work. Having taken a closer look how can it work when range() and xrange() are both used? OK, I'll

Re: [Tutor] AttributeError,

2015-08-11 Thread Mark Lawrence
s, 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] a few question about my evolving program

2015-08-11 Thread Mark Lawrence
a snippet. Can't win for losing. 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 subscri

Re: [Tutor] try and file existence

2015-08-14 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] try and file existence

2015-08-15 Thread Mark Lawrence
hy -- 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] variable existence q

2015-08-15 Thread Mark Lawrence
I'd have thought that having assigned top_directory at line 10, but then trying to reassign it at line 80, means that the function now knows nothing about it, hence the error. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark L

Re: [Tutor] variable existence q

2015-08-15 Thread Mark Lawrence
suggest you spell it TOP_DIRECTORY to indicate that it is a constant that should not be changed. -- 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] variable naming conventions

2015-08-15 Thread Mark Lawrence
long amount of time in agony in The Comfy Chair :) -- 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] About using list in a function

2015-08-20 Thread Mark Lawrence
yone have any clues why I did? (Using Thunderbird v31.8 and normally not having major issues.) Scrambled using Thunderbird 38.2.0 on Windows 10. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence __

Re: [Tutor] iteration help

2015-08-20 Thread Mark Lawrence
try and plain except as it'll mask any problems that you get in the code. It also prevents CTRL-C or similar from breaking infinite loops that you've accidentally written. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. M

Re: [Tutor] problem with code

2015-08-21 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] Creating lists with definite (n) items without repetitions

2015-09-03 Thread Mark Lawrence
tions. The number for permutations is n! / (n - k)! = 26! / 23! = 26 * 25 * 24 = 15,600. So what criteria are you using to give 301? -- 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 vs 3

2015-09-05 Thread Mark Lawrence
.5 is scheduled for full release on September 13, 2015, see https://www.python.org/dev/peps/pep-0478/ -- 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@pytho

Re: [Tutor] Creating lists with definite (n) items without repetitions

2015-09-05 Thread Mark Lawrence
s common enough to have a name and some brain power spent on it. To me this is clearly an example of a Steiner Triple system associated with Balanced Incomplete Block Design. Which means I found this http://mathforum.org/library/drmath/view/52263.html which got me to https://en.wikipedia.o

Re: [Tutor] 2 vs 3

2015-09-07 Thread Mark Lawrence
r 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] iterating through a directory

2015-09-09 Thread Mark Lawrence
m not sure what you're trying to do so maybe https://docs.python.org/3/library/collections.html#collections.deque or https://docs.python.org/3/library/itertools.html#itertools.cycle -- My fellow Pythonistas, ask not what our language can do for you, ask what you

Re: [Tutor] About using list in a function

2015-09-11 Thread Mark Lawrence
On 10/09/2015 23:46, D Wyatt wrote: Scrambled on gmail here too. Please provide some context when you reply, thanks. -- 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] Is context manager the answer to synchronous function calls?

2015-09-16 Thread Mark Lawrence
t this might be better asked on the main Python mailing list, I don't see this as tutor material. -- 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] changing a variable with raw_input

2015-09-16 Thread Mark Lawrence
de in a debugger. Would you also be kind enough not to top post here, it can make things very difficult to read in long threads, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] stx, etx (\x02, \x03)

2015-09-22 Thread Mark Lawrence
f2.write(s) as well as the same script but using .join, to no avail. What am I missing? regards, Richard Your line has EOL on the end. Getting rid of the unneeded brackets try:- s = '\x02' + line[:-1] + '\x03\n' -- My fellow Pythonistas, ask not w

Re: [Tutor] stx, etx (\x02, \x03)

2015-09-22 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] generate a list/dict with a dynamic name..

2015-09-27 Thread Mark Lawrence
ow or reddit. There is some complete dross out there that gets upvoted, whereas on a Python site it would be torn to pieces. To be fair, some answers are good, please just be careful with what you read. just curious.. thanks -- My fellow Pythonistas, ask not what our language c

Re: [Tutor] Python type confusion?

2015-09-28 Thread Mark Lawrence
Value", total Perhaps the most used piece of code that although not actually wrong, is certainly frowned upon as you can write:- for i, item in enumerate(poly): totalTerm = item * (x ** i) ... -- My fellow Pythonistas, ask not what our language can do for you, ask what you

Re: [Tutor] general exception questions

2015-10-05 Thread Mark Lawrence
l#exception-hierarchy for the ones you would potentially need to catch for file handling under OSError. One must also add the obligatory never use a bare `except:` -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence _

Re: [Tutor] Python 3.5 Question

2015-10-09 Thread Mark Lawrence
x | _o__) | Ben Finney -- 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 unsubs

Re: [Tutor] Working collaboratively

2015-10-19 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] Working collaboratively

2015-10-19 Thread Mark Lawrence
On 19/10/2015 23:04, Alex Kleider wrote: On 2015-10-19 13:08, Emile van Sebille wrote: This looks like the list of identified issues: https://bitbucket.org/pypa/pypi/issues Browse through and see if anything looks interesting/doable. On 2015-10-19 13:34, Mark Lawrence wrote: How about

Re: [Tutor] Scraping Wikipedia Table (The retruned file is empty)

2015-10-25 Thread Mark Lawrence
ite code like that in the first place", as I've seen so many examples of this that I cannot understand why people bother writing Python tutorials, as they clearly don't get read? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for

Re: [Tutor] How to parse large files

2015-10-27 Thread Mark Lawrence
so much https://docs.python.org/3/library/csv.html https://docs.python.org/3/library/csv.html#csv.DictReader https://docs.python.org/3/library/csv.html#csv.DictWriter https://docs.python.org/3/library/csv.html#csv.excel_tab -- My fellow Pythonistas, ask not what our language can do f

Re: [Tutor] R: Re: Create complex dictionary :p:

2015-10-27 Thread Mark Lawrence
;s":7}} >>> es = {} >>> for k,v in diz.items(): ... es[k] = v["e"] ... >>> es {'B': 20, 'A': 2} -- 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] Are there any Python-based GUI builders for tkinter

2015-10-28 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] Are there any Python-based GUI builders for tkinter

2015-10-28 Thread Mark Lawrence
On 28/10/2015 22:32, Laura Creighton wrote: In a message of Wed, 28 Oct 2015 17:31:35 +, Mark Lawrence writes: On 28/10/2015 08:39, Laura Creighton wrote: In a message of Tue, 27 Oct 2015 15:20:56 -0500, boB Stepp writes: I have a friend at work and he is trying to develop GUI

Re: [Tutor] Messy - Very Messy string manipulation.

2015-10-29 Thread Mark Lawrence
place as any to point out that in Python 3 all of the following also exist. static bytes.maketrans(from, to) bytes.translate(table[, delete]) static bytearray.maketrans(from, to) bytearray.translate(table[, delete]) -- My fellow Pythonistas, ask not what our la

Re: [Tutor] Plotting with python

2015-10-30 Thread Mark Lawrence
have never looked back. -- 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.o

Re: [Tutor] Newbie Question

2015-11-11 Thread Mark Lawrence
lease. Thanks! So IDLE is not good enough for you? I'll let you find it as it's part of the standard library, i.e. you've all ready downloaded it. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our lang

Re: [Tutor] The very first program in python

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

Re: [Tutor] Using sorted in Python 3.3.5

2015-11-19 Thread Mark Lawrence
sely nothing as you discard the return value. Either save the value or use the built-in sort which works in place. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist

Re: [Tutor] interface

2015-12-14 Thread Mark Lawrence
've been using Python3; my platform is Ubuntu 14.4. Thanks in advance for any guidance. Alex -- 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.o

Re: [Tutor] interface

2015-12-15 Thread Mark Lawrence
oriented apps.) wxPython still does not support Python 3, and it doesn't look as if this will happen any time soon. In fairness this is due to Robin Dunn being tied up on paid work. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Re: [Tutor] Why does loop duplicate?

2015-12-16 Thread Mark Lawrence
he cleanest way of doing this is:- for letter in prefixes: if letter in ("O", "Q"): print letter + suffixb else: print letter + suffix -- 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: Kivy Install

2015-12-18 Thread Mark Lawrence
file name. -- 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] interface

2015-12-18 Thread Mark Lawrence
On 18/12/2015 18:38, Alex Kleider wrote: On 2015-12-16 17:42, boB Stepp wrote: On Mon, Dec 14, 2015 at 10:08 PM, Alex Kleider wrote: Thank you, gentlemen (Alan, Ben, Mark,) for your advice. The consensus seems to be in favour of tkinter so I'll head in that direction. If you are into

Re: [Tutor] help!

2015-12-19 Thread Mark Lawrence
;yes" or "YES" or "yES": THis is not doping what you think. ^ whoops :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maill

Re: [Tutor] Object oriented design

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

Re: [Tutor] Using python 3 on Ubuntu 14.04

2015-12-23 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] trouble with beautiful soup

2015-12-26 Thread Mark Lawrence
honistas, 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] Read from large text file, find string save 1st string of each line where it appeared.

2015-12-28 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] trouble with beautiful soup

2015-12-28 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] Fwd: Read from large text file, find string save 1st string of each line where it appeared.

2015-12-28 Thread Mark Lawrence
acharya Suppose that you stop top posting? Then it would be far easier for people to follow the thread. -- 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] trouble with beautiful soup

2015-12-31 Thread Mark Lawrence
p I'd guess that the answer from this http://stackoverflow.com/questions/17391289/tried-to-use-relative-imports-and-broke-my-import-paths applies. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence __

Re: [Tutor] To FORMAT or not to

2016-01-04 Thread Mark Lawrence
it doesn't actually work as given. >>> island = "Isle Of Wight" >>> new = "Isle of Wong" >>> print("You've visited {0} & {2}.".format(island, new)) Traceback (most recent call last): File "", line 1, in Index

Re: [Tutor] To FORMAT or not to

2016-01-04 Thread Mark Lawrence
On 04/01/2016 21:54, Bod Soutar via Tutor wrote: On 4 January 2016 at 19:50, Mark Lawrence Three reasons for why it's better but it doesn't actually work as given. island = "Isle Of Wight" new = "Isle of Wong" print("You've visited {0} & {2}.&q

Re: [Tutor] To FORMAT or not to

2016-01-04 Thread Mark Lawrence
Sorry no as that would often leave out data that I consider important. I have no interest in whether or not you agree with my opinion. On 05/01/2016 00:53, Steven D'Aprano wrote: On Mon, Jan 04, 2016 at 07:50:59PM +0000, Mark Lawrence wrote: On 03/01/2016 13:12, Alan Gauld wrote:

Re: [Tutor] 12 year old starting to code

2016-01-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] PLEASE I NEED HELP URGENTLY

2016-01-13 Thread Mark Lawrence
on this presumably homework question. Can these be stopped at source here 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

Re: [Tutor] PLEASE I NEED HELP URGENTLY

2016-01-13 Thread Mark Lawrence
On 13/01/2016 18:13, Alan Gauld wrote: On 13/01/16 17:53, Mark Lawrence wrote: This is beyond a joke. The main mailing list is all ready being moderated because of the constant messages asking for help on this presumably homework question. Can these be stopped at source here please? I'

Re: [Tutor] idle??

2016-01-13 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

Re: [Tutor] idle??

2016-01-13 Thread Mark Lawrence
hat 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] me, my arm, my availability ...

2016-01-13 Thread Mark Lawrence
-- (recent tutor discussion) I am with Alan and not with Mark. I am happy as anything when people post their not-quite-working code for homework assignments here to tutor. They aren't lazy bastards wanting somebody to do their assignments for them, they want to learn why what they are try

Re: [Tutor] 12 year old starting to code

2016-01-13 Thread Mark Lawrence
On 13/01/2016 18:08, Alan Gauld wrote: On 13/01/16 14:51, Mark Lawrence wrote: OK, It should be in C:\Python35\Lib\idelib That's not the default for 3.5, see https://docs.python.org/3/using/windows.html Thanks for catching that. I based it on my ActiveState 3.4 install, but... I neve

Re: [Tutor] Procedure to install dlib on windows?

2016-01-14 Thread Mark Lawrence
ou, 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] Modularity

2016-01-14 Thread Mark Lawrence
= WavFile() Without any context this is completely meaningless, so what the hell are you talking about? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist

Re: [Tutor] str.strip strange result...?

2016-01-15 Thread Mark Lawrence
about this https://docs.python.org/3/library/stdtypes.html#str.strip when you read it? -- 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 unsu

Re: [Tutor] Why is an OrderedDict not sliceable?

2016-01-22 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

Re: [Tutor] Why is an OrderedDict not sliceable?

2016-01-24 Thread Mark Lawrence
On 24/01/2016 20:23, Albert-Jan Roskam wrote: I appear to have confused the terms "sorted" and "ordered" (see the email I just sent to Mark Lawrence). My OrderedDict was sorted on its keys, because I defined the dict using the result of an SQL query that ended with ORDER

Re: [Tutor] Need Help

2016-01-25 Thread Mark Lawrence
/SUM75/D780005879/S0/hmi.rdVfitsf_fd15.2171.015.355.0.-67.5.-20.0.fit.out Start here https://docs.python.org/3/tutorial/index.html as we don't write code for you. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: [Tutor] Variation in game of life in python solution by numpy method

2016-01-25 Thread Mark Lawrence
program code Please show us the code that you have so far as we do not write code for you. It will be great help Thanks -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] declare a variable inside a class

2016-02-11 Thread Mark Lawrence
ge 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] Dobut about a bug

2016-02-25 Thread Mark Lawrence
when compared to, presumably, 3.5.0. Can you please specify your OS and what your perceived problem is. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist

Re: [Tutor] recursivity and lists

2016-03-05 Thread Mark Lawrence
complicated framework, which is way out of scope for this tutor list, which deals with the core Python language and its standard library. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] recursivity and lists

2016-03-05 Thread Mark Lawrence
or 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] newbie in programming

2016-03-09 Thread Mark Lawrence
helpful to follow conversations if people don't top post, but that seems once again to have been completely lost on this list. Is it simply too difficult? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: [Tutor] How do I access and manipulate files?

2016-03-12 Thread Mark Lawrence
On 12/03/2016 01:03, Justin Hayes wrote: Would you please read this http://www.catb.org/esr/faqs/smart-questions.html and then try again, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] help on dic creation

2012-11-06 Thread Mark Lawrence
linelist[2] ValTwo=linelist[6] ValThree=boolean(linelist[7]) D={Key:(ValOne, ValTwo, ValThree, ValCity,ValState)} Put the line above inside the for loop :) return D print fieldict("DOT500.txt") -- Cheers. Mark Lawrence. __

Re: [Tutor] help on dic creation

2012-11-06 Thread Mark Lawrence
On 06/11/2012 14:16, Dave Angel wrote: On 11/06/2012 09:01 AM, Mark Lawrence wrote: On 31/10/2012 01:01, Brayden Zhao wrote: def fieldict(filename): D={} with open(filename) as FileObject: for lines in FileObject: linelist=lines.split('\t') Key=

Re: [Tutor] encrypt a file in Python3

2012-11-09 Thread Mark Lawrence
x27;__builtins__', '__doc__', '__name__', '__package__', 'os', 'random', 'struct'] $ python2.7 Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3] on linux2 Type "help", "

Re: [Tutor] encrypt a file in Python3

2012-11-10 Thread Mark Lawrence
On 10/11/2012 19:23, ke...@kendy.org wrote: Thank you Mark and eryksun! You've put me back on the road to success! I'll start saving up for your bill. :-) Ken ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscripti

Re: [Tutor] Questions about classes

2012-11-12 Thread Mark Lawrence
cticality beats purity" :) -- Cheers. Mark Lawrence. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Plot multiple lines using python / basemap

2012-11-15 Thread Mark Lawrence
ython 3, yee haa :) You might consider using matplotlib with IPython see http://ipython.org/, together they make a very powerful working environment. The idea is to plot the trajectories on a particular region, for my case is Mexico. -- Cheers. Mark Law

Re: [Tutor] pyXML i Python2.6

2012-11-19 Thread Mark Lawrence
On 19/11/2012 16:33, Sreenivasulu wrote: Hi, Am unable to install pyXML in Ubuntu usig python2.6 Could you please help me Regards, Sreenu What have you tried? What went wrong? If you don't give such basic data how can we help? -- Cheers. Mark Law

Re: [Tutor] help

2012-11-19 Thread Mark Lawrence
y :( if you find any problems could you tell me ASAP Stating there are some errors is as useful as a chocolate teapot. How did you try to run the code? What Python version, your code will need changing to run on Python 3.x, what OS? What are you expecting to happen, what actually happened

Re: [Tutor] help

2012-11-19 Thread Mark Lawrence
t was missing I've already asked for in a separate reply. -- Cheers. Mark Lawrence. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with writing a program

2012-12-02 Thread Mark Lawrence
of what I should do to create this program, I would greatly appreciate that. Thank you for using your time to consider my request. Start here http://docs.python.org/2/library/string.html -- Cheers. Mark Lawrence. ___ Tutor maillist - Tutor@python.o

Re: [Tutor] Tutor Digest, Vol 106, Issue 5

2012-12-03 Thread Mark Lawrence
the more I hear about Gmail, the more horrible I discover it to be. Why does anyone use this crappy, anti-social product? Sales and marketing? :) -- Cheers. Mark Lawrence. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscriptio

Re: [Tutor] Get/Set/Attribute Accessors in Python?

2012-12-05 Thread Mark Lawrence
7;re at it? Should we consider a CutAndPasteError in Python? :) c:\Users\Mark\MyPython>type mytest.py class Example(object): def __init__(self, value): self.x = value instance = Example(42) print(instance.x) # gives 42 instance.setx(23) c:\Users\Mark\MyPython>mytest.py 42

Re: [Tutor] Regular expressions question

2012-12-06 Thread Mark Lawrence
look away from the screen. +1 YOTW The downside is that the regexes easily get quite long, but one could use the re.VERBOSE flag to make it more readable. +1 -- Cheers. Mark Lawrence. ___ Tutor maillist - Tutor@python.org To unsubs

Re: [Tutor] Get/Set/Attribute Accessors in Python?

2012-12-06 Thread Mark Lawrence
On 06/12/2012 11:54, Steven D'Aprano wrote: On 06/12/12 15:42, Mark Lawrence wrote: On 05/12/2012 16:58, Steven D'Aprano wrote: And here is how it should be written in Python: class Example(object): def __init__(self, value): self.x = value instance = Example(42) print instance.x

[Tutor] First semester no coding experince, please help!

2012-12-14 Thread Mark Rourke
, please help! Thanks -- Mark Rourke T: 705-728-6169 M: 705-331-0175 E: mark.rour...@gmail.com Assignment3-1.docx Description: Binary data ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org

[Tutor] College student having python problems

2012-12-14 Thread Mark Rourke
The Following is my code: #Mark Rourke, Mitch Lavalle #Dec 04, 2012 #Global Constants #Constant Integer MAX_QTY MAX_QTY = 20 #Constant Real TAX_RATE TAX_RATE = .13 #Constant Real Burger Burger = .99 #Constant Real Fries Fries = .79 #Constant Real Soda Soda = 1.09 import sys def getOrderNumber

Re: [Tutor] Documentation

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

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Mark Lawrence
ions: http://mail.python.org/mailman/listinfo/tutor See http://www.python.org/dev/peps/pep-0397/ which leads to https://bitbucket.org/vinay.sajip/pylauncher -- Cheers. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscripti

Re: [Tutor] how can i use python 2 alongside 3?

2013-01-24 Thread Mark Lawrence
hat is the path of least resistance. -- Cheers. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

<    1   2   3   4   5   6   7   8   9   10   >