Planet Python RSS
217 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python Does What?!: when no-ops attack VII: assignment's revenge

Link: http://www.pythondoeswhat.com/2018/06/when-no-ops-attack-vii-assignments.html

Let's define a very simple class: >>> class F(object):...    @staticmethod...    def f(): return "I'm such a simple function, nothing could go wrong"...>>> F.f()"I'm such a simple function, nothing co
Real Python: Basic Data Types in Python

Link: https://realpython.com/python-data-types/

Now you know how to interact with the Python interpreter and execute Python code. It’s time to dig into the Python language. First up is a discussion of the basic data types that are built into Pyth
NumFOCUS: Meet the NumFOCUS Google Summer of Code 2018 Cohort

Link: https://www.numfocus.org/blog/meet-the-numfocus-google-summer-of-code-2018-cohort

The post Meet the NumFOCUS Google Summer of Code 2018 Cohort appeared first on NumFOCUS.
Python Engineering at Microsoft: Python in Visual Studio Code – May 2018 Release

Link: https://blogs.msdn.microsoft.com/pythonengineering/2018/06/05/python-in-visual-studio-code-may-2018-release/

We are pleased to announce that the May 2018 release of the Python Extension for Visual Studio Code is now available from the marketplace and the gallery. You can download the Python extension from th
Techiediaries - Django: Angular 6 Tutorial with Django RESTful API — Building Bootstrap 4 UIs

Link: https://www.techiediaries.com/angular-bootstrap-tutorial/

In this Angular 6 tutorial we'll learn how to use Bootstrap 4 with Angular 6 to build professional UIs.
Angular 6 is the latest version of Angular when writing this tutorial and Bootstrap 4 is the la
Mike Driscoll: Creating and Manipulating PDFs with pdfrw

Link: http://www.blog.pythonlibrary.org/2018/06/06/creating-and-manipulating-pdfs-with-pdfrw/

Patrick Maupin created a package he called pdfrw and released it back in 2012. The pdfrw package is a pure-Python library that you can use to read and write PDF files. At the time of writing, pdfrw wa
Full Stack Python: Developing Flask Apps in Docker Containers on macOS

Link: https://www.fullstackpython.com/blog/develop-flask-web-apps-docker-containers-macos.html

Adding Docker to your Python and
Flask development environment
can be confusing when you are just getting started with containers. Let's
quickly get Docker installed and configured for developing F
Full Stack Python: Running Bottle Apps in Docker Containers on macOS

Link: https://www.fullstackpython.com/blog/first-steps-bottle-web-apps-docker-containers.html

It can be confusing to figure out how to use Docker
containers in your Python and
Bottle
development environment workflow.
This tutorial will quickly show you the exact steps to get Docker
up and ru
Python Software Foundation: Ernest W. Durbin III joins the PSF team

Link: http://feedproxy.google.com/~r/PythonSoftwareFoundationNews/~3/K9LYXa0mBJ0/ernest-w-durbin-iii-joins-psf-team.html

I am happy to announce that on June 1, 2018, Ernest W. Durbin III joined the Python Software Foundation team as the Director of Infrastructure.





Ernest is a long time volunteer contributor to the
PyCharm: PyCharm 2018.2 EAP 3

Link: http://feedproxy.google.com/~r/Pycharm/~3/fQpqu9T4_hg/

The third Early Access Program (EAP) version of PyCharm 2018.2 is now available. We’d like to invite you to download this version from our website.
New in PyCharm 2018.2 EAP 3
pytest fixtures support
Wallaroo Labs: Stream processing, trending hashtags, and Wallaroo

Link: https://blog.wallaroolabs.com/2018/06/stream-processing-trending-hashtags-and-wallaroo/

A prospective Wallaroo user contacted us and asked for an example of chaining state computations together so the output of one could be fed into another to take still further action. In particular, th
Mike Driscoll: An Intro to PyPDF2

Link: http://www.blog.pythonlibrary.org/2018/06/07/an-intro-to-pypdf2/

The PyPDF2 package is a pure-Python PDF library that you can use for splitting, merging, cropping and transforming pages in your PDFs. According to the PyPDF2 website, you can also use PyPDF2 to add d
EuroPython: EuroPython 2018: Training pass sale starts on Friday at 12:00 CEST

Link: https://blog.europython.eu/post/174655358657

As we have already announced, access to trainings is not included in our regular conference tickets this year. We have done this to keep the conference ticket prices reasonable, acknowledge the value
Gocept Weblog: Migrate a Zope ZODB Data.fs to Python 3

Link: https://blog.gocept.com/2018/06/07/migrate-a-zope-zodb-data-fs-to-python-3/

TL;DR Use zodbupdate.
Problem
A ZODB Data.fs which was created under Python 2 cannot be opened under Python 3. This is prevented by using a different magic code in the first bytes of the file. This is
Jahongir Rahmonov: Django Static Files

Link: http://rahmonov.me/posts/django-static-files/

Have you ever been frustrated when your Django application did not find the static files you were using?
Then, you read the documentation and played around with all those settings variables and after
Peter Bengtsson: GeneratorExit - How to clean up after the last yield in Python

Link: https://www.peterbe.com/plog/generatorexit

tl;dr; Use except GeneratorExit if your Python generator needs to know the consumer broke out.
Suppose you have a generator that yields things out. After each yield you want to execute some code that
Django Weblog: DjangoCon Europe 2018 - thank you

Link: https://www.djangoproject.com/weblog/2018/jun/07/djangocon-europe-2018-thank-you/

On behalf of the everyone who benefits from the Django Project, the DSF would like to thank the organisers of DjangoCon Europe 2018 for the oustanding efforts they made to ensure that the event was a
William Minchin: Building a Traffic Model

Link: http://blog.minchin.ca/2018/06/traffic-model-start.html

I’ve decided to start a new project: building a traffic model.
Schooling
I went to school and got my undergrad in Civil Engineering. The classes and
work experience I liked best revolved around traffi
Reuven Lerner: Python parentheses primer

Link: https://blog.lerner.co.il/python-parentheses-primer/

If you have children, then you probably remember them learning to walk, and then to read. If you’re like me, you were probably amazed by how long it took to do things that we don’t even think about. T
Tim Golden: Potato Prints at the London Python Dojo

Link: http://ramblings.tjg.org.uk/posts/potato-prints-at-the-london-python-dojo/

So I couldn't resist the obvious pun: the London Python Dojo was hosted
yesterday at Potato, a Django-based web agency somewhere
off Tottenham Court Road. (Which is a bonus for West Londoners like me)