Hi
This is probably a dumb newbie question but I've just started to learn
python3 and eval() isn't behaving as I'd expect in that it works for
some things and not others. eg:
>>> eval("1+1")
2
>>> eval("print(123)")
123
>>> eval("for i in range(1,10): i")
Traceback (most recent call last):
File
On Fri, 27 Jan 2023 21:04:58 +
Ben Bacarisse wrote:
>mutt...@dastardlyhq.com writes:
>
>> Hi
>
>It looks like you posted this question via Usenet. comp.lang.python is
>essentially dead as a Usenet group. It exists, and gets NNTP versions
>of mail sent to the mailing list, but nothing posted
On Sat, 28 Jan 2023 14:22:01 +1300
dn wrote:
>On 28/01/2023 05.37, mutt...@dastardlyhq.com wrote:
>> This is probably a dumb newbie question but I've just started to learn
>> python3 and eval() isn't behaving as I'd expect in that it works for
>> some things and not others. eg:
>>
> eval("1+1
On Sun, 29 Jan 2023 23:57:51 -0500
Thomas Passin wrote:
>On 1/29/2023 4:15 PM, elvis-85...@notatla.org.uk wrote:
>> On 2023-01-28, Louis Krupp wrote:
>>> On 1/27/2023 9:37 AM, mutt...@dastardlyhq.com wrote:
>>
>>
>>> eval("print(123)")
123
>>
>>
>> Does OP expect the text to come fro
On Tue, 31 Jan 2023 12:57:33 +1300
Greg Ewing wrote:
>On 30/01/23 10:41 pm, mutt...@dastardlyhq.com wrote:
>> What was the point of the upheaval of converting
>> the print command in python 2 into a function in python 3 if as a function
>> print() doesn't return anything useful?
>
>It was made a f
On Wed, 1 Feb 2023 13:17:33 +1300
dn wrote:
>On 01/02/2023 11.59, Greg Ewing wrote:
>> On 31/01/23 10:24 pm, mutt...@dastardlyhq.com wrote:
>>> All languages have their ugly corners due to initial design mistakes
>>> and/or
>>> constraints. Eg: java with the special behaviour of its string class,
On Tue, 31 Jan 2023 21:00:53 +
Mark Bourne wrote:
>Greg Ewing wrote:
>> On 30/01/23 10:41 pm, mutt...@dastardlyhq.com wrote:
>>> What was the point of the upheaval of converting
>>> the print command in python 2 into a function in python 3 if as a
>>> function
>>> print() doesn't return anyth
On Wed, 1 Feb 2023 11:59:25 +1300
Greg Ewing wrote:
>On 31/01/23 10:24 pm, mutt...@dastardlyhq.com wrote:
>> All languages have their ugly corners due to initial design mistakes and/or
>> constraints. Eg: java with the special behaviour of its string class, C++
>> with "=0" pure virtual declaratio
On Wed, 1 Feb 2023 18:28:04 +0100
"Peter J. Holzer" wrote:
>--b2nljkb3mdefsdhx
>Content-Type: text/plain; charset=us-ascii
>Content-Disposition: inline
>Content-Transfer-Encoding: quoted-printable
>
>On 2023-02-01 09:00:39 -, mutt...@dastardlyhq.com wrote:
>> Its not evolution, its revolution.