Re: [Tutor] Error Cannot Import Name Core

2014-11-11 Thread Dave Angel
Felisha Lawrence Wrote in message: > Hello, > I am trying to install a version of pyart in OSX and I keep getting this > error > > -- > ImportError Traceback (most recent call last) > in () >

Re: [Tutor] “has a value of True” versus “evaluates true”

2014-11-11 Thread Clayton Kirkwood
From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On Behalf Of Danny Yoo Sent: Tuesday, November 11, 2014 5:25 PM To: Ben Finney; tutor@python.org Subject: Re: [Tutor] “has a value of True” versus “evaluates true” On Tue Nov 11 2014 at 3:09:38 PM Ben Finney mailto:ben%2

Re: [Tutor] “has a value of True” versus “evaluates true”

2014-11-11 Thread Danny Yoo
On Tue Nov 11 2014 at 3:09:38 PM Ben Finney wrote: > "Clayton Kirkwood" writes: > > > So, there is a difference between None and False, is that the issue? > > Yes. Those two values are different and not equal; but both evaluate > false in a boolean context. > > Just to note; not all programming

Re: [Tutor] Error Cannot Import Name Core

2014-11-11 Thread Danny Yoo
On Tue Nov 11 2014 at 5:17:53 PM Felisha Lawrence < felisha.lawre...@gmail.com> wrote: > Hello, > I am trying to install a version of pyart in OSX and I keep getting this > error > > --ImportError >

[Tutor] Error Cannot Import Name Core

2014-11-11 Thread Felisha Lawrence
Hello, I am trying to install a version of pyart in OSX and I keep getting this error --ImportError Traceback (most recent call last) in ()> 1 import pyart /Users/felishalawrence/anaconda/lib/

Re: [Tutor] “has a value of True” versus “evaluates true”

2014-11-11 Thread Ben Finney
"Clayton Kirkwood" writes: > So, there is a difference between None and False, is that the issue? Yes. Those two values are different and not equal; but both evaluate false in a boolean context. > I don’t necessarily see the difference as stated in the subject line. The difference is: there is

Re: [Tutor] “has a value of True” versus “evaluates true”

2014-11-11 Thread Alan Gauld
On 11/11/14 20:04, Clayton Kirkwood wrote: So, there is a difference between None and False, is that the issue? Yes. True and False are the only literal boolean values. Everything else is boolean-like. That is, they can be used in a boolean context and Python will treat them as if they were eit

Re: [Tutor] “has a value of True” versus “evaluates true” (was: don't understand iteration)

2014-11-11 Thread Clayton Kirkwood
So, there is a difference between None and False, is that the issue? I don’t necessarily see the difference as stated in the subject line. A=True If A == True If A Is this the crux of the issue? BTW, the feedback to my submittal suggests that this is a difference with no distinction.

[Tutor] Fwd: Project tree

2014-11-11 Thread Danny Yoo
-- Forwarded message - From: Wiktor Matuszewski Date: Tue Nov 11 2014 at 4:47:10 AM Subject: Re: [Tutor] Project tree To: Danny Yoo W dniu 2014-11-11 o 03:02, Danny Yoo pisze: > See: https://docs.python.org/3/tutorial/modules.html#intra- package-references > for more details. >

Re: [Tutor] don't understand iteration

2014-11-11 Thread Alex Kleider
On 2014-11-11 06:19, eryksun wrote: On Tue, Nov 11, 2014 at 4:52 AM, Alan Gauld wrote: Python 3 extended unpacking: >>> a, *bcd, e = 'abcde' >>> a 'a' >>> bcd ['b', 'c', 'd'] >>> e 'e' Seeing the above in a recent post, it made me wonder what would happen if

Re: [Tutor] hexodecimal to decimal form

2014-11-11 Thread William Becerra
Thank you for your time On 11 Nov 2014 15:02, "Dave Angel" wrote: > William Becerra Wrote in message: > > Hello, I'm new to programming using Python 2.7.8 and Windows 8 OSI'm > reading How to Think Like a Computer Scientist - learning with pythonon > chapter 12.2theres the following code: class

Re: [Tutor] hexodecimal to decimal form

2014-11-11 Thread Alan Gauld
On 11/11/14 09:00, William Becerra wrote: >>print blank <__main__.point instance at 0x02B38E40> the author says the the < 0x02B38E40> is in hexadecimal form Correct that's what the 0x at the front signifies. heres is my question: How can i convert from hexodecimal form to decimal form? Y

[Tutor] Silencing a speaker

2014-11-11 Thread Danny Yoo
On Nov 11, 2014 4:30 AM, "Ben Smith" wrote: > > Hi - I'm a teacher & sometimes when we're holding a two minute silence for an important occasion an > email comes through & makes my computer ping loudly. Is there a python script to stop these kind of things happening? Lo tech solution: can you plu

Re: [Tutor] Tutor Digest, Vol 129, Issue 22

2014-11-11 Thread Alan Gauld
On 11/11/14 11:24, Ben Smith wrote: Hi - I'm a teacher & sometimes when we're holding a two minute silence > for an important occasion an email comes through & makes > my computer ping loudly. > Is there a python script to stop these kind of things happening? I've no idea but why not just mute

Re: [Tutor] don't understand iteration

2014-11-11 Thread eryksun
On Tue, Nov 11, 2014 at 4:52 AM, Alan Gauld wrote: > On 11/11/14 04:45, Clayton Kirkwood wrote: > *list(range(1,6)) >> >>File "", line 1 >> SyntaxError: can use starred expression only as assignment target > > list() is a function. You cannot unpack a function. > > Also the * operator nee

Re: [Tutor] hexodecimal to decimal form

2014-11-11 Thread Dave Angel
William Becerra Wrote in message: > Hello, I'm new to programming using Python 2.7.8 and Windows 8 OSI'm reading > How to Think Like a Computer Scientist - learning with pythonon chapter > 12.2theres the following code: class Point: passblank = point()blank.x = > 3.0blank.y = 4.0 >>>print b

[Tutor] hexodecimal to decimal form

2014-11-11 Thread William Becerra
Hello, I'm new to programming using Python 2.7.8 and Windows 8 OS I'm reading How to Think Like a Computer Scientist - learning with python on chapter 12.2 theres the following code: class Point: pass blank = point() blank.x = 3.0 blank.y = 4.0 >>print blank.x 3.0 >>print blank.y 4.0 >>prin

Re: [Tutor] Tutor Digest, Vol 129, Issue 22

2014-11-11 Thread Ben Smith
Hi - I'm a teacher & sometimes when we're holding a two minute silence for an important occasion an email comes through & makes my computer ping loudly. Is there a python script to stop these kind of things happening? ;) -Original Message- From: Tutor [mailto:tutor-bounces+ben.smith=arn

Re: [Tutor] Help with Dice game

2014-11-11 Thread Dave Angel
Wrote in message: > > > > > > > Hello, I can not for the life of me figure out where I have gone wrong. I > wrote the following code as a simulation for the table top game x-wing. It > basically simulates dice rolls but the issue is the fact that every time I > choose a number of dice t

Re: [Tutor] don't understand iteration

2014-11-11 Thread Alan Gauld
On 11/11/14 04:45, Clayton Kirkwood wrote: *list(range(1,6)) File "", line 1 SyntaxError: can use starred expression only as assignment target list() is a function. You cannot unpack a function. Also the * operator needs to be used inside a function parameter list. (There may be some obsc