absamma, to programming

Modular finds its Mojo, a #Python superset with C-level speed • The Register https://www.theregister.com/2023/05/05/modular_struts_its_mojo_a/

gamedevdaily, to programming

Free eBook for beginner game developers "2D Game Development: From Zero To Hero" available with examples provided in #lua #python #cpp or pseudocode.
https://therealpenaz91.itch.io/2dgd-f0th
#gamedev #GameDevelopment

mattb, to programming
@mattb@hachyderm.io avatar

Damn, #python pip is shit.

mgorny, to programming

Oh, just great!

It turns out that #urllib3 added a totally bonkers OpenSSL version check, and they broke a lot of systems as a result. Ofc the immediate result is dozens of packages pinning urllib3 < 2, and if they continue their negligence it's going to go into hundreds.

Ofc, it is a mess that distro maintainers will have to clean up eventually. I mean, removing the pins when they do not apply to us.

https://github.com/urllib3/urllib3/issues/2168#issuecomment-1535053569
https://github.com/urllib3/urllib3/pull/2705/files#diff-793e73e680de400394dedf7d080fbcef6e74c065ffcc10b8c3dc11217a786e0b

#Gentoo #Python

codidact, to programming

A community member is looking for #codereview on a #JSON log formatter for #Python. Is this approach sound? You can post an answer addressing some or all of the (small) body of code shown; this isn't conventional Q&A where you need to have "the answer". Can you help? https://software.codidact.com/posts/288091

cazabon,

@codidact Can't comment there without signing up, so ...

It's not a bad approach at all. But I would say back up a step, and don't necessarily reinvent the wheel. There are packages that already do everything desired here - structlog, for example - with varying levels of flexibility and functionality.

codidact,

@cazabon thanks! I'll pass that on. Yes, you need to have an account to post, but we try to make that lightweight (though we don't have "sign in with your Google(etc) account", I'm afraid). And we limit access to PII to "need to know", which is two DB admins and nobody else right now.

twizzay, to programming

>>> (5 > 3) + (3 < 7)
2

:python:

#python

cazabon,

@twizzay I really shouldn't say they have two functions. They have others, of course. But they have two functions germane to this problem.

treyhunner,
@treyhunner@mastodon.social avatar

@cazabon @twizzay another way to look at this: it's the comma that makes a tuple rather than parentheses.

This works for example:

t = 5, 3

As does this (though this one is a bug waiting to happen):

t = 5,

The one exception to tuples not needing parentheses is an empty tuple. Though that's a somewhat unusual thing to make.

t = ()

CodenameTim, to programming
@CodenameTim@fosstodon.org avatar

I have a junior #python dev that's ready for his first job. If you're looking in that space, let me know. He's hard-working, persistent and literally loves programming. The problem we worked on today had him so excited. He just needs a shot at this point.

shawnbrown, to programming
@shawnbrown@mstdn.social avatar

GraphBLAS: Sparse Linear Algebra Gone Wild! by Erik Welch (@eriknw) and Jim Kitchen (https://github.com/jim22k).

#Python #PyCon #PosterSession #PyCon2023 @PyConUS

itnewsbot, to programming

ChatGPT Makes a 3D Model: The Secret Ingredient? Much Patience - ChatGPT is an AI large language model (LLM) which specializes in conversation. Whi... - https://hackaday.com/2023/05/04/chatgpt-makes-a-3d-model-the-secret-ingredient-much-patience/ #artificialintelligence #softwarehacks #3dmodeling #scripting #chatgpt #freecad #python #llm #ai

walkerb, to programming

In response to my Leibniz #python test, I got a lot of people saying 'just use numpy library'.
So I thought I'd try it.

Its not as simple as just adding a library - you have to rewrite the function using vector math.

When done it brought similar performance as the #java version.

Optimized version implemented in vectors in numpy. Performance similar to the looped Java version.

mariatta, to programming
@mariatta@fosstodon.org avatar

I just submitted a (brand new) talk to @northbaypython

Let's see if they like it!

https://2023.northbaypython.org/speak

#nbpy #Python #Conference #CFP

chrisjrn, to programming
@chrisjrn@social.coop avatar

It's just over two weeks from May 19th, which means two weeks to get your #nbpy talk proposals in!

Three reasons you might want to get a talk in:

  1. We have a glorious semi-outdoor venue, and speakers get a green room where you can ponder the rolling hills of Sonoma County as you relax before your talk.
  2. We're a welcoming event, with a friendly audience of everyone from students to core #Python developers.
  3. We want to be able to invite you to speak!

Details: https://pretalx.northbaypython.org/nbpy-2023/submit/

chrisjrn,
@chrisjrn@social.coop avatar

This is a photo of a cattle migration taken from the picture window (no glass!) in the #npby speaker green room.

Hills! Cows! Fresh, bucolic air! Views as far as Mt Diablo!

You too could enjoy this view if one of the talk proposals you make gets accepted… but first, you'll need to submit a talk proposal!

Submissions close May 19th. All the details: https://2023.northbaypython.org/speak #python

kytta, to programming
@kytta@fosstodon.org avatar
StefanHabel, to programming
@StefanHabel@mastodon.social avatar
fabian, to programming
@fabian@floss.social avatar

In my search for a #Pinboard alternative I found #Linkding, and it looks almost exactly what I was looking for.

It's only semi-social (closed/friends-only), could need an option for public access, and various tweaks here and there – but it’s very hackable (#Django, #Python, #svelte, #SQLite)

:github: https://github.com/sissbruecker/linkding

#socialBookmarking #selfHosted

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines