#voice-chat-text-0

1 messages · Page 711 of 1

digital jackal
#

you need to see the requirments in #voice-verification

#

it should be somewhere up in the group chats

#

okay

sick cloud
#
array = [None] * 10
for i in range(10):
   array[i] = int(input("Please enter the height of the student: "))

print(i)
```u would use an array for dat purpose
#

None -> the array is empty

#

there isn't anything

fresh python
#

!voiceverify

sick cloud
#

!e

array = [None]*10
print(array)
wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

[None, None, None, None, None, None, None, None, None, None]
digital jackal
#

10 values?

sick cloud
sick cloud
digital jackal
#

9*

#

wait

#

nvm

sick cloud
#

its 10

digital jackal
#

yeah lmao

#

im blind

fresh python
#

you guys

#

can help me with something?

#

i have a job

sick cloud
#

!e

array = [None]*10
print(array)

# assingin stuff
array[0] = "Helo"
print(array)
fresh python
#

thing to do

wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

001 | [None, None, None, None, None, None, None, None, None, None]
002 | ['Helo', None, None, None, None, None, None, None, None, None]
fresh python
#

watson text to speech how to use api with node js

#

does anybody can help me?

sick cloud
#

idk node js

digital jackal
#

same

sick cloud
#

@digital jackal ```
array -> [None, None, None, None, None, None, None, None, None, None]
index -> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

digital jackal
#

0 is the first value of this list?

#

yeahhhhh

sick cloud
#

u could do:

#

!e

array = [None]*10
print(array)

# 9 --> last value
array[9] = "Yessss"
print(array)
wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

001 | [None, None, None, None, None, None, None, None, None, None]
002 | [None, None, None, None, None, None, None, None, None, 'Yessss']
sick cloud
#

now u could use a for loop, to go through the list and give it a value

digital jackal
#

like for and while?

#

or only for

sick cloud
#

!e

array = [None] * 10

for i in range(10):
   array[i] = i

print(array)
wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
sick cloud
digital jackal
#

k

uncut meteor
#

#bot-commands

sick cloud
#

!e

array = [None] * 10
count = 0

while count < 10: 
   array[count] = count
   count += 1

print(array)
wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
sick cloud
#

@digital jackal they do the same thing

#

only one is a bit more complex than the other

digital jackal
#

can we enter like a voice call?

#

cz its not very clear

sick cloud
#

i'm like the worst teacher,

digital jackal
#

aight man

sick cloud
#

read though it

digital jackal
#

tnx

#

yeah i will

sick cloud
#

@digital jackal

vestal badge
#

message n out of 50

sick cloud
#

@severe elm x)

severe elm
sick cloud
#

@severe elm 12 more days

#

nope

#

india

#

but i'm in africa rn

#

yep

#

some ppl

#

nah, my mic is tooo $hity

#

built-in mic

#

ikkkk

#

dat's why i don't speak

#

nooo, highshool boi

#

i was in grade 9

#

in india, we also use class

#

class 9

#

idk

#

tbh

sick cloud
#

i like the live in present thing

uncut meteor
#

!puzzle

#

!puzzles

#

!project

wise cargoBOT
#

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.

solar scaffold
#

how do u calculate the value of lets say, sin 840º reducing it to the first quadrant? is the value sen 840º = (90º - (- 750º) = cos 750º
I dont understand " reducing it to the first quadrant"

#

cosin is cos btw and sen is sin but in spanish

gentle flint
#

@solar scaffold you still stuck or do you have a solution already?

#

guess he has a solution already then, whatever

solar scaffold
#

I need help

gentle flint
#

ah, OK

#

Well, draw a circle

#

then take a pencil, and start at 0°

#

then keep, counterclockwise turning until you have turned 840°

#

(you'll have turned several times around the circle, obviously)

#

and see where you end up

#

I think that'll give you a better feel for how it works than any explanation I could give you

sick cloud
#

@eternal bough helo

#

@uncut meteor just add me, i'm gonna see u 2 code it

fresh python
#

just

#

can't talk

#

homie

#

=\

#

vscode

#

live are you using?

#

code with me?

#

never heard

#

this?

#

noice

uncut meteor
fresh python
#

maybe can I install this ide

#

on windows?

sick cloud
fresh python
#

i'm installing

#

aight

#

i would be glad to be with it you guys

sick cloud
#

i'm on time

fresh python
#

what is this architecture is it like MVC or DDD?

#

is this website

#

for what?

sick cloud
#

@uncut meteor am i in ?

#

it very much reminds me of repl.it ngl

#

@thin breach helo

solar scaffold
#

@gentle flint thank u so much for explaining

uncut meteor
sick cloud
#

I'll see @uncut meteor @eternal bough tmr gn

eternal bough
sick cloud
#

i'm on edge

#

go to the top of the file

eternal bough
#

1125 x 654

somber heath
#

str.zfill is Python's solution.

gentle flint
#

dom dom dom dom dom

somber heath
somber heath
dull dove
#

hello oof

uncut meteor
whole bear
#

can u help me guys ?

#

i am at code/Help 1

tired bear
#

hey i cant speak cuz i recently joined but do any of you know much about discord.py

whole bear
#

idk 😄

#

if u are familiar with python can i ask u a question

#

?

#

@tired bear

tired bear
#

sure shoot

whole bear
#

can i ask u on dm ?

#

it s a bit long

tired bear
#

hey all of da peeps in da voice chat

thin gorge
#

Yes i am

whole bear
#

!voiceverify

#

!voiceverify

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-12-20 03:06 (9 minutes and 58 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

coarse mortar
#

so what everyone up

#

great

#

yeh im working on doing the verify thing

#

i been here for like a week

#

just now starting to interact

#

hey nix can you tell juan that im typing in voice chat

#

i think its more about building

#

the comunity and what hulf said

#

Be right back gonna mute myself

#

me back

#

im from the us

#

juan that is really cool

#

i agree a mjority of peope have heard the name but dont know where it is without google maps XD

#

yeh jamaica isnt a thrid world

#

but it does have poor places

#

AMAZON FOR REAL

#

yeh america is expensive

#

for a room to rent where i live is almost 1800

oak raven
#

Death, try to verify your voice in the chat called voicecerify or something like that

coarse mortar
#

k

#

yeh i still have some chatting to go

#

i have 33 messages sent

#

18 messages to go

#

so yeh

#

16 messages

#

my family is watching the croods 2 on amazon right now XD

#

im just saying stuff to get thru this chat restriction

#

grggle grggle grggle

#

i think im almost there now

#

hmm very interesting

#

yeh

#

ooo good question to juan

halcyon flare
#

!e

wise cargoBOT
#
Command Help

!eval [code]
Can also use: e

*Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.

We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*

#

@halcyon flare :x: Your eval job has completed with return code 1.

001 | Would you like to start Round 
002 |  y/n Traceback (most recent call last):
003 |   File "<string>", line 9, in <module>
004 | EOFError: EOF when reading a line
coarse mortar
#
import random

num = random.randint(1,50)
guess = 0 


while True:
    print("Would you like to start Round \n y/n" ,end=" ")
    exit = input()
    if exit == "n" :
        break 
    while True:
        print("guess my number between 1:50",end=" ")
        guess = input()
        if not guess.isdigit() :
            print("Invalid! Enter only digits between 1:50")
            break
        elif int(guess) < num :
            print("Too low try again",end=" ")
        elif int(guess) > num :
            print("Too high try again",end=" ")
        else:
            print("Correct... my number is " + guess)
            break
#

!e

wise cargoBOT
#
Command Help

!eval [code]
Can also use: e

*Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.

We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*

coarse mortar
#

!eval

wise cargoBOT
#
Command Help

!eval [code]
Can also use: e

*Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.

We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*

oak raven
#

´´´py
print("UwU")
´´´

coarse mortar
#

!e ```py
*import random

num = random.randint(1,50)
guess = 0
while True:
print("Would you like to start Round \n y/n" ,end=" ")
exit = input()
if exit == "n" :
break
while True:
print("guess my number between 1:50",end=" ")
guess = input()
if not guess.isdigit() :
print("Invalid! Enter only digits between 1:50")
break
elif int(guess) < num :
print("Too low try again",end=" ")
elif int(guess) > num :
print("Too high try again",end=" ")
else:
print("Correct... my number is " + guess)
break

wise cargoBOT
#

@coarse mortar :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     *import random
003 |      ^
004 | SyntaxError: invalid syntax
coarse mortar
#

!e ```py
import random

num = random.randint(1,50)
guess = 0
while True:
print("Would you like to start Round \n y/n" ,end=" ")
exit = input()
if exit == "n" :
break
while True:
print("guess my number between 1:50",end=" ")
guess = input()
if not guess.isdigit() :
print("Invalid! Enter only digits between 1:50")
break
elif int(guess) < num :
print("Too low try again",end=" ")
elif int(guess) > num :
print("Too high try again",end=" ")
else:
print("Correct... my number is " + guess)
break

wise cargoBOT
#

@coarse mortar :x: Your eval job has completed with return code 1.

001 | Would you like to start Round 
002 |  y/n Traceback (most recent call last):
003 |   File "<string>", line 7, in <module>
004 | EOFError: EOF when reading a line
oak raven
#
print("UwU")
#

!e

wise cargoBOT
#
Command Help

!eval [code]
Can also use: e

*Run Python code and get the results.

This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.

We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*

oak raven
#

thanksss

#
class cubes():
  def __init__(self, color, size):
    self.color = color
    self.size = size
cube1 = (cubes, self, "blue", "big")

print(cube1.color)

#

!e class cubes

wise cargoBOT
#

@oak raven :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     class cubes
003 |                ^
004 | SyntaxError: invalid syntax
oak raven
#

!e class cubes():

wise cargoBOT
#

@oak raven :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     class cubes():
003 |                   ^
004 | IndentationError: expected an indented block
oak raven
#
class cubes:
  def __init__(self, color, size):
    self.color = color
    self.size = size
cube1 = (cubes, self, "blue", "big")

print(cube1.color)
coarse mortar
oak raven
#

!e class cubes:

wise cargoBOT
#

@oak raven :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     class cubes:
003 |                 ^
004 | IndentationError: expected an indented block
#

@halcyon flare :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 6, in <module>
003 | NameError: name 'cube1' is not defined
oak raven
#
class cubes:
  def init(self, color, size):
    self.color = color
    self.size = size
cube1 = (cubes, self, "blue", "big")

wise cargoBOT
#

@halcyon flare :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 6, in <module>
003 | NameError: name 'self' is not defined
oak raven
#

!e classs cubes

wise cargoBOT
#

@oak raven :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     classs cubes
003 |            ^
004 | SyntaxError: invalid syntax
oak raven
#

!e class cubes:

wise cargoBOT
#

@oak raven :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     class cubes:
003 |                 ^
004 | IndentationError: expected an indented block
halcyon flare
#

os.urandom()

#

random.SystemRandom

#

len(my_dict)

sick cloud
cedar briar
#

hey @coarse mortar not voice verified yet

#

what's up?

coarse mortar
#

not much

ruby stump
#

Hey everyone! I am a newbie...

#

Can anyone help me plz....
I just know basics of python, c, cpp i am in third year what should i do which course to prefer and what language should i learn ?

versed island
#

@ruby stump
From : Alice In the Wonderland

“Alice: Would you tell me, please, which way I ought to go from here?
The Cheshire Cat: That depends a good deal on where you want to get to.
Alice: I don't much care where.
The Cheshire Cat: Then it doesn't much matter which way you go.
Alice: ...So long as I get somewhere.
The Cheshire Cat: Oh, you're sure to do that, if only you walk long enough.”

uncut meteor
#
x = 1
y = 2
z = 3
locals()[z] = 5
print(locals())
proud briar
#

ok

uncut meteor
#

!e

locals()["apple"] = 5

print(apple)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

5
whole bear
#

np

proud briar
#

look this project is a bot can play piano tiles game ok?

whole bear
#

i f you wana go

#

@proud briar what you coding

proud briar
#

whre is the error?

uncut meteor
#

!code

wise cargoBOT
#

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.

proud briar
#

yes

uncut meteor
#

`

proud briar
#

`py``

uncut meteor
#

```py
code here
```

proud briar
#

k

#

give me an exemple

uncut meteor
#
print("Hello Word")
proud briar
#
import pyautogui
import keyboard
import time
import win32con,win32api

#477 659
#607 659
#731 659
#845 659
#red green blue(0,0,0)

def clicktiles(xpos,ypos):
    win32api.SetCursorPos(xpos,ypos)
    win32api.mouse_event(win32con.MOUSEEVENT_LEFTDOWN,0,0)
    time.sleep(0.01)
    win32api.mouse_event(win32con.MOUSEEVENT_LEFTUP, 0 ,0)


while keyboard.is_pressed("q")==False:
    if pyautogui.pixel(477,659)[0]==0:
        clicktile(477,659)

    if pyautogui.pixel(607,659)[0]==0:
        clicktile(607,659)

    if pyautogui.pixel(731,659)[0]==0:
        clicktile(731,659)

    if pyautogui.pixel(845,659)[0]==0:
        clicktile(845,659)
    ```
#

where is the error?

#

sty i dont understand

#

can you write

sick cloud
#

is there an error message ?

proud briar
#

yes

sick cloud
#

what does the error say ?

proud briar
#

wait

sick cloud
#

@uncut meteor np

proud briar
#

(No such file or directory)

#

this is the error

gentle flint
#

this server be like

#
I'm sitting here in a boring room
It's just another rainy Sunday afternoon
I'm wasting my time I got nothing to do
I'm hanging around I'm waiting for you
But nothing ever happens
And I wonder

I wonder how, I wonder why
Yesterday you told me 'bout the
Blue, blue sky
And all that I can see
Is just a yellow lemon tree
I'm turning my head up and down
I'm turning, turning, turning, turning
Turning around
And all that I can see
Is just another lemon tree
proud briar
#

can you write plz?

#

no i mean griff

gentle flint
#

yeah, he said no

stuck furnace
#

Want me to transcribe? 😄

proud briar
#

if you will explain write plz

sick cloud
stuck furnace
#

Actually, I'm not a fast enough typer 😄

uncut meteor
#

Your error isn't to do with your code so can you send me the full error message just to make sure

gentle flint
#

aria

#

la la la

sick cloud
#

x)

proud briar
#

k

sick cloud
#

alr

gentle flint
#

it's lyrics from a song we were mentioning in vc

sick cloud
#

probably

uncut meteor
#

oof wrote it for me

high ingot
#

o

proud briar
#

[Errno 2] No such file or directory

gentle flint
high ingot
#

nice

uncut meteor
#

v~oof

sick cloud
proud briar
#

yes

gentle flint
#

no, it's not

high ingot
#

sounds romantic

gentle flint
#

it starts wih "Traceback"

uncut meteor
#

That isn't a full Error traceback from python

gentle flint
#

and it's several lines

uncut meteor
#

please send the full error/traceback

gentle flint
#

an example of a traceback is

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'yo_mom' is not defined
sick cloud
#

bing

proud briar
#

i need to go bye

sick cloud
#

i'm on edge rn

gentle flint
#

edgy

sick cloud
#

@proud briar bye

#

also, i'm realizing, dat all of us are voice-verified

gentle flint
#
testlist = ['EHAM', 'EBBR', 'GPC9876', [[1, 'LEKKO', 51.924175, 4.767330556, 8000, False, 'lorem ipsum dolor'], [2, 'ANDIK', 52.739402778, 5.270488889, None, False, None]]]
sick cloud
#

list in a list

gentle flint
#
root = ET.Element("kml", xmlns="http://www.opengis.net/kml/2.2")

def add_waypoint(waypoint, lat, lon, alt, notes, root):
    placemark = ET.Element("Placemark")
    name = ET.SubElement(placemark, "name")
    name.text = waypoint
    description = ET.SubElement(placemark, "description")
    description.text = notes
    point = ET.SubElement(placemark, "Point")
    coordinates = ET.SubElement(point, "coordinates")
    if i[4] == None:
        coordinates.text = f"{lon},{lat}"
    else:
        coordinates.text = f"{lon},{lat},{alt}"
    root.append(placemark)
    return root

for i in testlist[3]:
    waypoint = i[1]
    lat = i[2]
    lon = i[3]
    alt = i[4]
    notes = i[6]
    root = add_waypoint(waypoint, lat, lon, alt, notes, root)


tree = ET.ElementTree(root)
tree.write("test.kml", encoding='utf-8', xml_declaration=True)
sick cloud
#

!e

testlist = ['EHAM', 'EBBR', 'GPC9876', [[1, 'LEKKO', 51.924175, 4.767330556, 8000, False, 'lorem ipsum dolor'], [2, 'ANDIK', 52.739402778, 5.270488889, None, False, None]]]

print(testlist)
gentle flint
#
<?xml version='1.0' encoding='utf-8'?>
<kml xmlns="http://www.opengis.net/kml/2.2"><Placemark><name>LEKKO</name><description>lorem ipsum dolor</description><Point><coordinates>4.767330556,51.924175,8000</coordinates></Point></Placemark><Placemark><name>ANDIK</name><description /><Point><coordinates>5.270488889,52.739402778</coordinates></Point></Placemark></kml>
sick cloud
#

why is there no comments ?

gentle flint
#

because it's a test program

#

not for distribution

sick cloud
#

there is a json library though

#

json.dumps("stuff")

gentle flint
#

ik

#

this is xml

#

not json

uncut meteor
#

{"stuff":"stuff"}

sick cloud
#

is it dumps or dump ?

uncut meteor
#

{}

gentle flint
sick cloud
#

i sometimes get those confused

#

!e

import os

print(os.getcwd())
wise cargoBOT
#

@sick cloud :white_check_mark: Your eval job has completed with return code 0.

/snekbox
gentle flint
#

lol

sick cloud
#

ye, u can loop though folders and stuff

#

sometimes i get confused with dump and dumps

#

one letter s makes the difference

gentle flint
#

!e

import os
x = os.walk(".")
print(x)
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

<generator object _walk at 0x7f45a4d229e0>
gentle flint
#

well wow

uncut meteor
#

!e

import os
x = list(os.walk("."))
print(x)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

[('.', ['config', 'snekbox', 'tests'], ['Pipfile.lock', 'Pipfile', 'LICENSE']), ('./config', ['__pycache__'], ['gunicorn.conf.py', 'snekbox.cfg']), ('./config/__pycache__', [], ['gunicorn.conf.cpython-39.pyc']), ('./snekbox', ['api', '__pycache__'], ['nsjail.py', '__init__.py']), ('./snekbox/api', ['resources', '__pycache__'], ['snekapi.py', 'app.py', '__init__.py']), ('./snekbox/api/resources', ['__pycache__'], ['eval.py', '__init__.py']), ('./snekbox/api/resources/__pycache__', [], ['__init__.cpython-39.pyc', 'eval.cpython-39.pyc']), ('./snekbox/api/__pycache__', [], ['app.cpython-39.pyc', 'snekapi.cpython-39.pyc', '__init__.cpython-39.pyc']), ('./snekbox/__pycache__', [], ['nsjail.cpython-39.pyc', '__init__.cpython-39.pyc']), ('./tests', ['api'], ['test_nsjail.py', '__init__.py']), ('./tests/api', [], ['test_eval.py', '__init__.py'])]
sick cloud
#

hacky stufff

fiery juniper
#

!e

print("I hope you have a great day!")
wise cargoBOT
#

@fiery juniper :white_check_mark: Your eval job has completed with return code 0.

I hope you have a great day!
stuck furnace
#

I think it's sandboxed 😄

sick cloud
gentle flint
#

yeah, it says it on the github

#

iirc

#

@sick cloud no

#

that's python 2

#

python 3 is print("thx, u too")

uncut meteor
#

!e

with open("tests/api/test_eval.py") as f:
  print(" ".join(line for line in f))
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | from tests.api import SnekAPITestCase
002 |  
003 |  
004 |  class TestEvalResource(SnekAPITestCase):
005 |      PATH = "/eval"
006 |  
007 |      def test_post_valid_200(self):
008 |          body = {"input": "foo"}
009 |          result = self.simulate_post(self.PATH, json=body)
010 |  
011 |          self.assertEqual(result.status_code, 200)
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/rizezacidi.txt

sick cloud
vestal badge
#

message n out of 50

gentle flint
whole bear
#

why we need loging

versed island
sick cloud
#

@uncut meteor :(

#

my "friend" gave me dat name

sick cloud
versed island
#

im white

sick cloud
#

play me anyone ?

versed island
#

im

#

there

sick cloud
#

alr

#

not today

#

maybe today

versed island
#

you may resign

sick cloud
#

maybe not

versed island
#

stalemate ?

#

not possible

sick cloud
#

idk

#

i may loose

#

but i'll loose with peace

#

$hit

versed island
#

nice move

sick cloud
#

wdym nice move

#

dat move was a bit un-intentional

versed island
#

hmmm

sick cloud
#

@versed island un-intentional**

#

@versed island well played

#

got my revenge x)

scenic geyser
#

Good morning. Happy Sunday y'all

steady root
#

Hello

scenic geyser
#

Hey doux

steady root
#

Wassup today

scenic geyser
#

Nm chilling. Hbu?

steady root
#

Good. I need to study

scenic geyser
#

What?

steady root
#

I am in holiday since yesterday

#

But i have exams so i need to study XD

scenic geyser
#

I'm always holidaying lol

steady root
#

lol

scenic geyser
#

What subjects?

steady root
#

Maths and economy

scenic geyser
#

Oh nice tell me how it went

steady root
#

👌

#

I gtg cya

scenic geyser
#

Yeah bye

digital jackal
#

Command errored out with exit status 1: 'c:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Marven\AppData\Local\Temp\pip-install-xpzlsdb7\dlib_4fb5c596561f49dfa30fdeea9fddf358\setup.py'"'"'; file='"'"'C:\Users\Marven\AppData\Local\Temp\pip-install-xpzlsdb7\dlib_4fb5c596561f49dfa30fdeea9fddf358\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Marven\AppData\Local\Temp\pip-record-z74lexyq\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\dlib' Check the logs for full command output.

#

ERROR: Command errored out with exit status 1:
command: 'c:\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Marven\AppData\Local\Temp\pip-install-xpzlsdb7\dlib_4fb5c596561f49dfa30fdeea9fddf358\setup.py'"'"'; file='"'"'C:\Users\Marven\AppData\Local\Temp\pip-install-xpzlsdb7\dlib_4fb5c596561f49dfa30fdeea9fddf358\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Marven\AppData\Local\Temp\pip-wheel-2q1ugjam'
cwd: C:\Users\Marven\AppData\Local\Temp\pip-install-xpzlsdb7\dlib_4fb5c596561f49dfa30fdeea9fddf358\

uncut meteor
sick cloud
#

pip install

scenic geyser
#

Heyoh

sick cloud
#

pip install opencv-python

#

dash

true nest
#

hello my friends

#

What's up ?

scenic geyser
#

@true nest Hey

true nest
#

hey

scenic geyser
#

@true nest Selam

true nest
#

Selam 😄

scenic geyser
#

😂

true nest
#

Nasılsın ?

true nest
scenic geyser
true nest
#

It equals What's up

scenic geyser
true nest
#

np

uncut meteor
#
while((______:=input)and(______("Play?[y/n]")=="y")):___=__import__("random");alpha=__import__("string");down,up=alpha.ascii_lowercase,alpha.ascii_uppercase;_____=print;____='\u003D';_s="\u0020";_____(f"\u003C{____*((1+1)*2*2)}{up[13]}{down[4]}{down[22]}-{up[6]}{down[0]}{down[12]}{down[4]}{____*((1+1)*2*2)}\u003E");__=______(f"{up[12]}{down[0]}{down[10]}{down[4]}{_s}{down[0]}{_s}{down[2]}hoice:-\n\t-{_s}Rock(r)\n\t-{_s}Paper{_s}(p)\n\t-{_s}Scissors{_s}(s)\n").lower();_=___.choice(["r","p","s"]);_____(f"{__.upper()}vs{_.upper()}");_____(f"It{_s}was{_s}a{_s}Draw...")if(__)==(_)else(_____(f"You{_s}Lose..."))if(__)=="r"and(_)=="p"or(__)=="p"and(_)=="s"or(__)=="s"and(_)=="r"else(_____(f"You{_s}Win!"))if(__)=="s"and(_)=="p"or(__)=="p"and(_)=="r"or(__)=="r"and(_)=="s"else(_____(f"{__}{_s}is{_s}an{_s}unknown{_s}choice,{_s}you{_s}lose..."))
sick cloud
#
for e, i in zip(list(range(1, 6)), ["login()", "new_people()", "add_friend()", "show_friend()", "exit_()"]):
        if repr(e) == choice:
            return eval(i)
whole bear
#

hello

true nest
#

how to show results in chat ?

#

for this code ?

#

Which function ? I forgot it

whole bear
#

waiting for voice verify

coarse mortar
uncut meteor
#

!e

while((______:=input)and(______("Play?[y/n]")=="y")):___=__import__("random");alpha=__import__("string");down,up=alpha.ascii_lowercase,alpha.ascii_uppercase;_____=print;____='\u003D';_s="\u0020";_____(f"\u003C{____*((1+1)*2*2)}{up[13]}{down[4]}{down[22]}-{up[6]}{down[0]}{down[12]}{down[4]}{____*((1+1)*2*2)}\u003E");__=______(f"{up[12]}{down[0]}{down[10]}{down[4]}{_s}{down[0]}{_s}{down[2]}hoice:-\n\t-{_s}Rock(r)\n\t-{_s}Paper{_s}(p)\n\t-{_s}Scissors{_s}(s)\n").lower();_=___.choice(["r","p","s"]);_____(f"{__.upper()}vs{_.upper()}");_____(f"It{_s}was{_s}a{_s}Draw...")if(__)==(_)else(_____(f"You{_s}Lose..."))if(__)=="r"and(_)=="p"or(__)=="p"and(_)=="s"or(__)=="s"and(_)=="r"else(_____(f"You{_s}Win!"))if(__)=="s"and(_)=="p"or(__)=="p"and(_)=="r"or(__)=="r"and(_)=="s"else(_____(f"{__}{_s}is{_s}an{_s}unknown{_s}choice,{_s}you{_s}lose..."))
uncut meteor
#
    print("Would you like to play Y/N", end=" ")
    input1 = input()
#
input1 = input("Would you like to play Y/N")
#
        if Textran != True:
#
if not Textran:
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | Fizz
004 | 4
005 | Buzz
006 | Fizz
007 | 7
008 | 8
009 | Fizz
010 | Buzz
011 | 11
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/uvaxuzicox.txt

coarse mortar
#

!e ```py
for(i)in range(1,101):print("FizzBuzz"if(i%15==0)else"Fizz"if(i%3==0)else"Buzz"if(i%5==0)else i)

wise cargoBOT
#

@coarse mortar :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | Fizz
004 | 4
005 | Buzz
006 | Fizz
007 | 7
008 | 8
009 | Fizz
010 | Buzz
011 | 11
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/mavekaviza.txt

coarse mortar
#
for(i)in range(1,101):print("FizzBuzz"if(i%15==0)else"Fizz"if(i%3==0)else"Buzz"if(i%5==0)else i)
uncut meteor
#

0, 1

#

0, 1, 1

#

0, 1, 1, 2

#

0, 1, 1, 2, 3

drifting cliff
#

hi

coarse mortar
#

hi

verbal ibex
#

Hi, I still cannot reach 50 messages(

versed island
#

any one wanna join a game for chess

wise glade
#

hey guys anyone use powershell to run their scripts?
the code doesn't stop executing if I press Ctrl + Z/D/C, any of these. Why?

versed island
#

bcz its reserved for Copy on windows

#

Ctrl + C

wise glade
#

then, what would i do?

#

a simple stuff like ```py
while True:
print("Hello")
sleep(1)

#

closing terminal, using mouse again and again 😭

versed island
#

CTRL + break

#

try this

wise glade
coarse mortar
versed island
#

its a button on keyboard

coarse mortar
#

i found an applications in for gui

wise glade
#

oh, yeah, srry break, I'm on laptop, no break key in this one

versed island
#

ohh

wise glade
#

what do you prefer for a secondary monitor? IPS panel or VA panel, considering price too ( IPS > VA)?
just to code, no games
VA = vertical alignment (better viewing angles than TN, not than IPS, but higher refresh rates)
ips = in plane swtiching (better viewing angles, lower refresh rates)

versed island
#

whats VA

#

i think ips is decent

#

enough

#

may be you get two IPS

#

than 1 VA

wise glade
#

😂 parents not gonna allow that much for now

versed island
#

hmm

#

i just have an OLD lg monitor rn

#

if you need to do frontend work

#

then choose better monitors

#

that show near real world colors

wise cargoBOT
whole bear
#

grading someones project?

#

why>

#

?

vestal badge
#

message n out of 50

whole bear
#

@whole bear Do you need help

#

no help?

#

No, just talk

#

If u can

#

talk first then I talk

#

ok no talk

#

😂

#

What

#

doing gooooood

#

i'm young toooo

#

i need money

#

16

#

bruuuuh

#

bruh

#

ok

scenic geyser
#

Hello anybody here?

whole bear
coarse mortar
scenic geyser
#

@whole bear Wanna play Lichess?

versed island
#

yep

whole bear
#

i am the worst for chess

versed island
#

1 round only

scenic geyser
#

Please share link then

#

Done

versed island
#

just one round

#

the final

scenic geyser
#

Ok

versed island
#

prime is white

#

may be its time to call it off

#

lol

versed island
scenic geyser
versed island
#

times more imp than chess i guess

scenic geyser
#

Yeah a few mins more might have been

versed island
#

i just play for fun

scenic geyser
#

Same I never play though

versed island
#

hmm

scenic geyser
#

Should play more lol

versed island
#

so what are you doin rn

scenic geyser
#

Songs

versed island
#

okhaay

scenic geyser
#

☺️

versed island
#

see y'll later

scenic geyser
#

Yes

#

Anyone else on?

icy axle
#

@somber heath are you OpalMist or a fake OpalMist?

somber heath
#

@icy axle One of us always lies. The other one only tells the truth.

icy axle
#

That's you

faint ermine
#

but is it

#

may be lying

high ingot
#

Are you a good Opal? Or a bad Opal?

somber heath
#

@high ingot That has limited bearing on authenticity.

faint ermine
#
my_list = ["a", "b", "c", "d", "e"]
from my_list get i for range(0, 6, 2):
    print(i)

a
c
e

#

Disclaimer: this is not working python

faint ermine
#
def get_subclasses(cls):
    for subclass in cls.__subclasses__():
        yield from get_subclasses(subclass)
        yield subclass
shut cradle
#

darn

faint ermine
#

!e ```py
def traverse(iterable, key, value=None):
if isinstance(iterable, list):
for local_value in iterable:
yield from traverse(local_value, key, value=value)
elif isinstance(iterable, dict):
for local_key, local_value in iterable.items():
if local_key == key and not value:
yield local_value
elif value and local_value == value:
yield iterable
yield from traverse(local_value, key, value=value)

a = {"children": [{"children": ["a", "b"], "type":"b", "thing_b":"thing b value"},{"children": ["a", "c"], "type":"c"}]}
print(list(traverse(a, "children", value="c")))
print(list(traverse(a, "thing_b")))

wise cargoBOT
#

@faint ermine :white_check_mark: Your eval job has completed with return code 0.

001 | [{'children': ['a', 'c'], 'type': 'c'}]
002 | ['thing b value']
somber heath
#

@glad igloo o/

glad igloo
#

say kurwa

#

yes

#

co wy tam pierdolicie

#

za głupoty

smoky burrow
#

!warn 629199673386598410 First of all, speak English here. Second, don't try to get people to say slurs.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @glad igloo.

proud tangle
#

o/

#

my sleep schedule looks something like this

#

My body randomly decided to stay up 8 extra hours past when I normally get to sleep

gentle flint
#

^ this is more like me

proud tangle
#

also I just beat flexbox into submission

#

direction: rtl for the win

#

so, flexbox gives you a lot of controls

#

Basically, you get to align the main axis, teh secondary axies, and the content itself

#

and it lets you reverse the item order

#

but, it doesn't let you alter the left-right order pinning in a columned layout afaict

#

but if you RTL it then it defaults ot the opposite order and you can force things to flow from right ot left, as if pinned to the right

#

So

#

if you have a list-like column layout with column-wrap

#

if you apply RTL it will go top-down right-left instead of top-down left-right

#

if you dont use RTL you're stuck with top-down left-right pinned to the right

#

yeah

#

you're lucky

#

far from the most cursed thing I've done

#

Oh,. oh

#

another thing I just did

#

so \

#

font-weight: bold

#

increases text size

#

so, if you want the bold effect but not hte text to move

#

abuse letter-spacing

gentle flint
#

may I introduce you to some more cursed stuff
manually formatted XML

proud tangle
#

shrink down letter spacing as you apply font-weight: bold and it will shrink instead of grow

#

and in column layout you get hte bold events

#

let me scroll through my AOC

#

I did something suppper cursed int ehre

#

oooof

faint ermine
gentle flint
proud tangle
#

why

#

oof

gentle flint
#

because I was learning Python at the time

proud tangle
#

scream_cat regex and html

gentle flint
#

and this was my firstp project

#

globals intensify

proud tangle
#

OH DID YOU KNOW

#

GOS HTML PARSER

#

ISNT STABLE

#

a roundtrip

gentle flint
#

what?

proud tangle
#

will change the data

#

its a recent security vuln

#

because apparnelty it serialzies some garbage differently

#

<:stuff> becomes <stuff>

gentle flint
proud tangle
#
print("r2")
t = [''.join(i[::-1]) for i in zip(*tile)]
t = [''.join(i[::-1]) for i in zip(*t)]
for a, b in zip(t, [*tile_obj.rots()][1].pp()):
    print(a, b)
#

AOC day 20 stuffs

#

it was much worse

#

I had five of those [] lines

whole bear
#

Can I ask a simple question real quick?

gentle flint
#

code readability intensifies

whole bear
#

Thanks a lot @faint ermine ❤️

proud tangle
#
def patch_embed():
    discord.Embed.__init__ = new__init__
#

lmao

#

yeah

#

There's a reason I wrote a wrapper

#
        current_shortest = self.timers[0] if self.timers else None
        heapq.heappush(self.timers, timer)

        if not self.timer_task:
            self.logger.log(SPAM, "Starting timer task now that there are entries again")
            self.timer_task = asyncio.create_task(self.manage_timers())
        if (
            (timer.time - datetime.datetime.now()).total_seconds() < MAXIMUM_TIMER_TICK
            and current_shortest
            and current_shortest.time > timer.time
        ):
            self.logger.log(SPAM, "Timer registered with a shorter due time than next checkin, notifying timer task")
            self.timer_task.cancel()
            self.timer_task = asyncio.create_task(self.manage_timers())

faint ermine
#
def multiple_after_invoke(bot: commands.Bot):
    bot._after_invokes = []
    
    async def invoke_caller(ctx):
        for hook in bot._after_invokes:
            await hook(ctx)

    bot._after_invoke = invoke_caller

    def after_invoke(coro):
        bot._after_invokes.append(coro)
    
    bot.after_invoke = after_invoke
proud tangle
#

lol

#

Oh yeah

#

my ready() patch

#

has a 12 line long comment paragraph

#
        # We create a function here to ensure that things happen asynchronously in the right order.
        # on_ready needs to _complete_ its async firing before we start with the delayed events.
#
        # Discord.py only does this by waiting for streamed guild_available events with a timeout.
        #  This is bad, because it means its impossible to determine when we've gotten every guild
        #   and are thus ready to continue. If we were a complete discord library, we could trap
        #   known-always-good guild accesses and wait whenever we hit them, but we do not have
        #   access to those code paths with ease at our current stage.
#

So I write

#

a dynamically generated temporary "ready" async function

#

no

#

heavily indev

#

Basically

#

if an event is one of a whitelisted set

#

it's queued and waits for on_Ready to finish firing

#

before it is then fired

gentle flint
proud tangle
#
           async def ready_up():
                self.ready = True
                await asyncio.gather(*self.handle_event(event, *args, **kwargs))
                check = len(self.delayed_events)
                handled_events = 0
                for _event, _args, _kwargs in self.delayed_events:
                    handled_events += 0
                    print("Calling delayed event %s", _event)
                    await asyncio.gather(*self.handle_event(_event, *_args, **_kwargs))
                if check != len(self.delayed_events) or check != handled_events or len(self.delayed_events) != handled_events:
                    raise DexpError("Delayed event list changed during execution and events were potentially missed. PING ME.")
                self.delayed_events.clear()
                return
#

ooo

#

I'm so salty

#

about the uncertain on_readyness

#

no, but not sure they can really fix it

#

discord doesn't give you a "youre done getting ready" stuff so

#

lol

#

perhaps I have

#

yep, been there

#

IKR

#

oh god did yous ee the error I got the other day

#
Traceback (most recent call last):
  File "bot.py", line 258, in manage_timers
    asyncio.create_task(asyncio.shield(func))
  File "~/.pyenv/versions/3.7.7/lib/python3.7/asyncio/tasks.py", line 351, in create_task
    return loop.create_task(coro)
  File "~/.pyenv/versions/3.7.7/lib/python3.7/asyncio/base_events.py", line 404, in create_task
    task = tasks.Task(coro, loop=self)
TypeError: a coroutine was expected, got <Future pending cb=[shield.<locals>._outer_done_callback() at ~/.pyenv/versions/3.7.7/lib/python3.7/asyncio/tasks.py:820]>
#

Yeah

#

It's a nasty one

#

that's suuuuuper obvioius in taht totally not obviuous way

#

.shield() CALLS create_task already

#

oh

#

it was worse

#

you see, this only shows when the exception was gc'd during interpreter shutdown

#

and my logging logs to file

#

but in 3.7, theres a bug

#

where the destructor and destruction fo builtins fires before the final gc of asyncio coroutines

#

so it was throwing an "open does not exist" deep in teh logging code as the primary exception

#

ah fk

#

NameError: name 'open' is not defined
Ok, seems a little strange. Isn't that a builtin?
File "/Users/bast/.pyenv/versions/3.7.7/lib/python3.7/logging/init.py", line 1116, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
Uh. Hold on. In the logging code? Of the standard library?

#

staff lounge

#

I didnt realize what channel it was in >.>

#

Other crap I've dealt with recently:

#

I had a deploy run out of memory

#

so my deploy script abruptly ended with "abort"

#

that was fun to debug

#

also I had one with a thread and django not functioning

#

did you know that django starts before uwsgi forks, and thus the queues all break, and you need to use multiprocessing queues for it to work?

#

lol

#

Sure, its used for out-of-thread logging firing

#

basically the app can want to push notifications to other services

#

does so via a REST api, and I didnt want to delay responses waiting on that

#

so I shuffled it off into a thread. There's no real reason to drop it through a hole broker thing

#

yeah

#

wrote this too, pretty fun :P

#
def on_error_resume_next(loud: bool = False) -> typing.Callable:
    """
    I fully acknowledge this is a terrible idea.
    """
    def outer_wrapper(func: typing.Callable) -> typing.Callable:
        @wraps(func)
        def wrapper(*args, **kwargs):
            try:
                return func(*args, **kwargs)
            except Exception:  # Ensure we permit KeyboardInterrupt and SystemExit through
                if loud:
                    traceback.print_exc()
                return

        return wrapper

    return outer_wrapper
#

I could improve this into a context manager, but I think someone else kinda worked out how the hell to do that

#

It's a decorator that causes a function to return None instead of throwing

#

lol

#
C = typing.TypeVar("C")
def constant_singleton(*args, **kwargs) -> typing.Callable[[typing.Type[C]], C]:
    """
    Converts a class into a singular instance of itself, making sure the name is converted
    to allcaps and underscores as is suitable for a global constant.
    """
    # Type hints are explicitly not set to avoid confusing type checkers even further
    def wrap(cls: typing.Type[C]) -> C:
        instance = cls(*args, **kwargs)
        # set the uppercased version of the class name, with CaseChanges replaced with _'s
        # in the outer namespace
        inspect.currentframe().f_back.f_locals[classname_to_constant(cls.__name__)] = instance
        return instance

    return wrap
#

How to make your IDE and coworkers hate you

#

usage:

#

    @constant_singleton()
    class THISThreadManagerTYPE1999:
        pass

    print(THIS_THREAD_MANAGER_TYPE_1999)

#

Sure, but then the classname doesn't look right

#

:P

#

lmao

#

Oh no

#

this

#

is amazing

#
# This regex uses negative matching and .split() to utilize both non-matching chunks
#  and matching chunks to determine where a classname linguistically separates
CLASSNAME_CONSTANT_REGEX = regex.compile(r"([A-Z][a-z]+)|([0-9]+)")


def classname_to_constant(classname: str) -> str:
    """
    Convert a PascalCase classname to a SCREAMING_SNAKE_CASE constant name suitable
     for a singleton.
    This function does not support classnames with _'s inside them. Passing one will
    result in broken output.
    """
    return "_".join(i.upper() for i in regex.split(CLASSNAME_CONSTANT_REGEX, classname) if i)

#

Well, you see

#

lol

#

lmao

#

Here's a neat one

gentle flint
#

Convert a PascalCase classname to a SCREAMING_SNAKE_CASE constant name suitable for a singleton.
Simpleton might be a better word in this case.

proud tangle
#
def argable_to_awaitable(func: Callable):
    """
    Converts a callable of any type (coroutine function, function, callable class)
    into an asyncio awaitable.
    Makes sure to pierce the veil of functools.partial().
    Does not "precall" the function.
    """
    if hasattr(func, "func"):
        # Inspect through a functools.partial() object
        check_func = func.func
    else:
        check_func = func

    if inspect.iscoroutinefunction(check_func):
        print("Coroutine function", func)
        return func
    elif inspect.iscoroutine(check_func):
        print("Coroutine", func)
        raise DexpError("argable was passed an already argument-passed coroutine")
    else:
        print("Wrapping into async", func)

        # Wrap the function here to use a shield to avoid cancellation signals.
        @functools.wraps(func)
        async def run(*args, **kwargs):
            func(*args, **kwargs)

        return run
proud tangle
#

Essentially

#

You need to specially handle the case of a partial()'d coroutine

#

as inspect doesn't find it right until 3.8 I think

gentle flint
#
from functools import partial

def multiply(x,y):
        return x * y

# create a new function that multiplies by 2
dbl = partial(multiply,2)
print(dbl(4))

this returns 8 @faint ermine

proud tangle
#

!e ```py
from functools import partial

fs = []
for i in range(5):
fs.append(lambda: print(i))

for fn in fs:
fn()

fs = []
for i in range(5):
fs.append(partial(lambda i: print(i), i))

for i in fs:
i()

wise cargoBOT
#

@proud tangle :white_check_mark: Your eval job has completed with return code 0.

001 | 4
002 | 4
003 | 4
004 | 4
005 | 4
006 | 0
007 | 1
008 | 2
009 | 3
010 | 4
proud tangle
#

lambda: and def do not capture

#

partial() freezes the arguments

#

or some arguments

#

Anyway, the code I posted

#

turns essentially any kind of function

#

into something you can await

#

I don't think so

#

!e ```py
from functools import partial

def a(i):
i / 0

b = partial(a, 1)
b()

wise cargoBOT
#

@proud tangle :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 7, in <module>
003 |   File "<string>", line 4, in a
004 | ZeroDivisionError: division by zero
gentle flint
#

!e

from functools import partial

def multiply(x,y):
        return x * y

# create a new function that multiplies by 2
dbl = partial(multiply,2)
print(dbl())
wise cargoBOT
#

@gentle flint :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 8, in <module>
003 | TypeError: multiply() missing 1 required positional argument: 'y'
gentle flint
#

hmmm

proud tangle
#

You only froze one arg

#

didn't pass the 2nd

gentle flint
#

Ik

proud tangle
#

I'm gonna grab water

gentle flint
#

I know what causes the error

proud tangle
#

ah, kk

gentle flint
#

I'm just curious why the traceback makes no mention of the partial, but does specify line 8

proud tangle
#

shift-tab in a good ide

#

This is cool too

#
VERSION_ITEM_REGEX = r"([0-9]+)([a-zA-Z]+)?([0-9]+)?"
def version_sort_key(version: str):
    """
    Turn a version string of 1b.2c.3a into something sortable, like ((1, "b"), (2, "c"), (3, "a"))
    """
    version_fragments = version.split(".")
    out = []
    for fragment in version_fragments:
        small_fragments = re.fullmatch(VERSION_ITEM_REGEX, fragment).groups()
        out.append(tuple((int(i) if i.isdigit() else i) for i in small_fragments if i))
    return tuple(out)
#

A slightly altered version does really good file sorting

sweet wraith
#

@proud tangle THanks! 🙂

proud tangle
#

welcome back

gentle flint
proud tangle
#

me, a little

#

What's the name?

#

oh god

#
if namespace is None:
    namespace = inspect.currentframe().f_back.f_globals
#

how to operate in parent scope.jpg

gentle flint
#

@zenith chasm if you've something to discuss about the call, this is the place

whole bear
#

what coding applications do you recommend for a novice encoder

zenith chasm
#

@gentle flint ok cheers

proud tangle
#

I'm trying to find a good example for my !oracle function

gentle flint
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

gentle flint
#

@whole bear

#

take a look at the "Tools" section

somber heath
#

@whole bear Whatever best works for you. The software you write code on is less important than understanding why you're writing what you're writing and what your goal is and how you're thinking about problems.

whole bear
#

ok thanks help!peukutpystyy

proud tangle
#

!bl oracle bot.class.init.name
<dexp.bot.Bot object at 0x10393ccd0>.<class 'dexp.bot.Bot'>.<function Bot.init at 0x105a62710>.'init'

#

lol

#

anyway\

#

cya

eternal bough
#

happy holidays everyone, here's a fun song I composed on google blob opera, try it for 'yerself: https://g.co/arts/oDbysvLadiaNB3HH7
Background on how it is made: https://www.youtube.com/watch?v=ZfLYuXi6sDI&ab_channel=GoogleArts%26Culture

Google Arts & Culture

Create your own opera inspired song with Blob Opera - no music skills
required ! A machine learning experiment by David Li in collaboration with
Google Art...

Blob Opera is machine learning experiment by David Li in collaboration with Google Arts and Culture*

This experiment pays tribute to and explores the original musical instrument: the voice. Play four opera voices in real time. No singing skills required! http://g.co/blob-opera

We developed a machine learning model trained on the voices of four...

▶ Play video
uncut meteor
#

That was so loud

#

😂

#

very cool

somber heath
#

@fiery hearth Well this isn't a good sign. 😋

fiery hearth
#

yeah

#

why i that happening

somber heath
#

Voice server go "whargbl".

fiery hearth
#

Install Kali Linux on Windows 10 in under 5 minutes (full tutorial) using WSL 2. (Windows Subsystem for Linux 2)

➡️Support NetworkChuck: https://bit.ly/join_networkchuck
☕or buy me a coffee: https://ko-fi.com/networkchuck

Checkout @David Bombal 's WSL2 playlist: https://bit.ly/2NOFcem

(affiliate links below)

🔥🔥BOSON SUMMER SALE 25% OFF EVE...

▶ Play video
#

is this steps different from a virtual machine?

somber heath
#

@fiery hearth Yes

fiery hearth
#

which way should i go this video one or using the virtual box

somber heath
#

Having not had experience with WSL, I wouldn't be able to give you a measured assessment, but I'd say that VirtualBox would give you a purer experience.

#

Less opportunity for things to go wrong.

fiery hearth
#

okay will go for Virtual Box

whole bear
#

waiting for voice verification

#

50 messages to verify

whole bear
#

hi

versed island
#

virtual box sucks

sick cloud
versed island
#

@sick cloud just the way it works ... i would prefer a dual boot or a separate system

versed island
#

watch live

#

i as white

sick cloud
#

i'm helping someone rn

versed island
#

k no prob

gentle flint
#

@versed island congrats on winning

versed island
sick cloud
versed island
#

k

#

lol whats happening

sick cloud
#

my brain is active rn

#

it was

#

it still is

#

i guess

#

@versed island well played

versed island
#

no

#

bad

#

real bad

sick cloud
#

my brain was active for the first and the last time i guess

versed island
#

haha

sick cloud
#

like i made try hard moves

versed island
#

(╯°□°)╯︵ ┻━┻

sick cloud
#

with some minor mistakes

versed island
#

hmm

sick cloud
#

like with the queeen

versed island
#

you got me in the beginning

sick cloud
#

but it was all in plan

versed island
#

hmm

#

se ya later

sick cloud
#

byeeee

#

👋

whole bear
#

hello

sick cloud
whole bear
#

wsup? all good?

sick cloud
#

and hbu ?

whole bear
#

yea all cool here

#

do u know anythin bout game development?

sick cloud
whole bear
#

lol ok

sick cloud
#

but why ?

whole bear
#

just sayin

#

im passionate bout game development

sick cloud
whole bear
#

thats cool

sick cloud
#

thx

whole bear
#

@cinder fiber Here is your birthday_buddy code in ada ! (i am learning ada just started)

procedure Main is
   S : constant string := Get_Line;
begin
   Put("Is today your birthday ?! ");
   if S = "Yes" then
         Put("Happy Birthday!");
   elsif S = "No" then
            Put("Liar");
   else
            Put("there are no excuses (╯°□°)╯︵ ┻━┻");
   end if;
end Main;

Thought of showing this to you :D

#

( I messed up the input call but idk how to fix it so this works :P)

cinder fiber
#

wow, i don't even know what ada is ): , but i'm happy you chose a thing i wrote as a project (: this made my day

#

i love how python community is so wholesome

#

and not toxic, like our father's, C /:

whole bear
#

@cinder fiber sorry pinging again but i finally got everything working !!!

with Ada.Text_IO;
use Ada.Text_IO;

with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Text_IO; use Ada.Strings.Unbounded.Text_IO;

procedure Main is
   S : Unbounded_String := Null_Unbounded_String;
begin
   Put("Is today your birthday ?! ");
   Get_Line(S);
   if S = "Yes" then
         Put("Happy Birthday!");
   elsif S = "No" then
         Put("Liar");
   else
         Put(" there are no excuses :|");
   end if;

end Main;

#

same thing but the input is proper now

whole bear
#

nope

#

ada

sick cloud
whole bear
#

Hi can someone can help me to make a GUI for a multiple choice quiz?

scenic geyser
#

How do you plan on going about it?

#

Hey anyone here on vc?

#

I'll be back later Ig

pine iron
#

@wide terrace go away

wide terrace
#

ok

#

why tho?

pine iron
pine iron
wide terrace
#

lol ok

pine iron
wide terrace
#

I was just checking if I could have permission to speak but whatever lol

pine iron
#

be gone creep

fiery hearth
#

@pine iron wanna play chess

pine iron
#

@scenic geyser dude can u stop moaning

scenic geyser
#

But why 😂

fiery hearth
scenic geyser
#

I was saying hello 😂

pine iron
#

moaning weirdo

scenic geyser
#

Haha I like doing it

pine iron
#

my gf does too doesnt mean u should do it

fiery hearth
#

@pine iron click on th link

pine iron
scenic geyser
#

Omg 🥺

#

Rupesh is a registered player

pine iron
#

y r u typing like a mentally abused 16 year old girl

fiery hearth
pine iron
scenic geyser
#

I'm 12 🥺

pine iron
#

thats a free tos ban

fiery hearth
#

@scenic geyser you can play with me

scenic geyser
#

Ok Rupesh let's play chess

#

Brb

#

@fiery hearth Can you make an anon game?

fiery hearth
#

okay

pine iron
#

SUS

#

SUS

#

SUS

scenic geyser
#

Weird symbols in his name

fiery hearth
scenic geyser
#

Not a rated one

#

I don't have a log in

pine iron
#

hes a sped

fiery hearth
pine iron
#

bruh r u fucking dumb

#

he said not a rated one

fiery hearth
pine iron
fiery hearth
pine iron
somber heath
# pine iron idc if i get banned im telling the truth so if they wanna ban me for that then t...

What is Python Discord?

We're a large Discord community focused around the Python programming language. We believe anyone can learn to code, and are very dedicated to helping novice developers take their first steps into the world of programming. We also attract a lot of expert developers who are seeking friendships, collaborators, and who wish...

▶ Play video
#

@pine iron Food for thought. Take it or leave it as you please. 🙂

scenic geyser
#

I lost 😞

#

How long is the ban?

kindred thistle
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sick cloud
#

@somber heath helo

rugged root
#
Fog of war machine
Window of opportunity
Abduct tape
Ticket to paradise
Soft rock
Bouquet of whoopsy-daisies
Five-second rulebook
Bottle of depressants
Bit of inspiration
Tears of a clown
Pecking order form
Guild graduation group photo
Resurrection party invitation
Tube of copy and paste
False alarm clock
World record player
Quart of milk
Golden LEGO brick
Finished connect-the-dots book
Cliff's hanger
Sick note
Carnivorous thimble
Branch of a family tree
Adam's apple
First-in-line ticket
Box of short fuses
Hidden folder
Yesterday's horoscope
Heart string
Collide-o-scope
#

refill the guild mini-bar (The rest of the guild doesn't seem to pleased with my selection of microscopic-micro-brews...)

sick cloud
#

@rugged root helo

#

@uncut meteor hellooo

uncut meteor
#

hey

sick cloud
#

how r u ?

uncut meteor
#

tired

whole bear
#

hello

rugged root
uncut meteor
#

did you know brb actually means "bad recursion brb"

rugged root
proper jacinth
#

@uncut meteor I've a question guys for all in voice

#

How can I create a list inside a class

rugged root
#

As a class attribute or what do you mean

uncut meteor
#
class MyClass:
  def __init__(self):
    self.my_list = []
proper jacinth
#

as instance

#

yes thank you

#

@uncut meteor Actually what i wanna do is like having a list inside the class than expanding this list with another class

#

Is it legal

#

yes

#

append

#

oh ok got it thank you very much

#

perfect

uncut meteor
#

!e

class MyClass:
  def __init__(self):
    self.my_list = []
  
  def add_class_instance(self, instance):
    self.my_list.append(instance)

class MyClassTheSequel:
  pass

a = MyClass()
b = MyClassTheSequel()
a.add_class_instance(b)
print(a.my_list)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

[<__main__.MyClassTheSequal object at 0x7f1721675ee0>]
proper jacinth
#

omg

#

😍

#

thank you

sick cloud
#

yep typo

#

i saw some bugs

proper jacinth
#

I cant speak

uncut meteor
proper jacinth
#

Guys my instructor said that global variables suck

#

Is it true 😄

rugged root
#

!globals

wise cargoBOT
#

When adding functions or classes to a program, it can be tempting to reference inaccessible variables by declaring them as global. Doing this can result in code that is harder to read, debug and test. Instead of using globals, pass variables or objects as parameters and receive return values.

Instead of writing

def update_score():
    global score, roll
    score = score + roll
update_score()

do this instead

def update_score(score, roll):
    return score + roll
score = update_score(score, roll)

For in-depth explanations on why global variables are bad news in a variety of situations, see this Stack Overflow answer.

proper jacinth
#

hmm

#

Also he said that we should not use break and continue

uncut meteor
#

there is good uses for both

#

Global is a big one

proper jacinth
#

hahaha

#

guys one more question why should i write if name == "main"

#

😅

rugged root
proper jacinth
#

I call it numpi too

#

😄

hollow haven
#

k8s

proper jacinth
#

key8s

#

wam?

#

😄

uncut meteor
#

Wham!

proper jacinth
#

😄

rugged root
#

As soon as I heard Wham I just thought of the band

uncut meteor
#

same

somber heath
#

Potoooooooo

proper jacinth
#

haha

stoic ore
#

😄

proper jacinth
#

@jagged trail hello

sick cloud
#

@stoic ore helo

stoic ore
#

Hey there :d

#

😄

uncut meteor
proper jacinth
#

wow

#

iceberg

stoic ore
#

jag how u doing

proper jacinth
#

are you in lockdown

stoic ore
#

how is phase2 going

uncut meteor
#

License to Chill

jagged trail
#

@proper jacinth hello

proper jacinth
#

@uncut meteor In the news they were talking about an iceberg impact in northern uk something like that

sick cloud
stoic ore
#

all fine 😄

proper jacinth
#

@uncut meteor are you from uk

stoic ore
#

why arent u come to voice @sick cloud

proper jacinth
#

cool

#

Is that true

#

😄

sick cloud
stoic ore
#

Ok I see

proper jacinth
#

😄

#

I am still muted

#

😦

#

It says I need 50 non deleted message

#

@somber heath I liked your pp

uncut meteor
#

please say you mean pfp

proper jacinth
#

pfp

#

😄

stoic ore
#

what is PFP ??

rugged root
#

ProFile Picture

proper jacinth
#

profile pic

stoic ore
#

😄

proper jacinth
#

I like bread

stoic ore
#

the head always goes the where it is unfinished.

proper jacinth
#

toast what

#

what is the name

#

@uncut meteor

rugged root
#

Just to let you know, Ged, you'll still need a total of 3 days on the server. Not just the 50 messages

severe pulsar
#

NIIIIICE

proper jacinth
#

😄

severe pulsar
#

google colab lets go

sick cloud
#

@severe pulsar helo

proper jacinth
#

vocab

stoic ore
#

colab privides hardware for the Tensor Flow

severe pulsar
#

JAG BOIIII

proper jacinth
#

boi

stoic ore
#

Boi ?

proper jacinth
#

boi

#

yeah