Re: How to import Webkit and object in Official Python (not MacPorts python) without X11.
Here is my SS: 259 71 2451 On May 26, 2012, at 6:31 AM, "Mr.T Beppu" wrote: > I think that I will make a browser in Official Python (not MacPorts Python). > What should I do in order to install Webkit for Official Python (not MacPorts > Python) ? > from tokyo Japan. > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: How to import Webkit and object in Official Python (not MacPorts python) without X11.
Here is my SS: 259 71 2451 On May 26, 2012, at 6:40 AM, Barry Scott wrote: > > On 26 May 2012, at 14:31, Mr.T Beppu wrote: > >> I think that I will make a browser in Official Python (not MacPorts Python). >> What should I do in order to install Webkit for Official Python (not >> MacPorts Python) ? >> from tokyo Japan. >> -- >> http://mail.python.org/mailman/listinfo/python-list > > The PyWebKit binding are not maintained and have problems. You will find > yourself getting very frustrated trying to get anything but the trivia > working. > > We ended up writing C++ code to use WebKit on Linux rather then our > preferred Python. > > Barry > > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: usenet reading
Here is my SS: 259 71 2451 On May 26, 2012, at 8:05 AM, duncan smith wrote: > On 25/05/12 23:38, Jon Clements wrote: >> Hi All, >> >> Normally use Google Groups but it's becoming absolutely frustrating - not >> only has the interface changed to be frankly impractical, the posts are >> somewhat random of what appears, is posted and whatnot. (Ironically posted >> from GG) >> >> Is there a server out there where I can get my news groups? > > If you don't mind paying a small fee there are several companies providing > usenet access such as http://www.newsdemon.com. (I didn't have much joy > trying to track down a reliable free service, so now I pay a few pounds a > year.) > > Duncan > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
Here is my SS: 259 71 2451 On May 26, 2012, at 8:34 AM, Roy Smith wrote: > What's the smallest/cheapest/lowest-power hardware platform I can run > Python on today? I'm looking for something to use as a hardware > controller in a battery-powered device and want to avoid writing in C > for this project. > > Performance requirements are minimal. I need to monitor a few switches, > control a couple of LEDs and relays, and keep time over about a 30 > minute period to 1/10th second accuracy. Nice-to-have (but not > essential) would be a speech synthesizer with a vocabulary of maybe 50 > words. > > The Rasberry Pi certainly looks attractive, but isn't quite available > today. Can you run Python on an Arduino? Things like > http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are > more than I need, and the $129 price probably busts my budget. > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: How to import Webkit and object in Official Python (not MacPorts python) without X11.
Here is my SS: 259 71 2451 On May 26, 2012, at 7:09 AM, Benjamin Kaplan wrote: > On Sat, May 26, 2012 at 9:31 AM, Mr.T Beppu wrote: >> I think that I will make a browser in Official Python (not MacPorts >> Python). >> What should I do in order to install Webkit for Official Python (not >> MacPorts Python) ? >> from tokyo Japan. >> > > You don't just "install WebKit". You need a GUI framework. My > suggestion would be to install PySide, which is a QT wrapper that > includes a Webkit component. The other option is to use PyObjC to > build a Cocoa GUI but then you're restricted to Mac OS X only. > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
Here is my SS: 259 71 2451 On May 26, 2012, at 9:25 AM, Paul Rubin wrote: > Roy Smith writes: >> The Rasberry Pi certainly looks attractive, but isn't quite available >> today. Can you run Python on an Arduino? > > No. YOu want a 32-bit platform with an OS and perhaps 1 meg of memory. > And by the time you port Python to it unless it's there already, you may > as well have just written your application in C. > > If you want something even cheaper than an Arduino, look at the TI > Launchpad. But you can't program that in Python either. There is > a standalone interactive Forth for it, if that's of any interest: > http://www.somersetweb.com/4E4th/EN.html > > There are some fairly cheap ARM boards around that could run Python, but > they will be battery hungry compared to a Launchpad or Arduino, and > again, may not be worth the porting hassle if there's not an > already-done Python port. > > Lua might be another scripting language of interest (www.lua.org). Sort > of the same idea as Python, not quite as nice, but smaller and easier to > embed. I think it wants around 50-100k of ram, still way out of the > Arduino range. > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Uliweb release 0.1 version
Here is my SS: 259 71 2451 On May 26, 2012, at 7:49 AM, Etienne Robillard wrote: > Flexible is more English than "flexiable" i guess... :-) > > Besides the typing errors I look forward in checking this out for new > concepts... > > > Cheers and congratulations, > > Etienne > > > -- > Etienne Robillard > Occupation: Software Developer > Company:Green Tea Hackers Club > Email: e...@gthcfoundation.org > Website:gthcfoundation.org > Skype ID: incidah > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
Here is my SS: 259 71 2451 On May 26, 2012, at 9:20 AM, Ross Ridge wrote: > Roy Smith wrote: >> What's the smallest/cheapest/lowest-power hardware platform I can run >> Python on today? > > Not counting the Rasberry Pi, then probably a wireless router or one of > those cheap media streaming boxes running custom firmware. > >> Performance requirements are minimal. I need to monitor a few switches, >> control a couple of LEDs and relays, and keep time over about a 30 >> minute period to 1/10th second accuracy. Nice-to-have (but not >> essential) would be a speech synthesizer with a vocabulary of maybe 50 >> words. > > Unfortunately I don't think any of these devices would have the GPIO > pins you'd want for such a project. > >> The Rasberry Pi certainly looks attractive, but isn't quite available >> today. Can you run Python on an Arduino? Things like >> http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are >> more than I need, and the $129 price probably busts my budget. > > The Arduino uses an 8-bit micro-controller, so probably not. (The ARM > emulator based port of Linux probably doesn't meet your performance > requirements.) > > I think you may need to either wait for the Rasberry Pi to become > generally available or increase your budget. You should also consider > whether any of these devices have Python bindings to interface with > their GPIO pins. If not you'll probably have to end up writing some C > code anyways. > >Ross Ridge > > -- > l/ // Ross Ridge -- The Great HTMU > [oo][oo] rri...@csclub.uwaterloo.ca > -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ > db // > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: usenet reading
Here is my SS: 259 71 2451 On May 26, 2012, at 8:43 AM, Roy Smith wrote: > In article , > duncan smith wrote: > >> On 25/05/12 23:38, Jon Clements wrote: >>> Hi All, >>> >>> Normally use Google Groups but it's becoming absolutely frustrating - not >>> only has the interface changed to be frankly impractical, the posts are >>> somewhat random of what appears, is posted and whatnot. (Ironically posted >>> from GG) >>> >>> Is there a server out there where I can get my news groups? >> >> If you don't mind paying a small fee there are several companies >> providing usenet access such as http://www.newsdemon.com. (I didn't have >> much joy trying to track down a reliable free service, so now I pay a >> few pounds a year.) >> >> Duncan > > I use panix.com. For $100/year, I get mail, news, and unix shell > access. By some measures, it's an expensive way to get mail access, but > I'd much rather give Panix $100 than take advantage of any of the free > mail services who does who-knows-what with my mail. Not to mention that > I get access to such private newsgroups as panix.nytel.abuse. > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
Here is my SS: 259 71 2451 On May 26, 2012, at 9:22 AM, tinn...@isbd.co.uk wrote: > Roy Smith wrote: >> What's the smallest/cheapest/lowest-power hardware platform I can run >> Python on today? I'm looking for something to use as a hardware >> controller in a battery-powered device and want to avoid writing in C >> for this project. >> >> Performance requirements are minimal. I need to monitor a few switches, >> control a couple of LEDs and relays, and keep time over about a 30 >> minute period to 1/10th second accuracy. Nice-to-have (but not >> essential) would be a speech synthesizer with a vocabulary of maybe 50 >> words. >> >> The Rasberry Pi certainly looks attractive, but isn't quite available >> today. Can you run Python on an Arduino? Things like >> http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are >> more than I need, and the $129 price probably busts my budget. > > Rasberry Pi is available, some have arrived, mine will arrive on > Monday or Tuesday (I'm talking about UK here). > > I think getting python to run on an arduino device would be quite a > lot of effort even if it's possible. You might want to avoid C but > the 'sort of C' on the Arduino is very simple indeed, hardly more > difficult than Python. > > > -- > Chris Green > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: 2to3 for 2.7
Here is my SS: 259 71 2451 On May 26, 2012, at 7:37 PM, "ru...@yahoo.com" wrote: > Is there a list of fixers I can tell 2to3 to use that will > limit changes to things that will continue to run under > python-2.7? > > I want to start the 2->3 trip by making my code > as py3 compatible (under py2) as possible before > going the rest of the way to py3, and having 2to3 > help with this seems like a good idea. > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
2to3 for 2.7
Is there a list of fixers I can tell 2to3 to use that will limit changes to things that will continue to run under python-2.7? I want to start the 2->3 trip by making my code as py3 compatible (under py2) as possible before going the rest of the way to py3, and having 2to3 help with this seems like a good idea. -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
On Sat, 26 May 2012, Roy Smith wrote: > What's the smallest/cheapest/lowest-power hardware platform I can run > Python on today? I'm looking for something to use as a hardware > controller in a battery-powered device and want to avoid writing in C > for this project. > > Performance requirements are minimal. I need to monitor a few switches, > control a couple of LEDs and relays, and keep time over about a 30 > minute period to 1/10th second accuracy. Nice-to-have (but not > essential) would be a speech synthesizer with a vocabulary of maybe 50 > words. > > The Rasberry Pi certainly looks attractive, but isn't quite available > today. Can you run Python on an Arduino? Things like > http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are > more than I need, and the $129 price probably busts my budget. 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 For what I know, I wouldn't touch Arduino unless I really had to. The reason for this, I have been spoiled by machines, of which the smallest I wanted to touch had 3mb of ram. Arduinos, with their ram in kilobytes at best, don't qualify as interesting from my point of view. Also, I don't think they are so much attractive price-wise. I would rather buy myself a Beagle Bone, like this one: http://www.adafruit.com/products/513 http://beagleboard.org/bone However, if all that you want is flip some leds, this is huge overkill. For led flipping, Arduino sounds ok, just not with Python-as-we-like-it. Maybe some pseudoPython can be had on it. Myself, I would rather go with one of Arduino's supported languages or assembly. Or Forth. If you land among embedded systems, it's better to speak embeddish or you will feel uncomfortable. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm -rif" on the programmer's home** ** directory. And then the C programmer became enlightened... ** ** ** ** Tomasz Rola mailto:tomasz_r...@bigfoot.com ** -- http://mail.python.org/mailman/listinfo/python-list
Re: Uliweb release 0.1 version
On Sat, May 26, 2012 at 10:49 PM, Etienne Robillard wrote: > Flexible is more English than "flexiable" i guess... :-) > > Besides the typing errors I look forward in checking this out for new > concepts... > > > Cheers and congratulations, > > Etienne > Thank you. I've changed it in GIt. -- I like python! UliPad <>: http://code.google.com/p/ulipad/ UliWeb <>: http://code.google.com/p/uliweb/ My Blog: http://hi.baidu.com/limodou -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
On 12-05-26 05:32 PM, Paul Rubin wrote: Roy Smith writes: It sounds like I can run one on 300mA @ 5V. For my application, I'll have about 10 A-h available at 12V (motorcycle battery). OK, the RPi should be fine power-wise in that case, though I wouldn't consider something with a 10AH motorcycle battery to be very portable. Unless the application involves mounting it on a motorcycle. As a biker I am now officially curious, what's the application? -- D'Arcy J.M. Cain | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(eNTP) | what's for dinner. IM: da...@vex.net -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
Roy Smith writes: > It sounds like I can run one on 300mA @ 5V. For my application, I'll > have about 10 A-h available at 12V (motorcycle battery). OK, the RPi should be fine power-wise in that case, though I wouldn't consider something with a 10AH motorcycle battery to be very portable. > which is 18 A-h, or 60 hours of operation. The Launchpad can run 60+ hours on a watch battery, if the on-board LED's are not lit. The LED's use much more power than the processor. > In any case, the dirt-cheap price makes it really attractive. With what > I save on silicon, I can afford to buy more lead :-) The RPi is an awesome value for such a powerful board, but the Launchpad (while much less powerful) is far cheaper: http://e2e.ti.com/group/msp430launchpad/w/default.aspx -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
Roy Smith panix.com> writes: > > What's the smallest/cheapest/lowest-power hardware platform I can run > Python on today? I'm looking for something to use as a hardware > controller in a battery-powered device and want to avoid writing in C > for this project. It depends *which* Python. Complete Python implementations (CPython, PyPy, IronPython, Jython) will have stronger requirements than minimal / incomplete implementations. As for CPython, it needs a C compiler, decent POSIX support, a 32-bit CPU at least, and realistically you won't do much with at least 8 MB RAM. We actually have a buildbot which regularly tests building and running of CPython on an ARM machine: http://www.python.org/dev/buildbot/all/buildslaves/warsaw-ubuntu-arm It's a Cortex A8 with 1GB RAM, though, so I don't know if it's in your range (but 1GB is not needed at all, except that it's nice when running the full regression test suite). Regards Antoine. -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
In article <7x1um6928y@ruckus.brouhaha.com>, Paul Rubin wrote: > The Raspberry Pi is not really appropriate for a low powered portable > application anyway, because of relatively high power requirements > compared to an 8 bitter without all that media playback stuff. It sounds like I can run one on 300mA @ 5V. For my application, I'll have about 10 A-h available at 12V (motorcycle battery). Assuming (mumble, cough, cough) 75% down-conversion efficiency, 120 W-h @ 12V gets me 90 W-h @ 5V, which is 18 A-h, or 60 hours of operation. Of course, I've got to run some other stuff too, but I don't think the Raspberry Pi is going to blow my power budget. In any case, the dirt-cheap price makes it really attractive. With what I save on silicon, I can afford to buy more lead :-) -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
On Sun, May 27, 2012 at 5:22 AM, Paul Rubin wrote: > If C is really intolerable I know there are some micros that can be > programmed in BASIC. Ugh. Of those, I would strongly recommend going with C. ChrisA -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
tinn...@isbd.co.uk writes: > Rasberry Pi is available, some have arrived, mine will arrive on > Monday or Tuesday (I'm talking about UK here). Early orders have been filled, more are being filled, but there is a huge backlong and therefore a long wait if you waited til now to order. If you want one right away, at least as of a week or so ago they were going for $200-ish on ebay. The Raspberry Pi is not really appropriate for a low powered portable application anyway, because of relatively high power requirements compared to an 8 bitter without all that media playback stuff. The Beaglebone (www.beagleboard.org) is slightly higher end than the RPi and runs Python nicely, though it faces the same issues. I think a microcontroller (AVR, MSP430 etc) is a better fit for the OP's application than anything big enough to run Python. If C is really intolerable I know there are some micros that can be programmed in BASIC. -- http://mail.python.org/mailman/listinfo/python-list
Re: usenet reading
On Sat, May 26, 2012 at 11:43 AM, Roy Smith wrote: > I use panix.com. For $100/year, I get mail, news, and unix shell > access. By some measures, it's an expensive way to get mail access, but > I'd much rather give Panix $100 than take advantage of any of the free > mail services who does who-knows-what with my mail. Not to mention that > I get access to such private newsgroups as panix.nytel.abuse. I'm happy enough with several of the free services and haven't used news in over a decade, but if it works for you, great. I'm curious, though, what makes you think that panix.com protects your privacy more than yahoo, google, or AOL? -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
On Sat, 26 May 2012 11:34:19 -0400, Roy Smith wrote: > The Rasberry Pi certainly looks attractive, but isn't quite available > today. Can you run Python on an Arduino? Things like > http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are > more than I need, and the $129 price probably busts my budget. You can't run Python on an Arduino. There are a number of boards with ARM or PIC32 processors which can use Arduino daughter-boards (shields), but all of the ones which I've seen have rather limited RAM. -- http://mail.python.org/mailman/listinfo/python-list
Re: Help doing it the "python way"
On Thu, 24 May 2012 13:22:43 -0700, Scott Siegler wrote: > is there a way to do something like: > [(x,y-1), (x,y+1) for zzz in coord_list] > or something along those lines? [(xx,yy) for x, y in coord_list for xx, yy in [(x,y-1),(x,y+1)]] or: [(x,yy) for x, y in coord_list for yy in [y-1,y+1]] Not to be confused with: [[(xx,yy) for xx, yy in [(x,y-1),(x,y+1)]] for x, y in coord_list] or: [[(x,yy) for yy in (y-1,y+1)] for x, y in coord_list] which will produce the same pairs in the same order but as a list of lists rather than as a single flat list. -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
In article <8ic799-gk3@chris.zbmc.eu>, tinn...@isbd.co.uk wrote: > > Rasberry Pi is available, some have arrived, mine will arrive on > Monday or Tuesday (I'm talking about UK here). Interesting. Newark is claiming they'll have 1 piece on June 18th, and no further stock until October. http://www.newark.com/jsp/search/productdetail.jsp?sku=83T1943 -- http://mail.python.org/mailman/listinfo/python-list
Re: usenet reading
news.aioe.org nntp.aioe.org http://www.aioe.org/ Aioe.org hosts a public news server, an USENET site that is intentionally kept open for all IP addresses without requiring any kind of authentication both for reading and posting.Each IP address is authorized to post 25 messages per day... -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
On Saturday, May 26, 2012 10:34:19 AM UTC-5, Roy Smith wrote: > What's the smallest/cheapest/lowest-power hardware platform I can run > Python on today? I'm looking for something to use as a hardware > controller in a battery-powered device and want to avoid writing in C > for this project. > > Performance requirements are minimal. I need to monitor a few switches, > control a couple of LEDs and relays, and keep time over about a 30 > minute period to 1/10th second accuracy. Nice-to-have (but not > essential) would be a speech synthesizer with a vocabulary of maybe 50 > words. > You might take a look at the work being done by Dean Hall (with others) on the python-on-a-chip project: http://code.google.com/p/python-on-a-chip/ Many platforms have been ported to, including Arduino Mega, RedBee EconoTAG, Teensy++ 2.0, Microchip PIC24/dsPIC, among others This route may be more work than others, but considering budget may be attractive. > The Rasberry Pi certainly looks attractive, but isn't quite available > today. Can you run Python on an Arduino? Things like > http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are > more than I need, and the $129 price probably busts my budget. On Saturday, May 26, 2012 10:34:19 AM UTC-5, Roy Smith wrote: > What's the smallest/cheapest/lowest-power hardware platform I can run > Python on today? I'm looking for something to use as a hardware > controller in a battery-powered device and want to avoid writing in C > for this project. > > Performance requirements are minimal. I need to monitor a few switches, > control a couple of LEDs and relays, and keep time over about a 30 > minute period to 1/10th second accuracy. Nice-to-have (but not > essential) would be a speech synthesizer with a vocabulary of maybe 50 > words. > > The Rasberry Pi certainly looks attractive, but isn't quite available > today. Can you run Python on an Arduino? Things like > http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are > more than I need, and the $129 price probably busts my budget. On Saturday, May 26, 2012 10:34:19 AM UTC-5, Roy Smith wrote: > What's the smallest/cheapest/lowest-power hardware platform I can run > Python on today? I'm looking for something to use as a hardware > controller in a battery-powered device and want to avoid writing in C > for this project. > > Performance requirements are minimal. I need to monitor a few switches, > control a couple of LEDs and relays, and keep time over about a 30 > minute period to 1/10th second accuracy. Nice-to-have (but not > essential) would be a speech synthesizer with a vocabulary of maybe 50 > words. > > The Rasberry Pi certainly looks attractive, but isn't quite available > today. Can you run Python on an Arduino? Things like > http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are > more than I need, and the $129 price probably busts my budget. On Saturday, May 26, 2012 10:34:19 AM UTC-5, Roy Smith wrote: > What's the smallest/cheapest/lowest-power hardware platform I can run > Python on today? I'm looking for something to use as a hardware > controller in a battery-powered device and want to avoid writing in C > for this project. > > Performance requirements are minimal. I need to monitor a few switches, > control a couple of LEDs and relays, and keep time over about a 30 > minute period to 1/10th second accuracy. Nice-to-have (but not > essential) would be a speech synthesizer with a vocabulary of maybe 50 > words. > > The Rasberry Pi certainly looks attractive, but isn't quite available > today. Can you run Python on an Arduino? Things like > http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are > more than I need, and the $129 price probably busts my budget. -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
Roy Smith wrote: > What's the smallest/cheapest/lowest-power hardware platform I can run > Python on today? I'm looking for something to use as a hardware > controller in a battery-powered device and want to avoid writing in C > for this project. > > Performance requirements are minimal. I need to monitor a few switches, > control a couple of LEDs and relays, and keep time over about a 30 > minute period to 1/10th second accuracy. Nice-to-have (but not > essential) would be a speech synthesizer with a vocabulary of maybe 50 > words. > > The Rasberry Pi certainly looks attractive, but isn't quite available > today. Can you run Python on an Arduino? Things like > http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are > more than I need, and the $129 price probably busts my budget. Rasberry Pi is available, some have arrived, mine will arrive on Monday or Tuesday (I'm talking about UK here). I think getting python to run on an arduino device would be quite a lot of effort even if it's possible. You might want to avoid C but the 'sort of C' on the Arduino is very simple indeed, hardly more difficult than Python. -- Chris Green -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
Roy Smith wrote: >What's the smallest/cheapest/lowest-power hardware platform I can run >Python on today? Not counting the Rasberry Pi, then probably a wireless router or one of those cheap media streaming boxes running custom firmware. >Performance requirements are minimal. I need to monitor a few switches, >control a couple of LEDs and relays, and keep time over about a 30 >minute period to 1/10th second accuracy. Nice-to-have (but not >essential) would be a speech synthesizer with a vocabulary of maybe 50 >words. Unfortunately I don't think any of these devices would have the GPIO pins you'd want for such a project. >The Rasberry Pi certainly looks attractive, but isn't quite available >today. Can you run Python on an Arduino? Things like >http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are >more than I need, and the $129 price probably busts my budget. The Arduino uses an 8-bit micro-controller, so probably not. (The ARM emulator based port of Linux probably doesn't meet your performance requirements.) I think you may need to either wait for the Rasberry Pi to become generally available or increase your budget. You should also consider whether any of these devices have Python bindings to interface with their GPIO pins. If not you'll probably have to end up writing some C code anyways. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] rri...@csclub.uwaterloo.ca -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list
Re: Smallest/cheapest possible Python platform?
Roy Smith writes: > The Rasberry Pi certainly looks attractive, but isn't quite available > today. Can you run Python on an Arduino? No. YOu want a 32-bit platform with an OS and perhaps 1 meg of memory. And by the time you port Python to it unless it's there already, you may as well have just written your application in C. If you want something even cheaper than an Arduino, look at the TI Launchpad. But you can't program that in Python either. There is a standalone interactive Forth for it, if that's of any interest: http://www.somersetweb.com/4E4th/EN.html There are some fairly cheap ARM boards around that could run Python, but they will be battery hungry compared to a Launchpad or Arduino, and again, may not be worth the porting hassle if there's not an already-done Python port. Lua might be another scripting language of interest (www.lua.org). Sort of the same idea as Python, not quite as nice, but smaller and easier to embed. I think it wants around 50-100k of ram, still way out of the Arduino range. -- http://mail.python.org/mailman/listinfo/python-list
Re: usenet reading
In article , duncan smith wrote: > On 25/05/12 23:38, Jon Clements wrote: > > Hi All, > > > > Normally use Google Groups but it's becoming absolutely frustrating - not > > only has the interface changed to be frankly impractical, the posts are > > somewhat random of what appears, is posted and whatnot. (Ironically posted > > from GG) > > > > Is there a server out there where I can get my news groups? > > If you don't mind paying a small fee there are several companies > providing usenet access such as http://www.newsdemon.com. (I didn't have > much joy trying to track down a reliable free service, so now I pay a > few pounds a year.) > > Duncan I use panix.com. For $100/year, I get mail, news, and unix shell access. By some measures, it's an expensive way to get mail access, but I'd much rather give Panix $100 than take advantage of any of the free mail services who does who-knows-what with my mail. Not to mention that I get access to such private newsgroups as panix.nytel.abuse. -- http://mail.python.org/mailman/listinfo/python-list
Smallest/cheapest possible Python platform?
What's the smallest/cheapest/lowest-power hardware platform I can run Python on today? I'm looking for something to use as a hardware controller in a battery-powered device and want to avoid writing in C for this project. Performance requirements are minimal. I need to monitor a few switches, control a couple of LEDs and relays, and keep time over about a 30 minute period to 1/10th second accuracy. Nice-to-have (but not essential) would be a speech synthesizer with a vocabulary of maybe 50 words. The Rasberry Pi certainly looks attractive, but isn't quite available today. Can you run Python on an Arduino? Things like http://www.embeddedarm.com/products/board-detail.php?product=TS-7250 are more than I need, and the $129 price probably busts my budget. -- http://mail.python.org/mailman/listinfo/python-list
Re: usenet reading
On 25/05/12 23:38, Jon Clements wrote: Hi All, Normally use Google Groups but it's becoming absolutely frustrating - not only has the interface changed to be frankly impractical, the posts are somewhat random of what appears, is posted and whatnot. (Ironically posted from GG) Is there a server out there where I can get my news groups? If you don't mind paying a small fee there are several companies providing usenet access such as http://www.newsdemon.com. (I didn't have much joy trying to track down a reliable free service, so now I pay a few pounds a year.) Duncan -- http://mail.python.org/mailman/listinfo/python-list
Re: How to import Webkit and object in Official Python (not MacPorts python) without X11.
On 26 May 2012, at 14:31, Mr.T Beppu wrote: > I think that I will make a browser in Official Python (not MacPorts Python). > What should I do in order to install Webkit for Official Python (not MacPorts > Python) ? > from tokyo Japan. > -- > http://mail.python.org/mailman/listinfo/python-list The PyWebKit binding are not maintained and have problems. You will find yourself getting very frustrated trying to get anything but the trivia working. We ended up writing C++ code to use WebKit on Linux rather then our preferred Python. Barry -- http://mail.python.org/mailman/listinfo/python-list
Re: Uliweb release 0.1 version
Flexible is more English than "flexiable" i guess... :-) Besides the typing errors I look forward in checking this out for new concepts... Cheers and congratulations, Etienne -- Etienne Robillard Occupation: Software Developer Company:Green Tea Hackers Club Email: e...@gthcfoundation.org Website:gthcfoundation.org Skype ID: incidah -- http://mail.python.org/mailman/listinfo/python-list
Re: How to import Webkit and object in Official Python (not MacPorts python) without X11.
On Sat, May 26, 2012 at 9:31 AM, Mr.T Beppu wrote: > I think that I will make a browser in Official Python (not MacPorts > Python). > What should I do in order to install Webkit for Official Python (not > MacPorts Python) ? > from tokyo Japan. > You don't just "install WebKit". You need a GUI framework. My suggestion would be to install PySide, which is a QT wrapper that includes a Webkit component. The other option is to use PyObjC to build a Cocoa GUI but then you're restricted to Mac OS X only. -- http://mail.python.org/mailman/listinfo/python-list
How to import Webkit and object in Official Python (not MacPorts python) without X11.
I think that I will make a browser in Official Python (not MacPorts Python). What should I do in order to install Webkit for Official Python (not MacPorts Python) ? from tokyo Japan. -- http://mail.python.org/mailman/listinfo/python-list
Automatically caching computationally intensive variable values?
I am working with a few corpora included in nltk-data with NTLK (http://nltk.org/) to figure out certain algorithms. So my code would generally be something of the style: import re, nltk, random from nltk.corpus import reuters def find_test_and_train_data(): return [fileid for fileid in reuters.fileids() if re.match(r"^training/", fileid)], [fileid for fileid in reuters.fileids() if re.match(r"^test/", fileid)] def generate_random_data(train_and_test_fileids): random.seed(348) ; random.shuffle(train_and_test_fileids[0]) return train_and_test_fileids[0][2000:], train_and_test_fileids[0][:2000] def fileid_words(fileid): return [word.lower() for line in reuters.words(fileid) for word in line.split() if re.match('^[A-Za-z]+$', word)] if __name__ == '__main__': train_fileids, dev_fileids = generate_random_data(find_test_and_train_data()) train_data=fileid_words(train_fileids) dev_data=fileid_words(dev_fileids) So if I run it into an interactive interpreter I can then perform tasks on `train_data`, `dev_data` and their corresponding fileids without repopulating the variables (a very time consuming task, e.g.: this takes 7 minutes to run each time). However, I want to be able to write it into a .py file so that I can save statistically interesting algorithms. I could do this by double-typing, e.g.: when I get a function working in the interpreter I then copy+paste it into the .py file, but this is quite inefficient and I lose out on my IDEs' features. Are there any IDEs or Python modules which can automatically keep the Python script running in memory, or store the value of a variable—such as `test_data`—in a db? Thanks for all suggestions -- http://mail.python.org/mailman/listinfo/python-list
Re: installing 2 and 3 alongside on MS Windows
On 25-5-2012 10:24, Ulrich Eckhardt wrote: > Hi! > What I'm considering is installing Python 3 alongside, in order to > prepare the code for this newer version. What I'd like to know first is > whether there are any problems I'm likely to encounter and possible > workarounds. What I'm doing myself on Windows is deciding which version of Python I want to be the default, and install that from the msi normally (including "register extensions" options). I then proceed to add its install location to my %PATH%. After which I install additional Python versions but *without* selecting "register extensions" otherwise they will overwrite the registry associations. I have about 5 different versions coexisting peacefully in c:\python26 c:\python27 c:\python27-64, c:\python32 and c:\python33 (with python27 being the default and only c:\python27 added to %PATH%) In the IDE I'm using (PyCharm) you can trivially switch the Python version it will use for your project. > Thank you! > > Uli > > PS: Dear lazyweb, is there any way to teach VC8 some syntax highlighting > for Python? http://pytools.codeplex.com/ perhaps? Irmen. -- http://mail.python.org/mailman/listinfo/python-list
Re: usenet reading
On Fri, 25 May 2012 23:30:24 -0600, Jason Earl wrote: >On Fri, May 25 2012, Jon Clements wrote: > >> Hi All, >> >> Normally use Google Groups but it's becoming absolutely frustrating - >> not only has the interface changed to be frankly impractical, the >> posts are somewhat random of what appears, is posted and >> whatnot. (Ironically posted from GG) >> >> Is there a server out there where I can get my news groups? I use to >> be with an ISP that hosted usenet servers, but alas, it's no longer >> around... >> >> Only really interested in Python groups and C++. >> >> Any advice appreciated, >> >> Jon. > >I have had good success with news.eternal-september.org . > >http://www.eternal-september.org/ > >Jason Not sure if you can even see my original reply to you (I certainly can't), but it seems the Python mailing list (which I've been using rather extensively up until now) has some serious problems syncing to the newsgroup - large amounts of content simply isn't crossing over into Usenet's territory, if the synchronization is anything beyond read-only to begin with. It's a shame, but it looks like I'll have to go back to using the mailing list to read for completeness's sake. :/ Gonna be tricky juggling that for reading and keeping Usenet for writing (so as to not contribute to the information loss), but I'll make do somehow. ~Temia -- When on earth, do as the earthlings do. -- http://mail.python.org/mailman/listinfo/python-list