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 : > >> >> if I put : > >> >> > >> p = re.compile('"align') > >> content = p.sub('" align', content) > >> > >> I can parse the html

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

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

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

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 scri

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, stati

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 A

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 does

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

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

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 choo

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 wo

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++ hav

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,

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

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 That's what I told him/her already :) Rephrasing a famous word: Being faced with an XML problem, you might think "Ok,

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 http://sourceforge.net/tracker/i

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 poin

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 o

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 -- http://mail.py

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 instea

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 agitat

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 w

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

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 ha

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 also

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 dictionarie

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()

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 prob

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

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 p

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

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 `AS

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

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.

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

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 -- http://mail.p

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 r

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 Uni

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 SING

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

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 m

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

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, c

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 tha

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

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 ou

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 positi

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

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

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 minimized

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

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 pr

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 : >> >> > >> if I put : >> >> > >> >> >> p = re.compile('"align') >> >> content = p.sub('" align', conten

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

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 eve

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 gra

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 /

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 and/

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

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 t

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 attri

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 w

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__

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 pro

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 ever

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 >

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 withou

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 produ

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 ever

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

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: > at the usual location of Nerdbooks.com bookstore in Richardson. For So, after looking

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 >

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 directl

Re: How to hide a program?

2007-06-20 Thread Thorsten Kampe
* jvdb (Wed, 20 Jun 2007 08:22:01 -0700) > The thing is, i don't want to see anything of my program, just the > launched program. > I already have the program working. But when i create an executable of > it with py2exe and start it, i don't want to see that it is running, > perhaps just in the sys

QPainter

2007-06-20 Thread luca72
Hello using qt3 i do the follow for paint some line in a frame gr = QPainter(self.frame3) gr drawLine(30,10,30,490) and the line is draw. Whit qt4 : gr = QtGui.QPainter(self.frame3) #gr.setPen(QtGui.QPen(QtCore.Qt.black, 1, QtCore.Qt.SolidLine)) gr.drawLine(30,10,30,490) and nothing is draw bu

Re: QPainter

2007-06-20 Thread Phil Thompson
On Wednesday 20 June 2007 4:44 pm, luca72 wrote: > Hello > using qt3 i do the follow for paint some line in a frame > > gr = QPainter(self.frame3) > gr drawLine(30,10,30,490) > and the line is draw. > > Whit qt4 : > gr = QtGui.QPainter(self.frame3) > #gr.setPen(QtGui.QPen(QtCore.Qt.black, 1, QtCo

Re: How to hide a program?

2007-06-20 Thread David Wahler
On 6/20/07, jvdb <[EMAIL PROTECTED]> wrote: > The thing is, i don't want to see anything of my program, just the > launched program. > I already have the program working. But when i create an executable of > it with py2exe and start it, i don't want to see that it is running, > perhaps just in the

Re: SimplePrograms challenge

2007-06-20 Thread Steve Howell
--- Pete Forman <[EMAIL PROTECTED]> wrote: > 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 we

Re: static python classes ?

2007-06-20 Thread Neil Cerutti
On 2007-06-20, Neil Cerutti <[EMAIL PROTECTED]> wrote: > 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'

  1   2   3   >