Vivis Dev
banner
vivis-dev.bsky.social
Vivis Dev
@vivis-dev.bsky.social
Python | AI | DevOps
Subscribe to my free python newsletter: https://pythonkoans.substack.com
#python uses the flyweight design pattern to intern strings
August 5, 2025 at 12:51 PM
#python sets are useful when you need:

- fast membership testing
- deduplication or uniqueness guarantees
- comparing two sets of items
August 5, 2025 at 12:48 PM
#python list tips:
- reversed(list) is more memory efficient for reversing a list than slicing list[::-1] because it returns an iterator instead of a copy
- You can remove multiple items with slice assignment using list[1:4] = [] or del a[1:4]
August 5, 2025 at 12:47 PM
#python variable scoping can be confusing if you’re used to other programming languages.

A scope determines where a variable name is visible, and it’s lifetime.

Python checks for the variable definition in the following order, and stops at the first match
August 5, 2025 at 12:46 PM
ChatGPT has started quietly nudging people towards their search extension. It's been out since December 2024, and has 4M users. Will this make a dent into Google?
June 3, 2025 at 4:52 AM