Re: Am I banned from Discuss forum?

2023-02-10 Thread Michael Torrie
On 2/10/23 14:10, Marco Sulla wrote: > I was banned from the mailing list and Discuss forum for a very long time. > Too much IMHO, but I paid my dues. > > Now this is my state in the forum: > - I never posted something unrespectful in the last months > - I have a limitation of three posts per

Re: evaluation question

2023-02-10 Thread Python
On Fri, Feb 10, 2023 at 05:48:53PM -0500, Thomas Passin wrote: > On 2/10/2023 4:55 PM, Python wrote: > > However, Python's print() function is more analogous to C's printf(), > > which returns the number of characters converted for an entirely > > different reason... It's precisely so that you'll

Re: ChatGPT Generated news poster code

2023-02-10 Thread Greg Ewing via Python-list
For a moment I thought this was going to be a script that uses ChatGPT to generate a random news post and post it to Usenet... Which would also have been kind of cool, as long as it wasn't overused. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

RE: evaluation question

2023-02-10 Thread avi.e.gross
There are no doubt many situations someone wants to know how long something will be when printed but often at lower levels. In variable-width fonts, for example, the number of characters does not really line up precisely with how many characters. Some encodings use a varying number of bytes and,

Re: evaluation question

2023-02-10 Thread Chris Angelico
On Sat, 11 Feb 2023 at 10:07, Thomas Passin wrote: > > On 2/10/2023 4:55 PM, Python wrote: > > However, Python's print() function is more analogous to C's printf(), > > which returns the number of characters converted for an entirely > > different reason... It's precisely so that you'll know what

Re: evaluation question

2023-02-10 Thread Thomas Passin
On 2/10/2023 4:55 PM, Python wrote: However, Python's print() function is more analogous to C's printf(), which returns the number of characters converted for an entirely different reason... It's precisely so that you'll know what the length of the string that was converted is. This is most

Re: evaluation question

2023-02-10 Thread Python
On Sat, Feb 11, 2023 at 08:30:22AM +1100, Chris Angelico wrote: > On Sat, 11 Feb 2023 at 07:36, Python wrote: > > You would do this instead: > > > > message = f"{username} has the occupation {job}." > > message_length = len(message) > > print(message) > > print(message_length) > >

Re: evaluation question

2023-02-10 Thread Chris Angelico
On Sat, 11 Feb 2023 at 07:36, Python wrote: > If it's the case that you simply want to know the length of the string > that will be printed, you can, rather than expecting the I/O function > to tell that to you, figure it out for yourself ahead of time, e.g. > instead of: > > username = "John

Am I banned from Discuss forum?

2023-02-10 Thread Marco Sulla
I was banned from the mailing list and Discuss forum for a very long time. Too much IMHO, but I paid my dues. Now this is my state in the forum: - I never posted something unrespectful in the last months - I have a limitation of three posts per threads, but only on some threads - Some random

Re: evaluation question

2023-02-10 Thread Python
On Mon, Jan 30, 2023 at 09:41:03AM -, mutt...@dastardlyhq.com wrote: > >Because print() returns nothing (i.e., the statement x is None is True). > > I don't understand this. What was the point of the upheaval of converting > the print command in python 2 into a function in python 3 if as a