Re: Python on imac

2007-10-13 Thread Adam Atlas
On Oct 13, 7:21 pm, John Velman <[EMAIL PROTECTED]> wrote: > I'm considering moving from Linux to imac. I've recently returned to > Python (was never very expert) to develop a small gui application. At > present I plan to use PyGTK with Pango and Cairo. > > What surprises may I be in for :-) > >

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Ian Bicking
On Oct 6, 8:13 am, Bruno Desthuilliers wrote: > Well... Last year, I had a look at Pylons, then played a bit with wsgi > and building my own framework over it. I finally dropped that code and > went back to Pylons, which I felt could become far better than my own > efforts. Now since then I had wa

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Ian Bicking
On Oct 6, 8:29 am, Michele Simionato <[EMAIL PROTECTED]> wrote: > Do you (or something else) have something to say about Beaker? > I looked at the source code and it seems fine to me, but I have > not used it directly, not stressed it. I need a > production-level WSGI session middleware and I wonde

Re: Saving parameters between Python applications?

2007-10-13 Thread Stodge
os.getppid() isn't cross platform. I don't think it works on Windows. I think I'll just create a simple shell script (BAT or Bash) for each platform as needed. Thanks On Sep 20, 3:17 pm, David <[EMAIL PROTECTED]> wrote: > On 9/16/07, Stodge <[EMAIL PROTECTED]> wrote: > > > > > I'm trying to do th

Python on imac

2007-10-13 Thread John Velman
I'm considering moving from Linux to imac. I've recently returned to Python (was never very expert) to develop a small gui application. At present I plan to use PyGTK with Pango and Cairo. What surprises may I be in for :-) (Currently using slackware 11.0 on an old (8 years) slow (400mhz) mach

Re: The fundamental concept of continuations

2007-10-13 Thread Alex Martelli
Matthias Benkard <[EMAIL PROTECTED]> wrote: > continuations. There used to be a project called Stackless Python that > tried to add continuations to Python, but as far as I know, it has always > been separate from the official Python interpreter. I don't know whether > it's still alive. You may

Re: Declarative properties

2007-10-13 Thread Bruno Desthuilliers
Dan Stromberg a écrit : (snip) > My implementation may or may not be lacking (feel free to improve it - in > fact, please do!), Since you ask for it: def makeprop(name): _name = '_' + name def fget(self): return getattr(self, _name, None) def fset(self, val): set

Re: Declarative properties

2007-10-13 Thread Bruno Desthuilliers
Dan Stromberg a écrit : > On Fri, 12 Oct 2007 09:42:28 +0200, Bruno Desthuilliers wrote: > > So what? Otherwise you carry *always* the baggage of a public property and a private attribute whether you need this or not. At least for me it would be unnecessary in most cases. >>> >>>Tha

Re: Python in HTML Application (HTA)

2007-10-13 Thread M�ta-MCI (MVP)
Hi! I give a solution in the french newsgroup. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: unicodedata implementation - categories

2007-10-13 Thread chris . monsanto
On Oct 13, 4:32 pm, James Abley <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to understand how CPython implements unicodedata, with a view to > providing an implementation for Jython. This is a background, low priority > thing for me, since I last posted to this list about it in February! > > Py

Question - FM receiver sample - AtttributeError

2007-10-13 Thread noroi
Hi all, I got some problems while running the FM receiver's example codes from the GNURadio tutorial page; the RF front end is set to call the signal input from daughter board, and when the compiler tried to call mothods to set some parameter values(such as gain, set_AGC() and If frequency, ge

Re: tarfile...bug?

2007-10-13 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: > On Oct 9, 10:33 pm, Anurag <[EMAIL PROTECTED]> wrote: >> Have any one faced such problem, I assume it must be common if it can >> be replicated so easily , or something wrong with my system >> >> Also if I use tar.members instead of tar.getmembers() it works >> so what is

Re: Problem of Readability of Python

2007-10-13 Thread Scott David Daniels
Delaney, Timothy (Tim) wrote: > Licheng Fang wrote: > >> This is enlightening. Surely I shouldn't have worried too much about >> performance before doing some measurement. > > And with that statement you have truly achieved enlightenment. > Or to put it another way ... performance tuning without

unicodedata implementation - categories

2007-10-13 Thread James Abley
Hi, I'm trying to understand how CPython implements unicodedata, with a view to providing an implementation for Jython. This is a background, low priority thing for me, since I last posted to this list about it in February! Python 2.5.1 (r251:54863, May 2 2007, 16:56:35) [GCC 4.1.2 (Ubuntu 4.1.

Re: Declarative properties

2007-10-13 Thread Bruno Desthuilliers
Stargaming a écrit : > On Thu, 11 Oct 2007 18:58:44 +0200, Bruno Desthuilliers wrote: > [snip] > > Your implementation seems particularly broken. You do not return anything > from `name()`, Oops, my bad ! Indeed, I forgot the 'return property(**locals())' at the end. And a couple other things

Re: how to get the NT event log properties with OnObjectReady() with python

2007-10-13 Thread Roger Upole
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to get a notification from the NT event for any new event > using the DispatchWithEvents() function. Everything seems to be > working the way I wanted, but I don't know how to get the properties > of the event (ie. event type

Re: urllib.ProxyHandler HTTPS issues

2007-10-13 Thread John J. Lee
Devraj <[EMAIL PROTECTED]> writes: > Thanks John. Will investigate sending the CONNECT command to handle > proxies. > > Do you recommend doing this for HTTP proxies as well No. > or should I just use the ProxyHandler for HTTP proxies? Yes. John -- http://mail.python.org/mailman/listinfo/pyt

Re: raw_input() and utf-8 formatted chars

2007-10-13 Thread MRAB
On Oct 13, 3:09 am, 7stud <[EMAIL PROTECTED]> wrote: > On Oct 12, 2:43 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > > You mean literally!? Then of course I get A\xcc\x88 because that's what I > > entered. In string literals in source code the backslash has a special > > meaning but

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread nickel_and_dime_2death
On Oct 13, 5:22 pm, "Juha S." <[EMAIL PROTECTED]> wrote: > Thanks! Opening and saving the file with the iso-8859-1 codec seems to > handle the characters correctly. Now the only problem left are the > missing newlines in the output file. I tried googling for the iso code > for newline and entering

Re: test if email

2007-10-13 Thread Bjoern Schliessmann
Martin Marcher wrote: > No need to speek of plus addressing or older messaging systems. But don't disallow a plus in the localpart. Many do. Regards, Björn -- BOFH excuse #180: ether leak -- http://mail.python.org/mailman/listinfo/python-list

Re: Declarative properties

2007-10-13 Thread Diez B. Roggisch
Dan Stromberg schrieb: > On Thu, 11 Oct 2007 18:42:16 +, Marc 'BlackJack' Rintsch wrote: > > >>> The "baggage" of possibly fixing (AKA "generalizing") how your attributes >>> are accessed is something you lug around while your deadline looms. >> Sorry I don't get it. If I want to customize t

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Daniel Fetchinson
> ... I almost forgot ... > > another difference between Gluon and Django,TG is that in Gluon if > you write controllers without view you automatically get generic view > that render and BEAUTIFY() the variables returned by the controllers. > That means you can develop the logic of your application

Trial of Star-P for Python

2007-10-13 Thread n4somethingcompletelydifferent
In browsing their website, I noticed that Interactive Supercomputing has made available a free evaluation copy of Star-P for Python (http:// www.interactivesupercomputing.com/products/starpandpython.php). I know its a fairly new product, but has anyone on here been able to try it out yet, and if s

Re: Cross-platform GUI development

2007-10-13 Thread Diez B. Roggisch
David Tremouilles schrieb: > No issue with pygtk on mac! > Actually I develop on this platform everyday. Macport take care of the > installation for me http://www.macports.org/ (Fink should do the work > too). > Of course native GTK on OSX could be nice but definitely not needed at > this point in

Re: email libraries and threads

2007-10-13 Thread Diez B. Roggisch
rodmc schrieb: > Hi, > > I am writing a threaded application, part of which relies on sending > messages to users. However I cannot get the smtplib and some other > email related libraries to work inside threads (they work ok when not > in threads). Is there a problem with using threads and email?

email libraries and threads

2007-10-13 Thread rodmc
Hi, I am writing a threaded application, part of which relies on sending messages to users. However I cannot get the smtplib and some other email related libraries to work inside threads (they work ok when not in threads). Is there a problem with using threads and email? If so is there a solution

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Massimo Di Pierro
... I almost forgot ... another difference between Gluon and Django,TG is that in Gluon if you write controllers without view you automatically get generic view that render and BEAUTIFY() the variables returned by the controllers. That means you can develop the logic of your application with

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Massimo Di Pierro
Hi Daniel, in many respects Gluon is similar to Django and was greatly inspired by Django. Some differences are: Gluon is easier to install - you never need to use the shell, there are no configuration files. Gluon is a web app. You can do all development via a web interface. You can compil

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Juha S.
Thanks! Opening and saving the file with the iso-8859-1 codec seems to handle the characters correctly. Now the only problem left are the missing newlines in the output file. I tried googling for the iso code for newline and entering it in a Python string as '\x0A' but it doesn't work in the ou

Re: Error on base64.b64decode() ?!

2007-10-13 Thread Christoph Krammer
On 12 Okt., 17:09, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > If you get an incorrect padding error, try appending a "=" and decoding > again. If you get the error again, try appending one more "=". If it > still doesn't work, then you might be out of luck. This seems to work in some cases

a good website for softwares,sports,movies and music ,sex etc.

2007-10-13 Thread panguohua
www.space666.com go and look!!! -- http://mail.python.org/mailman/listinfo/python-list

Re: ConnectionClosedError

2007-10-13 Thread George Sakkis
On Oct 13, 4:21 am, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > > If restarting the server sorts it, why don't you run the server as a > subprocess in a higher level script, and exit with an error code > if the error strikes? Well as I mentioned the process doesn't exit, it is just unrespons

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Janne Tuukkanen
Sat, 13 Oct 2007 16:13:21 +0300, Juha S. kirjoitti: > Thanks for the reply. I made changes to my code according to your > example. Now any Scandinavian characters that are outputted by the > program are missing in the Tk text box. > file = codecs.open(filename, 'r', 'utf-8', 'ignor

Re: Cross-platform GUI development

2007-10-13 Thread Kevin Walzer
David Tremouilles wrote: > No issue with pygtk on mac! > Actually I develop on this platform everyday. Macport take care of the > installation for me http://www.macports.org/ (Fink should do the work > too). > Of course native GTK on OSX could be nice but definitely not needed at > this point in ti

Re: how to create a pointer, or is there a better solution ?

2007-10-13 Thread Diez B. Roggisch
stef mientki schrieb: > hello, > > I've a program where users can make modules, > by just dumping them in a certain directory, > then they will dynamically link into the program if needed. > > One of the communication channels I use, > is a general global file, which should be imported by all use

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Juha S.
Thanks for the reply. I made changes to my code according to your example. Now any Scandinavian characters that are outputted by the program are missing in the Tk text box. I'm using a loading function like this to load the data that is to be outputted by the program: def loadWords(self, filen

how to create a pointer, or is there a better solution ?

2007-10-13 Thread stef mientki
hello, I've a program where users can make modules, by just dumping them in a certain directory, then they will dynamically link into the program if needed. One of the communication channels I use, is a general global file, which should be imported by all user modules. One of the things a user s

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Janne Tuukkanen
Juha S. kirjoitti: > problem is that when I try to save its contents to a .txt file, any > Scandinavian letters such as "äöå ÄÖÅ" are saved incorrectly and show up > as a mess when I open the .txt file in Windows Notepad. > > It seems that the characters will only get mixed if the user has typed

Re: Python module for making Quicktime or mpeg movies from images

2007-10-13 Thread Diez B. Roggisch
>- The Mac version of Python includes wrappers for a number of Carbon > APIs, including QuickTime. One for brave souls only; QT's C APIs are > notoriously complex, AMEN. I tried to work with that stuff, and it was close to a totally failure & desaster... Diez -- http://mail.python.org/mailman/

Re: Last iteration?

2007-10-13 Thread Robin Kåveland
On Oct 12, 12:58 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > can I determine somehow if the iteration on a list of values is the last > iteration? > > Example: > > for i in [1, 2, 3]: >if last_iteration: > print i*i >else: > print i > > that would print > > 1 > 2 >

Re: Observer implementation question ('Patterns in Python')

2007-10-13 Thread Anders Dahnielson
Thank you, James and Stargaming, for your replies! -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory Problems in Windows 2003 Server

2007-10-13 Thread AMD
Hi Brad, I do the reading one line at a time, the problem seems to be with the dictionary I am creating. Andre > amdescombes wrote: >> Hi, >> >> I am using Python 2.5.1 >> I have an application that reads a file and generates a key in a >> dictionary for each line it reads. I have managed to r

Re: pyserial doesn't recognize virtual serial port

2007-10-13 Thread naveen . sabapathy
Hi Grant, It worked... I had the same suspicion and changed the port names to COM2 and COM4 and it worked. --NS On Oct 12, 8:34 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-10-12, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am trying to use virtual serial ports to de

Re: Cross-platform GUI development

2007-10-13 Thread Dave Cook
On 2007-10-13, David Tremouilles <[EMAIL PROTECTED]> wrote: > No issue with pygtk on mac! If running on top of X11 is no problem. > Actually I develop on this platform everyday. Macport take care of the > installation for me http://www.macports.org/ (Fink should do the work > too). In that case

Re: Yet another comparison of Python Web Frameworks

2007-10-13 Thread Daniel Fetchinson
> Hello everybody, > > I just joined this mailing list. Thanks for your comments about gluon. > > I have posted a short video about it and I am planning to make more > over the week-end. > > http://www.youtube.com/watch?v=VBjja6N6IYk > > About some of your comments: > - the most complex modules (li

Re: Cross-platform GUI development

2007-10-13 Thread David Tremouilles
No issue with pygtk on mac! Actually I develop on this platform everyday. Macport take care of the installation for me http://www.macports.org/ (Fink should do the work too). Of course native GTK on OSX could be nice but definitely not needed at this point in time. David 2007/10/13, Dave Cook <[E

Re: Cross-platform GUI development

2007-10-13 Thread Dave Cook
On 2007-10-13, David Tremouilles <[EMAIL PROTECTED]> wrote: > I would recommend pyGTK http://www.pygtk.org/ Native GTK on OSX is still in its infancy. For early adopters only at this point. See http://www.oreillynet.com/articles/author/2414 That leaves PyQt and WxPython as the only other rea

Re: Python module for making Quicktime or mpeg movies from images

2007-10-13 Thread has
On 12 Oct, 20:53, jeremito <[EMAIL PROTECTED]> wrote: > I actually found NodeBox in my googling. This seems to be a stand > alone application. I need to be able to convert my images to a movie > from my code I wrote myself. Some Mac-specific options: - QuickTime Player is standard on OS X and

How to modify EVDEV.py to record Keyboard Key RELEASE times?

2007-10-13 Thread Dr. Colombes
I'm using a modified EVDEV.py program (see below) to record inter-keystroke times for Keystroke triples and doubles (t2 - t1, t3 -t1). These times are key PRESS times. How - where can EVDEV.py be modified (without too much trouble) to record Keystroke RELEASE times also ? Thanks

Re: Pyro: ActiveState (wind32) to Unix

2007-10-13 Thread Tim Golden
Tim Golden wrote: > Sells, Fred wrote: >> I'm using ActiveState python on a windows box to talk to ACtive >> Directory. > > I'm running a Pyro Server on the same box. >> >> The client is Linux running std Python 2.4. >> >> It works just fine until the server codes calls some > > win32com.clie

Re: Moving objects in Tkinter

2007-10-13 Thread Hendrik van Rooyen
Evjen Halverson wrote: > I have tried to make a Tkinter program make a > rectangle move down the window, > but did not succeed. All it does is > make a rectangle trail. > What am I doing wrong? You are not deleting the old instances of the rectangle. Look at the delete method of the canvas

Re: Python in HTML Application (HTA)

2007-10-13 Thread Salvatore
In fact, whatever I do in "infoSystem" (modifiying style attributes of an object, change cursor appearance...), changes are only reflected at the end of the function call ... Salvatore a écrit : > Hello, > > I encounter a display problem in one of my script > > ... > ... > def setValue(divid,

Re: [Pyro] ConnectionClosedError

2007-10-13 Thread Hendrik van Rooyen
"George Sakkis" wrote: > Didn't have much luck with this in the Pyro mailing list so I am > trying here, just in case. I have a Pyro server running as a daemon > process and occasionally (typically after several hours or days of > uptime) a ConnectionClosedError is raised when a client calls a r

Python in HTML Application (HTA)

2007-10-13 Thread Salvatore
Hello, I encounter a display problem in one of my script ... ... def setValue(divid,data): elt = document.getElementById(divid) elt.innerHTML = data def infoSystem(): setValue("info","Please Wait") #update div "info" c = os.popen(cmdDisk%Server).read() setValue('tab

Re: raw_input() and utf-8 formatted chars

2007-10-13 Thread Marc 'BlackJack' Rintsch
On Fri, 12 Oct 2007 19:09:46 -0700, 7stud wrote: > On Oct 12, 2:43 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> You mean literally!? Then of course I get A\xcc\x88 because that's what I >> entered. In string literals in source code the backslash has a special >> meaning but `raw_in

Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Juha S.
Hi, I'm writing a small text editor type application with Python 2.5 and Tkinter. I'm using the Tk text widget for input and output, and the problem is that when I try to save its contents to a .txt file, any Scandinavian letters such as "äöå ÄÖÅ" are saved incorrectly and show up as a mess wh

Re: Cross-platform GUI development

2007-10-13 Thread David Tremouilles
Hello, I would recommend pyGTK http://www.pygtk.org/ - your app does look the same on all platform (like for Tkinter) (This argurment apply if the same user would like to run the same app on different platform and thus do not want to see something different on each platform...) - easy to install