ponym

@ponym@chaos.social

GenY FOSS Lover | Python Programmer
The funky News-Aggregator
in love with pydantic+logseq
Alt-Metaller, i like humus and sokrates!

"Pessimistisch in der Analyse, optimistisch in der Lรถsung"

This profile is from a federated server and may be incomplete. Browse more on the original instance.

lukas, (edited ) to random German
@lukas@social.lukas-schieren.de avatar

"Besser nicht digitalisieren, als schlecht digitalisieren!"

Timestamp 17:32 - 17:41 beim

#37c3

ponym,

@lukas Weisst du von wem das Zitat stammt?

ponym, to random

@willmcgugan Say I take a #textual Input[str] and initialize it without any options, then valid_empty is set to False, but the field is still valid with an empty string since no validators were given. Is this the expected behaviour or should I open an issue? BTW textual and you are awesome! Just spent my hole holidays with textual building a #jsonschschema form lib. ๐Ÿค“

ponym, to python German

people: I want to build a package that is based on the new pydantic. It should feature click cli and typer cli generation from pydantic models jsonschema, api cli generation from openapi spec and form generation for html using jsonschema. Who is in?

ponym,

One building block that allows me having forms in the terminal (and later in the web) I just built. Now my data models get more power! My tests generate code when I change models, my registries tell me what models are capable of and a smart task runner should follow soon.

The form you see in the terminal, it's this library, it will be released soon: https://github.com/gh-PonyM/textual-jsonschema-form

vwbusguy, (edited ) to python
@vwbusguy@mastodon.online avatar

Here's a #Python pop-quiz for you.

Without testing/looking it up - What does this result in?

'300%i%%' % 3

#programming

ponym,

@vwbusguy I'd write a test like for regex! NOT A REAL WORLD EXAMPLE! =)

treyhunner, to python
@treyhunner@mastodon.social avatar

This week's YouTube video is on why I avoid #Python's functools.reduce.

Mainly:

  1. Python already has many specialized reduction functions
  2. "for" loops are often more readable than reduce

More on how reduce works & why I avoid it ๐Ÿ“บ ๐Ÿ‘‡
https://youtu.be/yTWGRGlZU08?feature=shared

(FYI: I share a very short Python tidbit every week on the Python Morsels YouTube channel ๐ŸŒ )

ponym,

@treyhunner Ha yes๐Ÿ˜‰ the zen of python. Same for the map operator, right?... probably can be expressed with a list comprehension.

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