Re: [OT]: Smartphones and Python?

2012-02-18 Thread 88888 Dihedral
在 2012年2月19日星期日UTC+8上午8时36分48秒,Michael Torrie写道: > On 02/18/2012 10:46 AM, Lie Ryan wrote: > > Android does have a full Linux experience; what it lacks is the GNU > > experience. Unlike "normal" Linux distros, Android does not use GNU > > userspace, instead it have its own userspace based on bion

Re: tkinter.Toplevel

2012-02-18 Thread yves
On 2012-02-17 16:48, Rick Johnson wrote: On Feb 16, 8:39 pm, y...@zioup.com wrote: With a tkinter.Toplevel, how can I "disable" the parent windown and all its widget, in the same fashion as tkinter.messagebox? The answer lies within the tkSimpleDialog source code; which is pure python. Look in

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-18 Thread Bryan
SherjilOzair wrote: > Has it been considered to add shell features > to python, such that it can be used as a > default shell, as a replacement for bash, etc. I think yes, but rather than become a shell, Python makes easy programming a shell that can execute Python code. The tendency has been to e

Re: entering unicode (was Python usage numbers)

2012-02-18 Thread Steven D'Aprano
On Sun, 12 Feb 2012 19:09:32 -0800, rusi wrote: > I have some bunch of sanskrit (devanagari) to type. It would be easiest > for me if I could have the English (roman) as well as the sanskrit > (devanagari). > > For example using the devanagari-itrans input method I can write the > gayatri mantra

[ANN] markup.py 1.8

2012-02-18 Thread Daniel Nogradi
A new release of markup.py is available at http://markup.sourceforge.net/ This new release is compatible with both python 2 and 3. What is markup.py? Markup.py is an intuitive, light weight, easy-to-use, customizable and pythonic HTML/XML generator. The only goal is quickly writing HTML/XML segm

#line in python

2012-02-18 Thread Ross Boylan
The ast module shows that elements of the syntax tree have line and column numbers. Would it be sensible to attempt to revise them to achieve effects like the #line directive in C? Context: Using noweb, a literate programming tool, which from a source file foo.nw produces foo.py. The lines in th

Re: [OT]: Smartphones and Python?

2012-02-18 Thread Michael Torrie
On 02/18/2012 10:46 AM, Lie Ryan wrote: > Android does have a full Linux experience; what it lacks is the GNU > experience. Unlike "normal" Linux distros, Android does not use GNU > userspace, instead it have its own userspace based on bionic, toolbox, > and dalvik. Linux is a core part of Andro

Re: [semi OT]: Smartphones and Python?

2012-02-18 Thread Matej Cepl
On 16.2.2012 16:22, Michael Torrie wrote: Android simply isn't going to run the JVM anytime soon. In reality yes, but just technically speaking there is the project IcedRobot (http://www.icedrobot.org/), which is a fork of Android over OpenJDK. Best, Matěj -- http://mail.python.org/mailman

Re: [OT]: Smartphones and Python?

2012-02-18 Thread Matej Cepl
For one I don't know of any sun-compatible JVM that has been ported to ARM. http://www.senecass.com/projects/OpenJDK-ARM/ "This work has been completed, and is now in OpenJDK HEAD. This page is now mostly for historical documentation." Also, http://openjdk.java.net/projects/zero/ (I know my c

Re: parse a profile

2012-02-18 Thread Cameron Simpson
On 18Feb2012 18:43, MRAB wrote: | On 18/02/2012 16:34, Jason Friedman wrote: | > I have a file I use for shell scripts that looks like this: | > | > export VAR1=/path/to/dir | > export VAR2=7 | > export VAR3=${VAR1}/further/path | > # comment | > . /another/file | > | > And a file /another/file: |

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-18 Thread 88888 Dihedral
在 2012年2月19日星期日UTC+8上午3时21分53秒,Jabba Laci写道: > Have a look at IPython (http://ipython.org/). It can interact with the > normal shell very well. > > Laszlo > > On Sat, Feb 18, 2012 at 19:58, SherjilOzair wrote: > > Has it been considered to add shell features to python, such that it can be > > u

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-18 Thread Jabba Laci
Have a look at IPython (http://ipython.org/). It can interact with the normal shell very well. Laszlo On Sat, Feb 18, 2012 at 19:58, SherjilOzair wrote: > Has it been considered to add shell features to python, such that it can be > used as a default shell, as a replacement for bash, etc. > > I

Python as a default shell, replacement of bash, sh, cmd ?

2012-02-18 Thread SherjilOzair
Has it been considered to add shell features to python, such that it can be used as a default shell, as a replacement for bash, etc. I'm sure everyone would agree that doing this would make the terminal very powerful. What are your views on this? -- http://mail.python.org/mailman/listinfo/pyth

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-18 Thread random joe
On Feb 18, 12:34 pm, Rick Johnson wrote: > Louie-the-loose-screw Said: "I'll give you $15 if you'll give me $15!" $15 dolla too beau coup! 5 dolla each! -- http://mail.python.org/mailman/listinfo/python-list

Re: parse a profile

2012-02-18 Thread MRAB
On 18/02/2012 16:34, Jason Friedman wrote: I have a file I use for shell scripts that looks like this: export VAR1=/path/to/dir export VAR2=7 export VAR3=${VAR1}/further/path # comment . /another/file And a file /another/file: export VAR4=database-name Is there an existing package that will re

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-18 Thread Rick Johnson
On Feb 18, 10:15 am, Mark Lawrence wrote: > On 18/02/2012 15:02, Rick Johnson wrote: > > > But do you think you'll get a higher return for your investment? Is it > > possible to get a higher return on your investment in this type of > > system? NO! You better off just paying for your own damn heal

Re: [OT]: Smartphones and Python?

2012-02-18 Thread Lie Ryan
On 02/18/2012 12:51 PM, Michael Torrie wrote: On 02/16/2012 10:25 PM, 8 Dihedral wrote: Android is a customized linux OS used in mobile phones. I don't think any linux systm has to be locked by JAVA or any JVM to run applications. Getting waaa off topic here, but... I guess you aren't

parse a profile

2012-02-18 Thread Jason Friedman
I have a file I use for shell scripts that looks like this: export VAR1=/path/to/dir export VAR2=7 export VAR3=${VAR1}/further/path # comment . /another/file And a file /another/file: export VAR4=database-name Is there an existing package that will read such a file and return a dictionary like t

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-18 Thread Mark Lawrence
On 18/02/2012 15:02, Rick Johnson wrote: But do you think you'll get a higher return for your investment? Is it possible to get a higher return on your investment in this type of system? NO! You better off just paying for your own damn healthcare. I guess you'd better get wikipedia to correct

Re: Python code file prototype

2012-02-18 Thread Grant Edwards
On 2012-02-17, Dennis Lee Bieber wrote: > On Fri, 17 Feb 2012 09:55:46 -0700, Ian Kelly > wrote: > >> >>The shebang has to be the first thing in the file to be useful. As it >>is above, it might as well not be there. I would suggest also >>including a doc string in the skeleton. >> > Of c

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-18 Thread Rick Johnson
On Feb 18, 1:28 am, Ian Kelly wrote: > On Fri, Feb 17, 2012 at 6:13 PM, Rick Johnson > If I were to [sum my tax burden], it would > probably come to around 30%, which still doesn't bother me, in part > because I know that it comes back to benefit the society I live in, > and by extension me, in

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-18 Thread Terry Reedy
On 2/18/2012 2:28 AM, Ian Kelly wrote: Here's a neat table: government spending as a percentage of GDP, by country. http://anepigone.blogspot.com/2008/03/government-spending-as-percentage-of.html The table is for "national government spending". That means spending by the national government.