Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread Fred G
; batch file works > >> os.system("reg add HKEY_CURRENT_USER\Software .(etc)") > >> > >> Why is this not working using Python? Is there a built-in way to do > this (I > >> don't have win32api)? > > > >Wouldn't it be simpler

Re: [Tutor] filelist

2012-08-04 Thread Dave Angel
On 08/04/2012 09:11 PM, richard kappler wrote: > Starting to work through "Programming Computer Vision with Python" in my > -summer of learning python- quest. Congratulations; that's a worthy goal. > As I read through the intro to the PIL > library, I came across the below code. When I read i

[Tutor] filelist

2012-08-04 Thread richard kappler
Starting to work through "Programming Computer Vision with Python" in my -summer of learning python- quest. As I read through the intro to the PIL library, I came across the below code. When I read it, I said to my self "I don't see how that calls a set of files, there's no specificity. How does

Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread Fernando Salamero Pelay
Codea is an iOS app for program in Lua. There is a framewok to port to Objective-C. For python there is the app Pythonista. May be the programmer will follow this way. On the other hand, there is multiplatform framework (iOS included) that supports python: kivy.org , I believe. (Enviado desd

Re: [Tutor] Recursive assignment in nested lists

2012-08-04 Thread Alan Gauld
On 04/08/12 20:44, Alonzo Quijote wrote: There must be a good reason that the responders use a tmp variable like this? But I notice that the same effects can be obtained with: def setValueAtPosition2(list, pos, value): for i in pos[:-1]: list = list[i] list[pos[-1]] = valu

Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread James Reynolds
the "native app" part of building an "app" is somewhat trivial in comparison to the backend needs. Read this article here on what instagram uses for their architecture: http://instagram-engineering.tumblr.com/post/13649370142/what-powers-instagram-hundreds-of-instances-dozens-of As you can see,

Re: [Tutor] Recursive assignment in nested lists

2012-08-04 Thread Alonzo Quijote
Thanks for all the help with this. I have 2 very quick follow-up questions: --- 1. Several responses proposed code like this: def setValueAtPosition(list, pos, value): tmp = list for i in pos[:-1]: tmp = tmp[i] tmp[pos[-1]] = value There must be a good reason that the responders u

Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread Kwpolska
On Sat, Aug 4, 2012 at 8:26 PM, James Reynolds wrote: > To clarify, that is their server side arc. The native app itself... I'm not > sure what is written in. Probably java if I had to guess. > > In making an app, most of your work is going to be backend in any event. > > Also, what happens when

Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread Chris Fox
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/08/2012 19:18, James Reynolds wrote: > Instagram is written in python django. > Even if that were true (Django is, as I understand it, a web framework) - how does that information help the original poster? Chris -BEGIN PGP SIGNATURE-

Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread Kwpolska
On Sat, Aug 4, 2012 at 8:18 PM, James Reynolds wrote: > Instagram is written in python django. > > Sent from my iPad > > On Aug 3, 2012, at 7:13 PM, Fred G wrote: > >> I just googled whether it is possible to write an i-phone app in Python and >> got very confusing, and not super good results. >

Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread James Reynolds
To clarify, that is their server side arc. The native app itself... I'm not sure what is written in. Probably java if I had to guess. In making an app, most of your work is going to be backend in any event. Also, what happens when an android user wants to download your app? Sent from my iPad

Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread James Reynolds
Instagram is written in python django. Sent from my iPad On Aug 3, 2012, at 7:13 PM, Fred G wrote: > I just googled whether it is possible to write an i-phone app in Python and > got very confusing, and not super good results. > > Is it possible? And if so, what module(s) do I need to instal

Re: [Tutor] adding a windows registry value

2012-08-04 Thread Albert-Jan Roskam
Hi, Thanks to all who replied, also those who replied off-list. Somebody else confirmed that the code was working as expected on another machine, so it's probably a rights issue. Still nice to have a look at _winreg though.   Regards, Albert-Jan ~~~

Re: [Tutor] I-Phone App in Python?

2012-08-04 Thread Kwpolska
On Sat, Aug 4, 2012 at 1:13 AM, Fred G wrote: > I just googled whether it is possible to write an i-phone app in Python and > got very confusing, and not super good results. > > Is it possible? And if so, what module(s) do I need to install? > > Much thanks! > > ___

Re: [Tutor] Recursive assignment in nested lists

2012-08-04 Thread Asokan Pichai
On Sat, Aug 4, 2012 at 12:28 PM, Alonzo Quijote wrote: > Is there a way to define a function which takes >a list (of lists), >a position specified by a list of integers [i0,i1,...,in], and >a value > and returns the result of setting > list[i0][i1]...[in]=value > > The following fu

Re: [Tutor] Recursive assignment in nested lists

2012-08-04 Thread Peter Otten
Alonzo Quijote wrote: > Is there a way to define a function which takes >a list (of lists), >a position specified by a list of integers [i0,i1,...,in], and >a value > and returns the result of setting > list[i0][i1]...[in]=value > > The following function works for positions up to

Re: [Tutor] Recursive assignment in nested lists

2012-08-04 Thread Steven D'Aprano
On 04/08/12 16:58, Alonzo Quijote wrote: Is there a way to define a function which takes a list (of lists), a position specified by a list of integers [i0,i1,...,in], and a value and returns the result of setting list[i0][i1]...[in]=value Yes it is possible, but if you need th

Re: [Tutor] Recursive assignment in nested lists

2012-08-04 Thread Puneeth Chaganti
On Sat, Aug 4, 2012 at 12:28 PM, Alonzo Quijote wrote: > Is there a way to define a function which takes >a list (of lists), >a position specified by a list of integers [i0,i1,...,in], and >a value > and returns the result of setting > list[i0][i1]...[in]=value > > The following fu

[Tutor] Recursive assignment in nested lists

2012-08-04 Thread Alonzo Quijote
Is there a way to define a function which takes a list (of lists), a position specified by a list of integers [i0,i1,...,in], and a value and returns the result of setting list[i0][i1]...[in]=value The following function works for positions up to length 3 only. Is it possible to writ