Rules: a) English stuff only, b) Don't double post, c) Stick with posts if already posted, d) You can cross post but not in unrelated or non-English groups.
"Developers at Netflix have the freedom to choose the technologies best suited for the job. More and more, developers turn to Python due to its rich batteries-included standard library, succinct and clean yet expressive syntax, large developer community, and the wealth of third party libraries one can tap into to solve a given problem. Its dynamic underpinnings enable developers to rapidly iterate and innovate, two very important qualities at Netflix. These features (and more) have led to increasingly pervasive use of Python in everything from small tools using boto to talk to AWS, to storing information with python-memcached and pycassa, managing processes with Envoy, polling restful APIs to large applications with requests, providing web interfaces with CherryPy and Bottle, and crunching data with scipy. To illustrate, here are some current projects taking advantage of Python..."
- imabonehead
from Bookmarklet
"Python provides a high level threading library that makes threading virtually painless. Generally, you should only use threads if the following is true: Sharing memory between threads is not an issue. You are not looking for the best optimized performance since threads share memory within a process. You want to be able to share objects between threads. You take precautions that threads are not working on the same object at the same time."
- imabonehead
from Bookmarklet
"Python is distributed with profiling modules. They describe the run time operation of a pure python program, providing a variety of statistics. The cProfile module is the recommended module. To execute your program under the control of the cProfile module, a simple form is..."
- imabonehead
from Bookmarklet
"In this tutorial we will build our very own application called LUD Media Converter. Along the way we will learn about the technologies that we have used in building the application. Generally speaking we will be covering Python and Python Qt bindings called PyQt and FFmpeg. At the end of the tutorial there are some tasks for you as well. As a reader, this will be an opportunity to practise what you have learnt and explore on your own. Don’t worry, we will have hints for you which will help you in completing the tasks."
- imabonehead
from Bookmarklet
"I recently had to profile an embedded system that runs a bunch of python code. The goal was to improve the start-up speed and identify bottlenecks. This is a large and complex system that has many process starting and stopping and forking all over the place. It looked to be a difficult task to hook the profiler into each and every process that would get launched. I came up with a solution to temporarily hook the profiler into the interpreter itself and dump the stats at exit using the atexit module."
- imabonehead
from Bookmarklet
>>> import antigravity - Try it in your Python interpreter, it works! :-D
- tekNico
My first thought was the unintended consequences of importing antigravity randomly into a program. I just started thinking of that Simpsons episode where Homer opens up a bag of potato chips and then accidentally breaks open an ant farm while weightless in the space shuttle.
- Victor Ganata
"The unittest test framework is python’s xUnit style framework. It is a standard module that you already have if you’ve got python version 2.1 or greater. In this post, I’ll cover the basics of how to create and run a simple test using unittest. Then I’ll show how I’m using it to test markdown.py."
- imabonehead
from Bookmarklet
John Hunter, the Matplotlib creator, died on August 28th, 2012. Please donate for his three children. "John Hunter Memorial Fund" <http://numfocus.org/johnhun...>.
"Pystache is a Python implementation of Mustache. Mustache is a framework-agnostic, logic-free templating system inspired by ctemplate and et. Like ctemplate, Mustache "emphasizes separating logic from presentation: it is impossible to embed application logic in this template language.""
- Serdar
from Bookmarklet
templating için snipmate'i kullanıyorum https://github.com/msander... gerçi, ama bıyıklı python'u sevdim, ondan paylaşıyorum, kıps kıps
- Serdar
"Canonical has launched its app developer web site in a bid to persuade developers to port applications over to its Ubuntu Linux distribution. Ubuntu's Software Center is Canonical's app store for its popular Ubuntu Linux distribution, offering both free and paid applications." For details, see http://developer.ubuntu.com \\ Transcript of video: http://developer.ubuntu.com/wp-cont...
- Adriano
from Bookmarklet
"As far as the $topic matter itself, cross-platform GUI development has never been easier due to a few simple tools. GTK is available on many platforms, and using Glade you can easily whip up an interface that suites your needs. Wiring up event handlers and the backend code is a cinch due to the gobject bindings which gtk provides that we are able to leverage from a Python app."
- imabonehead
from Bookmarklet
"My newest project is a Python library for monitoring memory consumption of arbitrary process, and one of its most useful features is the line-by-line analysis of memory usage for Python code."
- imabonehead
from Bookmarklet
"Python allows you, the programmer, to do some very cool things with functions. In Python, functions are first-class objects, which means that you can do anything with them that you can do with strings, integers, or any other objects. For example, you can assign a function to a variable..."
- imabonehead
from Bookmarklet
"I could have also named this post “Python HTTP POST with Basic Authentication?” But i wanted to keep it simple , and really this post is just meant for documentation purposes."
- imabonehead
from Bookmarklet
"Most of computes now have at least 2 processors. Multiprocessing was then the best way to simply minimize computation time! In addition, as no data had to be passed from one application to the other (left and right images are totally unrelated) threads were obviously not the most interesting solution for me. Basically, the following example will be perfect for applications in which the exact same task has to be performed several times on unrelated data : Here is a simple multiprocessing example, coming from the Python documentation..."
- imabonehead
from Bookmarklet
"Whether you’re just starting to learn Python, or you’ve been working with it for awhile, take note. Python LogoThe lovably geeky Nick Parlante — a Google employee and CS lecturer at Stanford — has written some awesomely succinct tutorials that not only tell you how you can use Python, but also how you should use Python. This makes them a fantastic resource, regardless of whether you’re just starting, or you’ve been working with Python for awhile."
- imabonehead
from Bookmarklet
"In a previous post on Python threads, I briefly mentioned that threads are unsuitable for CPU-bound tasks, and multiprocessing should be used instead. Here I want to demonstrate this with benchmark numbers, also showing that creating multiple processes in Python is just as simple as creating multiple threads. First, let’s pick a simple computation to use for the benchmarking. I don’t want it to be completely artificial, so I’ll use a dumbed-down version of factorization – breaking a number to its prime factors. Here is a very naive and un-optimized function that takes a number and returns a list of factors..."
- imabonehead
from Bookmarklet
"I found a great presentation given at Pycon in 2010 by Asheesh Laroia. I thought this might be a valuable resource for R users who are looking for ways to gather data from user-unfriendly websites."
- Adriano
from Bookmarklet
"Historically (through 2.4), compilation from source code to bytecode involved two steps: Parse the source code into a parse tree (Parser/pgen.c) Emit bytecode based on the parse tree (Python/compile.c) Historically, this is not how a standard compiler works. The usual steps for compilation are: Parse source code into a parse tree (Parser/pgen.c) Transform parse tree into an Abstract Syntax Tree (Python/ast.c) Transform AST into a Control Flow Graph (Python/compile.c) Emit bytecode based on the Control Flow Graph (Python/compile.c) Starting with Python 2.5, the above steps are now used. This change was done to simplify compilation by breaking it into three steps. The purpose of this document is to outline how the latter three steps of the process works. This document does not touch on how parsing works beyond what is needed to explain what is needed for compilation. It is also not exhaustive in terms of the how the entire system works. You will most likely need to read some source to have an exact understanding of all details."
- imabonehead
from Bookmarklet
"Earlier this month, I attended UDS-P (the Ubuntu Developers Summit for 12.04 Precise Pangolin). 12.04 is an LTS release, or Long Term Support, meaning it will be officially supported on both the desktop and server for five years. During the summit we reiterated our plans for Python on Ubuntu, both for 12.04 LTS, and our vision of Python two years from now for the next LTS, 14.04. I'm here to provide an update from my last report, which was written after UDS-O for 11.10."
- imabonehead
from Bookmarklet
summary: Python 2.7 in 12.04 LTS, while expecting Python 3.3 or 3.4 to be in Ubuntu 14.04.
- Adriano
"An epitrochoid is a curve traced by a point attached to a circle of radius r rolling around the outside of a fixed circle of radius R, where the point is a distance d from the center of the exterior circle [Ref]. Lately I found the Epitrochoid's parametric equations on wikipedia:"
- imabonehead
from Bookmarklet