Python Morsels: dataclasses
Link: https://www.pythonmorsels.com/topics/dataclasses/
Let's talk about dataclasses in Python.
A minimal boilerplate class
This Point class represents a 2-dimensional point:
class Point:
"""A two-dimensional point."""
def __init__(self, x, y):
Link: https://www.pythonmorsels.com/topics/dataclasses/
Let's talk about dataclasses in Python.
A minimal boilerplate class
This Point class represents a 2-dimensional point:
class Point:
"""A two-dimensional point."""
def __init__(self, x, y):
Pythonmorsels
dataclasses
Python's dataclasses are a quick way to make a class with an initializer, a friendly string representation, and sensible equality checking. This class creation helper can also help make immutable classes, orderable classes, and more.
ItsMyCode: Python TypeError: ‘int’ object is not subscriptable
Link: https://itsmycode.com/python-typeerror-int-object-is-not-subscriptable/
ItsMyCode |
In Python, we use Integers to store the whole numbers, and it is not a subscriptable object. If you treat an integer like a subscriptable object, the Python interpreter will raise TypeErro
Link: https://itsmycode.com/python-typeerror-int-object-is-not-subscriptable/
ItsMyCode |
In Python, we use Integers to store the whole numbers, and it is not a subscriptable object. If you treat an integer like a subscriptable object, the Python interpreter will raise TypeErro
ItsMyCode
Python TypeError: 'int' object is not subscriptable - ItsMyCode
If you treat an integer like a subscriptable object, the Python interpreter will raise TypeError: 'int' object is not subscriptable.
PyCoder’s Weekly: Issue #506 (Jan. 4, 2022)
Link: https://pycoders.com/issues/506
#506 – JANUARY 4, 2022 View in Browser » Gem: Exploding String Alternatives Here’s a Python gem: a small bit of Python that uses the power of the language and standard library well. It’s a funct
Link: https://pycoders.com/issues/506
#506 – JANUARY 4, 2022 View in Browser » Gem: Exploding String Alternatives Here’s a Python gem: a small bit of Python that uses the power of the language and standard library well. It’s a funct
Pycoders
PyCoder’s Weekly | Issue #506
Issue #506 of the PyCoder’s Weekly newsletter, published Jan. 4, 2022.
Will Kahn-Greene: Kent v0.1.0 released! And the story of Kent in the first place....
Link: https://bluesock.org/~willkg/blog/dev/kent_0_1_0.html
What is it?
Before explaining what it is, I want to talk about Why.
A couple of years ago, we migrated from the Raven Sentry client (Python) to
sentry-sdk. One of the things we did was implement our
Link: https://bluesock.org/~willkg/blog/dev/kent_0_1_0.html
What is it?
Before explaining what it is, I want to talk about Why.
A couple of years ago, we migrated from the Raven Sentry client (Python) to
sentry-sdk. One of the things we did was implement our
Will's Blog
Kent v0.1.0 released! And the story of Kent in the first place....
What is it?
Before explaining what it is, I want to talk about Why.
A couple of years ago, we migrated from the Raven Sentry client (Python) to
sentry-sdk. One of the things we did was implement our o
Before explaining what it is, I want to talk about Why.
A couple of years ago, we migrated from the Raven Sentry client (Python) to
sentry-sdk. One of the things we did was implement our o
Inspired Python: Game Boy Emulator: Designing the CPU
Link: https://www.inspiredpython.com/course/game-boy-emulator/game-boy-emulator-designing-the-cpu
Game Boy Emulator: Designing the CPU
In we learned how to write an instruction decoder and disassembler. It’s an important first step towards writing a Game Boy emulator. Assembly language – or the
Link: https://www.inspiredpython.com/course/game-boy-emulator/game-boy-emulator-designing-the-cpu
Game Boy Emulator: Designing the CPU
In we learned how to write an instruction decoder and disassembler. It’s an important first step towards writing a Game Boy emulator. Assembly language – or the
Inspiredpython
Game Boy Emulator: Designing the CPU
With a working instruction decoder, it’s time to think about how we represent the Game Boy’s CPU in software; what CPU registers are; and a quick primer on bitwise operations.
TestDriven.io: Pagination in Django
Link: https://testdriven.io/blog/django-pagination/
This tutorial looks at how to add pagination to a Django project.
Link: https://testdriven.io/blog/django-pagination/
This tutorial looks at how to add pagination to a Django project.
testdriven.io
Pagination in Django
This article looks at how to add pagination to a Django project.
Kushal Das: Releasing Tumpa for Mac
Link: https://kushaldas.in/posts/releasing-tumpa-for-mac.html
I am happy to announce the release of Tumpa (The
Usability Minded PGP Application) for Mac. This release contains the old UI
(and the UI bugs), but creates RSA4096 keys by default. Right now Tumpa
wi
Link: https://kushaldas.in/posts/releasing-tumpa-for-mac.html
I am happy to announce the release of Tumpa (The
Usability Minded PGP Application) for Mac. This release contains the old UI
(and the UI bugs), but creates RSA4096 keys by default. Right now Tumpa
wi
Real Python: Build a Django Front End With Bulma – Part 2
Link: https://realpython.com/django-social-front-end-2/
In this four-part tutorial series, you’re building a social network with Django that you can showcase in your portfolio. This project will strengthen your understanding of relationships between Django
Link: https://realpython.com/django-social-front-end-2/
In this four-part tutorial series, you’re building a social network with Django that you can showcase in your portfolio. This project will strengthen your understanding of relationships between Django
Realpython
Build a Django Front End With Bulma – Part 2 – Real Python
In the second part of this tutorial series, you'll continue to build out a social network with Django. You'll learn how to set up routing, views, and templates for your app. You'll also apply CSS styling to the Django front end by using the Bulma framework…
Python for Beginners: Check For Ugly Number In Python
Link: https://www.pythonforbeginners.com/basics/check-for-ugly-number-in-python
You might have heard about natural numbers, prime numbers, even numbers, and odd numbers. But, have you ever wondered what an ugly number is? In this article, we will discuss what an ugly number is. W
Link: https://www.pythonforbeginners.com/basics/check-for-ugly-number-in-python
You might have heard about natural numbers, prime numbers, even numbers, and odd numbers. But, have you ever wondered what an ugly number is? In this article, we will discuss what an ugly number is. W
PythonForBeginners.com
Check For Ugly Number In Python - PythonForBeginners.com
Check For Ugly Number In Python will help you improve your python skills with easy to follow examples and tutorials. Click here to view code examples.
Python Bytes: #265 Get asizeof pympler and muppy
Link: https://pythonbytes.fm/episodes/show/265/get-asizeof-pympler-and-muppy
<p><strong>Watch the live stream:</strong></p>
<a href='https://www.youtube.com/watch?v=qjQwrS0xLqI' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>
<p><strong>About the show</strong></p>
Link: https://pythonbytes.fm/episodes/show/265/get-asizeof-pympler-and-muppy
<p><strong>Watch the live stream:</strong></p>
<a href='https://www.youtube.com/watch?v=qjQwrS0xLqI' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>
<p><strong>About the show</strong></p>
pythonbytes.fm
Get asizeof pympler and muppy
News and announcements from the Python community for the week of Jan 5th, 2022
Andre Roberge: Python 101: enabling a restricted subset of Python
Link: https://aroberge.blogspot.com/2022/01/python-101-enabling-restricted-subset.html
I decided to submit to the the Ideas category of Discuss-Python a proposal which I have summarized as follows:Summary: I propose that a new compile time directive be available to restrict the Python s
Link: https://aroberge.blogspot.com/2022/01/python-101-enabling-restricted-subset.html
I decided to submit to the the Ideas category of Discuss-Python a proposal which I have summarized as follows:Summary: I propose that a new compile time directive be available to restrict the Python s
Blogspot
Python 101: enabling a restricted subset of Python
I decided to submit to the the Ideas category of Discuss-Python a proposal which I have summarized as follows: Summary: I propose that a new...
Python Software Foundation: Announcing Python Software Foundation Fellow Members for Q4 2021! 🎉
Link: http://pyfound.blogspot.com/2022/01/announcing-python-software-foundation.html
The PSF is pleased to announce its fourth batch of PSF Fellows for 2021! Let us welcome the new PSF Fellows for Q4! The following people continue to do amazing things for the Python community:Ana Dulc
Link: http://pyfound.blogspot.com/2022/01/announcing-python-software-foundation.html
The PSF is pleased to announce its fourth batch of PSF Fellows for 2021! Let us welcome the new PSF Fellows for Q4! The following people continue to do amazing things for the Python community:Ana Dulc
Blogspot
Announcing Python Software Foundation Fellow Members for Q4 2021! 🎉
The PSF is pleased to announce its fourth batch of PSF Fellows for 2021! Let us welcome the new PSF Fellows for Q4! The following people con...
Armin Ronacher: Extension Maps in Rust
Link: http://lucumr.pocoo.org/2022/1/6/rust-extension-map
Sometimes in Rust you want to design APIs that provide a little bit of
flexibility for the user. A common approach for this is to introduce a
generic type parameter that can be filled in. Let's for
Link: http://lucumr.pocoo.org/2022/1/6/rust-extension-map
Sometimes in Rust you want to design APIs that provide a little bit of
flexibility for the user. A common approach for this is to introduce a
generic type parameter that can be filled in. Let's for
Armin Ronacher's Thoughts and Writings
Rust Any Part 1: Extension Maps in Rust
A useful pattern for making common types extensible.
Python GUIs: Drag & drop widgets with PyQt — Sort widgets visually with drag and drop in a container
Link: https://www.pythonguis.com/faq/pyqt-drag-drop-widgets/
This week I had an interesting question from a reader of my PyQt6 book, about how to handle dragging and dropping of widgets in a container showing the dragged widget as it is moved.
I'm interested
Link: https://www.pythonguis.com/faq/pyqt-drag-drop-widgets/
This week I had an interesting question from a reader of my PyQt6 book, about how to handle dragging and dropping of widgets in a container showing the dragged widget as it is moved.
I'm interested
Python GUIs
Drag and Drop widgets in PyQt5 with this Drop-in Sortable Widget
Dragging and dropping items provides an intuitive interface to allow sorting items in your PyQt5 applications. This week I had an interesting question from a reader of my <a href=
Python for Beginners: Recursion In Python
Link: https://www.pythonforbeginners.com/basics/recursion-in-python
You might have studied functions in python. You might also have used for loops and while loops to perform a task repetitively while programming in Python. In this article, we will discuss recursion an
Link: https://www.pythonforbeginners.com/basics/recursion-in-python
You might have studied functions in python. You might also have used for loops and while loops to perform a task repetitively while programming in Python. In this article, we will discuss recursion an
PythonForBeginners.com
Recursion In Python - PythonForBeginners.com
Recursion In Python will help you improve your python skills with easy to follow examples and tutorials. Click here to view code examples.
Kushal Das: Trouble with signing and notarization on macOS for Tumpa
Link: https://kushaldas.in/posts/trouble-with-signing-and-notarization-on-macos-for-tumpa.html
This week I released the first version of Tumpa on
Mac. Though the
actual changes required for building the Mac app and dmg file were small, but
I had to reap apart those few remaining hairs on my he
Link: https://kushaldas.in/posts/trouble-with-signing-and-notarization-on-macos-for-tumpa.html
This week I released the first version of Tumpa on
Mac. Though the
actual changes required for building the Mac app and dmg file were small, but
I had to reap apart those few remaining hairs on my he
Mikko Ohtamaa: Building a cryptocurrency site with Svelte, Python and TimescaleDB
Link: https://opensourcehacker.com/2022/01/07/building-a-cryptocurrency-site-with-svelte-python-and-timescaledb/
This post is the repost of the original Trading Strategy software architecture overview for community feed aggregators. Please read the original post for the best layout and formatting.
The audience
Link: https://opensourcehacker.com/2022/01/07/building-a-cryptocurrency-site-with-svelte-python-and-timescaledb/
This post is the repost of the original Trading Strategy software architecture overview for community feed aggregators. Please read the original post for the best layout and formatting.
The audience
Open Source Hacker
Building a cryptocurrency site with Svelte, Python and TimescaleDB
This blog post is a technical overview of Trading Strategy protocol (tradingstrategy.ai) software stack. Continue reading →
Real Python: The Real Python Podcast – Episode #92: Continuing to Unravel Python's Syntatic Sugar With Brett Cannon
Link: https://realpython.com/podcasts/rpp/92/
A year ago, we had Brett Cannon on the show to discuss his blog series about unravelling Python's syntactic sugar. Brett has written 15 more entries in the series, and he returns to the show this week
Link: https://realpython.com/podcasts/rpp/92/
A year ago, we had Brett Cannon on the show to discuss his blog series about unravelling Python's syntactic sugar. Brett has written 15 more entries in the series, and he returns to the show this week
Realpython
Episode #92: Continuing to Unravel Python's Syntactic Sugar With Brett Cannon – The Real Python Podcast
A year ago, we had Brett Cannon on the show to discuss his blog series about unravelling Python's syntactic sugar. Brett has written 15 more entries in the series, and he returns to the show this week to continue our conversation. We dive into unravelling…
Armin Ronacher: Rust Any Part 2/: As-Any Hack
Link: http://lucumr.pocoo.org/2022/1/7/as-any-hack
System Message: WARNING/2 (<string>, line 2)
Title underline too short.
Rust Any Part 2/: As-Any Hack
============================
Yesterday I wrote about how to use the
Any type in Rust to implem
Link: http://lucumr.pocoo.org/2022/1/7/as-any-hack
System Message: WARNING/2 (<string>, line 2)
Title underline too short.
Rust Any Part 2/: As-Any Hack
============================
Yesterday I wrote about how to use the
Any type in Rust to implem
Armin Ronacher's Thoughts and Writings
Rust Any Part 2: As-Any Hack
A creative workaround to the inability of implementing additional traits to Any.
ItsMyCode: Python String swapcase()
Link: https://itsmycode.com/python-string-swapcase/
ItsMyCode |
Python string swapcase() method is a built-in function that converts all uppercase characters into lowercase and all lowercase characters into uppercase characters of a given string and re
Link: https://itsmycode.com/python-string-swapcase/
ItsMyCode |
Python string swapcase() method is a built-in function that converts all uppercase characters into lowercase and all lowercase characters into uppercase characters of a given string and re
ItsMyCode
Python String swapcase()
Python string swapcase() method converts all uppercase characters into lowercase and all lowercase characters into uppercase characters.
Talk Python to Me: #347: Cinder - Specialized Python that Flies
Link: https://talkpython.fm/episodes/show/347/cinder-specialized-python-that-flies
The team at Instagram dropped a performance bomb on the Python world when they open-sourced Cider, their performance oriented fork of CPython. It contains a number of performance optimizations, includ
Link: https://talkpython.fm/episodes/show/347/cinder-specialized-python-that-flies
The team at Instagram dropped a performance bomb on the Python world when they open-sourced Cider, their performance oriented fork of CPython. It contains a number of performance optimizations, includ
talkpython.fm
Cinder - Specialized Python that Flies
The team at Instagram dropped a performance bomb on the Python world when they open-sourced Cider, their performance oriented fork of CPython. It contains a number of performance optimizations, including bytecode inline caching, eager evaluation of coroutines…