Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 22:05:29 -0700, rurpy--- via Python-list write s: >So I eventually found the kivy docs on their website where they >list prerequisite packages for installing kivy on ubuntu. I'll >translate those to hopefully the equivalent fedora package names, >install them, re

Re: Old DbaseV DOS Programmer wants to step over to new/actual modern program software

2015-08-17 Thread Adriaan Renting
For building new programs using free software, I currently like a mix of Qt, Python, C++ and various open source SQL databases (MySQL, PostGreSQL). I have found QtCreator an easy IDE to use in such cases, I don't really like Eclipse. But it requires a heavy knowledge of C++, which is not an easy l

Re: -2146826246 in win32com.client for empty #N/A cell in Excel

2015-08-17 Thread Sven Boden
On Sun, Aug 16, 2015 at 7:27 PM, Albert-Jan Roskam wrote: > > > > > Date: Sun, 16 Aug 2015 09:53:32 -0700 > > Subject: -2146826246 in win32com.client for empty #N/A cell in Excel > > From: sven.bo...@gmail.com > > To: python-list@python.org > > > > > > Anyone know how to handle "#N/A" in Excel fr

Error in IDLE

2015-08-17 Thread Henry Quansah
I just installed python. But I'm unable to access IDLE after several clicks and double clicks. I even tried repairing by trying to reinstall but I have the same issue. -- https://mail.python.org/mailman/listinfo/python-list

Re: Error in IDLE

2015-08-17 Thread Laura Creighton
In a message of Sat, 15 Aug 2015 16:42:13 +0100, Henry Quansah writes: >I just installed python. But I'm unable to access IDLE after several clicks >and double clicks. I even tried repairing by trying to reinstall but I have >the same issue. > What version of Python have you installed? How did yo

Python 3 sort() problem

2015-08-17 Thread Владислав
# first: works fine x = [1, 2, 4, 2, 1, 3] x = list(set(x)) x.sort() print(x) # output: 1, 2, 3, 4 # second: why x became None ?? x = [1, 2, 4, 2, 1, 3] x = list(set(x)).sort() print(x) # output: None I know that sort() returns None, but I guess that it would be returned x that was sorted. Wh

Re: Python 3 sort() problem

2015-08-17 Thread Joonas Liik
> > I know that sort() returns None, but I guess that it would be returned x > that was sorted. Why so? if it returned a sorted list it might lead some people to believe it did not modify the oridinal list which would lead to a ton of confusion for new users. -- https://mail.python.org/mailman/li

Re: Python 3 sort() problem

2015-08-17 Thread Fabien
On 08/17/2015 01:42 PM, Владислав wrote: x = [1, 2, 4, 2, 1, 3] x = list(set(x)).sort() print(x) /# output: None/ I know that sort() returns None, but I guess that it would be returned x that was sorted. Why so? If sort() returns None, than the following: x = list(set(x)).sort() is equivalen

Re: Python 3 sort() problem

2015-08-17 Thread Mark Lawrence
On 17/08/2015 12:42, Владислав wrote: # first: works fine x = [1, 2, 4, 2, 1, 3] x = list(set(x)) x.sort() print(x) /# output: 1, 2, 3, 4 /# second: why x became None ?? x = [1, 2, 4, 2, 1, 3] x = list(set(x)).sort() print(x) /# output: None/ I know that sort() returns None, but I guess that

Re: Python 3 sort() problem

2015-08-17 Thread Rustom Mody
On Monday, August 17, 2015 at 7:32:08 PM UTC+5:30, Владислав wrote: > # first: works fine > x = [1, 2, 4, 2, 1, 3] > x = list(set(x)) > x.sort() > print(x)  # output: 1, 2, 3, 4 > > # second: why x became None ?? > x = [1, 2, 4, 2, 1, 3] > x = list(set(x)).sort() > print(x)  # output: None > I kno

Who is using littletable?

2015-08-17 Thread Paul McGuire
littletable is a little module I knocked together a few years ago, found it sort of useful, so uploaded to SF and PyPI. The download traffic at SF is very light, as I expected, but PyPI shows > 3000 downloads in the past month! Who *are* all these people? In my own continuing self-education,

Re: Who is using littletable?

2015-08-17 Thread Laura Creighton
Some of the PyPI traffic is for mirrors. In addition to our official mirrors, some people/companies set up their own mirrors and suck down everything. Laura -- https://mail.python.org/mailman/listinfo/python-list

Python Mobile development using kivy

2015-08-17 Thread reetesh nigam
Hi All, I am using Python2.7 version, while developing basic app using kivy, I am getting following error : dev@synechron-desktop-156:~/myDev/mobile_app$ cat main.py from kivy import app from kivy.app import App from kivy.uix.label import Label class MyApp(App): def build(self): ret

RE: return types from library api wrappers

2015-08-17 Thread Joseph L. Casale
> Current practice is a NamedTuple for python code or the C equivalent. I > forget the C name, but I believe it is used by os.stat Hi Terry, Ok, that is what I will go with. Thanks for the confirmation, jlc -- https://mail.python.org/mailman/listinfo/python-list

Re: python command not working

2015-08-17 Thread Paul McGuire
On Friday, August 14, 2015 at 6:13:37 AM UTC-5, sam.h...@gmail.com wrote: > On Wednesday, April 22, 2009 at 8:36:21 AM UTC+1, David Cournapeau wrote: > > On Wed, Apr 22, 2009 at 4:20 PM, 83nini <83n...@gmail.com> wrote: > > > Hi guys, > > > > > > I'm new to python, i downloaded version 2.5, opened

Re: Python Mobile development using kivy

2015-08-17 Thread Laura Creighton
In a message of Mon, 17 Aug 2015 09:35:12 -0700, reetesh nigam writes: >Hi All, > >I am using Python2.7 version, while developing basic app using kivy, I am >getting following error : > >dev@synechron-desktop-156:~/myDev/mobile_app$ cat main.py >from kivy import app >from kivy.app import App >fro

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread Rustom Mody
On Monday, August 17, 2015 at 10:35:48 AM UTC+5:30, rurpy wrote: > I hope someday Python gets a decent packaging/distribution story. You are in august company | The final question was about what he (Guido) hates in Python. "Anything to do | with package distribution", he answered immediately. The

Re: Error in IDLE

2015-08-17 Thread Terry Reedy
On 8/15/2015 11:42 AM, Henry Quansah wrote: I just installed python. But I'm unable to access IDLE after several clicks and double clicks. I even tried repairing by trying to reinstall but I have the same issue. If you just installed 3.5.0rc1 on Windows, look for my fix message on or about the

Re: memory control in Python

2015-08-17 Thread Ping Liu
On Saturday, August 15, 2015 at 11:56:22 AM UTC-7, Laura Creighton wrote: > If the problem is that Python is using too much memory, then PyPy may > be able to help you. PyPy is an alternative implementation of Python, > and by defaiult uses a minimark garbage collector. > https://pypy.readthedocs.

Re: memory control in Python

2015-08-17 Thread Laura Creighton
In a message of Mon, 17 Aug 2015 11:40:32 -0700, Ping Liu writes: >> Discuss this more on pypy-...@python.org or the #pypy channel on freenode. >> People on pypy-dev would appreciate not getting libreoffice spreadsheet >> attachments but just the figures as plain text. >> >> Laura > >Hi, Laura, >

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-17 Thread Alex Glaros
Perhaps most jointly parented governmental organizations are functionally, collaborative "projects" (not organizations) which my model handles. But thanks to Laura, will not assume there are none, or will never be any in the future, so will use adjacent list (see fast response times documented i

Re: How to rearrange array using Python?

2015-08-17 Thread Martin Schöön
Den 2015-07-31 skrev Martin Schöön : > Den 2015-07-31 skrev Thomas 'PointedEars' Lahn : >> Mark Lawrence wrote: >>> >>> I'm not absolutely certain but I think you're into what's known as a >>> constraint satisfaction problem, in which case this >>> https://pypi.python.org/pypi/python-constraint/1.

Re: memory control in Python

2015-08-17 Thread Ping Liu
Hi, Dieter, If I move from Python to Jython or IronPython, do I need to retool whatever I have done? If so, that may take quite a long time. This may make the reimplementation impossible. -- https://mail.python.org/mailman/listinfo/python-list

why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)?

2015-08-17 Thread alex . flint
using Python 2.7.9, I get the following: >>> id(multiprocessing.Process.start) == id(multiprocessing.Process.start) True But on the other hand: >>> multiprocessing.Process.start is multiprocessing.Process.start False I thought that these two expressions were equivalent. Can somebody help me to

Python Import Hooks and __main__

2015-08-17 Thread Sven R. Kunze
Hi, following up on this thread on StackOverflow http://stackoverflow.com/questions/16515347/python-import-hooks-and-main does somebody has a great idea how to manage this? The issue at hand is, that I would like to apply a specific import hook right from the beginning of the interpreter run

Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)?

2015-08-17 Thread alex . flint
On Monday, August 17, 2015 at 3:24:22 PM UTC-7, alex@gmail.com wrote: > using Python 2.7.9, I get the following: > > >>> id(multiprocessing.Process.start) == id(multiprocessing.Process.start) > True > > But on the other hand: > > >>> multiprocessing.Process.start is multiprocessing.Process.s

Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)?

2015-08-17 Thread Chris Kaynor
On Mon, Aug 17, 2015 at 3:25 PM, wrote: > > Sorry I completely mistype that. It was supposed to read: > > >>> id(multiprocessing.Process.is_alive) == > id(multiprocessing.Process.start) > True > What is going on here is that it get multiprocessing.Process.is_alive, computes the id of it, then thr

Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)?

2015-08-17 Thread Ian Kelly
On Mon, Aug 17, 2015 at 4:57 PM, Chris Kaynor wrote: > The rules for the id is that they are only guaranteed unique during the > lifespan of both objects. Also, generally, you do not want to use id or is > for much of anything unless you really know what you are doing - generally, > you just want

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread rurpy--- via Python-list
On 08/17/2015 01:52 AM, Laura Creighton wrote: > In a message of Sun, 16 Aug 2015 22:05:29 -0700, rurpy--- via Python-list > writes: >> So I eventually found the kivy docs on their website where they >> list prerequisite packages for installing kivy on ubuntu. I'll >> translate those to hopefull

Re: memory control in Python

2015-08-17 Thread Chris Angelico
On Tue, Aug 18, 2015 at 8:09 AM, Ping Liu wrote: > If I move from Python to Jython or IronPython, do I need to retool whatever I > have done? If so, that may take quite a long time. This may make the > reimplementation impossible. You're not moving from Python to something else; you're moving f

execute commands as su on remote server

2015-08-17 Thread harirammanohar159
execute commands as su on remote server Postby hariram » Mon Aug 17, 2015 4:02 am Needed: I need to execute commands after doing su to other user on remote server(not sudo which doesn't require password) how i can achieve this using python? I googled and came to know that its not possible, so ju

Re: execute commands as su on remote server

2015-08-17 Thread Chris Angelico
On Tue, Aug 18, 2015 at 12:57 PM, wrote: > I need to execute commands after doing su to other user on remote server(not > sudo which doesn't require password) how i can achieve this using python? > I googled and came to know that its not possible, so just for confirmation > asking again, is it

Re: why does id(multiprocessing.Process.start) == id(multiprocessing.Process.start)?

2015-08-17 Thread random832
On Mon, Aug 17, 2015, at 18:25, alex.fl...@gmail.com wrote: > Sorry I completely mistype that. It was supposed to read: > > >>> id(multiprocessing.Process.is_alive) == id(multiprocessing.Process.start) > True > > >>> multiprocessing.Process.is_alive is multiprocessing.Process.start > False Try t

Re: memory control in Python

2015-08-17 Thread dieter
Ping Liu writes: > If I move from Python to Jython or IronPython, do I need to retool whatever I > have done? If so, that may take quite a long time. This may make the > reimplementation impossible. As Chris already pointed out, you are still using Python -- i.e. the base language does not ch

Re: memory control in Python

2015-08-17 Thread Laura Creighton
In a message of Tue, 18 Aug 2015 10:13:57 +1000, Chris Angelico writes: >On Tue, Aug 18, 2015 at 8:09 AM, Ping Liu wrote: >> If I move from Python to Jython or IronPython, do I need to retool whatever >> I have done? If so, that may take quite a long time. This may make the >> reimplementation i