Re: Straight line detection

2005-09-29 Thread Tim Roberts
"PyPK" <[EMAIL PROTECTED]> wrote: > >Does anyone know of a simple implementation of a straight line >detection algorithm something like hough or anything simpler.So >something like if we have a 2D arary of pixel elements representing a >particular Image. How can we identify lines in this Image. >fo

Re: threads, periodically writing to a process

2005-09-29 Thread Fredrik Lundh
Adam Monsen wrote: >I have a program that, when run, (1) does some task, then (2) prompts > for input: "Press ENTER to continue...", then repeats for about ten > different tasks that each take about 5 minutes to complete. There is no > way to disable this prompt. > > How would I go about writing a

threads, periodically writing to a process

2005-09-29 Thread Adam Monsen
I have a program that, when run, (1) does some task, then (2) prompts for input: "Press ENTER to continue...", then repeats for about ten different tasks that each take about 5 minutes to complete. There is no way to disable this prompt. How would I go about writing a Python program that would per

Re: RELEASED Python 2.4.2 (final)

2005-09-29 Thread Martin v. Löwis
Trent Mick wrote: > It is possible that the python.org installer didn't overwrite the > "python24.dll" in the system directory (C:\WINDOWS\system32). Try doing > this: Even though this is apparently what happened, I'm puzzled as to why it happened: shouldn't the version number of python24.dll in t

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Gregor Horvath
Paul Rubin schrieb: > Gregor Horvath <[EMAIL PROTECTED]> writes: > >>Real open source live example from yesterdays mailinglists: > > > I don't see any use of name mangling in that example. Someone has a problem and tweaks a private variable as a workaround. No python program will rely by defin

pywordnet install problems

2005-09-29 Thread vdrab
hello pythoneers, I recently tried to install wordnet 2.0 and pywordnet on both an ubuntu linux running python 2.4 and a winXP running activePython 2.4.1, and I get the exact same error on both when I try to "from wordnet import *" : running install error: invalid Python installation: unable to o

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Paul Rubin
Gregor Horvath <[EMAIL PROTECTED]> writes: > Real open source live example from yesterdays mailinglists: I don't see any use of name mangling in that example. -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread en.karpachov
On Fri, 30 Sep 2005 06:31:44 +0200 Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > Looks like you must know every one of the base classes of the NotSoSecret, > > whether there is some base class named Secret? And, if so, you must also > > know these classes _implementation_ > > that inform

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Gregor Horvath
Paul Rubin schrieb: > > I don't know of a single program that's actually relying on the > non-enforcement. I've asked for examples but have only gotten > theoretical ones. As far as I can tell, the feature is useless. Real open source live example from yesterdays mailinglists: quick question:

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Bill Mill
On 9/29/05, Tim Leslie <[EMAIL PROTECTED]> wrote: > On 29 Sep 2005 07:24:17 -0700, Xah Lee <[EMAIL PROTECTED]> wrote: > > > Of course, you begin to write things like Java, in three thousand words > > just to state you are a moron. > > > > > > +1 QOTW. > > Tim > -1 XLEGQOTW (Xah Lee Ever Getting

Re: File Upload Script

2005-09-29 Thread Fredrik Lundh
"Chuck" wrote: > Hi, can anyone provide or point me in the direction of a simple python > file upload script? I've got the HTML form part going but simply > putting the file in a directory on the server is what I'm looking for. > Any help would be greatly appreciated. upload how? WebDAV? scp?

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread en.karpachov
On Thu, 29 Sep 2005 20:37:31 -0600 Steven Bethard wrote: > I don't like the idea of having to put this on all sequences. If you > want this, I'd instead propose it as a function (perhaps builtin, > perhaps in some other module). itertools module seems the right place for it. itertools.chain(*

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Paul Rubin
Gregor Horvath <[EMAIL PROTECTED]> writes: > Are the numerous working python open source projects not multi-person > software projects? Even multiple persons that even dont know each > other and can discuss the latest news at the coffee machine? There are not that many such projects being done in

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: >> > Do you ever heard of that funny things named "an interface" and "an >> > implementation"? >> >> the "shared DLL:s ought to work" school of thought, you mean? > > No, the other way around: my app works when I upgrade libraries it depends > on. yeah, because it's only

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > > Looks like you must know every one of the base classes of the NotSoSecret, > > whether there is some base class named Secret? And, if so, you must also > > know these classes _implementation_ > > that information isn't hidden, so there's nothing "you

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Gregor Horvath
Paul Rubin schrieb: > Bill Mill <[EMAIL PROTECTED]> writes: > >>Python is for consenting adults. > > Python might be for consenting adults, but multi-person software > projects are supposed to be done in the workplace, not the bedroom. Are the numerous working python open source projects not mul

File Upload Script

2005-09-29 Thread Chuck
Hi, can anyone provide or point me in the direction of a simple python file upload script? I've got the HTML form part going but simply putting the file in a directory on the server is what I'm looking for. Any help would be greatly appreciated. Thanks, Chuck -- http://mail.python.org/mailman/l

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Looks like you must know every one of the base classes of the NotSoSecret, > whether there is some base class named Secret? And, if so, you must also > know these classes _implementation_ that information isn't hidden, so there's nothing "you must know". finding out is

Re: Moronicity Xha Lee, Jargonizer

2005-09-29 Thread Kay Schluehr
Raymond Hettinger wrote: > James Stroud wrote: > > There needs to be an email filter that, when a thread is begun by a specific > > user . . . it cans every > > message in that thread. > > The tried-and-true solution is both simple and civil, "Don't feed the > trolls." > > > Raymond People like ve

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread en.karpachov
On Thu, 29 Sep 2005 21:05:28 +0200 Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > Do you ever heard of that funny things named "an interface" and "an > > implementation"? > > the "shared DLL:s ought to work" school of thought, you mean? No, the other way around: my app works when I upgra

Weekly Python Patch/Bug Summary

2005-09-29 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 337 open ( +0) / 2947 closed ( +6) / 3284 total ( +6) Bugs: 912 open ( +4) / 5278 closed (+16) / 6190 total (+20) RFE : 195 open ( +1) / 187 closed ( +0) / 382 total ( +1) New / Reopened Patches __ fix for d

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread Fredrik Lundh
David Murmann wrote: > I could not find out whether this has been proposed before (there are > too many discussion on join as a sequence method with different > semantics). So, i propose a generalized .join method on all sequences so all you have to do now is to find the sequence base class, and

Re: RELEASED Python 2.4.2 (final)

2005-09-29 Thread Bugs
Thanks Trent, you called it, it was an errant python24.dll left over from an old ActiveState installation. Trent Mick wrote: [snip] > > It is possible that the python.org installer didn't overwrite the > "python24.dll" in the system directory (C:\WINDOWS\system32). Try doing > this: > [snip] --

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Tony Meyer
> I know nobody wants to do add "white/black-listing", so we can do it > probabilistically. In case it is not obvious, mailings with the words > "jargon" or "moron" and their derrivatives should be flagged as 99.9% > probability for Moronicity Xha Lee, Jargonizer, spam. If spam bayes > can't > fi

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread en.karpachov
On Thu, 29 Sep 2005 16:59:01 +0200 Fredrik Lundh wrote: > as long as you don't cheat, that is: > > # your code > > class Secret: > def __init__(self): > self.__hidden = "very secret value" > > # my code > > from yourcode import Secret > > class Secret(Secret): > def gethidden(

Re: Help with syntax warnings

2005-09-29 Thread Leif K-Brooks
Ivan Shevanski wrote: > is there a way to turn off syntax warnings or just make them not > visible? import warnings warnings.filterwarnings('ignore', category=SyntaxWarning) -- http://mail.python.org/mailman/listinfo/python-list

Re: grouping array

2005-09-29 Thread Michael Spencer
[EMAIL PROTECTED] wrote: > hi if I have an array > > say x = [[2,2,0,0,1,1], > [1,1,0,0,1,1], > [1,1,0,0,1,1]] > I basically want to group regions that are non zero like I want to get > the coordinates of non zero regions..as (x1,y1,x2,y2) > [(0,0,2,1),(0,4,2,5)] which show the t

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread James Stroud
I know nobody wants to do add "white/black-listing", so we can do it probabilistically. In case it is not obvious, mailings with the words "jargon" or "moron" and their derrivatives should be flagged as 99.9% probability for Moronicity Xha Lee, Jargonizer, spam. If spam bayes can't figure this

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread David Murmann
> def join(sep, seq): > return reduce(lambda x, y: x + sep + y, seq, type(sep)()) damn, i wanted too much. Proper implementation: def join(sep, seq): if len(seq): return reduce(lambda x, y: x + sep + y, seq) return type(sep)() but still short enough see you, David. -- ht

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread David Murmann
Steven Bethard wrote: > David Murmann wrote: >> Hi all! >> >> I could not find out whether this has been proposed before (there are >> too many discussion on join as a sequence method with different >> semantics). So, i propose a generalized .join method on all sequences >> with these semantics:

Re: Zope3 Examples?

2005-09-29 Thread Jean-François Doyon
Markus, Zope 3 is mature as a framework, but does not provide much "out of the box". It's a basis upon which to build applications like Plone ... If you are looking for something that provides Plone-like features on top of Zope 3, it doesn't exist (yet). Personally, I'm waiting for this: http

Re: Will Python Be Good For This Type Of Project?

2005-09-29 Thread Jean-François Doyon
> What I'm trying to determine is 1) if it's relatively easy to write a > program to work as an application AND an applet (depending on how it's > called) No. There is no such thing as "Python applets", unless the end user's browser has third-party plug-ins that enable browsers to do so (A Pytho

Re: Help with syntax warnings

2005-09-29 Thread Robert Kern
Peter Hansen wrote: > Ivan Shevanski wrote: > >>Here's a noob question for everyone (I'm not sure if my first message >>got through, is had a "suspicious header" so sorry for double post is >>so), is there a way to turn off syntax warnings or just make them not >>visible? > > Not sure... what'

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread Steven Bethard
David Murmann wrote: > Hi all! > > I could not find out whether this has been proposed before (there are > too many discussion on join as a sequence method with different > semantics). So, i propose a generalized .join method on all sequences > with these semantics: > > def join(self, seq): >

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread David Murmann
David Murmann wrote: > replace the line > result = result + self + T(item) > with > result = result + self + item and of course the line result = T(seq[0]) with result = seq[0] -- http://mail.python.org/mailman/listinfo/python-list

Feature Proposal: Sequence .join method

2005-09-29 Thread David Murmann
Hi all! I could not find out whether this has been proposed before (there are too many discussion on join as a sequence method with different semantics). So, i propose a generalized .join method on all sequences with these semantics: def join(self, seq): T = type(self) result = T()

Re: Help with syntax warnings

2005-09-29 Thread Peter Hansen
Ivan Shevanski wrote: > Here's a noob question for everyone (I'm not sure if my first message > got through, is had a "suspicious header" so sorry for double post is > so), is there a way to turn off syntax warnings or just make them not > visible? Not sure... what's a "syntax warning"? Python

Re: Where to find python c-sources

2005-09-29 Thread Peter Hansen
Dave Benjamin wrote: > Tor Erik Sønvisen wrote: >> I need to browse the socket-module source-code. I believe it's >> contained in the file socketmodule.c, but I can't locate this file... >> Where should I look? > > You can browse the Python CVS tree here: > http://cvs.sourceforge.net/viewcvs.py/

Re: Moronicity Xha Lee, Jargonizer

2005-09-29 Thread Raymond Hettinger
James Stroud wrote: > There needs to be an email filter that, when a thread is begun by a specific > user . . . it cans every > message in that thread. The tried-and-true solution is both simple and civil, "Don't feed the trolls." Raymond -- http://mail.python.org/mailman/listinfo/python-list

Re: RELEASED Python 2.4.2 (final)

2005-09-29 Thread Trent Mick
[Bugs wrote] > I downloaded the 2.4.2 Windows Binary Installer from python.org but when > I try to run python.exe I get the following in the console: > > ActivePython 2.4.1 Build 247 (ActiveState Corp.) based on > Python 2.4.1 (#65, Jun 20 2005, 17:01:55) [MSC v.1310 32 bit (I

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Tim Leslie
On 29 Sep 2005 07:24:17 -0700, Xah Lee <[EMAIL PROTECTED]> wrote: Of course, you begin to write things like Java, in three thousand wordsjust to state you are a moron. +1 QOTW. Tim -- http://mail.python.org/mailman/listinfo/python-list

Re: A quick c.l.p netiquette question

2005-09-29 Thread Peter Hansen
Fredrik Lundh wrote: > Peter Hansen wrote: >>Does it really have to be 158 lines to demonstrate these few issues? I >>for one almost never take the time to dig through 158 lines of someone >>else's code, partly on the assumption that almost any interesting issue >>can be covered (using Python, spe

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread François Pinard
[Delaney, Timothy (Tim)] > Tony Meyer wrote: > > It's made worse because he uses so many words that you'd expect to > > find in legitimate c.l.p messages. > It's this last bit that's the problem. I've got no problems filtering > other types of spam messages to the list, but XL adds so many non-sp

RE: RELEASED Python 2.4.2 (final)

2005-09-29 Thread Delaney, Timothy (Tim)
Bugs wrote: > It says ActivePython 2.4.1 but I downloaded the 2.4.2 binary installer > from python.org and the python.exe executable I'm running is > timestamped 9/28/2005 12:41PM... Any ideas what I'm doing wrong? Visit this site: http://www.catb.org/~esr/faqs/smart-questions.html Then try run

RE: A Moronicity of Guido van Rossum

2005-09-29 Thread Delaney, Timothy (Tim)
Tony Meyer wrote: > I expect that if you look at the clues for such messages, you'll find > that any 'Xah Lee' clues are swamped by lots of 'c.l.p message' > clues. A big problem with filtering mailing lists at the user end > (rather than before the post is accepted) is that the mailing > softwar

Re: RELEASED Python 2.4.2 (final)

2005-09-29 Thread Bugs
I downloaded the 2.4.2 Windows Binary Installer from python.org but when I try to run python.exe I get the following in the console: ActivePython 2.4.1 Build 247 (ActiveState Corp.) based on Python 2.4.1 (#65, Jun 20 2005, 17:01:55) [MSC v.1310 32 bit (Intel)] on win32 Type "

Help with syntax warnings

2005-09-29 Thread Ivan Shevanski
Here's a noob question for everyone (I'm not sure if my first message got through, is had a "suspicious header" so sorry for double post is so), is there a way to turn off syntax warnings or just make them not visible? Thanks, -Ivan _

Re: What python idioms for private, protected and public?

2005-09-29 Thread Michael Schneider
Frederik, Thank you very much for the info on properties, that is very useful. Sorry about the public typo, that should have been protected. I should not post before coffee hits :-) Happy coding, Mike Fredrik Lundh wrote: > Michael Schneider wrote: > > >>1) mark an object as dirty in a setter

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > from yourcode import Secret > > class Secret(Secret): > def gethidden(self): > return self.__hidden Heh, interesting, and it occurs to me that you could do that by accident (A inherits from B, and then something imports B and makes an inhe

Re: Parser suggestion

2005-09-29 Thread Jorge Godoy
François Pinard <[EMAIL PROTECTED]> writes: > [Jorge Godoy] > > > > SPARK (Scanning Parsing And Rewriting Kit) > > > http://pages.cpsc.ucalgary.ca/~aycock/spark/ > > > It looks like it stopped being developed circa 2002... From 2002 to > > now Python had a lot of improvements and I'd rather u

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Tony Meyer
On 30/09/2005, at 9:50 AM, Delaney, Timothy (Tim) wrote: > You have to admit though, he's remarkably good at getting past > Spambayes. Despite classifying *every* Xah Lee post as spam, he still > manages to get most of his posts classified as 0% or 1% spam. I can't believe that people are using c

Re: Parser suggestion

2005-09-29 Thread Jorge Godoy
Steven Bethard <[EMAIL PROTECTED]> writes: > Jorge Godoy wrote: > > From Google I found almost all of those. But do you have any suggestion on > > which one would be better to parse Fortran code? Or more productive to use > > for this task? > [snip] > > > >>PyParsing > >> http://pyparsing.sourc

Re: Parser suggestion

2005-09-29 Thread MrJean1
My recommendation for a project like this would be SimpleParse Some examples are here and /Jean Brouwers -- http://m

Re: Teenagers of busses do *what*?

2005-09-29 Thread Mike C. Fletcher
Steven D'Aprano wrote: ... >He is the equivalent of one of those bored, spoiled teenagers who urinate >on public transport just to see the shocked reactions of other people. You >can't engage him in rational debate. Until we find a way to send electric >shocks through the Internet, all we can do i

Re: attribute error

2005-09-29 Thread Steven D'Aprano
On Thu, 29 Sep 2005 15:57:47 -0400, M.N.A.Smadi wrote: > This has nothing to do with how the argument is passed. It is prob > something wrong with str.pop in my python because when i run python and type > import os > import string > x = '1 2 3' > x.pop() > > i get the following error > Tracebac

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Mike Meyer
Paul Rubin writes: > Bill Mill <[EMAIL PROTECTED]> writes: >> Python is for consenting adults. > > Python might be for consenting adults, but multi-person software > projects are supposed to be done in the workplace, not the bedroom. > So there are still some software con

Soap Question (WSDL)

2005-09-29 Thread Armin
Hey everyone, I am trying to write a web app. that connects to flickr using SOAP. The book 'Dive into python' says I need to have a WSDL file to connect, while the only useful soap related url flickr api (flickr.com/services/api) provides is the following: The SOAP Server Endpoint URL is http://w

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Terry Reedy
"could ildg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >why is rails written in Ruby Because the several people and groups of people who have written web frameworks in Python used other names. Python on Rails just doesn't have the same alliterative zing. >but not Python sinc

Re: Parser suggestion

2005-09-29 Thread François Pinard
[Jorge Godoy] > > SPARK (Scanning Parsing And Rewriting Kit) > > http://pages.cpsc.ucalgary.ca/~aycock/spark/ > It looks like it stopped being developed circa 2002... From 2002 to > now Python had a lot of improvements and I'd rather use a maintained > tool for this project. At least one that

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Steven D'Aprano
On Thu, 29 Sep 2005 10:44:28 -0700, Matt wrote: > OK... your post seems to indicate a belief that everyone else is > somehow incompetent. Sounds a bit like the "I am sane, it is everyone > else who is crazy" concept. Can you suggest a technology or > technologist who, in your expert opinion, has g

Re: [Python-Dev] PEP 350: Codetags

2005-09-29 Thread Josiah Carlson
Micah Elliott <[EMAIL PROTECTED]> wrote: > Josiah> an unofficial spec is sufficient. See koders.com and search > Josiah> for 'fixme' to see some common variants. > > But that's the problem -- there are already a bunch of "unofficial" > specs, which don't serve much purpose as such. It's a cool

Re: Parser suggestion

2005-09-29 Thread Robert Kern
Jorge Godoy wrote: > Hi! > > > I'm needing a parser to retrieve some information from source code -- > including parts of code -- from Fortran, to use in a project with a > documentation system. http://svn.scipy.org/svn/scipy_core/branches/newcore/scipy/f2py2e/crackfortran.py -- Robert Kern [E

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Shane Hathaway
Delaney, Timothy (Tim) wrote: > You have to admit though, he's remarkably good at getting past > Spambayes. Despite classifying *every* Xah Lee post as spam, he still > manages to get most of his posts classified as 0% or 1% spam. Hmm, perhaps he's using steganography. Maybe the emails actually

Re: Parser suggestion

2005-09-29 Thread Steven Bethard
Jorge Godoy wrote: > From Google I found almost all of those. But do you have any suggestion on > which one would be better to parse Fortran code? Or more productive to use > for this task? > [snip] > >>PyParsing >> http://pyparsing.sourceforge.net/ Well, I've never had to parse Fortan code,

Re: PDF Viewer

2005-09-29 Thread Robert Kern
Terry Reedy wrote: > "Pepe Pena" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Google 'python pdf library' and the third hit is > www.reportlab.org/rl_toolkit.html And is for PDF generation, not PDF viewing. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Steven D'Aprano
On Thu, 29 Sep 2005 13:13:51 -0400, Bill Mill wrote: >> But, this post of his shows [Guido's] haughtiness > > +1 IQOTW > > (Ironic Quote Of The Week. Thanks for the laughs, Xah) I swore I wouldn't feed the troll by responding to his post, but the opportunity to quote from "The Princess Bride"

Re: Font management under win32

2005-09-29 Thread Roger Upole
Here's an example of how to use EnumFontFamilies: import win32gui hdc=win32gui.CreateDC('DISPLAY','Display',None) fonts=[] def callback(font, tm, fonttype, fonts): fonts.append(font) print font.lfFaceName return True win32gui.EnumFontFamilies(hdc, None, callback, fonts) The parameters

Re: Where to find python c-sources

2005-09-29 Thread Dave Benjamin
Tor Erik Sønvisen wrote: > I need to browse the socket-module source-code. I believe it's contained in > the file socketmodule.c, but I can't locate this file... Where should I > look? You can browse the Python CVS tree here: http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/ For exa

Re: Where to find python c-sources

2005-09-29 Thread Max M
Erik Max Francis wrote: > Tor Erik Sønvisen wrote: > >> I need to browse the socket-module source-code. I believe it's >> contained in the file socketmodule.c, but I can't locate this file... >> Where should I look? > > The source tarball, available on python.org. Are people really too lazy >

Moronicity Xha Lee, Jargonizer

2005-09-29 Thread James Stroud
Note: I hereby proclaim Xha Lee with a new title: "Moronocity Xha Lee, Jargonizer ('fuck')". There needs to be an email filter that, when a thread is begun by a specific user (Moronicity Xha Lee, Jargonizer ('fuck'), for example), it cans every message in that thread. Any suggestions on how to

Re: PDF Viewer

2005-09-29 Thread Terry Reedy
"Pepe Pena" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Google 'python pdf library' and the third hit is www.reportlab.org/rl_toolkit.html Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list

RE: A Moronicity of Guido van Rossum

2005-09-29 Thread Delaney, Timothy (Tim)
Sherm Pendley wrote: > "Matt" <[EMAIL PROTECTED]> writes: > >> OK... your post seems to indicate a belief that everyone else is >> somehow incompetent. > > Xah's just a troll - best to just ignore him. He posts these diatribes > to multiple groups hoping to start a fight. You have to admit thou

scope of socket.setdefaulttimeout?

2005-09-29 Thread Russell Warren
Does anyone know the scope of the socket.setdefaulttimeout call? Is it a cross-process/system setting or does it stay local in the application in which it is called? I've been testing this and it seems to stay in the application scope, but the paranoid side of me thinks I may be missing something

Re: python's performance

2005-09-29 Thread Fredrik Lundh
> > Have u been used such camera with PIL before? > > > > im_1= Image.fromstring("I", datasize, buf, 'raw', 'I;16') running on a 700 MHz box: c:\> timeit -s "import Image" -s "data = 1344*1024*2*'x'" "im = Image.fromstring('I', (1344, 1024), data, 'raw', 'I;16')" 10 loops, best of 3: 102 msec

RE: A quick c.l.p netiquette question

2005-09-29 Thread Delaney, Timothy (Tim)
Richie Hindle wrote: > I didn't read every one of his 158 lines, but his code is pure > poetry, or possibly triple-distilled evil, depending on your point of > view. 158 lines very well spent either way! I definitely fall in the "pure evil" camp ;) It's been a while since I chuckled at code ...

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Paul Rubin
Bill Mill <[EMAIL PROTECTED]> writes: > Python is for consenting adults. Python might be for consenting adults, but multi-person software projects are supposed to be done in the workplace, not the bedroom. So there are still some software constructs that are simply beyond the bounds of propriety,

Re: grouping array

2005-09-29 Thread George Sakkis
<[EMAIL PROTECTED]> wrote: > hi if I have an array > > say x = [[2,2,0,0,1,1], > [1,1,0,0,1,1], > [1,1,0,0,1,1]] > I basically want to group regions that are non zero like I want to get > the coordinates of non zero regions..as (x1,y1,x2,y2) > [(0,0,2,1),(0,4,2,5)] which show the

Re: Writing EXIF data

2005-09-29 Thread Larry Bates
I've used jhead and wrapped it with os.system call. http://www.sentex.net/~mwandel/jhead/ -Larry Bates Roel Schroeven wrote: > Hi, > > I'm looking into processing images with EXIF data. I've been looking > around and I've found a number of Python modules that read EXIF data, > but I did not fi

Re: python's performance

2005-09-29 Thread Bill Mill
> On 9/29/05, James Hu wrote: > > Hi, > > > > I used python and PIL to capture image from a digital camera, > > It seems like it took more than 1 second to capture a 1280x1024 image, > > however, the demo capturing application from the company (coded by VB) > > took only .2s or less for one image

Re: Parser suggestion

2005-09-29 Thread Jorge Godoy
"Michael J. Fromberger" <[EMAIL PROTECTED]> writes: > There seems to be a great diversity of parsing tools available for > Python programmers. Here are a few suggestions to get you started: >From Google I found almost all of those. But do you have any suggestion on which one would be better to

Re: Where to find python c-sources

2005-09-29 Thread Grant Edwards
On 2005-09-29, Erik Max Francis <[EMAIL PROTECTED]> wrote: > Tor Erik Sønvisen wrote: > >> I need to browse the socket-module source-code. I believe it's >> contained in the file socketmodule.c, but I can't locate this >> file... Where should I look? > > The source tarball, available on python.org.

Re: pyMinGW support for Python 2.4.2 (final) is available

2005-09-29 Thread Do Re Mi chel La Si Do
Hi ! No problem for me, with IE-6 + FlashGet (just to choose right-click + record target) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess problem

2005-09-29 Thread Do Re Mi chel La Si Do
Hi ! Thank you very much. With your tip, this script : import os p = os.popen4(r'cmd /k') p[0].write('dir *.bat /B\r\n') p[0].flush() p[0].write('dir *.cfg \r\n') p[0].flush() p[0].write('exit\r\n') p[0].flush() print ''.joi

Re: attribute error

2005-09-29 Thread Steve Holden
Mike Meyer wrote: > In <[EMAIL PROTECTED]>, M.N.A.Smadi <[EMAIL PROTECTED]> typed: > >>This has nothing to do with how the argument is passed. It is prob >>something wrong with str.pop in my python because when i run python and type >>import os >>import string >>x = '1 2 3' >>x.pop() >> >>i get

Re: zlib decode fails with -5

2005-09-29 Thread Paul Watson
"ncf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I don't mean this harshly, but have you tried recompressing the data to > see if you may have had a bad data set? > > If it still fails, then I'm really not sure why/how zlib decides that > there isn't enough room in the output buf

Re: Parser suggestion

2005-09-29 Thread Michael J. Fromberger
In article <[EMAIL PROTECTED]>, Jorge Godoy <[EMAIL PROTECTED]> wrote: > I'm needing a parser to retrieve some information from source code -- > including parts of code -- from Fortran, to use in a project with a > documentation system. > > Any recommendations on a Python app or parser that I co

Re: Where to find python c-sources

2005-09-29 Thread Michael J. Fromberger
In article <[EMAIL PROTECTED]>, "Tor Erik Sønvisen" <[EMAIL PROTECTED]> wrote: > Hi > > I need to browse the socket-module source-code. I believe it's contained in > the file socketmodule.c, but I can't locate this file... Where should I > look? I recommend you look in the "Modules" subdirect

Re: Where to find python c-sources

2005-09-29 Thread Erik Max Francis
Tor Erik Sønvisen wrote: > I need to browse the socket-module source-code. I believe it's contained in > the file socketmodule.c, but I can't locate this file... Where should I > look? The source tarball, available on python.org. Are people really too lazy to do elementary research on Google?

Parser suggestion

2005-09-29 Thread Jorge Godoy
Hi! I'm needing a parser to retrieve some information from source code -- including parts of code -- from Fortran, to use in a project with a documentation system. Any recommendations on a Python app or parser that I could use for that? Thanks, -- Jorge Godoy <[EMAIL PROTECTED]> -- h

Re: Dynamic character substitution.

2005-09-29 Thread William Park
John Bausano <[EMAIL PROTECTED]> wrote: > Hello all, > > > > I've been using Ansys which is a commercial FEA package which can be > controlled through its own scripting language they call APDL. Now I'm > trying to write some stand alone code in Python to supplement my current > efforts. > >

Re: Simple Dialogs

2005-09-29 Thread William Park
[EMAIL PROTECTED] wrote: > I'm looking for a lightweight dialog boxes from Python. > JavaScript uses: alert(), confirm() and prompt() > VB uses: MsgBox() and InputBox() > EasyGui seemed perfect, but a "Hello World" application takes nearly a > minute to execute after the program has been compiled b

Re: xml.sax removing newlines from attribute value?

2005-09-29 Thread Grant Edwards
On 2005-09-29, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >>> http://www.w3.org/TR/REC-xml/#AVNormalize >> >> I can't quite find it in the BNF, but I take it that chr(10) >> isn't really allowed in XML attribute strings. IOW, the file >> generate by Trolltech's app is broken. > > it's allowed,

Re: xml.sax removing newlines from attribute value?

2005-09-29 Thread Fredrik Lundh
Grant Edwards wrote: >> http://www.w3.org/TR/REC-xml/#AVNormalize > > I can't quite find it in the BNF, but I take it that chr(10) > isn't really allowed in XML attribute strings. IOW, the file > generate by Trolltech's app is broken. it's allowed, but the parser must not pass it on to the a

Re: User-defined augmented assignment

2005-09-29 Thread Paddy
I thought along these lines: It is an augmented ASSIGNMENT. (It even has an equals sign in it). tuples are immutable so you should not be able to assign to one of its elements. - So there is no problem for me - I shouldn't be messing with an element of an immutable type! - Cheers, Paddy. --

Re: attribute error

2005-09-29 Thread Mike Meyer
In <[EMAIL PROTECTED]>, M.N.A.Smadi <[EMAIL PROTECTED]> typed: > This has nothing to do with how the argument is passed. It is prob > something wrong with str.pop in my python because when i run python and type > import os > import string > x = '1 2 3' > x.pop() > > i get the following error > T

Writing EXIF data

2005-09-29 Thread Roel Schroeven
Hi, I'm looking into processing images with EXIF data. I've been looking around and I've found a number of Python modules that read EXIF data, but I did not find a module for writing EXIF data. Does anybody know of such a beast? -- If I have been able to see further, it was only because I stood

Re: PyWin SendMessage

2005-09-29 Thread g.franzkowiak
Thomas Heller schrieb: > "g.franzkowiak" <[EMAIL PROTECTED]> writes: > > >>Thomas Heller schrieb: >> >>>"g.franzkowiak" <[EMAIL PROTECTED]> writes: >>> >>> >>> Hello everybody, I've tryed to use an interprocess communication via SendMessage on Windows. Unfortunately, nothing

Re: attribute error

2005-09-29 Thread M.N.A.Smadi
This has nothing to do with how the argument is passed. It is prob something wrong with str.pop in my python because when i run python and type import os import string x = '1 2 3' x.pop() i get the following error Traceback (most recent call last): File "", line 1, in ? AttributeError: 'str' o

Where to find python c-sources

2005-09-29 Thread Tor Erik S�nvisen
Hi I need to browse the socket-module source-code. I believe it's contained in the file socketmodule.c, but I can't locate this file... Where should I look? regards tores -- http://mail.python.org/mailman/listinfo/python-list

Re: attribute error

2005-09-29 Thread Mike Meyer
In <[EMAIL PROTECTED]>, M.N.A.Smadi <[EMAIL PROTECTED]> typed: > HI; > > I am having the following error: > > AttributeError: 'str' object has no attribute 'pop' > > am using Python 2.3.4 and am importing the following libraries: > > import sys, os, inspect > from Asterisk import Manager, Base

  1   2   3   >