Open Source Developers' Conference 2007 - Brisbane - Call for Papers

2007-05-29 Thread Richard Jones
Call for Papers --- Open Source Developers' Conference 2007 - Brisbane, Australia Success in Development Business OSDC is a grass-roots conference providing Open Source developers with an opportunity to meet, share, learn, and of course show-off. OSDC focuses on Open Source

ANNOUNCE: SCons 0.97 has been released

2007-05-29 Thread Steven Knight
SCons is a software construction tool (build tool, or make tool) written in Python. It is based on the design which won the Software Carpentry build tool competition in August 2000. Version 0.97 of SCons has been released and is available for download from the SCons web site:

3D libraries (was The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations)

2007-05-29 Thread Ville Oikarinen
On Tue, 29 May 2007, Jon Harrop 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)? I believe there are OpenGL bindings for quite many languages, here

Re: gui application on cross platform

2007-05-29 Thread Etienne Hilson
james_027 wrote: Hi, I am using delphi to develop gui application, and wish to make a shift to python. here are some of my question/concern... 1. is python develop gui application a cross platform? just like java swing? My first programming language was Delphi, and (after

Periodic tasks.

2007-05-29 Thread Ramashish Baranwal
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.. Thanks, -Ram -- http://mail.python.org/mailman/listinfo/python-list

Re: itertools.groupby

2007-05-29 Thread Raymond Hettinger
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 sorted(). It would be a mistake to call it keyfunc in one place and not in

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

2007-05-29 Thread 人言落日是天涯,望极天涯不见家
On 5月29日, 下午1时34分, Martin v. Lowis [EMAIL PROTECTED] wrote: 人言落日是天涯,望极天涯不见家 schrieb: I lookup the utf-8 form of delta from the link. http://www.fileformat.info/info/unicode/char/0394/index.htm and then I want to print it in the python ( I work under windows) #!/usr/bin/python

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

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 not in

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

2007-05-29 Thread 人言落日是天涯,望极天涯不见家
On 5月29日, 下午3时05分, Martin v. Lowis [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: 'ascii' codec

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. The

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 DbiDate object.

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 or

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., 1., 0.,

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 \/tag$ re.search(multilinePattern, where, re.MULTILINE) Thanks

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 for Erlang

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 can easily see the

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

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

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 = ^tag \/tag$

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 data

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 find

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 are some of my

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 interested

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 would

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

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 ... Alexander

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 tried looking

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).read()

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

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

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. Why? Any

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? where =

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 perform regular

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 sorted().

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 tutorials

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,

Re: stdout and threads

2007-05-29 Thread kyosohma
On May 28, 4:54 am, Troels Thomsen nej tak ... 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

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 you

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

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 will be

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

Re: Periodic tasks.

2007-05-29 Thread vasudevram
On May 29, 4:39 pm, Steve Holden [EMAIL PROTECTED] wrote: Alternatively, the user could make use of the already-existing sched module from the standard library. With a little threading that would do the job fine. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119

Re: multiline regular expression (replace)

2007-05-29 Thread Gerard Flanagan
On May 29, 11: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 = ^tag \/tag$

Re: Circular imports

2007-05-29 Thread jim-on-linux
On Tuesday 29 May 2007 00:08, Carsten Haese wrote: On Mon, 28 May 2007 23:46:00 -0400, Ron Provost wrote [...] python is not happy about my circular imports [...] A circular import is not a problem in itself. I'm guessing you're running into a situation like this: Module A imports

Re: python unix install, sqlite3

2007-05-29 Thread vasudevram
On May 29, 5:52 pm, Simon [EMAIL PROTECTED] wrote: 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

Re: python unix install, sqlite3

2007-05-29 Thread jim-on-linux
On Tuesday 29 May 2007 08:52, Simon wrote: 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

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

2007-05-29 Thread Maric Michaud
Steve Howell a écrit : --- 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

[B,IX] = sort(A,...) - Order for sort()-function

2007-05-29 Thread Orlando Döhring
Dear community, I want to use the sort function to sort a (nested) list. General information can be found below. http://www.python.org/doc/2.4.2/lib/typesseq-mutable.html http://wiki.python.org/moin/HowTo/Sorting http://www.python.org/doc/2.4.4/whatsnew/node12.html I want to solve the

ANNOUNCE: SCons 0.97 has been released

2007-05-29 Thread Steven Knight
SCons is a software construction tool (build tool, or make tool) written in Python. It is based on the design which won the Software Carpentry build tool competition in August 2000. Version 0.97 of SCons has been released and is available for download from the SCons web site:

Re: Resize image NO PIL!!

2007-05-29 Thread Daniel Nogradi
I have created an image hosting site and when a user uploads an image, I want a service to run on the server to create a few thumbnails while the user does other things. My stupid host (pair.com) doesn't have PIL installed and I'm too much of a stupid newbie to figure out how to get it to

RSA SecurID token authentication?

2007-05-29 Thread Chris Shenton
Anyone doing python application authentication using RSA SecurID tokens? We have a Pylons app that needs this. I've written code against RSA's API and found the docs terrible and the libraries painful to use. RSA has a RADIUS server fronting their server so I expect I could use that

[B,IX] = sort(A,...) - Order for sort()-function

2007-05-29 Thread Orlando Döhring
Dear community, I want to use the sort function to sort a (nested) list. General information can be found below. http://www.python.org/doc/2.4.2/lib/typesseq-mutable.html http://wiki.python.org/moin/HowTo/Sorting http://www.python.org/doc/2.4.4/whatsnew/node12.html I want to solve the

Re: [B,IX] = sort(A,...) - Order for sort()-function

2007-05-29 Thread Maric Michaud
Orlando Döhring a écrit : ... A = [ 3 7 5 0 4 2 ]; # in Python: A = [[3,7,5],[0,4,2]] [B,IX] = sort(A,2) # sort by rows B = 3 5 7 0 2 4 IX = 1 3 2 1 3 2 # first line: 3 was formerly in the first position, 5

ANN: eGenix mxODBC 3.0 Developer Licenses (mxODBC Database Interface)

2007-05-29 Thread eGenix Team: M.-A. Lemburg
eGenix.com mxODBC 3.0 Developer Licenses Available eGenix is pleased to announce the immediate availability of developer licenses for our

Re: Seeking author of script which generated HTML pages from pictures of them

2007-05-29 Thread metaperl
I found him! http://programming.reddit.com/info/k9dx/comments -- http://mail.python.org/mailman/listinfo/python-list

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

2007-05-29 Thread Warren Stringer
Hi Eric, You make a compelling argument for underscores. I sometimes help a visually impaired friend with setting up his computers. I'm wondering about the aural output to you second example: link.set_parse_action(emit_link_HTML) Does it sound like this: link dot set under parse under action

RE: Using python for a CAD program

2007-05-29 Thread George, Harry G
I haven't followed up. When I last looked, I found the problem space is too large for one person (or project) to do it all. So the job is to glue together lots of good OSS tools -- which is a very pythonic task. The absolute requirement for Knowledge-Based-Engineering is an API which allows a

Unicode to HTML entities

2007-05-29 Thread Clodoaldo
I was looking for a function to transform a unicode string into htmlentities. Not only the usual html escaping thing but all characters. As I didn't find I wrote my own: # -*- coding: utf-8 -*- from htmlentitydefs import codepoint2name def unicode2htmlentities(u): htmlentities = list()

How to set a class inheritance at instance creation?

2007-05-29 Thread glomde
Hi I wonder if you can set what subclass a class should have at instance creation. The problem is that I have something like: class CoreLang(): def AssignVar(self, var, value): pass class Lang1(CoreLang): def AssignVar(self, var, value): return var, =, value class

Re: Unicode to HTML entities

2007-05-29 Thread Richard Brodie
Clodoaldo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I was looking for a function to transform a unicode string into htmlentities. u'São Paulo'.encode('ascii', 'xmlcharrefreplace') 'S#227;o Paulo' -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode to HTML entities

2007-05-29 Thread Clodoaldo
On May 29, 12:57 pm, Richard Brodie [EMAIL PROTECTED] wrote: Clodoaldo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I was looking for a function to transform a unicode string into htmlentities. u'São Paulo'.encode('ascii', 'xmlcharrefreplace') 'S#227;o Paulo' That was a

Scope - import and globals

2007-05-29 Thread HMS Surprise
In the file snippet below the value for the global hostName is determined at runtime. Functions imported from the parent baseClass file such as logon also need access to this variable but cannot see it the with the implementation I have attempted here. Also, functions in this file and in the

Re: Scope - import and globals

2007-05-29 Thread Troels Thomsen
HMS Surprise [EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] In the file snippet below the value for the global hostName is determined at runtime. Functions imported from the parent baseClass file such as logon also need access to this variable but cannot see it the with the

Re: Storing tracebacks

2007-05-29 Thread George Sakkis
On May 29, 9:46 am, [EMAIL PROTECTED] wrote: 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

SMTPAuthenticationError

2007-05-29 Thread Ramashish Baranwal
Hi, I am trying to send a mail using smtplib. My server requires me to authenticate, for this I'm using SMTP.login function. However it fails- server = smtplib.SMTP(host='mail.domain', port=25) server.login('username', 'password') Traceback (most recent call last): File stdin, line 1, in ?

Tkinter Listbox - Different Text colors in one listbox

2007-05-29 Thread rahulnag22
Hi, Is it possible to have different items in a listbox in different colors? Or is it just one color for all items in a listbox? Thanks Rahul -- http://mail.python.org/mailman/listinfo/python-list

Re: SMTPAuthenticationError

2007-05-29 Thread Larry Bates
Ramashish Baranwal wrote: Hi, I am trying to send a mail using smtplib. My server requires me to authenticate, for this I'm using SMTP.login function. However it fails- server = smtplib.SMTP(host='mail.domain', port=25) server.login('username', 'password') Traceback (most recent call

Re: Storing tracebacks

2007-05-29 Thread Gabriel Genellina
En Tue, 29 May 2007 13:51:09 -0300, George Sakkis [EMAIL PROTECTED] escribió: The traceback module is handy if you want a text representation of the traceback, not the actual traceback. The reason I want to store the actual traceback is to make the exception transparent to the user, i.e.

Re: How to set a class inheritance at instance creation?

2007-05-29 Thread Ramashish Baranwal
On May 29, 8:52 pm, glomde [EMAIL PROTECTED] wrote: Hi I wonder if you can set what subclass a class should have at instance creation. The problem is that I have something like: class CoreLang(): def AssignVar(self, var, value): pass class Lang1(CoreLang): def

Re: How to set a class inheritance at instance creation?

2007-05-29 Thread [EMAIL PROTECTED]
Why not just have Lang1 and Lang2 inherit from WriteStruct as well? On May 29, 8:52 am, glomde [EMAIL PROTECTED] wrote: Hi I wonder if you can set what subclass a class should have at instance creation. The problem is that I have something like: class CoreLang(): def AssignVar(self,

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

2007-05-29 Thread Gabriel Genellina
En Tue, 29 May 2007 04:24:15 -0300, 人言落日是天涯,望极天涯不见家 [EMAIL PROTECTED] escribió: On 5月29日, 下午3时05分, Martin v. Lowis [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,

Re: wxpython demo error on debian etch

2007-05-29 Thread BartlebyScrivener
On May 29, 8:51 am, [EMAIL PROTECTED] wrote: The wxPython website details how to get the latest version of wxPython (2.8.4) I'm fairly new to Linux, so I probably shouldn't mess with my stable Etch. I'll make do with this version of wxPython or go back to puzzling over Tkinter. Thanks, rick

Re: How to set a class inheritance at instance creation?

2007-05-29 Thread glomde
On 29 Maj, 19:27, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Why not just have Lang1 and Lang2 inherit from WriteStruct as well? This wont work I think since if add antoher Class: class WriteStruct(): def func1(self); print Hello2 def Generate(self): self.func1() class

Re: How to set a class inheritance at instance creation?

2007-05-29 Thread glomde
On 29 Maj, 19:20, Ramashish Baranwal [EMAIL PROTECTED] wrote: On May 29, 8:52 pm, glomde [EMAIL PROTECTED] wrote: Hi I wonder if you can set what subclass a class should have at instance creation. The problem is that I have something like: class CoreLang(): def AssignVar(self,

Re: How to set a class inheritance at instance creation?

2007-05-29 Thread Ramashish Baranwal
On May 29, 8:52 pm, glomde [EMAIL PROTECTED] wrote: Hi I wonder if you can set what subclass a class should have at instance creation. The problem is that I have something like: class CoreLang(): def AssignVar(self, var, value): pass class Lang1(CoreLang): def

Re: multiline regular expression (replace)

2007-05-29 Thread Holger Berger
Hi, yes: import re a= I Am Multiline but short anyhow b=(I[\s\S]*line) print re.search(b, a,re.MULTILINE).group(1) gives I Am Multiline Be aware that . matches NO newlines!!! May be this caused your problems? regards Holger Zdenek Maxa wrote: [EMAIL PROTECTED] wrote: On May

embeded python progam into visual C++ application crash

2007-05-29 Thread fabien.lyon
hello, The C++ application uses a python module which wraps commands set for CVS management: checkout, checkin and tag. We used python2.5.1 and Visual C++ 6.0 The problem we get is: After a good import and definition of python functions we have a random unhandled exception (from python25.dll)

Re: wxpython demo error on debian etch

2007-05-29 Thread kyosohma
On May 29, 12:33 pm, BartlebyScrivener [EMAIL PROTECTED] wrote: On May 29, 8:51 am, [EMAIL PROTECTED] wrote: The wxPython website details how to get the latest version of wxPython (2.8.4) I'm fairly new to Linux, so I probably shouldn't mess with my stable Etch. I'll make do with this

Re: Storing tracebacks

2007-05-29 Thread George Sakkis
On May 29, 1:21 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 29 May 2007 13:51:09 -0300, George Sakkis [EMAIL PROTECTED] escribió: The traceback module is handy if you want a text representation of the traceback, not the actual traceback. The reason I want to store the actual

Re: Tkinter Listbox - Different Text colors in one listbox

2007-05-29 Thread kyosohma
On May 29, 12:02 pm, [EMAIL PROTECTED] wrote: Hi, Is it possible to have different items in a listbox in different colors? Or is it just one color for all items in a listbox? Thanks Rahul Looks like it has to be the same color and font:

Re: 0 == False but [] != False?

2007-05-29 Thread Donn Cave
In article [EMAIL PROTECTED], Erik Max Francis [EMAIL PROTECTED] wrote: Donn Cave wrote: Anyone who finds this surprising, might enjoy reading this article from the time several years ago when the feature was being considered. When you have some time - it's long, but interesting.

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

2007-05-29 Thread Ragnar Ouchterlony
tis 2007-05-29 klockan 09:05 +0200 skrev Martin v. Lowis: Yes, when writing to a file, you need to define an encoding, e.g. self.file.write(data.encode(utf-8)) You can use codecs.open() instead of open(), so that you can just use self.file.write(data) If I for some reason can't open the

Connection acception with confirmation

2007-05-29 Thread no`name`
Hi, i'm new in Python and i'm trying to write some server which can confirm connection from client. Here is a part of code: import sys import threading from socket import * class TelGUI(threading.Thread): def __init__(self): threading.Thread.__init__(self) def

Re: How to set a class inheritance at instance creation?

2007-05-29 Thread Stargaming
glomde schrieb: Hi I wonder if you can set what subclass a class should have at instance creation. The problem is that I have something like: class CoreLang(): def AssignVar(self, var, value): pass class Lang1(CoreLang): def AssignVar(self, var, value):

Re: 0 == False but [] != False?

2007-05-29 Thread Erik Max Francis
Donn Cave wrote: Not that it is of no historical interest to review all these reasonable arguments, but allow me to restore the context quote from my follow-up: If the counterpoints are of no historical interest, then the original point must be of no historical interest either, since it was

Re: python unix install, sqlite3

2007-05-29 Thread Simon
On May 29, 7:05 am, vasudevram [EMAIL PROTECTED] wrote: On May 29, 5:52 pm, Simon [EMAIL PROTECTED] wrote: 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

Re: wxpython demo error on debian etch

2007-05-29 Thread BartlebyScrivener
On May 29, 1:09 pm, [EMAIL PROTECTED] wrote: The newer versions of wxPython won't make your Debian crash or anything. Thanks, mike, i'll try it. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: Storing tracebacks

2007-05-29 Thread Gabriel Genellina
En Tue, 29 May 2007 15:13:33 -0300, George Sakkis [EMAIL PROTECTED] escribió: On May 29, 1:21 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: A traceback contains a linked list of frames, each with its own globals and locals and lot of context info. I'm not sure that moving a traceback

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

2007-05-29 Thread Gabriel Genellina
En Tue, 29 May 2007 15:16:52 -0300, Ragnar Ouchterlony [EMAIL PROTECTED] escribió: If I for some reason can't open the object myself or needs encoding on other file-like objects, I think the following wrapper function is of use (it essentially does what codecs.open() does but takes a

Re: Connection acception with confirmation

2007-05-29 Thread Rob Williscroft
no`name` wrote in news:[EMAIL PROTECTED] in comp.lang.python: maybe someone have some ideas how to block first stdin in main function and get stdin from the thread when here is a new connection? No, but you could instead use a Queue: http://docs.python.org/lib/module-Queue.html so

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

2007-05-29 Thread Eric S. Johansson
Warren Stringer wrote: Hi Eric, You make a compelling argument for underscores. I sometimes help a visually impaired friend with setting up his computers. I'm wondering about the aural output to you second example: link.set_parse_action(emit_link_HTML) Does it sound like this:

Speex bindings for python 2.5

2007-05-29 Thread JarodEvans
Hello, For a personal project, I need to use speex with Python on Win32, but pyspeex is compiled for python 2.2. Could somebody try to compile pyspeex for python 2.5 please ? Thanx a lot for your help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Speex bindings for python 2.5

2007-05-29 Thread JarodEvans
On 29 mai, 21:28, [EMAIL PROTECTED] wrote: Hello, For a personal project, I need to use speex with Python on Win32, but pyspeex is compiled for python 2.2. Could somebody try to compile pyspeex for python 2.5 please ? Thanx a lot for your help. I forgot to give the url :

Re: SMTPAuthenticationError

2007-05-29 Thread Ramashish Baranwal
I am trying to send a mail using smtplib. My server requires me to authenticate, for this I'm using SMTP.login function. However it fails- server = smtplib.SMTP(host='mail.domain', port=25) server.login('username', 'password') Traceback (most recent call last): File stdin, line

Re: 0 == False but [] != False?

2007-05-29 Thread Donn Cave
In article [EMAIL PROTECTED], Erik Max Francis [EMAIL PROTECTED] wrote: Donn Cave wrote: Not that it is of no historical interest to review all these reasonable arguments, but allow me to restore the context quote from my follow-up: If the counterpoints are of no historical interest,

Re: How to set a class inheritance at instance creation?

2007-05-29 Thread Steve Holden
glomde wrote: Hi I wonder if you can set what subclass a class should have at instance creation. The problem is that I have something like: class CoreLang(): def AssignVar(self, var, value): pass class Lang1(CoreLang): def AssignVar(self, var, value):

Re: embeded python progam into visual C++ application crash

2007-05-29 Thread Gabriel Genellina
En Tue, 29 May 2007 15:01:07 -0300, fabien.lyon [EMAIL PROTECTED] escribió: hello, The C++ application uses a python module which wraps commands set for CVS management: checkout, checkin and tag. We used python2.5.1 and Visual C++ 6.0 2.5.1 is compiled with Visual Studio 2005 - I hope you

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

2007-05-29 Thread Ragnar Ouchterlony
tis 2007-05-29 klockan 16:08 -0300 skrev Gabriel Genellina: sys.stdout = filewrapper(sys.stdout, 'utf-8') print uåäö \N{GREEK CAPITAL LETTER DELTA} Useful if you don't want to append .encode() to everything you print out that potentially can contain non-ascii letters. Isn't the same

Re: How to set a class inheritance at instance creation?

2007-05-29 Thread glomde
On 29 Maj, 22:45, Steve Holden [EMAIL PROTECTED] wrote: glomde wrote: Hi I wonder if you can set what subclass a class should have at instance creation. The problem is that I have something like: class CoreLang(): def AssignVar(self, var, value): pass class

  1   2   >