If you are into #Python and want to learn more about the language especially how to automate stuff, @AlSweigart is your guy. Get 'Automate the Boring Stuff with Python' Udemy course for free 👇
teapaw.org/AlSweigar…
The built-in logging mechanism in #Python is amazing. Generating file based logs and using tail -f (on linux / mac) is a fun away to interact with, and debug, an application / script.
Sunsetting #Python 2 - The official sunset date is released. buff.ly/2LBaJ1K
Wondering if any GH type games have been made in python? buff.ly/2yhnat9
Goodforbitcoin, a Python cryptocurrency market tracker buff.ly/2Mvz4bx
pythonbase retweeted
"Give someone a program, you frustrate them for a day; teach them how to program, you frustrate them for a lifetime." - David Leinweber
Episode #140 Becoming a 10x Developer (sorta) via @pythonbytes buff.ly/2YaKsM1
pythonbase retweeted
#python tip: Make self-describing data by adding docstrings to named tuple attributes and to properties:
OMS_Burn = namedtuple('OMS_Burn', ('thrust', 'impulse'))
OMS_Burn.__doc__ = 'RCS MMH/N₂O₄'
OMS_Burn.thrust.__doc__ = 'kilonewtons'
OMS_Burn.impulse.__doc__ = 'milliseconds'
pythonbase retweeted
#Python cuteness: The walrus assignment expression operator and an f-string reverse walrus operator on the same line:
for angle in range(360):
print(f'{angle=}\N{degree sign} {(theta:=radians(angle))=:.3f} {sin(theta)=:.3f}')
pythonbase retweeted
As a #python 3.8 learning exercise, I'm using the walrus operator, / notation, and f= at every opportunity and then evaluating the result for clarity.
The goal is to learn when the new features are better and when they are worse. On Twitter, I'm presenting them without judgment.
pythonbase retweeted
Have 100+ books (mostly non-fiction) that I need to dispose of urgently in order to make space for new purchases. Selling as low as Rs 300 /book. Huge discount if someone can take all of them. Plz RT
I am in Karachi.
pythonbase retweeted
#pytest 5.0 has been released! This is the first release which is **Python 3 Only** -- the release also contains a bunch of new features and fixes. Check out the full changelog: docs.pytest.org/en/latest/ch…
pythonbase retweeted
Since Yahoo Finance API is deprecated, there are limited options to grab their data. If you're doing it in Python, go for yfinance package by @Aroussi, pulls data in pandas frame. Fun to work with. 👍
github.com/ranaroussi/yfinan…
teapaw.org/kashaziz/status/114463…
pythonbase retweeted
🐍📰 Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 3 — realpython.com/flask-connexi…









