In a message of Fri, 02 Oct 2015 23:35:28 -0700, neubyr writes:
>I was wondering if there is any resource that explains why certain methods
>like str() and type() were implemented the way they are, rather than
>.to_string() or .type() instance/object methods.
>
>I find instance/object methods more
In a message of Fri, 02 Oct 2015 22:36:23 -, Rob Gaddi writes:
>So, this is odd. I'm running Ubuntu 14.04, and my system did a kernel
>upgrade from the repository from 3.13.0-63-generic to 3.13.0-65-generic.
>And pyserial (2.7, installed through pip) stopped working.
>
>Specifically, when I
In a message of Sat, 03 Oct 2015 11:07:04 +0200, Laura Creighton writes:
>In a message of Fri, 02 Oct 2015 22:36:23 -, Rob Gaddi writes:
>>So, this is odd. I'm running Ubuntu 14.04, and my system did a kernel
>>upgrade from the repository from 3.13.0-63-generic to 3.13.0-65-generic.
>>And p
With better searching, I find this bug.
https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/+bug/1501345
Looks like that's the real one.
Laura
--
https://mail.python.org/mailman/listinfo/python-list
On 10/3/2015 2:35 AM, neubyr wrote:
I was wondering if there is any resource that explains why certain
methods like str() and type()
These are classes. Calling a class calls the class construction and
initialization functions. These return an instance of the class.
While reading the tutoria
On Fri, 2 Oct 2015 07:45 am, John Gordon wrote:
> In <87r3le1ht3@elektro.pacujo.net> Marko Rauhamaa
> writes:
[...]
>> Wouldn't
>
>>x < 0 or 10 < x
>
>> be even more visual?
>
> I don't know what you mean by "more visual".
>
> In my opinion, when comparing a variable to a constant, it
On 03/10/2015 11:29, Steven D'Aprano wrote:
On Fri, 2 Oct 2015 07:45 am, John Gordon wrote:
I find this discussion about the relative readability of
not 0 <= x <= 10 #1
versus
0 < x or x > 10 #2
0 < x or 10 < x
to be a good example of people's propensity to invent so-called "rational"
ju
On Sat, 3 Oct 2015 04:35 pm, neubyr wrote:
> I was wondering if there is any resource that explains why certain methods
> like str() and type() were implemented the way they are, rather than
> .to_string() or .type() instance/object methods.
There is a FAQ that might help with this question:
htt
I have a document written in Restructured Text format, and I use lots of
footnotes:
blah blah blah [1]_ and blah blah blah [2]_.
blah blah [3]_ blah ... blah blah
blah blah [999]_.
.. [1] fe
.. [2] fi
.. [3] fo
...
.. [999] fum
I need to add a footnote between
On Sat, Oct 3, 2015 at 9:39 PM, Steven D'Aprano wrote:
> I need to add a footnote between [2] and [3], but I don't want to have to
> renumber the following 997 footnotes by hand. Is there something I can do,
> within the syntax of ReST itself, to help?
Now that they're all numbered manually? Not
Actually, the fact that adults have more difficulty processing
negations is one of the earliest things proven experimentally
in experimental psychology.
Clark, H., & Chase, W. (1972). On the process of comparing sentences against
pictures. Cognitive Psychology, 3, 472–517.
is one of the most hea
In a message of Sat, 03 Oct 2015 21:39:26 +1000, "Steven D'Aprano" writes:
>I have a document written in Restructured Text format, and I use lots of
>footnotes:
>
>blah blah blah [1]_ and blah blah blah [2]_.
>blah blah [3]_ blah ... blah blah
>blah blah [999]_.
>
>.. [1] fe
>..
On Sat, 3 Oct 2015 10:12 pm, Laura Creighton wrote:
> People think logically
LOL :-)
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, 3 Oct 2015 10:21 pm, Laura Creighton wrote:
> In a message of Sat, 03 Oct 2015 21:39:26 +1000, "Steven D'Aprano" writes:
>>I have a document written in Restructured Text format, and I use lots of
>>footnotes:
[...]
> You shouldn't have numbered them manually in the first place.
> Use '#' i
On 10/03/2015 03:19 AM, Laura Creighton wrote:
> With better searching, I find this bug.
> https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/+bug/1501345
>
> Looks like that's the real one.
This ubuntu bug and the other bug you mention seem to be about FTDI
devices. Rob said in his origi
On 10/02/2015 02:23 PM, Kenneth L wrote:
> No don't tell me what to do. I joined the military 3 years ago. You
> wouldn't believe the stuff I wasn't able to do before but now I am.
> You can keep your advice to yourself. I wasn't asking for something
> simple. I was asking for a starting point. The
In a message of Sat, 03 Oct 2015 08:38:53 -0600, Michael Torrie writes:
>On 10/03/2015 03:19 AM, Laura Creighton wrote:
>> With better searching, I find this bug.
>> https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/+bug/1501345
>>
>> Looks like that's the real one.
>
>This ubuntu bug and
def funA(x,y,z):
return (x+y) * z
def funB(x,y):
return(x-y)
print(funA(4,funB(2,3), funB(3,2)))
the answer is 3. I don't know how it works.
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, Oct 3, 2015 at 1:40 PM, Ronald Cosentino
wrote:
> def funA(x,y,z):
> return (x+y) * z
>
The above takes 3 values and returns a value
> def funB(x,y):
> return(x-y)
>
The above takes 2 values and returns a value
> print(funA(4,funB(2,3), funB(3,2)))
>
you are printing the resu
Hi Ronald,
Answers inline.
-Original Message-
From: Python-list
[mailto:python-list-bounces+joseph.lee22590=gmail@python.org] On Behalf
Of Ronald Cosentino
Sent: Saturday, October 3, 2015 10:41 AM
To: python-list@python.org
Subject: function code snippet that has function calls I have
hi,
On Sat, Oct 03, 2015 at 10:40:57AM -0700, Ronald Cosentino wrote:
> def funA(x,y,z):
> return (x+y) * z
> def funB(x,y):
> return(x-y)
> print(funA(4,funB(2,3), funB(3,2)))
>
> the answer is 3. I don't know how it works.
it's simple:
- there is a "composition of functions", generall
On Sat, 03 Oct 2015 10:40:57 -0700, Ronald Cosentino wrote:
> def funA(x,y,z):
> return (x+y) * z
> def funB(x,y):
> return(x-y)
> print(funA(4,funB(2,3), funB(3,2)))
>
> the answer is 3. I don't know how it works.
def funA(x, y, z):
return (x+y) * z
def funB(x, y):
return (x-y)
22 matches
Mail list logo