Mr.Trunk · @mrtrunk
12 followers · 19427 posts · Server dromedary.seedoubleyou.me
Anubhav · @anubhav
20 followers · 258 posts · Server hachyderm.io

Do not care at all for complaining about the opening brace being on the next line instead of the thing that block would belong to.

#tcl #wart

Last updated 2 years ago

WheresWill🔞(comms open) · @Maxygoof
1563 followers · 1280 posts · Server baraag.net

Arthur full pic! :blobuwu:

comms open, message me here, pixiv, or discord!

#wart #arthur #disney #shota #shotacon #swordinthestone #cute #butt #boy #whereswill

Last updated 2 years ago

Anubhav · @anubhav
9 followers · 365 posts · Server hachyderm.io

@treyhunner
>>> a[:] = [*a, 47, 76] # 😦

IIRC found via StackOverflow about "subdir_list[:] = []", as "os.walk()" docs.python.org/3/library/os.h lacks a variable to control recursion:

import os, random
parent_dir = '.'
recurse = random.randint( 0, 1 )
print( f'{recurse = } in {parent_dir}' )
for cur_dir, subdir_list, _ in os.walk( parent_dir ):
if subdir_list:
if not recurse:
subdir_list[:] = []
subdir_list.sort()
print( [ f'{cur_dir}/{s}' for s in subdir_list ] )

#wart #python

Last updated 3 years ago

WheresWill🔞(comms open) · @Maxygoof
1550 followers · 1277 posts · Server baraag.net
Anubhav · @anubhav
7 followers · 339 posts · Server hachyderm.io

A module-global "list" it is ...

import dataclasses

default = [ 2 ]

@dataclasses.dataclass
class Thing:
attr :list[int] = dataclasses.field( default_factory = lambd: list( default ) )

#TIMTOWTDI #python #wart #thorn_in_backside

Last updated 3 years ago

Anubhav · @anubhav
7 followers · 336 posts · Server hachyderm.io

@treyhunner
Yes, I hate it (the concatenation that I did not ask for; would have much preferred a compile time error via the interpreter).

#python #wart

Last updated 3 years ago

Wordle 587 4/6

⬜⬜🟨⬜🟨
🟨🟩⬜⬜⬜
⬜🟩⬜⬜⬜
🟩🟩🟩🟩🟩

#Wordle #wart #beads #doll

Last updated 3 years ago

WWWCDORG · @wwwcdorg
240 followers · 19215 posts · Server mamot.fr
WheresWill🔞(comms open) · @Maxygoof
1544 followers · 1277 posts · Server baraag.net