ANN: wxPython 2.7.1.3

2006-10-27 Thread Robin Dunn
Announcing -- The 2.7.1.3 release of wxPython is now available for download at http://wxpython.org/download.php. This release is a yet another quick-turnaround bugfix release designed to solve some problems, plust some minor enhancements. This will likely be the last 2.7.1.x release.

Re: How to Split Chinese Character with backslash representation?

2006-10-27 Thread Cameron Walsh
limodou wrote: On 10/27/06, Wijaya Edward [EMAIL PROTECTED] wrote: Thanks but my intention is to strictly use regex. Since there are separator I need to include as delimiter Especially for the case like this: str = '\xc5\xeb\xc7\xd5\xbc--FOO--BAR' field = list(str) print field

Re: NumPy 1.0 release

2006-10-27 Thread Robert Kern
Robert Kern wrote: George Sakkis wrote: By the way, it would be great if numpy's mailing list was mirrored to a google group; sourceforge and gmane are just horrible to use. Sorry, I don't think that Google Groups does mirroring like GMane does. Never mind.

Re: Cards deck problem

2006-10-27 Thread Cameron Walsh
[EMAIL PROTECTED] wrote: Dennis Lee Bieber wrote: On Fri, 27 Oct 2006 03:48:25 GMT, Michael Naunton [EMAIL PROTECTED] declaimed the following in comp.lang.python: This may seem pendantic, but CS is mostly about thinking about (and thus snicker Someday I should arrange to do a lost-wax

Re: Obtaining SSL certificate info from SSL object - BUG?

2006-10-27 Thread John Nagle
Michael Ströder wrote: John Nagle wrote: The Python SSL object offers two methods from obtaining the info from an SSL certificate, server() and issuer(). The actual values in the certificate are a series of name/value pairs in ASN.1 binary format. But what server() and issuer() return are

Re: How to Split Chinese Character with backslash representation?

2006-10-27 Thread Fredrik Lundh
Wijaya Edward wrote: Since there are separator I need to include as delimiter Especially for the case like this: str = '\xc5\xeb\xc7\xd5\xbc--FOO--BAR' field = list(str) print field ['\xc5', '\xeb', '\xc7', '\xd5', '\xbc', '-', '-', 'F', 'O', 'O', '-', '-', 'B', 'A', 'R'] What we

Re: To Stop a Process that is Waiting on socket.accept()

2006-10-27 Thread mumebuhi
Hi Steve, The output is as the following (excluding the ---start--- and ---end---): ---start--- die now Traceback (most recent call last): File ../../../scratch/python/tmp.py, line 39, in ? channel, details = server.accept() File /usr/lib/python2.4/socket.py, line 169, in accept sock,

Re: my first software

2006-10-27 Thread Leo Kislov
[EMAIL PROTECTED] wrote: I am a beginner of programming and started to learn Python a week ago. last 3 days, i write this little tool for Renju.if you have any advice on my code,please tell me s = '' for i in range (0,len(done) - 1): s = s +str(done[i][0]) +

Re: subprocess cwd keyword.

2006-10-27 Thread Leo Kislov
Ivan Vinogradov wrote: Dear All, I would greatly appreciate a nudge in the right direction concerning the use of cwd argument in the call function from subprocess module. The setup is as follows: driver.py - python script core/ - directory main

Re: How to Split Chinese Character with backslash representation?

2006-10-27 Thread limodou
On 10/27/06, Cameron Walsh [EMAIL PROTECTED] wrote: limodou wrote: On 10/27/06, Wijaya Edward [EMAIL PROTECTED] wrote: Thanks but my intention is to strictly use regex. Since there are separator I need to include as delimiter Especially for the case like this: str =

Re: NumPy 1.0 release

2006-10-27 Thread George Sakkis
Robert Kern wrote: George Sakkis wrote: ImportError: /usr/local/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so: undefined symbol: zheevd_ Googling for undefined symbol: zheevd_ returned no hits, at which point I gave up for now; hopefully someone will have a suggestion on

Slurping All Content of a File into a Variable

2006-10-27 Thread Wijaya Edward
Hi, How can we slurp content of a single file into one variable? I tried this: myfile_content = open('somefile.txt') print myfile_content, open file 'somefile.txt', mode 'r' at 0xb7f532e0 But it doesn't print the content of the file. Regards, -- Edward WIJAYA SINGAPORE

RE: Slurping All Content of a File into a Variable Pls ignore, problem with mailing list, eom

2006-10-27 Thread Wijaya Edward
From: [EMAIL PROTECTED] on behalf of Wijaya Edward Sent: Thu 10/26/2006 11:47 PM To: python-list@python.org Subject: Slurping All Content of a File into a Variable Hi, How can we slurp content of a single file into one variable? I tried this:

Re: displaying \n-less prompts in a pythonic way

2006-10-27 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: 8--- mystr = raw_input(Who is this? ) Who is this? Steve how did you know how to answer that? - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Assertion failure on hotshot.stats.load()

2006-10-27 Thread Yang
Note: I realize hotshot is obsoleted by cProfile, but 2.5 breaks several packages I depend on. I'm using Python 2.4.3. I'm getting an AssertionError on assert not self._stack when calling hotshot.stats.load() on my app's hotshot profile. The app consistently causes hotshot to generate such a

Matching Pure Numeric and '' with Python re

2006-10-27 Thread Wijaya Edward
Hi, Given this list: list = ['0123', '1A34' , '333-' , '' ] I want to match only this element '0123' (pure numeric) and '' (empty element). Why this construct doesn't work? p = re.compile(''+|[0-9]+) m = p.match(word) if m: print word,

Re: Matching Pure Numeric and '' with Python re

2006-10-27 Thread Steve Holden
Wijaya Edward wrote: Hi, Given this list: list = ['0123', '1A34' , '333-' , '' ] I want to match only this element '0123' (pure numeric) and '' (empty element). Why this construct doesn't work? p = re.compile(''+|[0-9]+) m = p.match(word) if

Re: Assertion failure on hotshot.stats.load()

2006-10-27 Thread Yang
I fell back onto the old profile module, but got the following error when trying to use zope.interface. I am now without any way to profile my application. Traceback (most recent call last): File /home/yang/local/bin/profile.py, line 611, in ? run('execfile(%r)' % (sys.argv[0],),

Re: run subprocess in separate window

2006-10-27 Thread heracek
On Oct 15, 6:43 pm, Radek [EMAIL PROTECTED] wrote: Currently when using subprocess.Popen(mycommand) all output goes to the stdout of my launcher. Hi, the solution is: p = subprocess.Popen(args=['command', 'arg1', 'arg2'], stdout=subprocess.PIPE,

Re: PyDev + Eclipse (Was: Re: What's the best IDE?)

2006-10-27 Thread olive
Michael B. Trausch wrote: Yep. Still does it. I'm running PyDev 1.2.4 without completion problem so far. Are you up to date ? Maybe you should install the latest from scratch. -- http://mail.python.org/mailman/listinfo/python-list

Re: Assertion failure on hotshot.stats.load()

2006-10-27 Thread Christophe
Yang a écrit : Note: I realize hotshot is obsoleted by cProfile, but 2.5 breaks several packages I depend on. I'm using Python 2.4.3. I'm getting an AssertionError on assert not self._stack when calling hotshot.stats.load() on my app's hotshot profile. The app consistently causes hotshot to

Re: Search Replace

2006-10-27 Thread Frederic Rentsch
DataSmash wrote: Hello, I need to search and replace 4 words in a text file. Below is my attempt at it, but this code appends a copy of the text file within itself 4 times. Can someone help me out. Thanks! # Search Replace file = open(text.txt, r) text = file.read() file.close() file

Re: Slightly OT: Is pyhelp.cgi documentation search broken?

2006-10-27 Thread Thomas Heller
Joel Hedlund schrieb: Hi! For a number of days I haven't been able to search the online python docs at: http://starship.python.net/crew/theller/pyhelp.cgi that is the search the docs with link at this page: http://www.python.org/doc/ Instead of the search engine, I get Error 404.

Simple problem with GUI!!

2006-10-27 Thread mohan
Hello Guys, I am a beginner with Python programming and would like to implement some GUI functionalities along with my main work. So I was trying to implement one basic program (available from books). Here is the code, import Tkinter TopLevelWindowObj = Tkinter.Tk()

Re: Simple problem with GUI!!

2006-10-27 Thread Fredrik Lundh
mohan wrote: At the end I had to close down my entire python compiler. I am using Python compiler with following specs in Windows XP OS. Pythonwin - Python IDE and GUI Framework for Windows. PythonWin 2.2.1 (#34, Feb 25 2003, 11:29:09) [MSC 32 bit (Intel)] on win32. Portions Copyright

Re: question about True values

2006-10-27 Thread Antoon Pardon
On 2006-10-26, Steven D'Aprano [EMAIL PROTECTED] wrote: On Wed, 25 Oct 2006 19:19:59 +, John Salerno wrote: Oh!!! I get it now! I was thinking that if s was the same as if s == True No. But you know that now :) because I know sometimes you can write if statements this way

Re: Tracing the execution of scripts?

2006-10-27 Thread R. Bernstein
pydb (http://bashdb.sf.net/pydb) has a both the ability to trace lines as they are executed as well as an --output option to have this sent to a file rather than stdout. If your program has threads it would be good to use the --threading option. (The best threading support is if your program uses

Re: question about True values

2006-10-27 Thread Antoon Pardon
On 2006-10-26, Donn Cave [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Steve Holden [EMAIL PROTECTED] wrote: ... Maybe so, but that rule (and let's not forget that the zen is not actually a set of prescriptive rules but rather guidelines for the informed) is immediately preceded

Re: Embedding Matplotlib images into wxPython

2006-10-27 Thread khromushin
I wrote a matplotlib Boa constructor plug-in. It is very easy to add it into a wxframe, sizers etc in Boa constructor. If you are interested in the plugin, pls. send e-mail to [EMAIL PROTECTED] Igor Khromushin [EMAIL PROTECTED] wrote: I am trying to embed images into a wxPython app

Re: question about True values

2006-10-27 Thread Fredrik Lundh
Antoon Pardon wrote: The latter will treat None and False the same as [], () and {}, which in most of my code is not what I want. since you never publish any code, what you do in your code is not very interesting to anyone. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: question about True values

2006-10-27 Thread Antoon Pardon
On 2006-10-26, Steve Holden [EMAIL PROTECTED] wrote: John Coleman wrote: As far as using non-booleans as conditions - I just think that if you want a certain block of code to be executed only if, for example, a list is non-empty, why not *say* so? I think if my_list != []: just reads better

Re: conditional computation

2006-10-27 Thread robert
Bruno Desthuilliers wrote: robert a écrit : (snip) class MemoCache(dict): # cache expensive Objects during a session (memory only) def memo(self, k, f): try: return self[k] except KeyError:#- was error return self.setdefault(k, f())

Re: question about True values

2006-10-27 Thread Antoon Pardon
On 2006-10-27, Fredrik Lundh [EMAIL PROTECTED] wrote: Antoon Pardon wrote: The latter will treat None and False the same as [], () and {}, which in most of my code is not what I want. since you never publish any code, This is not True. You shouldn't confuse your lack of recollection with

Re: Slightly OT: Is pyhelp.cgi documentation search broken?

2006-10-27 Thread Joel Hedlund
It works now again. You are now officially my hero. Note that you can also download the module and use it locally. Cool. I'll do that! Thanks! /Joel -- http://mail.python.org/mailman/listinfo/python-list

struct.pack bug?

2006-10-27 Thread Jansson Christer
Hi all, I have discovered that in my Python 2.4.1 installation (on Solaris 8), struct.pack handles things in a way that seems inconsistent to me. I haven't found any comprehensible documentation over known issues with Python 2.4.1 so I try this... Here's the thing: from struct import pack

Re: question about True values

2006-10-27 Thread Fredrik Lundh
Antoon Pardon wrote: since you never publish any code, This is not True. You shouldn't confuse your lack of recollection with reality. pointers, please. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Slurping All Content of a File into a Variable

2006-10-27 Thread marc . wyburn
myfile_content is an object and you have only opened the file. Python doesn't yet know whether you want to read it, copy it etc. to read it try text = myfile_content.readlines() print text this should be in most tutorials Wijaya Edward wrote: Hi, How can we slurp content of a single file

Re: struct.pack bug?

2006-10-27 Thread Fredrik Lundh
Jansson Christer wrote: I have discovered that in my Python 2.4.1 installation (on Solaris 8), struct.pack handles things in a way that seems inconsistent to me. I haven't found any comprehensible documentation over known issues with Python 2.4.1 so I try this... Here's the thing: from

Re: question about True values

2006-10-27 Thread Antoon Pardon
On 2006-10-27, Fredrik Lundh [EMAIL PROTECTED] wrote: Antoon Pardon wrote: since you never publish any code, This is not True. You shouldn't confuse your lack of recollection with reality. pointers, please. Sorry, the answer is no. I don't care whether you can locate my code or not or

virtual function appears in two bases

2006-10-27 Thread joe Li
I saw the following code, but I don't understand the rule for virtual function that appears in two basesCould anyone explain it for me, thanks.class Base1: def amethod(self): print Base1 class Base2(Base1): passclass Base3: def amethod(self): print Base3class Derived(Base2, Base3):

Re: question about True values

2006-10-27 Thread Steve Holden
Antoon Pardon wrote: On 2006-10-27, Fredrik Lundh [EMAIL PROTECTED] wrote: Antoon Pardon wrote: since you never publish any code, This is not True. You shouldn't confuse your lack of recollection with reality. pointers, please. Sorry, the answer is no. I don't care whether you can

Re: struct.pack bug?

2006-10-27 Thread Jansson Christer
Fredrik Lundh wrote: Jansson Christer wrote: I have discovered that in my Python 2.4.1 installation (on Solaris 8), struct.pack handles things in a way that seems inconsistent to me. I haven't found any comprehensible documentation over known issues with Python 2.4.1 so I try this... Here's

Re: question about True values

2006-10-27 Thread Steve Holden
Antoon Pardon wrote: On 2006-10-27, Fredrik Lundh [EMAIL PROTECTED] wrote: Antoon Pardon wrote: since you never publish any code, This is not True. You shouldn't confuse your lack of recollection with reality. pointers, please. Sorry, the answer is no. I don't care whether you can

Re: conditional computation

2006-10-27 Thread Bruno Desthuilliers
robert wrote: Bruno Desthuilliers wrote: robert a écrit : (snip) class MemoCache(dict): # cache expensive Objects during a session (memory only) def memo(self, k, f): try: return self[k] except KeyError:#- was error return self.setdefault(k,

Re: Tracing the execution of scripts?

2006-10-27 Thread Michael B. Trausch
Jean-Paul Calderone wrote: In order of importance: 1) Write unit tests for your code. Keep writing unit tests until you have some that _don't pass_. Then fix your code so that they do. When you do further development, write the tests first, then implement the code that makes them pass.

change keybindings for pygtk treeview

2006-10-27 Thread Fabian Braennstroem
Hi, I am just testing pygtk/glade out and wonder, if I am able to change the keybindings. E.g. the treeview searches by default for the entries beginning with the typed keystroke; moving to the next row works as usual with the Down key. Now I would like to change the key bindings to e.g. 'j' to

How set the source IP adress

2006-10-27 Thread Maksim Kasimov
Hi, how to set source ip-address when do __socket.connect((host, port)) on a machine that have a several ip-adresses? many thanks for advice. __socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) __socket.connect((host, port)) -- Maksim Kasimov --

Re: Tracing the execution of scripts?

2006-10-27 Thread Michael B. Trausch
Ben Finney wrote: Jean-Paul Calderone [EMAIL PROTECTED] writes: 1) Write unit tests for your code. Keep writing unit tests until you have some that _don't pass_. Then fix your code so that they do. When you do further development, write the tests first, then implement the code that makes

Re: my first software

2006-10-27 Thread Bjoern Schliessmann
Fredrik Lundh wrote: cygwin? I thought so too, but cygwin would use #!/cygdrive/c/..., IIRC. exemaker? some kind of web server? Okay, didn't know that :) Regards, Björn -- BOFH excuse #22: monitor resolution too high -- http://mail.python.org/mailman/listinfo/python-list

Re: Using classes in python

2006-10-27 Thread Colin J. Williams
trevor lock wrote: Hello, I've just started using python and have observed the following : class foo: a=[] def __init__(self, val): self.a.append ( val ) def getA(self): print self.a return self.a z = foo(5) y = foo(4) z.getA()

PyQt-x11-gpl-3.16 compile error

2006-10-27 Thread baur79
[EMAIL PROTECTED] PyQt-x11-gpl-3.16]# python configure.py -q /usr/lib/qt-3.3/ This is the GPL version of PyQt 3.16 (licensed under the GNU General Public License) for Python 2.4.2 on linux2. Type 'L' to view the license. Type 'yes' to accept the terms of the license. Type 'no' to decline the

Re: Tracing the execution of scripts?

2006-10-27 Thread Michael B. Trausch
Stephan Kuhagen wrote: Michael B. Trausch mike$#at^nospam!%trauschus wrote: Basically, is there something that will log every line of Python code executed, in its order of execution, to a text file so that I can see what is (or isn't) happening that I am expecting? Python itself can do

ANN: the pyfaq wiki has moved

2006-10-27 Thread Fredrik Lundh
Back in April, I posted a copy of the Python FAQ over at infogami.com, to collect comments and new FAQ entries for python.org. Since infogami.com development has ceased, and the server's been hit by spam lately, I've decided to move the material over to a hopefully more reliable site:

Re: my first software

2006-10-27 Thread Steve Holden
Bjoern Schliessmann wrote: Fredrik Lundh wrote: cygwin? I thought so too, but cygwin would use #!/cygdrive/c/..., IIRC. Cygwin is actually pretty liberal about paths, and will often take a Winwos-style path (unlike the snotty cmd.exe program that insists on treating forard slashes

Re: question about True values

2006-10-27 Thread Steven D'Aprano
On Fri, 27 Oct 2006 09:16:57 +, Antoon Pardon wrote: I think it is a good time to remind people of some extremely well-thought out opposition to the introduction of bools to Python from Laura Creighton: http://mail.python.org/pipermail/python-list/2002-April/095878.html She lost the

Re: PyDev + Eclipse (Was: Re: What's the best IDE?)

2006-10-27 Thread Michael B. Trausch
olive wrote: Michael B. Trausch wrote: Yep. Still does it. I'm running PyDev 1.2.4 without completion problem so far. Are you up to date ? Maybe you should install the latest from scratch. Yep, I am up to date. As I said, I am totally confused. -- Mike --

Re: How to Split Chinese Character with backslash representation?

2006-10-27 Thread Paul McGuire
Wijaya Edward [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I was trying to split a string that represent chinese characters below: str = '\xc5\xeb\xc7\xd5\xbc' print str2, ??? fields2 = split(r'\\',str) print fields2, ['\xc5\xeb\xc7\xd5\xbc'] But why the split

Re: Slurping All Content of a File into a Variable

2006-10-27 Thread Paul McGuire
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] myfile_content is an object and you have only opened the file. Python doesn't yet know whether you want to read it, copy it etc. to read it try text = myfile_content.readlines() print text this should be in most tutorials

Re: NumPy 1.0 release

2006-10-27 Thread sturlamolden
Travis E. Oliphant wrote: We are very pleased to announce the release of NumPy 1.0 available for download at http://www.numpy.org Congratulations to you and the other NumPy developers for completing this major undertaking. I would also like to express my sincere gratitude for making this

Re: Insert Content of a File into a Variable

2006-10-27 Thread Paul McGuire
Wijaya Edward [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, How can we slurp all content of a single file into one variable? Please don't double-post your questions. Now you have two threads running with people answering the same question. -- Paul --

Re: PyDev + Eclipse (Was: Re: What's the best IDE?)

2006-10-27 Thread Éric Daigneault
olive wrote: Michael B. Trausch wrote: Yep. Still does it. I'm running PyDev 1.2.4 without completion problem so far. Are you up to date ? Maybe you should install the latest from scratch. Yep, I am up to date. As I said, I am totally confused. --

[Fwd: Using cElementTree and elementtree.ElementInclude]

2006-10-27 Thread Mark
Original Message Subject: Using cElementTree and elementtree.ElementInclude Date: Mon, 23 Oct 2006 09:40:24 -0500 From: Mark E. Smith [EMAIL PROTECTED] Organization: AEDC To: python-list@python.org cElementTree cannot hold ElementTree instances. can you post a small but

To Kill a Process that is Accepting Connection on Socket

2006-10-27 Thread mumebuhi
I removed my previous post about this topic because I apparently have pasted the wrong code. Sorry for the confusion and thanks for being patient. I am having problem to kill the following script completely. The script basically does the following. The main thread creates a new thread, which does

Re: question about True values

2006-10-27 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Thursday 26 October 2006 02:56, John Salerno wrote:   s = 'hello'   s == True False   if s: print 'hi' this isn't only a python behavior. the  if test is valid for all non-zero

Re: Printing Hidden Character in Python

2006-10-27 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Thursday 26 October 2006 16:43, Wijaya Edward wrote: How can we print out the hidden character like \n, \r etc in Python? If it's meant to evidentiate then you should scan each byte an print it out

Configfile

2006-10-27 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** HI, I've a small doubt regarding the way to save a configuration file on the file manipulated by ConfigParser. As far as I could understand this: cp = ConfigParser.ConfigParser cp.set(section,option)

Re: question about True values

2006-10-27 Thread Steven D'Aprano
On Fri, 27 Oct 2006 12:54:35 +0100, Steve Holden wrote: Antoon Pardon wrote: On 2006-10-27, Fredrik Lundh [EMAIL PROTECTED] wrote: Antoon Pardon wrote: since you never publish any code, This is not True. You shouldn't confuse your lack of recollection with reality. pointers, please.

Re: print dos format file into unix format

2006-10-27 Thread Magnus Lycka
Tim Roberts wrote: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Suppose I have a dos format text file. The following python code will print ^M at the end. I'm wondering how to print it in unix format. fh = open(options.filename) for line in fh.readlines() print line, Are you running this

Re: Restricting import file lookup for pyd, dll, ...

2006-10-27 Thread Magnus Lycka
Bernard Lebel wrote: Hi, That's because I'm using Python through another application, via the pywin32 extensions. When that other application starts, it performs several thousands of file requests (we're talking 4,500, roughly) in the Python installation, locations where there are Python

Re: conditional computation

2006-10-27 Thread robert
Bruno Desthuilliers wrote: robert wrote: Bruno Desthuilliers wrote: robert a écrit : (snip) class MemoCache(dict): # cache expensive Objects during a session (memory only) def memo(self, k, f): try: return self[k] except KeyError:#- was error

Re: Assertion failure on hotshot.stats.load()

2006-10-27 Thread Yang
I created a simple test case showing the zope.interface problem. Just pass the following file to profile.py (i.e. the 'profile' module in your Python standard library, run as a standalone app). The culprit *seems* to be Twisted. Any ideas? Thanks in advance. #!/usr/bin/env python error i get:

Test

2006-10-27 Thread Lad
Test -- http://mail.python.org/mailman/listinfo/python-list

Re: Search Replace

2006-10-27 Thread DataSmash
Really appreciate all the all the different answers and learning tips! -- http://mail.python.org/mailman/listinfo/python-list

Re: Assertion failure on hotshot.stats.load()

2006-10-27 Thread skip
Yang Note: I realize hotshot is obsoleted by cProfile, but 2.5 breaks Yang several packages I depend on. I'm using Python 2.4.3. Not a direct answer to your question, but the cProfile module runs just fine under 2.4. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Tracing the execution of scripts?

2006-10-27 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Friday 27 October 2006 17:31, R. Bernstein wrote: pydb (http://bashdb.sf.net/pydb) has a both the ability to trace lines I faced several time that pydb stuck without sign of errors. In the other

Re: ANN: wxPython 2.7.1.3

2006-10-27 Thread Johann C. Rocholl
Hi Robin, You may want to use a spell checker for announcements and for the wxpython.org website. For example, the first paragraph of your announcement contains the words plust and pacakges, and the word pacakge can also be found on the following pages: www.wxpython.org/download.php

Re: subprocess cwd keyword.

2006-10-27 Thread Ivan Vinogradov
On 27-Oct-06, at 2:25 AM, Leo Kislov wrote: Ivan Vinogradov wrote: ... call(core/main) works but uses .. of core for input/output. call(core/main,cwd=core) and call(main,cwd=core) both result in [snip exception] Usually current directory is not in the PATH on UNIX. Try

Re: Sentinel values for special cases

2006-10-27 Thread Aahz
In article [EMAIL PROTECTED], Ben Finney [EMAIL PROTECTED] wrote: Fourth, if you have decided that a magic sentinel value is called for but None is already taken for some other purpose, don't use a string. Use a unique do-nothing object, defined at the module level so callers can easily get at

Re: Printing Hidden Character in Python

2006-10-27 Thread Brian Mills
Fulvio wrote: *** Your mail has been scanned by InterScan MSS. *** On Thursday 26 October 2006 16:43, Wijaya Edward wrote: How can we print out the hidden character like \n, \r etc in Python? If it's meant to evidentiate then you should scan

Re: PyQt-x11-gpl-3.16 compile error

2006-10-27 Thread David Boddie
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] PyQt-x11-gpl-3.16]# python configure.py -q /usr/lib/qt-3.3/ This is the GPL version of PyQt 3.16 (licensed under the GNU General Public License) for Python 2.4.2 on linux2. [...] Creating features file... Error: Unable to build mkfeatures

Re: How the event list be sent to EventManager?

2006-10-27 Thread steve
Can an argument to reference an object's attribute?? Fredrik Lundh wrote: steve wrote: The example code from: http://sjbrown.ezide.com/games/example1.py.html ... def Notify( self, event ): if not isinstance(event, TickEvent): Debug( Message: + event.name )

Re: Configfile

2006-10-27 Thread Diez B. Roggisch
Fulvio schrieb: *** Your mail has been scanned by InterScan MSS. *** HI, I've a small doubt regarding the way to save a configuration file on the file manipulated by ConfigParser. As far as I could understand this: cp =

Re: virtual function appears in two bases

2006-10-27 Thread Fredrik Lundh
joe Li wrote: I saw the following code, but I don't understand the rule for virtual function that appears in two bases Could anyone explain it for me, thanks. http://docs.python.org/tut/node11.html#SECTION001151 /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Tracing the execution of scripts?

2006-10-27 Thread Larry Bates
I just thought I would put my 2 cents in on this issue. Others have suggested that unit tests are an excellent way of debugging your code and I agree. I also find that writing code from the outset using a logging class (there is one in the standard library) that allows you to create log files of

Re: Configfile

2006-10-27 Thread Larry Bates
Fulvio wrote: *** Your mail has been scanned by InterScan MSS. *** HI, I've a small doubt regarding the way to save a configuration file on the file manipulated by ConfigParser. As far as I could understand this: cp =

Re: Python 2.5 ; Effbot console ; thank ; pb release.

2006-10-27 Thread Magnus Lycka
Méta-MCI wrote: Hi! (***sorry for my approximative english***) That's ok. Quite amusing to read that you were repaired. A few months ago, I needed a console, under Windows. After several research, I selected the console of EffBot. Thank you very much, Fredrik Lundh, for this small

Re: python GUIs comparison (want)

2006-10-27 Thread Magnus Lycka
David Boddie wrote: You're forgetting that Qt isn't just a widget toolkit. I suspect that the non-GUI parts are (just like in Wx) C++ stuff which is more or less equivalent with things that are either Python builtins or parts of Python's standard library. Besides, getting those proprietary

Re: PyDev + Eclipse (Was: Re: What's the best IDE?)

2006-10-27 Thread Fabio Zadrozny
On 10/26/06, Michael B. Trausch mike$#at^[EMAIL PROTECTED] wrote: Kenneth McDonald wrote: With the most recent edition of PyDev, I find Eclipse works quite well for me.Since you mentioned it, I have a question that searching around andpoking around has not solved for me, yet.Do you have

Re: Insert characters into string based on re ?

2006-10-27 Thread guido . thelen
You can test it here: http://www.sqlinform.com -- http://mail.python.org/mailman/listinfo/python-list

Re: conditional computation

2006-10-27 Thread Bruno Desthuilliers
robert wrote: Bruno Desthuilliers wrote: robert wrote: Bruno Desthuilliers wrote: robert a écrit : (snip) class MemoCache(dict): # cache expensive Objects during a session (memory only) def memo(self, k, f): try: return self[k] except KeyError:#- was

Accessing ClarifyCRM with Python

2006-10-27 Thread Jason
I need to embed the ability to create a Clarify Case in a python program I have written. Unfortunately my familiarity with Clarify is very limited at this point. Is there a module out there that makes this process semi-painless? I couldn't find one googling around... Has anyone implemented

Telnetlib to twisted

2006-10-27 Thread Matthew Warren
Hallo, import telnetlib l=telnetlib.Telnet('dbprod') l.interact() telnet (dbprod) Login: Could anyone show how the above would be written using the twisted framework? All I'm after is a more 'intelligent' interactive telnet session (handles 'vi' etc..) rather than the full capabilities of

Re: Telnetlib to twisted

2006-10-27 Thread Bjoern Schliessmann
Matthew Warren wrote: Could anyone show how the above would be written using the twisted framework? All I'm after is a more 'intelligent' interactive telnet session (handles 'vi' etc..) rather than the full capabilities of the twisted framework. Not done this until now, but have a look at

Re: How the event list be sent to EventManager?

2006-10-27 Thread Fredrik Lundh
steve wrote: Can an argument to reference an object's attribute?? sorry, cannot parse that sentence. the arguments to a method are objects, and objects have attributes. why do you find this surprising? /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Tracing the execution of scripts?

2006-10-27 Thread fumanchu
Stephan Kuhagen wrote: Michael B. Trausch mike$#at^nospam!%trauschus wrote: Basically, is there something that will log every line of Python code executed, in its order of execution, to a text file so that I can see what is (or isn't) happening that I am expecting? Python itself can do

importing class

2006-10-27 Thread gmarkowsky
Hi all, I'm trying to import a class from a module. The class looks like this: class App: def __init__(self, master): frame = Frame(master) frame.pack() self.button = Button(frame, text=text_1, command= self.comm_1) self.button.pack(side=LEFT)

Re: Handling emails

2006-10-27 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Friday 27 October 2006 06:48, Ben Finney wrote: There is always the option to not send messages to this list using that mail server Once again sorry for that. I'll take action to switch to another

Re: importing class

2006-10-27 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], gmarkowsky wrote: Hi all, I'm trying to import a class from a module. The class looks like this: class App: def __init__(self, master): frame = Frame(master) frame.pack() self.button = Button(frame, text=text_1, command=

Re: Telnetlib to twisted

2006-10-27 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Bjoern Schliessmann wrote: This email is confidential and may be privileged. If you are not the intended recipient please notify the sender immediately and delete the email from your computer. Am I the inteded recipient? I'm not listed in the headers. This is

Re: question about True values

2006-10-27 Thread Donn Cave
In article [EMAIL PROTECTED], Antoon Pardon [EMAIL PROTECTED] wrote: ... I think you are incorrect. Thanks! I rest my case! And how do I express that a number has to be greater than 100 into a Nothing vs Something dichotomy? Declare all greater numbers as Something and the rest as Nothing?

  1   2   >