Python - Yahoo News Search Results

Why a Monty Python reunion is sure to be worth watching

The Pythons are the ultimate comic supergroup, a great example for those of us who ended up having careers in comedy The idea of Monty Python reforming is like the prospect of a great band getting back together: they're the ultimate comic supergroup. The Led Zeppelin of comedy. Like a lot of people my age, I watched them as I was growing up – the TV series in the early 70s , then the films later ...

Bubbles The Python Safely Recovered

A 4-metre long Burmese python named Bubbles was found curled up at a pet shop at the Oakfields shopping centre in Benoni, east of Johannesburg. Bubbles was found after the pet shop owners and SPCA put out a report that the python may be on the loose in Benoni. The python escaped after opening the […]

Python on the Loose in Benoni

A 4 metre long albino Burmese python named Bubbles is on the loose in Benoni east of Johannesburg, reported Timeslive on Thursday. The snake reportedly escaped after it pulled open the sliding door of its cage in the pet store where it was on display. According to owner of Titan Reptiles from which Bubbles escaped, […]

ShepHertz App42 Polyglot PaaS Now Supports Python & Django Framework

Python / Django application hosting on App42 PaaS and integration it with MySQL, PostgreSQL, MongoDB, CouchDB, Redis (PRWeb April 15, 2014) Read the full story at

ON Semiconductor PYTHON CMOS Image Sensors Bring Versatility and Superior Performance to Industrial Applications

ON Semiconductor , driving energy efficient innovations, has announced the introduction of the first devices in its new PYTHON CMOS image sensor family. With resolutions of 300 K, 500 K and 1.3 Mega pixels respectively, the PYTHON 300, 500 and 1300 are designed to address the needs of general purpose industrial image sensing applications such as machine vision, inspection and motion monitoring ...

Monty Python confirm 'last ever' gig

The final Monty Python reunion show at the O2 Arena in London on 20 July will be "the last time we'll be working together", Michael Palin says.


recent bookmarks tagged Python

Depth-First Search and Breadth-First Search in Python • edd mann

Posted on 19 April 2014

Index of /nvd3/examples

Posted on 19 April 2014

Over 110 Videos To Learn Python From!

Posted on 19 April 2014

Python: Multiprocessing and Exceptions | Season of Code

Posted on 19 April 2014

python multiprocessing pool terminate - Stack Overflow

Posted on 19 April 2014

Python Multiprocessing and KeyboardInterrupt - Bryce Boe

Posted on 19 April 2014

Tutorial: Adding Facebook/Twitter/Google Authentication to a Django Application |

Posted on 19 April 2014

Animate Fluid-Like Motion In Cinema 4D With The Free Curl Noise Python Effector | LESTERBANKS

Posted on 19 April 2014

30 Python Language Features and Tricks You May Not Know About

Posted on 19 April 2014

Installing Python in Local Directory | End Point Blog

Posted on 19 April 2014

Questions About Python (programming language) on Quora

Questions About Python (programming language)

reddit: the front page of the internet

I recreated the first level of Super Mario Bros using python and pygame. [x-post from /r/pygame]

My goal from the beginning of this project was to create a 100% replica of the first level of Super Mario Bros using Python. I would say my version is about 90% there. At a later date I'll probably recode it to actually use a tilemap instead of my weird idea of using a background and stretching to fit an arbitrary aspect ratio. There are a few really minor features I didn't feel like adding, mostly because I'm tired of working on this project for two straight months.

To be honest, if I'd known how much work it would be to recreate Super Mario Bros, I'd have chosen a different project. I always assumed Mario was a pretty simple game, but it's actually quite complicated. Adding powerups, enemies, updated overhead information, music and sound effects, not to mention the physics of Mario and his animations, made it quite challenging. I hope you like it!

Here's the repo. Controls are arrow keys, 'a' for jump, 's' for run/fireball. You'll need to install pygame.

EDIT: Thanks for all the kind words. You guys are great. I know this isn't /r/learnpython, but for anyone interested in getting into pygame, here are the resources I used to learn:

Invent with Python

Program Arcade Games with Python and Pygame

Mekire's github

Mario and the state pattern

The State Pattern


For those with problems getting pygame to work, here are some tips from the comments:

If there is an 'unrecognized music format'

If 'no module named pygame'

If you want to change the keybindings

If you're unsure how to navigate github to get the game going

EDIT 3: Heh, someone posted this at Hacker News. A little less positivity over there. Oh well, can't please everybody. :)

submitted by justinmeister to Python
[link] [50 comments]

Posted on 22 February 2014

What is the best part of python you wish people knew about?

I just quit my job at a major software company to be with a startup in downtown seattle and it looks like our stack is Python based. I'm new to Python but I want to learn fast; So please, let me what you like the most (or hate the most?) about python, other python developers code, etc so I can take all the good and not use the bad as I learn this new language.

Who knows, maybe you will need to maintain my code someday, so you could only be helping yourself!

Thanks in advance!

submitted by honestduane to Python
[link] [229 comments]

Posted on 16 December 2013

Eric Idle here. I've brought John Cleese, Terry Gilliam, Terry Jones and Michael Palin with me. We are Monty Python. AUA.

Hello everybody. I had so much fun last November doing my previous reddit AMA that I decided to return. I'm sure you've seen the exciting news, but here we are to confirm it, officially: Monty Python is reunited. Today is the big day and as you can imagine it's a bit of a circus round here, but we'll be on reddit from 9am for ninety minutes or so to take your questions. We'll be alternating who's answering, but everyone will be here!:

  • J0hnCleese
  • Terry_Gilliam
  • TerryJonesHere
  • _MichaelPalin


Update: We're running a little late but will be with you 10-15 minutes!

Update 2: The url for tickets - - available Monday

Update 3: Thank you for all the questions. We tried to answer as many as we could. Thanks everyone!

submitted by ericidle to IAmA
[link] [7810 comments]

Posted on 21 November 2013

I've been using Python for 3 years and I've never defined a Class

I consider myself a nearly advanced-level Python programmer. From data processing and statistical analysis to web development and systems administration of large clusters, I do it all regularly.

I started using it in grad school for my research and now use it everyday in my job as a computational scientist. However, I simply do not use classes. I use functions for everything, often many small functions whose output I feed into another. For large highly parallel data processing tasks, I'll have one main worker function that does the heavy lifting on each item that I'll pass to a multiprocessing Pool.

So my question is: Given that I know how to get stuff done quickly, what am I really missing out on or shorting myself on by never using classes?

submitted by zissou_society to Python
[link] [175 comments]

Posted on 17 November 2013

What you do not like in Python?

I'm a big fun of Python! I use it every day! But there are things which are annoying, strange and so forth in Python (you really don't like it). If any, please, share your thoughts. For example:

  • built-in set type has method like symmetric_difference_update. I don't like so long methods in built-in types.
submitted by krasoffski to Python
[link] [896 comments]

Posted on 18 September 2013

Python interview questions

I'm about to go to my first Python interview and I'm compiling a list of all possible interview questions. Based on resources that I've found here, here and here I noted down the following common questions, what else should I add?


  • What are Python decorators and how would you use them?
  • How would you setup many projects where each one uses different versions of Python and third party libraries?
  • What is PEP8 and do you follow its guidelines when you're coding?
  • How are arguments passed – by reference of by value? (easy, but not that easy, I'm not sure if I can answer this clearly)
  • Do you know what list and dict comprehensions are? Can you give an example?
  • Show me three different ways of fetching every third item in the list
  • Do you know what is the difference between lists and tuples? Can you give me an example for their usage?
  • Do you know the difference between range and xrange?
  • Tell me a few differences between Python 2.x and 3.x?
  • The with statement and its usage.
  • How to avoid cyclical imports without having to resort to imports in functions?
  • what's wrong with import all?
  • Why is the GIL important? (This actually puzzles me, don't know the answer)
  • What are "special" methods (<foo>), how they work, etc
  • can you manipulate functions as first-class objects?
  • the difference between "class Foo" and "class Foo(object)"

tricky, smart ones

  • how to read a 8GB file in python?
  • what don't you like about Python?
  • can you convert ascii characters to an integer without using built in methods like string.atoi or int()? curious one

subjective ones

  • do you use tabs or spaces, which ones are better?

Ok, so should I add something else or is the list comprehensive?

submitted by dante9999 to Python
[link] [187 comments]

Posted on 19 August 2013

Python saved my ass tonight.

It's Friday night, and I'm stuck at work because Apache isn't working, and without it, I can't serve the files I need to update the embedded device I'm working on. So on a whim, I googled "python fileserver", and this little gem popped up:

python -m SimpleHTTPServer 

Running that from the directory I needed to grab files from saved me the time of debugging Apache (aka my worst nightmare), and, possibly by extension, my job. Thanks Python!

submitted by LightWolfCavalry to Python
[link] [90 comments]

Posted on 9 August 2013

Common misconceptions in Python

What are some common misconceptions that people have when programming in Python? Here are a couple that were passed around a mailing list I'm on:

'list.sort' returns the sorted list. (Wrong: it actually returns None.)

Misconception: The Python "is" statement tests for equality.

Reality: The "is" statement checks to see if two variables point to the same object.

This one is especially nasty, because for many cases, it "works", until it doesn't :)

In [1]: a = 'hello'

In [2]: b = 'hello'

In [3]: a is b

Out[3]: True

In [4]: a = 'hello world!'

In [5]: b = 'hello world!'

In [6]: a is b

Out[6]: False

In [7]: a = 3

In [8]: b = 3

In [9]: a is b

Out[9]: True

In [10]: a = 1025

In [11]: b = 1025

In [12]: a is b

Out[12]: False

This happens because the CPython implementation caches small integers and strings, so the underlying objects really are the same, sometimes.

If you want to check if two objects are equivalent, you must always use the == operator.

submitted by rhiever to Python
[link] [243 comments]

Posted on 13 May 2013

What is Python not a good language for?

I am moving from writing one-off code and scripts to developing tools which are going to be used by a larger group. I am having trouble deciding if Python is the right tool for the jobs.

For example I am responsible for process a 1gb text file into some numerical results. Python was the obvious choice for reading the text file but I am wondering if Python is fast enough for production code.

Edit: Thanks for the all responses. I will continue to learn and develop in Python.

submitted by Hopemonster to Python
[link] [233 comments]

Posted on 6 May 2013

Why do you choose Python over other language?

Hi, coding newbie here, I want to know why do you prefer Python over other language and it pro's and con's. Really interesed into learning Python, any tips?

Edit: Wow, such a great feedback, as I see the main Pro is the overall badass community that Python has behind (refer to all the comments in this thread), thanks guys.

Edit 2: The question now. Python 2.x or 3.x?

submitted by Rokxx to Python
[link] [165 comments]

Posted on 5 April 2013

Why do people laugh when you say you are a python programmer

To some programming colleagues I say I'm fluent in python but for some reason they just laugh and act like its illegitimate. I use Django and I think python is really powerful and saves a lot of time (money) when it comes to developing applications. I'm rather surprised it has this view. Where the heck did this whole elitism against python come from?

EDIT: TIL, many people who read this subreddit like to be very judgmental and critical of the way you words things. Oh and the assumptions, great read.

submitted by Dirty_Rapscallion to Python
[link] [158 comments]

Posted on 22 June 2012

I use PHP. Whenever I meet a Python guy, they tell me how much better it is, and I'd like the low-down on the reasons.

I'm not bothered with the fact that PHP was not designed and has inconsistencies etc., because I know my way around it well enough that it doesn't matter. I'm curious whether using Python would help me, as I don't hear much negativity around it.

What I want to know is, in terms of web dev, are there things Python can do that PHP can't? Is the language so much better that I'll be able to write better code in less time? Is it as fast as PHP, and are the frameworks as varied and battle tested? Are there any shortcomings to Python that would trip me up?

Thanks guys.

submitted by maloney7 to Python
[link] [209 comments]

Posted on 19 November 2011

Are there any things about Python that you do *not* like, or that you wish were done differently, or that you flat out think are wrong?

I lightheartedly joked in another thread that if the person had agreed with my point (that Python 3 seems very slightly harder to code in than Python 2.x - also a lighthearted, almost completely unfounded critique), that it would be the first time I'd ever seen any Python user online agree with any criticism of any part of the language. In this last bit I'm not really joking.

I had many newbie critiques a few years ago - 'self', the fact that you can't join a string list with myList.join(', '), something about slicing that I forget now, that it was confusing which things worked in-place, and which worked on a copy, etc. - and in a forum (not reddit) where I posted up my lengthy list (mostly to see what people thought of these things), I was met with a wall of responses, all strongly in favor of every last part of all of it, and even of things I hadn't mentioned. In 3 years I realize now I have never once seen anyone critique any part of the language and not be met with all manner of deep, philosophical justifications as to why that thing or those things must be that way.

It's the perfect language, I guess.

So my new question is just straight up: IS there anything about Python you don't like? I mean, it is moving to 3, and there are changes, so clearly 2.x had room for improvement, so let's hear it. Be prepared for a battle on all fronts from everyone else in here, though, whatever you say :) I'd love to hear from the real experts, the people who usually wield seemingly powerful reasoning and long strings of computer science words in their arguments.

This itself isn't a critique, nor even a jab, but just another attempt to learn more.

submitted by gfixler to Python
[link] [576 comments]

Posted on 16 November 2011

A website that lets you browse Reddit like you're reading/coding in Python!

...or Java (and soon, Ruby, PHP, C#, etc.).

It's my first website with Flask (my first real dynamic website?). I wanted the domain to be, but it was too expensive :(. So I just asked my brother to help me host it.

Comments appreciated. :)


  • NSFW indicator for Python (can't figure out where/how to place it in Java, but it still checks for NSFW so it won't load image previews)
  • don't preload all images (thanks to canuckkat)
  • use def instead of class in Python


I just opened up the repo at bitbucket :)

Thanks everyone!

submitted by ares623 to Python
[link] [73 comments]

Posted on 6 September 2011

Ask PyReddit: If you were making your own Python-like programming language, what would be different?

We all know Python isn't perfectly perfect, just practically perfect.

With that in mind, what changes would you make if you were brainstorming the ideal Python-like language? For example, do we really need the colon after an if statement? Shouldn't def f(default=[]): work the way you'd expect and not end up with a single global []? Isn't Ruby onto something when it makes mutating methods end in an exclamation mark by convention? And don't we really need a better syntax for passing an anonymous block as a callback? …

What are your ideas, /r/Python?

submitted by earthboundkid to Python
[link] [250 comments]

Posted on 29 May 2011