#voice-chat-text-0
1 messages ยท Page 893 of 1
i am gonna go guys bye
@shut flame come over to this channel
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Asad, that is why above (the bot states why)
not like this i mean my mics muted
Read the channel fully as well.
๐ฅฒ
my bad
If you already got verified by the bot, fully exit & reopen Discord.
no the bot dmed me that i have not completed 50 msgs
Re-read the channel fully. It will tell you the requirements.
ok
After a full 1 hour, it might be updated properly if you did make the list
There is no cloud. Its just someone else's computer
no mic lol i cant say for now cause i dont have a mic
for now
try:
value = int(input())
except ValueError:
print('not a number')
lol
xD
heheheh
xD
so what do we have to do to get a permanent permission to stream
ooh
sed life
Hello, did someone want to stream something?
Asad just got accepted apparently into the Voice ability
Streaming is a little bit locked down here because we've had some unfortunate incidents in the past.
no i just wanted to know that wether we could get a permanent permission to stream'
and
i got my answer
Oh right. You have to be known and trusted by the Admins.
I would stream but I got to prepare a window to stream so it doesn't get automatically taken away
What's everyone up to? ๐
just chilling
๐ @wind raptor
@wind raptorbye
what type of programming do u guyz generally do POP or OOP
?
lol Procedural Oriented Programming
hehehe
POP
xD
i am a begineer but i think oop is easy hehehe
I like a kind of multi-paradigm style, when programming in python.
Like a mixture of functional and oop.
ooh
My programming style was heavily influenced by this guy called Peter Norvig.
well i am still learning i didnot know we could do that also hehehe
ooh
He writes in a very functional style because he's an old-school Lisp programmer.
Check out some of his code here: https://github.com/norvig/pytudes#pytudes-index-of-jupyter-ipython-notebooks
sure
yeah he uses both
Oh right, is IronPython just python running on .net?
Ah right ๐
Does that just compile directly to java bytecode?
There's a nice little howto in the python docs: https://docs.python.org/3/howto/functional.html
ooh
>>> ADD(2)(3)
5
Well the key idea of functional programming is that functions should avoid having side-effects where possible.
Oh yeah, that's called Currying.
sounds like crying
def add(x):
def addx(y):
return x + y
return addx
hehehe
Named after Haskell Curry.
def curry(*, nargs):
def decorator(f):
if not nargs:
return f()
@curry(nargs=nargs-1)
def wrapper(*x):
return partial(f, *x)
return wrapper
return decorator
@curry(nargs=2)
def add(a, b): return a + b
>>> add(5)(4)
9
Nah, don't worry about it ๐
Oh, that's cool metal.
def curry(*, nargs):
def decorator(f):
return partial(*([partial] * (nargs - 1)), f)
return decorator
ok bye gotto go to sleep
this is cleaner, but recursive decorators was more fun x
๐
Ah yeah, it's in the functools module.
from functools import partial
Gtg, got to keep an eye on python-general ๐
Cya
@somber heath you telling me you didn't hear this?
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
hi @alpine flame
hello
@OpManBros Well the truth is that I do not know anything, but I am learning that it is python itself and I would like to learn more, much much more.
ayy thats pretty good ๐ , i know java script and im looking forward into learning Python ๐
@stoic grail Well, I'm happy for you, I don't know if you could teach me how to found programming and something else, my native language is Spanish.
hola, me estudair espanol
El no te entiendo
Translate this what I'll send ok
Creo que digiste
Hola, estoy estudiando espaรฑol
who dont understands me?
yea sorry i meant that
I do not understand you with the expression you used, what you wrote does not make sense.
xD
Well, how much do you know about programming? And how old are you?
I know javascript , im 13
i will start learning Python today
Omg
?
Ok
your aslo 13?
@stoic grail my 14 year
@alpine flame come in this channel
hi
hello
no no do it in that channel
I don't understand what to do ._.
let me explain
ok
First you go on this channel and then type !voiceverify there
tell me when its done
nooo
:incoming_envelope: :ok_hand: applied mute to @alpine flame until <t:1630986934:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
im so sorry..
Hello everyone
hello
hello
hi
how u doin?
i am fine u tell
same
hewwo
bet you cant beat me in 1v1 type race
dont be pussy
@dire folio
be a man
let me scan the URL first
come on i type like my grandma
@woeful vine
lol blaming the game
i see
ima just learn Python
if you think that im blaming the game then i dont care bout what you think.
i can code in swift language
html python c++ java swift
thats nice
swift is easy to learn
so why are you wasting my time tho?
uhh
!ban @woeful vine
whats wrong with gay
NO ITS ABOUT THE ABUSIVE WORD U SAID TO ME BEFORE IM JUST GONNA IGNORE YOU NOW BRUH
waste o time
u from india?
!mute @woeful vine I don't see that being appropriate in any context. Re-read our #rules and #code-of-conduct
:incoming_envelope: :ok_hand: applied mute to @woeful vine until <t:1631004304:f> (59 minutes and 59 seconds).
thats scared the heck out of me i thought that im not in a call and someone just hacked me @whole bear
lol
sounds good
yea
what about JS
hello
Hi
i learned it
hewwo :>
@tough delta nice music!
@stoic grail keep it up and i'll show you real irritating...
No plss
jk XD
Bajaja
Banana.
i heard my name?
Windows 11
Hello
I dont have permission to speak @somber heath
I have
Not up to 50 messages
ive been voice verified for a year yet they're too scared to let me stream or video cos i think its my "code is too terrifying"
ok
@somber heath
i have question
can i send you an image of code and can you tell me why im getting an error?
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
@somber heath
it gives me the error local variable 'money' referenced before assignment
wdym?
i have referenced it iin the get value function should i move itup?
@somber heath what would be a better way to store the data??
always remember that x = ... will implicitly declare x as local unless explicitly stated otherwise.
and y = x + ... will ask for x from globals, unless an x = ... exists without a global x
x = 4
def main():#>>
x -= 4 #< error
main() #<<
x = 4
def main():
global x
x -= 4 # good
main() # x = 0
@somber heath if i dont have no data it will error
Best profile pic in da world
is there an alternative?
@somber heath could i use that same paste thing to show my changes?
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
might be a few names not fixed
ok
int
so suround it in int()
for now??
ok
ok thnx i gtg now
I cant hear you but lily is purring into the microphone @somber heath
well, near it
can you hear her?
you might need to turn volume max
?
if you said something, the cat is sitting on my headphones
Do you have noise cancellation on or something?
I'm hearing occasional, quiet noises of like movement and stuff, but nothing remarkable.
Still nothing.
Were you talking?
Fatal you sound like a guy speaking from the space who is lost
I can't hear a thing you're saying.
It sounds like you're cupping your hands to your mouth and around the microphone and speaking quietly into it like you're half asleep.
gets eaten
fatal plug off ur headphone and plug it in again
yea
you sound like ur in slowmo
@somber heath why dont you join a hypesquad?
The HypeSquad houses of Bravery, Brilliance, and Balance are recruiting! Take the quiz of destiny in Discord. Go to User Settings - HypeSquad to join the squad and find out which house is yours.
there are 3 badges and the one you get tell about yourself and puts you in that group probably
im in hypesquad balance
its not a server
that would be gryffindor
pls @somber heath take the quiz
i think ur in hufflepuff
okay :< sad face
@somber heath come join the Brilliance side
Balance one is better @somber heath
In brilliance, we offer the opportunity to truly excel
@somber heath whats the reason for that?
pls reapeat
okhay
what does opalmist means?
what does opal means?
okay
your profile pic looks like a mist
and it's opalish
how do you have a lotta time?? @somber heath
not if they die early
uhh like how can i explain
they have a lotta time if they saw their 100 year old self from the future
they dont have a lotta time if they traveled to the future and attended their own funeral in 2028
nope
EPIK KEYBOARD INTEFISES
yesss
fatal you sound like an alien
stopppppppppppppppppppppppp
mutttttttteee
fatal
OH NO IVE BEEN CAUGHT THEE HUMAN SAW THROUGH MY DISGUISE
one dude was abusing me today on dis channel
i leave home everyday for exersize and ik the spelling is wrong
lol
i was laughing soo hard when he abused me
Can we ban some particular words using code by making a block?
like
if (fuck)
then = ban
yea that was my example
im just curious which language is your username written in?
ye its japanese
eyy
we can be neighbours cause my VPN is in japan,lol
ye im not japanese sadly
oh,lol
i just like japanese character lol
lol
my vpn doesnt give me the option for japan :/
i have UK and japan
i suppose its an anime
I can UK
"ponyo wants ham"
Okay fa'al
the wind rises is cool too
ehhehhe
heheh
anyone wanna get muted?
:<
oki im goin AFK @somber heath sirr
idk]
i forgot how the movie ended -.-
it ended at the end
wait i thought your name ends with a good ending?
@somber heath what about the ending of 1984?
ye
at the very end, the bullet did hit him aha
the protagonist dies aha
it eventually did happen
they did it from behind
h
@somber heath
451
h
bye
h
sad
last time i tried to cry it didnn't work but my eyelid went swollen instead
crying only works if i have hayfever
"if thine enemy offends thee
give his child a drum" this is verboof's bio, and i don't get the analogy. why give his child a drum
...
I've played a similar prank like that before
When my uncle's ex broke up with him, i took revenge by introducing her children to the genre of death metal
and that had the same effect
as "giving the child a drum"
enriching experience?
https://open.spotify.com/track/2juc27l5DyzZN6U27XlTzU?si=86c85b06ab114a6d
yeah this is the sort of give the child a drum sorta death metal i was talking about
i think she regrets it hehehe
ooh
DOOM
yeye
different types of metal (e.g aluminum, bronze, brass, copper magnesium
lol
lmao
I heard virgin black before thyer good
they only have a single track on spotify :(
sad
hai
sad
whar
done
lmao
what does pygame.image.load().convert() do
wqhar
it loads an image and converts it
what when there is no convert
pygame devs say convert is very good
huh
goomba
roomba
DOOM soundtrack makes good hacker music
hello @drifting summit !
and MeA sublime_T_Boy
hi
welcome to the vc lol
hi there!
ya ,thanks for welcoming
i have a question can i just ask here?
sureeee
sure
i am just getting started with ml libs
hello
hm-hm
hlo
i was trynna build chaterbot I have installed that lib twice but like i don't know it still shows errors
chatbot really is horryfting
trying to install chatterbot corpus that sort of stuff
not just that none of the ml files in there
i did already
maybe if u can help me with that it'll be very nice!!
in a nutsheell what is not wrking
are the libraries not instaalled or u are not able to acess them
ya libraries are installed it'll be showing errors like in ListTrainer and chatterbot
and now it's fine no errors and it's giving no optput
That might be an issue with the code
can I share here?
Ya
sure
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
bot = ChatBot("Bot")
convo = [
"Hello",
"Hi there!",
"How are you doing?",
"I'm doing great.",
"That is good to hear",
"Thank you.",
"You're welcome."
]
trainer = ListTrainer(bot)
trainer.train(convo)
answer = bot.getresponse("Good Morning!")
print(answer)
hi
ikr lol
like how much there would be to do
Good evening
hello there
yesssssssssssssssss

boi what the hell boi
That's JS code that's derived by the PureScript compiler for generically representing data types
Cat sit on arm XD
That's just a single part
there are multiple 
All that code is generated just so I can print some type out
It's largely unnecessary but it gets optimized out anyways; still, though, I'd have to find the time to write the interface instead of relying on that bulk of code
@whole bear i don't like you
Temp Agency. Temporal Agency.
Hemlock: Time Cop.
no wonder it's called funnel cake
Any opening of the item
Yes, you can
๐
@woeful salmon were ya talking about XPS 15?
LTT on FrameWork: https://www.youtube.com/watch?v=0rkTgPt3M4k&t=968s
Get a Free Pair of Wireless Bluetooth Headphones at Micro Center: https://micro.center/7f7633
Check out the Micro Center Custom Builds Showcase: https://micro.center/792de5
Get your G.Skill Z5i mini-ITX case today at: https://lmg.gg/Z5i
When Framework told me they were making a completely repairable laptop I assumed it would be a flimsy chonke...
yep that one
LTT on ToughBook: https://www.youtube.com/watch?v=x7rt6BZYscs
Thanks to Panasonic TOUGHBOOK for sponsoring this video! Check out the TOUGHBOOK 55 at https://lmg.gg/8KV1N
In the world of soldered ram, pentalobe screws and glued down batteries - Panasonic is taking the complete opposite approach with the new Toughbook. They've created a laptop where nearly everything, including the GPU, can be swapped almos...
can i talk in voice chat?
Happy @rugged root is happy
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
How dare you not carry your pocket banana at all times?
Why not?
Thought this was cool: https://www.reddit.com/r/interestingasfuck/comments/k3b9gn/i_made_a_real_banana_for_scale/
Where do I acquire one of these?
yo guys hi
lol
I needed to read some old backups off of some old IDE drives, so I got one of these:
https://www.amazon.com/Docking-Tccmebius-TCC-S862-US-External-Enclosure/dp/B07LGCKMK7/
well i will be going i got some work rn
I just hate how everyone uses different escape characters
Postgres (and Excel?) use two consecutive quotes to escape a quote
kids these days and their memes
"that's what she said" kind of memes 
@brave steppe https://www.gtk.org/docs/language-bindings/python/
Interesting, so an official GTK one
thats cool
who is marko
Return of the purse snatchers.
https://video.twimg.com/ext_tw_video/1433625916064903172/pu/vid/720x720/N4W1zdX8A_8D79k5.mp4?tag=12
@smoky dustyou're thumping into your mic
https://github.com/asottile/setuptools-golang ๐ฎ i just found this
Your name reminded me of this game .... (which I only have on Android) https://youtu.be/TNTlsNKMPAw
Fight and tame alien beasts, craft resources into menacing weaponry, befriend the outlandish locals, and go toe-to-chin with a world-domineering maniac in this award-winning RPG. Have a friend join you for couch co-op with a single Joy-Con!
#NintendoSwitch #Crashlands
Subscribe for more Nintendo fun! https://goo.gl/HYYsot
Visit Nintendo.com ...
>>> a = { [] }
>>> a.add([])
>>> len(a)
2
@primal yacht that's not legal Python
first line is a set literal
brb
cya!
@primal yacht maybe you mean this? ```
a = set()
a.update([])
len(a)
0
There is no set literal for an empty set.
.... was your speakers working at the time I typed that?
closest thing is ```
{*[]}
set()
It was a contextual code block
// JavaScript (untested)
console.log(JSON.stringify(
Array.from({length:0})
)); // []
console.log(JSON.stringify(
Array.from({
length: 3
}, (_, i) => String.fromCodePoint(
i + 'a'.codePointAt(0)
));
)); // ["a","b","c"]
!e ```python
from dataclasses import dataclass
@dataclass
class Test:
is_user: bool
role: str
a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)```
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
001 | Admin
002 | False
CP/M, originally standing for Control Program/Monitor and later Control Program for Microcomputers, is a mass-market operating system created in 1974 for Intel 8080/85-based microcomputers by Gary Kildall of Digital Research, Inc. Initially confined to single-tasking on 8-bit processors and no more than 64 kilobytes of memory, later versions of ...
!e ```python
from dataclasses import dataclass
@dataclass
class Test:
is_user: bool
role: str
voice_channel:str = 'vc-0'
a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
@amber raptor :warning: Your eval job has completed with return code 0.
[No output]
!e ```python
from dataclasses import dataclass
import json
@dataclass
class Test:
is_user: bool
role: str
voice_channel:str = 'vc-0'
a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a))
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
001 | Admin
002 | False
003 | vc-0
!e ```python
from dataclasses import dataclass
import json
@dataclass
class Test:
is_user: bool
role: str
voice_channel:str = 'vc-0'
a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a))```
@amber raptor :x: Your eval job has completed with return code 1.
001 | Admin
002 | False
003 | vc-0
004 | Traceback (most recent call last):
005 | File "<string>", line 14, in <module>
006 | File "/usr/local/lib/python3.9/json/__init__.py", line 231, in dumps
007 | return _default_encoder.encode(obj)
008 | File "/usr/local/lib/python3.9/json/encoder.py", line 199, in encode
009 | chunks = self.iterencode(o, _one_shot=True)
010 | File "/usr/local/lib/python3.9/json/encoder.py", line 257, in iterencode
011 | return _iterencode(o, 0)
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/yobihuvome.txt?noredirect
!e
from dataclasses import dataclass
import json
@dataclass
class Test:
is_user: bool
role: str
voice_channel:str = 'vc-0'
a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(dict(a)))
@rugged root :x: Your eval job has completed with return code 1.
001 | Admin
002 | False
003 | vc-0
004 | Traceback (most recent call last):
005 | File "<string>", line 14, in <module>
006 | File "/usr/local/lib/python3.9/json/__init__.py", line 231, in dumps
007 | return _default_encoder.encode(obj)
008 | File "/usr/local/lib/python3.9/json/encoder.py", line 199, in encode
009 | chunks = self.iterencode(o, _one_shot=True)
010 | File "/usr/local/lib/python3.9/json/encoder.py", line 257, in iterencode
011 | return _iterencode(o, 0)
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/onixupeyun.txt?noredirect
!e
from dataclasses import dataclass
import json
@dataclass
class Test:
is_user: bool
role: str
voice_channel:str = 'vc-0'
a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a.__dict__))
@olive hedge :x: Your eval job has completed with return code 1.
001 | Admin
002 | False
003 | vc-0
004 | Traceback (most recent call last):
005 | File "<string>", line 14, in <module>
006 | AttributeError: 'dict' object has no attribute '__dict__'
any reason to use
__dict__ or vars instead of dataclasses.asdict?
does dataclasses.asdict do anything different o- o
I couldnt remember how to do it, this might be the correct way
in general you do not want to use the dunder methods directly

I realized where I messed up
!e
from dataclasses import dataclass, asdict
import json
@dataclass
class Test:
is_user: bool
role: str
voice_channel: str = 'vc-0'
a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a["Hemlock"].__dict__))
@olive hedge :white_check_mark: Your eval job has completed with return code 0.
001 | Admin
002 | False
003 | vc-0
004 | {"is_user": false, "role": "Lowly User", "voice_channel": "vc-0"}
I didnt read
Neat
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
!e ```python
from dataclasses import dataclass, asdict
import json
@dataclass
class Test:
is_user: bool
role: str
voice_channel: str = 'vc-0'
a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(a['Rabbit'].role)
print(a['Hemlock'].is_user)
print(a['Rabbit'].voice_channel)
print(json.dumps(a.dict))```
@amber raptor :x: Your eval job has completed with return code 1.
001 | Admin
002 | False
003 | vc-0
004 | Traceback (most recent call last):
005 | File "<string>", line 17, in <module>
006 | AttributeError: 'dict' object has no attribute '__dict__'
that still doesn't help fisher
I'm talking about building nice big dictionary you can dump to JSON so you can post it
@amber raptor
too much code to read
kk ima try to figure it out
!e
import json
from dataclasses import dataclass
from json import JSONEncoder
class MyEncoder(JSONEncoder):
def default(self, o):
return o.__dict__
@dataclass
class Test:
is_user: bool
role: str
voice_channel: str = 'vc-0'
a = {"Rabbit": Test(True, "Admin")}
a['Hemlock'] = Test(False, "Lowly User")
print(json.dumps(a, cls=MyEncoder))
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
{"Rabbit": {"is_user": true, "role": "Admin", "voice_channel": "vc-0"}, "Hemlock": {"is_user": false, "role": "Lowly User", "voice_channel": "vc-0"}}
@amber raptor Is dumping to JSON your only requirement?
>>> from dataclasses import make_dataclass, field
>>> MC = make_dataclass('MyClass', [('x', int), ('y', str, field(default='bar'))])
>>> MC(0, 'baz')
MyClass(x=0, y='baz')
@rugged root How big is your internal IT department?

Just me
back to the ZEN
Do you mind giving me the five minute version of what it's like to have internal and external IT?
I've always been curious about what that's like.
anyone here does poisson regressions in pandas?
does anyone of you do your entry points like this btw?
def main() -> int:
if not working:
print("err", file=sys.stderr)
return -1
return 0
if __name__ == "__main__":
sys.exit(main())
saw it in source i was reading just now but seems excessive knowing exceptions exist
What would make it less messy?
that's terrible
external IT is generally miserable
Convert dict with dataclass values into bog standard dict
@amber raptor I wouldn't use this unless I don't know what kind of data I'm getting and I, for some reason, need a dataclass instead of a dynamically generated namedtuple - but I think I'd still prefer the namedtuple.
idk if i'd call it terrible but it is unnecessary indeed i think
@amber raptor they added a new map, and there's a sight line from one of the capture points directly into one of the spawns
ok
They?
war thunder game devs
In mathematics, a tuple is a finite ordered list (sequence) of elements. An n-tuple is a sequence (or ordered list) of n elements, where n is a non-negative integer. There is only one 0-tuple, referred to as the empty tuple. An n-tuple is defined inductively using the construction of an ordered pair.
Mathematicians usually write tuples by listi...
Forgive my ignorance, but is that not what I(/we) did?
What do you think of this alternative?
import json
from dataclasses import asdict, dataclass
@dataclass
class Test:
is_user: bool
role: str
voice_channel: str = 'vc-0'
a = {"Rabbit": Test(True, "Admin"), 'Hemlock': Test(False, "Lowly User")}
print(json.dumps(a, default=lambda o: asdict(o)))
Let me review the docs. I'm not too familiar with dataclasses
!d dataclasses.asdict
dataclasses.asdict(instance, *, dict_factory=dict)```
Converts the dataclass `instance` to a dict (by using the factory function `dict_factory`). Each dataclass is converted to a dict of its fields, as `name: value` pairs. dataclasses, dicts, lists, and tuples are recursed into. For example...
yes
Nevermind. That was quick
Neat
here's the source for asdict: https://github.com/python/cpython/blob/main/Lib/dataclasses.py#L1211
Lib/dataclasses.py line 1211
def asdict(obj, *, dict_factory=dict):```
Yo
Ear worm remover I mentioned earlier: https://www.youtube.com/watch?v=qRZmdzCGLYw
The Best of Achille-Claude Debussy (22 August 1862 -- 25 March 1918)
Pianist: Pascal Rogรฉ
Along with Maurice Ravel, Debussy was one of the most prominent figures associated with Impressionist music, though he himself intensely disliked the term when applied to his compositions. In France, he was made Chevalier of the Legion of Honour in 1903. ...
can someone give me an idea for python?
!projects
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
Sup Hemlock!
Trying to find the motivation though
nm, working (trying to)
I slept for like 4 hours this afternoon
Now I'm wide awake at 2 AM and having coffee
.
Chaos?
trying to understand why a .yml file is being used as a middleman for extracting .env values and struggling to adapt to this convention.
I may have put too much creamer on my coffee or my cold just doesn't allow me to taste anything
is this inaccurate?
Nope
This issue I'm having is similar to: https://github.com/microsoft/vscode-jupyter/issues/5963
I'm going to try downgrading my python to 3.8
I can do it
it worked lol
Thatโs small notebook
await nuserm.add_roles(nuserm.guild.get_role(839872901326438431))
@bot.event
async def on_raw_reaction_add(payload):
print("A")
if payload.emoji.name == ":white_check_mark:":
channel = bot.get_channel(payload.channel_id)
if int(payload.channel_id) == int(884807256724602931):
message = await channel.fetch_message(payload.message_id)
reaction = get(message.reactions, emoji=payload.emoji.name)
users = set()
for reaction in message.reactions:
async for user in reaction.users():
users.add(user)
for user in users:
if user.id != 882174968375431169:
nuserm = user
if reaction and reaction.count > 1:
await message.remove_reaction(":white_check_mark:", nuserm)
await nuserm.add_roles(nuserm.guild.get_role(839872901326438431))```
I LOVE
Holy shit what
why surprised?
What's the intuition for all the async/await syntax? I think I got it, but I'm not sure...
I wasn't sure if the android browser supported that
oh, android browser... I see
android is a robot
I'm going to create an operating system called Wizard of
So I can have its full title, Wizard of OS
Your battery is low
I've practically abused my phone's battery but I've yet to see any major degradation in battery life
No u
Use PureScript @rugged root 
True
@haughty pier why not study machine learning?
if you already have a comp-sci foundation, i don't imagine it to be that hard
I also have

I found assets on a fan site
There's quite a lot of decompiled GBA games floating on GitHub
Only a matter of time before Nintendo- yeah
@noble copper there was a lot of "machine learning" topics in the coursework. I think "MS Statistics" has more academic credibility than "MS Data Science" or "MS Machine Learning".
Haskell is practically a first-class citizen in Nix land
That's wild
Hello Guys ๐
!server
It happened
brb
How do you set up lynx for windows?
Hopping back on when I get in the van.
async def aprint(*args):
print(*args)
async def multi_print():
await aprint('hello')
await aprint('world')
await aprint('goodbye')
lynx as in the terminal web browser?
async def multi_print():
yield from aprint('hello')
yield from aprint('world')
yield from aprint('goodbye')
async def multi_print(): # Inlined
print('hello')
print('world')
print('goodbye')
async def atime(duration):
time.sleep(duration)
!e I made this yesterday ```py
def wait(sec):
# Wait a little bit
for _ in range(target): # Pretend this is seconds
print('waiting')
yield # Nothing to be done
# The seconds have passed and we're done
return
def lunch_employee(employee):
print(f'{employee} clocking into work')
for _ in range(5):
print(f'{employee} is working')
yield # Let other tasks run
print('Taking a lunch break')
yield from wait()
print('Back to work after our break')
for _ in range(2):
print('I am working, you dont need to ask me about it')
print('See you tomorrow')
def robot_employee(employee):
print('Working with my colleague')
for i in range(20):
print('dig')
yield
print('Going home now as well')
tasks = [robot_employee('Bob'), lunch_employee('Robert')]
while tasks:
for task in tasks:
try:
next(task)
except StopIteration:
# Error from Python that means the generator stopped
tasks.remove(task)
@brave steppe :x: Your eval job has completed with return code 1.
001 | Working with my colleague
002 | *dig*
003 | Robert clocking into work
004 | Robert is working
005 | *dig*
006 | Robert is working
007 | *dig*
008 | Robert is working
009 | *dig*
010 | Robert is working
011 | *dig*
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/pacixuginu.txt?noredirect
SQLite (, ) is a relational database management system (RDBMS) contained in a C library. In contrast to many other database management systems, SQLite is not a clientโserver database engine. Rather, it is embedded into the end program.
SQLite generally follows PostgreSQL syntax. SQLite uses a dynamically and weakly typed SQL syntax that does not...
@molten pewter https://fossil-scm.org/home/doc/trunk/www/fossil-v-git.wiki
i'm just gonna go sleep now 1:40 am gnight ๐ช
hello
they're pretty much just music nodes and then the bot
not really micro service
what
@dense ibex What are you trying to do with shards?
Heโs sharding on RabbitMQ
you do that with manual sharding
so basically
clustering
err
so you have a set of listeners
mhm
and you want one discord python instance to connect to x shards and add them to the queue
thats manual sharding
so you tell discord what process should handle what shards
and they get their respective events
yes
so its just manual sharding
well no lib handles sharding to what he wants to do
well he has to
he's connecting to Discord he has to worry about what shards he's managing
but I think what he's saying is that eventually that process will only cope with so many events
1
2
2500
set
yes and that reduces the load on the listener
but there is a limit to what the single process can cope with
Rust +Tokio would
yeah threading would help
yeah it'll remove alot of load
๐
bot state store yeah
no caching general data
e.g. Roles
members
use keydb

just set the buffer pool limit to be more reasonable
not 128MB
Postgres' default caching config is very very limiting
in terms of how much it stores
That is a big ass message cache
Well if you think about the fact that you'll see thousands of messages a second
as you get bigger
no no I was referring to Jake's idea of storing a week's set of messages in some store
generally
postgres would probably be best or scylla / cassandra maybe with lz4 compressing enabled between client and server
it would be good if you want to store the messages for a week
@haughty pier can you please mute your mic
because it is aimed at that higher rate of row input and targetted recall
We can hear everything lol
but not really worth if you have other stuff to store
the queries 
well spin up isnt that bad
but I have a real issue with the queries
just because no nested queries and it has a really tiny tolerance of query performance
you can set it to auto discover
oh ok
I gotta write distribution stuff for my search engine 
ooo
basically
Its just faster
because Java -> c++
and Blocking IO -> async IO
Pretty sure they're one of the only DB's that does actual Async disk IO
just because its an absolute nightmare to do
I mean truly Async Disk IO in combination with Direct IO
although I think that's only used on IOuring systems
yeah 
although its pretty reasonable
because then you have to worry about alignment etc...
The only time its pretty useful to do is in DBs to cut back on duplicated caching

indexing
late at night
last time I got bollocked for talking too loud 
move to a flat in like 16 days though
#voice-verification @whole bear
@sinful wharf sorry new to discord
@dense ibex any advice to get good at coding
yeah i ma
am
In this Python Beginner Tutorial, we will start with the basics of how to install and setup Python for Mac and Windows. We will also take a look at the interactive prompt, as well as creating and running our first script. Let's get started.
Mac Install: 1:25
Windows Install: 5:44
Installs Complete: 8:37
Watch the full Python Beginner Series he...
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
how long did it take u
curious
and how many hours do u spends a day?
if u are ok for answering
u in college?
hey anyone wanna teach me how to script
i cannot get my bot verified bc my age on discord does not match the age on my passport ๐ญ
i am kinda a starter
oop
The bot has some, @whole bear
thx
no no its not a personal bot
its in 76 servers tho!
question katie
why is your name that and you sound like a grown man
oop
sry
lol
uhm
did you ever create
a bot
ohh so what have you scripted?
oh ok
on your phone you can do that
wait
this whole time
i have been sleeping under a rock
any of you know something about ROS/rospy module?
nahh
:/
ros is for robotics if you're interested
anyway, how would you recommend stepping up my game in python programming
idk
ros is like an operating system for robotics
ask Katie
ohh ok
is there a algorithim that can convert a number like 78927 to a str like this: 78,927
@primal yacht
sorry
yes
robot Operating System is an open-source robotics middleware suite. Although ROS is not an operating system but a collection of software frameworks for robot software development, it provides services ...
damm
yep thats it
lol
yeah, but i wanted to know if someone knew more than me, so i could ask some stuff
but I know only the basics
too much linear algebra for me brain
lol
yeah
i was confuse on what is was going to do
cause
why do we need a robot
when we can do the things our self
but then
when you think about
the people in need
that dont have legs
and cant walk
then yh
but that will be alot of money
so, robots are pretty much like the ones that can do repetitive tasks o dangerous
for example think about a gas leak somewhere
yh
with risk of explosions
yh
or a crumbling house with people inside
it does make sense to have them robots doing those jobs
import os, sys, json
json.dump(dict(os.environ), sys.stdout, indent = 2)
print(flush=True)
what does this do
hello
robots are already automating some task in production lines
what do we do here
%AppData%
%LocalAppData%
yh
thats it
question
did
yall here
that tesla making the bots learn by there self
that is hard
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
import os
print(os.environ['PATHEXT'])
yh like that
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
but differnt
oh
53,529
196,891