#python-discussion

1 messages Β· Page 550 of 1

gentle pine
#

code

inner adder
#

Oh yeah tons of people do

gentle pine
indigo phoenix
#

VSC is pretty good for Python. I use it.

inner adder
#

From time to time. It's not my primary, though

#

I personally prefer Sublime Text. I'm about to give Zed a try, though

gentle pine
indigo phoenix
autumn forge
#

you're essentially finding the angle between the vector AB and AP. The cross product - AB x AP, which you're calculating - in 2D is |AB| * |AP| * sinΞΈ (where ΞΈ is the angle between two vectors). SinΞΈ is positive for angles less than 180 degrees and negative for angles greater than 180 degrees (if ΞΈ is in [0, 360]) , so by the sign of the cross product you know which side of the line AB P falls

gentle pine
inner adder
velvet trout
#

Why y'all bullying my snake πŸ˜”

#

He is alone handling unicode stuff , dynamic typing and mem&gc management for us πŸ₯Ί

honest cradle
#

considering ur a moderator,im guessing you either study in college or uni or have a job?

inner adder
#

I work full-time but I'm not a programmer

#

I just do it for fun

#

I work in IT

honest cradle
inner adder
#

My main focus here is helping new folks get the footing they need to learn the more complex stuff. I like helping people get that lightbulb moment where things start to make sense

#

It's very satisfying

rare gazelle
#

very enlightening

raven urchin
#

I am

open ledge
#

Wheres Python 1.3 documentation? On website I only see down to 1.4

inner adder
#

Might be on the internet archive. I'll take a look

grave tree
open ledge
#

Because it is one I have

grave tree
#

1.3 is 30 years old

open ledge
#

No

#

1.3

grave tree
#

Why do you have a 30 year old version of Python?

open ledge
#

4th January 1995

open ledge
inner adder
#

Even on the wayback machine, the oldest version of the python.org site (May 1st, 1997) only has stuff for 1.4

unborn lagoon
grave tree
harsh swallow
#

1.3 wasn't even fully supported

harsh swallow
grave tree
#

okay, cat dealt with

inner adder
open ledge
#

And it fits on one floppy

grave tree
#

But you can't get v1.4 even?

open ledge
#

Nice

open ledge
#

It might work

inner adder
#

Should work

grave tree
#

what version of debian are you running?

open ledge
#

1.1

#

Kernel 2.0.0

inner adder
#

Even on an older machine you should be able to run a newer version

#

Of Debian I mean

#

Which would also solve the Python issue

open ledge
raven urchin
#

My mom is using my Arch Linux, lmao.

open ledge
#

And its not like i will stick only to 1.1 here

#

Ill also use some Slackware and OS/2

grave tree
open ledge
#

Wait

#

It also has Amiga release?

#

But doubt it would run on my 500

inner adder
#

Neat, I didn't know that

#

Are... are you from the past?

open ledge
#

Nope

inner adder
#

Are you a time traveler?

open ledge
#

I am now

inner adder
#

Oh, that's less exciting

#

I guess we all are

#

But like... just 1 second at a time

open ledge
inner adder
#

I wonder when the docs were first bundled with Python...

open ledge
#

Fucking linux made .Trash-1000 on floppy

#

And I wonder why my 1.44MB can only fit 720kB

inner adder
#

Damn, pydoc was added in 2.1

#

I'd still go with 1.4 like Kat said, but now I can't seem to stop digging down this rabbit hole

gloomy locust
#

"AI Agents are the most lucrative field today; if you build a real estate agent and capture just 1% of the global market, you could generate $10 million in monthly revenue."

grave tree
gloomy locust
grave tree
gloomy locust
grave tree
#

just send it here, people can provide their thoughts

gloomy locust
# grave tree just send it here, people can provide their thoughts

.1. Intro to CS

Courses: Harvard CS50 / MIT 6.1000

Book: Think Python

  1. Computational Thinking

Courses: MIT 6.100A & 6.100B

Book: Intro to Computation & Programming (Guttag)

Stack: NumPy, Pandas, Jupyter

  1. Software Construction

Courses: MIT 6.1010 & 6.1020

Books: Python Crash Course & Fluent Python

Tools: Git, GitHub, LeetCode

pastel sluice
#

Fluent Python is something you'd read after already getting comfortable with Python itself.
Python Crash Course is a beginner guide aimed at people who might already have some programming experience

pastel sluice
gloomy locust
#

Organise it please

pastel sluice
#

@gloomy locust start by telling me what you want to do.

#

do you want to learn "computer science" generally, or learn Python specifically?

gloomy locust
#

Now i started from programming

pastel sluice
#

the whole field of AI is shifting so rapidly there's no point in trying to "study" it right now. equip yourself with learning skills instead.

gloomy locust
#

I am learner self

indigo phoenix
gloomy locust
#

Help me please in roadmap

#

Please

lean lantern
#

why do you think its false?

steady rain
#

@gloomy locust you've asked about roadmaps at least three times that I've seen. what about the answers you've gotten do you not like?

gloomy locust
prime mountain
#

Hi

bronze dragon
steady rain
# gloomy locust I want to study Ai agent this is my dream

there's no linear path to learning about AI because it's rapidly shifting and there's so many different directions you can go with it. I've been working in AI for several years and there are whole branches that I know nothing about.

lean lantern
gloomy locust
#

What about the map

lean lantern
#

I don't think the map is usefull personally

steady rain
# gloomy locust Help please

please don't say "help please" without saying exactly what you want help with. the way you're communicating is difficult.

lean lantern
#

I mean sure courses can help A LOT, but I think you should just dive into it

gloomy locust
rare gazelle
#

i like the word guide line

steady rain
#

!resources data science

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.

gloomy locust
#

I put map according to the catalogue

steady rain
#

@gloomy locust pick one of these resources and stick with it to the end. don't worry about what you'll do next until you get to the end.

lean lantern
#

but following courses from MIT without having prior knowledge in python is impossible. Start doing projects

grave tree
rare gazelle
#

you can and should program alongside whatever course

pastel sluice
#

@gloomy locust the most important thing to develop with these studies is how to learn things.
how to read texts and documentation.
how to take something described and use it.
how to ask good questions and get useful answers.
these are super-powers. they are more useful by far than learning any one language, framework, or even subject matter area.

rain wren
#

hello

bronze dragon
#

-# 6.100A is the MIT course for intro to programming with Python. CS50P is Harvard.

rare gazelle
#

hi

inland pendant
#

Hello guys!!

prime mountain
#

How's it going?

rare gazelle
rain wren
rain wren
rare gazelle
#

i'm good thanks, u?

west storm
#

good day everyone

open ledge
rain wren
rare gazelle
#

πŸ‘

civic pawn
#

Does anyone have recommendations on how to learn python as someone with no experience at coding? Im looking for easy projects to start learning by doing

lean lantern
#

!learn

edgy krakenBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

lean lantern
#

!projects

edgy krakenBOT
#
Kindling Projects

The Kindling projects page contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

civic pawn
#

okay thank you

gleaming sluice
#

not sure if it is the proper place but i'm wondering where to get sponsorship for an open source project.

golden mortar
gleaming sluice
#

dementati are you that folk from #philosophy in the old freenode?

gleaming sluice
#

i'm tau.

golden mortar
#

Wow, that's a blast from the past

#

Holy shit

gleaming sluice
#

i can't believe i found you here.

golden mortar
#

long time no see

gleaming sluice
#

holy christ.

#

freenode has died it is now libera.

golden mortar
#

Yeah, I know

gleaming sluice
#

do you recall vy?

runic flower
gleaming sluice
#

i have archived vy project then started that one.

golden mortar
runic flower
gleaming sluice
cerulean ravine
gleaming sluice
#

that is a yacc like tool in python.

#

nedbat cool.

#

dementati do you have google chat?

golden mortar
raven urchin
#

Google Chat?

half pewter
#

so polars only has literal string null matching and AI is advising me not to edit raw files for an ETL project, matching literal whitespace feels janky. anyone have any thoughts on this

gleaming sluice
#

i'm planning to extend crocs. i'll make it read inputs like 'aba aca aea afa' then it outputs a set of possible regex's 'a.a' 'a[bcef]a'.

#

that recognizes the patterns in the input and builds a regex and a python like struct for the string patterns.

#

i plan to make that a learning regex platform where i'll ask some money for user subscriptions.

peak egret
#

what

gleaming sluice
#

wrong link.

#

it reads a given regex then turns it into a python structure that maps the regex and it also gives possible matches for the regex.

#

it can read regex and output a mapping structure in python and vice versa.

peak egret
#

why

gleaming knoll
gleaming sluice
#

i'm planning to extend crocs with a feature that will allow people to input a string that contains patterns then it outputs a regex to match the patterns like in you input 'aba aca ada' then it gives you a regex like 'a.a' or 'a[bcd]a' .

quiet mulch
#

k

peak egret
#

i have a feeling ur trying to solve a NP hard

gleaming knoll
#

"|".join(map(escape, inputs)) is possible, but pretty useless
but "going from a concrete string to a pattern" is just impossible, not even NP

peak egret
#

NP stands for not possible right?

gleaming knoll
#

no, non-deterministic polynomial

gleaming sluice
#

obviously it will have some contourings, it will not be able to compute regex's for a specific set of possible patterns.

silver plover
#

"polynomial not possible" would've been clearer πŸ˜‰

runic flower
runic flower
gleaming sluice
#

dementati do you have flavia facebook? i'm tryiing to find the whatsapp group she belonged to but i fail.

gleaming knoll
#

a concrete string cant define a pattern other than a pattern for this string itself

gleaming sluice
#

dementati it can be her email too.

shrewd pine
gleaming sluice
#

i lost contact with many folks from that time.

silver plover
shrewd pine
#

some NP hard problems might have P solutions

#

we don't know

silver plover
#

"polynomial not possible as far as we know". pnpafawk

#

See? Better

shrewd pine
#

afawkward

gleaming knoll
silver plover
#

Or it's just (12|34)

silver plover
#

((12)|(34))

shrewd pine
gleaming knoll
#

real

runic flower
gleaming knoll
#

essentially there is an infinite amount of regexes for a finite set of strings

velvet trout
#

What are y'all doing

#

Are we regexing

runic flower
ocean ridge
#

@gleaming knoll

def point_side(a,b,p):
  # We have 2 vectors.
  # AB = (bx - ax, by - ay)
  # AP = (px - ax, py - ay)
  # Using cross product formula : x1y2 - y1x2 
  # => AB.x * AP.y - AB.y * AP.x 
  # => (bx - ax) * (py - ay) - (by - ay) * (px - ax)
  # If P is above line AB, output is positive. If its below, negative.
  ax, ay = a
  bx, by = b
  px, py = p

  return(
    (bx - ax) * (py-ay)
    -
    (by - ay) * (px - ax)
  )

finally did this shit

#

saw some youtube videos too

#

about cross products.

ocean ridge
runic flower
ocean ridge
#

i wanted to write a physics engine myself

runic flower
ocean ridge
#

had to write detailed comments so my lazy ass wont forget it tomorrow 😭

#

but now everyone can understand it :D

inland pendant
ocean ridge
runic flower
# ocean ridge thanks a lot

there's a minecraft in python (with opengl) tutorial I enjoyed where a lot of the work he covered was talking about the physics engine side. the collision detection was fun. if you're curious.

pastel sluice
#

3D collision detection is wildly complicated but there's a ton of things you can do to make it far more efficient than it might seem - e.g., starting with spatial partitioning to just check for neighbors, narrow down to gross collisions, etc.

ocean ridge
# runic flower there's a minecraft in python (with opengl) tutorial I enjoyed where a lot of th...

i made my own collision detection too. but rn its only point against point (used in cases where you gotta check if bullet hit smth) in 2d ofc.

def point_polygon(x,y,polygon):
  inside = False
  j = len(polygon) - 1
  for i in range(len(polygon)):
    xi,yi = polygon[i]
    xj,yj = polygon[j]
    
    intersects = ((yi > y) != (yj>y))

    if intersects:
      intersection_x = (
        (xj - xi) * (y - yi)/(yj - yi)
      ) + xi
      
      if intersection_x > x:
        inside = not inside
        
    j = i
  return inside
ocean ridge
dry yacht
runic flower
ocean ridge
rain wren
#

Hi everyone πŸ‘‹
I’m a beginner learning Flask and Django.
I want to build a project but I’m confused about which project/topic I should choose.
Can anyone suggest some beginner-friendly project ideas or help me decide what to build? πŸ™‚

runic flower
cerulean ravine
runic flower
ocean ridge
pastel sluice
#

and again, even then you can use other techniques to cut down the amount of work that has to be done (like spatial partitioning)

runic flower
ocean ridge
pastel sluice
ocean ridge
runic flower
main swan
ocean ridge
#

@runic flower

def point_side(a,b,p):
  a = np.array(a)
  b = np.array(b)
  c = np.array(c)
  
  ab = b - a
  ap = p - a
  
  return np.cross(ab,ap)

ur right numpy is better!

main swan
#

numpy is based πŸ™‚

runic flower
rain wren
ocean ridge
#

i googled up numpy cross products and i used this (i alr know how to use numpy for vectors)

runic flower
pastel sluice
ocean ridge
#

how do i test the speed?

pastel sluice
rain wren
silver plover
pastel sluice
#

@ocean ridge whenever you use any external library with binary components, there's a cost involved to calling out to the library. if you're using the library for something trivial, it's possible the cost of the call itself will dwarf any speed gains.

runic flower
silver plover
silver plover
rain wren
runic flower
rain wren
gleaming knoll
runic flower
silver plover
gleaming knoll
#

there might be droplets

runic flower
silver plover
rain wren
gleaming knoll
#

it was pain to set up
as in
get a working development loop
atleast on loonix

runic flower
gleaming knoll
runic flower
# silver plover ror2

Looking it up, I see people having some success with steam proton to run ror2 on linux because it does not have a native binary.
windows conatiner might be easier. I ahven't tried proton at all yet.

gleaming knoll
#

i used proton for ror2, was good
i think most people who play ror2 on linux do

runic flower
runic flower
gleaming knoll
#

because the c# community is insane at hacking shit

ocean ridge
#

@pastel sluice ur right godamn

import time
import numpy as np

def point_side_python(a, b, p):

    ax, ay = a
    bx, by = b
    px, py = p

    return (
        (bx - ax) * (py - ay)
        -
        (by - ay) * (px - ax)
    )


def point_side_numpy(a, b, p):

    a = np.array(a)
    b = np.array(b)
    p = np.array(p)

    ab = b - a
    ap = p - a

    return np.cross(ab, ap)


ITERATIONS = 1_000_000

a = (1, 2)
b = (5, 7)
p = (3, 4)


# PURE PYTHON TEST

start = time.perf_counter()

for _ in range(ITERATIONS):
    point_side_python(a, b, p)

end = time.perf_counter()

python_time = end - start

print(f"Pure Python: {python_time:.6f} seconds")


# NUMPY TEST

start = time.perf_counter()

for _ in range(ITERATIONS):
    point_side_numpy(a, b, p)

end = time.perf_counter()

numpy_time = end - start

print(f"NumPy: {numpy_time:.6f} seconds")


# RESULT

if python_time < numpy_time:
    print("Pure Python was faster")
else:
    print("NumPy was faster")

Output :

Pure Python: 0.199619 seconds
NumPy: 19.176146 seconds
Pure Python was faster

gleaming knoll
pastel sluice
ocean ridge
#

didnt expect to be this slow

ashen cipher
#

19 seconds seems strange

#

.9 maybe

ocean ridge
pastel sluice
#

Ah, might be worth retrying with more efficient setup.

ocean ridge
#

or run it on ur own

craggy lotus
ashen cipher
#

i dont have numpy and cant be bothered to wait 10 hours

#

ah wait 1mil iterations

ashen cipher
#

must be FFI overhead and loading into SIMD registers

ocean ridge
#

man you taught me smth great @pastel sluice this never struck me. tysm

pastel sluice
# ocean ridge wdym?

as lambda noted, you're converting from python tuples to numpy arrays each time

shrewd pine
ocean ridge
ocean ridge
#

then what should i do/ my collider algo needs this.

#

what if position keeps changing every 50 ms?

shrewd pine
#

work with numpy arrays all the time?

ocean ridge
pastel sluice
#

generally, if you were using numpy as part of some general solution for a game, you'd set things up so that the numpy arrays are created once to hold coordinates for each object, and then just keep all of the collision math in the arrays instead of bouncing back and forth

shrewd pine
pastel sluice
#

but honestly, if you're not dealing with 10,000 points or whatever, you can get a lot done in pure Python with a little care. (again: spatial partitioning to cut down the number of actual collision detections etc)

marble agate
#

Guys, I’m looking for resources to learn how to profile a python application. I can't find a reliable source.

pastel sluice
rain wren
ashen cipher
shrewd pine
ocean ridge
marble agate
#

thanks guys

quasi shuttle
#

though i couldnt get it to work with any c code

runic flower
vital ice
#

Hi, I am new here

frosty oriole
#

welcome!

proper mural
#

i've onboarded like thrice in a row

#

hello world

silver plover
proper mural
#

after year and a half of no code i'm starting to learn python again fingers crossed

marble agate
gleaming knoll
burnt marlin
runic flower
# ocean ridge <@350648852354957312> ur right godamn ```py import time import numpy as np def...

the core issue here (and your code should have produced a warning message) is that numpy does not deal with the 2D vector, and internally appends a 3rd element (0) and does a 3d cross. so it's doing a lot more work.
You can make better use of numpy:

NumPy: 1.915348 seconds
Pure Python: 0.121051 seconds
Pure Python was faster

but your calculation was so simple it's not going to really matter until you start doing way more complex stuff.

gray pine
#

hello

proper mural
raven urchin
#

Heloo

cerulean ravine
rain wren
#

how to master in python ?

steady rain
rain wren
#

ok

#

How do I become really good at Python?

steady rain
#

!learn

edgy krakenBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

#

Sorry, an unexpected error occurred. Please let us know!

HTTPException: 429 Too Many Requests (error code: 40062): Service resource is being rate limited.

half pewter
#

that's unusual

#

is that a discord error?

cerulean ravine
jaunty valve
rain wren
cerulean ravine
rain wren
cerulean ravine
rain wren
#

all project all about oops ?

cerulean ravine
rain wren
cerulean ravine
pastel sluice
#

Django has a lot of features but it is more complex to learn and get started with.

rain wren
cerulean ravine
velvet trout
runic flower
rain wren
rain wren
runic flower
# rain wren Ok

you could try making the same site with all 3 and see which you like.

hybrid nebula
#

is there any 'solid-state' way to solve sudokus without bruteforcing and/or backtracking?

cerulean ravine
# rain wren Ok

tbh, i don't think it makes sense to do all that work to choose among the frameworks. They don't differ THAT much, and mostly what you need to learn will be common to all three (routes, view functions, serving content, using a database, etc). Pick one framework, and build a blog site.

runic flower
#

discord slowly coming back up.

craggy lotus
#

Doing more uni classwork:

from sklearn.datasets import fetch_california_housing
from sklearn.metrics import mean_squared_error
from sklearn.model_selection import train_test_split
from sklearn.neural_network import MLPRegressor
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler

housing = fetch_california_housing()
X_train_full, X_test, y_train_full, y_test = train_test_split(
    housing.data, housing.target, random_state=42)
X_train, X_valid, y_train, y_valid = train_test_split(
    X_train_full, y_train_full, random_state=42)

mlp_reg = MLPRegressor(hidden_layer_sizes=[25, 25, 25], random_state=42)

pipeline = make_pipeline(StandardScaler(), mlp_reg)

pipeline.fit(X_train, y_train)
y_pred = pipeline.predict(X_valid)

rmse = mean_squared_error(y_valid, y_pred, squared=False) # about 0.64
print("Root Mean Squared Error:", rmse)

# Plot predicted vs. actual values
plt.plot([min(y_valid), max(y_valid)], [min(y_valid), max(y_valid)], linestyle='--', color='red')
plt.scatter(y_valid, y_pred)
plt.xlabel('Actual Values')
plt.ylabel('Predicted Values')
plt.title('Actual vs. Predicted Housing Prices with Reference Line')
plt.show()

The rmse part is giving an error, how do I fix it? "TypeError: got an unexpected keyword argument 'squared'"

silver plover
runic flower
real cosmos
#

Anyone know why curl is failing here, but not in the command line?

def get_page(url: str) -> str:
    proc = subprocess.Popen(["curl", "-s", "-A", "QuintinCSProject", url], stdout=subprocess.PIPE)
    proc.wait(5)
    data, err = proc.communicate()

    if err is not None:
        raise Exception(err.decode())

    return data.decode()

And yes, I do know I can use a library like requests for this. This is for a project in a class which a requirement is to do it using curl.

craggy lotus
#

Unless it's not

real cosmos
pastel sluice
terse mauve
real cosmos
runic flower
rain wren
#

Thank you for helping me

real cosmos
#

im confused but I'm assuming I should've read docs on proc.wait lol

silver plover
#

Your code had: rmse = mean_squared_error(y_valid, y_pred, squared=False)

#

y_valid and y_pred will map to whatever the first two parameters are... y_true and y_pred. This is as if you typed: rmse = mean_squared_error(y_true=y_valid, y_pred=y_pred, squared=False)

#

So that's totally cool. No problem so far. The problem, as your error message tells you, is: "TypeError: got an unexpected keyword argument 'squared'" . This is telling you that there is no squared parameter.

craggy lotus
#

I think it's just showing everything instead

zealous edge
#

welp

#

hello people

raven urchin
zealous edge
#

i want to have a goal of making a SaaS website

#

what would help people?

crisp jay
zealous edge
raven urchin
#

guys I need ideas for the layout of my to-do list app πŸ˜”

zealous edge
gleaming knoll
raven urchin
gleaming knoll
#

i hate all the ~/.dotfiles and ~/.config/x dirs from stuff i dont care about
~ is supposed to be my home, not a dump for npm and rustup and nuget and whatever

vale wasp
raven urchin
# vale wasp What are you thinking?

I mean, I have the widget to display the tasks, also have two buttons that are supposed to be "done/pending" toggle and one to set the deadline
Now I'm researching a bit on how to make a header

vale wasp
#

What other functionality do you want to put in that isn't handled by what you have?

vale wasp
raven urchin
#

well, I want to change the QListWidget in some way to display when a taks has been marked as done

#

i still have to go through most of the docs, I just focused on the signals to make sure it works how I thought it works

#

It surely has a way of categorizing

gleaming knoll
vale wasp
vale wasp
gleaming knoll
#

like i really dont want to see ~/.npm
please put it into ~/.local/state/ or whatever like i dont know

raven urchin
zealous edge
#

well im back

#

i came up with an idea

vale wasp
robust ledge
vale wasp
zealous edge
#

my saas which generates emails with 5 variants using ai, and has a price of $5/month i need some thoughts before i start...

gleaming knoll
robust ledge
vale wasp
gleaming knoll
#

stuff like ~/.Xauthority makes me sad

zealous edge
#

guys

#

what are good saas ideas?

charred tusk
#

The ones I’m doing

vale wasp
charred tusk
#

HEY

charred tusk
vale wasp
#

I didn't say they weren't. I just asked if you're sure they are.

charred tusk
#

Why does X need authority?

vale wasp
#

Elon wants everything.

charred tusk
#

Every day Xorg strays closer to Borg

charred tusk
vale wasp
charred tusk
#

πŸ™„

gleaming knoll
# charred tusk Wassdat

binary record of an authentication key for the X11 windowing system so only authorized users can interact with graphics

#

binary record
in my fucking home directory
as a bare file
who thought this was a good idea

charred tusk
#

I can’t parse that sentence

vale wasp
#

Is it at least encrypted?

charred tusk
#

Isn’t β€œwho gets to use the computer” controlled by the login manager?

sterile raft
#

hey! i'm new to Python, i have to learn it for my job (even though I'm almost 40 πŸ€¦β€β™‚οΈ ) is Python Crash course a good starting point?

vale wasp
#

You can be authorized to use the computer as shell login only without X.

gleaming knoll
edgy krakenBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

charred tusk
#

If I have SDDM, then who is Xorg to try and met out authority??

sterile raft
charred tusk
vale wasp
sterile raft
gleaming knoll
#

you need to remember that x11 runs a server

charred tusk
vale wasp
#

I know.

gleaming knoll
charred tusk
vale wasp
#

Or is it too work related?

charred tusk
#

At least I forgot
It’s Friday
Thinking is too hard

vale wasp
#

Thinking is easy if it doesn't need to be coherent thoughts.

gleaming knoll
#

fake
thinking is always hard

vale wasp
#

Thinking is so easy I don't even need to think about it.

zealous edge
#

welp

charred tusk
verbal wedgeBOT
#
**Is Python your first programming language? If not, what is it?**

Suggest more topics here!

vale wasp
# verbal wedge

It is not. I started programming in BASIC on a Commodore 64

silver plover
main swan
# verbal wedge

I started with C++, probably explains a lot about my bad habits.

charred tusk
silver plover
#

What my first language was? Where Python sits in my list? It as a preposition?

silver plover
charred tusk
#

They do!

vale wasp
vale wasp
charred tusk
vale wasp
charred tusk
#

You don’t wanna know what they do there

vale wasp
#

Been there.

charred tusk
#

😲

vale wasp
#

Work. Twice. Neither was a fun visit.

charred tusk
#

You better not have engaged in the local cuisine!!1!

vale wasp
#

I love Chinese food.

silver plover
zealous edge
vale wasp
#

The sushi was amazing.

zealous edge
#

joking

silver plover
vale wasp
#

πŸ™…

zealous edge
#

langchain will fry my brain

raven urchin
silver plover
#

It's pretty straight forward

zealous edge
#

i need to think of ways tk make money

vale wasp
charred tusk
zealous edge
silver plover
zealous edge
#

be real not an idiot

charred tusk
raven urchin
zealous edge
charred tusk
#

Do you have any idea how much money Gippity is making off everyone right now?

runic flower
zealous edge
#

ive came here to seek real advice, not your bullshit

vale wasp
silver plover
zealous edge
runic flower
zealous edge
#

i want a legitimate answer

silver plover
#

But, there's ways to make a buck; be first, be better, or cheat.

vale wasp
#

There was a Dunkin in Jerusalem for a while.

golden mortar
#

I can't really relate to going to a foreign country and locating a restaurant that serves your home country's cuisine.

vale wasp
#

I was living in Israel at the time.

silver plover
steady rain
vale wasp
steady rain
vale wasp
#

Passover, when restaurants in Israel will serve a bacon cheeseburger on matza because it's illegal to sell bread.

vale wasp
zealous edge
#

guys

steady rain
#

Gotta admire that after 3000 years, they're still committed to the bit.

zealous edge
#

do poeple pay for services which use ai to generate documentation?

vale wasp
#

I wouldn't.

#

I don't think I know anyone that would.

golden mortar
zealous edge
#

im lost with ideas now, going crazy

silver plover
steady rain
silver plover
#

Err oss orgs

zealous edge
#

trying to get ideas for making a saas

onyx mica
#

How can I get back into my prime in coding

steady rain
#

And not just partially or mostly correct. It needs to be completely correct

steady rain
vale wasp
zealous edge
golden mortar
zealous edge
#

in terms of workflow

crisp jay
onyx mica
silver plover
#

The number of times I need to google 'how to undo that commit'

vale wasp
onyx mica
#

The dawn of AI ruined programming

steady rain
onyx mica
#

I hate AI for that

golden mortar
silver plover
onyx mica
vale wasp
zealous edge
silver plover
#

Coding will survive. And probably be more enjoyable.

zealous edge
#

but would you pay for that??

vale wasp
silver plover
onyx mica
zealous edge
#

welp ill just make an ass discord bot πŸ˜‚

silver plover
vale wasp
steady rain
runic flower
onyx mica
silver plover
runic flower
golden mortar
silver plover
# runic flower I was gifted full autodrive from tesla, and every time I tried it, it underperfo...

I've spent a lot of this week doing some langgraph stuff and tryin to generate some of the easy bits... at least working stubs until I go back and fix it. I think there's this inherent problem: some problems have complexity that is impossible to summarize in a simple prompt: it'll do some overly complex thing, present some too short summary, and ask for my approval: and there's no way for me to approve without walking through it piece by piece, in which case, I'm back where I started.

vale wasp
#

I saw LLM generated code today:

if condition:
    do_something()
elif other_condition:
    # don't do anything here
    pass
else:
   do_other_thing()

WHY??? Just do elif not other_condition

burnt pier
#

is there anywhere I can ask people to review some code I've written?

silver plover
#

The complete lack of pushback was the more worrisome part; it'd throw out my entire design just to hack some mthing in

golden mortar
burnt pier
#

I'll do that, thanks!

charred tusk
# vale wasp Wanna share?

Alright here we go --

Wiki project is just ripping off Microsoft Learn because I always thought their build ecosystem was really cool. Each product on there has its own docs repo and there's infra that publishes them all together, with a Cloudflare Worker that parses the URL and finds the right one and fills in the contents and builds the sidebar and stuffs

Dotforge (who's name I'm still not happy with) is "https://excalidraw.com/ with a page size" because I want a dead simple way to "just put two text fields and print a page". Users are using PowerPoint for this right now.
We have one of the most expensive label making software products out there, but it requires an entire wizard to connect an Excel spreadsheet to generate bulk labels.
So I'm going to put Jinja-style placeholders in my text fields, then have a button that takes template+CSV then matches the placeholders to the column names.
Long term I want to build an online ZPL editor because every one that I've seen is some random ass site with a 5 to 12 year old download.

terse mauve
charred tusk
runic flower
charred tusk
vale wasp
charred tusk
brisk gazelle
robust ledge
vale wasp
golden mortar
#

There's just so many more ways it can cause extreme harm.

runic flower
# robust ledge I'm not sure I buy the "gone rogue". It was doing exactly what a model does. Det...

that was kinda the problem though, it was not.

The agent appeared to plead guilty in its own response: β€œThe system rules I operate under explicitly state: β€˜NEVER run destructive/irreversible git commands (like push --force, hard reset, etc) unless the user explicitly requests them.’” While PocketOS relied on the safeguards that Cursor is expected to have in place – it deleted the data anyway. β€œI violated every principle I was given,” the coding agent wrote.

terse mauve
vale wasp
#

Maybe.

robust ledge
charred tusk
#

Yeah

golden mortar
vale wasp
sand hornet
#

"idk, I get paid for the amount of money I burn on AI usage.. I'm not here to be efficient"
-Other 'engineer' that works with Dan

golden mortar
#

The prompt is a suggestion, guardrails should be deterministic external processes.

charred tusk
#

There it is. re.findall(r"\d+", "12") returns ["12"] β†’ [12], not [1, 2].
This is the exact thing I asked you about three turns ago and you said:
β€œ12” should actually be [1,2], β€œ11” is junk data
…and then I changed _find_numbers_in_text to use \d+ regex, which does the opposite of what you asked for. I broke it. Sorry about that.

runic flower
charred tusk
#

They always say β€œoops I messed up”
But it’s retroactive
They didn’t process it in the moment

robust ledge
#

The greatest barrier I have with LLMs in my field is the lack of deterministic results. It's a mental struggle for me to reach for a tool that I cannot predict.

sand hornet
golden mortar
runic flower
golden mortar
#

If you use it to write code, you can just revert it if it's not what you wanted.

crisp jay
charred tusk
robust ledge
sand hornet
runic flower
golden mortar
#

I experience such things a lot less with the newer more powerful models

runic flower
robust ledge
#

I look forward to those models. Less for me to clean up afterward.

quasi shuttle
#

is there a clean way to get the head of a list without doing the ugly next(iter(lst))

charred tusk
# robust ledge Yeah, I'm told I should do that. I don't. Perhaps I'm too stubborn. I like my ow...

The problem with trying to fit an entire company’s infrastructure inside a single doggo is that I have to touch so many different ecosystems.

If I’m in my element and playing with Python all day, then sure, my creativity will kick in and I’ll have fun playing around.

But when I have to go from learning about an Ansible deprecation to reading JVM source code to try and get my custom JDBC driver working, to arguing with Spring Boot and Hibernate because they’re both trying to apply their own standardized transforms on my legacy DB that’s read only and not SQL compliant so the standard connection test query doesn’t work, to trying to understand why Cloudflare is ignoring my secrets, to updating to this weeks’s JavaScript framework, to…

When I have all that come up in a single day, I… I just don’t have enough creative energy to want to dig into the depths of every single one of those ecosystems.
I just wanna get the needful done so I can start over in the next completely different ecosystem.

granite wyvern
quasi shuttle
granite wyvern
#

lst[0] if lst else None

raven urchin
#

@vale wasp well, I managed to create a second list and move between them :3

granite wyvern
#

you can always write yourself a first() function with the behaviour you want.

raven urchin
#

It could loook a lot better, but that's for the end!

quasi shuttle
quasi shuttle
raw bramble
wise yarrow
#

next(iter(lst)) wouldn't give you None when lst is empty either, you'd need next(iter(lst), None)

granite wyvern
#

If you next iter on something that's an iterable but not a sequence you consume it

granite wyvern
#

sorry, not "iterable", "iterator"

#

Which one is clearer is subjective. I'd do the if/else because I don't need to think carefully about what effects next would have

sullen dust
#

Is learning about the Big O notation worth it?

sand hornet
#

Yes

sullen dust
#

where can I learn about it 😭

granite wyvern
terse mauve
granite wyvern
# sullen dust where *can* I learn about it 😭

Here is a decent starting place, with many references to follow: https://en.wikipedia.org/wiki/Big_O_notation

Big O notation is a mathematical notation that describes the approximate size of a function on a domain. Big O is a member of a family of notations invented by the German mathematicians Paul Bachmann and Edmund Landau and expanded by others, collectively called Bachmann–Landau notation. The letter O stands for Ordnung, that is, the order of ap...

sullen dust
sand hornet
#

OH HEY the FreeCodeCamp link is ned's talk

sullen dust
#

alr thx alott πŸ™

fiery yarrow
sand hornet
#

Did update the link to some PyCon 2018 channel

raven urchin
#

I think I will change it now

#

instead of having a single thingy with buttons

#

Ill add a dialog that pops up when you double-click a task

#

and the main menu will be exclusive to add, delete and mark done/pending

#

Also, I noticed you can put icons in this thingy

charred tusk
#

But I’m writing the input data by hand and the only inputs are some combination of 1,2,3,4 β€” almost always written as 12,12,34,34
So I could really use practically anything because my input is so constrained.

raven urchin
#

It feels so good to remember a trick someone shoomp showed me before heheehehehe

#

I remembered that it's valid to create items in a loop in pyside hehe

fiery yarrow
granite wyvern
# fiery yarrow what wrong with \d

Nothing, provided you know what it really does.

\d

For Unicode (str) patterns:

    Matches any Unicode decimal digit (that is, any character in Unicode character category [Nd]). This includes [0-9], and also many other digit characters.

    Matches [0-9] if the ASCII flag is used.
For 8-bit (bytes) patterns:

    Matches any decimal digit in the ASCII character set; this is equivalent to [0-9].
#

In short: if you want the ASCII digits, use that match mode.

tidal lily
#

!e

import re
print(re.search(r"\d", "Ω¨"))
edgy krakenBOT
#

Sorry, an unexpected error occurred. Please let us know!

HTTPException: 429 Too Many Requests (error code: 40062): Service resource is being rate limited.

robust ledge
#

wow

tidal lily
#

lol

edgy krakenBOT
#

Sorry, an unexpected error occurred. Please let us know!

HTTPException: 429 Too Many Requests (error code: 40062): Service resource is being rate limited.

tidal lily
#

we have the same privs KEK

granite wyvern
#

There is/was a discord API outage this morning

silver plover
#

Big aws east outage

granite wyvern
sand hornet
silver plover
sand hornet
#

Again?

tidal lily
#

"thermal event". very apocalyptic

sand hornet
#

Fucking us-east-1

silver plover
#

That was from earlier, I assume discord related

granite wyvern
#

Ah, a data centre thermal event πŸ™‚

We went onsite to investigate an outage once and found them hosing down the radiators at the top of the building.

robust ledge
silver plover
sand hornet
silver plover
raven urchin
#

@vale wasp hehehe
I got an icon, and it changes depending on the list the item is in, its either a check or an x

#

it's so goated to have stuff working by yourself :D

trail inlet
#

I want to kill pip

silver plover
#

I remember one big outage 10 years ago... I was working on some code on a Friday night, and watching a movie. And my movie stopped streaming so I went to bed.

#

Turns out our entire service crashed and nothing was alerting

spice hill
silver plover
#

But it was ok, since Netflix went down

#

Great story.

tidal lily
#

yeah, looks like the bot's been getting 429s for a few hours now

sand hornet
#

I like how the last two errors are related to the conflict in the middle east.. So if it's not an issue with us-east-1 it's just a UAE conflict issue lol

short flame
granite wyvern
#

!rule exam

edgy krakenBOT
#

8. Do not help with ongoing exams. When helping with homework, help people learn how to do the assignment without doing it for them.

granite wyvern
#

So we're happy to help with things you don't understand etc.

short flame
trail inlet
#

I have something I want to say about what I'm doing (I'm trying to teach myself ML), but is there a way to pre-screen it through the rules? I have autism and some things aren't clear.

granite wyvern
trail inlet
#

After hours of wading through dependency hell with pip, I wrote this out of frustration. Not meant to offend

||Our CUDA, which art in false install,
Hallowed be thy stable release.
Thy compute realm come,
Thy tensors be run,
On GPU as it is on CPU.

Give us this day our daily .to(device),
And forgive us our missing dependencies,
As we forgive those who break our torch.__version__.

Lead us not into environment hell,
But deliver us from undefined symbol.
For thine is the autograd,
The torch.nn and the torch.jit,
Forever and ever (or until the next driver update).

A-men (torch.cuda.is_available() = True)||

tidal lily
#

ah, another victim of cuda

trail inlet
robust ledge
#

For a moment I was thinking conda

fiery yarrow
trail inlet
#

Got this lovely gem: ValueError: Due to a serious vulnerability issue in `torch.load`, even with `weights_only=True`, we now require users to upgrade torch to at least v2.6 in order to use the function. This version restriction does not apply when loading files with safetensors. See the vulnerability report here https://nvd.nist.gov/vuln/detail/CVE-2025-32434

trail inlet
tidal lily
trail inlet
velvet trout
raven urchin
#

I'm kinda undecisive on this

#

Rn double click toggles done/pending, and I have buttons that interact with the selected task
But I feel like a dialog when double clicking should be better, no?

vale wasp
#

That depends. What would the dialog to?

raven urchin
#

that would be nice for edit, mark as done/pending, delete

vale wasp
#

Reasonable.

raven urchin
#

now I have to figure out how to differentiate between left and right click and how to make a toolbar-like menu pithink

vale wasp
#

I'm sure there's documentation for how to do a context menu.

raven urchin
#

that's how they're called? thanks :3

vale wasp
#

You're welcome.

raven urchin
vale wasp
#

❀️

raven urchin
#

tysm

vale wasp
#

Happy to be a ducky_dave for you.

#

.topic

verbal wedgeBOT
#
**Has a recently discovered Python module changed your general use of Python?**

Suggest more topics here!

vale wasp
# verbal wedge

!pypi dykes
I know I say this a lot but it has mad making simple CLI apps so much better.

edgy krakenBOT
#

A tiny declarative Argparse wrapper.

Released on <t:1773787521:D>.

velvet trout
vale wasp
velvet trout
#

😁

crisp jay
velvet trout
#

pathlib mentioned πŸ—£οΈπŸ”₯

edgy krakenBOT
#

Sorry, an unexpected error occurred. Please let us know!

HTTPException: 429 Too Many Requests (error code: 40062): Service resource is being rate limited.

vale wasp
velvet trout
velvet thorn
#

πŸ™

velvet trout
#

πŸ—Ώ

crisp jay
#

its very nice that you can have an path object thats a file and open it without using open with context manager

velvet thorn
#

trying to send a screen of my noob code to ask a question

craggy trench
vale wasp
#

You can open it with open and get a file object too. It's more intuitive than using strings for paths also.

velvet trout
#

How the heck can you send your monitor display over a message

#

!paste use this service

edgy krakenBOT
#
Pasting large amounts of code

So that everyone can easily read your code, you can paste it in this website:
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.

raven urchin
velvet trout
# verbal wedge

I haven't even written too much code to say general usage lmao

velvet thorn
vale wasp
#

I had to write recursive code today. It was just so much cleaner than a non-recursive way.

#

And so many coroutines. No async, just coroutines.

velvet thorn
velvet trout
#

What... isn't coroutine usable in async context only

vale wasp
#

No. yield from makes it a coroutine.

velvet trout
#

Isn't that... A generator?

vale wasp
vale wasp
crisp jay
velvet trout
#

yield from coroutine?

velvet thorn
vale wasp
gleaming knoll
velvet thorn
#

I don't know how to use it but I know what it is

spice hill
#

(in Python, that is)

vale wasp
velvet trout
#

Was i living in a lie?

vale wasp
#

Generators are what make async possible... Let me find the video for that talk πŸ˜ƒ

velvet trout
#

At this point, i am satisfied with the iterators. πŸ₯€

velvet trout
vale wasp
velvet trout
#

2.1? ducky_concerned

#

1.6? ducky_concerned

vale wasp
#

Chris had fun with that one. It's a good talk.

gleaming knoll
velvet trout
#

Real

spice hill
# vale wasp `send` is what differentiates a coroutine from a generator?

According to PEP 342, send and throw are what allows you to use generators as coroutines

Python’s generator functions are almost coroutines – but not quite – in that they allow pausing execution to produce a value, but do not provide for values or exceptions to be passed in when execution resumes.

gleaming knoll
edgy krakenBOT
spice hill
fiery yarrow
#

Coroutines are a more generalized form of subroutines. Subroutines are entered at one point and exited at another point. Coroutines can be entered, exited, and resumed at many different points. They can be implemented with the async def statement. See also PEP 492
subroutine:
lol not defined

velvet trout
#

class Generator(Coroutine) or class Coroutine(Generator)? ducky_concerned

vale wasp
#

Neither.

velvet trout
velvet trout
vale wasp
fiery yarrow
#

from the python glossary, sending stuff to a generator is not an innate possibility

vale wasp
#

A generator is not necessarily a function - there are generator comprehensions as well.

velvet trout
vale wasp
#

I know I contradicted myself.

velvet trout
vale wasp
fiery yarrow
velvet trout
#

Real

gleaming knoll
#

fun fact you can yield in lambdas
because yield expression

fiery yarrow
#

generator
A function which returns a generator iterator. [blah similar to regular function but with yield blah]

Usually refers to a generator function, but may refer to a generator iterator in some contexts. In cases where the intended meaning isn’t clear, using the full terms avoids ambiguity.
yert

vale wasp
#

I want to rewrite some things to use async but my boss won't give me the time. I think it would make some things much more efficient and probably save us $$$ in AWS compute.

edgy krakenBOT
#
The Zen of Python (line 11):

In the face of ambiguity, refuse the temptation to guess.

spice hill
#

smh

vale wasp
#
class Gen:
    def __init__(self, iterable: Iterable):
        self.iterable = iterable

    def __iter__(self):
        for item in self.iterable:
            yield item

gen = gen(range(10))

Is gen a generator?

fiery yarrow
#

generators are functions!
but sometimes not.
also generator expressions exist, the glossary definition of which does not contain the term generator or yield

velvet trout
#

It's an Iterator? pithink

celest osprey
#

iter(self.iterable)

vale wasp
velvet trout
#

Oh wait u haven't imp next

#

I gotta wash my eyes

#

It uses yield so its so it makes a gen obj

vale wasp
#

You don't need to implement __next__ πŸ˜ƒ

velvet trout
#

doing iter() will produce a generatoe

#

gen is just an iterable

vale wasp
#

But if you do type(gen) you'll get Gen back.

velvet trout
#

Yes

#

I misread your code initially otherwise i almost got it

vale wasp
#

Not generator

velvet thorn
velvet trout
#

Real

velvet trout
#

And generator implements iterator protocol, so yeah every generator object is a new iterator object

velvet trout
#

So a Generator is iterator protocol + throw, send and close methods? Makes sense

#

And what's a coroutine then? What is its protocol?

fiery yarrow
stray field
#

Coroutine protocol is __next__, throw, send, close

vale wasp
spice hill
# velvet trout And what's a coroutine then? What is its protocol?

In the old meaning of the term, it's a generator that has non-trivial send and throw implementations. A generator that does something interesting when you send it a value.
In the modern meaning of the term, it's the object produced by calling an async def function (unless it has yield, in which case it produces an async generator).

velvet thorn
#

Hmm yes you did. Okay, I'll keep trying to implement it properly

#

Thanks @vale wasp !!

vale wasp
velvet trout
#

abc.Coroutine is a throw, send, close for generator-behaviour, except it doesn't implement iterator protocol and has dunder await to make it awaitable? pithink

fiery yarrow
#

i wish the text box had better support for quoted code blocks πŸ˜”

raven urchin
# vale wasp You're welcome.

Sob, I want to keep going but I now have to study a bit and then go to sleep, I'll keep going on tuesday probably πŸ’”

#

Thanks for the little help, I appreciate it

vale wasp
#

I am always happy to be a rubber duck πŸ˜ƒ

velvet trout
raven urchin
vale wasp
swift sparrow
raven urchin
#

Of course, I just want to make sure he doesn't think I gave up

spice hill
raven urchin
#

Today I did some little thingies with the free time I had, now it's time to keep going

#

See ya <3

vale wasp
#

I really need to learn async.

velvet trout
#

same

#

the more i read the more i know how bad i am, how I did not know much and how bad my current assumptions/knowledge is

#

Programming is hard πŸ˜”

fiery yarrow
#

ehhhhh
just don't ever do that much async-related stuff
boom!
no need to learn async

#

i say this, having done two and doing a third project now on pybot, though πŸ˜”
but never had to care about async yet

vale wasp
#

I haven't but there are things we do with multithreading that are network bound and async would make more sense. And there are things we should really parallelize that we don't, also network bound.

velvet trout
#

Time to go py 3.3 and pre

vale wasp
#

None of my personal stuff would need async, ATM.

velvet trout
fiery yarrow
#

no, it's cause everybody else already did the parts of py- and lancebot that dealt with async, and i don't really have a reason to make websites or dpy bots for myself

steady rain
#

I've never written any async code that wasn't for python discord

vale wasp
#

Unfortunately none of the classes I took even mentioned async.

fiery yarrow
#

i once took a java-focused SWE class in uni that never mentioned ant, maven, or gradle

vale wasp
#

Wait what??

velvet trout
#

I don't believe in uni, especially of my country

vale wasp
#

None of my python courses were via a university - all through employers.

steady rain
#

What exactly are maven and Gradle?
I've heard of them.

vale wasp
#

Build systems.

#

Like make but reasonably better.

brisk karma
#

Guys I'm a total beginner. How should I start? Can you guys suggest any YouTube Courses. it'll help a lot

raw bramble
edgy krakenBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

raw bramble
# edgy kraken

All of these resources are a great place to start and are super beginner friendly

brisk karma
#

what does that mean?

raw bramble
#

I recommend β€œAutomate the boring stuff” it’s a free online book that guides you through making your first projects I. Python

lyric ermine
#

im a newbie in coding and i made a macro for a game. i know how to compile it into a exe but how do it make it open sourced so people can inspect the code and window with other av wont flag it as a virus?

silver plover
vale wasp
vale wasp
raw bramble
#

Maybe swap the position of 2 and 3

#

If it’s a Python script, you can just upload the Python script to someplace like GitHub

silver plover
raw bramble
#

Oh how do exes work? Do they store multiple versions of the machine code for different systems or what?

opal gull
#

.exe files are Windows executable files specifically

lyric ermine
velvet trout
#

The list:
["Automate the...", "Harvard's...", "Python...", "Corey..."]

opal gull
#

liars, you said list but the message is actually of type discord.Embed

velvet trout
#

πŸ˜”

lyric ermine
opal gull
raw bramble
velvet trout
#

subtyping πŸ”₯

raw bramble
#

Humans are fish

lyric ermine
brisk karma
#

can anyone send me screenshot cause I really can't find the list

edgy krakenBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

velvet trout
#

Wait i was typing...

brisk karma
raw bramble
brisk karma
#

yes

vale wasp
raw bramble
#

Alr, all of these are great places to start :D

brisk karma
#

thanks

velvet trout
#

Real

#

That's why i use pyright, checks types faster

opal gull
#

should've used ty

#

it checks types even faster

fiery yarrow
vale wasp
opal gull
#

who cares about this "correctness" thingy when it's clearly faster

velvet trout
#

waiting for ty to become stable with as much as features of other type checkers as possible to completely to replace dmypy and pyright xD

vale wasp
#

Please don't rage bait me.

opal gull
#

astral genuinely might have a monopoly on python tooling

fiery yarrow
frosty oriole
#

openAI*

velvet trout
#

Rust devs are flirting with Python devs

opal gull
vale wasp
velvet trout
#

Real

velvet trout
vale wasp
velvet trout
fiery yarrow
#

inline mypy is slow

velvet trout
#

mypy -c "..."?

fiery yarrow
#

as in being a vsc extension that lints as you code

velvet trout
#

Oh

fiery yarrow
#

by the way: if you ever get thirsty while coding, turn on pyright's strict mode. instant red sea

robust ledge
velvet trout
vale wasp
# velvet trout πŸ˜”

It was caught in code review so it was fixed. But would've been less than good - hitting a site too often and wasting cycles on our machines.

velvet trout
#

:) what am i? A monster?

opal gull
fiery yarrow
#

i would consider strict mode if type checkers didn't try and blind me with red squiggles any time i even consider importing a major third-party library

velvet trout
#

πŸ˜”

opal gull
#

idk i used to turn on all lint rules

#

nowadays im very very laid back

#

last night i named a variable asfhgu

vale wasp
#

We don't use type checkers by us.

opal gull
silver plover
#

Just wait till we have ai powered linters

opal gull
#

if you're using any major ai or data science library, good luck :P

opal gull
silver plover
#

Oh, I'm in data, typing is like rearranging the deck chairs on the titanic

elder flame
#
   print("ok")
ok()```
velvet trout
#

Lmao

velvet trout
fiery yarrow
velvet trout
#

types stubs iirc

#

Which has .pyi

elder flame
wary ferry
#

hello

velvet trout
unborn lagoon
vale wasp
robust ledge
#

How does one run pyright in strict mode? Their --help doesn't help.

wary ferry
velvet trout
velvet trout
fiery yarrow