On 9/25/20 7:55 AM, Markus Armbruster wrote:
John Snow writes:
On 9/23/20 10:55 AM, Cleber Rosa wrote:
Do you have a use case for returning the level? If not, I'd go
without it, and add a "level" property instead, as it'd serve more
cases.
__int__ is doing that lifting. I can remove the re
On 9/25/20 7:51 AM, Markus Armbruster wrote:
John Snow writes:
On 9/22/20 6:22 PM, Eduardo Habkost wrote:
On Tue, Sep 22, 2020 at 05:00:32PM -0400, John Snow wrote:
Code style tools really dislike the use of global keywords, because it
generally involves re-binding the name at runtime which
Eduardo Habkost writes:
> On Fri, Sep 25, 2020 at 01:51:54PM +0200, Markus Armbruster wrote:
>> John Snow writes:
>> > On 9/22/20 6:22 PM, Eduardo Habkost wrote:
> [...]
>> > Yeah, there's only one user right now, so ... I just kinda wanted to
>> > get rid of the global usage. Maybe if we make t
On Fri, Sep 25, 2020 at 01:51:54PM +0200, Markus Armbruster wrote:
> John Snow writes:
> > On 9/22/20 6:22 PM, Eduardo Habkost wrote:
[...]
> > Yeah, there's only one user right now, so ... I just kinda wanted to
> > get rid of the global usage. Maybe if we make the code generator
> > fancier we'l
John Snow writes:
> On 9/23/20 10:55 AM, Cleber Rosa wrote:
>> Do you have a use case for returning the level? If not, I'd go
>> without it, and add a "level" property instead, as it'd serve more
>> cases.
>
> __int__ is doing that lifting. I can remove the return.
I like my functions to return
John Snow writes:
> On 9/22/20 6:22 PM, Eduardo Habkost wrote:
>> On Tue, Sep 22, 2020 at 05:00:32PM -0400, John Snow wrote:
>>> Code style tools really dislike the use of global keywords, because it
>>> generally involves re-binding the name at runtime which can have strange
>>> effects dependin
On 9/23/20 10:55 AM, Cleber Rosa wrote:
Do you have a use case for returning the level? If not, I'd go
without it, and add a "level" property instead, as it'd serve more
cases.
__int__ is doing that lifting. I can remove the return.
--js
On 9/22/20 6:22 PM, Eduardo Habkost wrote:
On Tue, Sep 22, 2020 at 05:00:32PM -0400, John Snow wrote:
Code style tools really dislike the use of global keywords, because it
generally involves re-binding the name at runtime which can have strange
effects depending on when and how that global name
On Tue, Sep 22, 2020 at 05:00:32PM -0400, John Snow wrote:
> Code style tools really dislike the use of global keywords, because it
> generally involves re-binding the name at runtime which can have strange
> effects depending on when and how that global name is referenced in
> other modules.
>
>
On Tue, Sep 22, 2020 at 05:00:32PM -0400, John Snow wrote:
> Code style tools really dislike the use of global keywords, because it
> generally involves re-binding the name at runtime which can have strange
> effects depending on when and how that global name is referenced in
> other modules.
>
>
Code style tools really dislike the use of global keywords, because it
generally involves re-binding the name at runtime which can have strange
effects depending on when and how that global name is referenced in
other modules.
Make a little indent level manager instead.
Signed-off-by: John Snow
11 matches
Mail list logo