background preloader

Hidden features of Python

Hidden features of Python

blist JythonFaq/GeneralInfo - JythonWiki JythonFaq What is Jython? Jython is the successor to JPython. The Jython project was created in accordance with the CNRI JPython 1.1.x license, in order to ensure the continued existence and development of this important piece of Python software. Mailing lists, Subversion and all current information on the Jython project is available at SourceForge, at What is JPython? JPython is an implementation of the Python programming language which is designed to run on the Java(tm) Platform. The name had to be changed to something other than JPython, because of paragraph 4 in the JPython-1.1 license: 4. JPython 1.1 was released on 28-Jan-2000. Is Jython the same language as Python? Yes. There are a number of differences. There are a number of other differences between the two implementations that are unlikely to go away. What is the current status of Jython? The Jython project was announced on 19-oct-2000. Jython 2.5.1 was release on September 26, 2009.

SciPy - Message Queue Evaluation Notes From Second Life Wiki Second Life Wiki > Message Queue Evaluation Notes One of the infrastructure tools that we've identified for the future internal architecture of Second Life is messaging. Ideally we'd have a completely scaleable system that clients could treat as singular black box. Our use cases mostly involve very large numbers of queues; the smallest number we're even considering is double the number of concurrent users. In any case, given that we expect that we'd have to develop our own queue scaling solution that involves partitioning, which may or may not be a task we are interested in taking on, the strongest candidates are RabbitMQ and Apache QPID. We're unfortunately pretty far from having closed the case on which technology to choose, or even if we can use any of these at all. Criteria Questions The major use cases that we believe could be implemented with message queues are these: Many other uses that we haven't put up there would arise when developing various applications.

Python progression path - From apprentice to guru Django People WhyJython - JythonWiki Jython, lest you do not know of it, is the most compelling weapon the Java platform has for its survival into the 21st century - SeanMcGrath Why Jython There are numerous alternative languages implemented for the Java VM. The following features help to separate Jython from the rest: Dynamic compilation to Java bytecodes - leads to highest possible performance without sacrificing interactivity. Ability to extend existing Java classes in Jython - allows effective use of abstract classes. What Does Jython Do Well? Differences - Python & Jython Python 2.7 C Multi-platform Compiles to .pyc Extend with C GIL 1 Python garbage collection, which mixes ref counting and mark and sweep Jython 2.7 Beginning Python Programming — Beginning Python Programming for Aspiring Web Developers Navigation Beginning Python Programming¶ for Aspiring Web Developers¶ Using Python 3 by Jeffrey Elkner (with liberal borrowings from the work of Allen B. Last updated: 15 December 2015 Copyright NoticeContributor ListChapter 1 The way of the programChapter 2 Values, expressions, and statementsChapter 3 Strings, lists, and tuplesChapter 4 Conditionals and loopsChapter 5 FunctionsChapter 6 Dictionaries, sets, files, and modulesChapter 7 Classes and objectsChapter 8 InheritanceChapter 9 Server-side scriptingAppendix A Configuring Ubuntu for Python web developmentGNU Free Document License Search Page © Copyright 2014, Jeffrey Elkner.

Clint, Command Line Library for Python January 5, 2012 This library is the kind I like, the kind which make your life easier, perfect for someone like me, who uses Python all the time. So, what can Clint do for you? Colors Having some colored output can be nice, but I don’t want to use some ncurses interface to have a nice display. Let’s see the simplest example possible: from clint.textui import colored print colored.red('some warning message')print colored.green('nicely done!') How intuitive was that! If you only need one word in different color, it’s as simple as a concatenation, here’s a quick example: from clint.textui import colored print 'I love ' + colored.yellow('pyt') + colored.blue('hon') Indentation One of the main feature of Clint, is to handle nicely indentations. from clint.textui import colored, indent, puts with indent(3, quote=colored.red(' >')): puts ('some random text') puts ('another text') with indent(3, quote=colored.green(' |')): puts('some more nested identation') puts('cool isn\'t?') Arguments

oop - What is a metaclass in Python

Related: