Re: Brython - Python in the browser

2012-12-22 Thread Pierre Quentel
> Oh, and repr is just a synonym of str, which makes it useless. 3 days ago repr was not even implemented at all, so it's a step forward... -- http://mail.python.org/mailman/listinfo/python-list

Re: Brython - Python in the browser

2012-12-22 Thread Pierre Quentel
I was over-simplifying - or, to put is less diplomatically, I screwed up - when I answered that the addition returned a string. As Chris pointed out, it made the explanation very confusing. My apologies The objects handled by + and <= can be : - strings, integers, floats - instances of $TagClass

Re: Brython - Python in the browser

2012-12-22 Thread Chris Angelico
On Sat, Dec 22, 2012 at 6:57 PM, Pierre Quentel wrote: > I was over-simplifying - or, to put is less diplomatically, I screwed up - > when I answered that the addition returned a string. As Chris pointed out, it > made the explanation very confusing. My apologies > > The objects handled by + and

Re: Brython - Python in the browser

2012-12-22 Thread Pierre Quentel
> Still, it tends to be a lot harder to explain, document, and read > documentation for, something that uses operators weirdly, rather than > keyword-searchable method names. You don't explain how to use the Python syntax (for instance the operator %, which behaves very differently between intege

pygnomevfs get_local_path_from_uri replacement

2012-12-22 Thread Daniel Fetchinson
Hi folks, I realize this is slightly off topic and maybe belongs to a gnome email list but it's nevertheless python: I use an old python program that was written for gnome 2 and gtk 2 and uses the function get_local_path_from_uri. More specifically it uses gnomevfs.get_local_path_from_uri. Now wi

Re: Brython - Python in the browser

2012-12-22 Thread Pierre Quentel
I forgot to mention : list comprehensions and the ternary operator (r1 if cond else r2) are now supported ! - Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: Brython - Python in the browser

2012-12-22 Thread Chris Angelico
On Sat, Dec 22, 2012 at 7:54 PM, Pierre Quentel wrote: >> Still, it tends to be a lot harder to explain, document, and read >> documentation for, something that uses operators weirdly, rather than >> keyword-searchable method names. > > You don't explain how to use the Python syntax (for instance

Re: pygnomevfs get_local_path_from_uri replacement

2012-12-22 Thread Westley Martínez
On Sat, Dec 22, 2012 at 09:57:11AM +0100, Daniel Fetchinson wrote: > Hi folks, I realize this is slightly off topic and maybe belongs to a > gnome email list but it's nevertheless python: > > I use an old python program that was written for gnome 2 and gtk 2 and > uses the function get_local_path_

Re: pygnomevfs get_local_path_from_uri replacement

2012-12-22 Thread Chris Rebert
On Sat, Dec 22, 2012 at 12:57 AM, Daniel Fetchinson wrote: > Hi folks, I realize this is slightly off topic and maybe belongs to a > gnome email list but it's nevertheless python: > > I use an old python program that was written for gnome 2 and gtk 2 and > uses the function get_local_path_from_uri

[Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Hello, to all, I hope I can describe me problem correctly. I have written a Project split up to one Main.py and different modules which are loaded using import and here is also my problem: 1. Main.py executes: 2. Import modules 3. One of the Modules is a SqliteDB datastore. 4. A second module c

Re: Brython - Python in the browser

2012-12-22 Thread Steven D'Aprano
On Sat, 22 Dec 2012 20:08:25 +1100, Chris Angelico wrote: > I don't see "string % tuple" as a good syntax; I prefer to spell it > sprintf("format",arg,arg,arg). Very possibly one of the worst names ever from a language that excels at bad names. "Sprint f"? WTF? Certainly not appropriate for Py

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread Peter Otten
prilisa...@googlemail.com wrote: > Hello, to all, > > I hope I can describe me problem correctly. > > I have written a Project split up to one Main.py and different modules > which are loaded using import and here is also my problem: > > 1. Main.py executes: > 2. Import modules > 3. One of the

Gary Sokolich - 3463

2012-12-22 Thread Gary Sokolisch
3463 W Gary Sokolich 801 Kings Road Newport Beach, CA 92663-5715 (949) 650-5379 Local PD 949-644-3681 Residence: 1029 S Point View St Los Angeles CA 90035 (310) 650-5379 and 5309 Victoria Ave., Los Angeles, CA, 90043 http://web.archive.org/web/20080821231423/http://www.tbpe.state.tx.us/da/d

Re: Brython - Python in the browser

2012-12-22 Thread Chris Angelico
On Sat, Dec 22, 2012 at 10:05 PM, Steven D'Aprano wrote: > On Sat, 22 Dec 2012 20:08:25 +1100, Chris Angelico wrote: > >> I don't see "string % tuple" as a good syntax; I prefer to spell it >> sprintf("format",arg,arg,arg). > > Very possibly one of the worst names ever from a language that excels

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 12:43:54 UTC+1 schrieb Peter Otten: > wrote: > > > > > Hello, to all, > > > > > > I hope I can describe me problem correctly. > > > > > > I have written a Project split up to one Main.py and different modules > > > which are loaded using import and here is a

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 13:38:11 UTC+1 schrieb prili...@googlemail.com: > Am Samstag, 22. Dezember 2012 12:43:54 UTC+1 schrieb Peter Otten: > > > wrote: > > > > > > > > > > > > > Hello, to all, > > > > > > > > > > > > > > I hope I can describe me problem correctly. > > > >

Re: python ldap bind error

2012-12-22 Thread Michael Ströder
Jorge Alberto Diaz Orozco wrote: > hi there. > I'm working with python ldap and I need to authenticate my user. > this is the code I'm using. > > import ldap > ldap.set_option(ldap.OPT_REFERRALS,0) > ldap.protocol_version = 3 > conn = ldap.initialize("ldap://ldap.domain.cu";) > conn.simple_bind_s(

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread Peter Otten
prilisa...@googlemail.com wrote: > I don't know, Python allways looks for me like a one script "File". But > there are big projects. like the the "Model of an SQL Server", using > coordinators no problems running threads and exchange Data through a > Backbone. I have searched a lot, but I havent f

Re: Pigeon Computer 0.1 Initial (BETA) release

2012-12-22 Thread Colin J. Williams
On 21/12/2012 7:07 PM, Amirouche Boubekki wrote: Héllo, 2012/12/22 Simon Forman mailto:forman.si...@gmail.com>> Pigeon Computer 0.1 Initial (BETA) release Summary The Pigeon Computer is a simple but sophisticated system for learning and exploring the fundamen

Plz Suggest... How can i install the pure python package py-bidi in WIndows.

2012-12-22 Thread Arsalan Khan
I tried installing but it gives error.. Can anyone guide the procedure of configuring/Installing a python package in windows ??? -- http://mail.python.org/mailman/listinfo/python-list

Re: Plz Suggest... How can i install the pure python package py-bidi in WIndows.

2012-12-22 Thread Kwpolska
On Sat, Dec 22, 2012 at 3:10 PM, Arsalan Khan wrote: > I tried installing but it gives error.. > Can anyone guide the procedure of configuring/Installing a python package in > windows ??? > -- > http://mail.python.org/mailman/listinfo/python-list What error, exactly? -- Kwpolska

Re: Plz Suggest... How can i install the pure python package py-bidi in WIndows.

2012-12-22 Thread David Robinow
On Sat, Dec 22, 2012 at 9:10 AM, Arsalan Khan wrote: > I tried installing but it gives error.. > Can anyone guide the procedure of configuring/Installing a python package in > windows ??? What did you do to try to install? What error(s) did you get? Where can I find this package if I want to h

Re: pygnomevfs get_local_path_from_uri replacement

2012-12-22 Thread Daniel Fetchinson
>> Hi folks, I realize this is slightly off topic and maybe belongs to a >> gnome email list but it's nevertheless python: >> >> I use an old python program that was written for gnome 2 and gtk 2 and >> uses the function get_local_path_from_uri. More specifically it uses >> gnomevfs.get_local_path_

Re: redirect standard output problem

2012-12-22 Thread iMath
在 2012年12月21日星期五UTC+8下午3时24分10秒,Chris Angelico写道: > On Fri, Dec 21, 2012 at 4:23 PM, iMath wrote: > > > redirect standard output problem > > > > > > why the result only print A but leave out 888 ? > > > > No idea, because when I paste your code into the Python 3.3 > > interpreter or save it

Re: redirect standard output problem

2012-12-22 Thread Chris Angelico
On Sun, Dec 23, 2012 at 2:07 AM, iMath wrote: > when I run it through command line ,it works ok ,but when I run it through > IDLE , only print A but leave out 888 > so why ? Because IDLE has to fiddle with stdin/stdout a bit to function. Try adopting Dave's recommendation - you'll likely find th

Re: compile python 3.3 with bz2 support

2012-12-22 Thread Miki Tebeka
On Thursday, December 20, 2012 10:27:54 PM UTC-8, Isml wrote: >     I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to > do that. Here is how I do it: >     1. download bzip2 and compile it(make、make -f Makefile_libbz2_so、make > install) Why can't you use yum? (yum install li

Re: compile python 3.3 with bz2 support

2012-12-22 Thread Benjamin Kaplan
On Dec 21, 2012 1:31 AM, "Isml" <76069...@qq.com> wrote: > > hi, everyone: > I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to do that. Here is how I do it: > 1. download bzip2 and compile it(make、make -f Makefile_libbz2_so、make install) > 2.chang to python 3.3 sou

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 14:54:27 UTC+1 schrieb Peter Otten: > wrote: > > > > > I don't know, Python allways looks for me like a one script "File". But > > > there are big projects. like the the "Model of an SQL Server", using > > > coordinators no problems running threads and exchange Da

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread Alexander Blinne
Am 22.12.2012 13:45, schrieb prilisa...@googlemail.com: > Ps.: The Socket, the DB has to be kept allways open, because of it's Server > functionality, A lot of Sensors, Timers, User interaction, must recived , > Calculated, etc so a reaction must be send in about 16~100 ms, different > modules o

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 18:26:43 UTC+1 schrieb Alexander Blinne: > Am 22.12.2012 13:45, schrieb: > > > Ps.: The Socket, the DB has to be kept allways open, because of it's Server > > functionality, A lot of Sensors, Timers, User interaction, must recived , > > Calculated, etc so a reaction

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread Alexander Blinne
Am 22.12.2012 19:10, schrieb prilisa...@googlemail.com: > It's for me a view of top side down, but how could the midlevel comunicate to > each oter... "not hirachical" You could use something like the singleton pattern in order to get a reference to the same datastore-object every time Datastore.

Re: Brython - Python in the browser

2012-12-22 Thread Dan Sommers
On Sat, 22 Dec 2012 23:11:00 +1100, Chris Angelico wrote: > "This is a string" / 3 ==> ["This ", "is a ", "strin", "g"] > and "This is a string" // 3 ==> ["This ", "is a ", "strin"] > then "This is a string" % 3 ==> ["g"] or possibly "g" > > which is incompatible with current usage. But that's a

Python, email temperature

2012-12-22 Thread Alexander Ranstam
Hi! Im totally new to Python, and im using it on my Raspberry pi. I found a program that sends an email, and one that checks the temperature of my CPU, but i cant seem to combine the to into the funktion that i want, sending me the CPU temp via Email. The two programs work very well on their o

Re: Python, email temperature

2012-12-22 Thread KarlE
On Saturday, December 22, 2012 9:36:41 PM UTC+1, Alexander Ranstam wrote: > Hi! > > > > Im totally new to Python, and im using it on my Raspberry pi. I found a > program that sends an email, and one that checks the temperature of my CPU, > but i cant seem to combine the to into the funktion th

Re: Python, email temperature

2012-12-22 Thread Joel Goldstick
On Sat, Dec 22, 2012 at 3:36 PM, Alexander Ranstam wrote: > Hi! > > Im totally new to Python, and im using it on my Raspberry pi. I found a > program that sends an email, and one that checks the temperature of my CPU, > but i cant seem to combine the to into the funktion that i want, sending me >

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread prilisauer
Am Samstag, 22. Dezember 2012 20:29:49 UTC+1 schrieb Alexander Blinne: > Am 22.12.2012 19:10, schrieb: > > > It's for me a view of top side down, but how could the midlevel comunicate > > to each oter... "not hirachical" > > > > You could use something like the singleton pattern in order to ge

Re: Python, email temperature

2012-12-22 Thread Gary Herron
On 12/22/2012 12:36 PM, Alexander Ranstam wrote: Hi! Im totally new to Python, and im using it on my Raspberry pi. I found a program that sends an email, and one that checks the temperature of my CPU, but i cant seem to combine the to into the funktion that i want, sending me the CPU temp via

Re: Python, email temperature

2012-12-22 Thread KarlE
On Saturday, December 22, 2012 9:44:39 PM UTC+1, Joel Goldstick wrote: > On Sat, Dec 22, 2012 at 3:36 PM, Alexander Ranstam wrote: > > Hi! > > > > Im totally new to Python, and im using it on my Raspberry pi. I found a > program that sends an email, and one that checks the temperature of my C

Re: Brython - Python in the browser

2012-12-22 Thread Ian Kelly
On Sat, Dec 22, 2012 at 1:31 PM, Dan Sommers wrote: > So why are we all so comfortable with using "*" as the operator for > multiplication? I'm sure that a new programming language that dared to > use U+00D7 or U+2715 for multiplication would be instantly rejected on > the grounds that it was con

Re: redirect standard output problem

2012-12-22 Thread Terry Reedy
On 12/22/2012 10:15 AM, Chris Angelico wrote: On Sun, Dec 23, 2012 at 2:07 AM, iMath wrote: when I run it through command line ,it works ok ,but when I run it through IDLE , only print A but leave out 888 so why ? Because IDLE has to fiddle with stdin/stdout a bit to function. Try adopting D

Re: Plz Suggest... How can i install the pure python package py-bidi in WIndows.

2012-12-22 Thread Terry Reedy
On 12/22/2012 10:02 AM, David Robinow wrote: On Sat, Dec 22, 2012 at 9:10 AM, Arsalan Khan wrote: I tried installing but it gives error.. Can anyone guide the procedure of configuring/Installing a python package in windows ??? What did you do to try to install? What error(s) did you get?

Re: Python, email temperature

2012-12-22 Thread Gary Herron
On 12/22/2012 12:54 PM, KarlE wrote: On Saturday, December 22, 2012 9:44:39 PM UTC+1, Joel Goldstick wrote: On Sat, Dec 22, 2012 at 3:36 PM, Alexander Ranstam wrote: Hi! Im totally new to Python, and im using it on my Raspberry pi. I found a program that sends an email, and one that checks

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread Terry Reedy
On 12/22/2012 7:45 AM, prilisa...@googlemail.com wrote: Am Samstag, 22. Dezember 2012 13:38:11 UTC+1 schrieb prili...@googlemail.com: Am Samstag, 22. Dezember 2012 12:43:54 UTC+1 schrieb Peter Otten: wrote: Hello, to all, And my mail reader text window is fille

Re: Brython - Python in the browser

2012-12-22 Thread Chris Angelico
On Sun, Dec 23, 2012 at 7:31 AM, Dan Sommers wrote: > On Sat, 22 Dec 2012 23:11:00 +1100, Chris Angelico wrote: > >> "This is a string" / 3 ==> ["This ", "is a ", "strin", "g"] >> and "This is a string" // 3 ==> ["This ", "is a ", "strin"] >> then "This is a string" % 3 ==> ["g"] or possibly "g" >

Re: Python, email temperature

2012-12-22 Thread No One
On 2012-12-22, KarlE wrote: > On Saturday, December 22, 2012 9:44:39 PM UTC+1, Joel Goldstick wrote: >> On Sat, Dec 22, 2012 at 3:36 PM, Alexander Ranstam wrote: >> >> Hi! >> >> >> >> Im totally new to Python, and im using it on my Raspberry pi. I found a >> program that sends an email, and

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread Alexander Blinne
Am 22.12.2012 21:43, schrieb prilisa...@googlemail.com: > I Think I describe my Situation wrong, the written Project is a > Server, that should store sensor data, perfoms makros on lamps according > a sequence stored in the DB and Rule systems schould regulate home devices > and plan scheduler job

Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces)

2012-12-22 Thread Dave Angel
On 12/22/2012 03:43 PM, prilisa...@googlemail.com wrote: > > I Think I describe my Situation wrong, the written Project is a > Server, that should store sensor data, perfoms makros on lamps > according a sequence stored in the DB and Rule systems schould > regulate home devices and plan scheduler

Re: Python, email temperature

2012-12-22 Thread KarlE
On Saturday, December 22, 2012 9:36:41 PM UTC+1, KarlE wrote: > Hi! > > > > Im totally new to Python, and im using it on my Raspberry pi. I found a > program that sends an email, and one that checks the temperature of my CPU, > but i cant seem to combine the to into the funktion that i want, s

Re: Python, email temperature

2012-12-22 Thread Chris Angelico
On Sun, Dec 23, 2012 at 9:50 AM, KarlE wrote: > Thanx for the help! > > After reading your comments i am starting to suspect that i lack basic > knowledge of Python programming. I will try to do some reading and undertand > what i got my self into! That happens :) Python has rules that are diff

I invite these group members to yahoodiary.com to make friends. Many groups already joined

2012-12-22 Thread bettykaren79
I invite these group members to yahoodiary.com to make friends. Many groups already joined -- http://mail.python.org/mailman/listinfo/python-list

Re: Python USB control on Windows 7?

2012-12-22 Thread Tim Roberts
Duncan Booth wrote: > >In this year's Christmas Raffle at work I won a 'party-in-a-box' including >USB fairy lights. > >They sit boringly on all the time, so does anyone know if I can toggle the >power easily from a script? My work PC is running Win7. Not easily, no. It's not really a USB devi

Re: Python USB control on Windows 7?

2012-12-22 Thread Chris Angelico
On Sun, Dec 23, 2012 at 6:28 PM, Tim Roberts wrote: > Duncan Booth wrote: >> >>In this year's Christmas Raffle at work I won a 'party-in-a-box' including >>USB fairy lights. >> >>They sit boringly on all the time, so does anyone know if I can toggle the >>power easily from a script? My work PC is