mblayman, to python
@mblayman@mastodon.social avatar

On this Learn Python By Example video, you'll get a look at list operations in .

Check it out!

https://www.youtube.com/watch?v=jhZCkdSM85E

treyhunner, to python
@treyhunner@mastodon.social avatar

The next time you find an if-else in your code where both the "if" and the "else" return from the function that you're in, you could think of that "else" as unnecessary.

Read more 👉 https://trey.io/FlSco3

paulox, to python
@paulox@fosstodon.org avatar
driscollis, to python
@driscollis@mastodon.social avatar

Pop Quiz 🐍❓

What is the output of this crazy code?

A) [21, 49, 15]
B) [0, 49, 88]
C) [49]
D) None of the above

ehrba, to linux German
@ehrba@verkehrswende.social avatar

Hi #GISchat

Which #Linux Distribution would you recommend for working with #QGIS and #python / #jupyternotebook ?

villares, to python Portuguese
@villares@pynews.com.br avatar
treyhunner, to python
@treyhunner@mastodon.social avatar

The start index is inclusive, but the stop index is exclusive, meaning Python stops just before the stop index.

Read more 👉 https://trey.io/ZEuawA

treyhunner, to python
@treyhunner@mastodon.social avatar

What's the difference between "==" and "is" in #Python?

• "==" checks for equality (do 2 objects represent the same value)
• "is" checks for identity (do 2 variables/references point to the same object)

https://pym.dev/equality-vs-identity/

ehmatthes, to random
@ehmatthes@fosstodon.org avatar

django-simple-depoy 0.6.3 is out. This fixes a bug with Platform.sh deployments, and improves consistency internally across platforms.

Also, 60+ vague exploratory issues have been trimmed to ~20 task-oriented issues.

https://github.com/ehmatthes/django-simple-deploy/blob/main/CHANGELOG.md

#Python #Django

davidism, to python
@davidism@mas.to avatar

Here's my talk "State of Pallets 2024" from FlaskCon at PyCon US 2024, as well a playlist of the other talks! https://www.youtube.com/watch?v=TYeMf0bCbr8&list=PL-MSuSC-Kjb6n0HsxU_knxCOLuToQm44z

nedbat, to python
@nedbat@hachyderm.io avatar

New blog post: One way to fix #Python circular imports.

There are better ways, but sometimes simply changing the form of the import statements can untangle the problem:

https://nedbatchelder.com/blog/202405/one_way_to_fix_python_circular_imports.html

mahryekuh, to python
@mahryekuh@fosstodon.org avatar

I've finally started using and liking Poetry for Python, and I'm considering replacing my somewhat complex pip-tools setup with it.

However, Astral's uv is also around the corner. The speed boost aside, it doesn't tempt me yet, though.

Choices, choices.

ThePSF, to python
@ThePSF@fosstodon.org avatar

🗳️📣 Are you interested in running for or nominating someone in the upcoming PSF Board election? Join the Office Hours on Discord to learn more and ask current Board Directors your questions on June 11th, 4 PM UTC, and June 18th, 12 PM UTC
https://pyfound.blogspot.com/2024/05/blog-post.html

ivelasq3, to python
@ivelasq3@fosstodon.org avatar

I can’t wait to present “Automate Your Quarto Dashboards with Posit Connect” at the monthly End-to-End Workflow with Posit Team!

• Create an ETL script on Posit Workbench that reruns on a schedule on Posit Connect
• Pin a dataset on Posit Connect and reading it in a document
• Use to create a dashboard (new in 1.4)!
• Schedule the dashboard to update on Posit Connect

And it’s my first project completely done in 🐍

Add it to your calendar: https://pos.it/team-demo

veronica, to python
@veronica@mastodon.online avatar

Any Qt + Python devs out there with any experience on calling deleteLater() from the Python side?

I have some costly dialogs I want cleared on close, and so far I've been running deleteLater() in the closeEvent, which is clearly a little risky. I do get the very rare segfault especially if I close one particular dialog which has a QTimer singleShot call. If the deleteLater() is called when it is running, I get a RunTImeError.

pyconafrica, to python
@pyconafrica@mastodon.social avatar

🌍✨ Great news!! PyCon Africa’s Financial Grant is now open.

Interested in attending PyCon Africa but worried about the costs? We’ve got you covered! 🎉 Our generous financial assistance programme is here to support attendees who would otherwise find it difficult to join us.

🔗 For more information kindly visit -: https://africa.pycon.org/2024/fin-aid/

stevensanderson, to Excel
@stevensanderson@mstdn.social avatar

📊 Enhance Your Excel Skills with R! 📊 I wrote an R function using RDCOMClient to count sheets in an Excel workbook.

This tool automates Excel tasks, boosting productivity. Learn more techniques like this in my new book co-authored with David Kun: "Extending Excel with Python and R." Discover practical tips to enhance your data analysis skills. Get your copy here: https://packt.link/oTyZJ

#Excel #RProgramming #Python #DataScience #Automation #Programming #Coding

piko, to fediverse German
@piko@chaos.social avatar

Can anyone recommend a instance? The one I'm on needs to scale down, so I'm looking for a new home for my classes...

:BoostOK:

imrehg, to python
@imrehg@fosstodon.org avatar

The face when you are (marginally) better at than puzzles, so you write code to solve a puzzle in an adventure game.

Definite spoiler for the magnet puzzle in , after trying fiddling around with it for more than 30 minutes originally.

https://gist.github.com/imrehg/cb8c45aa41c2212737967097cab678d7

And this way, I had 2x the amount of fun... Though makes me worried, years ago I remember finishing this game without any programming, so what did I know then that I no longer do??

https://amanita-design.net/games/machinarium.html

pythonbytes, to python
@pythonbytes@fosstodon.org avatar
jackwilliambell, to python
@jackwilliambell@rustedneuron.com avatar

> Dataclasses JSON provides a simple API for encoding and decoding dataclasses to and from JSON and #Python lists/dicts. https://lidatong.github.io/dataclasses-json/

Includes some schema validation as well.

ETA: Schemas require Marshmallow.

> https://marshmallow.readthedocs.io/en/stable/api_reference.html#schema

And Marshmallow looks like what I was searching for in the first place…

> https://marshmallow.readthedocs.io/en/stable/index.html

#programming #data

pythonbytes, to python
@pythonbytes@fosstodon.org avatar

Heads up: We'll be doing our live stream of the recording in 2 hours. For a few reasons, we're recording a day early and in the evening. #python cc @brianokken @mkennedy

https://www.youtube.com/watch?v=f-tuQBIn1fQ

villares, to python Portuguese
@villares@pynews.com.br avatar
fgirault, to python French
@fgirault@mastodon.tetaneutral.net avatar

Le projet de monitoring de la production de la constellation de satellites Sentinel, programme européen, que j'ai architecturé et dont j'ai codé le framework est .... open-source !!!!!

Merci l'ESA d'avoir imposé la licence Apache 2 dans le contrat ! J'ai enfin réussi à être payé pour faire du logiciel libre !

https://github.com/coordinationdesk/end2end_monitoring_dashboard

hynek, to python
@hynek@mastodon.social avatar

My final act before vacation is done: structlog 24.2.0! #Python

Enjoy a bunch of bug fixes, better Logfmt support, and some optimizations!

https://github.com/hynek/structlog/releases/tag/24.2.0

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