How do you use this list ?

2006-06-27 Thread Bo Yang
Hi everyone , I have join this list for about 4 months , and everyday I receive hundreds of mails . There is no means to read all of them , so I just read something interesting for me . But if so , there are too much mails pile up in my inbox , I want to ask how do you use this list , reading every

Re: TypeError: Cannot create a consistent method resolution order (MRO) for bases object

2006-06-27 Thread Michele Simionato
[EMAIL PROTECTED] wrote: > What are the reason one would get this error: TypeError: Cannot create > a consistent method resolution order (MRO) for bases object ?? See http://www.python.org/download/releases/2.3/mro/ Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: logging error with RotatingFileHandler

2006-06-27 Thread Vinay Sajip
flupke wrote: > File "C:\Python24\lib\logging\handlers.py", line 134, in doRollover > self.handleError(record) > NameError: global name 'record' is not defined There's a bug in doRollover's exception handling, which is masking the true error - which is most probably an exception being throw

Re: Termination and type systems

2006-06-27 Thread Dirk Thierbach
David Hopwood <[EMAIL PROTECTED]> wrote: > Dirk Thierbach wrote: > That's interesting, but linear typing imposes some quite severe > restrictions on programming style. From the example of 'h' on page 2, > it's clear that the reason for the linearity restriction is just to > ensure polynomial-time

Re: break the loop in one object and then return

2006-06-27 Thread Petr Jakes
Alex Pavluck wrote: > Peter, Why do you make such claims without any reason to do so? This > is my own thing. So, I guess I am a student but just a student of my > own accord. So, please don't reply if you don't have anything to > contribute. First: This is not "YOUR OWN THING". This group real

Re: How do you use this list ?

2006-06-27 Thread placid
Bo Yang wrote: > Hi everyone , > I have join this list for about 4 months , and everyday I receive > hundreds of > mails . There is no means to read all of them , so I just read something > interesting > for me . But if so , there are too much mails pile up in my inbox , I > want to ask > how do y

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Ketil Malde
"Marshall" <[EMAIL PROTECTED]> writes: > There are also what I call "packaging" issues, such as > being able to run partly-wrong programs on purpose so > that one would have the opportunity to do runtime analysis > without having to, say, implement parts of some interface > that one isn't interest

Re: What technologies should I use for my application manager?

2006-06-27 Thread MrBlueSky
Thanks for the advice, Adam! Turbogears sounds like it does everything I want and looks like a great... except you've made me nervous with your comment on the instability of the Oracle API! Stability, good documentation and a wide user base are priorities. I was delighted by the quality of Tkin

Re: How do I limit access to objects in Python?

2006-06-27 Thread Diez B. Roggisch
Tommytrojan schrieb: > Hi, > > I have an application that embeds the Python interpreter. My users have > access to the interpreter through a console like window and they can run > Python scripts. For my application I use some Python modules (say module > Restricted) that I don't want to give my

Re: style question

2006-06-27 Thread Hari Sekhon
On 26/06/06, Claudio Grondi <[EMAIL PROTECTED]> wrote: Scott David Daniels wrote:> Claudio Grondi wrote:> <<> When necessary to skip first line _and_ indentation:>>   message = """ >>   This is line 1>>   This is line 2>>   This is line 3>>   """.replace('\n  ', '\n')[1:] # adjust here '\n  ' t

Re: What technologies should I use for my application manager?

2006-06-27 Thread Fredrik Lundh
"MrBlueSky" wrote: > Anyone else like to try and sell me on Zope or Django?! start here: http://www.djangoproject.com/documentation/tutorial1/ if you're on windows, and just want to tinker a little, http://effbot.org/zone/django.htm#installing might also be helpful. -- http://m

Re: A game idea.

2006-06-27 Thread Max M
defcon8 wrote: > I have had what I think is quite a nice game idea, but I don't really > have the experience or knowledge to go about it. Would anyone be > willing to start a game project? Ideas are a dime a dozen. Implementation is the hard part. If you want something done, you will have to do

to py or not to py ?

2006-06-27 Thread Chandrashekhar kaushik
HI all I have the following prob.I am to write a parallel vis application .I wud have by default used C++ for the same but somehow thought if py cud help me ..It does as in many things that i would otherwise have written down already exists ... ( like built in classes for sockets , threading etc )I

Re: Replace Whole Object Through Object Method

2006-06-27 Thread I V
On Mon, 26 Jun 2006 19:40:52 -0700, digitalorganics wrote: > A misuse of inheritance eh? Inheritance, like other language features, > is merely a tool. I happen to be using this tool to have my virtual > persons change roles at different points in their lifetime, as many > real people tend to do. T

Re: Replace Whole Object Through Object Method

2006-06-27 Thread Bruno Desthuilliers
Maric Michaud wrote: > Le lundi 26 juin 2006 22:37, [EMAIL PROTECTED] a écrit : > >>Won't work because there will be employers that aren't workers. >>And yes, only some workers will become employers, but also only some >>employers will also be workers (at some point in program). Let me be >>more c

Re: replace a method in class: how?

2006-06-27 Thread Bruno Desthuilliers
Maric Michaud wrote: > Le mardi 27 juin 2006 06:21, Bruno Desthuilliers a écrit : > >>Maric Michaud a écrit : >>(snip) >> >> >>>In OOP Methods are defined in *classes* not in any arbitrary object >> >>Chapter and verse, please ? AFAIK, the first O in OOP stands for >>"object", not for "class" !-)

Re: Help with conversion VB script to Python : COM objects

2006-06-27 Thread Roger Upole
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I need to re-write a VB script into Python (because I really don't like > VB). > > The VB script is used to create a Windows COM object. > (I am more of Unix guy, so COM objects are a little bit alien for me). > > At a certain p

Re: MSoffice metadata

2006-06-27 Thread Roger Upole
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi > is there a module in Python to extract metadata in MS office documents > thanks > The Pywin32 package (http://sourceforge.net/projects/pywin32/) wraps the interfaces used to read and write document properties. Specifically, you can

Re: Replace Whole Object Through Object Method

2006-06-27 Thread Bruno Desthuilliers
I V wrote: > On Mon, 26 Jun 2006 19:40:52 -0700, digitalorganics wrote: > >>A misuse of inheritance eh? Inheritance, like other language features, >>is merely a tool. I happen to be using this tool to have my virtual >>persons change roles at different points in their lifetime, as many >>real peop

classes and interfaces

2006-06-27 Thread s99999999s2003
hi i come from a non OO environment. now i am learning about classes. can i ask, in JAva, there are things like interface. eg public interface someinterface { public somemethod (); ... } In python , how to implement interface like the above? is it just define a class?? class someint

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Dr.Ruud
Chris Smith schreef: > So it seems to me that we have this ideal point at which it is > possible to write all correct or interesting programs, and impossible > to write buggy programs. I think that is a misconception. Even at the idealest point it will be possible (and easy) to write buggy progra

Re: Replace Whole Object Through Object Method

2006-06-27 Thread Fredrik Lundh
Bruno Desthuilliers wrote: > As a matter of fact, in Python, the class is an attribute of an object. except when it isn't. >> def add_role(self, role_class): >>self.roles.append(role_class(self)) > > And here you create a circular reference between object and roles... and ? Python has a ga

Inconsistent float behaviour on "inf" - current state?

2006-06-27 Thread Peter Knörrich
Hello, I've found another inconsistency, and looking through the list archives I can find mentions of funky stuff like print float('inf') giving Infanity with Python 1.5.2 on Solaris 7 in 2001, and a couple closed bug reports on why "float('inf')" isn't supported everywhere, and I understand t

Re: classes and interfaces

2006-06-27 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: > hi > i come from a non OO environment. now i am learning about classes. can > i ask, in JAva, there are things like interface. eg > public interface someinterface { >public somemethod (); > >... > } > > In python , how to implement interface like the abov

Re: Replace Whole Object Through Object Method

2006-06-27 Thread Bruno Desthuilliers
Fredrik Lundh wrote: > Bruno Desthuilliers wrote: > > >>As a matter of fact, in Python, the class is an attribute of an object. > > > except when it isn't. Which are the cases where it isn't ? > >>>def add_role(self, role_class): >>> self.roles.append(role_class(self)) >> >>And here you cr

pyrex functions to replace a method (Re: replace a method in class: how?)

2006-06-27 Thread Brian Blais
Thanks for all who replied to this question about replacing a method. I feel a little sheepish for not having caught that I have to replace it in the class, not the instance, but I have found a very similar problem trying to replace a method using a function defined in pyrex. I post all of

Modelica

2006-06-27 Thread Srijit Kumar Bhadra
I am looking for possible options to interface Modelica (http://www.modelica.org/) with Python (scipy and numpy). Any suggestions? Best Regards, Srijit -- http://mail.python.org/mailman/listinfo/python-list

RE: SWIG problems with gcc and Cygwin?

2006-06-27 Thread Michael Yanowitz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steve Holden Sent: Tuesday, June 27, 2006 2:55 AM To: python-list@python.org Subject: Re: SWIG problems with gcc and Cygwin? Michael Yanowitz wrote: > No response yet. The SWIG test works fine in Linux no pro

Tkinter - Button Overrelief

2006-06-27 Thread Fuzzyman
Hello all, I have some Tkinter buttons that display images. I would like to change these to 'active' images when the mouse is over the button. I see that the button widget can take an 'overrelief' argument in the constructor. What values can this take ? Also - can anyone provide an example of us

Re: pyrex functions to replace a method (Re: replace a method in class: how?)

2006-06-27 Thread Bruno Desthuilliers
Brian Blais wrote: > Thanks for all who replied to this question about replacing a method. I > feel a little sheepish for not having caught that I have to replace it > in the class, not the instance, But you *can* replace it on a per-instance basis. It's easy, perfectly legal, and can be very co

Re: How do you use this list ?

2006-06-27 Thread Claudio Grondi
Bo Yang wrote: > Hi everyone , > I have join this list for about 4 months , and everyday I receive > hundreds of > mails . There is no means to read all of them , so I just read something > interesting > for me . But if so , there are too much mails pile up in my inbox , I > want to ask > how do yo

Re: Python is fun (useless social thread) ;-)

2006-06-27 Thread Bruno Desthuilliers
BartlebyScrivener wrote: >>You know what are dicts, right ? That is, containers with keyword-access >>to values ? Then you probably have dicts with a known, defined >>structure, and functions working on it. What classes (and hence 00) >>gives you is a way to associate these functions with the dicts

how to do -vv for very verbose?

2006-06-27 Thread Hari Sekhon
I'm using optparse.Optionparser to take switches for a script I'm writing, but I can't see how to give it -vv for very verbose. the option for -v is simply set to True by the option parser if present, whereas I really want a numeric value, 1 if there is -v and 2 if there is -vv. Any ideas on h

Re: classes and interfaces

2006-06-27 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi > i come from a non OO environment. now i am learning about classes. can > i ask, in JAva, there are things like interface. eg > public interface someinterface { >public somemethod (); > >... > } > > In python , how to

Re: style question

2006-06-27 Thread Hari Sekhon
Claudio Grondi wrote: > Hari Sekhon wrote: >> On 26/06/06, *Claudio Grondi* <[EMAIL PROTECTED] >> > wrote: >> >> Scott David Daniels wrote: >> > Claudio Grondi wrote: >> > <<>> >> > >> >> When necessary to skip first line _and_ indentation: >>

Re: how to do -vv for very verbose?

2006-06-27 Thread Fredrik Lundh
Hari Sekhon wrote: > I'm using optparse.Optionparser to take switches for a script I'm > writing, but I can't see how to give it -vv for very verbose. > > the option for -v is simply set to True by the option parser if present, > whereas I really want a numeric value, 1 if there is -v and 2 if the

Re: how to do -vv for very verbose?

2006-06-27 Thread Hari Sekhon
Fredrik Lundh wrote: Hari Sekhon wrote: I'm using optparse.Optionparser to take switches for a script I'm writing, but I can't see how to give it -vv for very verbose. the option for -v is simply set to True by the option parser if present, whereas I really want a numeric value,

Re: classes and interfaces

2006-06-27 Thread Paul McGuire
"Paul McGuire" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Lastly, you should look into > ... this blog post: http://dirtsimple.org/2004/12/python-is-not-java.html, and its partner http://dirtsimple.org/2004/12/python-is-not-java.html. Unfortunately, many who ask "How do I im

Re-loading updated modules

2006-06-27 Thread fileexit
Hi, Shouldn't python recompile a module if there is a later version of the code (.py file)? While i am debuging, i always have to exit python and delete the pyc before every run, then start it again and import the modules. It seems that this is the only way for it to recompile the new code. What

"no module named win32api" using PyWin32-208

2006-06-27 Thread Mike
Hi. I have Python 2.4 installed on my local machine in c:\Python24. I have also downloaded the python for windows extensions installer pywin32-208.win32-py2.4.exe and installed this to C:\Python24\Lib\site-packages Trying to run a python script through a C# console app is causing me problems: the

Re: How do you use this list ?

2006-06-27 Thread Michele Simionato
Bo Yang wrote: > Hi everyone , > I have join this list for about 4 months , and everyday I receive > hundreds of > mails . There is no means to read all of them , so I just read something > interesting > for me . But if so , there are too much mails pile up in my inbox , I > want to ask > how do yo

Re: Having problems with strings in HTML

2006-06-27 Thread Sion Arrowsmith
Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > Kiana Toufighi <[EMAIL PROTECTED]> wrote: > >>print ''' >>>href="http://bbc.botany.utoronto.ca/ntools/cgi-bin/ntools_treeview_word.cgi?inp >>ut=&max=2&values_off=no&remove_bracket=no&show_line_nr=yes&show_link_out=yes >> [ ... ] ">Graphi

Re: Re-loading updated modules

2006-06-27 Thread Pierre Quentel
Instead of exiting the interpreter, you can use reload() : see the section "Built-in functions" in the library reference "reload( module) Reload a previously imported module. The argument must be a module object, so it must have been successfully imported before. This is useful if you have edited

Re: Re-loading updated modules

2006-06-27 Thread Fredrik Lundh
"fileexit" <[EMAIL PROTECTED]> wrote: > Shouldn't python recompile a module if there is a later version of the > code (.py file)? it does, when the module is first loaded. > While i am debuging, i always have to exit python and > delete the pyc before every run deleting the PYC shouldn't be nec

Re: Re-loading updated modules

2006-06-27 Thread Paul McGuire
"fileexit" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Shouldn't python recompile a module if there is a later version of the > code (.py file)? While i am debuging, i always have to exit python and > delete the pyc before every run, then start it again and import the > modu

using pydoc in an application

2006-06-27 Thread timw.google
Hi all, I'm discovering pydoc, and it seems to me that this is a great way to have online documentation for my application. Are there any examples of using this in some kind of help menu in an application? I've tried to just bind pydoc.gui() to a menu item, but this just brings up the GUI for pyd

Re: Tkinter - Button Overrelief

2006-06-27 Thread Eric Brunel
On Tue, 27 Jun 2006 14:06:05 +0200, Fuzzyman <[EMAIL PROTECTED]> wrote: > Hello all, > > I have some Tkinter buttons that display images. I would like to change > these to 'active' images when the mouse is over the button. > > I see that the button widget can take an 'overrelief' argument in the >

Re: Having problems with strings in HTML

2006-06-27 Thread Fredrik Lundh
Sion Arrowsmith wrote: >>By the way, you _do_ realize that your "&" characters should be escaped >>as "&", don't you? > > No they shouldn't. They part of the url, which is (IIRC) a CDATA > attribute of the A element, not PCDATA. Yes they should. CDATA sections can contain character entities; it'

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread David Hopwood
Marshall wrote: > The real question is, are there some programs that we > can't write *at all* in a statically typed language, because > they'll *never* be typable? In a statically typed language that has a "dynamic" type, all dynamically typed programs are straightforwardly expressible. In a sta

Re: Having problems with strings in HTML

2006-06-27 Thread Richard Brodie
"Sion Arrowsmith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >>By the way, you _do_ realize that your "&" characters should be escaped >>as "&", don't you? > > No they shouldn't. They part of the url, which is (IIRC) a CDATA > attribute of the A element, not PCDATA. It is CDATA

Re: How do you use this list ?

2006-06-27 Thread Marius Ursache
Bo Yang wrote: > Hi everyone , > I have join this list for about 4 months , and everyday I receive > hundreds of > mails . There is no means to read all of them , so I just read something > interesting > for me . But if so , there are too much mails pile up in my inbox , I > want to ask > how do y

Re: How do you use this list ?

2006-06-27 Thread Grant Edwards
On 2006-06-27, Bo Yang <[EMAIL PROTECTED]> wrote: > I have join this list for about 4 months , and everyday I > receive hundreds of mails . There is no means to read all of > them , so I just read something interesting for me . But if so > , there are too much mails pile up in my inbox , I want to

Unbound Local error? How?

2006-06-27 Thread Hari Sekhon
I've got some code as follows: import re re_regexname = re.compile('abc') . . various function defs . def func1(): ... func2() ... def func2(): if re_regexname.match('abc'): if __name__ == '__main__': func1() but this returns the Traceback: UnboundLoc

Re: Unbound Local error? How?

2006-06-27 Thread Diez B. Roggisch
Hari Sekhon wrote: > import re > re_regexname = re.compile('abc') > > . > . various function defs > . > > def func1(): > ... > func2() > ... > > def func2(): > if re_regexname.match('abc'): > > > if __name__ == '__main__': > func1() The above clearly is not what you have. See th

Re: Unbound Local error? How?

2006-06-27 Thread Hari Sekhon
Diez B. Roggisch wrote: Hari Sekhon wrote: import re re_regexname = re.compile('abc') . . various function defs . def func1(): ... func2() ... def func2(): if re_regexname.match('abc'): if __name__ == '__main__': func1() The above clearly is not what y

Re: How do you use this list?

2006-06-27 Thread Klaus Alexander Seistrup
Grant Edwards wrote: > Find an NNTP server and read it as a newsgroup. Or Google Groups: http://groups.google.com/group/comp.lang.python Cheers, -- Klaus Alexander Seistrup Dyssegård, Denmark http://surdej.dk/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Queue.Queue.queue.clear() thread-safe?

2006-06-27 Thread Russell Warren
Thanks guys. This has helped decipher a bit of the Queue mechanics for me. Regarding my initial clear method hopes... to be safe, I've re-organized some things to make this a little easier for me. I will still need to clear out junk from the Queue, but I've switched it so that least I can stop t

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Marshall
Ketil Malde wrote: > "Marshall" <[EMAIL PROTECTED]> writes: > > > There are also what I call "packaging" issues, such as > > being able to run partly-wrong programs on purpose so > > that one would have the opportunity to do runtime analysis > > without having to, say, implement parts of some inter

Re: How do you use this list?

2006-06-27 Thread Grant Edwards
On 2006-06-27, Klaus Alexander Seistrup <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > >> Find an NNTP server and read it as a newsgroup. > > Or Google Groups: http://groups.google.com/group/comp.lang.python I did heard a rumor that they finally fixed the "follow-up" function that had been

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Marshall
David Hopwood wrote: > Marshall wrote: > > The real question is, are there some programs that we > > can't write *at all* in a statically typed language, because > > they'll *never* be typable? > > In a statically typed language that has a "dynamic" type, all > dynamically typed programs are straig

Re: Having problems with strings in HTML

2006-06-27 Thread Walter Dörwald
Richard Brodie wrote: > "Sion Arrowsmith" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>> By the way, you _do_ realize that your "&" characters should be escaped >>> as "&", don't you? >> No they shouldn't. They part of the url, which is (IIRC) a CDATA >> attribute of the A el

Re: Having problems with strings in HTML

2006-06-27 Thread Richie Hindle
[Kiana] > http://bbc.botany.utoronto.ca/[...]?input=&max=2[...]";> [Lawrence] > By the way, you _do_ realize that your "&" characters should be escaped > as "&", don't you? [Sion] > No they shouldn't. They part of the url, which is (IIRC) a CDATA > attribute of the A element, not PCDATA. The W

[W2k, wxPython 2.6.1.0] - MDISashDemo bug?

2006-06-27 Thread w.p.
When i run MDISashDemo and maximize main frame, minimize and maximize again - LayoutMDIFrame in OnSize dont work more... Why? I need this feature for main MDI frame with toolbar and statusbar with panels&sizers&bitmapbuttons :) Windows 2000, wxPython 2.6.1.0 w.p. -- -- http://mail.python.or

Re: Unbound Local error? How?

2006-06-27 Thread Bruno Desthuilliers
Hari Sekhon wrote: > I've got some code as follows: > > import re > re_regexname = re.compile('abc') > > . > . various function defs > . > > def func1(): >... >func2() >... > > def func2(): >if re_regexname.match('abc'): > > > if __name__ == '__main__': >

Re: Unbound Local error? How?

2006-06-27 Thread Hari Sekhon
Bruno Desthuilliers wrote: Hari Sekhon wrote: I've got some code as follows: import re re_regexname = re.compile('abc') . . various function defs . def func1(): ... func2() ... def func2(): if re_regexname.match('abc'): if __name__ == '__main__':

Re: [Stackless] Suggestion for a Solution ? Re: Blocking Problem with Stackless Python and Twisted

2006-06-27 Thread Patrick M. Nielsen
I had a similar problem, and Radix's threadless Twisted snippet proved to be a very viable solutionHave a look at: http://twistedmatrix.com/trac/browser/sandbox/radix/threadless.py?rev=17407 On 6/26/06, Andrew Francis <[EMAIL PROTECTED]> wrote: Hello Jas, Bob, et al:> Twisted isn't designed for Sta

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread George Neuner
On Mon, 26 Jun 2006 13:02:33 -0600, Chris Smith <[EMAIL PROTECTED]> wrote: >George Neuner wrote: > >> I worked in signal and image processing for many years and those are >> places where narrowing conversions are used all the time - in the form >> of floating point calculations reduced to integer

How to disable tk inclusion in py build

2006-06-27 Thread venkatbo
Hi folks, I'd like to disable the inclusion of tk graphics lib in my py build. Looked around but couldn't find a clear answer. Which one of the following would I need to use in the configure step: --disable-tkbuild --without-tk Thanks, /venkat -- http://mail.python.org/mailman/listinfo/pyth

Re: What technologies should I use for my application manager?

2006-06-27 Thread Adam Jones
MrBlueSky wrote: > Thanks for the advice, Adam! > > Turbogears sounds like it does everything I want and looks like a > great... except you've made me nervous with your comment on the > instability of the Oracle API! It is not impossible to find a stable ORM for access to Oracle, just slightly mo

Re: Python is fun (useless social thread) ;-)

2006-06-27 Thread John Salerno
Bruno Desthuilliers wrote: >> Ever seen this from Fuzzyman? It explicitly uses the dict comparison. >> >> http://www.voidspace.org.uk/python/articles/OOP.shtml#introduction > > Nope - and the site seems to be down actually. But thanks for the > pointer anyway. It works for me, at least now. --

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Duane Rettig
Ketil Malde <[EMAIL PROTECTED]> writes: > "Marshall" <[EMAIL PROTECTED]> writes: > >> There are also what I call "packaging" issues, such as >> being able to run partly-wrong programs on purpose so >> that one would have the opportunity to do runtime analysis >> without having to, say, implement p

file writing question

2006-06-27 Thread diffuser78
Hi, I am a newbie so not very confident in file handling. I want to write to a file atrributes in this fashion #NameOfComputer:MAC_Address:IP_Address --computer_details.txt begins- IG1:8f00142a123c:192.168.2.101 IG2:8f00142a124d:192.168.2.102 IG3:8f0014

Re: [W2k, wxPython 2.6.1.0] - MDISashDemo bug?

2006-06-27 Thread w.p.
w.p. wrote: > When i run MDISashDemo and maximize main frame, minimize and maximize > again - LayoutMDIFrame in OnSize dont work more... > Why? > > I need this feature for main MDI frame with toolbar and statusbar with > panels&sizers&bitmapbuttons :) > > Windows 2000, wxPython 2.6.1.0 > > w.p

Re: Having problems with strings in HTML

2006-06-27 Thread Sion Arrowsmith
Richard Brodie <[EMAIL PROTECTED]> wrote: >"Sion Arrowsmith" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] > [ ... ] >>>By the way, you _do_ realize that your "&" characters should be escaped >>>as "&", don't you? >> No they shouldn't. They part of the url, which is (IIRC) a CDATA >

Re: languages with full unicode support

2006-06-27 Thread Tin Gherdanarra
Oliver Bandel wrote: > > こんいちわ Xah-Lee san ;-) Uhm, I'd guess that Xah is Chinese. Be careful with such things in real life; Koreans might beat you up for this. Stay alive! > > > Xah Lee wrote: > >> Languages with Full Unicode Support >> >> As far as i know, Java and JavaScript are languages

Re: Inconsistent float behaviour on "inf" - current state?

2006-06-27 Thread Scott David Daniels
Peter Knörrich wrote: > why "float('inf')" isn't supported everywhere, and I > understand the underlying problem: > libc simply isn't that good - never mind standard - with regard to floats. I think you believe there is an underlying model of floating point numbers that all machines share. T

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Greg Buchholz
Chris F Clark wrote: > Very impressive. It looks right to me and simple enough to > understand. I must find the time to learn a modern FP language. Can > you write a fold for this that prints the data as a binary tree of > triples? I have to believe it isn't that hard {- Refactoring this a

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Joe Marshall
Marshall wrote: > > Yes, an important question (IMHO the *more* important question > than the terminology) is what *programs* do we give up if we > wish to use static typing? I have never been able to pin this > one down at all. It would depend on the type system, naturally. It isn't clear to me

Re: file writing question

2006-06-27 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: > Hi, I am a newbie so not very confident in file handling. > > I want to write to a file atrributes in this fashion > #NameOfComputer:MAC_Address:IP_Address > > --computer_details.txt > begins- > IG1:8f00142a123c:192.168.2.101

Re: new python icons for windows

2006-06-27 Thread chowychow
Istvan Albert wrote: > [EMAIL PROTECTED] wrote: > > > > For example it resembles the icon for text files. > > > > This is intentional: to make it obvious that .py files are the > > readable, editable scripts, contrasting with .pyc's binary gunk - > > I think this is a mistake, it does not seem obi

Re: Unbound Local error? How?

2006-06-27 Thread Steve Holden
Hari Sekhon wrote: > Bruno Desthuilliers wrote: > >>Hari Sekhon wrote: >> >> >>>I've got some code as follows: >>> >>>import re >>>re_regexname = re.compile('abc') >>> >>>. >>>. various function defs >>>. >>> >>>def func1(): >>> ... >>> func2() >>> ... >>> >>>def func2(): >>>

Re: [W2k, wxPython 2.6.1.0] - MDISashDemo bug?

2006-06-27 Thread Steve Holden
w.p. wrote: > w.p. wrote: > >>When i run MDISashDemo and maximize main frame, minimize and maximize >>again - LayoutMDIFrame in OnSize dont work more... >>Why? >> >>I need this feature for main MDI frame with toolbar and statusbar with >>panels&sizers&bitmapbuttons :) >> >>Windows 2000, wxPython

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Diez B. Roggisch
>> The C++ type system is Turing complete, although in practical terms >> it limits how much processing power it will spend on types at >> compile time. > > I think templates only have to expand to seven levels, so you are > severely limited here. You can adjust the iteration-depth. However, as t

Re: Python database access

2006-06-27 Thread Damjan
> The odbc module is part of the Python Standard Library. Since when? -- damjan -- http://mail.python.org/mailman/listinfo/python-list

Exchanging data with a C program using shared memory (sysV IPC)

2006-06-27 Thread Al
Hello, I want my python application to communicate with an legacy C program which read/write data in a shared memory (Unix Sys V IPC). It seems that there are no official shm nor sysV ipc module, and that non-official ones are dead. I can't modify the C code to change its communication method. H

Re: file writing question

2006-06-27 Thread diffuser78
Thanks BrunoThis helps me. Bruno Desthuilliers wrote: > [EMAIL PROTECTED] wrote: > > Hi, I am a newbie so not very confident in file handling. > > > > I want to write to a file atrributes in this fashion > > #NameOfComputer:MAC_Address:IP_Address > > > > --computer_details.txt > > begins--

Re: [W2k, wxPython 2.6.1.0] - MDISashDemo bug?

2006-06-27 Thread w.p.
Steve Holden wrote: >> > Well done! Do you know how to feed this information on to the developers > (probably Robin Dunn)? All such changes are valuable. > Hmm... i dont know. wxpython.org -> "submit a patch" or "Report a bug" ? w.p. -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread QCD Apprentice
Joe Marshall wrote: > Marshall wrote: >> Yes, an important question (IMHO the *more* important question >> than the terminology) is what *programs* do we give up if we >> wish to use static typing? I have never been able to pin this >> one down at all. > > It would depend on the type system, natur

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread David Hopwood
Marshall wrote: > David Hopwood wrote: >>Marshall wrote: >> >>>The real question is, are there some programs that we >>>can't write *at all* in a statically typed language, because >>>they'll *never* be typable? >> >>In a statically typed language that has a "dynamic" type, all >>dynamically typed

Re: How to disable tk inclusion in py build

2006-06-27 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I'd like to disable the inclusion of tk graphics lib in my py build. > Looked around but couldn't find a clear answer. Which one of > the following would I need to use in the configure step: > --disable-tkbuild > --without-tk since _tkinter.so is only built if it's

Re: Extracting 3-byte integers

2006-06-27 Thread Bob Greschke
>I have some binary data read from a file that is arranged like > > <3-byte int> <3-byte int> <3-byte int> etc. > > The "ints" are big-endian and there are 169 of them. Is there any clever > way to convert these to regular Python ints other than (struct) unpack'ing > them one at a time and doi

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Chris Smith
George Neuner wrote: > We're talking at cross purposes. I'm questioning whether a strong > type system can be completely static as some people here seem to > think. I maintain that it is simply not possible to make compile time > guarantees about *all* runtime behavior and that, in particular, >

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Chris Smith
Dr.Ruud <[EMAIL PROTECTED]> wrote: > > So it seems to me that we have this ideal point at which it is > > possible to write all correct or interesting programs, and impossible > > to write buggy programs. > > I think that is a misconception. Even at the idealest point it will be > possible (and ea

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Marshall
David Hopwood wrote: > Marshall wrote: > > David Hopwood wrote: > >>Marshall wrote: > >> > >>>The real question is, are there some programs that we > >>>can't write *at all* in a statically typed language, because > >>>they'll *never* be typable? > >> > >>In a statically typed language that has a

Questions about OSS projects.

2006-06-27 Thread bio_enthusiast
I was wondering how to go about starting an open source project for doing routine biological problems? There is a plethora of scripts and a fairly large biopython project to back up anyone who tried, these however cater to the bioinformatics community and it loses the vast majority of the wet-lab s

Re: using pydoc in an application

2006-06-27 Thread timw.google
I went and looked at the pydoc.py code, and it looks like it isn't really meant to be used from inside another python program. After some tinkering arond with my code, I ended up with this: (Google is messing up my indentation) (in my __init__ function) ... menuBar.addmenuitem('Help', 'co

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Marshall
Joe Marshall wrote: > Marshall wrote: > > > > Yes, an important question (IMHO the *more* important question > > than the terminology) is what *programs* do we give up if we > > wish to use static typing? I have never been able to pin this > > one down at all. > > It would depend on the type system

Re: Questions about OSS projects.

2006-06-27 Thread Grant Edwards
On 2006-06-27, bio_enthusiast <[EMAIL PROTECTED]> wrote: > I was wondering how to go about starting an open source > project for doing routine biological problems? Generally you either start writing code to fulfill a need of yours, or you pay somebody else to write it for you. > There is a pleth

Problem with sets and Unicode strings

2006-06-27 Thread Dennis Benzinger
Hi! The following program in an UTF-8 encoded file: # -*- coding: UTF-8 -*- FIELDS = ("Fächer", ) FROZEN_FIELDS = frozenset(FIELDS) FIELDS_SET = set(FIELDS) print u"Fächer" in FROZEN_FIELDS print u"Fächer" in FIELDS_SET print u"Fächer" in FIELDS gives this output False False Traceback (mos

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread David Hopwood
Marshall wrote: > David Hopwood wrote: >>Marshall wrote: >>>David Hopwood wrote: Marshall wrote: >The real question is, are there some programs that we >can't write *at all* in a statically typed language, because >they'll *never* be typable? In a statically typed lang

  1   2   >