Quantcast
Channel: Planet Python
Browsing all 22463 articles
Browse latest View live

Vasudev Ram: Analyse this Python code snippet

By Vasudev RamHi reader [1],Analyze the snippet of Python code below. See what you make of it.I will discuss it in my next post.>>> a = 1>>> lis = [a, 2 ]>>> lis[1,...

View Article


PyBites: Code Challenge 09 - With Statement / Context Manager - review

It's end of the week again so we review the code challenge of this week. It's never late to sign up, just fork our challenges repo and start coding.

View Article


Image may be NSFW.
Clik here to view.

Django Weekly: Django Weekly 29 - GraphQL, Security Concepts for Django...

Worthy ReadGetting Djiggy with Django ModelsArticle focused on Django ORM. Explains Q, select_related(), prefetch_related(), Cached Properties, extending models.Manager and Atomic Transactions....

View Article

Weekly Python StackOverflow Report: (lxiv) stackoverflow python report

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2017-03-11 18:08:34 GMTPython strange behavior with enumerate -...

View Article

DSPIllustrations.com: The Convolution Theorem and Application Examples

The Convolution Theorem with Application Examples¶The convolution theorem is a fundamental property of the Fourier transform. It is often stated like"Convolution in time domain equals multiplication in...

View Article


PyBites: Twitter digest 2017 week 10

During the weekend we will share a curated list of 15 cool things (mostly Python) we found / tweeted during the week.

View Article

Image may be NSFW.
Clik here to view.

Vasudev Ram: Find the number of bits needed to store an integer, and its...

By Vasudev RamHi readers, I wrote this post yesterday:Analyse this Python code snippetI was initially going to give the solution (to the question asked in that post) today, but then realized that I...

View Article

Matthew Rocklin: Dask and Spark DataFrames

This work is supported by Continuum Analytics the XDATA Program and the Data Driven Discovery Initiative from the Moore Foundation.SummaryWe compare performance between Spark DataFrames and Dask...

View Article


Reuven Lerner: 2+2 might be 4, but what is True+True?

In Python, we know that we can add two integers together:>> 2 + 2 4And of course, we can add two strings together:>> 'a' + 'b' 'ab'We can even add two lists together:>> [1,2,3] +...

View Article


Image may be NSFW.
Clik here to view.

Yasoob Khalid: Recovering lost Python source code if it’s still resident...

I read this on GitHub Gist the other day. I don’t know whether I will ever use it but I am still putting this on my blog for the sake of bookmarking it. Who knows? Someone from the audience might end...

View Article

PyBites: Code Challenge 10 - Build a Hangman Game

A new week, a new 'bite' of Python coding! This week we will build a Hangman game. Good luck and have fun.

View Article

Obey the Testing Goat: Latest release (the last big one?): Python 3.6, Django...

Hi all! A brief overview of changes in the latest version, with hopefully a few pointers for people half-way through the book and looking to adapt.Python 3.6 and Django 1.11b: minimal changes, other...

View Article

Image may be NSFW.
Clik here to view.

Mike Driscoll: PyDev of the Week: Luke Plant

This week we welcome Luke Plant as our PyDev of the Week. Luke is one of the core developers of Django, a very popular Python web framework. Luke writes a blog with many articles about Django. If you’d...

View Article


Image may be NSFW.
Clik here to view.

Doug Hellmann: operator — Functional Interface to Built-in Operators — PyMOTW 3

Programming using iterators occasionally requires creating small functions for simple expressions. Sometimes, these can be implemented as lambda functions, but for some operations new functions are not...

View Article

Image may be NSFW.
Clik here to view.

Curtis Miller: On Programming Languages; Why My Dad Went From Programming to...

I discuss, with stories, why programming language choice matters and provide guidelines, along with an infographic of popular 2017 languages.

View Article


Weekly Python Chat: Let's talk about Tuples

Tuples: what even are they? Let's chat about tuples, tuple unpacking, and other tuple-related topics.

View Article

Image may be NSFW.
Clik here to view.

Continuum Analytics News: Pi Day 2017: Why Celebrating Science &...

Company BlogTuesday, March 14, 2017Michele ChambersEVP Anaconda Business Unit & CMOContinuum AnalyticsWhile Pi Day is typically about cheap pizza and other retail stunts, this year the day is being...

View Article


Catalin George Festila: The tensorflow python module - part 002.

Today I will show you how to install tensorflow python module on Windows OS with pip tool.I used python version 3.5.3.C:\Python35>cd ScriptsC:\Python35\Scripts>pip3 install --upgrade...

View Article

Python Does What?!: identity theft

>>> class JSON(int):...     from json import *... >>> json = JSON()>>> json.dumps()'0'

View Article

Image may be NSFW.
Clik here to view.

Daniel Bader: How to Make Your Python Loops More Pythonic

How to Make Your Python Loops More PythonicPythonize your C-style “for” and “while” loops by refactoring them using generators and other techniques.One of the easiest ways to spot a developer with a...

View Article
Browsing all 22463 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>