On 14Jan2019 09:29, mhysnm1...@gmail.com wrote:
Once again thanks for all the suggestions. It was the input data after
all. As I am importing three sheets into python. One of the sheets had
one less column.
Semantic nit: "fewer". "less" is for continuous values.
I've had to deal with loosely
Peter,
Thanks for the code for a custom key. That will come in handy later down the
track.
-Original Message-
From: Tutor On Behalf Of
Peter Otten
Sent: Sunday, 13 January 2019 10:00 PM
To: tutor@python.org
Subject: Re: [Tutor] Debugging a sort error.
mhysnm1...@gmail.com wrote
: Stephen Nelson-Smith
Sent: Monday, 14 January 2019 1:15 AM
To: mhysnm1...@gmail.com
Cc: Python Tutor mailing list
Subject: Re: [Tutor] Debugging a sort error.
Hi,
On Sun, Jan 13, 2019 at 8:34 AM wrote:
> description.sort()
> TypeError: unorderable types: float() < str()
So, fairly
o: mhysnm1...@gmail.com
Cc: Tutor@python.org
Subject: Re: [Tutor] Debugging a sort error.
Discussion inline below.
On 13Jan2019 13:16, mhysnm1...@gmail.com wrote:
>I am hoping someone can help with the below error using Python3.5 in
>the Windows 10 bash environment. I found the below link which
Hi,
On Sun, Jan 13, 2019 at 8:34 AM wrote:
> description.sort()
> TypeError: unorderable types: float() < str()
So, fairly obviously, we can't test whether a float is less than a
string. Any more than we can tell if a grapefruit is faster than a
cheetah. So there must be items in description
mhysnm1...@gmail.com wrote:
> Issue, following error is generated after trying to sort a list of
> strings.
>
> description.sort()
> TypeError: unorderable types: float() < str()
Consider
>>> descriptions = ["foo", "bar", 123, 3.14, 42, 200.1, "0"]
>>> sorted(descriptions)
Traceback (most recen
On Sun, Jan 13, 2019 at 01:16:10PM +1100, mhysnm1...@gmail.com wrote:
> Issue, following error is generated after trying to sort a list of strings.
>
> description.sort()
> TypeError: unorderable types: float() < str()
That tells you that you don't have a list of strings. You have a list of
str
Discussion inline below.
On 13Jan2019 13:16, mhysnm1...@gmail.com wrote:
I am hoping someone can help with the below error using Python3.5 in
the Windows 10 bash environment. I found the below link which I am not sure if
this is related to the issue or not. As I don't fully understand the answ
On 13/01/2019 02:16, mhysnm1...@gmail.com wrote:
> Issue, following error is generated after trying to sort a list of strings.
>
> description.sort()
> TypeError: unorderable types: float() < str()
Please send the complete error message not just the
last line summary. There is a lot of potentia
On Mon, Nov 16, 2015 at 12:48 PM, Alan Gauld
wrote:
>
>
> The correct fix is to exit() from the python3 shell and start it again.
>>
>
> He's tried that and didn't find it satisfactory. That's why
> he wants a "better" workflow.
>
> Alternatively, add some main code at the end of your file and use
On 16/11/15 15:42, Chris Warrick wrote:
On 16 November 2015 at 15:43, Alan Gauld wrote:
Thats not an IDE its just a raw interpreter.
IDLE is a full IDE that includes a debugger.
It’s an awful piece of garbage that pretends to be an IDE.
Would you care to expand. Its been doing a fair impres
On 16 November 2015 at 15:43, Alan Gauld wrote:
> Thats not an IDE its just a raw interpreter.
> IDLE is a full IDE that includes a debugger.
It’s an awful piece of garbage that pretends to be an IDE.
>> I encountered some error in the source , then I fixed it and tried to run
>> the module with
On 16/11/15 09:55, Sajjadul Islam wrote:
Hello forum,
I am trying Python 3.4 on Ubuntu and I am a bit confused with the debugging
scope of python in general.
I wrote a small function and then I tried to run with the following call:
///
import hilbert
hilbert.hilbert(3)
Alan Gauld wrote:
>>The "x for x in y:" syntax makes it harder to follow for learners,
>
> Read about list comprehensions first.
> It helps if you studied sets in math at school. The format is
> somewhat like the math notation for defining a set. But FWIW it took me
> a long time to get used to t
>> class Card(object):
>> def __init__(self):
>> self.score = self.deal()
>>
>> def deal(self):
>> """deal a card from 1 to 52 and return it's points"""
>> return self.getValue(int(math.floor(random.uniform(1,
>> 52
>
> I think you only
On 17/02/12 03:27, Luke Thomas Mergner wrote:
In the meantime, and continuing my problem of over-cleverness,
At least you know what your problem is :-)
Bonus question: when I create a the "def score(self)" in class Hand,
> should that be an generator?
No.
And if so where do I go as a n
for me at once! And no, not all the functionality of a real game is
> implemented. The code is pretty raw. I'm just a hobbyist trying to learn a
> few things in my spare time.
>
> Thanks in advance.
>
> Luke
>
> ----------
>
> Message: 2
&
On 16/02/12 04:57, Luke Thomas Mergner wrote:
My problem is that I am using two functions that return True or False
> to determine whether the player receives another card.
Because of the way it evaluates the while condition, it either
> prints too little information or previously called the
Jennifer Miller wrote:
Hello,
I would like to step through with debugging in PythonWin, I have added
this toolbar, but I cannot click on it as an option.
"cannot click on it" is pretty vague. Is your mouse broken? Or do you
mean that nothing happens when you click.
Also, when I click run, to
On Sat, Nov 1, 2008 at 11:21 AM, Jennifer Miller <[EMAIL PROTECTED]>wrote:
> Hello,
>
> I would like to step through with debugging in PythonWin, I have added
> this toolbar, but I cannot click on it as an option. Also, when I
> click run, to define the arguments, do I enter them in the format
>
On 09/02/07, Toon Pieton <[EMAIL PROTECTED]> wrote:
> Hey friendly users!
>
> I have a question considering debugging: is it possible to get the current
> code line that is being executed?
Are you using pdb [the python debugger]?
If you have a script 'myscript.py', you can start the script like t
Noufal Ibrahim wrote:
> Greetings all,
> A friend here is trying to debug a rather badly written python program
> which spawns off lots of threads here and there. Are there any
> frameworks that I can reccommend that would ease his pain?
>
winpdb claims to debug multi-threaded programs. I h
> I had looked the code over. I knew to look on that line, but was
> totally
> baffled because I could not distinguish the
> comma from the period.
You are using IDLE right?
It sounds like you might need to change the font if the difference is
not clear because that's a pretty important differ
Marilyn,
I seemed to have missed the start of this one, but which debugger
are you trying to use? There is plain ole Python pdb, the IDLE
debugger and the Pythonwin debugger (and probably more!)
The pdb debugger is fashioned on the gdb debugger and works
very like that if you've ever sen it befor
e a debugger.
Marilyn
>
> Toby McLaughlin.
>
> > -Original Message-
> > From: Marilyn Davis [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, 20 November 2004 9:28 AM
> > To: McLaughlin, Toby
> > Cc: tutor@python.org
> > Subject: Re: [Tutor] Debugg
25 matches
Mail list logo