DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread Jeff Rush
This Saturday we'll be holding our 4th Saturday meeting of the DFW Pythoneers, at the usual location of Nerdbooks.com bookstore in Richardson. For directions, visit the Nerdbooks.com website. We start at 2pm and run until 5pm, and then go out for a group dinner. At this meeting one of our local

Python-URL! - weekly Python news and links (Jun 19)

2007-06-20 Thread Gabriel Genellina
QOTW: Regarding a Java programmer moving to Python, a lot of the mindset change is about the abundant use of built in data types of Python. So a Java programmer, when confronted with a problem, should think 'how can I solve this using lists, dicts and tuples?' (and perhaps also my new favourite,

Re: The Modernization of Emacs

2007-06-20 Thread [EMAIL PROTECTED]
On Jun 19, 9:21 pm, Ed [EMAIL PROTECTED] wrote: Have you ever seen an, Extractmethod, function for emacs? Whereby you highlight some lines of code, press a key, and the code is whisked into its ownmethod, with the appropriatemethodinvocation left in its place. If you could post a link, that'd

Re: Q: listsort and dictsort - official equivalents?

2007-06-20 Thread Steven D'Aprano
On Wed, 20 Jun 2007 02:57:30 +0200, BJörn Lindqvist wrote: It's not true that the sort must complete (or that the whole file must be read for that matter) That would be a really good trick. How are you supposed to know which item comes first until you've seen them all? -- Steven. --

Re: Python's only one way to do it philosophy isn't good?

2007-06-20 Thread Michele Simionato
Douglas Alan wrote: I think that most people who program in Scheme these days don't do it to write practical software. They either do it to have fun, or for academic purposes. On the other hand, most people who program in Python are trying to get real work done. Which is precisely why I

Re: Python's only one way to do it philosophy isn't good?

2007-06-20 Thread Paul Rubin
Michele Simionato [EMAIL PROTECTED] writes: I see Python or C as much better practical implementations of Sussman's quote about minimalism than real Scheme (for an example of real Scheme, I refer for instance to the PLT implementation). Python and C as programming languages are like democracy

Re: HTMLParser.HTMLParseError: EOF in middle of construct

2007-06-20 Thread Rob Wolfe
Sérgio Monteiro Basto wrote: Stefan Behnel wrote: Sérgio Monteiro Basto wrote: but is one single error that blocks this. Finally I found it , it is : td colspan=2align=center if I put : td colspan=2 align=center p = re.compile('align') content = p.sub(' align', content) I

Re: caseless dictionary howto ?

2007-06-20 Thread Steven Bethard
Gabriel Genellina wrote: En Tue, 19 Jun 2007 19:40:10 -0300, Steven Bethard [EMAIL PROTECTED] escribió: Stef Mientki wrote: Evan Klitzke wrote: On 6/19/07, Stef Mientki [EMAIL PROTECTED] wrote: I need to search a piece of text and make all words that are equal (except their case) also

Re: Windows XMLRPC Service

2007-06-20 Thread half . italian
On Jun 19, 12:32 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 19 Jun 2007 14:57:10 -0300, [EMAIL PROTECTED] escribió: #win32event.WAIT_TIMEOUT = 2 --- This just makes the loop never execute because # the WaitFor... part always returns 258 WAIT_TIMEOUT is

Re: caseless dictionary howto ?

2007-06-20 Thread stef
Gabriel Genellina wrote: En Tue, 19 Jun 2007 19:40:10 -0300, Steven Bethard [EMAIL PROTECTED] escribió: Stef Mientki wrote: Evan Klitzke wrote: On 6/19/07, Stef Mientki [EMAIL PROTECTED] wrote: I need to search a piece of text and make all words that are equal (except their case) also

Re: Execute script on remote computer

2007-06-20 Thread Laurent Pointal
Evan Klitzke a écrit : On 6/19/07, Vikas Saini [EMAIL PROTECTED] wrote: I am trying to run the agent on one machine that will execute the script of a remote machine. It's not clear what OS you're using. But if you're running a Unix/Linux system and it's a relatively simple script that you

Re: static python classes ?

2007-06-20 Thread Bruno Desthuilliers
Tom Gur a écrit : Look for @staticmethod inhttp://docs.python.org/lib/built-in-funcs.html Example: class C: @staticmethod def f(arg1, arg2, ...): ... Oops, sorry for the confusion - I've actually meant a static method, and Gerald's answer works fine. FWIW, staticmethods in

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread peter
Just a tad arrogant, don't you think, to put a notice of some local event on an international forum without saying where it is? -- http://mail.python.org/mailman/listinfo/python-list

Re: Help With Better Design

2007-06-20 Thread Steve Howell
--- [EMAIL PROTECTED] wrote: ON = ON OFF = OFF class LightBulb: def __init__(self, initial_state): self.state = initial_state def TurnOn(self): if self.state == OFF: self.state = ON else: print The Bulb Is Already ON!

Re: Python and (n)curses

2007-06-20 Thread peter
For me, introducing similar commands in Python would be by far the biggest single improvement that could be made to the language. If it should be done, it should be done as a compatible subset of curses, IMHO. It has such a long history as the standard GUI toolkit But curses doesn't run

Re: Python IDE

2007-06-20 Thread Evan Klitzke
On 6/19/07, Evan Klitzke [EMAIL PROTECTED] wrote: On 6/19/07, Bjoern Schliessmann [EMAIL PROTECTED] wrote: BartlebyScrivener wrote: VIM *clap-clap* BTW, are there tutorials on the more arcane vim functions that come in handy with Python? I don't know of any vim functions that

Re: Python and (n)curses

2007-06-20 Thread Evan Klitzke
On 6/20/07, peter [EMAIL PROTECTED] wrote: For me, introducing similar commands in Python would be by far the biggest single improvement that could be made to the language. If it should be done, it should be done as a compatible subset of curses, IMHO. It has such a long history as

Re: caseless dictionary howto ?

2007-06-20 Thread Stefan Behnel
Stef Mientki wrote: I need to search a piece of text and make all words that are equal (except their case) also equal in their case, based on the first occurrence. So I'm using a dictionary to store names and attributes of objects. As as I need to search on the caseless name (so I've choosen

Re: Using a switch-like if/else construct versus a dictionary?

2007-06-20 Thread Duncan Booth
asincero [EMAIL PROTECTED] wrote: handle_case = {} handle_case[1] = doCase1() handle_case[2] = doCase2() handle_case[3] = doCase3() handle_case[4] = doCase4() handle_case[5] = doCase5() handle_case[c]() If the switch values are simple integers then a list would be a

Re: static python classes ?

2007-06-20 Thread Diez B. Roggisch
Bjoern Schliessmann wrote: Diez B. Roggisch wrote: With other OOP languages you mean Java. Which does have static methods because they lack the notion of a function by its own, so the shoehorned them into their everything is inside a class-paradigm. ACK, but doesn't C++ have static

Re: Python IDE

2007-06-20 Thread Roland Puntaier
Hi, With a python-enabled VIM it's possible to execute and thus test the python code. I have the following lines in my vimrc. F2 prints the result of a line evaluation on the bottom or in a window named pyout if there. I open pyout with :vert rightb new pyout mapped to F1. F4 does the same on

Re: The Modernization of Emacs

2007-06-20 Thread Giorgos Keramidas
On Tue, 19 Jun 2007 15:53:21 +0200, David Kastrup [EMAIL PROTECTED] wrote: Harry George [EMAIL PROTECTED] writes: I don't mind folks using any editor they want, as long as they are proficient. In those cases, I have no problem doing Extreme Programming with them -- code a bit, save, the other

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Giorgos Keramidas
On Tue, 19 Jun 2007 10:01:35 -0700, Xah Lee [EMAIL PROTECTED] wrote: Here are some Frequently Asked Questions about The Modernization of Emacs. They are slightly lengthy, so i've separated each item per post. The whole article can be found at http://xahlee.org/emacs/modernization.html

Re: Splitting SAX results

2007-06-20 Thread Stefan Behnel
Gabriel Genellina wrote: Forget about SAX. Use ElementTree instead ElementTree is infinitely more flexible and easier to use. See http://effbot.org/zone/element-index.htm That's what I told him/her already :) Rephrasing a famous word: Being faced with an XML problem, you might think Ok, I'll

Re: Python/C API bug (multithreading)

2007-06-20 Thread Nick Craig-Wood
Krzysztof W³odarczyk [EMAIL PROTECTED] wrote: I think I've found a bug in Python/C API and multithreading. You don't state your python version. There is an old bug about a similar issue :- http://mail.python.org/pipermail/python-dev/2005-May/053840.html

Invisible processes in Win2K

2007-06-20 Thread henrik.garbergs
Hi! I'm running a Python program on M$ Windows 2000 as a test monitor. The program should close various processes, mostly Application error-windows, as they are created. This works fine until the screensaver gets active or until I press Ctrl-Alt-Del and choose Lock my computer. At that point,

Re: caseless dictionary howto ?

2007-06-20 Thread stef
Stefan Behnel wrote: Stef Mientki wrote: I need to search a piece of text and make all words that are equal (except their case) also equal in their case, based on the first occurrence. So I'm using a dictionary to store names and attributes of objects. As as I need to search on the

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread Michael Hoffman
peter wrote: Just a tad arrogant, don't you think, to put a notice of some local event on an international forum without saying where it is? It says right in the subject line! DFW. If you don't know what DFW means, then it's probably not your local area. -- Michael Hoffman --

something similar to shutil.copytree that can overwrite?

2007-06-20 Thread Ben Sizer
I need to copy directories from one place to another, but it needs to overwrite individual files and directories rather than just exiting if a destination file already exists. Previous suggestions have focused on looking at the source for copytree, but it has several places where exceptions can be

Re: The Modernization of Emacs

2007-06-20 Thread Gabor Urban
Hi guys... This topic is not relevant in this mailing list. Though some info from an other mailing list. Emacs (and xemacs) runs perfectly well on non-gui environments as well. So keyboard commands are the only efficient way to work with. It is true, Emacs may be a bit antiquated, but it honed

Re: poplib.retr doens't flag message as read

2007-06-20 Thread EuGeNe Van den Bulke
Gabriel Genellina wrote: The POP protocol has no concept of read or unread messages; the LIST command simply shows all existing messages. My mistake, I guess I was confused by the documentation retr( which) Retrieve whole message number which, and set its seen flag. Result is in form

Re: SimplePrograms challenge

2007-06-20 Thread Pete Forman
André [EMAIL PROTECTED] writes: Ok, doctest-based version of the Unit test example added; so much more Pythonic ;-) Sorry for being a bit picky but there are a number of things that I'm unhappy with in that example. 1) It's the second example with 13 lines. Though I suppose that the

Re: Python IDE

2007-06-20 Thread xhm
On Jun 19, 1:39 pm, Tom Gur [EMAIL PROTECTED] wrote: Hi, which IDE would you recommend for a python ? pydev (http://pydev.sourceforge.net) for Eclipse is Ok and has everything you will expect in a commercial IDE, including code refactoring, code intelligence, and a Python debugger. Being a

Non-blocking keyboard read

2007-06-20 Thread [EMAIL PROTECTED]
I am writing a curses application, but the getch() does not seem to give me all I want. Of course, if I press d, it returns an ord(d) and so on. But I want to be able to detect whether alt, shift or ctrl has been pressed also. Shift is normally covered by returning an uppercase character instead

Re: Python's only one way to do it philosophy isn't good?

2007-06-20 Thread Steven D'Aprano
On Tue, 19 Jun 2007 19:22:33 -0700, Paul Rubin wrote: Steven D'Aprano [EMAIL PROTECTED] writes: So, once you've succeeded in your campaign to make Python more like Scheme, what language will you use for getting real work done? And how long will it take before Schemers start agitating for it

Re: something similar to shutil.copytree that can overwrite?

2007-06-20 Thread Justin Ezequiel
On Jun 20, 5:30 pm, Ben Sizer [EMAIL PROTECTED] wrote: I need to copy directories from one place to another, but it needs to overwrite individual files and directories rather than just exiting if a destination file already exists. What version of Python do you have? Nothing in the source would

Re: Python/C API bug (multithreading)

2007-06-20 Thread Krzysztof Włodarczyk
Nick Craig-Wood pisze: Krzysztof W³odarczyk [EMAIL PROTECTED] wrote: I think I've found a bug in Python/C API and multithreading. You don't state your python version. There is an old bug about a similar issue :- http://mail.python.org/pipermail/python-dev/2005-May/053840.html

Re: Python's only one way to do it philosophy isn't good?

2007-06-20 Thread Steven D'Aprano
On Tue, 19 Jun 2007 20:16:28 -0400, Douglas Alan wrote: Steven D'Aprano [EMAIL PROTECTED] writes: On Tue, 19 Jun 2007 17:46:35 -0400, Douglas Alan wrote: I think that most people who program in Scheme these days don't do it to write practical software. They either do it to have fun, or

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread peter
It says right in the subject line! DFW. If you don't know what DFW means, then it's probably not your local area. Precisely -- http://mail.python.org/mailman/listinfo/python-list

Internationalised email subjects

2007-06-20 Thread bugmagnet
I am writing a simple email program in Python that will send out emails containing Chinese characters in the message subject and body. I am not having any trouble getting the email body displayed correctly in Chinese inside the email client, however the email subject and sender name (which are

Packing a simple dictionary into a string - extending struct?

2007-06-20 Thread Jonathan Fine
Hello I want to serialise a dictionary, whose keys and values are ordinary strings (i.e. a sequence of bytes). I can of course use pickle, but it has two big faults for me. 1. It should not be used with untrusted data. 2. I want non-Python programs to be able to read and write these

Re: Q: listsort and dictsort - official equivalents?

2007-06-20 Thread BJörn Lindqvist
On 6/20/07, Gabriel Genellina [EMAIL PROTECTED] wrote: It's not true that the sort must complete (or that the whole file must be read for that matter), Python has cool generators which makes the above possible. That's not possible, the input must be read completely before sorted() can

Re: The Modernization of Emacs

2007-06-20 Thread Bjorn Borud
[Xah Lee [EMAIL PROTECTED]] | | | SIMPLE CHANGES if I were to suggest improvements to Emacs, the things you mention are probably among the last things I'd even consider. the problem with Emacs is not really the nomenclature or the keybindings. the

Re: Internationalised email subjects

2007-06-20 Thread Martin Skou
From: http://docs.python.org/lib/module-email.header.html from email.message import Message from email.header import Header msg = Message() h = Header('p\xf6stal', 'iso-8859-1') msg['Subject'] = h print msg.as_string() Subject: =?iso-8859-1?q?p=F6stal?= /Martin --

Re: SimplePrograms challenge

2007-06-20 Thread Steve Howell
--- Pete Forman [EMAIL PROTECTED] wrote: André [EMAIL PROTECTED] writes: Ok, doctest-based version of the Unit test example added; so much more Pythonic ;-) Sorry for being a bit picky but there are a number of things that I'm unhappy with in that example. Your pickiness is

Re: Q: listsort and dictsort - official equivalents?

2007-06-20 Thread Steve Howell
--- BJörn Lindqvist [EMAIL PROTECTED] wrote: On 6/20/07, Gabriel Genellina [EMAIL PROTECTED] wrote: It's not true that the sort must complete (or that the whole file must be read for that matter), Python has cool generators which makes the above possible. That's not possible,

Re: Packing a simple dictionary into a string - extending struct?

2007-06-20 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Jonathan Fine wrote: I want to serialise a dictionary, whose keys and values are ordinary strings (i.e. a sequence of bytes). Maybe you can use ConfigObj_ or JSON_ to store that data. Another format mentioned in the binary XML article you've linked in your post is

Re: Packing a simple dictionary into a string - extending struct?

2007-06-20 Thread Sridhar Ratna
On 6/20/07, Jonathan Fine [EMAIL PROTECTED] wrote: Hello I want to serialise a dictionary, whose keys and values are ordinary strings (i.e. a sequence of bytes). I can of course use pickle, but it has two big faults for me. 1. It should not be used with untrusted data. 2. I want

Re: Help With Better Design

2007-06-20 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Greetings, I have been working on a little project today to help me better understand classes in Python (I really like Python). I am a self taught programmer and consider myself to fall in the beginner category for sure. It was initially sparked by reading about

Re: Does altering a private member decouple the property's value?

2007-06-20 Thread Bruno Desthuilliers
Ben Finney a écrit : Ethan Kennerly [EMAIL PROTECTED] writes: I really like properties for readonly attributes, Python doesn't have readonly attributes, Err... Ever tried to set a class mro ?-) and to attempt to use properties for that purpose will only lead to confusion. read-only

Re: Using a switch-like if/else construct versus a dictionary?

2007-06-20 Thread asincero
Ahh .. yes of course, you are right. I mis-typed. I like how you defined the dictionary all in one statement, though. I didn't think of doing it that way. -- Arcadio On Jun 19, 4:11 pm, heltena [EMAIL PROTECTED] wrote: asincero ha escrit: def foo(): def doCase1(): pass

Re: Packing a simple dictionary into a string - extending struct?

2007-06-20 Thread Diez B. Roggisch
What about JSON? You can serialize your dictionary, for example, in JSON format and then unserialize it in any language that has a JSON parser (unless it is Javascript). There is an implementation available for python called simplejson, available through easy_install. Diez --

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread Michael Hoffman
peter wrote: It says right in the subject line! DFW. If you don't know what DFW means, then it's probably not your local area. Precisely Precisely what? You complained that the OP didn't provide the location of the event, which he did. You also resorted to needless name-calling as a result

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Bjorn Borud
[Xah Lee [EMAIL PROTECTED]] to be quite honest, your proposal seems to largely be based on ignorance. | A: The terminology “buffer” or “keybinding”, are technical terms | having to do with software programing. The term “keybinding” refers to | the association of a keystroke with a command in a

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread Joe Riopel
Precisely what? You complained that the OP didn't provide the location of the event, which he did. Well, where is DFW? -- http://mail.python.org/mailman/listinfo/python-list

Re: Does altering a private member decouple the property's value?

2007-06-20 Thread Bruno Desthuilliers
Ethan Kennerly a écrit : Hello, There are a lot of Python mailing lists. I hope this is an appropriate one for a question on properties. It is. I am relatively inexperienced user of Python. I came to it to prototype concepts for videogames. Having programmed in C, scripted in Unix

RE: Execute script on remote computer

2007-06-20 Thread Vikas Saini
Thanx for your reply, I have successfully executed the script on a remote machine and store the log file on the local as well as on the remote machine. But one problem what I am facing is How to run 2 or more scripts on remote machine (agent will run on my local machine) and then saving the

Re: Packing a simple dictionary into a string - extending struct?

2007-06-20 Thread John Machin
On Jun 20, 9:19 pm, Jonathan Fine [EMAIL PROTECTED] wrote: Hello I want to serialise a dictionary, whose keys and values are ordinary strings (i.e. a sequence of bytes). I can of course use pickle, but it has two big faults for me. 1. It should not be used with untrusted data. 2. I want

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-20 Thread Bjorn Borud
[Giorgos Keramidas [EMAIL PROTECTED]] | | Educating the user to avoid confusion in this and other cases of made | up, 'user-friendly' descriptions is not a good enough answer. there are two types of user friendly. there's user friendly and then there is beginner friendly which is often

Re: SimplePrograms challenge

2007-06-20 Thread Pete Forman
Steve Howell [EMAIL PROTECTED] writes: 2) assert is not the simplest example of doctest. The style should be add_money([0.13, 0.02]) 0.15 add_money([100.01, 99.99]) 200.0 add_money([0, -13.00, 13.00]) 0.0 That's not clear cut to me. I think vertical

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread Diez B. Roggisch
Joe Riopel wrote: Precisely what? You complained that the OP didn't provide the location of the event, which he did. Well, where is DFW? Google, first hit: The Dallas Ft. Worth Pythoneers They even have their own website. So - what's the fuss about? The BayPIGgies also announce their

Re: caseless dictionary howto ?

2007-06-20 Thread Carsten Haese
On Wed, 2007-06-20 at 11:14 +0200, stef wrote: Stefan Behnel wrote: Serial_HW_Read = the name of a function F = the type of that function (procedure / function / pseudo variable / interrupt /..) ++ = the direction of each parameters, (input / output / input+output ) T = a tupple, containing

Re: The Modernization of Emacs

2007-06-20 Thread Kaldrenon
Just so everyone's clear: Nothing he has said makes much sense, if any. He's talking about advocacy of something unique and powerful by - making it less unique and powerful-. Not merely catering to the lowest common denominator, but promoting something as better -by making it worse-. Who does

Re: SimplePrograms challenge

2007-06-20 Thread Steve Howell
--- Pete Forman [EMAIL PROTECTED] wrote: Steve Howell [EMAIL PROTECTED] writes: 2) assert is not the simplest example of doctest. The style should be add_money([0.13, 0.02]) 0.15 add_money([100.01, 99.99]) 200.0 add_money([0, -13.00, 13.00]) 0.0

Re: Packing a simple dictionary into a string - extending struct?

2007-06-20 Thread Jonathan Fine
Sridhar Ratna [EMAIL PROTECTED] wrote in message What about JSON? You can serialize your dictionary, for example, in JSON format and then unserialize it in any language that has a JSON parser (unless it is Javascript). Thank you for this suggestion. The growing adoption of JSON in Ajax

Re: The Modernization of Emacs

2007-06-20 Thread David Kastrup
Kaldrenon [EMAIL PROTECTED] writes: I'm very, very new to emacs. I used it a little this past year in college, but I didn't try at all to delve into its features. I'm starting that process now, and frankly, the thought of it changing - already- upsets me. I don't feel like the program ought

Re: Internationalised email subjects

2007-06-20 Thread bugmagnet
Thanks Martin, I actually have read that page before. The part that confuses me is the line: h = Header('p\xf6stal', 'iso-8859-1') I have tried using: h = Header(' ', 'GB2312') but when I run the code, I get the following error: UnicodeDecodeError: 'gb2312' codec can't decode bytes in

Re: static python classes ?

2007-06-20 Thread Neil Cerutti
On 2007-06-19, Bjoern Schliessmann [EMAIL PROTECTED] wrote: Diez B. Roggisch wrote: With other OOP languages you mean Java. Which does have static methods because they lack the notion of a function by its own, so the shoehorned them into their everything is inside a class-paradigm. ACK, but

Re: The Modernization of Emacs

2007-06-20 Thread Kaldrenon
On Jun 20, 9:28 am, David Kastrup [EMAIL PROTECTED] wrote: Kaldrenon [EMAIL PROTECTED] writes: I'm very, very new to emacs. I used it a little this past year in college, but I didn't try at all to delve into its features. I'm starting that process now, and frankly, the thought of it

How to code dynamically created methods?

2007-06-20 Thread kj
I've tried a bazillion ways to code dynamically generated methods, to no avail. The following snippet is a very simplified (and artificial) demo of the problem I'm running into, featuring my latest attempt at this. The idea here is to use __getattr__ to trap any attempt to invoke a nonexistent

How to hide a program?

2007-06-20 Thread jvdb
Hi all, I've created a program that receives files and opens the corresponding program (for example adobe acrobat). However, when started, i would like to see nothing of the running program. I only want to see the program that will be opened. Is it possible to start a program 'hidden' or

Re: How to code dynamically created methods?

2007-06-20 Thread kj
Nevermind, I found the problem... Thanks, kj In [EMAIL PROTECTED] kj [EMAIL PROTECTED] writes: I've tried a bazillion ways to code dynamically generated methods, to no avail. The following snippet is a very simplified (and artificial) demo of the problem I'm running into, featuring my

Re: How to hide a program?

2007-06-20 Thread Diez B. Roggisch
jvdb wrote: Hi all, I've created a program that receives files and opens the corresponding program (for example adobe acrobat). However, when started, i would like to see nothing of the running program. I only want to see the program that will be opened. Is it possible to start a program

Re: HTMLParser.HTMLParseError: EOF in middle of construct

2007-06-20 Thread sergio
Rob Wolfe wrote: Sérgio Monteiro Basto wrote: Stefan Behnel wrote: Sérgio Monteiro Basto wrote: but is one single error that blocks this. Finally I found it , it is : td colspan=2align=center if I put : td colspan=2 align=center p = re.compile('align') content = p.sub('

Re: Controlling Firefox with Python

2007-06-20 Thread kyosohma
On Jun 19, 4:35 pm, Méta-MCI [EMAIL PROTECTED] wrote: Hi! See Mozlab: http://dev.hyperstruct.net/mozlab and give a report, please. Thank you in advance. Michel Claveau There seems to be some kind of weird bug with the current version of MozLab. When I use telnet on my Windows XP box, it

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread Cameron Laird
In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Joe Riopel wrote: Precisely what? You complained that the OP didn't provide the location of the event, which he did. Well, where is DFW? Google, first hit: The Dallas Ft. Worth Pythoneers They even have their own

Re: wxPython - embed separate script in panel?

2007-06-20 Thread kyosohma
On Jun 19, 7:28 pm, [EMAIL PROTECTED] wrote: This is a wxPython question.. the wxPython group is pretty much inactive. I have an MDI parent frame and child frame set up. In the child frame, I want to use part of the frame to display the output from a .py that is mainly matplotlib (a graph)

Re: caseless dictionary howto ?

2007-06-20 Thread stef
Carsten Haese wrote: On Wed, 2007-06-20 at 11:14 +0200, stef wrote: Stefan Behnel wrote: Serial_HW_Read = the name of a function F = the type of that function (procedure / function / pseudo variable / interrupt /..) ++ = the direction of each parameters, (input / output / input+output )

SIGSEGV gcmodule.c:241 closing python after module import

2007-06-20 Thread stuffduff
Hi, I have a python extension that works fine while it is running, but when I exit python I get this error: GNU gdb Red Hat Linux (6.5-15.fc6rh) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it

python website

2007-06-20 Thread james_027
hi, what are you list of favorite python website (news, articles, tutorials)? cheers, james -- http://mail.python.org/mailman/listinfo/python-list

Re: How to hide a program?

2007-06-20 Thread jvdb
On 20 jun, 15:59, Diez B. Roggisch [EMAIL PROTECTED] wrote: jvdb wrote: Hi all, I've created a program that receives files and opens the corresponding program (for example adobe acrobat). However, when started, i would like to see nothing of the running program. I only want to see the

Re: The Modernization of Emacs

2007-06-20 Thread Bjorn Borud
[Kaldrenon [EMAIL PROTECTED]] | Just so everyone's clear: | | Nothing he has said makes much sense, if any. (it'd be good if you explicitly specify who he is since pronouns by nature are extremely context sensitive, and in this context an unattentive reader might think you are referring to me.

class attributes data attributes

2007-06-20 Thread james_027
hi everyone, I am now in chapter 5 of Dive Into Python and I have some question about it. From what I understand in the book is you define class attributes data attributes like this in python class Book: total # is a class attribute def __init__(self): self.title # is a data

Re: python website

2007-06-20 Thread kyosohma
On Jun 20, 9:22 am, james_027 [EMAIL PROTECTED] wrote: hi, what are you list of favorite python website (news, articles, tutorials)? cheers, james wxPython.org (and the wxPython wiki) Python.org ActiveState - http://aspn.activestate.com/ASPN/Python/Cookbook/ Charming python series -

Re: stftime %z time conversion character

2007-06-20 Thread sergio
Evan Klitzke wrote: Although it is not present in ANSI C, the GNU version of stftime supports the conversion character %z, which is a time offset from GMT. The four digit time offset is required in RFC 2822 dates/times, and is used by a number of other programs as well. I need to convert

Re: python website

2007-06-20 Thread Martin Skou
The Daily Python-URL http://www.pythonware.com/daily/ -- http://mail.python.org/mailman/listinfo/python-list

Re: SimplePrograms challenge

2007-06-20 Thread Pete Forman
Steve Howell [EMAIL PROTECTED] writes: Feel free to change the page as you see fit, although thanks for discussing it here first. Done. I've moved classes up as unittest depends on it. The changes that I made to classes were: 1) Use new style class. 2) Demonstrate Pythonic use of

Re: Transfer file name input from one .py to another

2007-06-20 Thread Larry Bates
[EMAIL PROTECTED] wrote: How do I transfer the file name which is input in one .py (an MDI parent frame in wxPython) to another .py (an MDI child frame)? The parent gets the file name from the user via a file select dialog, but the child frame is the one that needs to know what file it is

Re: class attributes data attributes

2007-06-20 Thread Diez B. Roggisch
james_027 wrote: hi everyone, I am now in chapter 5 of Dive Into Python and I have some question about it. From what I understand in the book is you define class attributes data attributes like this in python class Book: total # is a class attribute def __init__(self):

Re: How to hide a program?

2007-06-20 Thread Larry Bates
jvdb wrote: Hi all, I've created a program that receives files and opens the corresponding program (for example adobe acrobat). However, when started, i would like to see nothing of the running program. I only want to see the program that will be opened. Is it possible to start a program

business on line follow me !

2007-06-20 Thread jim
hello: madam and sir . we sell all kinds of laptops and digital cam .our product is a quantity best, the price is the lowest in the world, i think you will be interested in our product . thanks a lot! Our Website:http://www.prs-123.com/ Msn: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] thanks for

Re: class attributes data attributes

2007-06-20 Thread Bruno Desthuilliers
james_027 a écrit : hi everyone, I am now in chapter 5 of Dive Into Python and I have some question about it. From what I understand in the book is you define class attributes data attributes like this in python s/data/instance/ class Book: total # is a class attribute def

Re: static python classes ?

2007-06-20 Thread Alex Martelli
Neil Cerutti [EMAIL PROTECTED] wrote: In C++ they are used most often for factory functions, since they conveniently have access to the class's private members, and don't want or need an existing instance. Python seems to have adopted this use-case (ConfigParser, for example), but without a

Python live environment on web-site?

2007-06-20 Thread Thomas Lenarz
Hi all, I was wondering if there was a python-live-environment available on a public web-site similar to the ruby-live-tutorial on http://tryruby.hobix.com/ I would prefer something which allows to paste small scripts into a text-field, to run them on the server, and to be able to read the

ebay

2007-06-20 Thread jim
hello: madam and sir . we sell all kinds of laptops and digital cam .our product is a quantity best, the price is the lowest in the world, i think you will be interested in our product . thanks a lot! Our Website:http://www.prs-123.com/ Msn: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] thanks for

Re: How to hide a program?

2007-06-20 Thread jvdb
On 20 jun, 17:05, Larry Bates [EMAIL PROTECTED] wrote: jvdb wrote: Hi all, I've created a program that receives files and opens the corresponding program (for example adobe acrobat). However, when started, i would like to see nothing of the running program. I only want to see the

RE: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread Looney, James B
Short answer: DFW = Dallas-Fort Worth Longer answer: I'm not pointing fingers or making opinions, I just wanted to point out that after reading Jeff's original email (in its entirity), I found: Jeff wrote: snip at the usual location of Nerdbooks.com bookstore in Richardson. For /snip So, after

subprocess.popen question

2007-06-20 Thread [EMAIL PROTECTED]
I am trying to modify a programming example and I am coming up with two problems... first is that I can't seem to pass along the arguments to the external command (I have been able to do that with the old module and cmd is the command I wish to try) all the output seems to be returned as one line

Re: static python classes ?

2007-06-20 Thread Neil Cerutti
On 2007-06-20, Alex Martelli [EMAIL PROTECTED] wrote: Neil Cerutti [EMAIL PROTECTED] wrote: In C++ they are used most often for factory functions, since they conveniently have access to the class's private members, and don't want or need an existing instance. Python seems to have adopted

Edit Audio Using Python?

2007-06-20 Thread Ultrus
Hello Python Gurus, I picked up a book the other day on Python programming. Python rocks! I'm learning Python as I want to call upon it to handle some intensive tasks from PHP/web server. The top goal right now is automating audio editing using Python. Is it possible? I was able to do this

  1   2   3   >