Re: remove child in DOM??

2004-12-12 Thread Fredrik Lundh
Juliano Freitas wrote: > how can i remove a child in DOM ? node.removeChild(child) where both node and child are DOM nodes. > for example, i have thi xml below: > > > juliano > > > > and i want to remove the element: > > > > > > how can i do this?? here's a brute force solu

Re: newbie questions

2004-12-12 Thread Fredrik Lundh
John Machin wrote: >> Of course, in this simple case, I wouldn't be likely to write the clear >> function since the inline code is simpler and has less overhead: >> >> def main() >> var1 = [] >> var1.append('a') >> var1[:] = [] > > Even less overhead: del var1[:] even less overhead

Re: handy stacktrace class

2004-12-12 Thread Fredrik Lundh
Will Ware wrote: >I was fooling with some Python code, and starting to miss the > Exception.printStackTrace() feature in Java. traceback.print_exc() -- http://mail.python.org/mailman/listinfo/python-list

subprocess.Popen

2004-12-12 Thread Michele Simionato
I was looking at Python 2.4 subprocess.Popen. Quite nice and handy, but I wonder why a "kill" method is missing. I am just adding it via subclassing, class Popen(subprocess.Popen): def kill(self, signal = SIGTERM): os.kill(self.pid, signal) but I would prefer to have it in the standar

Re: uptime for Win XP?

2004-12-12 Thread Fredrik Lundh
Esmail Bonakdarian wrote: > Is there a way to display how long a Win XP system has been up? > Somewhat analogous to the *nix uptime command. ugly, somewhat slow, and possibly locale dependent: import os, re def uptime(): return re.search( "System Up Time:\s*(.+)", os.popen("systemin

Re: MP3 - VBR - Frame length in time

2004-12-12 Thread Ivo Woltring
"Florian Schulze" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 11 Dec 2004 20:32:30 +0100, Ivo Woltring <[EMAIL PROTECTED]> > wrote: > > > mmpython will help but not always. > > Lets put it this way. I will ALWAYS read through the whole file. In that > > order I don't mind

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-12 Thread [EMAIL PROTECTED]
Hi, I had very bad experience with Tkinter when using input servers(for CJK languages like scim, xcin...) on Linux (doesn't work), so you might consider this. -- http://mail.python.org/mailman/listinfo/python-list

PIL : possible ?

2004-12-12 Thread News M Claveau /Hamster-P
PIL PI = Py (in french, it's the same 'sound') => PIL = (Py)L and Py become P24 => PIL = (P24)L however, 'L' Christmas finishes It (in french, Christmas = NoëL) and '(P24)' can to do readed like "Prepare, 24, for" => PIL = (P24)L => Prepare, 24 for NoëL (Christmas) Therefore, I hope that Fredick

Re: Graphical box /interactive programme

2004-12-12 Thread nigelstanley
On Friday 03 December 2004 21:42, cm012b5105 wrote: > Hello i want to put an interactive text programme in to a graphical box > this is a small section of my text programme > s = raw_input ("Hello whats your name? ") > if s=='melvyn': > print "your my boss's Dad the one they call in indian lang

Re: Microsoft Patents 'IsNot'

2004-12-12 Thread szuchymj
[EMAIL PROTECTED] wrote: > All the VB fans I know have not experienced Delphi. They just don't > know what they are missing. I am sure there are people who actually > chose VB, but not any one I know. When I marvelled at VB myself, it was > back when I myself was unaware of Delphi/C++ Builder. I us

Re: Overriding properties - Javaesque property rant

2004-12-12 Thread Kay Schluehr
> There are several ways to fix it. The simplest would be to create a new > property object in CC's definition: > > class CC(C): > def set_value(self, val): > if val < 0: > self.__val = 1 > else: > self.__val = val > value = property(C.get_valu

Re: uptime for Win XP?

2004-12-12 Thread Andrey Ivanov
>> I believe that "uptime" works from the console, but don't have a machine >> to check it with... > Doesn't work for me, but if you have win32all installed, you can get it > from Python: > >>> import win32api > >>> print "Uptime:", win32api.GetTickCount(), "Milliseconds" > Uptime: 148699875 Milli

Re: Persistent objects

2004-12-12 Thread Max M
Paul Rubin wrote: Basically I wish there was a way to have persistent in-memory objects in a Python app, maybe a multi-process one. So you could have a persistent dictionary d, and if you say d[x] = Frob(foo=9, bar=23) that creates a Frob instance and stores it in d[x]. Then if you exit the a

Re: Persistent objects

2004-12-12 Thread Paul Rubin
Max M <[EMAIL PROTECTED]> writes: > > Basically I wish there was a way to have persistent in-memory objects > > in a Python app, maybe a multi-process one. So you could have a > > persistent dictionary d, and if you sayd[x] = Frob(foo=9, bar=23) > > that creates a Frob instance and stores it i

Re: Persistent objects

2004-12-12 Thread Paul Rubin
Duncan Booth <[EMAIL PROTECTED]> writes: > Have you looked at ZODB and ZEO? It does most of what you ask for, > although not necessarily in the way you suggest. You're the second person to mention these, so maybe I should check into them more. But I thought they were garden-variety persistent obj

Re: from vb6 to Python

2004-12-12 Thread Nigel Rowe
MarcoL wrote: > MarcoL wrote: <> > Can anybody tell me anything about the IDE Spe? > > Thanks > > Marco http://projects.blender.org/projects/spe/ and http://projects.blender.org/mailman/listinfo/spe-user should cover most questions -- Nigel Rowe A pox upon the spammers that

Re: Persistent objects

2004-12-12 Thread Nigel Rowe
Paul Rubin wrote: > I've had this recurring half-baked desire for long enough that I > thought I'd post about it, even though I don't have any concrete > proposals and the whole idea is fraught with hazards. > > Basically I wish there was a way to have persistent in-memory objects > in a Python a

Re: Persistent objects

2004-12-12 Thread Duncan Booth
Paul Rubin wrote: > Well, as you can see, this idea leaves a lot of details not yet > thought out. But it's alluring enough that I thought I'd ask if > anyone else sees something to pursue here. > Have you looked at ZODB and ZEO? It does most of what you ask for, although not necessarily in th

Re: Persistent objects

2004-12-12 Thread Alan Kennedy
Hi Paul, [Paul Rubin] > Basically I wish there was a way to have persistent in-memory objects > in a Python app, maybe a multi-process one. So you could have a > persistent dictionary d, and if you say >d[x] = Frob(foo=9, bar=23) > that creates a Frob instance and stores it in d[x]. Then if y

Re: Persistent objects

2004-12-12 Thread Paul Rubin
Alan Kennedy <[EMAIL PROTECTED]> writes: > Have you looked at Ian Bicking's SQLObject? > > http://sqlobject.org/ That sounds like Python object wrappers around SQL transactions. That's the opposite of what I want. I'm imagining a future version of Python with native compilation. A snippet like

Re: Persistent objects

2004-12-12 Thread Paul Rubin
Nigel Rowe <[EMAIL PROTECTED]> writes: > Maybe POSH (http://poshmodule.sourceforge.net/) is what you want. Thanks, that is great. The motivation was somewhat different but it's clear that the authors faced and dealt with most of the same issues that were bugging me. I had hoped to avoid the use

Re: subprocess.Popen

2004-12-12 Thread Peter Hansen
Michele Simionato wrote: I was looking at Python 2.4 subprocess.Popen. Quite nice and handy, but I wonder why a "kill" method is missing. I am just adding it via subclassing, class Popen(subprocess.Popen): def kill(self, signal = SIGTERM): os.kill(self.pid, signal) but I would prefer to

Re: uptime for Win XP?

2004-12-12 Thread Peter Hansen
Bengt Richter wrote: >>> import os >>> [x for x in os.popen('pstat') if 'uptime' in x.lower()] ['Pstat version 0.3: memory: 327080 kb uptime: 4 15:44:16.696 \n'] [...] There's got to be something leaner though. I believe there is, though I can't guarantee this is a valid approach: >>> import

usage of __import__ across two files

2004-12-12 Thread bwobbones
Hi, I'm having trouble making __import__ work with the two classes attached. The PrintHello() method can't be seen in the BMTest2 class - what am I doing wrong here? class one - BMTest - in BMTest.py: import wx from traceback import prin

Re: usage of __import__ across two files

2004-12-12 Thread John Roth
"bwobbones" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I'm having trouble making __import__ work with the two classes attached. The PrintHello() method can't be seen in the BMTest2 class - what am I doing wrong here? [snip] tb = __import__('BMTest2') tb2.Prin

Skinnable/Stylable windows in wxPython?

2004-12-12 Thread Daniel Bickett
I'm very near finishing a medium to large scale application, so I'm getting a head start on the GUI side of things. Part of the concept is to give as much attention to presentation as functionality, and something I really wanted to do was transcend the basic window and style it to an extent, To be

Any books on PyQt

2004-12-12 Thread Michael McGarry
Hi, Do any books cover PyQt? Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Any books on PyQt

2004-12-12 Thread Phil Thompson
On Sunday 12 December 2004 4:11 pm, Michael McGarry wrote: > Hi, > > Do any books cover PyQt? > > Michael http://www.opendocs.org/pyqt/ Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-12 Thread "Martin v. Löwis"
Jive wrote: I don't even know how to do that! :-) What's the difference between VC++ .net Standard and Visual Studio .net Pro? (Besides $370?) Is the former C++ only, but with the IDE, and the later the whole shebang with SourceSafe, VBASIC, and all that? According to http://msdn.microsoft.com/h

Re: newbie questions

2004-12-12 Thread Steven Bethard
Fredrik Lundh wrote: John Machin wrote: Of course, in this simple case, I wouldn't be likely to write the clear function since the inline code is simpler and has less overhead: def main() var1 = [] var1.append('a') var1[:] = [] Even less overhead: del var1[:] even less overhead: v

Named pipes in threads

2004-12-12 Thread Philippe C. Martin
HI, I currently have a "working" script that uses sockets to handle threads communications - the problem is that it gives me obvious problems in handling free ports (launching the script more than once ). Is thread named pipes communication allowed ? Regards, Philippe -- http://mail.pyth

Re: Skinnable/Stylable windows in wxPython?

2004-12-12 Thread mefjr75
Hello Daniel, The wxPopupWindow is also missing several things that would make it suitable for a frame, like accelerator events. I built a 'chromeless' picture viewer once using wxPopupWindow and it worked , but it was missing things I needed because of missing functionality in wxPopupWindow. IMHO

for loop

2004-12-12 Thread houbahop
Hello, I have seen a lot of way to use the for statement, but I still don't know how to do: for i=morethanzero to n or for i= 5 to len(var) of course I kno wthat I can use a while loop to achieve that but if this is possible whith a for one, my preference goes to the for. regards, Dominique.

Re: possible ?

2004-12-12 Thread Fredrik Lundh
> PIL > PI = Py (in french, it's the same 'sound') > => PIL = (Py)L > and Py become P24 > => PIL = (P24)L > however, 'L' Christmas finishes It (in french, Christmas = NoëL) > and '(P24)' can to do readed like "Prepare, 24, for" > => PIL = (P24)L => Prepare, 24 for NoëL (Christmas) > > Therefore,

Re: character encoding conversion

2004-12-12 Thread "Martin v. Löwis"
Dylan wrote: Things I have tried include encode()/decode() This should work. If you somehow manage to guess the encoding, e.g. guess it as cp1252, then htmlstring.decode("cp1252").encode("us-ascii", "xmlcharrefreplace") will give you a file that contains only ASCII characters, and character refer

Re: Named pipes in threads

2004-12-12 Thread Jive
"Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > HI, > > I currently have a "working" script that uses sockets to handle threads > communications - the problem is that it gives me obvious problems in handling > free ports (launching the script more than once )

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 10)

2004-12-12 Thread Josiah Carlson
QOTW: "I still think this is a silly idea, but at least it doesn't track mud all over Python's nice clean rugs." -- Michael J. Fromberger http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/dde861393aa5a68/eb3a5e53f9743413 "Basically, in tk, canvases are for vector draw

Re: New versions breaking extensions, etc.

2004-12-12 Thread Jive
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Either VS.NET 2003 or VC++ .NET 2003 should do (although I don't know > anybody who owns the latter to be sure). The core issue is that it needs > a "native" C++ compiler (ie. not just managed C++), and that it needs >

Web form validators for Python (RequiredFieldValidator anyone?)

2004-12-12 Thread Lorenzo Bolognini
Hi all, just trying to do some web development with Python. At the moment I'm keeping an eye on these projects: Nevow, JotWeb, Albatross, Snakeskin and my favorite, CherryPy, soon coming with a version 2! But, even though there's something I like in all of these frameworks, I can't find in the

Re: for loop

2004-12-12 Thread Diez B. Roggisch
> for i in range(morethanzero, n): > ... > >> for i= 5 to len(var) > > for i in range(5, len(var)): > ... Better use xrange - it doesn't create an actual list, but instead an iterator enumerating the elements. That way more memory and cpu efficient. -- Regards, Diez B. Roggisch -- h

Re: for loop

2004-12-12 Thread Steven Bethard
houbahop wrote: for i=morethanzero to n for i in range(morethanzero, n): ... for i= 5 to len(var) for i in range(5, len(var)): ... although range(len(var)) is usually not what you want, because you can just do: for item in itertools.islice(var, 5, None): ... or if you really do need t

Re: Named pipes in threads

2004-12-12 Thread Michael Fuhr
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: > I currently have a "working" script that uses sockets to handle threads > communications - the problem is that it gives me obvious problems in handling > free ports (launching the script more than once ). Who is communicating with whom? Th

Re: problem with embbed boost.python in multi-interpreter andmulti-thread HELP please

2004-12-12 Thread Donnie Leen
All right, I found the answer in boost.python test example embedding.cpp, not to call initmodulename() in every sub-interpreter, just call PyImport_AppendInittab("modulename", initmodulename) before call to Py_Initialize(), this will add the module to the interpreter's builtin modules, then I can c

Yahoo! Auto Response

2004-12-12 Thread bustamam98
This email address is no longer valid. Original Message: X-YahooFilteredBulk: 82.226.229.7 Authentication-Results: mta127.mail.re2.yahoo.com from=python.org; domainkeys=neutral (no sig) X-Originating-IP: [82.226.229.7] Return-Path: <[EMAIL PROTECTED]> Received: from 82.2

Re: Persistent objects

2004-12-12 Thread Irmen de Jong
Paul Rubin wrote: Basically I wish there was a way to have persistent in-memory objects in a Python app, maybe a multi-process one. So you could have a persistent dictionary d, and if you say d[x] = Frob(foo=9, bar=23) that creates a Frob instance and stores it in d[x]. Then if you exit the a

Re: for loop

2004-12-12 Thread loritsch
houbahop wrote: > Hello, > I have seen a lot of way to use the for statement, but I still don't know > how to do: > > for i=morethanzero to n > or > for i= 5 to len(var) > > of course I kno wthat I can use a while loop to achieve that but if this is > possible whith a for one, my preference goes to

Re: for loop

2004-12-12 Thread Steven Bethard
Diez B. Roggisch wrote: for i in range(5, len(var)): ... Better use xrange - it doesn't create an actual list, but instead an iterator enumerating the elements. That way more memory and cpu efficient. I could've sworn I read somewhere in the past that xrange was supposed to be slower than rang

Re: Python + Newspipe

2004-12-12 Thread kael
Peter Hansen wrote: you should probably contact the author(s) for assistance since this is not a Python issue. I contact the author and there is a bug in the version I'm using. Now it works by running $ cd /newspipe $ python ./newspipe.py Instead of $ python /newspipe/newspipe.py Thanks for your he

newsgroups

2004-12-12 Thread Francis Lavoie
Do we need a special account or something to use the newsgroup instead of the mailling list? -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie questions

2004-12-12 Thread John Machin
Fredrik Lundh wrote: > John Machin wrote: > > >> Of course, in this simple case, I wouldn't be likely to write the clear > >> function since the inline code is simpler and has less overhead: > >> > >> def main() > >> var1 = [] > >> var1.append('a') > >> var1[:] = [] > > > > Even less

Re: Fun with Outlook and MAPI

2004-12-12 Thread Steve Holden
Chris wrote: Alas, I dont think that there is much you can do to prevent the confirmation dialogs with Outlook's MAPI dll. MS added them in a service pack as an anti-virus measure, so no work-around. Not all clients show these anoying dialogs though. Thunderbird definately doesn't. There is act

Re: character encoding conversion

2004-12-12 Thread Christian Ergh
Martin v. Löwis wrote: Dylan wrote: Things I have tried include encode()/decode() This should work. If you somehow manage to guess the encoding, e.g. guess it as cp1252, then htmlstring.decode("cp1252").encode("us-ascii", "xmlcharrefreplace") will give you a file that contains only ASCII charact

Best book on Python?

2004-12-12 Thread Michael McGarry
Hi, What is the best book covering Python? Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: for loop

2004-12-12 Thread houbahop
thank you, Whith python, It seems that all that I have learn in other languages is not directly usable :) but looks like python is more efficient. dominique. <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > houbahop wrote: >> Hello, >> I have seen a lot of way to use the

Re: Named pipes in threads

2004-12-12 Thread Philippe C. Martin
>>Replace the sockets with a queue of strings. >>http://docs.python.org/lib/module-Queue.html >>Write your Send and Recv functions in terms of Queue.get() and Queue.put(); And those entry points seem to reentrant too !!! Thanks a lot, you made my day (I say that a lot on this mailing lis

Re: Best book on Python?

2004-12-12 Thread Peter Hansen
Michael McGarry wrote: What is the best book covering Python? For what purpose? Are you a complete newbie to Python? To programming? Are you looking for a technical reference, a tutorial, information about a specific area (e.g. networking, GUIs), or something else? Please help the poor non-mindrea

Re: Python mascot proposal

2004-12-12 Thread Dimitri Tcaciuc
Jeremy Bowers wrote: On Sun, 12 Dec 2004 20:54:38 +, Dimitri Tcaciuc wrote: I haven't came up with the name for that guy yet, so I'm leaving that for public suggestions :). It is time Python gets an official face in the Net! *cough* Anyway, I would like to hear your thoughts and suggestions.

Re: newbie questions

2004-12-12 Thread Fredrik Lundh
John Machin wrote: >> > Even less overhead: del var1[:] >> >> even less overhead: >> >> var1 = [] > > Firstly, your replacement is not functionally equivalent. do you really have to tell me that? (as I said, if you rely on the difference, your design is probably flawed) > Secondly, it appea

Re: newsgroups

2004-12-12 Thread Steve Holden
Francis Lavoie wrote: Do we need a special account or something to use the newsgroup instead of the mailling list? Yes, you have to find an NNTP server that carries comp.lang.python. It's possible your Internet service provider runs such a news server and will let you access it as a part of your

Re: Named pipes in threads

2004-12-12 Thread Philippe C. Martin
>>What are you trying to do?  Perhaps if you backed up and described >>the "what" we could make better recommendations about the "ho Just trying to have a GUI thread (tkinter) talk back and forth with a debugger derived object threaded (bdb). No I have not tried yet as sometimes things seem to

Re: thread/queue bug

2004-12-12 Thread Steve Holden
phil wrote: [...] > 5. Sorry I can't be more help. You don't give anyone much > to go on. All that stuff about "Queue(0)" and "listenq" > is pretty much meaningless to us, you know... You know, I get this all the time on language support groups. This might be a clue. All of my Linux support gr

Re: uptime for Win XP?

2004-12-12 Thread Brad Tilley
Esmail Bonakdarian wrote: Hi, Is there a way to display how long a Win XP system has been up? Somewhat analogous to the *nix uptime command. Thanks, Esmail Just run the built-in Windows utility 'systeminfo' from a cmd prompt. Python can call 'systeminfo' like this: import os uptime = os.popen('sy

Re: Python mascot proposal

2004-12-12 Thread richard
Dimitri Tcaciuc wrote: > While I'm not absolutely positive, it looks like Python still doesn't > have any official mascot or logo. As already mentioned, there is a snake that gets used in a number of icons around the place - the windows installer, for example. > Hence, here's something I came up

Re: character encoding conversion

2004-12-12 Thread "Martin v. Löwis"
Christian Ergh wrote: - it works with the characters i mentioned It does. - what encoding do you have in the end US-ASCII - and how exactly are you doing all this? All with somestring.decode() or... Can you please give an example for these 7 steps? I could, but I don't have the time - just try to

Re: Best book on Python?

2004-12-12 Thread Maurice LING
Google for Dive Into Python. Its a free online publication, see if is any good for you. Cheers, I like "Dive into Python" for the fact that it tends to explain examples line by line in an annotated form but it may just be my personal preference. If the focus is only on printed books and there

Re: PEP 338: Executing modules inside packages with '-m'

2004-12-12 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > This will definitely allow me and other python programmers to package > our scripts better puzzling. I'd say that for a typical user, $ python -m foo.bar arg is a marginal improvement over $ python -c "import foo.bar" arg compared to $ bar arg --

Re: Best book on Python?

2004-12-12 Thread Michael McGarry
I have many years of programming experience and know a little bit of Tcl. I am looking for a book to detail on the features including GUI in a reference style. Thanks, Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie questions

2004-12-12 Thread Steve Holden
houbahop wrote: Thank you everyone, but I still not understand why such a comon feature like passing parameters byref that is present in most serious programming languages is not possible in a clean way,here in python. I have the habit to never use globals as far as possible and this involve tha

Re: possible ?

2004-12-12 Thread Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
(set font to : courier) : __ __ __ /\__ _\/\ \/\ \ \/_/\ \/\ \ \___ __ ___ \ \ \/'\ \ \ \ \ \ _ `\ /'__`\ /' _ `\\ \ , < /',__\ \ \ \ \ \ \ \ \ /\ \L\.\_ /\ \/\ \\ \ \\`\ /\__, `\ \ \_\ \ \_\ \_\\ \

Re: Web form validators for Python (RequiredFieldValidator anyone?)

2004-12-12 Thread Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
Sorry, I had bad read the question... Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python mascot proposal

2004-12-12 Thread Michael Sparks
On Sun, 12 Dec 2004, Dimitri Tcaciuc wrote: > Hey everybody, > > While I'm not absolutely positive, it looks like Python still doesn't > have any official mascot or logo. Hmm... I thought it did - indeed it's in every character set (?): @ For those who can't see the detail, it's an eel curled

Re: Best book on Python?

2004-12-12 Thread Paul Rubin
Michael McGarry <[EMAIL PROTECTED]> writes: > I have many years of programming experience and know a little bit of > Tcl. I am looking for a book to detail on the features including GUI > in a reference style. Why not just use the online documentation? There's also an excellent Tkinter manual at:

Re: Raw Sockets vs. What?

2004-12-12 Thread Matt
Thanks for the responses--they were very helpful. I've looked at IDLE and pyro and I think I'll try using pyro for this first version. --Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Python mascot proposal

2004-12-12 Thread Dimitri Tcaciuc
richard wrote: Dimitri Tcaciuc wrote: While I'm not absolutely positive, it looks like Python still doesn't have any official mascot or logo. As already mentioned, there is a snake that gets used in a number of icons around the place - the windows installer, for example. Hence, here's something I

Re: Persistent objects

2004-12-12 Thread Bengt Richter
On 12 Dec 2004 01:54:28 -0800, Paul Rubin wrote: >I've had this recurring half-baked desire for long enough that I >thought I'd post about it, even though I don't have any concrete >proposals and the whole idea is fraught with hazards. > >Basically I wish there was a way

Re: Python mascot proposal

2004-12-12 Thread Bud Rogers
richard wrote: > Having said that, don't forget that Python's name has *nothing to do > with snakes*. Please consider sticking to the original roots of the > language's name: Monty Python's Flying Circus. IIRC, Guido has said a > number of times that he's not fond of using a snake for logos. Some

Re: New versions breaking extensions, etc.

2004-12-12 Thread "Martin v. Löwis"
Jive wrote: Either VS.NET 2003 or VC++ .NET 2003 should do (although I don't know anybody who owns the latter to be sure). The core issue is that it needs a "native" C++ compiler (ie. not just managed C++), and that it needs mscvcr71.dll. Sorry if I'm being dense. If I had that DLL, why couldn't

Re: from vb6 to Python

2004-12-12 Thread Luis M. Gonzalez
Martijn Faassen wrote: > Unfortunately this is currently not near production use, and whether > Microsoft is funding IronPython development is up in the air: It's true that he Ironpython's mailing list is a little bit innactive, but this is just because there's only one person in charge of Ironpy

Re: uptime for Win XP?

2004-12-12 Thread Fredrik Lundh
Brad Tilley wrote > Just run the built-in Windows utility 'systeminfo' from a cmd prompt. you're a bit late, aren't you? > for line in data: >if line contains "System Up Time": > print line what Python version is this? -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 338: Executing modules inside packages with '-m'

2004-12-12 Thread richard
[EMAIL PROTECTED] wrote: > A useful feature that is a logical extension of current '-m' behaviour. > (I'm actually surprised it was left out in the first place) > > This will definitely allow me and other python programmers to package > our scripts better > > Sounds Good to me. (-; /me too :)

Re: Persistent objects

2004-12-12 Thread Dan Perl
"Paul Rubin" wrote in message news:[EMAIL PROTECTED] > I've had this recurring half-baked desire for long enough that I > thought I'd post about it, even though I don't have any concrete > proposals and the whole idea is fraught with hazards. > > Basically I wish there

Re: for loop

2004-12-12 Thread Diez B. Roggisch
> I hardly ever use (x)range for anything (because you can almost always > use a for loop to loop over items instead), but I'll file this info away > mentally for the next time I do. Thanks! Thats true for me too - and since enumerate was introduced, the number of applications of xrange have decr

Re: Python mascot proposal

2004-12-12 Thread Luis M. Gonzalez
Hey Dimitri, I completely agree with you in that Python needs once for all a cool logo. I like your design very much, but I have a few thoughts about it: 1) I think that Python's logo should reflect its power. If we use a mascot as its image, we would be giving the wrong idea: that Python is a "t

Re: Problem with Qt

2004-12-12 Thread Diez B. Roggisch
I think you have to introduce a layout on the group. The best thing is to use qdesigner, it will do that for you. If you really need code, this is cut'n'paste from a generate py-file: self.buttonGroup4 = QButtonGroup(self,"buttonGroup4") self.buttonGroup4.setColumnLayout(0,Qt.Vertical) self.button

Re: subprocess.Popen

2004-12-12 Thread Keith Dart
Michele Simionato wrote: I was looking at Python 2.4 subprocess.Popen. Quite nice and handy, but I wonder why a "kill" method is missing. I am just adding it via subclassing, class Popen(subprocess.Popen): def kill(self, signal = SIGTERM): os.kill(self.pid, signal) but I would prefer to

Re: Best book on Python?

2004-12-12 Thread Maurice LING
Michael McGarry wrote: I have many years of programming experience and know a little bit of Tcl. I am looking for a book to detail on the features including GUI in a reference style. Thanks, Michael I am assuming that you do not want to venture pass the standard libraries at this moment, so in

Re: Best book on Python?

2004-12-12 Thread Daniel Bickett
> If the focus is only on printed books and there is some experience with > programming, "programming python" by Lutz from O'Reilly might be a good > one. I saw that book today at Barnes and Noble, and found it curiously ironic that it had a very large mouse on the cover :) But maybe that's just m

Re: Best book on Python?

2004-12-12 Thread Maurice Ling
Daniel Bickett wrote: If the focus is only on printed books and there is some experience with programming, "programming python" by Lutz from O'Reilly might be a good one. I saw that book today at Barnes and Noble, and found it curiously ironic that it had a very large mouse on the cover :) But

Re: handy stacktrace class

2004-12-12 Thread will . ware
Oh. Never mind, then. -- http://mail.python.org/mailman/listinfo/python-list

Re: Persistent objects

2004-12-12 Thread Keith Dart
Paul Rubin wrote: I've had this recurring half-baked desire for long enough that I thought I'd post about it, even though I don't have any concrete proposals and the whole idea is fraught with hazards. Basically I wish there was a way to have persistent in-memory objects in a Python app, maybe a mu

Re: Persistent objects

2004-12-12 Thread Keith Dart
Paul Rubin wrote: I've had this recurring half-baked desire for long enough that I thought I'd post about it, even though I don't have any concrete proposals and the whole idea is fraught with hazards. Basically I wish there was a way to have persistent in-memory objects in a Python app, maybe a mu

Re: Persistent objects

2004-12-12 Thread Keith Dart
Paul Rubin wrote: I've had this recurring half-baked desire for long enough that I thought I'd post about it, even though I don't have any concrete proposals and the whole idea is fraught with hazards. Basically I wish there was a way to have persistent in-memory objects in a Python app, maybe a mu

Problem with Qt

2004-12-12 Thread Michael McGarry
Hi, I am trying to show a radio button group on a window, but only the last radio button shows up. Anyone know why? Here is the code: from qt import * import sys a = QApplication(sys.argv) widget = QWidget() trafftype = QButtonGroup("Traffic Type", widget) poisson = QRadioButton("Poisson", trafft

Re: Best book on Python?

2004-12-12 Thread BJörn Lindqvist
I haven't read any Python paper books myself but as Christmas is coming up, I've checked up on what Python books other people recommend. Everyone who has reviewed Python books seem to like these books: * Python Essential Reference * Python Cookbook * Python in a Nutshell The last two are both wri

Re: subprocess.Popen

2004-12-12 Thread Keith Dart
Keith Dart wrote: Michele Simionato wrote: I was looking at Python 2.4 subprocess.Popen. Quite nice and handy, but I wonder why a "kill" method is missing. I am just adding it via subclassing, class Popen(subprocess.Popen): def kill(self, signal = SIGTERM): os.kill(self.pid, signal) b

Re: Best book on Python?

2004-12-12 Thread Rod Haper
Michael McGarry wrote: I have many years of programming experience and know a little bit of Tcl. I am looking for a book to detail on the features including GUI in a reference style. Given that you have some acquaintance with Tcl, if you want a reference that caters toward GUI programming in Pyt

Re: newsgroups

2004-12-12 Thread Francis Lavoie
Egor Bolonev wrote: On Sun, 12 Dec 2004 14:57:50 -0500, Francis Lavoie <[EMAIL PROTECTED]> wrote: Do we need a special account or something to use the newsgroup instead of the mailling list? why we use newsgroup instead of mailing list? 1. to keep my mail separated from the python discussion.

Re: subprocess.Popen

2004-12-12 Thread Peter Hansen
Peter Hansen wrote: Michele Simionato wrote: I was looking at Python 2.4 subprocess.Popen. Quite nice and handy, but I wonder why a "kill" method is missing. I am just adding it via subclassing, > [Peter, noting os.kill is absent in win32] Note, for the record, however, Jimmy Retzlaff's excellent

Re: Problem with Qt

2004-12-12 Thread Michael McGarry
Thanks, I had just discovered Qt Designer. I will probably use this. It seems to work well. Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Best book on Python?

2004-12-12 Thread Peter Hansen
Maurice Ling wrote: Yes it is somewhat ironic. I do think that a snake or something closer to a long, tube-like, legless animal will be more suitable. I have absolutely no idea how animals are chosen in O'Reilly. Generally, with both subtlety and humour, judging by how often the O'Reilly Python b

  1   2   >