On 2014-09-05, Denis McMahon denismfmcma...@gmail.com wrote:
On Thu, 04 Sep 2014 21:42:56 +1000, Chris Angelico wrote:
On Thu, Sep 4, 2014 at 9:17 PM, Denis McMahon denismfmcma...@gmail.com
wrote:
On Wed, 03 Sep 2014 07:16:34 +, Steven D'Aprano wrote:
Who uses + for disjunction (∨ OR)
Grant Edwards invalid@invalid.invalid:
Who uses + for disjunction (∨ OR) and concatenation for
conjunction (∧ AND)? That's crazy notation.
AFAIK, that's the standard notation in both CS and EE university
classes in the US also: + for 'or' and dot or abuttal for 'and'.
Besides, it's no
On Wed, 03 Sep 2014 07:16:34 +, Steven D'Aprano wrote:
Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
AND)? That's crazy notation.
The way I was taught it in the mid 1980s, a.b === a and b, a+b === a or b.
--
Denis McMahon, denismfmcma...@gmail.com
--
On Thu, Sep 4, 2014 at 9:17 PM, Denis McMahon denismfmcma...@gmail.com wrote:
On Wed, 03 Sep 2014 07:16:34 +, Steven D'Aprano wrote:
Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
AND)? That's crazy notation.
The way I was taught it in the mid 1980s, a.b === a and
On Thu, 04 Sep 2014 21:42:56 +1000, Chris Angelico wrote:
On Thu, Sep 4, 2014 at 9:17 PM, Denis McMahon denismfmcma...@gmail.com
wrote:
On Wed, 03 Sep 2014 07:16:34 +, Steven D'Aprano wrote:
Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
AND)? That's crazy
On Fri, Sep 5, 2014 at 12:53 PM, Denis McMahon denismfmcma...@gmail.com wrote:
On Thu, 04 Sep 2014 21:42:56 +1000, Chris Angelico wrote:
On Thu, Sep 4, 2014 at 9:17 PM, Denis McMahon denismfmcma...@gmail.com
wrote:
On Wed, 03 Sep 2014 07:16:34 +, Steven D'Aprano wrote:
Who uses + for
On Tue, 02 Sep 2014 20:14:51 -0700, Rustom Mody wrote:
Dijkstra
used to point out
A ∧ (B ∨ C) ≡ (A ∧ B) ∨ (A ∧ C) A ∨ (B ∧ C) ≡ (A ∨ B) ∧ (A ∨ C) look
normal enough in this form
Put then into the way engineers do it and they become A(B + C) = AB + AC
A + BC = (A+B)(A+C)
o_O
Who uses +
Steven D'Aprano st...@pearwood.info:
Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
AND)? That's crazy notation.
That's the classic Boolean algebraic notation. In basic algebra, the two
interesting operations are addition and multiplication. Boolean math
works like
Marko Rauhamaa wrote:
Steven D'Aprano st...@pearwood.info:
Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
AND)? That's crazy notation.
That's the classic Boolean algebraic notation.
Says who? (Apart from you, obviously :-) Since when? I've never seen it in
*any*
On Thu, Sep 4, 2014 at 11:54 AM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
although the
analogy is terrible for ∨. 1+1 = 2, not 1.
I wouldn't say terrible. Unclear perhaps, but functional. Try this exercise:
false, true = 0, 1 # or use an old Python
if true + true:
On Thursday, September 4, 2014 7:24:19 AM UTC+5:30, Steven D'Aprano wrote:
Marko Rauhamaa wrote:
Steven D'Aprano:
Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
AND)? That's crazy notation.
That's the classic Boolean algebraic notation.
Says who? (Apart from
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info:
Marko Rauhamaa wrote:
That's the classic Boolean algebraic notation.
Says who? (Apart from you, obviously :-) Since when? I've never seen
it in *any* discussion of Boolean algebra.
I have only run into George Boole, Boolean algebra and
On 2014-08-30, Tim Chase python.l...@tim.thechases.com wrote:
On 2014-08-30 14:27, Seymore4Head wrote:
I really tried to get this without asking for help.
mylist = [The, earth, Revolves, around, Sun]
print (mylist)
for e in mylist:
# one of these two choices should print something.
On Tue, 2 Sep 2014 16:43:09 + (UTC), Grant Edwards
invalid@invalid.invalid wrote:
On 2014-08-30, Tim Chase python.l...@tim.thechases.com wrote:
On 2014-08-30 14:27, Seymore4Head wrote:
I really tried to get this without asking for help.
mylist = [The, earth, Revolves, around, Sun]
print
Grant Edwards wrote:
I missed the beginning of the thread, but Why are you comparing things
to True and False?
I don't understand why people do it, but it's *incredibly* common. A couple
of weeks ago at work, I had to (gently, in a friendly manner) mock one of
our most senior and accomplished
On Wednesday, September 3, 2014 7:14:14 AM UTC+5:30, Steven D'Aprano wrote:
Grant Edwards wrote:
I missed the beginning of the thread, but Why are you comparing things
to True and False?
I don't understand why people do it, but it's *incredibly* common. A couple
of weeks ago at work, I
For future reference, here is a hint as to how to debug problems like this,
and a cleaner way to write the code.
Seymore4Head wrote:
On Sat, 30 Aug 2014 13:48:09 -0500, Tim Chase
python.l...@tim.thechases.com wrote:
if e[0].isupper == False:
print (False)
if e[0].isupper ==
Seymore4Head wrote:
That would work now, but I didn't even know no.isupper() was command
until 15 min ago. :)
I have been told that one is a method and the other calls a method. I
still have to learn exactly what that means. I'm getting there.
Indeed you are :-)
Command, in Python,
On Sun, Aug 31, 2014 at 6:37 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
- Use print() to see the intermediate results:
a = e[0].isupper
print(e[0], a, a == False, a == True)
And I'll add to this: *Copy and paste* the original code to craft this
output statement. I
I really tried to get this without asking for help.
mylist = [The, earth, Revolves, around, Sun]
print (mylist)
for e in mylist:
# one of these two choices should print something. Since neither
does, I am missing something subtle.
if e[0].isupper == False:
print (False)
if
On 2014-08-30 14:27, Seymore4Head wrote:
I really tried to get this without asking for help.
mylist = [The, earth, Revolves, around, Sun]
print (mylist)
for e in mylist:
# one of these two choices should print something. Since neither
does, I am missing something subtle.
if
On Sat, 30 Aug 2014 13:48:09 -0500, Tim Chase
python.l...@tim.thechases.com wrote:
On 2014-08-30 14:27, Seymore4Head wrote:
I really tried to get this without asking for help.
mylist = [The, earth, Revolves, around, Sun]
print (mylist)
for e in mylist:
# one of these two choices should
On 8/30/14 2:50 PM, Seymore4Head wrote:
On Sat, 30 Aug 2014 13:48:09 -0500, Tim Chase
python.l...@tim.thechases.com wrote:
On 2014-08-30 14:27, Seymore4Head wrote:
I really tried to get this without asking for help.
mylist = [The, earth, Revolves, around, Sun]
print (mylist)
for e in mylist:
On Sat, 30 Aug 2014 16:20:56 -0400, Ned Batchelder
n...@nedbatchelder.com wrote:
On 8/30/14 2:50 PM, Seymore4Head wrote:
On Sat, 30 Aug 2014 13:48:09 -0500, Tim Chase
python.l...@tim.thechases.com wrote:
On 2014-08-30 14:27, Seymore4Head wrote:
I really tried to get this without asking for
On 30/08/2014 19:48, Tim Chase wrote:
On 2014-08-30 14:27, Seymore4Head wrote:
I really tried to get this without asking for help.
mylist = [The, earth, Revolves, around, Sun]
print (mylist)
for e in mylist:
# one of these two choices should print something. Since neither
does, I am
On Sat, 30 Aug 2014 22:21:40 +0100, Mark Lawrence
breamore...@yahoo.co.uk wrote:
On 30/08/2014 19:48, Tim Chase wrote:
On 2014-08-30 14:27, Seymore4Head wrote:
I really tried to get this without asking for help.
mylist = [The, earth, Revolves, around, Sun]
print (mylist)
for e in mylist:
On 30/08/2014 22:48, Seymore4Head wrote:
On Sat, 30 Aug 2014 22:21:40 +0100, Mark Lawrence
breamore...@yahoo.co.uk wrote:
On 30/08/2014 19:48, Tim Chase wrote:
On 2014-08-30 14:27, Seymore4Head wrote:
I really tried to get this without asking for help.
mylist = [The, earth, Revolves,
On 30Aug2014 17:48, Seymore4Head Seymore4Head@Hotmail.invalid wrote:
I have been told that one is a method and the other calls a method. I
still have to learn exactly what that means. I'm getting there.
A method is, essentially, a function. Observe:
def my_func(x):
print(9)
my_func
28 matches
Mail list logo