Python

#slider
#adsense

Python - Yahoo News Search Results

Monty Python stage reunion puts them back on their perch

Surviving members of Flying Circus prove they are no dead parrots by announcing show at Playhouse Theatre in London The parrot was, we were assured, no more. It was definitely an ex-parrot. But there is a glimmer of hope that it could fly again, after fans greeted the news that the full remaining Monty Python crew were set to re-form with dazed delight. Monty Python fans from Buenos Aires to ...

Vans LXVI Summer 2014 Python Pack

Vans' LXVI line unveils its new Summer 2014 Python Pack, which offers skinskin-inspired detailing to four its silhouettes.

Michael Palin Reveals Nerves And 'Great Expectations' Ahead Of 'Monty Python' Final Shows In London

Michael Palin is a pro - from his comedy days in the Cambridge Footlights, cutting a dash with his fellow Monty Python gang, through to his warm TV travelogues whose humour and comradeship in the furthest flung isles have proven him, officially, to be Britain's nicest man. He's also a busy man. If the Monty Python reunion gigs taking place in London from July aren't enough, he's heading off on ...

'Spamalot' aspires to capture laid-back, 'nonsensical' humor | Arts & Culture

"Monty Python's Spamalot" will make its way to Clarence Brown Theatre this Thursday. The musical has been described as an "outrageous musical comedy lovingly ripped off" from the classic "Monty Python and the Holy Grail." The production has been on tour across the world and has been the winner ...

Michael Palin to return to TV drama in BBC1 thriller Remember Me

Monty Python star will play care home resident who witnesses death in three-part series – his first lead TV role since 1991 Michael Palin will take his first leading role in a TV drama for more than 20 years in BBC1's supernatural thriller Remember Me. Palin, who will reunite with the rest of Monty Python later this year, plays a mysterious care home resident who is the only witness to a violent ...

Monty Python: five of the best sketches

Video: Rumour is rife that Monty Python's surviving members are to reform, but can they ever be as good as their heyday... Here are Brian Logan's favourite classics – but what are yours? Brian Logan

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.

Delicious/tag/Python

recent bookmarks tagged Python

copytext - #spreadsheets as #python objects

Posted on 24 April 2014

BigData com Python | PyCursos

Posted on 24 April 2014

PyEBICS

Posted on 24 April 2014

SendKeys-ctypes-0.2.zip - sendkeys-ctypes - Sendkeys-ctypes 0.2 setup file - Re-Writen "back to ctypes" SendKeys(http://www.rutherfurd.net/python/sendkeys/) - Google Project Hosting

Posted on 24 April 2014

orutherfurd / sendkeys / source / — Bitbucket

Posted on 24 April 2014

Python base64.b64encode() | Base64 Encode

Posted on 24 April 2014

urssus - A RSS reader - Google Project Hosting

Posted on 24 April 2014

a friendly mkdir() « Python recipes « ActiveState Code

Posted on 24 April 2014

python - Django urlsafe base64 decoding with decryption - Stack Overflow

Posted on 24 April 2014

Python in NetBeans IDE 8.0 (Geertjan's Blog)

Posted on 24 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.

https://github.com/justinmeister/Mario-Level-1

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

EDIT 2:

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

Proof: https://twitter.com/EricIdle/status/403525056740851714

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

Update 2: The url for tickets - http://www.montypythonlive.com - 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] [7807 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?

easy/intermediate

  • 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

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 coderedd.it, but it was too expensive :(. So I just asked my brother to help me host it.

Comments appreciated. :)

r.doqdoq.com

UPDATES:

  • 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

UPDATES 2:

I just opened up the repo at bitbucket https://bitbucket.org/john2x/rdoqdoq :)

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