Re: wxpython demo error on debian etch

2007-05-29 Thread kyosohma
On May 29, 8:38 am, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > If there is a wxPython on Debian user in the house? I am using the > version of the demo that came with the apt-get download of wxPython. > > I thought I'd followed the instructions for installing and unpacking > the wxPython demo p

Re: Storing tracebacks

2007-05-29 Thread kyosohma
On May 28, 10:46 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > I'm reading the docs on sys.exc_info() but I can't tell for sure > whether I'm using it safely to get a snapshot of an exception and > reraise it later. The use case is a class which acts like a deferred > callable, a callable that wil

wxpython demo error on debian etch

2007-05-29 Thread BartlebyScrivener
If there is a wxPython on Debian user in the house? I am using the version of the demo that came with the apt-get download of wxPython. I thought I'd followed the instructions for installing and unpacking the wxPython demo program. It appears to run after a fashion, but I also get this at the comm

vector graphics bindings, was Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-05-29 Thread Tony Finch
Jon Harrop <[EMAIL PROTECTED]> wrote: > >Anyway, are there any libraries to do hardware accelerated vector graphics >in Perl, Python, Lisp, Java or any functional language (except OCaml and F# >and excluding WPF and Silverlight)? http://www.cairographics.org/bindings/ That covers all the languages

Re: stdout and threads

2007-05-29 Thread kyosohma
On May 28, 4:54 am, "Troels Thomsen" wrote: > Hello All > > I have trouble printing to stdout from a thread and main program. > > Not only will it look strange when they try to print at the same time, that > is ok, but i think i see lock-ups. (strange exceptions in Tkinker etc) Or is > it an issue

python unix install, sqlite3

2007-05-29 Thread Simon
I installed the source code on unix for python 2.5.1. The install went mainly okay, except for some failures regarding: _ssl, _hashlib, _curses, _curses_panel. No errors regarding sqlite3. However, when I start python and do an import sqlite3 I get: /ptmp/bin/> python Python 2.5.1 (r251:54863, Ma

Re: Video tutorials

2007-05-29 Thread Needless
How much more complex? On May 28, 1:20 am, Laurentiu <[EMAIL PROTECTED]> wrote: > Hello! > > i was searching the net for some video tutorials (free > and payed). > > i found some interesting stuff atwww.showmedo.combut > i want something more complex. > > can someone give me some address for video

Re: itertools.groupby

2007-05-29 Thread Carsten Haese
On Mon, 2007-05-28 at 23:34 -0700, Raymond Hettinger wrote: > On May 28, 8:36 pm, "Carsten Haese" <[EMAIL PROTECTED]> wrote: > > And while > > we're at it, it probably should be keyfunc(value), not key(value). > > No dice. The itertools.groupby() function is typically used > in conjunction with s

Re: multiline regular expression (replace)

2007-05-29 Thread vbr
> Od: Zdenek Maxa <[EMAIL PROTECTED]> > Předmět: Re: multiline regular expression (replace) > Datum: 29.5.2007 13:46:32 > > [EMAIL PROTECTED] wrote: > > On May 29, 2:03 am, Zdenek Maxa <[EMAIL PROTECTED]> wrote: > > > >> Hi all, > >> > >> I would like to

Re: multiline regular expression (replace)

2007-05-29 Thread Steve Holden
Zdenek Maxa wrote: > [EMAIL PROTECTED] wrote: >> On May 29, 2:03 am, Zdenek Maxa <[EMAIL PROTECTED]> wrote: >> >>> Hi all, >>> >>> I would like to perform regular expression replace (e.g. removing >>> everything from within tags in a XML file) with multiple-line pattern. >>> How can I do this? >

Re: PyQt: Is signal / slot really working across threads?

2007-05-29 Thread Alexander Eisenhuth
Ok, thanks. Phil Thompson schrieb: > On Tuesday 29 May 2007 11:58 am, Alexander Eisenhuth wrote: >> Hello pyqt users, >> >> i tried to use signal / slot across threads. With the following example I >> want to emit a signal when the thread loop is entered. The connected slot >> is never called. Wh

override PyBitmapDataObject

2007-05-29 Thread Ashok
hi, I am new to python and am trying my experimenting with python and wxpython. I want to use wx.PyBitmapDataObject to get bitmap data form clipboard. The wx documentation says that 'to be able to provide bitmap data on demand, derive from this class and overload GetBitmap'. How do i overload GetBi

Re: Resize image NO PIL!!

2007-05-29 Thread cbmeeks
Nope. They don't support that either. I emailed them (again) asking for these features or at least see if they are in the works sometime in the future and I keep getting their standard response which is basically "you can do it yourself if you upgrade to our $249/mo dedicated plan". I'd go with

Re: multiline regular expression (replace)

2007-05-29 Thread Zdenek Maxa
[EMAIL PROTECTED] wrote: > On May 29, 2:03 am, Zdenek Maxa <[EMAIL PROTECTED]> wrote: > >> Hi all, >> >> I would like to perform regular expression replace (e.g. removing >> everything from within tags in a XML file) with multiple-line pattern. >> How can I do this? >> >> where = open("filename"

Re: Periodic tasks.

2007-05-29 Thread Steve Holden
Ben Finney wrote: > Ramashish Baranwal <[EMAIL PROTECTED]> writes: > >> I am trying to execute some tasks periodically, those familiar with >> unix can think of it as equivalent to cron jobs. > > Can you not use cron? If not, why not? Is there an equivalent service > you can use? > >> I have tri

Re: PyQt: Is signal / slot really working across threads?

2007-05-29 Thread Phil Thompson
On Tuesday 29 May 2007 11:58 am, Alexander Eisenhuth wrote: > Hello pyqt users, > > i tried to use signal / slot across threads. With the following example I > want to emit a signal when the thread loop is entered. The connected slot > is never called. Why? > > Any help is very welcome ... > > Ale

PyQt: Is signal / slot really working across threads?

2007-05-29 Thread Alexander Eisenhuth
Hello pyqt users, i tried to use signal / slot across threads. With the following example I want to emit a signal when the thread loop is entered. The connected slot is never called. Why? Any help is very welcome ... Alexander import time import sys import PyQt4 from PyQt4.QtCore import (QOb

Re: Periodic tasks.

2007-05-29 Thread Ramashish Baranwal
> > I am trying to execute some tasks periodically, those familiar with > > unix can think of it as equivalent to cron jobs. > > Can you not use cron? If not, why not? Is there an equivalent service > you can use? I can, but the work I want to do is written in Python. This is not an issue but I wo

Re: Periodic tasks.

2007-05-29 Thread Steve Howell
--- Ramashish Baranwal <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to execute some tasks periodically, > those familiar with > unix can think of it as equivalent to cron jobs. I > have tried looking > around, but couldn't find a way. Would appreciate > any pointers or > clues.. > I'm also

Re: gui application on cross platform

2007-05-29 Thread Stefano Canepa
On 28 Mag, 09:28, james_027 <[EMAIL PROTECTED]> wrote: > On May 28, 3:06 pm, Stefano Canepa <[EMAIL PROTECTED]> wrote: > > > > > On 28 Mag, 08:01, james_027 <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I am using delphi to develop gui application, and wish to make a shift > > > to python. here ar

Re: Periodic tasks.

2007-05-29 Thread Ben Finney
Ramashish Baranwal <[EMAIL PROTECTED]> writes: > I am trying to execute some tasks periodically, those familiar with > unix can think of it as equivalent to cron jobs. Can you not use cron? If not, why not? Is there an equivalent service you can use? > I have tried looking around, but couldn't f

Re: itertools.groupby

2007-05-29 Thread Raymond Hettinger
On May 28, 8:02 pm, Gordon Airporte <[EMAIL PROTECTED]> wrote: > "Each" seems to imply uniqueness here. Doh! This sort of micro-massaging the docs misses the big picture. If "each" meant unique across the entire input stream, then how the heck could the function work without reading in the entire

Re: multiline regular expression (replace)

2007-05-29 Thread half . italian
On May 29, 2:03 am, Zdenek Maxa <[EMAIL PROTECTED]> wrote: > Hi all, > > I would like to perform regular expression replace (e.g. removing > everything from within tags in a XML file) with multiple-line pattern. > How can I do this? > > where = open("filename").read() > multilinePattern = "^ <

Video tutorials

2007-05-29 Thread Laurentiu
Hello! i was searching the net for some video tutorials (free and payed). i found some interesting stuff at www.showmedo.com but i want something more complex. can someone give me some address for video tutorials or companies how made this tutorials, free or payed. i search at Lynda.com and vtc

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-29 Thread Steve Howell
--- Carsten Haese <[EMAIL PROTECTED]> wrote: > On Sun, 2007-05-27 at 07:30 +, OKB (not > okblacke) wrote: > > Underscores are harder to type than any > alphanumeric character. > > This is a discussion about underscores versus > capital letters denoting > the word boundaries in

Re: ten small Python programs

2007-05-29 Thread stef
> >> Secondly, Python is nowadays not only used by >> programmers, >> but also by e.g. Scientific users (former MatLab >> users), >> who are not interested in the code itself, >> but just in the results of that particular code. >> For these people a lot of example programs, >> for which they ca

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-05-29 Thread Ulf Wiger
> "Jon" == Jon Harrop <[EMAIL PROTECTED]> writes: Jon> Anyway, are there any libraries to do hardware accelerated Jon> vector graphics in Perl, Python, Lisp, Java or any functional Jon> language (except OCaml and F# and excluding WPF and Jon> Silverlight)? I guess the OpenGL binding f

multiline regular expression (replace)

2007-05-29 Thread Zdenek Maxa
Hi all, I would like to perform regular expression replace (e.g. removing everything from within tags in a XML file) with multiple-line pattern. How can I do this? where = open("filename").read() multilinePattern = "^ <\/tag>$" re.search(multilinePattern, where, re.MULTILINE) Thanks great

Re: Sci.linalg.lu permuation error

2007-05-29 Thread [EMAIL PROTECTED]
Hi Luke, you should send this to the scipy user list: [EMAIL PROTECTED] Bernhard On May 28, 10:44 am, Luke <[EMAIL PROTECTED]> wrote: > I'm trying to use Scipy's LU factorization. Here is what I've got: > > from numpy import * > import scipy as Sci > import scipy.linalg > > A=array([[3., -2.,

Re: Python tutorials

2007-05-29 Thread Stefano Canepa
On 29 Mag, 09:08, Laurentiu <[EMAIL PROTECTED]> wrote: > Hello! > > i was searching the net for some python video > tutorials (free and payed). > > i found some interesting stuff atwww.showmedo.combut > i want something more complex. > > can someone give me some address for python video > tutorials

Re: DbiDate object

2007-05-29 Thread revuesbio
On 29 mai, 07:22, Frank Millman <[EMAIL PROTECTED]> wrote: > On May 29, 12:51 am, revuesbio <[EMAIL PROTECTED]> wrote: > > > > > Hi all > > > I am using odbc to connect to Microsoft Access DB. When I send a > > request with a datetime column from the database, odbc returns > > something called a D

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-29 Thread BJörn Lindqvist
On 5/29/07, Eric S. Johansson <[EMAIL PROTECTED]> wrote: > A huge reason why this is important because the vast majority of software > developers who are injured fall off the economic ladder. They leave the > profession and had very few options for work that doesn't involve significant > handy is.

Re: how to print the GREEK CAPITAL LETTER delta under utf-8 encoding

2007-05-29 Thread 人言落日是天涯,望极天涯不见家
On 5月29日, 下午3时05分, "Martin v. Lo"wis" <[EMAIL PROTECTED]> wrote: > > yes, it could print to the terminal(cmd.exe), but when I write these > > string to file. I got the follow error: > > > File "E:\Tools\filegen\filegen.py", line 212, in write > > self.file.write(data) > > UnicodeEncodeError:

Re: how to print the GREEK CAPITAL LETTER delta under utf-8 encoding

2007-05-29 Thread Martin v. Lo
> yes, it could print to the terminal(cmd.exe), but when I write these > string to file. I got the follow error: > > File "E:\Tools\filegen\filegen.py", line 212, in write > self.file.write(data) > UnicodeEncodeError: 'ascii' codec can't encode character u'\u0394' in > position 0 > : ordinal

Python tutorials

2007-05-29 Thread Laurentiu
Hello! i was searching the net for some python video tutorials (free and payed). i found some interesting stuff at www.showmedo.com but i want something more complex. can someone give me some address for python video tutorials or companies how made this tutorials, free or payed. i search at Ly

<    1   2