On 2023-01-31, Greg Ewing wrote:
> That's only one of the syntactic oddities of the old print
> statement, thogh. There was also the >> thing, special treatment
> of trailing commas, etc.
In "old" Python I used to use the trailing comma extensively, but I
could never get myself to use the >> thi
On 1/02/23 1:17 pm, dn wrote:
1 nothing "ceased to execute" and Python 2 was maintained and developed
for quite some time and in-parallel to many Python 3 releases.
And a lot of effort was put into making the transition as easy
as possible, e.g. 2to3, and the features added to 2.7 to make
it ea
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, C++
with "=0" pure virtual declaration. But they don't du
On 1/31/2023 6:18 PM, Greg Ewing wrote:
On 1/02/23 7:33 am, Stefan Ram wrote:
Thomas Passin writes:
Some people say it is a function now so that you can redefine it.
Hmm, I didn't write these quotes. Maybe someone got confused by the
depth of the nested replies in this thread. Easy e
On Wed, 1 Feb 2023 at 10:47, Greg Ewing wrote:
> That's only one of the syntactic oddities of the old print
> statement, thogh. There was also the >> thing, special treatment
> of trailing commas, etc.
"Soft space" (the trailing comma behaviour) was an incredibly complex
wart. Glad it's gone.
>
On 1/02/23 7:33 am, Stefan Ram wrote:
Thomas Passin writes:
Some people say it is a function now so that you can redefine it.
Well, that's one benefit, but I wouldn't say it's the main one.
The point is really that you can do *anything* with it now that
you can do with a regular functio
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 declaration. But they don't dump them and make all old
code suddenly ce
On Wed, 1 Feb 2023 at 09:14, Rob Cliffe via Python-list
wrote:
> With great respect, Chris, isn't it for the OP (or anyone else) to
> decide - having been warned of the various drawbacks and limitations -
> to decide if it's a terrible idea *for him*? He's entitled to decide
> that it's just what
On 27/01/2023 23:41, Chris Angelico wrote:
On Sat, 28 Jan 2023 at 10:08, Rob Cliffe via Python-list
wrote:
Whoa! Whoa! Whoa!
I appreciate the points you are making, Chris, but I am a bit taken
aback by such forceful language.
The exact same points have already been made, but not listened to.
import io
def countprint(*args, **kwargs):
capturekw = {k:v for k,v in kwargs.items() if k != 'file'}
buffer = io.StringIO()
capturekw['file'] = buffer
print(*args,**kwargs)
print(*args,**capturekw)
return len(buffer.getvalue())
def boolprint(*args,active:bool, **kwargs):
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 function because there's no good reason for
I think its has been discussed here that many functions are DELIBERATELY
designed to return without returning anything. Earlier languages like Pascal
had explicit ideas that a function that did not return a value was declared
as a "procedure" but many other languages like python make no real
differ
On 2023-01-31, Alan Gauld wrote:
> On 28/01/2023 21:36, Dennis Lee Bieber wrote:
>
>> Now -- last time I checked the gmane server says posting is prohibited.
>> I used to use gmane as it retrieved directly from the mailing list
>
> I still use gmane but its no posting thing is a pain because
On 1/31/2023 4:24 AM, mutt...@dastardlyhq.com wrote:
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() doe
On 28/01/2023 21:36, Dennis Lee Bieber wrote:
> Now -- last time I checked the gmane server says posting is prohibited.
> I used to use gmane as it retrieved directly from the mailing list
I still use gmane but its no posting thing is a pain because responding
(or posting new stuff) is a n
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 2023-01-31, Anssi Saari wrote:
> Grant Edwards writes:
>
>> No. FWIW, it's the mailing list that's blocking them, not Gmane.
>>
>> That's why I wrote this:
>>
>> https://github.com/GrantEdwards/hybrid-inews
>>
>> It's an inews work-alike that submits most posts via gmanes NNTP
>> server, b
Grant Edwards writes:
> No. FWIW, it's the mailing list that's blocking them, not Gmane.
>
> That's why I wrote this:
>
> https://github.com/GrantEdwards/hybrid-inews
>
> It's an inews work-alike that submits most posts via gmanes NNTP
> server, but will deal with particular groups
> (e.g. gm
18 matches
Mail list logo