Re: [Tutor] which of these is more efficient?

2019-08-19 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 arguments to the super() function works?

2019-05-18 Thread Mark Lawrence
eck this https://www.youtube.com/watch?v=EiOglTERPEo out. If that doesn't answer your question please ask again. -- 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] Finding unique strings.

2019-05-03 Thread Mark Lawrence
out https://docs.python.org/3/library/collections.html#collections.defaultdict as I think it's right up your street. Examples are given at the link :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

[Tutor] help with colormode

2019-04-25 Thread Mark Alderson
any help would be appreciated, thanks Mark City of Glasgow College | Scottish Charity Number SCO36198 | VAT Number 59677128 DISCLAIMER :- This email, together with any attachments, may be confidential and the subject of legal privilege. If you are not the intended recipient, please notify the se

Re: [Tutor] How to create a structure from a Log file

2019-03-09 Thread Mark Lawrence
please let us know and we'll get you sorted :) -- 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

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread Mark Lawrence
, THURSDAY, FRIDAY, SATURDAY, and SUNDAY are provided for convenience. For example, to set the first weekday to Sunday: import calendar calendar.setfirstweekday(calendar.SUNDAY) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread Mark Lawrence
lendar.html? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to use "curses.resizeterm(nlines, ncols)"

2019-02-24 Thread Mark Lawrence
curses before you try using the Python wrapper? -- 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] Visual studio Code -Python

2019-02-23 Thread Mark Lawrence
2500 times ? Set a breakpoint on the first line after the loop, please see https://code.visualstudio.com/docs/python/debugging#_invoking-a-breakpoint-in-code -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: [Tutor] import failure

2019-02-23 Thread Mark Lawrence
at the problem might be or how to investigate further would be very much appreciated. Cheers, Alex Just to follow up there are some useful tips in this https://mail.python.org/pipermail/python-list/2019-February/739643.html as to how to debug these type of problems. -- My fellow Pythoni

Re: [Tutor] Help Please

2019-02-20 Thread Mark Lawrence
utf: fiter = iter(lines) line = next(fiter) outf.write(line) for line in fiter: if "Void" not in line and "Disconnected" not in line and "Error" not in line: # probably a simpler way of writing this but I'm knackered :-) outf.write(l

Re: [Tutor] text processing lines variable content

2019-02-06 Thread Mark Lawrence
On 06/02/2019 18:51, ingo janssen wrote: On 06/02/2019 19:07, Mark Lawrence wrote: That's going to a lot of work slicing and dicing the input lists. Perhaps a chunked recipe like this https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.chunked would be better.

Re: [Tutor] text processing lines variable content

2019-02-06 Thread Mark Lawrence
Tutor maillist  -  Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor -- 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 to get Selenium to wait for page load

2019-01-31 Thread Mark Lawrence
t top post here as it's so damn irritating when reading long threads. -- 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] Not able to get to Script Mode

2019-01-29 Thread Mark Lawrence
istas, 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] Defining variable arguments in a function in python

2018-12-30 Thread Mark Lawrence
On 30/12/2018 17:26, Avi Gross wrote: Replying to Steve's points. Again, it was not a serious design and said so but was an ACADEMIC exploration of what could be done. I fully agree with Steve that it is probably not a great idea to do this but note the original request might not have been a grea

Re: [Tutor] decomposing a problem

2018-12-27 Thread Mark Lawrence
On 26/12/2018 00:00, Avi Gross wrote: [Long enough that some should neither read nor comment on.] PLEASE GO AWAY YOU ARE REALLY IRRITATING. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] look back comprehensively

2018-12-27 Thread Mark Lawrence
On 25/12/2018 00:45, Avi Gross wrote: Please go away as you are so boring :-( -- 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] Long Lines techniques

2018-12-13 Thread Mark Lawrence
Indentation is only significant if it starts at the beginning of a statement. Hope this helps Bob gailer Big +1 from me :-) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___

Re: [Tutor] Open webpage and save CSV

2018-12-13 Thread Mark Lawrence
. Failing that send a large cheque to the PSF and no doubt somebody will help you out. -- 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] Borrowing restricted code

2018-12-05 Thread Mark Lawrence
On 05/12/2018 16:22, Avi Gross wrote: [huge snip] Please take yourself to another forum, your ramblings have no place on the *PYTHON TUTOR* mailing 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] Trouble about creating database

2018-11-29 Thread Mark Lawrence
s the problem and either the complete traceback or the error message. -- 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 c

Re: [Tutor] writer overloaded

2018-11-29 Thread Mark Lawrence
On 29/11/2018 02:04, Avi Gross wrote: [another massive snip] Please take this some place else as I see no place on this *TUTOR* list for your ramblings. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] learning languages

2018-11-22 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] Pythonic way

2018-11-20 Thread Mark Lawrence
. String methods https://docs.python.org/3/library/stdtypes.html#string-methods Any advance on five anybody? -- 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] Installing python

2018-11-02 Thread Mark Lawrence
added for security reasons. -- 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.pytho

Re: [Tutor] problem with creating paths

2018-10-17 Thread Mark Lawrence
a problem with this? -- 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.

Re: [Tutor] Help please

2018-10-12 Thread Mark Lawrence
ou," + new_food) Also, colons and spaces are good practices when using input boxes, such as food_1=raw_input("Sushi: ") Please don't top post as it makes reading long threads really irritating. -- My fellow Pythonistas, ask not what our language can do for you, ask what

Re: [Tutor] Python

2018-10-12 Thread Mark Lawrence
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] Advanced python recommendations

2018-10-10 Thread Mark Lawrence
e out with the Python 3 book you reference above, presumably because he was losing cash. -- 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] [spoiler] Re: Shifting arrays as though they are a 'word'

2018-10-09 Thread Mark Lawrence
On 09/10/18 17:10, Alan Gauld via Tutor wrote: On 09/10/18 13:45, Chip Wachob wrote: Another related question. How do I know I want to do dir(int) vs.. I don't know dir(long)? Because you want to convert the byte array into an int. And there is no long in Python... Really? :) mark

Re: [Tutor] coding problem

2018-10-04 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] tkinter

2018-09-30 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

Re: [Tutor] Installing new modules

2018-09-28 Thread Mark Lawrence
On 28/09/18 20:03, Rahul Koparde wrote: How to install twilio module in python? pip I'll let you do the rest of the research. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Law

Re: [Tutor] Python programming help!

2018-09-23 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] Is there a better way to write my code?

2018-08-13 Thread Mark Lawrence
Tiger", "SuperLion", "Cow", "Panda"] animals_lol = [] for animal in animals: animals_lol.append((animal, len(animal))) print(animals_lol) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] C++ or Python?

2018-07-04 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] Recursion depth exceeded in python web crawler

2018-06-14 Thread Mark Lawrence
ng functions) The interpreter returned this error: *RuntimeError: maximum recursion depth exceeded while calling a Python object* After calling crawl() and create_jobs() a bunch of times? How can I resolve this? Thanks Just a quick glance but crawl calls create_jobs which calls crawl... -- My

Re: [Tutor] Question about a python finction

2018-05-11 Thread Mark Lawrence
thon.org/3/library/stdtypes.html#typesseq -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription opti

Re: [Tutor] Choice of tools

2018-05-10 Thread Mark Lawrence
tas, 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 separate UI code from program logic?

2018-05-06 Thread Mark Lawrence
view controller pattern. First hit on google https://www.tomdalling.com/blog/software-design/model-view-controller-explained/ seems as good as any. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [Tutor] Extract main text from HTML document

2018-05-06 Thread Mark Lawrence
my.com/software/BeautifulSoup/bs4/doc/ should fit the bill. Both are installable with pip and are regarded as best of breed. -- 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] Using the Nimblenet Library in Python 3.6

2018-04-05 Thread Mark Lawrence
On 05/04/18 09:39, Alan Gauld via Tutor wrote: On 05/04/18 04:02, Mark Lawrence wrote: Python 3.6 has more functionality than 2.7 by definition, but your comment implies, at least to me, that 2.7 and 3.6 are chalk and cheese. Nothing could be further from the truth and has regrettably been one

Re: [Tutor] Using the Nimblenet Library in Python 3.6

2018-04-04 Thread Mark Lawrence
2.7 and 3.6 are chalk and cheese. Nothing could be further from the truth and has regrettably been one of the reasons for the dreadfully slow uptake of Python 3. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

Re: [Tutor] List vs. Set:

2018-02-25 Thread Mark Lawrence
nth gets input, yet produces the traceback when a valid day and month is input. God Bless: James Lundy jalu...@computer.org<mailto:jalu...@computer.org> -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence __

Re: [Tutor] I have a problem with def

2018-02-23 Thread Mark Lawrence
is a keyword in Python, but that doesn't happen, anyone else having this problem Anyone know what I should do or look for The colon is missing. def func(): ... -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our lang

Re: [Tutor] Creating a DataFrame from excel file

2018-02-09 Thread Mark Lawrence
nto a pandas DataFrame" so you just have to assign the return value from the call to a variable. -- 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@

Re: [Tutor] can someone explain the reason for error

2018-02-07 Thread Mark Lawrence
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] What is day of week from either 20180211 or 02112018

2018-02-06 Thread Mark Lawrence
= '2018' >>> monthdate = '0211' # skipping the input code. >>> from datetime import datetime >>> datetime.strptime(year + monthdate, '%Y%m%d') datetime.datetime(2018, 2, 11, 0, 0) >>> datetime.strptime(year + month

Re: [Tutor] python gui Tkinter

2018-01-13 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] Python

2017-11-30 Thread Mark Lawrence
be 0. Example: Input: 10 5 11 4 2 8 10 7 4 3 6 Output: 17 Kind Regards Jeroen van de Ven (beginner) -- 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 assistance

2017-11-20 Thread Mark Lawrence
assignment is and show us the code that you have written, then we give you hints on how to proceed. -- 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

Re: [Tutor] QT5 pyqt5 for python 2.7

2017-11-19 Thread Mark Lawrence
On 18/11/17 18:03, adam ghering wrote: I have what seems like two responses but there are no text at all in the body of the messages. Is there a way I am supposed to see these? Best, From: Tutor on behalf of Mark Lawrence Sent: Saturday, November 18, 2017

Re: [Tutor] QT5 pyqt5 for python 2.7

2017-11-18 Thread Mark Lawrence
the quotes, there's loads of hits for linux and its variants, mac and windows. -- 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

[Tutor] FW: confused about Pypi

2017-10-29 Thread Mark Anderson
Apologies I missed a word out (added below) but error message the same anyway Sent from Mail for Windows 10 From: Mark Anderson Sent: 29 October 2017 07:57 To: tutor@python.org Subject: RE: [Tutor] confused about Pypi Hi In short I am trying to download a third party package that is

Re: [Tutor] confused about Pypi

2017-10-29 Thread Mark Anderson
Hi In short I am trying to download a third party package that is recommended for a program I am writing on the course. The text is C:\Users\marka> python -m pip "Pyglet" 'python' is not recognized as an internal or external command, operable program or batch file. Ho

Re: [Tutor] confused about Pypi

2017-10-28 Thread Mark Lawrence
On 28/10/17 21:43, Mark Anderson wrote: Hello, I am currently doing an online course to learn Python. Generally ive followed it well and am enjoying my first go at programming. However the description of how to get modules from PyPi has left me confused. Ive only recently downloaded python so

[Tutor] confused about Pypi

2017-10-28 Thread Mark Anderson
understand it I have to write certain text into the command prompt (I’m using windows 10). It tells me that python -m is not recognised. Can anyone help please Regards Mark Anderson Sent from Mail for Windows 10 ___ Tutor maillist - Tutor@python.org To

Re: [Tutor] problem with program

2017-10-13 Thread Mark Lawrence via Tutor
: File "scripts/bird.py", line 4 def_init_(self,chat): You need a space between the `def` and the `__init__`. ^ SyntaxError: invalid syntax what am i doing or not doing that is causing this? -- My fellow Pythonistas, ask not what our language can do

Re: [Tutor] coding help with maxwell-boltzmann distribution

2017-10-13 Thread Mark Lawrence via Tutor
xwell.html -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] logging to cmd.exe

2017-10-01 Thread Mark Lawrence via Tutor
ver have a problem. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email has been checked for viruses by AVG. http://www.avg.com ___ Tutor maillist - Tutor@python.or

Re: [Tutor] Most common words in a text file

2017-10-01 Thread Mark Lawrence via Tutor
eed your comments please. Sri Pretty good all in 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 has been checked for viruses by AVG. http://www.avg.com ___

Re: [Tutor] Help with putting numbers from highest to lowest.

2017-09-27 Thread Mark Lawrence via Tutor
gt; > In [3]: sorted([3,1,5], reverse=True) > Out[3]: [5, 3, 1] ...as are all the In[x] and Out[y] bits and pieces. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email has been checked for v

Re: [Tutor] Help with putting numbers from highest to lowest.

2017-09-27 Thread Mark Lawrence via Tutor
`. 3. using your favourite search engine. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email has been checked for viruses by AVG. http://www.avg.com ___ Tutor maillist -

Re: [Tutor] logging to cmd.exe

2017-09-25 Thread Mark Lawrence via Tutor
sition 12: character maps to Call stack: File "q:\temp\logcheck.py", line 10, in logger.info("euro sign: %r", s) Message: 'euro sign: %r' Arguments: ('\u20ac',) Thanks in advance for your replies! Albert-Jan Rather than change your code can yo

Re: [Tutor] How to write database-agnostic python code? (Is this even possible?)

2017-09-14 Thread Mark Lawrence via Tutor
s-orms/ which refers to storm, which is only mentioned in passing in the first link. I've successfully used peewee, I can't really comment on the others. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -

Re: [Tutor] intro book for python

2017-09-03 Thread Mark Lawrence via Tutor
addition to which there are several vastly superior books and/or tutorials anyway. Kindest regards. Mark Lawrence. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Probably a silly question: how to install lxml?

2017-07-05 Thread Mark at information27.com
trator. I searched for some Folder called lxml... cannot find it. Steven,... I used that --user option, and it was re-installed With No Errors ! Very Cool ! And then the pgm got past that point. Very Nice ! THANKS. So,... WHY was that necessary? Thanks.

[Tutor] Probably a silly question: how to install lxml?

2017-07-05 Thread Mark at information27.com
?... How to get past this step? Thanks very much. -- Mark ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Understanding error in recursive function

2016-04-09 Thread Mark Lawrence via Tutor
that error. Thanks howMany calls howMany which calls howMany... -- 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] Declaring variables

2016-04-07 Thread Mark Lawrence via Tutor
t(id)', indicating that it is 2.x, not 3.y. Regards, Dimitar -- 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] Drawing simple graphics objects

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

Re: [Tutor] Fw: About the Round Function

2016-04-01 Thread Mark Lawrence via Tutor
u, 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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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
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] 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] 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-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] 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

  1   2   3   4   5   6   7   8   9   10   >