Python Morsels: Importing a module runs code
Link: https://www.pythonmorsels.com/topics/importing-module-runs-code/
Transcript
When Python imports a module, it runs all the code in that module.
A module that defines and prints things
Here we have a file called salutations.py:
import random
salutations = ["Hello
Link: https://www.pythonmorsels.com/topics/importing-module-runs-code/
Transcript
When Python imports a module, it runs all the code in that module.
A module that defines and prints things
Here we have a file called salutations.py:
import random
salutations = ["Hello
Pythonmorsels
Importing a module runs code
Tryton News: Release 1.3.0 of python-sql
Link: https://discuss.tryton.org/t/release-1-3-0-of-python-sql/4618
We are proud to announce the release of the version 1.3.0 of python-sql.
python-sql is a library to write SQL queries in a pythonic way. It is mainly developed for Tryton but it has no external depend
Link: https://discuss.tryton.org/t/release-1-3-0-of-python-sql/4618
We are proud to announce the release of the version 1.3.0 of python-sql.
python-sql is a library to write SQL queries in a pythonic way. It is mainly developed for Tryton but it has no external depend
Tryton Discussion
Release 1.3.0 of python-sql
We are proud to announce the release of the version 1.3.0 of python-sql. python-sql is a library to write SQL queries in a pythonic way. It is mainly developed for Tryton but it has no external dependencies and is agnostic to any framework or SQL database.…
Gaël Varoquaux: Hiring someone to develop scikit-learn community and industry partners
Link: http://gael-varoquaux.info/programming/hiring-someone-to-develop-scikit-learn-community-and-industry-partners.html
Note
With the growth of scikit-learn and the wider PyData ecosystem, we
want to recruit in the Inria scikit-learn team for a new role.
Departing from our usual focus on excellence in algorithms,
stat
Link: http://gael-varoquaux.info/programming/hiring-someone-to-develop-scikit-learn-community-and-industry-partners.html
Note
With the growth of scikit-learn and the wider PyData ecosystem, we
want to recruit in the Inria scikit-learn team for a new role.
Departing from our usual focus on excellence in algorithms,
stat
gael-varoquaux.info
Hiring someone to develop scikit-learn community and industry partners -- Gaël Varoquaux: computer / data / health science
Gaël Varoquaux, computer / data / health science
Mike Driscoll: Python 101 – How to Work with Images
Link: https://www.blog.pythonlibrary.org/2021/09/14/python-101-how-to-work-with-images/
The Python Imaging Library (PIL) is a 3rd party Python package that adds image processing capabilities to your Python interpreter. It allows you to process photos and do many common image file manipul
Link: https://www.blog.pythonlibrary.org/2021/09/14/python-101-how-to-work-with-images/
The Python Imaging Library (PIL) is a 3rd party Python package that adds image processing capabilities to your Python interpreter. It allows you to process photos and do many common image file manipul
Mouse Vs Python
Python 101 - How to Work with Images - Mouse Vs Python
The Python Imaging Library (PIL) is a 3rd party Python package that adds image processing capabilities to your Python interpreter. It allows you to
Python for Beginners: Level Order Tree Traversal in Python
Link: https://www.pythonforbeginners.com/data-structures/level-order-tree-traversal-in-python
Just like we traverse a python dictionary, a list or tuple to access its elements, We can also traverse binary trees to access their elements. There are four tree traversal algorithms namely In-order
Link: https://www.pythonforbeginners.com/data-structures/level-order-tree-traversal-in-python
Just like we traverse a python dictionary, a list or tuple to access its elements, We can also traverse binary trees to access their elements. There are four tree traversal algorithms namely In-order
PythonForBeginners.com
Level Order Tree Traversal in Python - PythonForBeginners.com
Level Order Tree Traversal in Python will help you improve your python skills with easy to follow examples and tutorials. Click here to view code examples.
Matt Layman: User File Use
Link: https://www.mattlayman.com/understand-django/media-files/
In the last Understand Django article, you learned about Django settings and how to manage the configuration of your application. We also looked at tools to help you to be extra effective with setting
Link: https://www.mattlayman.com/understand-django/media-files/
In the last Understand Django article, you learned about Django settings and how to manage the configuration of your application. We also looked at tools to help you to be extra effective with setting
Matt Layman
User File Use
Maybe your app needs to handle files from users like profile pictures. Accepting files from others is tricky to do safely. In this article, we'll see the tools that Django provides to manage files safely.
Real Python: Using Data Classes in Python
Link: https://realpython.com/courses/python-data-classes/
One new and exciting feature that came out in Python 3.7 was the data class. A data class is a class typically containing mainly data, although there aren’t really any restrictions.
With data classes,
Link: https://realpython.com/courses/python-data-classes/
One new and exciting feature that came out in Python 3.7 was the data class. A data class is a class typically containing mainly data, although there aren’t really any restrictions.
With data classes,
Realpython
Using Data Classes in Python – Real Python
Data classes are one of the new features introduced in Python 3.7. When using data classes, you don't have to write boilerplate code to get proper initialization, representation, and comparisons for your objects.
Test and Code: 164: Debugging Test Failures with pytest
Link: https://testandcode.com/164
An overview of the pytest flags that help with debugging.
From Chapter 13, Debugging Test Failures, of Python Testing with pytest, 2nd edition.
pytest includes quite a few command-line flags that are
Link: https://testandcode.com/164
An overview of the pytest flags that help with debugging.
From Chapter 13, Debugging Test Failures, of Python Testing with pytest, 2nd edition.
pytest includes quite a few command-line flags that are
Test & Code in Python
Test & Code in Python 164: Debugging Python Test Failures with pytest
An overview of the pytest flags that help with debugging.
PyCoder’s Weekly: Issue #490 (Sept. 14, 2021)
Link: https://pycoders.com/issues/490
#490 – SEPTEMBER 14, 2021 View in Browser » Applying PEP 8 in Practice “Two recent threads on the python-ideas mailing list have overlapped to a certain extent; both referred to Python’s [PEP 8]
Link: https://pycoders.com/issues/490
#490 – SEPTEMBER 14, 2021 View in Browser » Applying PEP 8 in Practice “Two recent threads on the python-ideas mailing list have overlapped to a certain extent; both referred to Python’s [PEP 8]
Pycoders
PyCoder’s Weekly | Issue #490
Issue #490 of the PyCoder’s Weekly newsletter, published Sept. 14, 2021.
Quansight Labs Blog: Not a checklist: different accessibility needs in JupyterLab
Link: https://labs.quansight.org/blog/2021/09/not-a-checklist/
JupyterLab Accessibility Journey Part 3
In a pandemic, the template joke-starter “x and y walk into a bar” seems like
a stretch from my reality. So let’s try this remote version:
Two community member
Link: https://labs.quansight.org/blog/2021/09/not-a-checklist/
JupyterLab Accessibility Journey Part 3
In a pandemic, the template joke-starter “x and y walk into a bar” seems like
a stretch from my reality. So let’s try this remote version:
Two community member
Quansight Labs
Not a checklist: different accessibility needs in JupyterLab
JupyterLab Accessibility Journey Part 3
In a pandemic, the template joke-starter “x and y walk into a bar” seems like
a stretch from my reality. So let’s try this remote version:
Two community member
In a pandemic, the template joke-starter “x and y walk into a bar” seems like
a stretch from my reality. So let’s try this remote version:
Two community member
Zato Blog: Enterprise API integrations under Windows
Link: https://zato.io/blog/posts/windows-api-integrations.html
If you are on Windows, looking for an integration platform to connect your APIs, systems, applications, backend resources or mobile apps, I am happy to let you know that Zato
now supports Windows nati
Link: https://zato.io/blog/posts/windows-api-integrations.html
If you are on Windows, looking for an integration platform to connect your APIs, systems, applications, backend resources or mobile apps, I am happy to let you know that Zato
now supports Windows nati
zato.io
Zato Blog
John Ludhi/nbshare.io: PyTorch Tutorial A Complete Use Case Example
Link: https://www.nbshare.io/notebook/512285365/PyTorch-Tutorial-A-Complete-Use-Case-Example/
PyTorch Tutorial: A Complete Use-case Example
Introduction
This tutorial shows a full use-case of PyTorch in order to explain several concepts by example.
The application wil
Link: https://www.nbshare.io/notebook/512285365/PyTorch-Tutorial-A-Complete-Use-Case-Example/
PyTorch Tutorial: A Complete Use-case Example
Introduction
This tutorial shows a full use-case of PyTorch in order to explain several concepts by example.
The application wil
PyCharm: PyCharm 2021.2.2 Is Out!
Link: http://feedproxy.google.com/~r/Pycharm/~3/90AVCAF_GHs/
Download PyCharm 2021.2.2
The second minor release of PyCharm 2021.2 contains multiple bug fixes.
cProfile call graph never loads. [PY-49917]
Requirements.txt blank file is being created. [PY-41953]
Link: http://feedproxy.google.com/~r/Pycharm/~3/90AVCAF_GHs/
Download PyCharm 2021.2.2
The second minor release of PyCharm 2021.2 contains multiple bug fixes.
cProfile call graph never loads. [PY-49917]
Requirements.txt blank file is being created. [PY-41953]
JetBrains Blog
PyCharm 2021.2.2 Is Out! | The PyCharm Blog
Download PyCharm 2021.2.2
The second minor release of PyCharm 2021.2 contains multiple bug fixes.
Python 3.10: Quick-fix to add
The second minor release of PyCharm 2021.2 contains multiple bug fixes.
Python 3.10: Quick-fix to add
Mike Driscoll: Getting Started with ReportLab’s Canvas
Link: https://www.blog.pythonlibrary.org/2021/09/15/getting-started-with-reportlabs-canvas/
ReportLab is a very powerful library. With a little effort, you can make pretty much any layout that you can think of. I have used it to replicate many complex page layouts over the years. In this tut
Link: https://www.blog.pythonlibrary.org/2021/09/15/getting-started-with-reportlabs-canvas/
ReportLab is a very powerful library. With a little effort, you can make pretty much any layout that you can think of. I have used it to replicate many complex page layouts over the years. In this tut
Mouse Vs Python
Getting Started with ReportLab's Canvas - Mouse Vs Python
Learn how to use ReportLab's canvas to add text, change fonts, draw shapes, add page breaks and so much more when you create PDFs with Python
Real Python: Build a Personal Diary With Django and Python
Link: https://realpython.com/django-diary-project-python/
A diary is a personal safe space. With the help of Django, you can create a diary on your own computer without storing data in anyone else’s cloud. By following along with the project below, you’ll se
Link: https://realpython.com/django-diary-project-python/
A diary is a personal safe space. With the help of Django, you can create a diary on your own computer without storing data in anyone else’s cloud. By following along with the project below, you’ll se
Realpython
Build a Personal Diary With Django and Python – Real Python
In this beginner-friendly tutorial, you'll build a personal diary in Django. You'll use the strengths of the Django web framework and learn the basics of web apps.
Python for Beginners: Find the Height of a Binary Tree
Link: https://www.pythonforbeginners.com/data-structures/find-the-height-of-a-binary-tree
Just like we find the length of a list or the number of items in a python dictionary, we can find the height of a binary tree. In this article, we will formulate an algorithm to find the height of a b
Link: https://www.pythonforbeginners.com/data-structures/find-the-height-of-a-binary-tree
Just like we find the length of a list or the number of items in a python dictionary, we can find the height of a binary tree. In this article, we will formulate an algorithm to find the height of a b
PythonForBeginners.com
Find the Height of a Binary Tree - PythonForBeginners.com
Find the Height of a Binary Tree will help you improve your python skills with easy to follow examples and tutorials. Click here to view code examples.
testmon: Version 1.2 is out!
Link: https://testmon.org/testmon_1.2_is_out_intro.html
pytest-testmon version 1.2 is out and up on PyPI.
Re-executing failed tests is a main feature of the update.
To find more go to: Version 1.2. is out!
Link: https://testmon.org/testmon_1.2_is_out_intro.html
pytest-testmon version 1.2 is out and up on PyPI.
Re-executing failed tests is a main feature of the update.
To find more go to: Version 1.2. is out!
testmon.org
pytest-testmon: selects tests affected by changed files
STX Next: Polyglot Programming and the Benefits of Mastering Several Languages
Link: https://www.stxnext.com/blog/polyglot-programming/
Why learn one programming language when you can master a few?
Link: https://www.stxnext.com/blog/polyglot-programming/
Why learn one programming language when you can master a few?
Stxnext
Polyglot Programming and the Benefits of Mastering Several Languages
What is polyglot programming? Learn about its benefits to decide if you want to master multiple coding languages and become a polyglot programmer yourself!
Mike Driscoll: Case / Switch Comes to Python in 3.10
Link: https://www.blog.pythonlibrary.org/2021/09/16/case-switch-comes-to-python-in-3-10/
Python 3.10 is adding a new feature called Structural Pattern Matching, which is defined in PEP 634 and has a tutorial on the topic in PEP 636. Structural Pattern Matching brings the case / switch sta
Link: https://www.blog.pythonlibrary.org/2021/09/16/case-switch-comes-to-python-in-3-10/
Python 3.10 is adding a new feature called Structural Pattern Matching, which is defined in PEP 634 and has a tutorial on the topic in PEP 636. Structural Pattern Matching brings the case / switch sta
Mouse Vs Python
Case / Switch Comes to Python in 3.10 - Mouse Vs Python
Python 3.10 adds structural pattern matching as a new feature. You now can create case / switch statements in Python!
Stack Abuse: Split, Merge and Rotate PDF Documents in Python with borb
Link: https://stackabuse.com/split-merge-and-rotate-pdf-documents-in-python-with-borb/
Introduction
The Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and ren
Link: https://stackabuse.com/split-merge-and-rotate-pdf-documents-in-python-with-borb/
Introduction
The Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and ren
Stack Abuse
Split, Merge and Rotate PDF Documents in Python with borb
In this guide, we'll use borb, a pure-Python PDF library to split, merge and rotate pages of PDF documents in Python, with practical examples!