Re: more than 100 capturing groups in a regex

2005-10-25 Thread Fredrik Lundh
Iain King wrote: > Anyway, back to the OP: in this specific case, the cap of 100 groups in > a RE seems random to me, so I think the rule applies. perhaps in the "indistinguishable from magic" sense. if you want to know why 100 is a reasonable and non-random choice, I suggest checking the RE doc

Re: Newbie question

2005-10-25 Thread Geirr
I obviously didnt read it good enough :) Tnxs anyway for extremly fast response -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting Class Attributes

2005-10-25 Thread Ron Adam
the.theorist wrote: > So that it'll be easier to remember the next time I find myself in the > same situation on a different task, I'll extend the discussion > somewhat. > > Coming from C, I had expected that I'd get a new empty dict every time > the __init__ function ran. Guido (or some other

Re: Setting Class Attributes

2005-10-25 Thread Steve Holden
the.theorist wrote: > So that it'll be easier to remember the next time I find myself in the > same situation on a different task, I'll extend the discussion > somewhat. > > Coming from C, I had expected that I'd get a new empty dict every time > the __init__ function ran. Guido (or some other ben

Re: Setting Class Attributes

2005-10-25 Thread the.theorist
So that it'll be easier to remember the next time I find myself in the same situation on a different task, I'll extend the discussion somewhat. Coming from C, I had expected that I'd get a new empty dict every time the __init__ function ran. Guido (or some other benevolent) had decided to implemen

Re: Embedded Python interpreter, runtime libs, and crashing

2005-10-25 Thread jussij
> It all runs great in the "Debug" configuration, but > everything gets scary when I switch to "Release". My suggestion would be to turn on debug information for the release build. That would at least let you run the release build inside the debugger, allowing you to see the call stack of the off

Embedded Python interpreter, runtime libs, and crashing

2005-10-25 Thread Peter Newman
I'm embedding a Python interpreter into a project, and compiling with MSVC. It all runs great in the "Debug" configuration, but everything gets scary when I switch to "Release". I've read about things that can go wrong when you use the wrong runtime library when compiling a program that uses Pyth

Re: Hi All - Newby

2005-10-25 Thread Michael Tobis
> confusion regarding some of the basics... Reset your brain. This came up recently, and despite there being a pending quibble, I think it's extremely useful to the experienced programmer/new Pythonista: http://effbot.org/zone/python-objects.htm And since Frederik is apparenlty reading this thr

Re: Making "import" *SLIGHTLY* more verbose?

2005-10-25 Thread Bengt Richter
On Tue, 25 Oct 2005 15:34:37 -0700, Steve Juranich <[EMAIL PROTECTED]> wrote: >First of all, just let me say that I'm aware of the "-v" switch for >Python, and I don't want anything nearly that verbose. > >I often long for the following behavior from Python when I'm running >interactively: When a

Dr. Dobb's Python-URL! - weekly Python news and links (Oct 26)

2005-10-25 Thread Cameron Laird
QOTW: "Using Unix for 20+ years probably warps one's perception of what's obvious and what isn't." -- Grant Edwards "... windoze users--despite their unfortunate ignorance, they are people too." -- James Stroud "The Widget Construction Kit (WCK) is an extension API that allows you to imp

Re: Setting Class Attributes

2005-10-25 Thread Bengt Richter
On 25 Oct 2005 15:57:41 -0700, "the.theorist" <[EMAIL PROTECTED]> wrote: > >Bruno Desthuilliers wrote: >> the.theorist a =E9crit : >> > I have a small, simple class which contains a dictionary (and some >> > other stuff, not shown). I then have a container class (Big) that holds >> > some instance

Re: feature request / max size limit on StringIO

2005-10-25 Thread Bengt Richter
On Tue, 25 Oct 2005 14:15:02 -0400, "Clark C. Evans" <[EMAIL PROTECTED]> wrote: >Hello. I've not been able to use cStringIO since I have the need to >ensure that the memory buffers created are bounded within a resonable >limit set by specifications. No, this code does not properly belong >in my

MoinMoin external file link in Mozilla/Firefox

2005-10-25 Thread z0rr0
Anybody noticed problem with getting MoinMoin external file URL to work with Mozilla/Firefox? for example - [file:\\servername\pathname\filename.txt Click to view] or [file:/servername/pathname/filename.htm Click to view] or [file:///%5C%5Cservername%5Cpathname%5Cfilename.pdf Click to view] a

Re: How best to reference parameters.

2005-10-25 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "David Poundall" <[EMAIL PROTECTED]> wrote: > I am writing a scada package that has a significant amount of user > defined parameters stored in text files that I wish to cleanly access > in code. By way of an example, a few lines from the configuration file > woul

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Roedy Green" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Of course he cares. He is a shill. He licks that hand that feeds him. In an indirect sense. The company I work for does get a lot of sales because we are "anyone but Microsoft". So we actually profit from people's

Re: [OT] Re: output from external commands

2005-10-25 Thread Bengt Richter
On Tue, 25 Oct 2005 10:10:39 -0500, Terry Hancock <[EMAIL PROTECTED]> wrote: >On Monday 24 October 2005 09:04 pm, darren kirby wrote: >> quoth the Fredrik Lundh: >> > (using either on the output from glob.glob is just plain silly, of course) >> >> Silly? Sure. os.listdir() is more on point. Never

Re: Read/Write from/to a process

2005-10-25 Thread Bengt Richter
On Tue, 25 Oct 2005 17:32:28 GMT, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On 25 Oct 2005 05:22:20 -0700, "jas" <[EMAIL PROTECTED]> declaimed the >following in comp.lang.python: > >> So it seems there is no good way to handle "interactive" processes on >> windows using python. By interactive

Re: wxListbook layout problem

2005-10-25 Thread SPE - Stani's Python Editor
It is definitely a bug. The same problem also happens with wx.LB_BOTTOM. Tested on WinXP (SP2), python 2.4.1, wxPython 2.6.1.0 Stani -- SPE - Stani's Python Editor http://pythonide.stani.be http://pythonide.stani.be/manual/html/manual.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-25 Thread Roedy Green
On Tue, 25 Oct 2005 15:49:46 -0400, Brian Utterback <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : > Some of those steps were illegal by U.S. >law. There is also the matter of the Bush administration interfering in the DOJ prosecution of Microsoft first thing when they

Re: Microsoft Hatred FAQ

2005-10-25 Thread Roedy Green
On Wed, 26 Oct 2005 02:03:36 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >You don't care that because of Microsoft's neglect, there are millions of >zombie PCs running their sub-standard OS across the world, sending >hundreds of millions of spam

Re: Microsoft Hatred FAQ

2005-10-25 Thread Roedy Green
On Tue, 25 Oct 2005 16:36:37 +0200, "Peter T. Breuer" <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : >> Yes, it certainly is. However, it is also Microsoft's right as a seller >> to refuse discounts to those who also sell competing products. You may not It was not

Re: namespace dictionaries ok?

2005-10-25 Thread Simon Burton
In my case the deeply nested function calls are recursive calls for a tree traversal. This is similar to the visitor design pattern, where the Context class above is the Visitor. The difference is that the Context instance does not "visit" or "act" upon the nodes, but just stores state/context info

Re: Microsoft Hatred FAQ

2005-10-25 Thread Luc The Perverse
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 25 Oct 2005 11:51:02 -0700, David Schwartz wrote: > >> >> "Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>> The first two points are factually wrong, and the third is an op

Re: Log rolling question

2005-10-25 Thread Bengt Richter
On 25 Oct 2005 10:22:24 -0700, "elake" <[EMAIL PROTECTED]> wrote: >Is there a way to do this for a whole calendar month? > Yes, if you can specify exactly what you want to do. E.g., today is 2005-10-25. What date would you like as the earliest to keep for the four months? What if today's date was

Re: Execute C code through Python

2005-10-25 Thread Peter Hansen
Ernesto wrote: > So i generated the .exe file "myFile.exe" > > This is a Windows - text based application. Right now, when I run: > > import subprocess > subprocess.call("myFile") > > the application starts in its own console window. Is there a way for > it to run inside the python interface?

Re: textwidget.tag_bind("name", "", self.donothing) not working

2005-10-25 Thread Steve Holden
shannonl wrote: > Hi all, > > For some reason this bind is calling the donothing function, like it > should, but is then allowing the text to be inserted into the Text > widget. > > Here is the code: > > self.framebody.tag_config("name", underline=1) > self.framebody.tag_bind("name", "", self.do

Re: Hi All - Newby

2005-10-25 Thread Ask
Hi Bruno, I'm simply using the IDLE editor to hand code, then compiling and running. Thanks Pauly "bruno modulix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ask wrote: >> G'day All, >> > (snip) > > Welcome here... > >> I must admit to much confusion regarding some of the bas

Re: Top-quoting defined [was: namespace dictionaries ok?]

2005-10-25 Thread Steven D'Aprano
On Tue, 25 Oct 2005 17:27:55 -0400, Mike Meyer wrote: >> On Tuesday 25 October 2005 00:31, Duncan Booth wrote: >> Their differences in styles, like mine, probably arise from the culture of >> their respective fields. Most, like me, may not even know what the heck you >> are talking about. Also,

Re: Microsoft Hatred FAQ

2005-10-25 Thread Steven D'Aprano
On Tue, 25 Oct 2005 11:51:02 -0700, David Schwartz wrote: > > "Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> The first two points are factually wrong, and the third is an opinion >> based on the concept, as far as I can see, that Microsoft should be >> allo

Re: Would there be support for a more general cmp/__cmp__

2005-10-25 Thread Steve Holden
Steven D'Aprano wrote: > On Tue, 25 Oct 2005 10:09:29 -0400, Christopher Subich wrote: > > By analogy, one can ask, "is the cat inside the box?" and get the answer "No", but this does not imply that therefore the box must be inside the cat. >>> >>> >>>Bad analogy, this doesn't define

Re: Setting Class Attributes

2005-10-25 Thread the.theorist
Bruno Desthuilliers wrote: > the.theorist a écrit : > > I have a small, simple class which contains a dictionary (and some > > other stuff, not shown). I then have a container class (Big) that holds > > some instances of the simple class. When I try to edit the elements of > > the dictionary, all

Re: wxListbook layout problem

2005-10-25 Thread Steve Holden
Andrea Gavana wrote: > Hello Kay, > > >>Core Windows/Contols folder, replace there wx.LB_DEFAULT by wx.LB_RIGHT >>and resize the main window the listbox on the right side moves into the >>area of colored panel. This is a surprise to say the least. Has anyone >>of the GUI specialists an idea how t

Re: How best to reference parameters.

2005-10-25 Thread Jay Parlar
On Oct 25, 2005, at 3:10 PM, David wrote: > > It looks like I am going to have to bite the bullet and use properties. > The following should do what I want. > > class test: > > def __init__(self): > self.__HB = 0 > self.__VPG = 0 > ... FYI, for property to work, your class ha

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: >> "Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> The first two points are factually wrong, and the third is an

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> McDonald's won't sell a Burger King their burger patties. > McDonald's are not in the business of wholesale distribution of burger > patties so your statement is simply sited in the wrong universe of > discourse.

Making "import" *SLIGHTLY* more verbose?

2005-10-25 Thread Steve Juranich
First of all, just let me say that I'm aware of the "-v" switch for Python, and I don't want anything nearly that verbose. I often long for the following behavior from Python when I'm running interactively: When a new module is imported, I'd like the path to the file providing the module to be pri

Re: Top-quoting defined [was: namespace dictionaries ok?]

2005-10-25 Thread Steve Holden
James Stroud wrote: > On Tuesday 25 October 2005 14:27, Mike Meyer wrote: > >>That's your right. Be aware that people will ignore, correct and/or >>complain about you doing so. > > > If I may be a complete ass: That should be "correct and/or complain about > *your* doing so." > You *may* be a

Re: Microsoft Hatred FAQ

2005-10-25 Thread Mike Meyer
Not Bill Gates <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote... >> Not Bill Gates <[EMAIL PROTECTED]> writes: >> > [EMAIL PROTECTED] wrote... >> >> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: >> >> > Heck, I dunno. Like you, I don't even really care all that much. >> >> Yo

Re: Microsoft Hatred FAQ

2005-10-25 Thread Peter T. Breuer
In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: > "Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> The first two points are factually wrong, and the third is an opinion >> based on the concept, as far as I can see, that Microsoft should be >> all

Re: How to statically link Python with ncurses and readline?

2005-10-25 Thread [EMAIL PROTECTED]
What do you mean? A static-only build does somehow exclude that I had static libraries before? -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-25 Thread Peter T. Breuer
In comp.os.linux.misc David Schwartz <[EMAIL PROTECTED]> wrote: > "Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >>> Yes, it certainly is. However, it is also Microsoft's right as a >>> seller >>> to refuse discounts to those who also sell competing products

Re: simple send only command line jabber client in python?

2005-10-25 Thread Christoph Haas
On Tuesday 25 October 2005 23:32, fuzzylollipop wrote: > I want to be able to send jabber messages from an subversion > post-commit hook script. All I need is a simple library to connect to a > server and send a message. > > I looked at all the half-finished and overly complex projects and can't >

Re: Microsoft Hatred FAQ

2005-10-25 Thread Not Bill Gates
[EMAIL PROTECTED] wrote... > Not Bill Gates <[EMAIL PROTECTED]> writes: > > [EMAIL PROTECTED] wrote... > >> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: > >> > Heck, I dunno. Like you, I don't even really care all that much. > >> You don't care that innovation in desktop software ha

Re: Top-quoting defined [was: namespace dictionaries ok?]

2005-10-25 Thread James Stroud
On Tuesday 25 October 2005 14:27, Mike Meyer wrote: > That's your right. Be aware that people will ignore, correct and/or > complain about you doing so. If I may be a complete ass: That should be "correct and/or complain about *your* doing so." James -- James Stroud UCLA-DOE Institute for Geno

Re: How best to reference parameters.

2005-10-25 Thread David Poundall
It looks like I am going to have to bite the bullet and use properties. The following should do what I want. class test: def __init__(self): self.__HB = 0 self.__VPG = 0 def _get_HB(self): return (self.__HB, 'MF1', 0) def _set_HB(self, x): self.__HB = x HB = prope

Re: namespace dictionaries ok?

2005-10-25 Thread Ron Adam
Bengt Richter wrote: > On Tue, 25 Oct 2005 16:20:21 GMT, Ron Adam <[EMAIL PROTECTED]> wrote: >>Or worse, the dictionary would become not functional depending on what >>methods were masked. >> >> >>And this approach reverses that, The dict values will be masked by the >>methods, so the values c

Re: Web based applications are possible with wxPython?

2005-10-25 Thread Michael Ströder
HI! Shameless plug: I'm looking for the opposite way. I'd like to run a web application within a pseudo-browser in wxPython without the need to start a web server. Is that possible with a thin wrapper? Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to statically link Python with ncurses and readline?

2005-10-25 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > Well, I implied that _curses.so and readline.so disappeared as one > would expect, dependencies on libncurses.so and libreadline.so instead > showing up in Python itself. It's very strange that this happens with > ncurses and readline, when both db and Tcl/Tk got linked i

simple send only command line jabber client in python?

2005-10-25 Thread fuzzylollipop
I want to be able to send jabber messages from an subversion post-commit hook script. All I need is a simple library to connect to a server and send a message. I looked at all the half-finished and overly complex projects and can't find anything that fits the bill. What I did find I can't get to w

Re: Top-quoting defined [was: namespace dictionaries ok?]

2005-10-25 Thread Mike Meyer
> On Tuesday 25 October 2005 00:31, Duncan Booth wrote: >> P.S. James, *please* could you avoid top-quoting > James Stroud <[EMAIL PROTECTED]> writes: > I'm sorry if I can't find a dumb terminal for a "VAX" with which to read my > email. Perhaps, if i could, I would understand your frustration a l

How best to reference parameters.

2005-10-25 Thread David Poundall
I am writing a scada package that has a significant amount of user defined parameters stored in text files that I wish to cleanly access in code. By way of an example, a few lines from the configuration file would typically be ... [Plant Outputs] Y0 P1 Pump 1 Pressure Y1 P2 Pu

Re: need some advice on x y plot

2005-10-25 Thread nephish
WE DID IT ! little more tinkering and correcting this diff = start_time - end_time (vrs the other way around) and its working. so many thanks gents, a lot ! -- http://mail.python.org/mailman/listinfo/python-list

Re: grep

2005-10-25 Thread David Isaac
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:: def grep(pattern, *files): search = re.compile(pattern).search for file in files: for index, line in enumerate(open(file)): if search(line): print ":".join((file, str(index+1), line[:-1])

Re: Microsoft Hatred FAQ

2005-10-25 Thread Harold Stevens
In <[EMAIL PROTECTED]> Brian Utterback: [Snip...] > that the laws have been in place since the late 1800's, the consent > decree explicitly and in no uncertain terms informed them of their > violations, and they continued to violate the law even afterward. It's M$ corporate DNA; they literally c

Re: Microsoft Hatred FAQ

2005-10-25 Thread Mike Meyer
Not Bill Gates <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote... >> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: >> > Heck, I dunno. Like you, I don't even really care all that much. >> You don't care that innovation in desktop software has been crippled by >> the actions of

Re: Newbie question: string replace

2005-10-25 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > So how to overwrite the config file directly in script.py instead of > running script.py with two params? Don't overwrite the file directly. Save a copy, then rename it. That way, you don't replace the new version until you know the old version is

Re: [OT] Re: output from external commands

2005-10-25 Thread Mike Meyer
Terry Hancock <[EMAIL PROTECTED]> writes: > I think Mr. Lundh's point was only that the output from glob.glob is already > guaranteed to be strings, so using either '%s'%f or str(f) is superfluous. Just for the record - this was why I asked what the point was in the first place.

Re: security

2005-10-25 Thread Mike Meyer
"Mattia Adami" <[EMAIL PROTECTED]> writes: > Hi to all. > I'm intristing in write a plugin for browsers that can execute python > code. > I know the main problem is security. Many thread were opened about this > in the ng. > I would know if fork python rewriting some library could avoid > problems

Re: Read/Write from/to a process

2005-10-25 Thread Mike Meyer
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > Followed by the Amiga... The Amiga IPC used "message ports" (linked > lists owned by the creating process to which, if "public" [named], other > processes could send message packets). The Amiga port of REXX made use > of message ports as its nat

Re: Tricky import question.

2005-10-25 Thread David Poundall
repr() is a new one on me I am afraid, and I have yet to achieve any decent competance with global and local lists. As you probaly noticed earlier, I managed to bungle my way through this time. However, I will log this thread away for when I next get stuck with a bindings. Thank you Bengt :-)

Re: namespace dictionaries ok?

2005-10-25 Thread Bengt Richter
On Tue, 25 Oct 2005 16:20:21 GMT, Ron Adam <[EMAIL PROTECTED]> wrote: >Duncan Booth wrote: >> Ron Adam wrote: >> >>>James Stroud wrote: >>> Here it goes with a little less overhead: >> >> >> >>>But it's not a dictionary anymore so you can't use it in the same places >>>you would

Re: Web based applications are possible with wxPython?

2005-10-25 Thread Eli Criffield
not quite but close, NX is a compression protical for the X protical, so its a lot more like a java X client then a java VNC client. Eli -- http://mail.python.org/mailman/listinfo/python-list

Re: Tricky import question.

2005-10-25 Thread David Poundall
All I was trying to do with my feeble code attempt, was to return a reference to the imported module so that I could do... result = instanceref.main() where main was a function within the import. Having glanced at the code in the import section of the help files all morning, when I actually sat

Re: textwidget.tag_bind("name", "", self.donothing) not working

2005-10-25 Thread jepler
I'm not sure why Tk behaves this way, but you can observe the same behavior with a "wish" script. It would seem that "break" skips any other scripts associated with item tags, but still proceeds to bindings at the widget level. Using a binding with "break" on the canvas itself may help you get the

Re: Execute C code through Python

2005-10-25 Thread Ernesto
So i generated the .exe file "myFile.exe" This is a Windows - text based application. Right now, when I run: import subprocess subprocess.call("myFile") the application starts in its own console window. Is there a way for it to run inside the python interface? Thanks, -- http://mail.python.

Top-quoting defined [was: namespace dictionaries ok?]

2005-10-25 Thread James Stroud
On Tuesday 25 October 2005 00:31, Duncan Booth wrote: > P.S. James, *please* could you avoid top-quoting Were it not for Steve Holden's providing me with a link off the list, I would have never known to what it is you are referring. I have read some relevant literature to find that this is more

Re: security

2005-10-25 Thread Bruno Desthuilliers
Mattia Adami a écrit : > Hi to all. > I'm intristing in write a plugin for browsers that can execute python > code. > I know the main problem is security. Many thread were opened about this > in the ng. > I would know if fork python rewriting some library could avoid > problems. I.e. one problem is

Re: Setting Class Attributes

2005-10-25 Thread Bruno Desthuilliers
the.theorist a écrit : > I have a small, simple class which contains a dictionary (and some > other stuff, not shown). I then have a container class (Big) that holds > some instances of the simple class. When I try to edit the elements of > the dictionary, all instances obtain those changes; I want

Re: Tricky import question.

2005-10-25 Thread Bengt Richter
On 25 Oct 2005 08:51:08 -0700, "David Poundall" <[EMAIL PROTECTED]> wrote: >This worked ... > >def my_import(name): >mod = __import__(name) >components = name.split('.') >for comp in components[1:]: >mod = getattr(mod, comp) >return mod > >for reasons given here... > >http:

Re: Tricky import question.

2005-10-25 Thread Bengt Richter
On 25 Oct 2005 06:39:15 -0700, "David Poundall" <[EMAIL PROTECTED]> wrote: >importedfiles = {} >for f in FileList > f2 = f.split('.')[0] # strip the .py, .pyc importedfiles[f2] = __import__(f2).main # it sounds like all you want is the above (untested ;-), or # use __import__(f2).m

Re: Microsoft Hatred FAQ

2005-10-25 Thread Martin P. Hellwig
David Schwartz wrote: > It's easy to point to things you think are mistakes and claim that if > you had been in charge of the world, those mistakes would not have been > made. If you are trying to balance completely different possible paths the > universe might have taken, you need to make

Re: Weird import behavior

2005-10-25 Thread Duncan Booth
Tommytrojan wrote: > Duncan, > > thanks for your quick reply. I guess I should have included the output. > I thought I was clear in the error description. > The problem is that I never assign to 'string'. I only reference it (as > the error message correctly states). If you comment out the import

Re: Microsoft Hatred FAQ

2005-10-25 Thread Brian Utterback
David Schwartz wrote: > > Do you think it would be immoral if Microsoft said, "we will only sell > Windows wholesale to dealers who don't sell other operating systems?" That's the crux of the problem, isn't it? When you are a virtual monopoly, it is at least unlawful. The Sherman Anti-tru

Re: Client/Server socket send user input

2005-10-25 Thread jas
I even tried inserting a "\r" or "\r\n" or "\n" to stdout, also tried the same using msvcrt.putch() ...but no luck. I still have to hit enter to get the prompt , where I can then type a command and hit enter. For example, I get this displayed: [example] Microsoft Windows XP [Version 5.1.2600] (C)

Re: need some advice on x y plot

2005-10-25 Thread nephish
tics.append('"%s" %s' % (time.strftime(...), x)) # might need time.localtime(x) for that last term. ok, tried this and it worked. but the first plot is at the last plot of data back to that math mistake i mentioned earlier. so, thanks much, i will be back when i mess around with it some m

textwidget.tag_bind("name", "", self.donothing) not working

2005-10-25 Thread shannonl
Hi all, For some reason this bind is calling the donothing function, like it should, but is then allowing the text to be inserted into the Text widget. Here is the code: self.framebody.tag_config("name", underline=1) self.framebody.tag_bind("name", "", self.donothing) line = '\t%s' % ('sometext

Re: wxListbook layout problem

2005-10-25 Thread Andrea Gavana
Hello Kay, > Core Windows/Contols folder, replace there wx.LB_DEFAULT by wx.LB_RIGHT > and resize the main window the listbox on the right side moves into the > area of colored panel. This is a surprise to say the least. Has anyone > of the GUI specialists an idea how to fix this? Yeah, that's a

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Martin P. Hellwig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Not Bill Gates wrote: >> [EMAIL PROTECTED] wrote... >>> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: >>> Heck, I dunno. Like you, I don't even really care all that much. >>> You don't care that

xml.dom.minidom - parseString - How to avoid ExpatError?

2005-10-25 Thread Gregory Piñero
Hi guys, I was hoping some XML expert could help me make this code work.  Below is sample code with sample XML similar to what I'm dealing with. How can I make the weird characters in the XML not break the parser?  I'll do anything to make this work! (Note: the   broke my parser yesterday but do

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The first two points are factually wrong, and the third is an opinion > based on the concept, as far as I can see, that Microsoft should be > allowed to do anything they like, even if those actions harm others.

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"John-Paul Stewart" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > David Schwartz wrote: >> If nobody wants these operating systems, then it doesn't hurt him not to >> be able to sell them. If people want them, then he could have shown >> Microsoft the door. > > If only 5% want

Re: How to statically link Python with ncurses and readline?

2005-10-25 Thread [EMAIL PROTECTED]
Well, I implied that _curses.so and readline.so disappeared as one would expect, dependencies on libncurses.so and libreadline.so instead showing up in Python itself. It's very strange that this happens with ncurses and readline, when both db and Tcl/Tk got linked in with no fuss. Anyway, I built s

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm hesitant to get into this, but I keep wondering why, if there is > no other competing OS, or not one worth worrying about, the MS > business agreements are so draconian? Why would a company come up with > such heavy handed agreeme

Re: Microsoft Hatred FAQ

2005-10-25 Thread David Schwartz
"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Yes, it certainly is. However, it is also Microsoft's right as a >> seller >> to refuse discounts to those who also sell competing products. You may >> not > No it is not their "right"! That would be a discri

Re: Weird import behavior

2005-10-25 Thread Tommytrojan
Duncan, thanks for your quick reply. I guess I should have included the output. I thought I was clear in the error description. The problem is that I never assign to 'string'. I only reference it (as the error message correctly states). If you comment out the import statement in the except clause

Re: Read/Write from/to a process

2005-10-25 Thread jas
I have setup multiple threads and a queue...which is working pretty good. But I have one other issue...I have a new thread (since it is different issue) here: http://groups.google.com/group/comp.lang.python/browse_frm/thread/ec81d8982d1a0130 if you get chance, would you mind checking that out. T

Re: Newbie question: string replace

2005-10-25 Thread [EMAIL PROTECTED]
So how to overwrite the config file directly in script.py instead of running script.py with two params? A XML file or ConfigParser is appealing but this is part of a legacy system...:( -- http://mail.python.org/mailman/listinfo/python-list

Re: Read/Write from/to a process

2005-10-25 Thread jas
I have setup multiple threads and a queue...which is working pretty good. But I have one other issue...I have a new thread (since it is different issue) here: http://groups.google.com/group/comp.lang.python/browse_frm/thread/ec81d8982d1a0130 if you get chance, would you mind checking that out. T

Re: How to statically link Python with ncurses and readline?

2005-10-25 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > That is, there are no longer any readline.so or _curses.so in lib-dynload, > but instead they are added to Python's shared library dependencies. What is "they" in that sentence? readline.so and _curses.so? I very much doubt that - more likely, libreadline.so and libncu

Re: Microsoft Hatred FAQ

2005-10-25 Thread Martin P. Hellwig
Not Bill Gates wrote: > [EMAIL PROTECTED] wrote... >> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: >> >>> Heck, I dunno. Like you, I don't even really care all that much. >> You don't care that innovation in desktop software has been crippled by >> the actions of the monopoly player

feature request / max size limit on StringIO

2005-10-25 Thread Clark C. Evans
Hello. I've not been able to use cStringIO since I have the need to ensure that the memory buffers created are bounded within a resonable limit set by specifications. No, this code does not properly belong in my application as the modules that use "files" should not have to care about any resourc

Re: Microsoft Hatred FAQ

2005-10-25 Thread Not Bill Gates
[EMAIL PROTECTED] wrote... > On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: > > > Heck, I dunno. Like you, I don't even really care all that much. > > You don't care that innovation in desktop software has been crippled by > the actions of the monopoly player Microsoft? You need to

Setting Class Attributes

2005-10-25 Thread the.theorist
I have a small, simple class which contains a dictionary (and some other stuff, not shown). I then have a container class (Big) that holds some instances of the simple class. When I try to edit the elements of the dictionary, all instances obtain those changes; I want each instance to hold separate

Re: Microsoft Hatred FAQ

2005-10-25 Thread entropy
[EMAIL PROTECTED] wrote... > On Tue, 25 Oct 2005 16:54:13 +, John Wingate wrote: > > > Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >> That would be a good guess, except that Microsoft's predatory and illegal > >> behaviour began long before OS/2 was even planned. It began in the mid > >> 1970

How to statically link Python with ncurses and readline?

2005-10-25 Thread [EMAIL PROTECTED]
Hi I'm trying to build a Python package that I can use on different Linux setups, for this purpose it would be nice to weld external dependencies (libraries) into Python itself. So far I've succeeded in getting Tcl/Tk statically linked in, with the help of Modules/Setup.local, but the same procedur

Re: Newbie question

2005-10-25 Thread jmdeschamps
Geirr wrote: > Hi, ive just started playing around with python and wondered if someone > could poing me in the right way here. > > > I have a xmlrpc server simple script: > > Server script: > import SimpleXMLRPCServer > class tpo: > > def retTPOXML(): > theFile=open('tpo.xml')

SCWEB 0.1 to be released

2005-10-25 Thread Philippe C. Martin
Dear all, I intend to release withing the next very few week the version 0.1 of SCWEB, a cross-platform web authentication platform _mostly_ written in Python and adaptable to most programming languages. SCWEB will come with server modules (cgi), client modules (Firefox extension/plugin and XPCOM

JOB: F/T Python Developer, San Francisco, CA

2005-10-25 Thread techdude27
JOB: F/T Python Developer, San Francisco, CA This is a full-time position. Contractors need not apply. Local candidates only. Responsibilities: - Implement client requirements in Python using our proprietary workflow and app server technology - Interact with clients to shepherd their projects to

distutils - distributing non-python data files

2005-10-25 Thread RickMuller
I really appreciate the ease that the distutils make distributing Python modules. However, I have a question about using them to distribute non-Python (i.e. text) data files that support Python modules. Currently when I have data of this type, I parse it into python objects and make a python module

Re: XML Tree Discovery (script, tool, __?)

2005-10-25 Thread [EMAIL PROTECTED]
just namespace + tag -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >