Re: Path problem

2004-12-12 Thread Binu K S
Hi Lars, sys.path[0] will contain the path to the script. >From the sys module documentation: "As initialized upon program startup, the first item of this list, path[0], is the directory containing the script that was used to invoke the Python interpreter. If the script directory is not available

(no subject)

2004-12-12 Thread FETCHMAIL-DAEMON
Some addresses were rejected by the MDA fetchmail forwards to. Reporting-MTA: dns; localhost Final-Recipient: rfc822; [EMAIL PROTECTED] Last-Attempt-Date: Mon, 13 Dec 2004 11:55:56 +0530 (IST) Action: failed Status: 3.0.0 Diagnostic-Code: [EMAIL PROTECTED]: 550 <[EMAIL PROTECTED]>... User unknown

Re: Qt String Question

2004-12-12 Thread Michael McGarry
Michael McGarry wrote: Hi, How do I convert from a qt.QString to a Python string? Michael Apparently the ascii() method of QString does this. (I answered my own question). sorry for wasting newsgroup space. -- http://mail.python.org/mailman/listinfo/python-list

Qt String Question

2004-12-12 Thread Michael McGarry
Hi, How do I convert from a qt.QString to a Python string? Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Path problem

2004-12-12 Thread Lars Yencken
Hi Binu, On 13/12/2004, at 4:11 PM, Binu K S wrote: This should get you the module's path: import sys sys.modules['rpy'].__file__ Unfortunately it's not the rpy module itself whose path I'm looking for. It's the absolute path of my module that I've created. If my script was called runRScript.py,

what module can do html encoder??

2004-12-12 Thread Leon
example: s = ' ' --->   -- http://mail.python.org/mailman/listinfo/python-list

Re: what module can do html encoder??

2004-12-12 Thread richard
Leon wrote: > example: > s = ' ' --->   That's technically not HTML encoding, that's replacing a perfectly valid space character with a *non-breaking* space character. If that's all you want to do, then: s.replace(' ', ' ') will do it. If, however, you wish to quote special HTML chars,

Path problem

2004-12-12 Thread Lars Yencken
Hello, I'm working on a project where my python modules are using persistent files in the same directory. As an example, we're using rpy, so a piece of python code might read: from rpy import * rScript = 'myScript.r' r.source(rScript) Now the problem with this is that whe

Re: Path problem

2004-12-12 Thread Binu K S
This should get you the module's path: import sys sys.modules['rpy'].__file__ On Mon, 13 Dec 2004 15:48:29 +1100, Lars Yencken <[EMAIL PROTECTED]> wrote: > Hello, > > I'm working on a project where my python modules are using persistent > files in the same directory. As an example, we're using r

Re: Cool object trick

2004-12-12 Thread Steven Bethard
dataangel wrote: Normally I'd just use class Obj(object): pass, but the advantage to this method is you can create an Obj like this: Obj(id="desktop", last=0, color=self.getColor(DESKTOP_COLOR)) You can pass all the attributes you want the object to have this way. Nifty :) Yup, that's basically

Re: for loop

2004-12-12 Thread Binu K S
If you are used to the C kind of for loops, avoid mistakes like this one: >>> for i in range(1,6): ... print i ... i+=2 ... 1 2 3 4 5 Obvious if you know you are iterating over a sequence. -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-12 Thread Jive
"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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++),

Cool object trick

2004-12-12 Thread dataangel
I read some discussion on this list before about how sometimes it's useful to create a generic object class that you can just stick attributes to. I was reading the PyPanel source (not written by me) and I came across this: #--

Re: why no python setup.py uninstall?

2004-12-12 Thread richard
Roger Binns wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> I think a little database (maybe in xml?) of installed files/modules >> and their locations would be useful, perhaps even for a future >> automatic download/installation/dependency-tracking thingmabob that >> stil

Re: Renaming __getattribute__ (PEP?)

2004-12-12 Thread Jeremy Bowers
On Sun, 12 Dec 2004 20:32:10 -0800, Henry 'Pi' James wrote: > It this qualified PEP stuff? I can't imagine how you'd justify breaking the reverse compatibility. Maybe Py3K. -- http://mail.python.org/mailman/listinfo/python-list

Renaming __getattribute__ (PEP?)

2004-12-12 Thread Henry 'Pi' James
I'm pretty sure this must not be a new idea, but it seems no one else has voiced their agitation about the name "__getattribute__" so far. Its closeness to "__getattr__" is only one thing that irritates tons of people, as is apparent through the endless repeating question about the difference betwe

Re: Best book on Python?

2004-12-12 Thread Shawn Milo
I asked some questions last week about how those in the group learned Python, and I was given some suggestions. I ended up buying several books. Here are my brief opinions about them. In case it seems that I am too positive about these books, please take into consideration that I purchased each of

Re: Python mascot proposal

2004-12-12 Thread Steven Bethard
Brian Beck wrote: http://exogen.cwru.edu/python2.png Oooh, I like this one. Very cool! Steve -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.0

2004-12-12 Thread John Hunter
> "duane" == duane osterloth <[EMAIL PROTECTED]> writes: duane> I'm looking for a stand alone email program which is not duane> browser based. I simply want to write, send and receive duane> email without accessing the internet. Is Python 3.0 that duane> kind of program? I'd

Re: Python mascot proposal

2004-12-12 Thread Brian Beck
Dimitri Tcaciuc wrote: While I'm not absolutely positive, it looks like Python still doesn't have any official mascot or logo. Hence, here's something I came up with yesterday. Its by no means a final version, but rather just a draft to show an idea. Here's a link to png file. http://www.sfu.ca

Python 3.0

2004-12-12 Thread duane osterloth
I'm looking for a stand alone email program which is not browser based.   I simply want to write, send and receive email without accessing the internet.  Is Python 3.0 that kind of program?   I'd appreciate your response.    Thanks, Duane -- http://mail.python.org/mailman/listinfo/python-l

Re: uptime for Win XP?

2004-12-12 Thread Esmail Bonakdarian
Brian van den Broek wrote: Hi Esmail, try looking for it on your box ;-) When I recently installed win32all, my Python 2.4 entry on the startmenu grew a shortcut for "Python for Windows Documentation". Ah .. good one!! Thanks. Actually, I thought it might have installed /integrated it into the IDL

Re: Skinnable/Stylable windows in wxPython?

2004-12-12 Thread Daniel Bickett
Solution found! For the future reference of anyone searching: The wxPopupWindow can easily be achieved by creating a wxMiniFrame with absolutely no styles ('0', explicitly). The features of the wxPopupWindow in the wxPython demo don't come with it, they were manually added in the demo code, so si

Re: uptime for Win XP?

2004-12-12 Thread Brian van den Broek
Esmail Bonakdarian said unto the world upon 2004-12-12 20:45: Greg Krohn wrote: if you have win32all installed, you can get it from Python: >>> import win32api >>> print "Uptime:", win32api.GetTickCount(), "Milliseconds" Uptime: 148699875 Milliseconds Hi Greg! Thanks, that was usefull, esp sinc

re: usage of __import__ across two files

2004-12-12 Thread bwobbones
Oops, Thanks for the reply, but lets try again - I was in a real rush last night...and I obviously posted the wrong code. I'm trying to use the __import__ form of import because I want to dynamically load classes from their .py files. When I run the BMTest.py file, I get the error: File "C:\

Re: newsgroups

2004-12-12 Thread Abe Mathews
I've got mine delivered to a gmail account. For me, it was much easier than trying to find a NNTP host that would allow me to check remotely (many ISP's don't). Set up a filter so that everything that comes in from the list is marked "Python". Star anything that looks promising, delete the rest.

Re: Best book on Python?

2004-12-12 Thread [EMAIL PROTECTED]
The Python in a Nutshell by Alex Martelli is a very good book. For someone completely new to programming, Learning Python by Lutz might be a better choice. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best book on Python?

2004-12-12 Thread Esmail Bonakdarian
Michael McGarry wrote: Hi, What is the best book covering Python? Michael I like these: Python Cookbook book Learning Python, 2nd ed Python in a Nutshell Dive Into Python would also make a good choice and the next book I would get (if I were to get one more ;-) I myself am looking for a sm

Your message to Magick-users awaits moderator approval

2004-12-12 Thread magick-users-bounces
Your mail to 'Magick-users' with the subject Re: Proof of concept Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification o

Re: uptime for Win XP?

2004-12-12 Thread Esmail Bonakdarian
Thanks everyone for the great help. Esmail -- http://mail.python.org/mailman/listinfo/python-list

Re: uptime for Win XP?

2004-12-12 Thread Esmail Bonakdarian
Fredrik Lundh wrote: import os, re def uptime(): return re.search( "System Up Time:\s*(.+)", os.popen("systeminfo").read() ).group(1) print uptime() Thanks, I'm learning a lot :-) Esmail -- http://mail.python.org/mailman/listinfo/python-list

Re: uptime for Win XP?

2004-12-12 Thread Esmail Bonakdarian
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'] That is, if pstat.exe is on your system and path. It comes with various sdk's and Visual studio stuff. Check tools subdirectory und

Re: while 1 vs while True

2004-12-12 Thread Dan Bishop
Timothy Fitz wrote: > [ http://www.python.org/moin/PythonSpeed ] > "Starting with Py2.3, the interpreter optimizes 'while 1' to just a > single jump. In contrast "while True" takes several more steps. While > the latter is preferred for clarity, time-critical code should use the > first form." > >

Re: uptime for Win XP?

2004-12-12 Thread Esmail Bonakdarian
Peter Hansen wrote: I believe there is, though I can't guarantee this is a valid approach: >>> import datetime >>> import os >>> def uptime(): ... t = os.stat('c:/pagefile.sys').st_mtime ... td = datetime.datetime.now() - datetime.datetime.fromtimestamp(t) ... return td ... >>> print upti

Re: uptime for Win XP?

2004-12-12 Thread Esmail Bonakdarian
Nick Coghlan wrote: It's included in the output of the 'systeminfo' command. That command is fairly slow, though (since it displays a lot more than just the up time) There's also info about the 'uptime' utility here: http://support.microsoft.com/kb/q232243/ I don't know if that works for XP. Hi N

Re: Best book on Python?

2004-12-12 Thread Michael McGarry
Adil Hasan wrote: hello, Just my 2 farthings worth... Although Python and Tkinter is a good book it was written at the time of Python 1.5 (so there may be some transformation that needs to be done on some of the examples) you may want to take a look at Python in a Nutshell by A. Marte

Re: uptime for Win XP?

2004-12-12 Thread Esmail Bonakdarian
Tom Wesley wrote: I believe that "uptime" works from the console, but don't have a machine to check it with... Hi Tom, no, unfortunately not. Esmail -- http://mail.python.org/mailman/listinfo/python-list

Re: uptime for Win XP?

2004-12-12 Thread Esmail Bonakdarian
Greg Krohn wrote: if you have win32all installed, you can get it from Python: >>> import win32api >>> print "Uptime:", win32api.GetTickCount(), "Milliseconds" Uptime: 148699875 Milliseconds Hi Greg! Thanks, that was usefull, esp since I had no idea about the win32api which I promptly download

while 1 vs while True

2004-12-12 Thread Timothy Fitz
[ http://www.python.org/moin/PythonSpeed ] "Starting with Py2.3, the interpreter optimizes 'while 1' to just a single jump. In contrast "while True" takes several more steps. While the latter is preferred for clarity, time-critical code should use the first form." Out of pure curiousity, Why wasn'

select options with PSP template

2004-12-12 Thread tomhath
Can someone give an opinion whether this is a dumb approach? I want to generate a list of OPTION elements for s SELECT element, but I can't see any (clean) way to use a template on a list of values (other than building HTML outside of the template, which is what I'm trying to avoid). This is what

Re: Best book on Python?

2004-12-12 Thread Adil Hasan
hello, Just my 2 farthings worth... Although Python and Tkinter is a good book it was written at the time of Python 1.5 (so there may be some transformation that needs to be done on some of the examples) you may want to take a look at Python in a Nutshell by A. Martelli published by

Re: Python vs. Perl

2004-12-12 Thread TZOTZIOY
On Sat, 11 Dec 2004 15:10:04 -0700, rumours say that Michael McGarry <[EMAIL PROTECTED]> might have written: >Thank you all for your input. Please feel free to keep this discussion >going. > >I intend to use a scripting language for GUI development and front end >code for my simulations in C. I

Re: why no python setup.py uninstall?

2004-12-12 Thread Roger Binns
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I think a little database (maybe in xml?) of installed files/modules > and their locations would be useful, perhaps even for a future > automatic download/installation/dependency-tracking thingmabob that > still regretably still doesn't

Re: uptime for Win XP? --plus OT rantings for the same price

2004-12-12 Thread TZOTZIOY
On Sun, 12 Dec 2004 09:18:20 -0500, rumours say that Peter Hansen <[EMAIL PROTECTED]> might have written: >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'] >> >[...] > >

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

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: 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: newsgroups

2004-12-12 Thread Terry Reedy
"Egor Bolonev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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? news.gmane.org gives you access to t

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: Python mascot proposal

2004-12-12 Thread Dimitri Tcaciuc
Luis M. Gonzalez wrote: 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 ide

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: 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 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

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: 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

Re: handy stacktrace class

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

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: 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
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: 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: 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: Python mascot proposal

2004-12-12 Thread Diez B. Roggisch
Nice drawing! -- Regards, Diez B. Roggisch -- http://mail.python.org/mailman/listinfo/python-list

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: 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: 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: 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: 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: uptime for Win XP?

2004-12-12 Thread Peter Hansen
Fredrik Lundh wrote: you're a bit late, aren't you? Or a lot early, perhaps. ;-) for line in data: if line contains "System Up Time": print line what Python version is this? Python 2.7, natch. -- http://mail.python.org/mailman/listinfo/python-list

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 Brad Tilley
Fredrik Lundh wrote: 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? Sorry, lang mix-up: x = "System Up Time" if x in line:

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: 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: 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 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: 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: 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: 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: 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: possible ?

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

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: 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: 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 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: 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: 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: 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: 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: newsgroups

2004-12-12 Thread Egor Bolonev
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? -- http://mail.python.org/mailman/listinfo/python-list

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

2004-12-12 Thread Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
Hi, also ! See : http://pamie.sourceforge.net -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

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: MP3 - VBR - Frame length in time

2004-12-12 Thread Erik Heneryd
Florian Schulze wrote: 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 evaluating each frame. The thing I don't seem to be able to find is th

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: Python mascot proposal

2004-12-12 Thread Steven Bethard
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: Best book on Python?

2004-12-12 Thread Dimitri Tcaciuc
Michael McGarry wrote: Hi, What is the best book covering Python? Michael IMHO, you have to try at least several books. There's no such thing as 'best book' for everybody. It's all very subjective, one book can work for you better than it worked for me. Google for Dive Into Python. Its a free on

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

mailing list welcome welcome msg in wiki suggestion

2004-12-12 Thread Brian van den Broek
Hi all, There have been a few posts over the last month or so expressing a bit of exasperation with the "rising tide of newbie's". (Or, more accurately, the rising tide of questions from newbie's not trying to follow ESR's advice.) A month or so ago (in a thread found here: http://tinyurl.com/5

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

  1   2   >