Re: 2to3 inscrutable output

2012-05-28 Thread Steven D'Aprano
On Mon, 28 May 2012 09:18:29 -0700, ru...@yahoo.com wrote: > What is this output from 2to3 supposed to mean? > $ cat mysub.py > isinstance (3, (int,float)) > $ 2to3 -f isinstance mysub.py > RefactoringTool: No changes to mysub.py > RefactoringTool: Files that need to be modified: > R

Re: setup(**config); rookie

2012-05-28 Thread Steven D'Aprano
On Mon, 28 May 2012 06:20:06 -0700, cate wrote: > setup(**config) > > What is the construct **? It expands the dict "config" into keyword arguments. A single * expands to positional arguments. A simple example: args = [1, 2, 3] kwargs = {'x': 4, 'y': 5} somefunc(*args, **kwargs) is expande

Re: python for android anyone?

2012-05-28 Thread Cousin Stanley
rusi wrote: > > Any specific tips will of course be welcome < but also the general idea > -- is android really python friendly (yet)? You might take a look at Kivy http://kivy.org/ "It is built with Cython ( C extensions for Python ) and, in order to create apps, Python

Re: python for android anyone?

2012-05-28 Thread Temia Eszteri
On Mon, 28 May 2012 08:56:51 -0700 (PDT), rusi wrote: >Ive been wanting to try the sl4a for a new android phone Ive got hold >of as spelt out at >http://www.linuxjournal.com/article/10940 > >Has anyone any experience/dos/donts for this? > >I am writing this while the update of the android sdk is

Re: python for android anyone?

2012-05-28 Thread rusi
On May 28, 9:13 pm, Paul Rubin wrote: > rusi writes: > > Ive been wanting to try the sl4a for a new android phone Ive got hold > > of as spelt out at > >http://www.linuxjournal.com/article/10940 > > > Has anyone any experience/dos/donts for this? > > One of my co-workers used it for something, an

2to3 inscrutable output

2012-05-28 Thread ru...@yahoo.com
What is this output from 2to3 supposed to mean? $ cat mysub.py isinstance (3, (int,float)) $ 2to3 -f isinstance mysub.py RefactoringTool: No changes to mysub.py RefactoringTool: Files that need to be modified: RefactoringTool: mysub.py Why does mysub.py need to be modified, and how? --

Re: python for android anyone?

2012-05-28 Thread Paul Rubin
rusi writes: > Ive been wanting to try the sl4a for a new android phone Ive got hold > of as spelt out at > http://www.linuxjournal.com/article/10940 > > Has anyone any experience/dos/donts for this? One of my co-workers used it for something, and I've been looking into it but haven't tried it ye

python for android anyone?

2012-05-28 Thread rusi
Ive been wanting to try the sl4a for a new android phone Ive got hold of as spelt out at http://www.linuxjournal.com/article/10940 Has anyone any experience/dos/donts for this? I am writing this while the update of the android sdk is happening and its taking forever. So just wondering if its wort

Re: setup(**config); rookie

2012-05-28 Thread Jean-Michel Pichavant
cate wrote: I going thru a 101 and came upon this (http:// learnpythonthehardway.org/book/ex46.html) try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'My Project', 'author': 'My Name', 'url': 'URL to get it at.'

Re: setup(**config); rookie

2012-05-28 Thread Roy Smith
In article , cate wrote: > I going thru a 101 and came upon this (http:// > learnpythonthehardway.org/book/ex46.html) > > try: > from setuptools import setup > except ImportError: > from distutils.core import setup > > config = { > 'description': 'My Project', > 'author': 'My

setup(**config); rookie

2012-05-28 Thread cate
I going thru a 101 and came upon this (http:// learnpythonthehardway.org/book/ex46.html) try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'My Project', 'author': 'My Name', 'url': 'URL to get it at.', 'downloa

Re: Smallest/cheapest possible Python platform?

2012-05-28 Thread garabik-news-2005-05
Tomasz Rola wrote: > If you are on tight budget and depend so much on Python, I'm afraid you > should either: > > a. grow your budget > > b. try another language such as PyMite... -- --- | Radovan Garabík http://kassiopeia.juls.savba.