Lessons about Python (page 18)
The links, tools and tips our engineers and designers share with each other, one “today I learned” at a time.
- lessons shared
- 353
- people sharing
- 27
- database started in
- 2016










Tech Insights· amir.rachum.com
an elegant way to create multiline strings in Python
Shared by
Read on amir.rachum.com- Python


Tech Insights· realpython.com
Cool New Features in Python 3.7:
Shared by
Read on realpython.com- Python
- Python\

hackernoon.com
10 common security gotchas in Python and how to avoid them:
Writing secure code is hard. When you learn a language, a module or a framework, you learn how it supposed to be used. When thinking about security, you need to think about how it can be misused. Python is no exception, even within the standard library there are documented bad practices for writing hardened applications. Yet, when I’ve spoken to many Python developers they simply aren’t aware of them.
Flávio Juvenal

Tech Insights· hackernoon.com
10 common security gotchas in Python and how to avoid them:
From hackernoon.com
Writing secure code is hard. When you learn a language, a module or a framework, you learn how it supposed to be used. When thinking about security, you need to think about how it can be misused. Python is no exception, even within the standard library there are documented bad practices for writing hardened applications. Yet, when I’ve spoken to many Python developers they simply aren’t aware of them.
Shared by
Read on hackernoon.com- Python
- Security

avilpage.com
Auto reload Celery upon changes for development environments
How to automatically reload celery workers in development environment.
Carlos Coelho

Tech Insights· avilpage.com
Auto reload Celery upon changes for development environments
From avilpage.com
How to automatically reload celery workers in development environment.
Shared by
Read on avilpage.com- Celery
- Python


Tech Insights· alexmarandon.com
Possible things that might go wrong when you're working with mock
Shared by
Read on alexmarandon.com- Mock
- Python
- Test
- Link offlineLink offline
Tech Insights· wittchen.io
Easy tutorial on publishing packages to PyPi
Shared by
The original link on wittchen.io is no longer available.
Look for it on the Wayback Machine- Packages
- Pypi
- Python
Today I learned
If you need to split a path, use
os.path.split(path_str)instead ofpath_str.split(os.path.sep). otherwise you'll have pr...If you need to split a path, use os.path.split(path_str) instead of path_str.split(os.path.sep). otherwise you'll have problems with absolute paths even if you use os.path.join to join everything altogether
Carlos Coelho
Tech Insights
If you need to split a path, use
os.path.split(path_str)instead ofpath_str.split(os.path.sep). otherwise you'll have pr...If you need to split a path, use
os.path.split(path_str)instead ofpath_str.split(os.path.sep). otherwise you'll have problems with absolute paths even if you useos.path.jointo join everything altogetherShared by
- Python

github.com
more-itertools: More routines for operating on iterables, beyond itertools
More routines for operating on iterables, beyond itertools - more-itertools/more-itertools
Flávio Juvenal

Tech Insights· github.com
more-itertools: More routines for operating on iterables, beyond itertools
From github.com
More routines for operating on iterables, beyond itertools - more-itertools/more-itertools
Shared by
Read on github.com- Iterable
- Library
- Python

nedbatchelder.com
Big-O: How Code Slows as Data Grows
Big-O notation can be intimidating, but it doesn’t have to be. A common-sense approach will give you a good working technique for analyzing the time complexity of your code.
Flávio Juvenal

Tech Insights· nedbatchelder.com
Big-O: How Code Slows as Data Grows
From nedbatchelder.com
Big-O notation can be intimidating, but it doesn’t have to be. A common-sense approach will give you a good working technique for analyzing the time complexity of your code.
Shared by
Read on nedbatchelder.com- Algorithms
- Big O
- Python

sedimental.org
glom - useful Python library for extracting and transforming nested data:
Flávio Juvenal

Tech Insights· sedimental.org
glom - useful Python library for extracting and transforming nested data:
Shared by
Read on sedimental.org- Data
- Python

hackernoon.com
Different ways of using Python 3.7's built-in breakpoint method:
Debugging in Python has always felt a bit “awkward” compared with other languages I’ve worked in.
Luca Bezerra

Tech Insights· hackernoon.com
Different ways of using Python 3.7's built-in breakpoint method:
From hackernoon.com
Debugging in Python has always felt a bit “awkward” compared with other languages I’ve worked in.
Shared by
Read on hackernoon.com- Breakpoint
- Debugging
- Python


Tech Insights· docs.python.org
powersetrecipe from itertools is very useful for testing all cases of a function that accepts a list of choices: #itertools-recipesShared by
Read on docs.python.org- Python
- Test

virtualenvwrapper.readthedocs.io
Use
setvirtualenvprojectfromvirtualenvwrapperto associate a virtualenv with a project. This way, whenever you use `wor...Use setvirtualenvproject from virtualenvwrapper to associate a virtualenv with a project. This way, whenever you use workon xpto, xpto being a virtualenv, it'll activate the given virtualenv and it'll change the current directory to the project folder set #setvirtualenvproject
Carlos Coelho

Tech Insights· virtualenvwrapper.readthedocs.io
Use
setvirtualenvprojectfromvirtualenvwrapperto associate a virtualenv with a project. This way, whenever you use `wor...Use
setvirtualenvprojectfromvirtualenvwrapperto associate a virtualenv with a project. This way, whenever you useworkon xpto,xptobeing a virtualenv, it'll activate the given virtualenv and it'll change the current directory to the project folder set #setvirtualenvprojectShared by
Read on virtualenvwrapper.readthedocs.io- Python
- Virtualenv
- Virtualenvwrapper
Today I learned
Type
interactinside a pdb session to start a shell where you can paste multiline statementsFlávio Juvenal
Tech Insights
Type
interactinside a pdb session to start a shell where you can paste multiline statementsShared by
- Debug
- Pdb
- Python
Book a call
Found it useful?
Let’s put it to work.
Tell us about your product and the problem in front of you. We’ll bring what we’ve learned on real projects.
Tell us about your product, and we’ll bring what we’ve learned.
Still prefer the good old email? Contact us



