#python-discussion

1 messages ยท Page 139 of 1

mild sequoia
#

If you want the index and the element wouldnt enumerate work?

brisk gazelle
granite wyvern
brisk gazelle
brisk gazelle
#

@shrewd lance What type of object is the array in question? Is it a list?

velvet hull
#

is _variable and __variable both private variables?If yes then why some places use __

granite wyvern
#

They're both considered private because they begin with underscores. Just a naming convention.

The __variable one is subject to name mangling, intended to support subclassing.
When you use it in a class, it gets prefixed with the class name, so that the same __foo in dirrentent class attributes have distinct names.
This isn't used much.

brisk gazelle
#

The single prefixed underscore is a suggestion to the user-programmer "You probably shouldn't be using this directly. def _foo(): ...

#

As an affix, a single underscore can be used to avoid shadowing of particularly builtins.

granite wyvern
#

Where OpalMist is going is: Python doesn't prevent you accessing these variables. The name is just a hint to other programmers.

brisk gazelle
#

sum_ = ...

charred siren
#

I don't think OpalMist knows where OpalMist is going

velvet hull
#

yea when i use these variables in class arent they private variables?
from what u have said i think this is what u mean
_foo is probably used to show dont use this outside class
__foo has to do something with subclass

chilly whale
#

!e ```py
class Foo:
def init(self):
self._a = 1
self.__b = 2

f = Foo()
print(vars(f))

edgy krakenBOT
brisk gazelle
#

Though it may still be used as you describe.

chilly whale
chilly whale
#

and the reason that's useful is to allow a class that's being subclassed by different authors to easily have per-subclass attributes that won't conflict with the parent class's attributes or with other subclasses' attributes

hearty olive
#

Hello, everyone.

charred siren
#

imo __foo is a pita and doesn't belong in python

granite wyvern
chilly whale
#

it's not commonly useful, it's a workaround for a problem that most people don't have

velvet hull
#

i was learning getters and setters and @property or smt which are ways to access the private variable in case ig,
tho we can get and set variables like print(p.email) or p.email = "hh" we dont do that but use the 2 methods of getting and setting ig

charred siren
#

just let me monkey patch whatever I want without obscuring it further smh

charred siren
granite wyvern
hearty olive
velvet hull
granite wyvern
charred siren
visual juniper
# velvet hull i was learning getters and setters and `@property` or smt which are ways to acce...

getters allow you to get directly relevent info . Lets say you have a clas that has a dict member, and whenever you "get" that variable , all you are looking for is a certain attribute from that dict , like name of person , you can write a getter to do that
setters allow you to do input validation , like make sure any invariants needed for that class are met and not allow any input that doesnt make sense, like not allowing setting a negative number for person's age

chilly whale
#

more relevantly, getters let you synthesize an attribute

hearty olive
velvet hull
visual juniper
chilly whale
#
class Square:
    def __init__(self, side_length):
        self.side_length = side_length

    @property
    def area(self):
        return self.side_length * self._side_length

    @property
    def perimeter(self):
        return 4 * self.side_length
chilly whale
granite wyvern
fiery yarrow
chilly whale
#

it's fine as long as no one tries to put a Rectangle in the same program

hearty olive
charred siren
chilly whale
#

I've often said that I think the biggest problem with teaching OOP is that the examples that are small enough to be easily understood are too trivial to be useful, and thus make bad examples, and but the examples that make it clear why OOP is useful are more complex and aren't able to be understood without first understanding those basics

chilly whale
#

users expect property access to be fast, and doing an unbounded amount of work in a property defies user expectations

granite wyvern
granite wyvern
chilly whale
velvet hull
chilly whale
#

But pure oop uses getters and setters as convention.
I'd say that Java-style OOP uses getters and setters by convention. Python-style OOP does not

hearty olive
chilly whale
#

Python-style OOP doesn't need to, because @property and @x.setter allow a method to masquerade as an attribute

#

Java-style OOP uses getters and setters for everything just in case extra behavior needs to be added later. Python-style OOP doesn't need to use getters and setters for anything, because you can replace an attribute with a @property in the future without breaking your users

velvet hull
#

yea kind of my teacher is teaching java setter and getter in python as a traditonal way and then saying use @property instead .....

chilly whale
#

that's not the typical idiom in Python

#

you would typically use regular attributes until and unless you need specific extra functionality, at which point you would switch that attribute to a property

hearty olive
fiery yarrow
#

sometimes people take practices from an old language to a new one, without considering that the new one is different ๐Ÿ˜”

velvet hull
#

๐Ÿคท

chilly whale
fiery yarrow
#

is that still true?

red plume
#

hi, where can i ask for help on a project, like, in general?

chilly whale
hearty olive
opal gull
#

java doesn't allow you to have more than one public class in a file

red plume
#

thank you

hearty olive
opal gull
#

if your file has more than one public class, it's doing too much

fiery yarrow
#

java kinda swiped the python change system and has JEPS. their influence has made modern java wild. anonymous classes and such things. it's probably somewhat unrecognizable to not just godly but me too

zealous lion
#

what a terrible take

harsh anchor
#

you can't have two public classes in one file in java

opal gull
zealous lion
#

oh

velvet hull
#

btw does name mangling a thing only for classes to make strict private variables or can it be used in other places maybe like a function or module uk

hearty olive
opal gull
#

or at the very least, private classes in one file

chilly whale
craggy willow
velvet hull
#

ohh ok

craggy willow
#

like, it's fine to just prefix private attributes with _

velvet hull
#

โœ…

opal gull
#

if someone depends on your private attribute, it's their problem

zealous lion
#

as unpythonic as it sounds, I wouldnโ€™t mind a better/real way to set private attributes. in cpython at least, itโ€™s a common headache for us to break things downstream because people rely on our internals

craggy willow
#

python's fault for having good internal tools

velvet hull
#

bye yall

zealous lion
#

it sometimes gets so bad that we just give in and turn something prefixed with _ into a public, documented interface

chilly whale
#

users being able to mess with every attribute of a class has occasionally forced me to make something into an extension class for no other reason than to have true privates, so I actually more or less agree with you

zealous lion
#

thereโ€™s a bunch of things in sys off the top of my head

#

e.g. sys._getframe

fiery yarrow
zealous lion
#

thinking out loud, what if there were an unstable tier for python APIs? like sys._getframe could become sys.__unstable__.getframe. that way, we can expose helpful implementation details without actually committing to the maintenance burden. (we already do this in the C API with PyUnstable)

craggy willow
#

i think i've used random private functions in heapq

#

one of the siftdowns

#

or maybe something else, dunno

barren valley
#

Yo how do I fix โ€œ โ€œawait โ€œ allowed only within asynic functions 5 times and continue can be used with in a loop errors?

granite wyvern
barren valley
granite wyvern
#

Unless you're trying to await nonasync things in a nonasync function.

granite wyvern
# barren valley How?

async def instead of just def

But it sounds like you may not be familiar with the async stuff.

silver plover
granite wyvern
#

You will need to show the actual code.

barren valley
#

''' if await can_send_message(user_id, channel_id, db):
msg = await create_message(db, channel_id, user_id, processed["content"])
await manager.broadcast(channel_id, {
"user_id": user_id,
"content": processed["content"],
"timestamp": str(msg.timestamp)
})
else:
await websocket.send_json({"user_id": "system", "content": "You are not allowed to send messages here", "timestamp": ""})
from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession
from app.utils.rate_limit import rate_limit
from app.utils.logging_utils import log_action

Rate limit before broadcasting

try:
rate_limit(user_id, limit=5, per_seconds=10)
except HTTPException as e:
await websocket.send_json({"user_id": "system", "content": str(e.detail), "timestamp": ""})
continue '''

#

This is the part I have errors on

granite wyvern
#

Go to the top of the function. Is it def or async def ?

barren valley
#

''' py @router.websocket("/ws/{channel_id}/{user_id}")
async def websocket_endpoint(websocket: WebSocket, channel_id: str, user_id: str, db: AsyncSession = Depends(get_db)):
await manager.connect(channel_id, websocket)
try:
while True:
data = await websocket.receive_text()
processed = await process_message(user_id, data)
if processed["allowed"]:
msg = await create_message(db, channel_id, user_id, processed["content"])
await manager.broadcast(channel_id, {
"user_id": user_id,
"content": processed["content"],
"timestamp": str(msg.timestamp)
})
else:
await websocket.send_json({"user_id": "system", "content": processed["content"], "timestamp": ""})
except Exception:
manager.disconnect(channel_id, websocket)
from app.config import DATABASE_URL
from app.security.permissions import can_send_message '''

edgy krakenBOT
#

Hey @barren valley!

Please edit your message to use a code block

You are using the wrong character instead of backticks. Use ```, not '''.

Also, make sure there are no spaces between the back ticks and py. Make sure you put your code on a new line following py. There must not be any spaces after py.

Here is an example of how it should look:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
silver plover
barren valley
#

@router.websocket("/ws/{channel_id}/{user_id}")
async def websocket_endpoint(websocket: WebSocket, channel_id: str, user_id: str, db: AsyncSession = Depends(get_db)):
await manager.connect(channel_id, websocket)
try:
while True:
data = await websocket.receive_text( processed = await process_message(user_id, data)
if processed["allowed"]:
msg = await create_message(db, channel_id, user_id, processed["content"] await manager.broadcast(channel_id, "user_id": user_id,
"content": processed["content"],
"timestamp": str(msg.timestamp)
})
else:
await websocket.send_json({"user_id": "system", "content": processed["content"], "timestamp": ""})
except Exception:
manager.disconnect(channel_id, websocket)
from app.config import DATABASE_URL
from app.security.permissions import can_send_message

Before broadcasting message

if await can_send_message(user_id, channel_id, db):
msg = await create_message(db, channel_id, user_id, processed["content"])
await manager.broadcast(channel_id, {
"user_id": user_id,
"content": processed["content"],
"timestamp": str(msg.timestamp)
})
else:
await websocket.send_json({"user_id": "system", "content": "You are not allowed to send messages here", "timestamp": ""})
from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession
from app.utils.rate_limit import rate_limit
from app.utils.logging_utils import log_action

try:
rate_limit(user_id, limit=5, per_seconds=10)
except HTTPException as e:
await websocket.send_json({"user_id": "system", "content": str(e.detail), "timestamp": ""})
continue
log_action(f"Sent message in channel {channel_id}: {processed['content']}", user_id)
from fastapi import HTTPException, status
from app.security.permissions import can_send_message

bronze dragon
edgy krakenBOT
#
Traceback

Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.

A full traceback could look like:

Traceback (most recent call last):
  File "my_file.py", line 5, in <module>
    add_three("6")
  File "my_file.py", line 2, in add_three
    a = num + 3
        ~~~~^~~
TypeError: can only concatenate str (not "int") to str

If the traceback is long, use our pastebin.

barren valley
# silver plover !trace

"await" allowed only within async function Pylance [Ln 47, Col 4]
"await" allowed only within async function Pylance [Ln 48, Col 11]
x "await" allowed only within async function Pylance [Ln 49, Col 5]
x "await" allowed only within async function Pylance [Ln 55, Col 5]
x "await" allowed only within async function Pylance [Ln 64, Col 5]
"continue" can be used only
only within a loop Pylance [Ln 65, Col 5]

silver plover
silver plover
#

!paste

edgy krakenBOT
#
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.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

lament viper
#

Hi I am just wondering, can Django be used with React?

barren valley
lament viper
#

But how does that work? How do you use templates with react?

silver plover
silver plover
peak relic
barren valley
lament viper
barren valley
opal gull
silver plover
warped sigil
#

if you start passing around too many parameters do you group related ones into an object

barren valley
silver plover
barren valley
silver plover
#

Async, discord bots, etc do require understand certain fundamentals (like loops and continue)

barren valley
craggy willow
#

probably more errors as you fix the errors

silver plover
barren valley
silver plover
#

"A purple elephant danced in my taco"

silver plover
#

Might be a valid sentence, even if it makes no sense

barren valley
silver plover
mild sequoia
#

the next thing: rage

silver plover
barren valley
#

So ignore the await errors and the others

edgy shadow
#

Can anybody come in help section

bronze dragon
#

what is an "away error"?

barren valley
#

The file is my web socket For the chat app

#

@silver plover found traceback

#

@warped sigil Wsp

warped sigil
#

there's no reason to type as List instead of list right

#

unless you're on an ancient python version

hasty island
#

Yeah

barren valley
#

Idk what to do rn

warped sigil
#

code a b2b yc backed ai saas

barren valley
#

l , jkhj/o;'

silver plover
cyan palm
#

Hello snek world

barren valley
#

For me

hallow umbra
#

Happy today's New Years Eve Day! I'm so excited for achieving a master's science degree in Computer Engineering!

random bison
#

people be making naked pics of me with ai on insta is there any way to avoid this

#

do i just delete everything

mild sequoia
#

you can report it - that's about it

random bison
mild sequoia
#

whatever platform it is on.

random bison
#

thats not gonna stop them

cyan palm
random bison
#

who is that

swift sandal
# random bison do i just delete everything

As far as ik, if something is on the internet (leaked), you canโ€™t completely delete it. Even if you try it. copies may already exist and it wonโ€™t truly be erased

cyan palm
mild sequoia
arctic folio
random bison
#

im not a child

random bison
#

on god ai ruined social media

arctic folio
swift sandal
#

Uhh is that epstein on ya pfp ๐Ÿ˜ญ

arctic folio
random bison
#

random people sending me my naked pics that i never shared

swift sandal
random bison
#

made by ai

mild sequoia
#

I recommend moving to off topic since this is no longer Python.

arctic folio
#

or just delete tiktok insta snap whatever

random bison
#

bruh

#

๐Ÿ™

arctic folio
#

What happend

random bison
#

u r right

cyan palm
arctic folio
#

I quit social media half a year ago and my life became slightly better.

#

Its not good for you to doomscroll tiktok

random bison
#

is this even a cyber crime

#

making naked pictures with ai

arctic folio
random bison
#

yes

arctic folio
#

at some point yes

#

but they dont care honestly

mild sequoia
#

If you are not a child then it is freedom of the artist's expression. There are multiple cases where this has happened. You can report the user on the platform where the images are being shared if you don't consent to the creation, but it is not a crime in most locations.

arctic folio
oblique copper
#

why is OT more on topic than here lol

mild sequoia
#

This chat derails after 1:00 AM EST in most instances lol

random bison
#

it looks so real like if they send those to any of my family memeber or school friend they would beilive it no matter

arctic folio
#

You accepted a ToS tho

#

when registering

mild sequoia
#

Yes, but this happens to Linkedin members too lol.

arctic folio
#

Ai is not the future

#

at some point we will just forget it like a bad memory

mild sequoia
#

There's a legitimate Chollima deepfake campaign by APT Lazarus.

random bison
#

ai will take over

arctic folio
#

belive me

random bison
#

why would we forget it

#

i would never stop vibe coding

arctic folio
random bison
#

lmao

arctic folio
#

Ai cant get better

mild sequoia
#

it's a cat & mouse game of standards & procedures. everything will catch up eventually

woeful sky
#

ok so with this script that i am tryna to use it just keep saying Traceback (most recent call last):
File "C:/Users/user/AppData/Local/Programs/Python/Python314-32/genscript.py", line 4, in <module>
import requests
ModuleNotFoundError: No module named 'requests'

#

help me please ๐Ÿ˜ญ

bronze dragon
woeful sky
#

no how do i do that im new to python

random bison
#

it seems like you dont have module named requests

woeful sky
#

and i got the script from a yt vid

bronze dragon
#

does the video not provide install instructions or anything?

jade robin
#

...hope it's a trusted source

woeful sky
#

no only the script bru

#

its for a gen

jade robin
#

python -m pip install requests on command line

woeful sky
#

generato

woeful sky
random bison
#

this script is going to reach his braincells and destroy them

woeful sky
#

im slow ๐Ÿ˜ญ

random bison
#

cmd dummy

jade robin
woeful sky
#

dont call me that ๐Ÿ’” ๐Ÿ’”

#

kyes windows

jade robin
#

it'll give you a space to type, paste that command and press enter

hasty island
random bison
#

ok my bad

#

๐Ÿ™

woeful sky
#

it says C:\Users\user>python -m pip install requests
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.

hasty island
#

try py -m pip install requests instead

jade robin
#

^

woeful sky
#

ok

hasty island
#

also you should ideally not keep your project/script files in the same folder where python is installed

woeful sky
#

ok so ill move them

random bison
#

do you have pip installed?

woeful sky
#

almost

#

thanks for yall help fr tho ๐Ÿ™

#

ok i have it downloaded

#

so i try the file again?

#

script*

#

now it says = RESTART: C:/Users/user/AppData/Local/Programs/Python/Python314-32/genscript.py @hasty island

random bison
#

restart

woeful sky
#

my pc?

random bison
#

idk

#

i think the script is working rn

woeful sky
#

k ty

hasty island
woeful sky
bright shoal
woeful sky
#

๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ

hasty island
#

And fair warning most nitro code generators you grab off the internet are most likely malware

woeful sky
bright shoal
#

๐Ÿ—ฟ

woeful sky
#

.... even if its a script

#

i aint download nothing

hasty island
#

What do you think malware is?

woeful sky
#

ik what it is

#

i watch vids on it

bright shoal
#

uh huh

hasty island
# woeful sky i aint download nothing

a. A script doesn't need to download anything to perform malicious stuff
b. Remember the requests library you installed? That can absolutely download stuff

bright shoal
woeful sky
#

ion got nothing that good on here tbh

woeful sky
hasty island
bright shoal
hasty island
#

And even a honest to god nitro code brute forcer is not going to fetch you valid codes in any reasonable amount of time

#

best case scenario you run the script to no avail, worst case scenario you end up with malware on your pc

woeful sky
#

๐Ÿ˜ญ

bright shoal
#

๐Ÿ—ฟ

bright shoal
woeful sky
bright shoal
woeful sky
#

uhm lemme turn it on rq

#

try it

bright shoal
woeful sky
#

?

bright shoal
#

"HOW TO MAKE A DISCORD NITRO GENERATOR WITH CHATGPT (2025)"

#

๐Ÿ˜ญ

woeful sky
#

.....

peak relic
#

๐Ÿ’€

woeful sky
#

๐Ÿ˜ญ

kind thicket
bright shoal
woeful sky
#

uhm so yea

kind thicket
bright shoal
woeful sky
#

๐Ÿ’”

#

no nitro for me

bright shoal
woeful sky
#

do you make scripts for python?

bright shoal
woeful sky
bright shoal
woeful sky
#

yea that what i meant

#

thats*

#

where did you learn?

bright shoal
#

From all over to be honest, I guess most of it came from trying stuff out

woeful sky
#

ohhhhh ok ik how to make like some multi tools in notepad++ from yt and stuff im just trying to learn python now

peak relic
edgy krakenBOT
#
Resources

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

peak relic
#

"Automate the Boring Stuff" is a free ebook that you can read online and follow exercises.

woeful sky
#

ty

peak relic
#

CS50P from Harvard is a free course with video and an online editor to submit your lessons and exercises too

woeful sky
#

bet

velvet moss
#

If I put an ai generated document into an ai to human text tool, can a professor still detect it?

bright shoal
nimble cairn
#

Hello

#

The language is now not generated a minimal file for different language

velvet moss
patent sky
#

i need help ๐Ÿฆฅ

mild sequoia
kind thicket
velvet moss
kind thicket
velvet moss
#

i didnt say u lie i said if u sure

patent sky
hasty island
patent sky
velvet moss
kind thicket
woeful sky
arctic folio
velvet moss
edgy krakenBOT
#
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.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

velvet moss
#

without little cheating

woeful sky
#

ok lets say i made a Dos attack whould i get in trouble by the police if i send it to 20+ ppl?

patent sky
# hasty island !paste your code

mport pygame
import pydirectinput
import time
import sys

EDIT_KEY = 'f'
AXIS_THRESHOLD = 0.85
DEBOUNCE_TIME = 0.12
FPS = 240

pygame.init()
pygame.joystick.init()

if pygame.joystick.get_count() == 0:
sys.exit()

pad = pygame.joystick.Joystick(0)
pad.init()

pydirectinput.PAUSE = 0
pydirectinput.FAILSAFE = False

clock = pygame.time.Clock()

editing = False
last_action = 0

def detect_l3():
start = time.time()
while time.time() - start < 10:
pygame.event.pump()

    for i in range(pad.get_numbuttons()):
        if pad.get_button(i):
            return ("button", i)

    for i in range(pad.get_numaxes()):
        if abs(pad.get_axis(i)) > AXIS_THRESHOLD:
            return ("axis", i)

    time.sleep(0.01)

sys.exit()

l3_type, l3_index = detect_l3()

def l3_pressed():
pygame.event.pump()
if l3_type == "button":
return pad.get_button(l3_index)
return abs(pad.get_axis(l3_index)) > AXIS_THRESHOLD

while True:
pressed = l3_pressed()
now = time.time()

if pressed and not editing and now - last_action > DEBOUNCE_TIME:
    pydirectinput.keyDown(EDIT_KEY)
    pydirectinput.mouseDown(button="left")
    editing = True
    last_action = now

elif not pressed and editing and now - last_action > DEBOUNCE_TIME:
    pydirectinput.mouseUp(button="left")
    pydirectinput.keyUp(EDIT_KEY)
    editing = False
    last_action = now

clock.tick(FPS)
mild sequoia
kind thicket
arctic folio
woeful sky
hasty island
bronze dragon
arctic folio
velvet moss
woeful sky
kind thicket
arctic folio
mild sequoia
#

Your ISP can flag you and terminate your contract if malicious enough.

woeful sky
#

with a batch file

arctic folio
#

thats just sad

peak relic
bright shoal
hasty island
kind thicket
woeful sky
kind thicket
woeful sky
arctic folio
mild sequoia
hasty island
woeful sky
peak relic
woeful sky
#

myb

arctic folio
kind thicket
mild sequoia
#

tbh most batch file dos attempts are just pinging the firewall with max packets in the cli

peak relic
patent sky
woeful sky
#

until your pc crash

arctic folio
#

Its not the same tho if you say
"I made a dos program"
"i followed a tutorial and copied his code to make a dos program"

arctic folio
peak relic
woeful sky
arctic folio
mild sequoia
woeful sky
patent sky
arctic folio
patent sky
#

isn't it ?

slender urchin
#

Time to stop discussing malicious code

peak relic
woeful sky
mild sequoia
arctic folio
mild sequoia
#

he'll probably go to school & be like "we got a huge cybersecurity risk here, i need to discuss with the sysadmin now" > shows some .bat file

patent sky
peak relic
peak relic
patent sky
#

when i use it will not detect any key

kind thicket
edgy krakenBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

patent sky
kind thicket
patent sky
mild sequoia
#

No Wind - You are looking for help on mapping a controller to new keys, is that correct?

kind thicket
inland karma
#

good morning soon to be new years people!

mild sequoia
#

and you are trying to map this using a python tool?

patent sky
kind thicket
mild sequoia
#

Sometimes people ask us generic questions for their own non-python related questions.
What about looking into keybinds? Does changing the keybinds work for you? or are you specifically targeting a python related issue?

inland karma
patent sky
inland karma
kind thicket
patent sky
kind thicket
mild sequoia
#

That is a rule violation. We're not going to discuss remote administrative tools via Python unless you have a very case specific use like enterprise monitoring.

patent sky
#

you will know its not " cheating "

inland karma
kind thicket
inland karma
#

we want to know

patent sky
patent sky
kind thicket
inland karma
patent sky
inland karma
#

oh i see @patent sky you will be banned for running this with fortnite

inland karma
bright shoal
inland karma
woeful sky
#

so hows yall day

patent sky
inland karma
#

tell us what you want to do and maybe we know another way

patent sky
inland karma
patent sky
#

is it that important for you ?

inland karma
patent sky
#

i just joined

kind thicket
inland karma
#

you already agreed to reading them

woeful sky
#

LOL

patent sky
#

they are 1000 words

inland karma
#

now, you have an issue X, you dont know how to solve that. but you think you can solve it by doing Y. you tried to do Y, and im telling you if you do Y you will get banned, and you violate muyltiple of our rules and you break fortnites terms of serviice @patent sky

inland karma
patent sky
#

i readed them but i havenot fined the rule that i breaked

peak relic
#

Technically the #rules is 287 words long but who's counting

edgy krakenBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

inland karma
#

you broke this rule

#

well, tried to

patent sky
inland karma
#

the first part

hasty island
patent sky
peak relic
inland karma
#

that is called a terms of service

patent sky
inland karma
#

but you might not @patent sky it just looks like you are

bronze dragon
mild sequoia
#

the script you posted appears to remap the L3 key & then enable a faster rate of fire?
throwback to putting a spoon inside my controller so I could rip shots on the fn fal

inland karma
inland karma
woeful sky
#

yo eivl

inland karma
#

yo

patent sky
woeful sky
#

hows your day bro

inland karma
inland karma
patent sky
patent sky
inland karma
woeful sky
patent sky
inland karma
#

dont help with breaking rules here

patent sky
#

wtf

patent sky
inland karma
kind thicket
mild sequoia
#

i dont even think that's breaking rules. holmes has a controller with more buttons than fortnite is displaying in the custom controller settings.

#

he's just being dubious af

patent sky
inland karma
#

you are trying to break our rules @patent sky and you are not telling is what you are doing. you will not get any help here since you are not willing to share

inland karma
#

final warning

kind thicket
mild sequoia
#

There's no legitimate reason for the script. The article I posted came from fortnite direct.

inland karma
patent sky
inland karma
#

tell me what your intent is

kind thicket
inland karma
#

yeah i know! im hip ๐Ÿ˜„

patent sky
inland karma
mild sequoia
#

stack overflow wouldve banned him for repeating on the 2nd try lol

patent sky
inland karma
#

saying your learning and its educational, is just bullishit language to buypass rules

inland karma
patent sky
#

wrong detected buttons

#

what is the hard part

inland karma
#

i dont understand what that means, why do you need that, what is it for

kind thicket
#

any good python library for delaunay triangulation?

inland karma
#

i only know how EAC works, i dont know how fortniite works

patent sky
woeful sky
#

oga boga

inland karma
patent sky
#

but the problem is its not detecting l3

inland karma
kind thicket
#

or in the OS

patent sky
inland karma
patent sky
#

there is no setting for it

inland karma
#

it has to work there first

patent sky
inland karma
inland karma
patent sky
#

and what if i want l3 to press f and left mouse button

inland karma
#

what controller are you using, and what os?

patent sky
inland karma
patent sky
inland karma
#

let me get a ps5 contrroller and test it out.. hold on

inland karma
#

your controller mapping needs to be one to one

patent sky
#

i tried it already man

mild sequoia
#

Most games afaik - will only toggle between one of the two channeled inputs. So you can't have a keyboard & controller plugged in. I mean you can, but it will only keep one active at a time.

  • The game input will freeze & then switch back to the other input if you try using both. It only has one 'channel' to read inputs.
inland karma
#

what does the F button do?

#

yeah, it only has one channel, that is true

patent sky
mild sequoia
#

Which is why people use macros to automate their keyboard inputs. Ive never seen a macro toggle xbox buttons to do certain tasks, it has to stay in the macrolaneeee

patent sky
#

even tried detect button
def detect_l3():
start = time.time()
while time.time() - start < 10:
pygame.event.pump()

inland karma
#

does F mean Edit builds ?

patent sky
#

some people yeah

inland karma
#
We are aware of an issue where some players might not be able to use the L3 button to edit buildings in Fortnite. We are investigating and working on resolving this issue. In the mean time, please use a different button in order to edit structures in Fortnite.

#

this is a message from epic

#

on their support page

patent sky
#

brah

#

i use l3 for edit ๐Ÿฆฅ

mild sequoia
#

cant fight epic games fate

inland karma
#

so once epic has fixed this, your mapping will work

patent sky
inland karma
#

now.. you cant change mapping in software with python, EAC wwill trigger

patent sky
#

so what is the problem >?

patent sky
inland karma
#

you can map a one to one with a xinput hardware modification on your controller

patent sky
#

one to two

inland karma
#

do you use xinput drivers?

#

no, not one to two

#

one to one

patent sky
#

iam saying one to two

inland karma
#

EAC will trigger if you have one button mapped to two

patent sky
#

i said 3 times i tried it and it worked

inland karma
#

what driver are you using?

inland karma
patent sky
mild sequoia
#

'this guy got me vac banned!' - 48 hours later

inland karma
#

you are clearly here to waste our time

kind thicket
inland karma
#

now lets stopped it

#

no this sounds like a stopped discussion because you are doing this in ill faith

#

it is innapropriiiate and possible illegal

patent sky
inland karma
mild sequoia
#

eivl's patience far exceeds what wouldve been alloted to you in the morning hours

inland karma
# patent sky yeah yeah whatever

be friendly from now on! we are just trying to help you, but once you admitted you where going to cheat, its now clear that we will not help you.

#

we will just not help you do that, thats all. nothing more!

#

๐Ÿ˜„

celest osprey
#

lol

mild sequoia
#

recently switched to cs50p from helsinki's mooc & i feel like a whole new world of understanding has been unlocked

inland karma
patent sky
#

iam always friendly

#

๐Ÿ’•๐Ÿ’•๐Ÿ’•

inland karma
bronze dragon
inland karma
patent sky
mild sequoia
#

the videos coincide with the exercises a bit more
...like the idea of chaining methods together isn't ever mentioned in helsinki's mooc, but it's mentioned in week 0 right at the start
i.e.

name.strip().replace()
patent sky
inland karma
mild sequoia
#

i feel like there are a lot more exercises in helsinki's mooc, but sometimes it just feel like the solution test cases were a bit more demanding

inland karma
mild sequoia
#

no haha ๐Ÿ˜„

inland karma
#

you should keep that question in the back of yourr miind, and let me know when you figure that out

patent sky
inland karma
#

might take a year or so, so keep iit in the back of your head

inland karma
pallid garden
#

lmao

mild sequoia
#

I did training kata the other day & the solution had a ton of ".replace().replace().replace()"
& for an hour I went bonkers doing multiple lines of .replace just to find it only doing one replacement operation being daisy chained lol

inland karma
patent sky
pallid garden
#

HA

inland karma
#

no im joking

#

could not resist

patent sky
#

40s ?

inland karma
#

im 44 now i think

patent sky
#

damn

mild sequoia
#

'do you wake up & start screaming?'

velvet hull
#

What the

inland karma
mild sequoia
#

this is the way

patent sky
mild sequoia
inland karma
patent sky
mild sequoia
#

apparently a baby python is called a snakelet, hatchling, or neonate

mild sequoia
#

just autistic

inland karma
#

this is the way

#

ahh... abusiing image pers for off topic star wars! ๐Ÿ˜„

velvet hull
#

U were trying to cosplay something on the pfp @inland karma

inland karma
#

dont tell the moderators, ill get in trouble again

mild sequoia
#

the amount of knowledge staff has in this server is unreal

inland karma
#

staff you mean

mild sequoia
#

i stand adjusted

kind thicket
inland karma
#

the knowlege lies with the helperrs here, staff and non staff, the rest of us just have experience

#

you the youth can learn and obtain and therefore share expertise of what you know. us old people can share experience.

#

a Master to embody power, and an Apprentice to crave it.

#

iim feeling a new infraction incoming

#

๐Ÿ˜„

mild sequoia
#

how else will the chat flourish in the night time of alaskan hours

hybrid nebula
#

what happened here

hybrid nebula
inland karma
dim ginkgo
mild sequoia
#

your name is detected as spam lmao

inland karma
rugged viper
woeful sky
#

bro chat gpt just made me a code for python it work good

mild sequoia
#

welcome to vibe coding

flat moon
gaunt badge
#

Yeah, the same thing happens when all these scam bots try to upload images

inland karma
#

discord is inconsistent about how they handle URLS

#

its a huge problem imho, they teach people that the only way to judge a link is to click it

patent sky
#

@inland karma

mild sequoia
grizzled verge
#

can someone help me

#

i used visual studio code for a ticket bot but it worked before but now it doesnt work

mild sequoia
#

I usually throw it into virustotal but Ive seen a ton of false positives through virustotal lol

mild sequoia
inland karma
bright shoal
inland karma
#

the problem is how diiscord shows links

#

[THIS IS NOT FINE FOR A URL](https://www.pythondiscord.com)

#

now i can make it worse by doing

bright shoal
#

<> perchance?

inland karma
#

[https://fakeurl.com](https://www.pythondiscord.com)

bright shoal
#

nevermind.

inland karma
#

<> breaks this syntax

mild sequoia
#

tbh I lead a phishing campaign with the username of "slamcannon69@hotmail.co.uk" and I still had to explain to end user's that their CEO's e-mail address would come from @organization.com

autumn forge
autumn forge
#

I misinterpreted the "I lead a phishing campaign" bit at first

mild sequoia
#

there are some solid campaigns out there that make you go "yeeee that's a tough one"
also love those url redirects that pop you into sharepoint

grizzled verge
#

it doesnt workd

#

its not letting me post

inland karma
#

you have to fill out some fields for you to make a thread

grizzled verge
#

i have name description .txt file for the code and code review checked

inland karma
#

text file?

#

we dont allow you to upload a text file, use our pastebin if the code is long

shrewd pine
mild sequoia
#

reminds me of phishyurl links that went around for awhile

inland karma
#

yeah, i dont like that discord does this.

opal gull
#

this just in, python discord is a scammy site

mild sequoia
shrewd pine
elfin mason
#

hello everyone, is there some free course learnin' or some good supply to study python fer me?

shrewd pine
#

!res

edgy krakenBOT
#
Resources

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

elfin mason
#

what can python do?

shrewd pine
#

most things

elfin mason
visual juniper
elfin mason
#

does anyone 'ere know how to run me codes in visual code studio?

tacit current
#

I am lowkey gonna create an API? i think that tracks nasa spacestation?

nocturne jewel
#

can somebody teach me more about classes?

#

i'm stuck

scarlet shoal
#

i can try

nocturne jewel
#

ohh

scarlet shoal
#

So xclasses are like lists

#

yk what a list is right?

nocturne jewel
#

yes of course

scarlet shoal
#

And in it you can store functions and variables

#

im gonna make an example

nocturne jewel
#

like self.blablabla right?

scarlet shoal
#

yuh

#

but

#

ห‹ห‹ห‹class Player:
pass

#

def init(self)
this is the place where you can store the variables

#

init is written with two lowercase lines on both sides bt

nocturne jewel
#

i still don't understand the logic about the meaning "pass"

scarlet shoal
#

passlike if you call a function and theres only pass in it, it does absolutely nothing

#

So no errors gonna come

#

its liike a placeholder for a future script

#

understood?

#

Im gonna teach you

#

do you have python open rn

nocturne jewel
#

i want to dm u

#

yes

scarlet shoal
#

okokkookoko the dm me

tacit current
#

Hey

tacit current
tacit current
#

what?

#

anything wrong?

charred tusk
#

That youโ€™re still reaction farming with that charged phrase

tacit current
#

ohhhh? autocorrect. I used that word too much that when i type lowkey it changes to that

subtle coyote
#

yall what makes someone a bad programmer?

subtle coyote
pallid garden
#

what makes me a good programmer? if i were a bad programmer, i wouldnt be sitting here discussin it with you now would i?

#

-# (it's a tf2 bit)

subtle coyote
mild sequoia
#

now itll only get better

pallid garden
#

i delete my own code ALL THE TIME

mild sequoia
#

is that how you keep crashing prod? /s

subtle coyote
#

small chunks of it yeah!! but lot of perfectly working code lol

pallid garden
#

for a given PR, 60% of the code i write from the start to the end are deleted

pallid garden
#

the first time round i am just trying to get it to work

#

once it works i would refactor and change stuff, see if i can optimize things

#

and then of course, if a test discovers that there is some stuff that doesnt work

#

i'll have to rework stuff

subtle coyote
#

ik lot of people who do that but sometimes it can't be refactored because of bad coupling

#

and other stuff

pallid garden
#

then you kinda have to just rewrite the entire thing

subtle coyote
#

yrp

mild sequoia
#

if codewars is teaching me anything...it can always be refactored

pallid garden
#

it only depends on how much effort it takes

shrewd pine
#
  • try make it work
  • fail
  • try a different approach
  • huge mess
  • try a different approach
  • less mess
  • clean up which deletes a good chunk of my code
  • send for review
  • rewrite half the thing again in response to reviewer feedback
subtle coyote
pallid garden
#

oh right

#

usually i have something like 5 branches

#

for a given feature

shrewd pine
pallid garden
#

it really is try a different approach -> huge mess -> try again

pallid garden
mild sequoia
#

queue "my god, what have I done" > talking heads

pallid garden
shrewd pine
#

at times I might have a few tries sticking around, before I commit to one and abandon the others

subtle coyote
#

i think this is just not my forte i find solving some very specific problem fun even tho it takes lots of braincells
but keeping it mind all the different components and how they're stuctured and how they should be structured and if you do x what will happen to y and hundered other level of abstractions,
what is more simple? what is more complicated? how much time should be spend on feature x etc ๐Ÿ’€

#

hell i even got lost in circular imports once ๐Ÿ˜ญ
aswell in hell of abstractions!

mild sequoia
#

what are you learning for?

pallid garden
#

it's like that

#

you'll get used to it

subtle coyote
pallid garden
#

yesterday i was investigating an issue that was reported by one of the maintainer

#

the maintainer himself thought that the root cause was something

velvet hull
pallid garden
#

it's alright to get confused about the architecture

#

even the maintainers get it wrong sometimes

earnest leaf
#

Hey guys

#

Has anyone completed today daily leetcode problem ?

inland karma
#

did not know leetcode had daily problems

inland karma
inland karma
#

oh i see..

#

i see leetcode is still bad as usual

mild sequoia
#

i have yet to see a staff member or highly experienced person recommend leetcode in the past month. seems like its only good for grinding interview prep questions

inland karma
#

no its not good for that at all

#

its a junk site that on a good day, is only OK at best

#

if i had a candidate for a job that would brag about solving leetcode, i would not hire them

#

and ofc, the way they collect all your browser and user data to sell to others is just so bad

warm girder
#

you should venture on linkedin someday ;-;

gleaming marten
#

Its the people hiring that need to stop using leetcode

inland karma
#

AI has now made it impossible to ask those questions

gleaming marten
#

Im not so sure

#

People still ask for it

warm girder
#

hard to when interviews itself are so dsa heavy with some niche question along with 3-4 rounds of the same stuff (atleast where i live)

gleaming marten
#

Now they just have to worry about people cheating

inland karma
#

that just means the places that ask those questions are not a good place to work

gleaming marten
#

Almost every place is like this

#

From tiny startups to giant multinational corpos

inland karma
#

im still holding firm on my comment, its not a good place to work

warm girder
#

i think stripe is the only exception i know of among large companies which dont have leetcode heavy interviews

velvet hull
#

i dont believe any interview is gonna ask "Do u do leetcode everyday"

#

u can show them ur git hub tho ig

warm girder
#

yeah but questions are going to be skewed to leetcode medium or hard

#

not really much in depth project diving or some thought process/design based questions

inland karma
#

i went over all leetcodes data coollecction vendors

warm girder
#

its like 45 mins to solve this dsa problem and explain the space time complexity for most interviews

inland karma
warm girder
inland karma
#

yes

#

they still collect the data and still sell it even if you say no

warm girder
#

also how did u get this vendor list

inland karma
inland karma
#

and leetcode dont have a i do not concent button

warm girder
#

fair enough

inland karma
#

open an incognito tab to see it

#

underr manage options

#

they are at least, as far as i know, not as bad as others

inland karma
#

they just collect your data and sell it

inland karma
earnest leaf
#

Don't they have tougher questions

inland karma
#

and even worse developers

earnest leaf
mild sequoia
#

codewars

#

books

inland karma
gleaming marten
inland karma
#

codewars is just slightly better, ok on a normal day

summer crest
earnest leaf
warm girder
#

where do you see manage options dosent show for me mind sharing a screenshot

gleaming marten
#

What makes it slightly better? The prettier wrap?

spice hill
inland karma
inland karma
summer crest
#

leetcode definitely doesnt teach you very practical skills though yeah

inland karma
mild sequoia
#

leetcode brought me zero impact
codewars has repetition based training
Granted, im still ass

inland karma
#

it still only let you pratise algorithmic thiinking, thats what it does

earnest leaf
#

So are you suggesting codewars is better

#

For dsa

spice hill
inland karma
earnest leaf
pallid garden
#

learning how to solve a partial differentiation equation is different from understanding how that applies to thermodynamics

inland karma
#

you dont actually use DSA for about 98% off the time, and juniors never have a chance to impact anything with this knowledge

earnest leaf
#

Solving problems only gives real knowledge Right

inland karma
bronze dragon
spice hill
#

I can't recommend Leetcode to people if only because of the abominable format the problems are in (e.g. requiring a Solution class in Python, function signatures being nonsensical in Rust, probably more stuff)

inland karma
#

project based learning is where you learn development

earnest leaf
#

I see

inland karma
#

doing one or two hours of DSA before an interview is fine if the interviewer is going to ask you silly questions

pallid garden
#

still, i feel like my dsa leaves a lot to be desired

summer crest
#

i also wish leetcode interviewing should go away but i dont think it will tbh

#

or well

mild sequoia
#

DSA is a whole course. an entire couple books can be dedicated to DSA.
I feel like when I first started I said my interest was "doing dsa problems" and Ive quickly realized that's just a small destination on the journey lol

summer crest
#

idk if ai changes this but

inland karma
pallid garden
#

there are definitely some known dsa problems that i should be able to solve without having to spend time mulling over it

#

i can eventually solve it, but not without spending time thinking long and hard about it

summer crest
inland karma
#

give me five miiinutes with someone and i will figure out more about that persons skills than an interviewer doing leetcode questions for an hour

inland karma
#

๐Ÿ˜„ maybe

earnest leaf
summer crest
inland karma
#

i would just talk about a project they made, have them go trrough a problem tthey solved, explain it to me so i can understand how they solved it and what the implementation was

mild sequoia
#

people forget their personality is also on trial during the interview

summer crest
#

dude if interviewers let me go on a 4 hour programming rant to determine whether or not they hire me ๐Ÿ’€

#

id cook

pallid garden
#

lol

inland karma
pallid garden
#

here's to a better 2026

summer crest
#

oh right thats today

spice hill
#

year of the linux desktop

pallid garden
#

we are walking into 2026 with hope

pallid garden
summer crest
pallid garden
#

it's 2025

inland karma
pallid garden
#

2025 is the year of the linux desktop

summer crest
#

year of the FreeBSD laptop

inland karma
pallid garden
#

no way!

summer crest
earnest leaf
pallid garden
#

bruh

#

who tf asks that on discord

earnest leaf
#

Python developer right

inland karma
#

im a python developer yes

earnest leaf
#

I want to be a developer that's why

summer crest
spice hill
#

2069

inland karma
inland karma
spice hill
inland karma
#

๐Ÿ˜„

pallid garden
#

lol

#

that took me a while to get

tacit hearth
#

Am beginner, but Python is fun!

pallid garden
#

what do you find fun

tacit hearth
#

When there is no error in the output, gives a satisfying feeling

celest osprey
#

lol

pallid garden
#

lol

#

someone should really introduce you to:

Test Suites: 95 passed, 95 total
Tests:       642 passed, 642 total
Snapshots:   49 passed, 49 total
Time:        43.419 s
Ran all test suites.
Done in 44.38s.
obtuse geyser
#

labubu

inland karma
pallid garden
earnest leaf
pallid garden
celest osprey
#

U use it to test ur programs to ensure they work as intended

inland karma
#

pytest and coverage.py are the two libraries at work all python projects have. and precommit as a close third

pallid garden
#

you write the intended behavior of your code and you run them after you made some changes

#

to make sure that you didnt break anything

earnest leaf
#

They have built in test cases or do we need to provide that too

worn helm
#

hello

inland karma
#

you write them yourself

pallid garden
celest osprey
#

Itโ€™s one that u write ur selves

earnest leaf
pallid garden