Re: MinGW and Python

2006-04-24 Thread Robert Kern
Brian Elmegaard wrote: > Robert Kern <[EMAIL PROTECTED]> writes: > >>the gcc project is to provide a portable compiler, not one that >>generates the best code for any given platform. And in that goal, it >>succeeds remarkably well. > > Will a python program be slower on the same machine running w

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Robert Kern
Martin v. Löwis wrote: > Robert Kern wrote: > Oh, that's right, you need an import library for Python24.dll . >>> >>>That shouldn't be a problem: that library is included with Python. >> >>For mingw, too? I.e. a .a not a .lib? > > Right. Woohoo! -- Robert Kern [EMAIL PROTECTED] "I have co

Re: MinGW and Python

2006-04-24 Thread Martin v. Löwis
Brian Elmegaard wrote: > What I don't understand is that it is not possible to distribute a > python compiled with gcc for windows. The main reason I saw in this > thread is that python uses mfc. So python requires api access, I > guess. You misunderstood. Python does not use MFC. PythonWin (for

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Martin v. Löwis
Robert Kern wrote: >>> Oh, that's right, you need an import library for Python24.dll . >> That shouldn't be a problem: that library is included with Python. > > For mingw, too? I.e. a .a not a .lib? Right. Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: The whitespaceless frontend

2006-04-24 Thread Stelios Xanthakis
Hi, [EMAIL PROTECTED] wrote: > but maybe instead of the global.name something to refer to the upper > namespace (that can be the global one or the namespace of the function > that contains this one) can be more general: > upper.x = 1 > upper.upper.x = 1 > Well, people have been trying to come u

Re: MinGW and Python

2006-04-24 Thread Brian Elmegaard
Robert Kern <[EMAIL PROTECTED]> writes: > the gcc project is to provide a portable compiler, not one that > generates the best code for any given platform. And in that goal, it > succeeds remarkably well. Will a python program be slower on the same machine running windows compared to linux? What

Re: PyLint results?

2006-04-24 Thread Alexandre Fayolle
Others have answered most of your questions, I won't repeat the answers here, but only join the choir to stress that pylint needs tuning to your coding style. An obvious case is camelCaseMethodNames versus underscored_method_names, but there are also a lot of issues. The default pylint settings ma

Re: Instruction at "0x00FC3D70" use memory address "0x00000000". Can't be "read".

2006-04-24 Thread Jay Parlar
On Apr 24, 2006, at 5:38 PM, Neil Adams wrote: > How do Ifix memory  message Ox033fc512 at Ox can't be read > You're going to have to provide a LOT more information if you expect anyone here to help you with that. What program caused that? For all we know, notepad.exe could have crashe

Re: Counting elements in a list wildcard

2006-04-24 Thread Edward Elliott
Dave Hughes wrote: > Another algorithm that might interest isn't based on "sounds-like" but > instead computes the number of transforms necessary to get from one > word to another: the Levenshtein distance. A C based implementation > (with Python interface) is available: I don't know what algorith

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Andrew Trevorrow
[EMAIL PROTECTED] (Alex Martelli) wrote: > Andrew Trevorrow <[EMAIL PROTECTED]> wrote: > > Or maybe someone is willing to make their VCToolkitSetup.exe available > > temporarily... > > I suggest any such offers be made privately, since I'm pretty sure > they'd be illegal (at least in the US, dunn

Re: Probability Problem

2006-04-24 Thread Tim Peters
[Alex Martelli] >> ... >> You can compute the requested answer exactly with no random number >> generation whatsoever: compute the probability of each result from >> 0 to 1000, then sum the probabilities of entries that are exactly 390 >> apart. [Elliot Temple] > That was the plan, but how do I ge

Re: Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread gene tani
Just call me James wrote: > Hi, > > Coming away from the luxury of the delphi IDE has been something of a > shock. > > As a consequence I've become aware that maybe I need to spend some > money on a python IDE. You can google for lots of IDE reviews, here's a start http://www.awaretek.com/tutori

Re: Probability Problem

2006-04-24 Thread Alex Martelli
Elliot Temple <[EMAIL PROTECTED]> wrote: > On Apr 24, 2006, at 8:24 PM, Alex Martelli wrote: > > > Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > > > >> In article <[EMAIL PROTECTED]>, > >> Elliot Temple <[EMAIL PROTECTED]> wrote: > >> > >>> Problem: Randomly generate 10 integers from 0-100 in

Re: Probability Problem

2006-04-24 Thread Elliot Temple
On Apr 24, 2006, at 8:24 PM, Alex Martelli wrote: > Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > >> In article <[EMAIL PROTECTED]>, >> Elliot Temple <[EMAIL PROTECTED]> wrote: >> >>> Problem: Randomly generate 10 integers from 0-100 inclusive, and sum >>> them. Do that twice. What is the pro

python application ideas.

2006-04-24 Thread Anthony Greene
Hello, I know this isn't really a python centric question, but I'm seeking help from my fellow python programmers. I've been learning python for the past year and a half, and I still haven't written anything substantial nor have I found an existing project which blows my hair back. Python is my fir

Re: Probability Problem

2006-04-24 Thread Alex Martelli
Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Elliot Temple <[EMAIL PROTECTED]> wrote: > > >Problem: Randomly generate 10 integers from 0-100 inclusive, and sum > >them. Do that twice. What is the probability the two sums are 390 apart? > > I think the sum w

Re: Simple DAV server?

2006-04-24 Thread Kyler Laird
robert <[EMAIL PROTECTED]> writes: >KL wrote, he added some more capabs. I'd need MOVE and saw PUT has bugs >to also not respect URL-quoted folders/elements (with spaces, utf-8 etc.) I've got MOVE working and I took care of the percent-escaped filenames but UTF-8 stuff is still giving me problem

Re: need a thread to keep a socket connection alive?

2006-04-24 Thread nephish
ok, every message starts with "ENX" and ends with "STX" in between are several parts. the first is the message length sent as an unsigned long int (according to the docs) this is four bytes. The next is the message type - another 4 bytes that corrospond to a certain chart. for example, the login is

Re: Counting elements in a list wildcard

2006-04-24 Thread Dave Hughes
hawkesed wrote: > If I have a list, say of names. And I want to count all the people > named, say, Susie, but I don't care exactly how they spell it (ie, > Susy, Susi, Susie all work.) how would I do this? Set up a regular > expression inside the count? Is there a wildcard variable I can use? > He

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Alex Martelli
Andrew Trevorrow <[EMAIL PROTECTED]> wrote: > Ron Adam wrote: > > > > Try tinyurl http://tinyurl.com/gv8wr please. > > > > I still get the following with the tinyurl link: > > > > ~~~ > > The download you requested is unavailable. If you continue to see this > > message when trying to access th

Re: Probability Problem

2006-04-24 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, Elliot Temple <[EMAIL PROTECTED]> wrote: >Problem: Randomly generate 10 integers from 0-100 inclusive, and sum >them. Do that twice. What is the probability the two sums are 390 apart? I think the sum would come close to a normal distribution. -- http://mail.py

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-24 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, "Mike Orr" <[EMAIL PROTECTED]> wrote: >Lawrence D'Oliveiro wrote: >> "ToddLMorgan" <[EMAIL PROTECTED]> wrote: >> >Are there python specific equivalents to the common Patterns, >> >Anti-Patterns and Refactoring books that are so prevalent as >> >reccomended reading

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Alex Martelli
Edward Elliott <[EMAIL PROTECTED]> wrote: > Alex Martelli wrote: > > the Windows version, despite the slight > > overhead of running under Parallels' virtualization, is an impressive > > 12%+ _faster_ than the "native" MacOSX Python 2.4.3 (I'm not quite sure > > about how good Parallels' virtualiz

Probability Problem

2006-04-24 Thread Elliot Temple
Problem: Randomly generate 10 integers from 0-100 inclusive, and sum them. Do that twice. What is the probability the two sums are 390 apart? I have code to do part of it (below), and I know how to write code to do the rest. The part I have calculates the number of ways the dice can come out

Re: Multiple hierarchie and method overloading

2006-04-24 Thread Ben Cartwright
Philippe Martin wrote: > I have something like this: > > Class A: > def A_Func(self, p_param): > . > Class B: > def A_Func(self): > . > > Class C (A,B): > A.__init__(self) > B.__init__(self) > > . > > self.A_Func() #HERE I GET AN

Re: Hooking things up in GUI application

2006-04-24 Thread James Stroud
Ryan Ginstrom wrote: > Apropos recent threads about GUI editors, coming from a Win32/WTL C++ > background, I actually like the idea of being able to (easily) create GUIs > programmatically. > > But I still see a lot of the same tedium: hooking up events to handlers, and > getting data into and out

Re: Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread Luis M. González
I suggest checking out PythonCard. It's a GUI builder based on wxPython and it's very easy to use. It offers the basic functionality of Delphi or VB, letting you drag & drop widgets on a form. This visual way of dealing with widgets authomatically creates a file with the form and its controls descr

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Andrew Trevorrow
Ron Adam wrote: > > Try tinyurl http://tinyurl.com/gv8wr please. > > I still get the following with the tinyurl link: > > ~~~ > The download you requested is unavailable. If you continue to see this > message when trying to access this download, go to the "Search for a > Download" area on the

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Alex Martelli
Ron Adam <[EMAIL PROTECTED]> wrote: ... > I still get the following with the tinyurl link: > > ~~~ > The download you requested is unavailable. If you continue to see this > message when trying to access this download, go to the "Search for a > Download" area on the Download Center home page.

Re: Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread Dave Hughes
Just call me James wrote: > Hi, > > Coming away from the luxury of the delphi IDE has been something of a > shock. > > As a consequence I've become aware that maybe I need to spend some > money on a python IDE. > > As a beginner I reckon integrated debugging would be helpful. > > Does anyone h

Re: Counting elements in a list wildcard

2006-04-24 Thread Ben Finney
"Ryan Ginstrom" <[EMAIL PROTECTED]> writes: > If there are specific spellings you want to allow, you could just > create a list of them and see if your Suzy is in there: > > >>> possible_suzys = [ 'Susy', 'Susi', 'Susie' ] > >>> my_strings = ['Bob', 'Sally', 'Susi', 'Dick', 'Jane' ] > >>> for lin

Re: Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread Fabio Zadrozny
Hi James,Take a look at: http://wiki.python.org/moin/IntegratedDevelopmentEnvironmentsCheers,Fabiop.s. I'd reccomend Pydev + Pydev Extensions -- Has debugger, code-analysis, refactoring, code-completion, and all the other niceties you'd expect from an IDE. On 24 Apr 2006 17:34:12 -0700, Just call

Re: Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread Andre Burgaud
Hi James,There are many different IDE available for Python, but if you are coming from Delphi, you may find interesting to try PyScripter available at http://mmm-experts.com/Products.aspx?ProductID=4 . For a list of availale Python IDE and editors, you cmay also check this page: http://wiki.python.

Instruction at "0x00FC3D70" use memory address "0x00000000". Can't be "read".

2006-04-24 Thread Neil Adams
How do Ifix memory  message Ox033fc512 at Ox can't be read  -- http://mail.python.org/mailman/listinfo/python-list

Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread Just call me James
Hi, Coming away from the luxury of the delphi IDE has been something of a shock. As a consequence I've become aware that maybe I need to spend some money on a python IDE. As a beginner I reckon integrated debugging would be helpful. Does anyone have any advice or suggestions? So far I've glance

Multiple hierarchie and method overloading

2006-04-24 Thread Philippe Martin
Hi, I have something like this: Class A: def A_Func(self, p_param): . Class B: def A_Func(self): . Class C (A,B): A.__init__(self) B.__init__(self) . self.A_Func() #HERE I GET AN EXCEPTION "... takes at least 2 arguments

RE: Counting elements in a list wildcard

2006-04-24 Thread Ryan Ginstrom
> Behalf Of hawkesed > If I have a list, say of names. And I want to count all the people > named, say, Susie, but I don't care exactly how they spell it (ie, > Susy, Susi, Susie all work.) how would I do this? Set up a regular > expression inside the count? Is there a wildcard variable I can use

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Robert Kern
Martin v. Löwis wrote: > Robert Kern wrote: > >>Oh, that's right, you need an import library for Python24.dll . > > That shouldn't be a problem: that library is included with Python. For mingw, too? I.e. a .a not a .lib? -- Robert Kern [EMAIL PROTECTED] "I have come to believe that the whole

Re: Update Demo/ and Tools/ directories

2006-04-24 Thread Martin v. Löwis
Dennis Benzinger wrote: > How exactly should the directories be updated? Should it just be made > sure that the demos and examples are working or should they be updated > to use the newest applicable Python features (e.g. the new any/all > functions)? That's all your choice. The Demo directory sho

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Martin v. Löwis
Robert Kern wrote: > Oh, that's right, you need an import library for Python24.dll . That shouldn't be a problem: that library is included with Python. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Hooking things up in GUI application

2006-04-24 Thread Ryan Ginstrom
Apropos recent threads about GUI editors, coming from a Win32/WTL C++ background, I actually like the idea of being able to (easily) create GUIs programmatically. But I still see a lot of the same tedium: hooking up events to handlers, and getting data into and out of dialogs. In C++, this is gene

Counting elements in a list wildcard

2006-04-24 Thread hawkesed
If I have a list, say of names. And I want to count all the people named, say, Susie, but I don't care exactly how they spell it (ie, Susy, Susi, Susie all work.) how would I do this? Set up a regular expression inside the count? Is there a wildcard variable I can use? Here is the code for the non-

Re: RESOLVED Re: PYTHONPATH

2006-04-24 Thread Edward Elliott
Brian van den Broek wrote: > It > didn't work here until I used ':' rather than ';' as the path > element separator. Sorry, I missed the semi-colon before. Yes, unix uses colon to separate path elements. Glad you figured it out and got it working. FYI you can type 'man ' at the shell to get inf

catching doctype using xml.sax -- please

2006-04-24 Thread Sakcee
Hi I would really appreciate if soemone can point me to the direction. how can I use xml.sax to catch doctype entities. there is a xml.sax.DTDHandler , but how should i use it? thanks -- http://mail.python.org/mailman/listinfo/python-list

RESOLVED Re: PYTHONPATH

2006-04-24 Thread Brian van den Broek
Hi all, As a fairly new linux user running ubuntu 5.10 I'd had problems persistently setting my PYTHONPATH environment variable. bruno and Edward got me most of the way (thanks!); I'm posting what worked for future googling. bruno at modulix said unto the world upon 20/04/06 08:38 AM: >>Can

Re: Classic class conversion

2006-04-24 Thread Michael Spencer
Kay Schluehr wrote: > Just reasoning about conversion of classic to new style classes ( > keeping deprecation of ClCl in Py3K in mind ) I wonder if there is a > metaclass that can be used to express the semantics of ClCl in terms of > new style classes? Intuitively I would expect that there is quit

Re: What am I doing wrong here

2006-04-24 Thread Hitesh Joshi
Thank you all for the quick replies. It worked! Truely appriciated. I am python novice and still learning I hope to contribute to this group someday :) Hitesh -- http://mail.python.org/mailman/listinfo/python-list

Re: What am I doing wrong here

2006-04-24 Thread Gary Herron
Hitesh Joshi wrote: >Hi, > >I wanted to pass a popup mesage using windows messagin service to five >PCs. >If I just use following then PC1 gets the popup service message: > >import os >os.system('net send PC1 "Message"') > > >But if I try to create a for loop like this it doesn't work how can

Re: What am I doing wrong here

2006-04-24 Thread Hitesh Joshi
Thank you Robert, It worked!!! Thank you so much -- http://mail.python.org/mailman/listinfo/python-list

Re: What am I doing wrong here

2006-04-24 Thread Bruno Desthuilliers
Hitesh Joshi a écrit : (snip) > But if I try to create a for loop like this it doesn't work how can > I pass computerName var as an argument? > What am I doing wrong here? Thank you in advance > > import os > > Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5'] > for ComputerName in Compu

Re: What am I doing wrong here

2006-04-24 Thread Robert Kern
Hitesh Joshi wrote: > ok here is the deal... I figured out how to pass the variable but now > messages are not popping up on the windows screen if I use this method: > > import os > > Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5'] > for ComputerName in Computerlist: > print ComputerName >

Re: What am I doing wrong here

2006-04-24 Thread Hitesh Joshi
ok here is the deal... I figured out how to pass the variable but now messages are not popping up on the windows screen if I use this method: import os Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5'] for ComputerName in Computerlist: print ComputerName s = "net send %s" % ComputerName

Re: check whether a value is scalar

2006-04-24 Thread Bruno Desthuilliers
Eli a écrit : > Python treats integers as objects, but as I mentioned that I do care > about the value only, and not its object methods. I mean that it's not > possible to share objects among application in different programming > languages, but it's possible to share the scalar values among them.

Re: PYTHONPATH

2006-04-24 Thread Brian van den Broek
Edward Elliott said unto the world upon 23/04/06 07:56 PM: > Brian van den Broek wrote: >>Only somewhat, as if I open a brand new shell: >> >>[EMAIL PROTECTED]:~$ python >> >>> from sys import path >> >>> path[0:3] >>['', '/usr/lib/python24.zip', '/usr/lib/python2.4'] > > > You realize this on

Announce: Construct has moved

2006-04-24 Thread gangesmaster
Construct, the "parsing made fun" library, has moved from it's sourceforge home to wikispaces: http://pyconstruct.wikispaces.com (the sf page redirects there) -tomer -- http://mail.python.org/mailman/listinfo/python-list

Re: Can you create an instance of a subclass with an existing instance of the base class?

2006-04-24 Thread Bruno Desthuilliers
Sandra-24 a écrit : > Lawrence D'Oliveiro wrote: > >>In article <[EMAIL PROTECTED]>, >> "Sandra-24" <[EMAIL PROTECTED]> wrote: >> >> >>>Now that is a clever little trick. I never would have guessed you can >>>assign to __class__, Python always surprises me in it's sheer >>>flexibility. >> >>That's

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-24 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, bruno at modulix <[EMAIL PROTECTED]> wrote: >Lawrence D'Oliveiro wrote: >> In article <[EMAIL PROTECTED]>, >> "ToddLMorgan" <[EMAIL PROTECTED]> wrote: >> >>>I'm looking for the common types of mistakes that say a Java/C# or >>>even C++ developer may commonly make

What am I doing wrong here

2006-04-24 Thread Hitesh Joshi
Hi, I wanted to pass a popup mesage using windows messagin service to five PCs. If I just use following then PC1 gets the popup service message: import os os.system('net send PC1 "Message"') But if I try to create a for loop like this it doesn't work how can I pass computerName var as an a

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-24 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, "gene tani" <[EMAIL PROTECTED]> wrote: >http://www.ferg.org/projects/python_gotchas.html Amazing. Backslashes are listed as not one, but _two_ items on the list. The problem is not with Python at all, it is with the MS-DOS foundations of Windows. When directory

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-24 Thread Mike Orr
Lawrence D'Oliveiro wrote: > "ToddLMorgan" <[EMAIL PROTECTED]> wrote: > >Are there python specific equivalents to the common Patterns, > >Anti-Patterns and Refactoring books that are so prevalent as > >reccomended reading in C++ and Java? > I don't think they exist. Such books are targeted more to

Re: C API - tp_getattro and tp_methods

2006-04-24 Thread [EMAIL PROTECTED]
Ahhh... The the light clicks on in my head. I see what is happening and both of these are great approaches. Many thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: MinGW and Python

2006-04-24 Thread Robert Kern
Brian Elmegaard wrote: > Robert Kern <[EMAIL PROTECTED]> writes: > >>- gcc does not optimize particularly well. > > But well enough for other platforms. Well, it tends to optimize just as poorly for other platforms, too. It's just frequently the only compiler widely available on those platforms.

Re: C API - tp_getattro and tp_methods

2006-04-24 Thread André Malo
* [EMAIL PROTECTED] wrote: >> tp_getattro is like defining __getattribute__, i.e. it gets called on >> every attribute read access. You can use PyObject_GenericGetAttr inside >> the function to find predefined attributes before applying your own >> rules. > > Thanks for the reply. I see and was

Classic class conversion

2006-04-24 Thread Kay Schluehr
Just reasoning about conversion of classic to new style classes ( keeping deprecation of ClCl in Py3K in mind ) I wonder if there is a metaclass that can be used to express the semantics of ClCl in terms of new style classes? Intuitively I would expect that there is quite a lot of Python semantics

Re: Can my python script return a value to the c program executing it?

2006-04-24 Thread vduber6er
That link seemed to do the trick with a little bit of edits. Thanks a lot Philippe! Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: C API - tp_getattro and tp_methods

2006-04-24 Thread [EMAIL PROTECTED]
André Malo wrote: > tp_getattro is like defining __getattribute__, i.e. it gets called on every > attribute read access. You can use PyObject_GenericGetAttr inside the > function to find predefined attributes before applying your own rules. Thanks for the reply. I see and was afraid of that, I

Re: threads and sys.exit()

2006-04-24 Thread robert
robert wrote: > killing hard (SIGKILL etc ) is low level. it should be OS-specific, as > Python should not make itself inconsistent (and os._exit() is that at mid-low level ; better not to say; no finalizations etc.) -robert -- http://mail.python.org/mailman/listinfo/python-list

Re: threads and sys.exit()

2006-04-24 Thread robert
gangesmaster wrote: > that's not a question of design. i just want a child-thread to kill the > process. in a platform agnostic way. > the clean kill is the 'KeyboardInterrupt'. your code finalizations are at least done corretly. thats also raised on SIGINT by default. so thread.interrupt_main

Re: C API - tp_getattro and tp_methods

2006-04-24 Thread André Malo
* [EMAIL PROTECTED] wrote: > I'm using a tp_getattro function to call into a C library and get > values the the lib keeps track of. This works: [...] > Thats great but I also want to expose some instance methods and I'm > having trouble. > > But when I set tp_methods nothing shows up? If I uns

C API - tp_getattro and tp_methods

2006-04-24 Thread [EMAIL PROTECTED]
Hi, I'm using a tp_getattro function to call into a C library and get values the the lib keeps track of. This works: >>> o = obj.Obj() >>> o.var 'value' Thats great but I also want to expose some instance methods and I'm having trouble. But when I set tp_methods nothing shows up? If I unset t

Re: MinGW and Python

2006-04-24 Thread Brian Elmegaard
Robert Kern <[EMAIL PROTECTED]> writes: > - gcc does not optimize particularly well. But well enough for other platforms. -- Brian (remove the sport for mail) http://www.et.web.mek.dtu.dk/Staff/be/be.html http://www.rugbyklubben-speed.dk -- http://mail.python.org/mailman/listinfo/python-list

SOAP server with WSDL?

2006-04-24 Thread Lonnie Princehouse
Does anyone know of a Python SOAP package that will publish a SOAP service /and/ generate a corresponding WSDL file? Looking at SOAPpy and ZSI, it seems that their WSDL support is limited to client-side stuff. -- http://mail.python.org/mailman/listinfo/python-list

Re: threads and sys.exit()

2006-04-24 Thread gangesmaster
that's not a question of design. i just want a child-thread to kill the process. in a platform agnostic way. -- http://mail.python.org/mailman/listinfo/python-list

Re: threads and sys.exit()

2006-04-24 Thread gangesmaster
i can't make the main thread daemonic. the situation is this: * the main thread starts a thread * the new thread does sys.exit() * the new thread dies, but the process remains i can do os.kill(os.getpid()), or TerminateProcess(-1) but that's not what i want -tomer -- http://mail.python.org/mail

Re: MySql -Python question

2006-04-24 Thread Steve Holden
[EMAIL PROTECTED] wrote: > both of your suggestions don't work, that's kind of what I was trying > the whole time > Well it seems firly obvious that your universe is somehow broken. Please send it back to God in a plain wrapper and it will be replaced with a new universe in which all programming

Re: test assignmet problem

2006-04-24 Thread Paolo Pantaleo
2006/4/23, Paul McGuire <[EMAIL PROTECTED]>: > > "Paolo Pantaleo" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > So I tried this > > if(not (attr=global_re.match(line)) ): > break > > it says invalid syntax [on the =] > ... because this syntax is not valid ..

Re: threads and sys.exit()

2006-04-24 Thread robert
gangesmaster wrote: > calling sys.exit() from a thread does nothing... the thread dies, but > the interpreter remains. i guess the interpreter just catches and > ignore the SystemExit exception... > > does anybody know of a way to overcome this limitation? > call thread.interrupt_main() on *

Re: Recommended IDE for creating GUI?

2006-04-24 Thread Jarek Zgoda
Marty Christion napisał(a): > What are some good free or inexpensive (<$50) IDE's for learning how to > program and create GUI's for Python? I'm pretty good with the simple > programming aspect of the language, but I'm a little mystified by the world > of GUI's, and the options available in py

Re: Recommended IDE for creating GUI?

2006-04-24 Thread [EMAIL PROTECTED]
Always nice to recommend myself: http://farpy.holev.com Free WYSIWYG GUI editor for wxPython (and wxRuby!). Have fun... -- http://mail.python.org/mailman/listinfo/python-list

Re: MS VC++ Toolkit 2003, where?

2006-04-24 Thread Ron Adam
Alex Martelli wrote: > "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > >> Alex Martelli wrote: >>> As suggested to me by David Rushby 10 hours ago, >>> >>> http://www.microsoft.com/downloads/details.aspx?FamilyId=272BE09D-40BB-4 >>> 9FD-9CB0-4BFA122FA91B&displaylang=en >>> >>> does work. >> Can you

Re: need a thread to keep a socket connection alive?

2006-04-24 Thread Rene Pijlman
[EMAIL PROTECTED]: >i have discovered that the server will send a request for the heartbeat >ping if its almost timed out, so i use the length of the message to >determine what to do with it. > >msg = sockobj.recv(1024) > >if len(msg) == 158: >record the data >elif len(msg) == (34): # length of

Re: i18n hell

2006-04-24 Thread Jarek Zgoda
Martin Blais napisał(a): > See > http://furius.ca/antiorm/ for something simple that works well. I'd like to know what is this module/library good for *before* I start downloading it. "Almost like ORM but not exactly" is rather vague term and can denote anything. Is it dishwasher? Or microwave ov

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-24 Thread Harry George
Lawrence D'Oliveiro <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, > "ToddLMorgan" <[EMAIL PROTECTED]> wrote: > > >Are there python specific equivalents to the common Patterns, > >Anti-Patterns and Refactoring books that are so prevalent as > >reccomended reading in C++ and Java?

get "in reply to" with nntplib

2006-04-24 Thread Hanman
Hello, I am coding a small newsarchiv and have a question: When trying to read out the "in reply to" data with xhdr i always get a "(none)" as return. Example: s = nntplib.NNTP('freetext.usenetserver.com') resp, count, first, last, name = s.group('comp.lang.python') resp, subs = s.xhdr('In-Reply

Re: need a thread to keep a socket connection alive?

2006-04-24 Thread Roy Smith
<[EMAIL PROTECTED]> wrote: >elif len(msg) == (34): # length of request for ping >ping the server This seems really dangerous. You are obviously writing to some already defined (and hopefully, documented) protocol. What does the protocol spec say about ping request messages? I would be very

Re: need a thread to keep a socket connection alive?

2006-04-24 Thread nephish
ok, thanks for all the suggestions, gents, i clearly have more to read on this. i have discovered that the server will send a request for the heartbeat ping if its almost timed out, so i use the length of the message to determine what to do with it. msg = sockobj.recv(1024) if len(msg) == 158:

Re: threads and sys.exit()

2006-04-24 Thread Rene Pijlman
gangesmaster: >(i forgot to say it didn't work) It's the remaining threads that need to be daemon, when some thread performs sys.exit. When no non-daemon thread remains, the application terminates. -- René Pijlman -- http://mail.python.org/mailman/listinfo/python-list

Re: threads and sys.exit()

2006-04-24 Thread gangesmaster
(i forgot to say it didn't work) -- http://mail.python.org/mailman/listinfo/python-list

Re: threads and sys.exit()

2006-04-24 Thread gangesmaster
>>> import threading >>> t=threading.Thread(target=sys.exit) >>> t.setDaemon(True) >>> t.start() >>> ? -- http://mail.python.org/mailman/listinfo/python-list

Re: freebsd thread problem

2006-04-24 Thread Dorian Mcfarland
That was the problem. thanks for the clarity - finally working. > How did you install python? By default, if built from ports, it should > pop up a configuration dialog in which one of the options is to enable > thread support. If you have a bad configuration record, you can do a > "make config

Re: error

2006-04-24 Thread [EMAIL PROTECTED]
thanks for the help. cheers. -- http://mail.python.org/mailman/listinfo/python-list

Re: threads and sys.exit()

2006-04-24 Thread Diez B. Roggisch
gangesmaster wrote: > calling sys.exit() from a thread does nothing... the thread dies, but > the interpreter remains. i guess the interpreter just catches and > ignore the SystemExit exception... > > does anybody know of a way to overcome this limitation? Use Thread.setDaemon(True) on your thre

Re: error

2006-04-24 Thread alisonken1
> Will I get the same error running main if the total number of lines in the smaller modules is > 10k? Not sure if this would solve your problem, but I noticed the 10K filesize. I don't know about other programmers, but I find it >much< easier to keep track of stuff if I keep the individual file

threads and sys.exit()

2006-04-24 Thread gangesmaster
calling sys.exit() from a thread does nothing... the thread dies, but the interpreter remains. i guess the interpreter just catches and ignore the SystemExit exception... does anybody know of a way to overcome this limitation? -tomer -- http://mail.python.org/mailman/listinfo/python-list

Pydev and Pydev Extensions 1.0.6 release

2006-04-24 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.0.6 have been released Check http://www.fabioz.com/pydev for details on Pydev Extensions and http://pydev.sf.net for details on Pydev Release Highlights in Pydev Extensions: - - New Feature: Sh

Re: Packing a list of lists with struct.pack()

2006-04-24 Thread Fredrik Lundh
Panos Laganakos wrote: > I have a list that includes lists of integers, in the form of: > li = [[0, 1, 2], [3, 4, 5], ...] > What can I do to get li as a single list of integers? > > I tried list comprehension in the form of: > [([j for j in i]) for i in li] > > But that doesn't seem to work, any

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-24 Thread gene tani
Ant wrote: > Take a look at the newgroup archives over the last week or two - there > seem to have been a glut of people coming from Java to Python and > asking the same sort of questions. There were some links to a bunch of > Python 'gotcha' pages which will be useful. > Here's a few gotchas whi

Re: error

2006-04-24 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > thanks for the heads up. I read other posts on this error, but it's > unclear to me whether the following will be a problem as well. Suppose > I break up my very long module into smaller modules and import them > into another module 'main'. Will I get the same error r

Re: MinGW and Python

2006-04-24 Thread Robert Kern
Martin v. Löwis wrote: > Srijit Kumar Bhadra wrote: > >>Is there any specific reason for not using MinGW to build the official >>distribution of Python for Win32? > > What could be the reasons to use MinGW? > > As for reasons not to do that: > - there is no build process available to do that > -

Re: Packing a list of lists with struct.pack()

2006-04-24 Thread Panos Laganakos
Just came up with this: litemp = [] [litemp.extend(i) for i in li] Seems to give me a list with all the inner elements of li, not sure if struct.pack will accept it now, but I'll give it a try. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >