Gregory Ewing wrote:
> rusi wrote:
>> Good idea. Only you were beaten to it by about 2 decades.
>
> More than 2, I think.
>
> Algol: x := y
Wher := is pronounced 'becomes'.
--
Duncan Booth http://kupuguy.blogspot.com
--
https://mail.python.org/mailman/listinfo/python-list
On 21/12/2013 2:00 AM, Mark Lawrence wrote:
Shall I write a PEP asking for a language change which
requires that that stupid = sign is replaced by a keyword reading
something like
thenameonthelefthandsideisassignedtheobjectontherighthandside ?
I propose:
tag with
--
https://mail.python.o
On Saturday 21 December 2013 14:08:02 Chris Angelico did opine:
> On Sun, Dec 22, 2013 at 3:54 AM, Dennis Lee Bieber
>
> wrote:
> > (heh, the spell-checker suggests that
> > "thefullyqualifiednameontheleftafteranysubexpressionshavebeenevaluated
> > isattachedt" should be replaced with "textually
On 21/12/2013 16:54, Dennis Lee Bieber wrote:
On 21 Dec 2013 12:58:41 GMT, Steven D'Aprano
declaimed the following:
On Fri, 20 Dec 2013 16:00:22 +, Mark Lawrence wrote:
On 20/12/2013 15:34, rusi wrote:
You are also assuming that the two horizontal lines sometimes called
'equals' have
On Sun, Dec 22, 2013 at 3:54 AM, Dennis Lee Bieber
wrote:
> (heh, the spell-checker suggests that
> "thefullyqualifiednameontheleftafteranysubexpressionshavebeenevaluatedisattachedt"
> should be replaced with "textually")
The spell-checker was scratching its head and going "I'm pretty sure
this i
On Fri, 20 Dec 2013 16:00:22 +, Mark Lawrence wrote:
> On 20/12/2013 15:34, rusi wrote:
>> You are also assuming that the two horizontal lines sometimes called
>> 'equals' have something to do with something called by the same name in
>> math -- equations
>>
>>
> A good point. Shall I write
rusi wrote:
Good idea. Only you were beaten to it by about 2 decades.
More than 2, I think.
Lisp: (setq x y)
Algol: x := y
Smalltalk: x <- y (where <- is a "left arrow" character)
Cobol: MOVE X TO Y
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On 12/20/2013 10:16 AM, dec...@msn.com wrote:
y = raw_input('Enter a number:')
print type y
y = float(raw_input('Enter a number:'))
print type y
I recommend starting with 3.3 unless your are forced to use 2.x.
I also recommend trying code before posting it.
I'm assuming that y is an object.
On Dec 20, 2013, at 8:00 AM, Mark Lawrence wrote:
> A good point. Shall I write a PEP asking for a language change which
> requires that that stupid = sign is replaced by a keyword reading something
> like thenameonthelefthandsideisassignedtheobjectontherighthandside ?
Or a symbol like :=. As
On 12/20/2013 08:16 AM, dec...@msn.com wrote:
> y = raw_input('Enter a number:')
> print type y
> y = float(raw_input('Enter a number:'))
> print type y
>
> I'm assuming that y is an object.
Rather than thinking that y "is" an object, it is more accurate
to think of it as: y is a name that is "bo
On Saturday, December 21, 2013 1:10:37 AM UTC+8, rusi wrote:
> On Friday, December 20, 2013 9:30:22 PM UTC+5:30, Mark Lawrence wrote:
>
> > On 20/12/2013 15:34, rusi wrote:
>
> > > On Friday, December 20, 2013 8:46:31 PM UTC+5:30, dec...@msn.com wrote:
>
> > >> y = raw_input('Enter a number:')
>
On 20/12/2013 17:10, rusi wrote:
On Friday, December 20, 2013 9:30:22 PM UTC+5:30, Mark Lawrence wrote:
On 20/12/2013 15:34, rusi wrote:
On Friday, December 20, 2013 8:46:31 PM UTC+5:30, dec...@msn.com wrote:
y = raw_input('Enter a number:')
print type y
y = float(raw_input('Enter a number:'))
On Friday, December 20, 2013 9:30:22 PM UTC+5:30, Mark Lawrence wrote:
> On 20/12/2013 15:34, rusi wrote:
> > On Friday, December 20, 2013 8:46:31 PM UTC+5:30, dec...@msn.com wrote:
> >> y = raw_input('Enter a number:')
> >> print type y
> >> y = float(raw_input('Enter a number:'))
> >> print type
On 12/20/2013 10:16 AM, dec...@msn.com wrote:
print type y
That line will give you a syntax error.
--
https://mail.python.org/mailman/listinfo/python-list
On 20/12/2013 15:34, rusi wrote:
On Friday, December 20, 2013 8:46:31 PM UTC+5:30, dec...@msn.com wrote:
y = raw_input('Enter a number:')
print type y
y = float(raw_input('Enter a number:'))
print type y
I'm assuming that y is an object. I'm also assuming that the second and the
first y are
On Friday, December 20, 2013 8:46:31 PM UTC+5:30, dec...@msn.com wrote:
> y = raw_input('Enter a number:')
> print type y
> y = float(raw_input('Enter a number:'))
> print type y
> I'm assuming that y is an object. I'm also assuming that the second and the
> first y are different objects because
On Fri, Dec 20, 2013, at 10:16, dec...@msn.com wrote:
> The second time we type print type y, how does the program knows which
> one of the y's it refers to ? Is the first y object deleted ?
y does not refer to the first object anymore after you've assigned the
second object to it. In CPython, if
y = raw_input('Enter a number:')
print type y
y = float(raw_input('Enter a number:'))
print type y
I'm assuming that y is an object. I'm also assuming that the second and the
first y are different objects because they have different types.
The second time we type print type y, how does the progra
18 matches
Mail list logo