@treyhunner@mastodon.social
@treyhunner@mastodon.social avatar

treyhunner

@treyhunner@mastodon.social

#Python & #Django educator & team trainer

I help folks sharpen their Python skills with https://PythonMorsels.com🐍🍪

#pythonoddity

Also a #humanist #YIMBY who is attempting more ethical eating (#vegetarian, not yet #vegan) and thinks #economics is highly underrated, but I don't post about those topics very often.

he/him

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

treyhunner, to random
@treyhunner@mastodon.social avatar

Out of curiosity, I searched for the hashtag on Mastodon and Twitter and scrolled back 16 hours and started counting posts. 🤔

I counted:

87 posts on Twitter on the PyCon hashtag 🐦

134 posts on Mastodon on the PyCon hashtag 🐘

The PyCon conversations have finally moved (mostly) to Mastodon! 🙌

Not a HUGE difference, but enough that I felt like there was more activity and decided to confirm my suspicion. 💗

treyhunner, to python
@treyhunner@mastodon.social avatar

Let's talk about different ways to grow your Python skills at 2pm tomorrow in room 316!

After that you can get a new profile picture taken at 3pm also in 316! @melaniearbor is great at taking profile pictures!

See you tomorrow afternoon in room 316! 🐍🍪

treyhunner, to random
@treyhunner@mastodon.social avatar

Come to the Westin lobby soon and I'll teach you a card game called Cabo

treyhunner, to random
@treyhunner@mastodon.social avatar

What tips do you have for folks thinking of trying out Mastodon during this year?

3 of my tips:

  1. Follow the hashtag (yes you can follow a hashtag just like following a profile!)
  2. If you post and realize you forgot the hashtag, don't delete your post. Just edit it!
  3. Consider following the hashtag also. Many folks use it without realizing that is the official one.

What tips do you have?

treyhunner, to random
@treyhunner@mastodon.social avatar

What are some of your favorite @pycon tips? 💡

Reply and tag . 💖

treyhunner, to random
@treyhunner@mastodon.social avatar

Don't overlook the the "outdoor space" doors in the conference center at
@pycon this year!

The first space looks inviting and it is! ✅

The second space looks like it's just concrete stairs 🤔

... but there's a great view up those stairs, including plants & benches! 😮🌿🪻🐝

You can also take the elevator to 4 or 4R to get there.🛗

Rooftop with plants and benches
View of the river and bridges

treyhunner, to random
@treyhunner@mastodon.social avatar

Planning my veg-ish eating for

Rosewater Middle Eastern looks like it has good veg options and Arepittas looks like it probably does too.

ShadoBeni also looks really good, though it's a bit of a walk from the conference center.

Folks eating vegan/vegetarian this trip: found any other eats that look promising?

(Editing to also add the not-officially-recognized but widely used hashtag as well 🤫)

treyhunner, to instagramreality
@treyhunner@mastodon.social avatar

Not attending PyCon US and don't want to see all the social media posts about it? (I'll certainly be sharing some)

If you're on a Mastodon instance:

  1. look up the "filters" setting
  2. filter the phrase "PyCon" (no quotes)
  3. make sure not to check "whole word' (so and related phrases are filtered too)

https://docs.joinmastodon.org/user/moderating/#filters

treyhunner, to random
@treyhunner@mastodon.social avatar

Who else will be at this week? 🐍✨

treyhunner, to python
@treyhunner@mastodon.social avatar

What are your favorite one liners?

treyhunner, to random
@treyhunner@mastodon.social avatar

Coming to @pycon next week?

If this is your first , join us for the Newcomer's Orientation before the opening reception on Thursday!

https://us.pycon.org/2024/events/newcomer-orientation/

Also see my post on how to have a great first PyCon as well @brainwane's post for folks who've already attended a conference before.

https://treyhunner.com/2018/04/how-to-make-the-most-of-your-first-pycon/
https://www.harihareswara.net/posts/2023/your-first-pycon-but-not-your-first-convention/

treyhunner, (edited ) to python
@treyhunner@mastodon.social avatar

Python 3.13 beta 1 just landed.

My favorite new feature is the new REPL.

Honestly, this may be my favorite feature since f-strings.

My write up on the differences between old and new REPLs:
https://treyhunner.com/2024/05/my-favorite-python-3-dot-13-feature/

treyhunner, to random
@treyhunner@mastodon.social avatar

The Python Morsels REPL (https://pym.dev/repl) now properly supports using Ctrl+D to stop standard input! A user recently tested out code that relied on sys.stdin.read() and ended up stuck without a way to send EOF.

Thanks @notsolonecoder for a 1.5 year old unmerged CPython PR that contained the keys to fixing this issue!

https://github.com/python/cpython/pull/97665

treyhunner, to random
@treyhunner@mastodon.social avatar

I started a project for searching Unicode characters from your terminal, similar to unicode.party and @sethmlarson's utf8.xyz (but as a TUI instead of a web app).

I initially thought I'd call the project "utf", but that has a name conflict on PyPI (due to similarity to utf7, utf9, etc. likely).

What would you suggest I name this project?

https://github.com/treyhunner/utf/issues/17

treyhunner, to random
@treyhunner@mastodon.social avatar

Apparently unicode.party had 42,800 requests from 3,500 unique visitors over the past 30 days. 😮

I have no idea when this many people started using it or how they found out about it.

I assumed I was one of about 12 users up until now...

/cc @bmispelon

treyhunner, to random
@treyhunner@mastodon.social avatar

I am SO excited for the new Python REPL for 3.13 that I made the PR branch for this the default Python on my machine today so that I can test it out in the coming weeks.

If you use pyenv and you'd like to do the same, here the (AI-generated but seemingly correct) instructions I used: https://treyhunner.com/2024/05/installing-a-custom-python-build-with-pyenv/

Also listen to the core.py podcast with @ambv and Pablo Galindo Salgado. That's how I found out about this new feature months ago.

treyhunner, to python
@treyhunner@mastodon.social avatar

If you'd like to serve up a different directory besides the current one (which is the default) you can provide a -d argument specifying the directory to serve.

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

treyhunner, to random
@treyhunner@mastodon.social avatar

Variables in Python are NOT like buckets that contain objects ❌🪣

Variables are "pointers". Imagine an arrow pointing from a variable to an object.

my_name ⇨ "Trey Hunner"

https://pym.dev/variables-are-pointers/?watch

treyhunner, to python
@treyhunner@mastodon.social avatar

With the "else", this code looks to me a bit like a balance scale, with an "if" and an "else" on either side.

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

treyhunner, to random
@treyhunner@mastodon.social avatar

@buttondown will you have a booth at @pycon? I'm curious to know how Buttondown compares to my current email/newsletter setup and would love to chat with folks in-the-know.

Regardless of whether you'll have a booth, thank you for sponsoring! 💖

treyhunner, to random
@treyhunner@mastodon.social avatar

I've had Moonage Daydream playing in my head since I woke up. Looks like that'll be my brain's background track while teaching today. 🎶

treyhunner, to python
@treyhunner@mastodon.social avatar

The index method is for making integer-like objects.

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

treyhunner, to python
@treyhunner@mastodon.social avatar

So before you remove that "else" statement, think about whether it makes your code more readable or not.

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

treyhunner, to python
@treyhunner@mastodon.social avatar

This week's Python tip email will be my 100th one! 🎉

I just realized this while planning the email this morning. I'm glad I thought to check when 100 would be! 💯

That's 2 base-10-based anniversaries within a couple weeks (over the weekend I also shared that I just passed my 10 year anniversary of attending Python conferences). 🔟

This week's tip will be related to an activity that got me into this whole Python community thing. 💖

If you're into newsletters & : https://pym.dev/newsletter 💌

treyhunner, to python
@treyhunner@mastodon.social avatar

I attended my first Python conference 10 years and 10 days ago.

I wrote a meandering and nostalgic blog post (complete with links to old group selfie tweets) about the last 10 years of being part of the wider community.

I'm really grateful I decided to attend PyCon 2014 and that I came back for PyCon 2015 and went to DjangoCon 2015 as well.

https://treyhunner.com/2024/04/10-years-of-python-conferences/

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