Hynek Schlawack: typing.Protocol Across Python Versions
Link: https://hynek.me/til/typing-protocol/
How to seamlessly support typing.Protocol on Python versions older and newer than 3.8. At the same time.
Link: https://hynek.me/til/typing-protocol/
How to seamlessly support typing.Protocol on Python versions older and newer than 3.8. At the same time.
Hynek Schlawack
typing.Protocol Across Python Versions
How to seamlessly support typing.Protocol on Python versions older and newer than 3.8. At the same time.
Stack Abuse: Python - How to Sort List with sort() and sorted()
Link: https://stackabuse.com/python-how-to-sort-list-with-sort-and-sorted/
In this short guide, learn how to sort a list in Python using the built-in sort() and sorted() functions.
sort() is a method of the list class, and sorts the list in-place, returning None.
sorted() i
Link: https://stackabuse.com/python-how-to-sort-list-with-sort-and-sorted/
In this short guide, learn how to sort a list in Python using the built-in sort() and sorted() functions.
sort() is a method of the list class, and sorts the list in-place, returning None.
sorted() i
Stack Abuse
Python - How to Sort List with sort() and sorted()
In this guide, learn how to sort a list of strings, integers and tuples in Python with sort() and sorted(), the difference between the methods and how they hold up in a performance benchmark!
Malthe Borch: PowerShell Remoting on Windows using Airflow
Link: https://maltheborch.com/2021/11/powershell-remoting-on-windows-using-airflow.html
Apache
Airflow is an open-source platform that allows
you to programmatically author, schedule and monitor
workflows. It comes with out-of-the-box
Link: https://maltheborch.com/2021/11/powershell-remoting-on-windows-using-airflow.html
Apache
Airflow is an open-source platform that allows
you to programmatically author, schedule and monitor
workflows. It comes with out-of-the-box
Malthe's Homepage:
Software Engineering and Architecture, Data Processing and Analytics
A Blog About Computer Systems
Software Engineering and Architecture, Data Processing and Analytics
A Blog About Computer Systems
PowerShell Remoting on Windows using Airflow
ItsMyCode: [Solved] ImportError: No module named matplotlib.pyplot
Link: https://itsmycode.com/solved-importerror-no-module-named-matplotlib-pyplot/
The ImportError: No module named matplotlib.pyplot occurs if you have not installed the Matplotlib library in Python and trying to run the script which has matplotlib related code. Another issue might
Link: https://itsmycode.com/solved-importerror-no-module-named-matplotlib-pyplot/
The ImportError: No module named matplotlib.pyplot occurs if you have not installed the Matplotlib library in Python and trying to run the script which has matplotlib related code. Another issue might
ItsMyCode
[Solved] ImportError: No module named matplotlib.pyplot - ItsMyCode
The ImportError: No module named matplotlib.pyplot occurs if you have not installed the Matplotlib library and it can be solved by installing using pip
Malthe Borch: PowerShell Remoting on Windows using Airflow
Link: https://maltheborch.com/2022/02/powershell-remoting-on-windows-using-airflow.html
Apache
Airflow is an open-source platform that allows
you to programmatically author, schedule and monitor
workflows. It comes with out-of-the-box
Link: https://maltheborch.com/2022/02/powershell-remoting-on-windows-using-airflow.html
Apache
Airflow is an open-source platform that allows
you to programmatically author, schedule and monitor
workflows. It comes with out-of-the-box
IslandT: Move chess piece on the chessboard with python
Link: https://islandtropicaman.com/wp/2022/02/06/move-chess-piece-on-the-chessboard-with-python/
Hello, it is me again and this is the second article about the chess game project which I have created earlier with python. In this article, I have updated the previous python program which will now b
Link: https://islandtropicaman.com/wp/2022/02/06/move-chess-piece-on-the-chessboard-with-python/
Hello, it is me again and this is the second article about the chess game project which I have created earlier with python. In this article, I have updated the previous python program which will now b
PyPy: Natural Language Processing for Icelandic with PyPy: A Case Study
Link: https://www.pypy.org/posts/2022/02/nlp-icelandic-case-study.html
Natural Language Processing for Icelandic with PyPy: A Case Study
Icelandic is one
of the smallest languages of the world, with about 370.000 speakers. It
is a language in the Germanic family, most si
Link: https://www.pypy.org/posts/2022/02/nlp-icelandic-case-study.html
Natural Language Processing for Icelandic with PyPy: A Case Study
Icelandic is one
of the smallest languages of the world, with about 370.000 speakers. It
is a language in the Germanic family, most si
PyPy
Natural Language Processing for Icelandic with PyPy: A Case Study
Natural Language Processing for Icelandic with PyPy: A Case Study
Icelandic is one
of the smallest languages of the world, with about 370.000 speakers. It
is a language in the Germanic family, most si
Icelandic is one
of the smallest languages of the world, with about 370.000 speakers. It
is a language in the Germanic family, most si
Podcast.__init__: Achieve Repeatable Builds Of Your Software On Any Machine With Earthly
Link: https://www.pythonpodcast.com/earthly-repeatable-build-tool-episode-351/
It doesn't matter how amazing your application is if you are unable to deliver it to your users. Frustrated with the rampant complexity involved in building and deploying software Vlad A. Ionescu crea
Link: https://www.pythonpodcast.com/earthly-repeatable-build-tool-episode-351/
It doesn't matter how amazing your application is if you are unable to deliver it to your users. Frustrated with the rampant complexity involved in building and deploying software Vlad A. Ionescu crea
The Python Podcast.__init__
The Python Podcast.__init__: Achieve Repeatable Builds Of Your Software On Any Machine With Earthly
An interview about the Earthly tool for easily creating repeatable builds for all of your software on any machine and how it helps to address the complexity inherent in the software delivery process
Python GUIs: Packaging PyQt5 applications into a macOS app with PyInstaller (updated for 2022)
Link: https://www.pythonguis.com/tutorials/packaging-pyqt5-applications-pyinstaller-macos-dmg/
There is not much fun in creating your own desktop applications if you can't share them with other people — whether than means publishing it commercially, sharing it online or just giving it to someon
Link: https://www.pythonguis.com/tutorials/packaging-pyqt5-applications-pyinstaller-macos-dmg/
There is not much fun in creating your own desktop applications if you can't share them with other people — whether than means publishing it commercially, sharing it online or just giving it to someon
Python GUIs
Packaging PyQt5 applications into a macOS app with PyInstaller
In this tutorial, we'll go through a series of steps to use PyInstaller to build simple and complex PyQt applications into distributable macOS app bundles. There is not much fun in creating your own desktop applications if you can't share them with other…
Mike Driscoll: PyDev of the Week: Batuhan Taskaya
Link: https://www.blog.pythonlibrary.org/2022/02/07/pydev-of-the-week-batuhan-taskaya/
This week we welcome Batuhan Taskaya (@isidentical) as our PyDev of the Week! Batuhan is a core developer of the Python language. Batuhan is also a maintainer of multiple Python packages including par
Link: https://www.blog.pythonlibrary.org/2022/02/07/pydev-of-the-week-batuhan-taskaya/
This week we welcome Batuhan Taskaya (@isidentical) as our PyDev of the Week! Batuhan is a core developer of the Python language. Batuhan is also a maintainer of multiple Python packages including par
Mouse Vs Python
PyDev of the Week: Batuhan Taskaya - Mouse Vs Python
This week we welcome Batuhan Taskaya (@isidentical) as our PyDev of the Week! Batuhan is a core developer of the Python language. Batuhan is also a
Matt Layman: Episode 16 - Setting Your Sites
Link: https://www.mattlayman.com/django-riffs/setting-sites/
On this episode, we look at how to manage settings on your Django site. What are the common techniques to make this easier to handle? Let’s find out!
Listen at djangoriffs.com or with the player below
Link: https://www.mattlayman.com/django-riffs/setting-sites/
On this episode, we look at how to manage settings on your Django site. What are the common techniques to make this easier to handle? Let’s find out!
Listen at djangoriffs.com or with the player below
Matt Layman
Episode 16 - Setting Your Sites
On this episode, we look at how to manage settings on your Django site. What are the common techniques to make this easier to handle? Let's find out!
Real Python: Python News: What's New From January 2022?
Link: https://realpython.com/python-news-january-2022/
In January 2022, the code formatter Black saw its first non-beta release and published a new stability policy. IPython, the powerful interactive Python shell, marked the release of version 8.0, its fi
Link: https://realpython.com/python-news-january-2022/
In January 2022, the code formatter Black saw its first non-beta release and published a new stability policy. IPython, the powerful interactive Python shell, marked the release of version 8.0, its fi
Realpython
Python News: What's New From January 2022 – Real Python
In January 2022, Black came out of Beta, IPython 8.0 was released, PEP 665 was rejected, and last but not least, a fifteen-year-old bug was fixed. In this article, you'll get the details on these important happenings in the world of Python.
death and gravity: Dealing with YAML with arbitrary tags in Python
Link: https://death.andgravity.com/any-yaml
... in which we use PyYAML to safely read and write YAML with any tags,
in a way that's as straightforward as interacting with built-in types.
If you're in a hurry,
you can find the code at the end.
Link: https://death.andgravity.com/any-yaml
... in which we use PyYAML to safely read and write YAML with any tags,
in a way that's as straightforward as interacting with built-in types.
If you're in a hurry,
you can find the code at the end.
death and gravity
Dealing with YAML with arbitrary tags in Python
... in which we use PyYAML to safely read and write YAML with any tags, in a way that's as straightforward as interacting with built-in types.
Python Morsels: Making the len function work on your Python objects
Link: https://www.pythonmorsels.com/topics/making-the-len-function-work-on-your-python-objects/
In Python, you can make the built-in len function work on your objects.
The len function only works on objects that have a length
The built-in len function works on some objects, but not on others.
Link: https://www.pythonmorsels.com/topics/making-the-len-function-work-on-your-python-objects/
In Python, you can make the built-in len function work on your objects.
The len function only works on objects that have a length
The built-in len function works on some objects, but not on others.
Pythonmorsels
Making the len function work on your Python objects
Want the built-in len function to work on your Python objects? Your class needs a __len__ method!
ItsMyCode: TypeError: method() takes 1 positional argument but 2 were given
Link: https://itsmycode.com/method-takes-1-positional-argument-but-2-were-given/
If you define a method inside a class, you should add self as the first argument. If you forget the self argument, then Python will raise TypeError: method() takes 1 positional argument but 2 were giv
Link: https://itsmycode.com/method-takes-1-positional-argument-but-2-were-given/
If you define a method inside a class, you should add self as the first argument. If you forget the self argument, then Python will raise TypeError: method() takes 1 positional argument but 2 were giv
ItsMyCode
TypeError: method() takes 1 positional argument but 2 were given - ItsMyCode
The TypeError: method() takes 1 positional argument but 2 were given occurs if we do not pass the "self" as an argument to all the methods in a class
Stack Abuse: Numpy Array to Tensor and Tensor to Numpy Array with PyTorch
Link: https://stackabuse.com/numpy-array-to-tensor-and-tensor-to-numpy-array-with-pytorch/
Tensors are multi-dimensional objects, and the essential data representaion block of Deep Learning frameworks such as Tensorflow and PyTorch.
A scalar has one dimension, a vector has two, and tensors
Link: https://stackabuse.com/numpy-array-to-tensor-and-tensor-to-numpy-array-with-pytorch/
Tensors are multi-dimensional objects, and the essential data representaion block of Deep Learning frameworks such as Tensorflow and PyTorch.
A scalar has one dimension, a vector has two, and tensors
Stack Abuse
Convert Numpy Array to Tensor and Tensor to Numpy Array with PyTorch
In this short guide, learn how to convert a Numpy array to a PyTorch tensor, and how to convert a PyTorch tensor to a Numpy array. Deal with both CPU and GPU tensors and avoid conversion exceptions!
Glyph Lefkowitz: A Better Pygame Mainloop
Link: https://glyph.twistedmatrix.com/2022/02/a-better-pygame-mainloop.html
I’ve written about this
before, but in that
context I was writing mainly about frame-rate independence, and only gave a
brief mention of vertical sync; the title also mentioned Twisted, and upon
re-re
Link: https://glyph.twistedmatrix.com/2022/02/a-better-pygame-mainloop.html
I’ve written about this
before, but in that
context I was writing mainly about frame-rate independence, and only gave a
brief mention of vertical sync; the title also mentioned Twisted, and upon
re-re
Twistedmatrix
A Better Pygame Mainloop
Fix your mainloop for smoother gameplay that takes less battery power.
ItsMyCode: AttributeError: Can only use .str accessor with string values
Link: https://itsmycode.com/can-only-use-str-accessor-with-string-values/
The AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas occurs if you try to replace the values of string column, but in reality, it is of a different t
Link: https://itsmycode.com/can-only-use-str-accessor-with-string-values/
The AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas occurs if you try to replace the values of string column, but in reality, it is of a different t
ItsMyCode
AttributeError: Can only use .str accessor with string values - ItsMyCode
The AttributeError: Can only use .str accessor with string values occurs if you try to replace the values of columns which is not of type string
TestDriven.io: Working with Static and Media Files in Django
Link: https://testdriven.io/blog/django-static-files/
This article looks at how to work with static and media files in a Django project, locally and in production.
Link: https://testdriven.io/blog/django-static-files/
This article looks at how to work with static and media files in a Django project, locally and in production.
testdriven.io
Working with Static and Media Files in Django
This article looks at how to work with static and media files in a Django project, locally and in production.
Real Python: Defining Python Functions With Optional Arguments
Link: https://realpython.com/courses/defining-python-functions-with-optional-arguments/
Defining your own functions is an essential skill for writing clean and effective code. In this tutorial, you’ll explore the techniques you have available for defining Python functions that take optio
Link: https://realpython.com/courses/defining-python-functions-with-optional-arguments/
Defining your own functions is an essential skill for writing clean and effective code. In this tutorial, you’ll explore the techniques you have available for defining Python functions that take optio
Realpython
Defining Python Functions With Optional Arguments – Real Python
In this video course, you'll learn about Python optional arguments and how to define functions with default values. You'll also learn how to create functions that accept any number of arguments using args and kwargs.