#python-discussion
1 messages · Page 546 of 1
@ocean ridge tuiman out now
you probably mean == True, but in Python, writing if expr == True: ... is often redundant: if expr: ... achieves the same thing by implicitly casting expr to a boolean value
No, humanoid as in humanoid health for example, or slowing player’s movement speed
I rushed it a little using AI tho
never rush a great project
oh nice. il take a look at it soon
Yes, that's tricky, use BrawlDev's tutorials, those are really good
btw how's the text editor?
But then again Roblox is starting to become a toxic place to develop games.
yes, == True
I don't know how much programming experience you already have. If you're a beginner I'd recommend learning the basics of the language before attempting to program graphical applications
did you add searching in text files?
What is the shortcut in Visual Studio Code to indent stuff
tab
Multiple lines
select what u want to indent and then press tab
select multiple lines and press tab
How about if u have many lines to indented
select lines what u want to indent and then press tab
I tried that before but it didn't do anything... now it works
at least.. it works
@gentle pine ello! remember me?
how about using a formatter?
I think you can also do ctrl+], in the same way that ctrl+[ de-indents the currently selected section
You are learning in Wrong approach!!
Then what should I do? I only know what is on scratch
Python, learn Python or Lua or Javascript
a formatter cannot always guess what you mean
anyone else hate pivot tables?
But I know some of python, I just don’t know how to use it
What are they
for example, how should ```py
if x:
print('y')
print('z')
I'm just suggesting a tool
I learn python And 3d blender Just in 1 month and become pro
You don't get ideas on what to make?
they calculate aggregates
I’ve tried ideas from internet but I could barely make 1
Your projects can be small like at least 10 lines of code
syntax error? kinda unique to python because it's indent-based
yo
If you don't know something then you should google how to do it and then learn that and implement it
But sometimes it’s like I don’t even know how to start implementing it
Arguments are something that you pass into a function, right?
ruff can't even handle this, you need to satisfy the intepreter first
Just think of how to do it in English and use code to make it, code is like a dog, it won't do anything unless you tell it what to do and it becomes a useful tool.
what I am saying is that the programmer could have intended for print('z') to be either inside the if x block or outside it. The formatter cannot guess which is the correct interpretation
I didn't argue?
- Understand the Software Or Platform in 2 to 4 days
- Learn Basic Watch tutorials, Note Just Watching tutorial will never be make you Pro U need To dive into it
- Make Basic Project in parts, make Basic basic Things which Make You confident and you will be More interested into it
- Now Keep On upgrading your self!!
What happens if you understand it in 5 days?
Do you have to go off and do something else?
Learn Javascript
Thanks for that miss china
So, eat 5star do nothing 😂
Really
I learned Blender within a week.
Hence Gilbert.
Yes.. currently I am learning Machine learning and making powerbi project
Because you're a Data Science student
Yeah but still I am unemployed
I am too, it's okay.
Actually I am not unemployed
What is your background?
Unemployed means someone who is ready to work but can't find a job.
I'm not ready to work so I am not unemployed, so I am a student.
So if I wanna do it will I stop doing anything and only focus on it
A white wall, with a clock behind me
Hi
Add some plants and a window
Yess Just you need to give time !!
On the side to be there is a window.
And what did the clock ⏰ says 🤔
print("6:07 PM")
🎉 wakeup it's 2014
The clock is not a fox
Yeah now I divide my time i don't know if that would work some am learning python some html and little bit emotional intelligence
You tried to get my location via timezone, won't work. Since I live in Antarctica
Lol 😆 pythonist is talking
Really?!
The mods will get angry if we don't talk about Python
Maybe?
It's pythonista actually, that's what you call the python community members. According to an article
Don't learn Html You can Do it with Ai !!
What
don't learn html so ai can do it for you
Who care about location bro 👀 🤔
just be warned, ai output may differ from what you want
Giving Time On HTML in 2026 🙂
Okay.
Really didn't even know
Why doesn't it return the full sorted list?#Chicken Sort
#Given a list of integers it will select the largest one then put that into a list to be sorted. After that it will look left
#and right to and if big number near it will sort that too, keep doing till all sorted.
#Made by B3/Snappybettafish
give_list = [2, 5,9,8,4,5]
#Chicken Sort
#Given a list of integers it will select the largest one then put that into a list to be sorted. After that it will look left
#and right to and if big number near it will sort that too, keep doing till all sorted.
#Made by B3/Snappybettafish
give_list = [2, 5,9,8,4,5]
def Chicken_Sort(give_list):
print("Given List:",give_list)#Given List
num = max(give_list)
#print("Largest Number from Given List:",num)
index = give_list.index(num)
new_list = [num]
#print("Sorted List:",newList)
for i in range(len(give_list) - 1):
give_list.remove(num)
num = max(give_list)
#print("Largest Number from Given List",num)
index = give_list.index(num)
left = give_list[index - 1]
right = give_list[index + 0]
if left > right:
new_list.append(left)
#print("Sorted List:", newList)
#print(give_list)
#print(left)
else:
new_list.append(right)
#print(give_list)
#print(right)
#print("Sorted List:",new_list)
return new_list
print(Chicken_Sort(give_list))
If I do print(new_list) it gives the sorted list but if I do return new_list it doesn't give the sorted list.
you can program anything in AI nowadays, doesn't mean it does what you want it to do but you can program anything in AI
I hate html but I'd still write it myself before I'd let an AI, Always learn the syntax you're using before you let AI get anywhere near it..
Virus
you're returning in the loop
check the indentation of your return statement
Thanks
I wrote the thing myself
Agree but Spending more time to learn html is stupid in 2026
Thanks for not using AI
it's not stupid.
But guys I have something that stuck on my code if user enters data its not saving it in my hard drive
If it's a short snippet post it here, otherwise open a help channel
Ok master 🙂↕️
This doesn't do any phishing scams does it?
Why does it show a phishing exclamation mark?
This is a discord invite
<@&831776746206265384> Vercel link that redirects to a Discord server with a "create ticket" button that asks for your "wallet ID"
to a server named "support ticket"
any resource for pandas aside docs?
more of a practical way to learn ?
Yes I can Teach you !!
What is the point of pandas and how will it make an AI
@acoustic kestrel you have a few seconds to fix this
?
evil look, from virus totalhttps://www.virustotal.com/gui/url/ed597da82f529af4341be9f6a3b23ac107b7d66440855b005c7fb015b7941807
For his website/link
!cleanban 1064119452897132545 phishing scams does not work here. you are no longer welcome
:incoming_envelope: :ok_hand: applied ban to @acoustic kestrel permanently.
YES, I found the evidence
That doesn't really tell us anything
Only one entry just looks like a false positive
What, so he was innocent?
i think that is common for almost all vercel apps
You just banned him, right
thank you! i aborted work to take a look because you pinged!
Search On google Pandas Doc you will get Official Pandas Doc File In that you will get everything You need to know
hello
Ok Thanks.
VirustTotal is a good website to find out bad websites
That's not what I said
I said that VirusTotal shouldn't be taken so authoritavely
ESPSECIALLY with only one flag
Okay
yes, but he did get a second chance to respond. but these are just automated messages and not real or by accident sent out
Any excuse to avoid work!
we had one with 12ish flags for mallware
Oh, didn't know that these bots also send messages like those.
my django app is still working! 😄
often self bots, and we ban them on sight
Now thats a cause for concern!
Is there anything I should improve with this algortihm?
#Chicken Sort
#Given a list of integers it will select the largest one then put that into a list to be sorted. After that it will look left
#and right to and if big number near it will sort that too, keep doing till all sorted.
#Made by B3/Snappybettafish
give_list = [2, 5,9,8,4,5]
def Chicken_Sort(give_list):
print("Given List:",give_list)#Given List
num = max(give_list)
#print("Largest Number from Given List:",num)
index = give_list.index(num)
new_list = [num]
#print("Sorted List:",newList)
for i in range(len(give_list) - 1):
give_list.remove(num)
num = max(give_list)
#print("Largest Number from Given List",num)
index = give_list.index(num)
left = give_list[index - 1]
right = give_list[index + 0]
if left > right:
new_list.append(left)
#print("Sorted List:", newList)
#print(give_list)
#print(left)
else:
new_list.append(right)
#print(give_list)
#print(right)
#print("Sorted List:",new_list)
return new_list
print(Chicken_Sort(give_list))
i have an alternative
.xkcd 303
.xkcd 303
ahh.. nice
lmao
s/code compiling/claude is thinking/g
what does the algorithm do?
my docker container is building
Python also compiles
Didn't he reuse this one recently but with a changed punchline?
time.sleep(600)
Who said so?
instead of banning scammers/spammers/etc
a command that turns the whole server for them into ai generated server
everything continues as normal for them, but its actually ai generated texts trying to mimic us
Instead of "Code's compiling" they said "Github's down"
my docker has python and rust code... there... 30 min break
Yo what's the app about
So you give it a list, then it will sort that list in descending order. It find the largest value of the list then it will remove it and put it into the sorted list then it will look at the +0 index and -1 index of the previous largest value and it will find see which one is the largest and it will continue until it makes the sorted list.
he doesn't know he got banned, might waste his time trying to scam ai generated users
that'll do it
Bye bye 👋
oh just work things.... im rewriting an old web app used to count users
but then again, i have multiple django apps in the air at the same time
first rewrite?
yeah, its very old.. runs on an unsupported php version
Ah that makes sense haha
What does it do tho?
Can't be just basic req response model..
it counts users on a web page and reports it back to another system
That also written in python? The other system..
you dont use i in your for loop, what it is used for?
ima write my own vector library in python since i wanna make vectors easy + i want to learn it myself
Do u also have a way of counting most frequent IP's?
does this sound like a good idea?
Also isn't Django like overkill for this x..
i dont care about ips, only users
i want something stable. django fits that need
Oooh u mean registered ip's
no... users
user A visits page B and C, i want to count that user A has visited those two pages
BRO WHAT IS CHICKEN SORT
Smth like fast API won't be stable for this?
yes, very stable.
Nice
U wrote the FE yourself too?
or bottle
fe?
Client side code
front end?
Mhm
Oh I thought the project was already written
so i dont have to write it, i can just write a data product and consume the data in looker or something like that
nah, not done... work in progress
So I'm guessing when it directs user to a page it sends request for count++ or u using websockets?
Again not talking about caching or anything rn
look left to see if bigger worm is there
well.. thats the thing.. its not self evident what will be the best way, currently it uses a dead pixel method, but i might have to change that to websockets instead. but there are so many other apps connected so i have to be carefull about what to break first
and stderr for control messages and sending images etc.
average webdev project idea
Whenever you load the webpage, it opens a websocket which spawns a process
How many?
This Will Not Be A Security Problem Whatsoever
i dont know... a few houndred i think
Damn
mm worm
thats a great idea , what do u think about spinning up a new VM for every user visit ?
the process thing already exists
genius
It's called CGI
Do you have a deadline for this?
I wonder if CGI supports websockets
normally yes, but not this time. i will be done when its done
let me google what CGI is in this context, never heard of it
the php app has been running for 17 years already, it wiill live a few more months
A quote I heard:
Some of these can be truly horrific "Cthulu Architecture". A giant, ungodly blob of code at the center, with tentacles spreading in every direction and reaching into everything. Even things that appear neat and clean to the outside are actually dependent on the beast below. New things are quickly customized to "integrate" with the beast, because the beast is the core of the organization, after all.
May I ask what's like the avg payload?
On site..
its quite large, but the details that connects to countiiing is a 1x1 pixel image beeing loaded or not
Until you rewrite it in Rust
Wat
crab
not if I get my hands on it
😄
Crabs are not a joke Micheal
Millions of people get itchy every year
can u take a look at project showcase ubereats thing. some kid made an illegal tool and is showcasing it there. pinged the mods there
That app running on your servers btw? Like your team is maintaining it?
Or you're unfamiliar w it?
Cancer is just Greek for crab
there's a fun conversation
I mean idk if php is bad.. or upgrading it to a newer version would be bad...
It would be nice if he had reported about it to Uber eats or smth
i dont think its something you could stop
working as intended or whatever
no it just automates the process of account creation to get free promos. but the idea is so dumb. like bro whats the point of making so many accounts when you enter the same address all the time 🥀
Some unsuspecting kid might try it and get into issues yk
Could add guard rails
you are missing the fact that u need to enter the address every time u order food. doesnt take an einstein to figure that out 😭
imagine timmy is at an addresss 'x' and 50 accounts order from the same address all are new, all used the promo code. isnt that a bit sus 🤔
people share addresses
Lifehack: offer people small amounts of money to accept your package
A house of 4 people having 250 accounts with the address in it
the promo code saves u a dollar or smth 💀
how would you determine hte size of the house
might be a company
i love waiting 3 minutes every time i screw up for my dockerfile to build
joe closed it rn. nvm i guess
it runs in the datacenter on the k8s cluster, nobody is familiar with how it works, thats why a rewrite is needed
Is docker that good for containers?
Ooo yrs that makes sense
Or podman is better
idk i just like docker compose
docker is the original and most popular platform for containers, but I think podman has almost complete parity.
all of the apps running on my homeserver cluster (2 rpis) use docker because its nice and neat and everythings self-contained
I have docker because of distrobox but you need to use the container as root
you use docker? i just run it straight away with an nginx
Which I dont think thats good
Hi, I am Akhilesh from India I am looking for someone who start programming recently in Python.Looking for someone who started recently and wanted a friend/programming buddy with who I can discuss problems teach each other new programming things develop logic and learn and build projects together. You can DM me if you want to learn and build together
if you make an alias docker=podman almost all commands will work, and most likely the ones that are not working are the small subset you would never use in any case.
Hiii, already tried Neovim?
made those changes i talked about earlier in my editor too. thought i'd lyk
THAT FAST? DAMN.
What have you figured out as of now?
what do u mean fast?
that keyboard based stuff is way better for me ig
Yeah, yeah, but what motions do you know? :)
I know some that will blow your mind
Oh, it took me 2 days 😅
g and gg w/b , im still kinda new tell me some
That's fast af
Do you have it open rn?
Any plans for PyCon UK 2026 anywhere that I've missed?
Write this:
def hello_world(a, b):
print(f"Hello {a}")```
I'll show you some insane stuff
it was canceld a while back
Oh that's a shame, could you link me?
Nvm I've found it !
oh , no i will soon
Sadly we've been unable to find a Conference Director, so there won't be a PyCon UK for this year. If you (or someone you know) would be interested in taking on that role for 2027, or if you'd like to know some more about it, please get in touch at pyconuk@uk.python.org.
Their website had not been updated but found it on LinkedIn, thanks for the info
Come on, come on, I want to show you my favorite motion.
That's a real shame, 2025 was great fun
yeah, and if i lived in the UK i think i wwould be up for the challenge
hello everyone i'm new to programming and stuff just made a simple data cleaning project using pandas please check it out and give me reviews on how can i improve it. https://github.com/Rizwanhb/Excel-Data-cleaner
I clean my data by wiping it.
Why does Blender have a python console in it
u can automate things in blender with python 🙃 🙃
Okay how
never tried. just know that ti exists
Use distilled water
it will be really wiped
deionized water
tried putting my python in a blender, now i have to buy a new one :(
0/10
that too
a 10/10 joke 👏
why tf does puddle take 3 minutes to install
nope.
Rest in pieces python 🕊️
hello
I'm trying Git, and is it enough to just add the .py files I made, or anything else like it suddenly shows about 4000 other files, I guess some are from libraries
did u just add the py files
or did u do git add .
I manually added the py files from my program, but it started showing all kinds of library files
my guess is you forgot to .gitignore something, like a venv
You want to use .gitignore to exclude your environment, for instance
show us some
!pip typer
class FFIError(Exception):
__module__ = 'cffi'
class CDefError(Exception):
__module__ = 'cffi'
def __str__(self):
try:
current_decl = self.args[1]
filename = current_decl.coord.file
linenum = current_decl.coord.line
prefix = '%s:%d: ' % (filename, linenum)
except (AttributeError, TypeError, IndexError):
prefix = ''
return '%s%s' % (prefix, self.args[0])
class VerificationError(Exception):
""" An error raised when verification fails
"""
__module__ = 'cffi'
class VerificationMissing(Exception):
""" An error raised when incomplete structures are passed into
cdef, but no verification has been done
"""
__module__ = 'cffi'
class PkgConfigError(Exception):
""" An error raised for missing modules in pkg-config
"""
__module__ = 'cffi'
Oh yeah, I forgot that was another Tiangolo project
well I tried
typer is just click but typed
Make sure there's no whitespace after the ```py
Like no extra spaces or anything
does it work if I just ignore that stuff and have the files I made be the main branch?
u lurker
The .gitignore should help automatically exclude some of the files depending on what they are
If you want to open a help channel and share a screenshot of what you're seeing that would be helpful
hey guys i need someone to test my code
do I learn Python or C++
python is easier
why someone else?
i need linux user
depends on what you want to do. If it's your first language, I'd recommend Python
and im not using a linux im on windows
You could get WSL on windows to get you access to a linux system to test on. It's useful
maybe
yo, @inner adder whatsup? I have another cursed thing to show you, wanna see?
I want to say no but at the same time I want to see it
class C:
a: int
b: 'L'
c: bool
d: 'M'
e: tuple
f: 'A'
g: str
h: 'O'
L = "print('somebody')"
M = "print('once')"
A = "print('told')"
O = "print('me...')"
for meow in C.__annotations__.values():
@__import__("functools").singledispatch(lambda: None).register
def _(_) -> meow: pass
heheh
Wait is that import decorator in the preamble?
Or did you have to import that separately
Not preamble, built ins
Know what I mean not what I say
yeah, it's just inlined.
I could have written it like:
import functools
@functools.singledispatch(...)
def _(_) -> meow: pass
I actually hate that less
But that's mainly because I love single dispatch
It's still horrifying though
that you can do eval without writing eval?
That's how singledispatch works:/
@functools.singledispatch```
Transform a function into a [single-dispatch](https://docs.python.org/3/glossary.html#term-single-dispatch) [generic function](https://docs.python.org/3/glossary.html#term-generic-function).
To define a generic function, decorate it with the `@singledispatch` decorator. When defining a function using `@singledispatch`, note that the dispatch happens on the type of the first argument...
I would assume it's at least a literal_eval
But... no it can't be because it also accepts arbitrary classes
I'm suddenly very uncomfortable
hehehe
@inner adder have you tried to run it? If I do it here my message would be yeeted to #bot-commands
hi im working a game in python as the back end its a authoritative server and in my game (web based) i someone hit over e303 and broke infinity does python have a way around this limitation
You could use WSL/VM
i still need more than 1person
technically it's more related to annotationlib.ForwardRef tbh, but it's easier to show when using functools.singledispatch
Ah okay
I forgot annotationlib was a thing
Man I really need to look through all the modules again...
I try to do that from time to time so I remember at least what's there
u can spin up a vm its not that bad lol but it is sus as coming from someone who asked ppl to click a url for my game, it will come off sus to run random code lol
its not a random code its on github
reminds me of the time if u got the os version it was safe byt the pre compiled binary had malware
Here's the source code! Anyway, install this. Spotiled.py
I should open source my game's client and server but I dont want it to be stolen
I think it was a auto clicker or smth iirc it was c or cpp code
Is Ai going to cook the job market in the future?
depends
Not my job
I think noooo
ai is not going to cook literally so it depends on which job market you're talking about
will ai research break thru abd have True ai where it no longer needs our input for new information
I think Ai is gonna set the difficulty to get hired to ultra hard
somewhere there the magic happened
especially in coding related jobs
I think ai is still in early stages
its spotify visualizer it uses OPENRGB and spotify pkce to get the music image ur listening to and then uses the audio of ur system to do a visualizer with it
i mean having the specialty to fix the mistakes that AI does is kind of a pretty high bar for total beginners
About
Spotiled is an opensource app that makes ur rgb periperals Glows as a visualizer using ur Spotify music art image color
It is, which is even more scary
Hardware IT guys like me are going to be around for a while longer
Someone needs to be around to jiggle the cable when the AI gets stuck
considering how capable Ai is at the moment
ai still hasn't fully matured and intill we can find a way to make models smarter wit les new data i think we're gonna hit a limit
You are right hah
"capable"
That's what I was considering
Exactly
I don't think the answer is going to be in LLMs either
like going into networking
We need Opus 8.9
This is another stepping stone
Literally
So I'm trying to score high on the computer networking type of stuff
but on a real note ai is at a point its running out of high quality data to train on
CCNA related you know
Right
guys how do u set ur exe file an icon i use resource hacker
instead of the python image
I dont
I never actually got any of my certs...
I should have at least done my A+ when I had the chance
All my knowledge is far too old now
That's in uni, although we are also studying programming
but programming is just too vast and I don't have the drive for it
Nothing wrong with that. I only program as a hobby
the OSI model and TCP/IP model stacks are gonna be relevant for a while
Same
Oh sure but for the A+ cert stuff it's different now. Networking is going to be the same
I only got my associates
Yea I'm not gonna try to go into the industry, the bar to entry is way too high
There's a long story there
You'd be surprised
From the stories some of my friends have told me about even senior devs at their work, most people could out do them
but as far as I see I'm gonna have no trouble getting a ccna related job
Yeah MSPs are going to be around for quite a while
most people could out do what?
do you have any experience in the job market?
Out program some of the devs at some places
I had a 3 month internship that's about it
MSPs?
Managed Service Provider
managed service providers
Like an outside IT firm that takes care of stuff
We have one for our networking and backend stuff
Ai out programs devs or who? I can't get you sry
I mean that a lot of people who think they aren't super great at coding are likely better than some people who think they're fucking amazing
Arrogance breeds ignorance. I don't know if that's an actual quote but I'm saying it
The more you think you know best the more likely you are to ignore new information and new ways of doing things
For better or for worse
People who don't work as programmers outperform senior devs?
Always be willing to learn
I confused myself with it too. Ignore me
I cannot comprehend how the major software and systems were made before Ai
Books and research
And tons of trial and error
I enrolled in a CS degree, I do have interest towards some of the stuff but I have no drive to learn coding for sure
that's unfortunate
yea I'm leaning towards computer networking
I would have thought that would be CIS
Computer Information Systems
But I guess they can overlap
I always viewed CIS as practical application and CS as theory
recently been enjoying busting out horrendous code, just pumping out features
manually, of course. this is what i enjoy the most
being a sys admin interests me
/ Data Center Technician
you might be interested in this https://pwn.college/
it's a well made organized platform, the challenges are fun too
i was interested in cybersec and took 2 courses in uni but ngl i dont think it's for me now
it's really not
sigh
depends which bit :P automated anti-abuse is fucking sick
Having the knowledge of the Cybersec area without working in it
isn't that CS also?
Similar case and I'm not like really invested into networking either but I already enrolled in a CS degree and I guess that's what imma do as a job so gotta pick something that does not repulse me too much
Which is why I work in IT
I prefer to just hit computers until they work
or just say 'yall geniuses can figure it out.'
HA
I wouldn't expect any less from you, my good friend
You're damn smart, so that helps
wait I know you-
red teaming / blue teaming has been overly romanticized by tiktok
I'm not gonna be too self deprecating so I will admit I'm a pretty good engineer, but honestly as anti-abuse stuff goes it was being in the right place at the right time, and with weirdly specific platform knowledge 
i mean it's good to upskill yourself but if you feel anxious about not doing it and kinda force yourself to do random employable things you can still end up getting the same job so.. do something you enjoy at least is what i feel
what are the differences? Those two words are thrown around interchangeably so often I can't tell anymore
omg it's owo
Information Technology is more about implementation and working with live systems. System administration, network administration, technical support, etc.
Enjoy? Well I enjoy working out and sun gazing. That's about it, not really the things employers are looking for
personal training and sunglass testing
Not like... directly at the sun, right?
I don't wanna be a personal trainer either, I find it repulsive
sun gazing... first time hearing about that one
Because I'm pretty sure you'd start hearing bacon sizzling noises coming from your eyes
Nah just walking around
while being exposed to the sun
I don't wanna do this type of work, I would only help a friend or sm with training
Difficult to walk without that happening
hope you're using sunscreen
not necessarily; I live in the UK
HA
lol
Haven't been using sunscreen for years
The sun is a myth, there is only haze
The key is balance
just don't overexpose your skin to the sun, you gotta feel it when its too much
steps outside
counts to 10
enough sun for today, time for computer
This weekend is supposed to be rainy and cloudy... which is an issue because my job currently is packing parachutes for skydiving, which is somewhat reliant on the weather actually being good enough for people to skydive
I would end my life before I have to live this way
Ideally I want to spend most of my time out
ah yes, the only job where you lose customers if you do it poorly
You lead an exciting life
I wish I had half the energy you do
I follow the whims of my mind and they lead me to strange fucking places lol
to be fair, it doesn't take much energy to fall
packing parachutes does not take energy what do you mean
(this is the sort of message someone who hasn't packaged a parachute would send)
it does, a lot of potential energy
packing is exhausting
the plane is doing the hard part.
man those were the days
well the plane is not falling for you is it
Oh hello
you have a lot more energy when you're up in the air
You should look at the sun directly only in the early hours
That might be a strange relationship.
I joined a staff meeting on a 30km cycle once during covid times lol
+8585e+10% energy boost bro
David goggins
actually m*g*h
sometimes when you're doing things you want to be with people too
blessings of the digital era
+mv²/2
Counts to 300
well yeah
Oh for sure. But it's a bit distracting when you suddenly see his point of view and it's a several meter high drop
Distracting and distressing
(also skydiving is obviously not that physically demanding in the falling part, but if you imagine the sort of brain-tired you get after a day of driving because of concentrating, that happens skydiving but wayyyy more potent)
Just eat healthy and hit the gym, u will have energy too
Sound like FOMO
I have infinite energy but no drive to learn coding
human? on the internet? in 2026?
there's a movie called "Up in the Air", it has a lot of flying in it
Do a binding to have zero energy but infinite coding skills
I tried
depends on the level
hello
failed
adhd
you had some impulse to try to learn coding: what was it?
there's another one called- no I'm not gonna say it you can just look at the channel name
if you feel the urge to constantly check your phone while doing something unrelated, I'll say FOMO
Good morning Pythoners
Anyway I'm going out to hunt an old aqueduct that I found on 1940s maps but which is largely gone now :) best career advice I can give (which is a low bar) is fuck around and find fun stuff, then do your best to make the fun stuff work for you
cya
I went to a psychiatrist, she does not think I have it. I even specifically asked if I might have it
Pavlolv dog
I was joking (unless I had been right)
I was prescribed some anti depressants that did not do anything but make me tired so I threw them away and never went to a psychiatrist again
oh my, just got to experience a true "restore from backup" moment after having accidentally git cleaned some files, thankfully I had configured a full user directory backup (to google drive, via deja dup or whatever) a long time ago and this is the first time I'm reaping the fruits
well, I may have spoken too soon because the restore is taking forever and doesn't appear to be making any progress, but anyway
remember to back you Python files up guys
this reminds me of the time I wrote a program to convert a python AST into a S-expression, and ran it on itself.
then I failed a rm command and the funniest thing possible happened
My python folder has definitely seen better days
what a fun little tidbit:
S-expression (or symbolic expression, abbreviated as sexpr or sexp)
- https://en.wikipedia.org/wiki/S-expression
this is a case where something should never have been abbreviated.
"symexp" would've been nicer, I guess.
Remember to back up ur pokemon save file 😢
Is python hard?
Nope
Mine had 600
That's the short anwser
How much u guys will scale python out of 10 in hardness
Compared to other programming languages
I'd give it a 4
Oow
Diificulty is subjective
Pythons are pretty soft, though their skin is a bit on the tough side
where do i start learning networking?
Being either intimidated or free because someone said python is [x] is not good
I am asking the hardness when u guys start learning
remember that one guy who dealt with ptyhons irl ?
He died twice
Lol
frnd me in dc
Java?
Java is a 7
yk, they say that a person dies twice, first when they die and second time when their name is said for the last time
That's chopper's someone right
Like from One piece I don't remember
Dr. sum
That hard?
it sure doesn't originate from One PIece
if a person's diary is in a library but never opened, are they truly dead?
It sure is the reason I know it 🤔
out of?
Schrodinger's guy
Java is definitely 1 language
Good discussion
Java is pretty hard
dammit, I thought you may have meant that
why are you asking though?
Getting the opinion of users
if you've never been exposed to text programming languages, it might be harder than if you already have experience in say some other language, like obviously it's pretty subjective
I'm more interested in what you plan on doing with that information though
There is 10% chance I am seriously saying smthng and that is either to a beginner or to Eivl
you serious?
Brings me to a thought, what would ur way for another language be if u already know some python
hi
Hi guys this maybe weird but I'm looking for internships
how to print in python?
print(python)
the typical approach would be to use the print function
i get error, python not found
how to use print function?
print("hi")
must be the water
print("Hello")
what exactly is the error? can you paste the entire error message?
stop trolling beginners who look for geuine help
some guy told him to do print(python) above and he got an error python not found
I'm confused as well I wasn't trolling
i lowk feel bad now..
dw, ik how to print 🙂
print("67")
!learn
Here are the top free resources we recommend for people who are new to programming:
- Automate the Boring Stuff — an online book (also available to purchase as a physical book)
- Harvard’s CS50P course — video lectures (slides and notes provided) with exercises
- Python Programming MOOC 2026 course — text-based lessons with exercises
- Corey Schafer's YouTube playlist
For a full, curated list of educational resources we recommend, please see our resources page!
print("<some text here>"). you told him to do print(python). If python was defined already, then it would work
python = 'lvl 100 python'
print(python)
then it would print correctly
Some good resources for starting out
True
(well, that's not the error you'd get for that line, you'd get a NameError saying python is not defined, "not found" wording is more likely to come from them doing python file.py or some such and python not being on PATH)
Let's not dig deep
@merry lintel use these if u r js starting out
nvm then i thought he tried to print an undefined variable
10
How to print your current python version
Java is definitely not 7/10
Anyone ?
Windows or Linux?
Windows
py --version
that may have been what they were doing, but "not found" wording in a typical case would suggest not that the code ran and failed, but the code didn't even get to run, because python was not found, as in the program/executable (and it just so happens that the undefined name was also python, but that would have then thrown a slightly differently worded error if it ran)
in a terminal
why not?
That's what I wanna ask ?
I suppose a pretty reliable way to get the actual version your IDE is executing your file with would be to do this in Python then:
import sys
print(sys.version)
maybe that's what you meant anyway
yeah ig et ur point
Hi
Hi
hi



Suggest more topics here!
I use it for AI, but the programs I enjoy writing the most are general automations
maths + physics
Generally feels the most rewarding but ymmv I guess
i like that i can use the same language for work, for high-use open source projects, and for personal math-art projects.
I like that it makes it easy to screw around with my various ideas
And there's always something interesting to learn about it or a new library to look into
so umm, what happen if I declare the same name for class-level and instance-level attributes in a class
for example:
it could get confusing. the class will have one, and each instance will have the other one
The instance variable will take precedence
This is sometimes used, e.g. with functools.cached_property
tell us more about why you want both
thanks, I want a confirm on this
im making a vector calc lib in python and its so fun :)
anyone wanna join a team of ppl tryna make an ai
using python to do smth in maths always feels fun
well, there was a question about Django Class-based view regarding this ... indirectly. And it kinda make me question my understanding about Python class 🥲
is anyone into High-frequency trading (HFT)
Woah wait what
Updates mypy from 1.20.2 to 2.0.0
What's Dependabot trying to tell me here
is it clear now?
yes, thank you kind sir
mypy just released 2.0.0 yesterday
Lol, mypy heard you and took that personally
Literally 17 hours later -- mypy 2.0 released with
Mypy now supports experimental parallel and incremental type checking.
I was being dramatic about how big the breaking changes must be to get mypy to make a major version bump
unfortunately, past me was all responsible, so I don't get to play with it until next week
[tool.uv]
exclude-newer = "P7D"
i think i set mine to 10!
Why more than a week?
extra caution
yes. but coverage is in lots of places
Oh dude that's awesome looking!
Hi. Caught this out of the corner of my eye. Does this prevent upgrades if the version is younger than 7 days?
Very nice. I hadn't gone looking for it but this is what I needed to find.
.bm
how did u make it though
Heads up, uv has some quirks where if you accidently ask for a too new verison, the error messges say the version "doesn't exist" because it boots all the too new versions and then looks into an empty list
i want to learn this
I would expect that, actually.
I've applied a filter. The list can be empty.
It's technically true
But still catches me off guard every time I see it
master ned Teach us !!
Ah good. UV_EXCLUDE_NEWER. I can just enforce this on the boxes and not change a thing. 0.2.12? This is new new.
wait.. no, we're in 0.11?
we are
mixed the numbers up in my head.
Also heads up
My private artifactory causes errors like these
warning: kerp_sdk-3.0.0.tar.gz is missing an upload date, but user provided: 2026-04-25T01:41:34.891233564Z
warning: kerp_sdk-3.0.0-py3-none-any.whl is missing an upload date, but user provided: 2026-04-25T01:41:34.891233564Z
× No solution found when resolving dependencies for split (markers:
│ python_full_version >= '3.14' and platform_machine == 'x86_64' and
│ sys_platform == 'linux'):
╰─▶ Because kerp-sdk==1.1.0 has no publish time and there are no versions of
kerp-sdk, we can conclude that kerp-sdk>=1.1.0,<2.0.0 cannot be used.
And because core[redacted] depends on kerp-sdk>=1.1.0,<2.0.0
and your workspace requires core[redacted], we can conclude
that your workspace's requirements are unsatisfiable.
Error: Process completed with exit code 1.
Not sure if yours will do the same
guys help i cant understand whats a return statement
this reminds me of golden ratio wow
!return-gif
ik what a function does but wth is a return
It stops the function and sets the value of the function call
wow didnt know this existed (the gif)
im.. sorry i understood nothing😭
your function does some work, how do you let other parts of your program outside of the function access to the result of that work? You return!
It's the best GIF I've ever seen
ikr me too
oh ye, I remember didn't understand this too. Just code a lot and it will eventually make sense
Python calms me down
so like uhmmmm yeah idk
me too :)
@cerulean ravine so are you taking a rough threshold/ greyscale of an image, decreasing the resolution and resizing the tiles based on brightness values at individual pixels??
!e
def thing():
return 1
x = thing()
print (x)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
1
mypy 2.0 released? Lets gooo!
A function can do something, or get a value. If you return something, you are saying that when that function is called, it will give out that value it returns
def next_number(number):
return number + 1
If I say
print(next_number(3))
That will evaluate and essentially be
print(4)
so basically basically what i know is that a funcion is this thing you do to save time, like maybe make it print somthing
@cerulean ravine i wanna see what happens when u add grain on top of the image and then apply the Truchet filter
!e
def ham():
pork = "I will be returned from the function"
return pork
print("We're going to call the ham function and get the value it returns")
beef = ham()
print(beef)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | We're going to call the ham function and get the value it returns
002 | I will be returned from the function
it's code you re-use throughout a program.
I can also say
new_num = next_number(7)
print(new_num)
This is me assigning that value to the variable, so it’s saying that new_num = 8
yeah yeah a reusable block of code
well uhm what were parameters again?
Functions are often used in place of repeated lines of code, and for abstracting, where you don’t need to worry about how something works as long as it works
the grain could help with the bad artifacts, it's true
parameters are the things that go inside of the brackets when making a function
def function(parameter):
that block runs in isolation from the rest of the code.
parameters are what you give it to use.
return is what it gives back.
yeah ik but what do they do
When you call a function like ham(), you give it arguments. Those arguments are placed in the parameters of the function
so return is like a print in some way?
damn i need to learn PIL
print displays it to you/the user
return lets you use it in other parts of your program
like
def next_num(input_num):
input_num is a parameter, it’s a variable that you give a value to by calling that function with an argument
so
next_num(3)
3 is the argument, so input_num = 3
It's more like buying something from the store. You leave with what you purchased and can use it elsewhere
Parameters are names on a function definition which gets arguments bound to
Arguments are the values you pass to the function when calling.
i'm not sure this is quite right, but I can talk about it in a little bit
its fine ill explore it later
ok whats an argument now
Print doesn’t let you use the code again, but return does :P it’s sorta similar and I get what you mean but return is much more valuable than print
so yeah a print for functions, correct?
def function(parameter):
return value
pork = function(argument)
print vs return depends on what you want to do. A function can use both
in some way
Those are the values you pass to a function when you call
def add(a, b): return a + b
add(2, 3)
2 and 3 are arguments passed to function add
Basically just parameters but when you call a function instead of when you define them, people get mixed up over the names all the time but don’t worry abt it too much
Yeah, where print() gives data out to the user where they can see, return gives data out to the code for it to use
Yeah, at this stage I wouldn't worry about the "argument" vs "parameter". Just focus on understanding return
The terminology can be picked up as you go along

Maybe this is one you can leave, argameters/parguments are really besicslly the same in the end
More or less
parameters are like variables waiting for a value to get, and that value is given when you call the function and we call that value as argument 😋
"Arguments are thrown, parameters catch" is how I think about it
im watching a vid rn trying to understand it
I think the more we talk about the two the more we’ll confuse people
Hol' up chat, Lambda is cooking. Let him cook.
@shrewd pine I think of things weirdly
rood
makes sense to me.
I don't see any confusion yet, seems like we all agree on the same definition
It goes
amen
I like your allegories, they’re a really interesting way to see programming
The original person learning is trying to understand return. Introducing "parameters" vs "arguments" is not really helpful at this stage.
I see
I just mean that the 2 terms are basically useless right now when learning how return works
And it's just pedantry anyways
I find a lot of times people might need different ways of things being explained. Like my example of a bank for async and threading and what not
real
But yeah, return ‘prints’ things to your code, where your code can read it and use it
It’s very common, and I think it’s really understandable
I see
It is very common. Common enough we have a whole gif for it and a tag
printing is the first thing you do in programming, and it is similar in a sense
Lmao
Did you not see the GIF?
Oh derp, I just realized I don't have images auto load so I couldn't see the gif
rood
It was a gift!
i think I THINK i understand it now
its similar in the sense that both are forms of output, but otherwise different
i assume you know what print does, but about return:
you use a function by calling it, right? so in your program source code, when you use a function, there is a "call expression" that looks like function(arguments)
and the thing about expressions is they evaluate to a value, like how 2 + 3 evaluates to 5
return is how you define what the function call will evaluate to, if you have def function(parameter): return something, when you do function(argument),
the expression something is evaluated to some value, lets call it value, and thats what value the call expression function(argument) will evaluate to (and, obviously, once an expression evaluates, its done, so when a given function call hits return - thats the end for this function)
though frankly seeing more examples would make me understand it better
Let’s hear it :P
wall of text is a bit much for a beginner, don't you think?
!e
def add_two(number):
return 2 + number
ham = 3
pork = add_two(ham)
print(pork)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
5
def greater_than_five(input_num):
if input_num > 5 # if variable greater than 5
return True
else:
return False
books have much more text yet people still recommend them
i dont want to assume that beginners cant read more than 2 sentences
both because its not true and because that would mean humanity is doomed and i'd rather delulu myself
@amber comet I can pare down my example further if you need me to
What do you think you will get if you do
my_var = greater_than_five(6)
print(my_var)
?
you will be surprised
so basically like i think when you def a function say,
def add(x, y)
z = x+y
return z
print(z)
or smth like htat
Yeah! That’s totally right :D
Sort of. You still need something to catch what is returned from the function
?
an important thing about functions, return makes the function end. If you hit a return, your function will exit
Like in my example, I have pork = add_two(ham). I need pork there so that I catch the value that the function returns
That is what lets me use it
You’re using z as a variable, but z only exists inside that function
Otherwise that returned value just disappears
uh suree
Your function is great, the only problem is the end
i thought so
You’ve technically not said what z is, since you never defined a variable outside the function
it shouldve been print(add(number 1, number 2))
if you said
my_var = add(2,3)
print(my_var)
It would work
That would work too :D
I think you’ve picked it up pretty fast. The best thing you can do is play about with what you’ve learned and practice it
im originally learing ai in python i just wanted to go back to functions cause i didnt quite understand them
def store(order):
return order
waks = store("ham")
@amber comet Another way I can explain it is that someone has to be there to receive it. Like if you go to the store and order something, someone has to be there to receive it. If you just did
store("ham")
No one would be there to pick up the ham
Oh no! But the ham would get cold!!
yeah
You can try making something like the basic functions of a calculator using return. You can have an add, subtract, multiply and divide function
Apologies, I explain things weirdly
No that was actually really good
You really like shops and banks
It's the perfect analogy for it
Ofcourse i have seen it
Or !gif or whatever it had moving values in animation
ok so another point is
like, you already used functions other than print, right? probally input?
and when you used input you were able to do like, something = input(), right?
but how does the string that the user inputted end up "in" the variable something? if the definition of input was to print the string it read', that wouldnt work. the user input would just be repeated in the terminal, but not end up in the variable something. instead, it returns it
same thing with sum([1, 2, 3]) returning 6 rather than printing it. thats how x = sum([1, 2, 3]) is able to set x to 6 rather than implicitly print 6, and that makes you able to actually use the value later in the code
!print-return
Who needs gif when lambda is already cooking

Lambda is smart. I treasure him
scary would be if i started talking about how function calls work on the interpreter level, with the returning address being popped from the call stack and the return value being put on the temporary value stack
oops i just did it
sorry
me too, have an irrational fear of a Greek letter
HA
☠️😭
I can't think about lambda without thinking about Half-Life
never take physics
Or maths
robin have you already watched daredevil born again season 2
yeah
or Greek
Is it good
Or Cybersec :(
imo physics tends to use more greek letters
It's all Greek to me
I’ve not seen any Greek yet, but it’s all Greek to me
i like charlie cox's daredevil, so im watching it. only started season 2 though
sad that punisher isnt in it, he was cool too
🤬 you stole my joke
oh ye, the Greek discovered it. Damn...
But pi is almost everywhere. And at some point you get capital sigma and capital pi for sum and multiplication
Have you seen the It's-all-Greek-to-me map?
Oh Robin you're awake
Check your pings
Also try waking up before noon
I can't say that I have
But I have a feeling I'm going to love it
I'll send it in off-topic
wild timing
Cheers
I’ve been looking back on all the marvel products and I just think they’re not that good tbh? I’ve become accustomed to watching ‘okay’ things and treating them as if they’re something better than what they are
typing challenge make nontrivial codebase typecheck on all of : mypy strict, pyright strict, pyrefly strict
add in ty for extra spiciness
i havent watched anything else from marvel
My 5k lines passes mypy strict and ty
mad respect
Everything I write runs mypy --strict and ty
i found a bug in zuban yesterday but i didnt understand what it was and didnt report it
I found a bug a while back and didn't understand it
I just went to their Discord and said "I should probably tell an adult"
Never did get a response 🙁
TRUSTED. ADULTS.
The best programmers write few lines of code, and even remove more lines than they write. That’s why I’m the best programmer
git clone linux cd linux sudo rm -rf ./* git push best programmer
😎 WE use Arch btw
who is we? i
fuck.. i use arch
sounds like a you issue.
I’m actually really worried about my computer?
you should tell your computer that then
it will be very happy to know that you care about it
I reinstalled arch a couple of months ago, and nothing has went wrong?
I’ve not encountered any issues whatsoever?
that's because you don't use your computer properly
It’s really scary

any project ideas that would make me good at async programming?
well, there shouldnt be. arch is not supposed to be broken
if it is then something went wrong
web scraper across domains
Can python get you rich?
JOIN US
anything can
I know that I’m not using arch the way the gods intended though, and I didn’t configure any of my stuff to have Hyprland work properly with Nvidia, but there’s been nothing wrong at all?
you can get a programming job where writing python is one of the things you do, and that can get you monies
there are high-paying jobs that involve writing python code. but no one will throw money at you just for knowing python.
or u can start a startup writing python whatever
The only thing I can think of is that viewing Steam updates for Terraria is really slow
it was a trend back then, now it's just an invasive species. Don't try to make a business by selling them tho
from pip._vendor import rich
Richy rich
🤔 thats a good second project but anything tighter/ predictable which involves race conditions, critical sections etc..?
anyway, don't count your chickens before they hatch.
do you understand the answers you've been given?
Watsup snakes

I'm new to python
Hi new, I'm old
then maybe it's not a job for async IG
the critical sections in async are blocks between await, because, well, its just normal code, running synchronously on a single thread
race conditions in async happen on await when the event loop ends up context switching to a coroutine that you didnt expect to, and it changes some state that your original one depends on
if you have some state that you need to ensure wont randomly get changed by other coroutines on await, you use a lock or something
and i still mess up with them 🥀
so ... sync?, nvm
multiprocessing 😋
IIRC, I used asyncio.Lock when i was writing on a PeerConnection's buffer so two msgs being written asynchronously won't collide and won't make an invalid packet
you need to understand that wherever you have an await, you're potentially switching to other arbitrary code before resuming
wdym collide? Dont they just switch back and forth ?
And then i wrote a background task worker (asyncio.Task) which reads the stream and puts received msgs in queue (asyncio.Queue(size=None)) which can be then read by other background workers and broadcast to other listeners for that peer and its message.
await returns a coroutine object, whats that some special kind of object?
await does not return a coroutine, it takes a coroutine and "runs" it
do you know generators? if you do then you already are mostly there
Well, i was having my msg packets being written overlappingly. half content of first msg and another half content of second msg. Had to use asyncio.Lock so only one packet can be written
or maybe my code was stupid than asyncio issue lol
i do know them, they provide memory efficiency bla bla bla.. but not that deeply
sound like race condition alr
Memory efficiency is a result of generators, but not really how they work.
Real
well, the main point is that each section before yield is a discrete step of the function, and it is paused between these steps
same thing with await in async
do async lists and generators do anything?
async list does not make sense since a list is an eager structure, all the values are already there in a list
async generators exist
that's why I asked async list is a perfectly valid sybtax btw
ohh so generators are kind of like special functions that save their state?
and same is true for async functions, but instead of waiting for next() they just exectue?
If you do a list comp with "async for", it means python can context switch each time it produces a new value from the iterable
@gleaming knoll did I tell you about that time I wrote an async factorial function?
the execution of a generator is driven by iterating over it, each iteration going up to the next yield
the execution of a coroutine is driven by an event loop, each step going up to the next await, and when that await happens - it can switch to other coroutines until this one is ready, they dont "just execute"
Wait what why
ok yeah not just execute but all the event loop stuff like queueing anther process when one goes into io...
oh yeah my misteak, async for loop, but also I don't think I understand what you mean and even if I do, what are the benefits. iirc, async for loop is just kinda ... sync
Ok! So here me out: I had users submit a (potentially very large number) that my webserver calculates the factorial of. The thing is, factorial would be slow and essentially DDOS the site if too many people tried the factorial. So I made it async and sleep a bit after each multiplication to keep things running smoothly.
it would be like this
while True:
try:
x = await anext(iterable)
except StopAsyncIteration:
break
# for loop body code goes here
That's... Okay that's actually pretty smart
which means that each time you "pull" a value, until its actually ready (e.g. if the production of this value depends on a network request), you could have other stuff running
Here's the code to illustrate
app/routers/problems/brocard.py line 8
async def factorial(n):```
I was happy I figured it out! Gives me a fun story to tell, because no one thinks that it makes any sense.
I live for those funny wtf but smart moments lol.
each step going up to the next await i didnt get this
oh ye, make sense, still, is it worth it? context swapping like crazy sounds unnecessary and just create a bunch of overheads
I usually have the former but not the latter
its worth it when the waiting before producing a value is significant, like a network request
u can add loaders
if you understood generators running in discrete yield steps, whats the problem with coroutines running in await steps?
That I understand, it's asyncio in general. I'm talking about async loop specifically
i cant think of a way to use them tbh. likes its not "hitting" me, boom
i d start python yesterday anyone can give me some help
me too. but even a broken clock is right twice a day.
the context switching of the async event loop is not much different from context switching from the loop code to the generator code when iterating over a generator
and you dont see people saying "wow the overhead is so insane that my performance tanked from iterating over a generator", its just replacing the call frame: setting the return address and locals
like yeah iterating over a generator will be slightly constant-time (per iteration) slower than iterating over a list but its not significant compared to other things applications do
