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
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
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
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
, 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
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
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
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
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
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
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.
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
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
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
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
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
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
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
___
. 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
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
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
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
language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
. 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
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
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.
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
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
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
7;__oct__', '__or__', '__pos__', '__pow__', '__radd__',
'__rand__', '__rdiv__', '__rdivmod__', '__reduce__', '__reduce_ex__',
'__repr__', '__rfl
, 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
Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On 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
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
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
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
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
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
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
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
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
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
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
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
__
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
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@
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
= '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
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
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 -
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
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
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
sections 3.3 and 3.4, and possibly
http://pythoncentral.io/add-python-to-path-python-is-not-recognized-as-an-internal-or-external-command/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
:
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
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
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
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
___
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
`.
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 -
ing.DEBUG,format='%(asctime)s %(message)s')
handler = logging.StreamHandler(stream=sys.stdout)
logger = logging.getLogger(__name__)
logger.addHandler(handler)
s = '\u20ac'
logger.info("euro sign: %r", s)
C:\Users\Mark\Documents\MyPython>mytest.py
euro sign: &
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
-
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
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
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
.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/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
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
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
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
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
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
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
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
/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
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
--
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
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
= 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
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
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
akes me puke.
--
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
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
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
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'
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
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
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:
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
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
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
__
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
-
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
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
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
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
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
;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
there is IMHO nothing to discuss.
--
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
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
1 - 100 of 888 matches
Mail list logo