Reworking StringIO concatenation in Python
Python string objects are immutable, so changing the value of a string requires that a new string object be created with the new value. That is fairly well-understood within the community, but there are some "anti-patterns" that arise; it is pretty common for new users to build up a longer string by repeatedly concatenating to the end of the "same" string
https://lwn.net/Articles/816415/
Python string objects are immutable, so changing the value of a string requires that a new string object be created with the new value. That is fairly well-understood within the community, but there are some "anti-patterns" that arise; it is pretty common for new users to build up a longer string by repeatedly concatenating to the end of the "same" string
https://lwn.net/Articles/816415/
lwn.net
Reworking StringIO concatenation in Python
Python string objects are immutable, so changing the value of a string
requires that a new string object be created with the new value. That is
fairly well-understood within the community, but there are some
"anti-patterns" that arise; it is pretty common…
requires that a new string object be created with the new value. That is
fairly well-understood within the community, but there are some
"anti-patterns" that arise; it is pretty common…
3 Python templating languages you should (probably) never use
Python has accumulated a lot of templating languages, including these three that are perfect for April Fools' Day.
https://opensource.com/article/20/4/python-templating-languages
Python has accumulated a lot of templating languages, including these three that are perfect for April Fools' Day.
https://opensource.com/article/20/4/python-templating-languages
Opensource.com
3 Python templating languages you should (probably) never use
When reaching for a templating language for writing a Python web application, there are an abundance of robust solutio
Episode 3: Effective Python and Python at Google Scale
In this episode, Christopher interviews Brett Slatkin about the 2nd edition of his book Effective Python. Brett talks about the revisions he made for the book, and updating it for the newest versions of Python 3.
https://realpython.com/podcasts/rpp/3/
In this episode, Christopher interviews Brett Slatkin about the 2nd edition of his book Effective Python. Brett talks about the revisions he made for the book, and updating it for the newest versions of Python 3.
https://realpython.com/podcasts/rpp/3/
Realpython
Episode #3: Effective Python and Python at Google Scale – The Real Python Podcast
Have you been using Python for a while, but want to be more effective with your code? This week we have Brett Slatkin on the show. We talk about the 2nd edition of his book Effective Python.
Linked Lists in Python: An Introduction
Linked lists are like a lesser-known cousin of lists. They’re not as popular or as cool, and you might not even remember them from your algorithms class. But in the right context, they can really shine.
https://realpython.com/linked-lists-python/
Linked lists are like a lesser-known cousin of lists. They’re not as popular or as cool, and you might not even remember them from your algorithms class. But in the right context, they can really shine.
https://realpython.com/linked-lists-python/
Realpython
Linked Lists in Python: An Introduction – Real Python
In this article, you'll learn what linked lists are and when to use them, such as when you want to implement queues, stacks, or graphs. You'll also learn how to use collections.deque to improve the performance of your linked lists and how to implement linked…
The Clean Architecture in Python. How to write testable and flexible code
If someone asked about the features of an ideal project, responses would surely mention a few specific things. First of all, an ideal project would have a clean codebase that is simple to read. Secondly, there should be high test coverage to ensure that the project works as expected. What is more, one will instantly know if they broke something thanks to an extensive suite of automated tests. Last, but not least – technical debt should be kept at bay to not pose a threat of lowering a team’s velocity. I bet you already see how enjoyable would be to work on such a project! Unfortunately, software like this is a real rarity. Time to change it.
https://breadcrumbscollector.tech/the-clean-architecture-in-python-how-to-write-testable-and-flexible-code/
If someone asked about the features of an ideal project, responses would surely mention a few specific things. First of all, an ideal project would have a clean codebase that is simple to read. Secondly, there should be high test coverage to ensure that the project works as expected. What is more, one will instantly know if they broke something thanks to an extensive suite of automated tests. Last, but not least – technical debt should be kept at bay to not pose a threat of lowering a team’s velocity. I bet you already see how enjoyable would be to work on such a project! Unfortunately, software like this is a real rarity. Time to change it.
https://breadcrumbscollector.tech/the-clean-architecture-in-python-how-to-write-testable-and-flexible-code/
breadcrumbs collector.tech
The Clean Architecture in Python. How to write testable and flexible code
(Hey! This article is almost 2 years old :) Look here for something about the Clean Archictecture in 2021) An ideal project? If someone asked about the features of an ideal project, responses would surely mention a few specific things. First of all, an ideal…
How to Make an Instagram Bot With Python and InstaPy
What do SocialCaptain, Kicksta, Instavast, and many other companies have in common? They all help you reach a greater audience, gain more followers, and get more likes on Instagram while you hardly lift a finger. They do it all through automation, and people pay them a good deal of money for it. But you can do the same thing—for free—using InstaPy!
https://realpython.com/instagram-bot-python-instapy/
What do SocialCaptain, Kicksta, Instavast, and many other companies have in common? They all help you reach a greater audience, gain more followers, and get more likes on Instagram while you hardly lift a finger. They do it all through automation, and people pay them a good deal of money for it. But you can do the same thing—for free—using InstaPy!
https://realpython.com/instagram-bot-python-instapy/
Realpython
How to Make an Instagram Bot With Python and InstaPy – Real Python
In this step-by-step tutorial, you'll learn all about how to use InstaPy to create an Instagram bot that can increase your follower and like count with minimal effort on your end. Along the way, you'll also learn about two tools that InstaPy uses under the…
Python for Beginners
I recently finished teaching an introductory Python course as part of the Youth Remote Learning project. The intended audience was 6th-8th graders and consisted of 6 classes, each lasting 30 minutes.
https://www.daniellowengrub.com/blog/2020/02/08/python-for-beginners
I recently finished teaching an introductory Python course as part of the Youth Remote Learning project. The intended audience was 6th-8th graders and consisted of 6 classes, each lasting 30 minutes.
https://www.daniellowengrub.com/blog/2020/02/08/python-for-beginners
Episode #258: Thriving in a remote developer environment
If you are listening to this episode when it came out, April 4th, 2020, there's a good chance you are listening at home, or on a walk.
https://talkpython.fm/episodes/show/258/thriving-in-a-remote-developer-environment
If you are listening to this episode when it came out, April 4th, 2020, there's a good chance you are listening at home, or on a walk.
https://talkpython.fm/episodes/show/258/thriving-in-a-remote-developer-environment
talkpython.fm
Thriving in a remote developer environment
If you are listening to this episode when it came out, April 4th, 2020, there's a good chance you are listening at home, or on a walk. But it's probably not while commuting to an office as much of the world is practicing social distancing and working from…
Templates For User Interfaces
In the previous Understand Django article, we looked at the fundamentals of using views in Django.
https://www.mattlayman.com/understand-django/templates-user-interfaces/
In the previous Understand Django article, we looked at the fundamentals of using views in Django.
https://www.mattlayman.com/understand-django/templates-user-interfaces/
Matt Layman
Templates For User Interfaces
When your Django application sends back a response with your user interface, templates are the tool you'll use to produce that user interface. This article looks at what templates are and how to use them.
Asynchronous Tasks with Django and Celery
If a long-running process is part of your application's workflow, rather blocking the response, you should handle it in the background, outside the normal request/response flow
https://testdriven.io/blog/django-and-celery/
If a long-running process is part of your application's workflow, rather blocking the response, you should handle it in the background, outside the normal request/response flow
https://testdriven.io/blog/django-and-celery/
testdriven.io
Asynchronous Tasks with Django and Celery
This article looks at how to configure Celery to handle long-running tasks in a Django app.
Dictionary Merging and Updating in Python 3.9
Python 3.9 is under active development and scheduled to be released in October this year. On Feb 26, the development team released its alpha 4 version. One of the new features, relevant to almost all Python programmers, is the introducing of new merge (|) and update (|=) operators.
https://medium.com/better-programming/dictionary-merging-and-updating-in-python-3-9-4ac67c667ce
Python 3.9 is under active development and scheduled to be released in October this year. On Feb 26, the development team released its alpha 4 version. One of the new features, relevant to almost all Python programmers, is the introducing of new merge (|) and update (|=) operators.
https://medium.com/better-programming/dictionary-merging-and-updating-in-python-3-9-4ac67c667ce
Medium
Dictionary Merging and Updating in Python 3.9
A quick peek into Python 3.9’s new merge | and update |= operators
Building pyarrow with CUDA support
The other day I was looking to read an Arrow buffer on GPU using Python, but as far as I could tell, none of the provided pyarrow packages on conda or pip are built with CUDA support. Like many of the packages in the compiled-C-wrapped-by-Python ecosystem, Apache Arrow is thoroughly documented, but the number of permutations of how you could choose to build pyarrow with CUDA support quickly becomes overwhelming.
https://randyzwitch.com/pyarrow-cuda-support/
The other day I was looking to read an Arrow buffer on GPU using Python, but as far as I could tell, none of the provided pyarrow packages on conda or pip are built with CUDA support. Like many of the packages in the compiled-C-wrapped-by-Python ecosystem, Apache Arrow is thoroughly documented, but the number of permutations of how you could choose to build pyarrow with CUDA support quickly becomes overwhelming.
https://randyzwitch.com/pyarrow-cuda-support/
Randyzwitch
randyzwitch.com | Building pyarrow with CUDA support
Building pyarrow with CUDA support from source doesn't have to be confusing. Here's how to build pyarrow with CUDA support using virtualenv and Docker.
https://github.com/rougier/matplotlib-3d
This experimental project is an attempt at providing a better and more versatile 3d axis for Matplotlib. The heart of the code is explained in this blog post: Custom 3D engine in Matplotlib.
This experimental project is an attempt at providing a better and more versatile 3d axis for Matplotlib. The heart of the code is explained in this blog post: Custom 3D engine in Matplotlib.
GitHub
GitHub - rougier/matplotlib-3d: Experimental 3D axis for matplotlib
Experimental 3D axis for matplotlib. Contribute to rougier/matplotlib-3d development by creating an account on GitHub.
https://github.com/Tesorio/django-anon
Anonymize production data so it can be safely used in not-so-safe environments
Anonymize production data so it can be safely used in not-so-safe environments
GitHub
GitHub - Tesorio/django-anon: :shipit: Anonymize production data so it can be safely used in not-so-safe environments
:shipit: Anonymize production data so it can be safely used in not-so-safe environments - GitHub - Tesorio/django-anon: :shipit: Anonymize production data so it can be safely used in not-so-safe en...