Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Antoon Pardon
Op 2005-10-03, George Sakkis schreef <[EMAIL PROTECTED]>: > "Michael" <[EMAIL PROTECTED]> wrote: > >> James A. Donald wrote: >> > On Sun, 02 Oct 2005 17:11:13 -0400, Jean-Francois Doyon >> > James A. Donald: >> >> > Surely that means that if I misspell a variable name, my program will >> >> > mys

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

2005-10-03 Thread Antoon Pardon
Op 2005-09-30, Steven D'Aprano schreef <[EMAIL PROTECTED]>: > On Fri, 30 Sep 2005 06:52:50 +, Antoon Pardon wrote: > >> Op 2005-09-29, Bill Mill schreef <[EMAIL PROTECTED]>: >>> >>> But, if your users can't figure out that they shouldn't be changing >>> the variable called t._test__i without ex

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

2005-10-03 Thread Antoon Pardon
Op 2005-09-30, Steve Holden schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> Op 2005-09-30, Steve Holden schreef <[EMAIL PROTECTED]>: >> >>>Antoon Pardon wrote: >>> Op 2005-09-29, Bill Mill schreef <[EMAIL PROTECTED]>: >But, if your users can't figure out that they shouldn'

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

2005-10-03 Thread Paul Rubin
"El Pitonero" <[EMAIL PROTECTED]> writes: > The thing is, there are two sides to every coin. Features surely can > be viewed as "goodies", or they can be viewed as "handcuffs". Let's see, say I'm a bank manager, and I want to close my cash vault at 5pm today and set its time lock so it can't be op

Re: Bwidget for tkinter

2005-10-03 Thread anil . pundoor
thanks u man. i am new to tk inter. i tried installing the lib. but while running the demo script am getting following error. python sam.py Traceback (most recent call last): File "sam.py", line 1, in ? import bwidget, Tkinter, sys, os File "/usr/local/lib/python2.2/site-packages/bwidget/_

bwidget problem

2005-10-03 Thread anil . pundoor
hi i tried installing the bwidget lib . but while running the demo script am getting following error. python sam.py Traceback (most recent call last): File "sam.py", line 1, in ? import bwidget, Tkinter, sys, os File "/usr/local/lib/python2.2/site-packages/bwidget/__init__.py", line 149, i

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

2005-10-03 Thread Paul Rubin
Paul Rubin writes: > def countdown(): > n = 3 > while n > 0: >yield n Bah, ommitted a line: def countdown(): n = 3 while n > 0: yield n n -= 1 -- http://mail.python.org/mailman/listinfo/python-list

Re: Bwidget for tkinter

2005-10-03 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > thanks u man. i am new to tk inter. i tried installing the lib. but > while running the demo script am getting following error. > > python sam.py > Traceback (most recent call last): > File "sam.py", line 1, in ? > import bwidget, Tkinter, sys, os > File "/usr/lo

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

2005-10-03 Thread Bengt Richter
On 03 Oct 2005 00:22:22 -0700, Paul Rubin wrote: >"El Pitonero" <[EMAIL PROTECTED]> writes: >> The thing is, there are two sides to every coin. Features surely can >> be viewed as "goodies", or they can be viewed as "handcuffs". > >Let's see, say I'm a bank manager, and

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Duncan Booth
Antoon Pardon wrote: > Well I'm a bit getting sick of those references to standard idioms. > There are moments those standard idioms don't work, while the > gist of the OP's remark still stands like: > > egold = 0: > while egold < 10: > if test(): > ego1d = egold + 1 > Oh come on.

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-03 Thread Volker Grabsch
Fredrik Lundh wrote: > /... snip comment that the natural order is C, X, Y and that programmers that > care about readable code will probably want to be extremely careful with this > new feature .../ That's also my opinion, but OTOH, Guido's syntax is more close to the syntax of list comprehension

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

2005-10-03 Thread Antoon Pardon
Op 2005-09-30, Steven D'Aprano schreef <[EMAIL PROTECTED]>: > On Fri, 30 Sep 2005 07:37:14 +, Antoon Pardon wrote: > >> Well I have the following reasons not to like the current python way: >> >> 1) Beginning all your private variables with an underscore is like >> starting all your integers w

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

2005-10-03 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> > Privilege separation is considered a good coding practice. How does >> > Python help it? >> With conventions and name mangling. Which are only slightly less >> effective than the C++/Java technic for doing

windows service problem

2005-10-03 Thread JackPhil
i code a very simple web server with python, and i want it should run as service on WindowsXP. the problem is i can run the service in debug mode, and it seems works fine(i can connect the server with browser), but when i start the service in the services control panel, i can't connect the server,

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

2005-10-03 Thread Antoon Pardon
Op 2005-09-30, Rocco Moretti schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: > >>>What if the class author removes a non-private variable or changes a >>>method's documented parameters in the next version of the class, because >>>he think it'll work better, or just because he can? >> >> Chan

cspython on Windows?

2005-10-03 Thread horton_brian
Looking around the web I get the impression development of cspython hasn't kept up with the development of Crystalspace itself, but is it possible without rebuilding the whole of Crystalspace from source, to install cspython on Windows so as to access the Crystalspace runtime environment I've insta

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

2005-10-03 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > > That's not what privilege separation means. It means that the > > privileged objects stay secure even when the unprivileged part of the > > program is completely controlled by an attacker. > > In which case, what's "private" got to do with this? The exam

Re: windows service problem

2005-10-03 Thread fraca7
JackPhil a écrit : > the problem is i can run the service in debug mode, and it seems works > fine(i can connect the server with browser), but when i start the > service in the services control panel, i can't connect the server, the > server seems not start, and i can't stop the service. Make sur

Re: Not defined

2005-10-03 Thread Richie Hindle
[Rob] > >>> from cgkit import * > >>> Sphere() > Traceback (most recent call last): > File "", line 1, in ? > NameError: name 'Sphere' is not defined Do you have a file of your own called cgkit.py? You're probably importing that rather than the real thing. Try this: >>> import cgkit >>> prin

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Antoon Pardon
Op 2005-10-03, Duncan Booth schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: > >> Well I'm a bit getting sick of those references to standard idioms. >> There are moments those standard idioms don't work, while the >> gist of the OP's remark still stands like: >> >> egold = 0: >> while egol

Re: struct.unpack

2005-10-03 Thread g.franzkowiak
Peter Otten schrieb: > g.franzkowiak wrote: > > >>tmpList = list(dataObject)[:4]) >>obj = tmpList[0]+tmpList[1]+tmpList[2]+tmpList[3]. > > > Have you tried just > > obj = dataObject[:4] > > without the intermediate list? If that failed, can you tell us the type of > the dataObject? E. g.

Load PDF

2005-10-03 Thread Pepe Pena
Hello,   I am attempting to load a pdf file programatically within Adobe Reader using the Adobe Acrobat 7.0 Browser Control Type Library.  If I run this code PythonWin terminates abruptly, can anyone suggest any changes I should make to the following lines of code, thanks.   import win32com.clien

Re: Unicode charmap decoders slow

2005-10-03 Thread Martin v. Löwis
Tony Nelson wrote: > Is there a faster way to decode from charmaps to utf-8 than unicode()? You could try the iconv codec, if your system supports iconv: http://cvs.sourceforge.net/viewcvs.py/python-codecs/practicecodecs/iconv/ Regards, Martin -- http://mail.python.org/mailman/listinfo/python-l

Re: Python based unacceptable language filter

2005-10-03 Thread Frithiof Andreas Jensen
"David Pratt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. Is anyone aware of any python based unacceptable language filter > code to scan and detect bad language in text from uploads etc. > > Many thanks. > David Look up Spambayes - if you can filter on terms like "dear fri

Re: windows service problem

2005-10-03 Thread JackPhil
fraca7 wrote: > > Make sure it doesn't output anything to stdout or stderr, I've run into > problems with that. I always include this kind of code in NT services: > > class Devnull: > def write(self, bf): > pass > def close(self): > pass > def flush(self): >

Problem with slices.

2005-10-03 Thread Antoon Pardon
I'm for the moment writing two classes. A table, which is like a list, but can start at any integer. A tree which is like a dictionary, but will iterate over the keys in sorted order. The problem is that I would like to implemet slices but, that seems to be impossible with how slices are impleme

Re: struct.unpack

2005-10-03 Thread Peter Otten
g.franzkowiak wrote: > The dataObject was read from a named pipe as an byte stream > > state, dataObject = win32file.ReadFile(handle, nbytes, None) > print repr(dataObject) > ==> '\x01\x02\x03\x04\x00\x00\x00\x00\x00\x00\x0. > > With Frederiks help operates this fine I do not doubt that. M

Re: Problem with slices.

2005-10-03 Thread Peter Otten
Antoon Pardon wrote: > I'm for the moment writing two classes. > > A table, which is like a list, but can start at any integer. > > A tree which is like a dictionary, but will iterate over the > keys in sorted order. > > The problem is that I would like to implemet slices but, that > seems to b

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-03 Thread Antoon Pardon
Op 2005-09-30, Sam schreef <[EMAIL PROTECTED]>: > This is a MIME GnuPG-signed message. If you see this text, it means that > your E-mail or Usenet software does not support MIME signed messages. > The Internet standard for MIME PGP messages, RFC 2015, was published in 1996. > To open this message

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

2005-10-03 Thread Paul Rubin
[EMAIL PROTECTED] (Bengt Richter) writes: > Would you want to outlaw 'None' as an attribute name? > Python seems to be straddling the fence at this point: > >>> c.None = 'c.None' > SyntaxError: assignment to None Heehee, I think that's just a compiler artifact, the lexer is treating None as a ke

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Duncan Booth
Antoon Pardon wrote: > A language where variable have to be declared before use, would allow > to give all misspelled (undeclared) variables in on go, instead of > just crashing each time one is encounterd. Wrong. It would catch at compile-time those misspellings which do not happen to coincide

Finding the Process Path

2005-10-03 Thread Peck, Jon
I have Python code running in an application, and I would like to find the full path of the process executable where it is running.  I can do this with win32api.GetModuleFileName(0) on Windows, but I would like a solution that uses only standard modules and works cross platform.  Any sugges

Re: Automating, Building, Testing and Deploying to Production Server

2005-10-03 Thread Benji York
yoda wrote: > I realize I'm losing so much time I could spend more productively. I'd > therefore like to know the different approaches you guys employ to > deploy builds from your staging servers (or laptops:) to the production > server in an automated repeatable safe manner. > How do you automate

Re: Python based unacceptable language filter

2005-10-03 Thread Andrew Gwozdziewycz
On Oct 2, 2005, at 9:45 PM, Nigel Rowe wrote: > David Pratt wrote: > > >> Hi. Is anyone aware of any python based unacceptable language filter >> code to scan and detect bad language in text from uploads etc. >> >> Many thanks. >> David >> > > You might be able to adapt languagetool. > http://ww

Reply-To header

2005-10-03 Thread Andrew Gwozdziewycz
Is it just me, or does python-list@python.org not send with a Reply- To header? --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://ihadagreatview.org http://plasticandroid.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the Process Path

2005-10-03 Thread Benji York
Peck, Jon wrote: > I have Python code running in an application, and I would like to find > the full path of the process executable where it is running. Like this? >>> import sys >>> sys.executable '/usr/bin/python' -- Benji York -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the Process Path

2005-10-03 Thread gene tani
other ways to get at info: if sys.hexversion > 0x010502F0: sys.versioninfo, version, etc. platform.architecture, processor etc. distutils.sysconfig.get_makefile_filename( ) Benji York wrote: > Peck, Jon wrote: > > I have Python code running in an application, and I would like to find > > the

Re: Reply-To header

2005-10-03 Thread Richie Hindle
[Andrew] > Is it just me, or does python-list@python.org not send with a Reply- > To header? It's not just you. I don't get one either. -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Python based unacceptable language filter

2005-10-03 Thread David Pratt
Hi. Thank you for the links. I am looking for something that would function in a similar way to Yahoo's filter for it's message boards. Perhaps I should have used the term profanity instead of unacceptable language. I am not concerned about correcting sentence structure or poor grammar. I

Re: Python based unacceptable language filter

2005-10-03 Thread gene tani
Good question, but Y'know, i don't think i'm the only one using a threaded mail reader. Pls don't hijack others' threads. David Pratt wrote: > Hi. Is anyone aware of any python based unacceptable language filter > code to scan and detect bad language in text from uploads etc. > > Many thanks. >

about pyopengl

2005-10-03 Thread shanjunxu
I am a chinese boy,my english is not good,so i don not know how to tell you about my question,i hope you can understand what i say. I like python, and now i using pyopengl to draw three-dimensional. but how can i use mouse to control objects?such as selecting object.I know a function( glSelectBuffe

about pyopengl

2005-10-03 Thread shanjunxu
I am a chinese boy,my english is not good,so i don not know how to tell you about my question,i hope you can understand what i say. I like python, and now i using pyopengl to draw three-dimensional. but how can i use mouse to control objects?such as selecting object.I know a function( glSelectBuffe

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-03 Thread Christophe
Michael a écrit : > Rocco Moretti wrote: > > >>That is, what would happen with the following constructs: >> >>A if B else C if D else F >>A if B if C else D else F > > > The correct answer should be the person who wrote it would get told off > for writing code that a person reading would have n

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread bruno modulix
James A. Donald wrote: > I am contemplating getting into Python, which is used by engineers I > admire - google and Bram Cohen, but was horrified "horrified" ??? Ok, so I'll give you more reasons to be 'horrified': - no private/protected/public access restriction - it's just a matter of conventi

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread bruno modulix
James A. Donald wrote: > James A. Donald: > >> > Surely that means that if I misspell a variable name, my program will >> > mysteriously fail to work with no error message. > > > On Sun, 02 Oct 2005 17:11:13 -0400, Jean-François Doyon > >>No, the error message will be pretty clear actually :)

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread bruno modulix
[EMAIL PROTECTED] wrote: > The easiest way to avoid this problem (besides watching for NameError > exceptions) is to use an editor that has automatic name completion. > Eric3 is a good example. So, even though in theory it could be an > issue, I rarely run into this in practice. I don't use emacs

Re: Reply-To header

2005-10-03 Thread Roel Schroeven
Richie Hindle wrote: > [Andrew] > >>Is it just me, or does python-list@python.org not send with a Reply- >>To header? > > > It's not just you. I don't get one either. Indeed, and that's by design: http://www.unicom.com/pw/reply-to-harmful.html -- If I have been able to see further, it was o

RE: Finding the Process Path

2005-10-03 Thread Peck, Jon
Thanks, but this doesn't tell me what I am looking for. I am looking for the path for the current process (which will not be the Python interpreter). I see, though, that this is available as sys.executable Regards, Jon Peck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROT

Re: sorting tuples...

2005-10-03 Thread nidhog
Steve Holden wrote: > Dan Sommers wrote: > > On 27 Sep 2005 19:01:38 -0700, > > [EMAIL PROTECTED] wrote: > > > > > >>with the binary stuff out of the way, what i have is this string data: > > > > > >>20050922 # date line > >>mike > >>mike's message... > >>20040825 # date line > >>jeremy > >>jeremy

Re: Reply-To header

2005-10-03 Thread Ben Finney
Richie Hindle <[EMAIL PROTECTED]> wrote: > [Andrew] > > Is it just me, or does python-list@python.org not send with a > > Reply-To header? > > It's not just you. I don't get one either. Excellent! That leaves the Reply-To field free for its intended use: to give the return address for an individ

NamedTemporaryFile and mode a+rwx

2005-10-03 Thread christophe . delarue
Hi, I'd like to create a temporaty shell script. Therefore I use tempfile with NamedTemporaryFile. The problem is that the _mkstemp_inner create the file using 06000 code. Then the fdopen is called, but the stat of the file does not change to executable. Why the fdopen does not modify the mode of

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Antoon Pardon
Op 2005-10-03, Duncan Booth schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: > >> A language where variable have to be declared before use, would allow >> to give all misspelled (undeclared) variables in on go, instead of >> just crashing each time one is encounterd. > > Wrong. It would catch at

You Can FIND any thing u want

2005-10-03 Thread sina . 818
Hi This website can help you to find any links you want: http://www.lxlinks.cjb.net Enjoy -- http://mail.python.org/mailman/listinfo/python-list

morphological image processing in Python

2005-10-03 Thread Alexandre Fayolle
Hello, I'm about to start a project which will involve some greyscale image processing using morphological operators (erosion, dilation, distance transforms...), and I was wondering if these operators were available in Python through some open source libraries. A quick google search returned pym

Py2Exe + kinterbasdb

2005-10-03 Thread [EMAIL PROTECTED]
Hi ! I compile an application (that working good in native python) to exe with py2exe. In native mode (python.exe ReportApp.py) it is working, the reports are created good. But when I try to create a report from the compiled exe, it is show an error: Traceback (most recent call last): File "

Re: Finding the Process Path

2005-10-03 Thread Steve Holden
Peck, Jon wrote: > Thanks, but this doesn't tell me what I am looking for. > > I am looking for the path for the current process (which will not be the > Python interpreter). > Actually the core image will be that of the Python interpreter. > I see, though, that this is available as sys.executa

RE: Finding the Process Path

2005-10-03 Thread Peck, Jon
Problem solved, but sys.executable seems to be (mostly) what I need. The context here is that my code is embedded in another process, so the Python interpreter is not the process executable, and in fact argv is not set (for various reasons not related to Python.) If I run this code directly th

Re: morphological image processing in Python

2005-10-03 Thread Matt Feinstein
On Mon, 3 Oct 2005 14:23:11 + (UTC), Alexandre Fayolle <[EMAIL PROTECTED]> wrote: >Hello, > >I'm about to start a project which will involve some greyscale image >processing using morphological operators (erosion, dilation, distance >transforms...), and I was wondering if these operators were

Re: morphological image processing in Python

2005-10-03 Thread Robert Kern
Alexandre Fayolle wrote: > Hello, > > I'm about to start a project which will involve some greyscale image > processing using morphological operators (erosion, dilation, distance > transforms...), and I was wondering if these operators were available in > Python through some open source libraries.

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-03 Thread Sion Arrowsmith
Ron Adam <[EMAIL PROTECTED]> wrote: >So ... > > A if B else C + X * Y > >Would evaluate as... ? > > A if B else (C + X * Y) """In general, 'if' and 'else' bind less tight than everything except lambda.""" http://mail.python.org/pipermail/python-dev/2005-September/056846.html -- \S -- [EMAI

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Duncan Booth
Antoon Pardon wrote: > >> and worse it adds a burden on everyone reading the code who >> has more lines to read before understanding the code. > > Well maybe we should remove all those comments from code too, > because all it does is add more lines for people to read. You'll get no argument fr

Re: how to send a SIGINT to a Python process?

2005-10-03 Thread Sion Arrowsmith
Michele Simionato <[EMAIL PROTECTED]> wrote: >Is there a way to send a SIGINT/KeyboardInterrupt to a >Python process (knowing the pid) that works both on Unix and Windows? No. Windows doesn't support the sending of signals between processes (with the exception of an equivalent of SIGKILL). I guess

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Steven D'Aprano
On Mon, 03 Oct 2005 06:59:04 +, Antoon Pardon wrote: > Well I'm a bit getting sick of those references to standard idioms. > There are moments those standard idioms don't work, while the > gist of the OP's remark still stands like: > > egold = 0: > while egold < 10: > if test(): >

New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-03 Thread spiffo
The Main Issue in a nutshell I am a corporate developer, working for a single company. Got a new project coming up and wondering if I should stay with Python for this new, fairly large project, are jump back on the 'safe' M$ bandwagon using a dot net language? Cross platform is NOT an issue, but C

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

2005-10-03 Thread Bengt Richter
On 03 Oct 2005 04:47:26 -0700, Paul Rubin wrote: >[EMAIL PROTECTED] (Bengt Richter) writes: >> Would you want to outlaw 'None' as an attribute name? >> Python seems to be straddling the fence at this point: >> >>> c.None = 'c.None' >> SyntaxError: assignment to None >

Re: Reply-To header

2005-10-03 Thread Peter Decker
On 10/3/05, Roel Schroeven <[EMAIL PROTECTED]> wrote: > Indeed, and that's by design: http://www.unicom.com/pw/reply-to-harmful.html Of course, that's only one side of the argument: http://www.blackgate.net/consulting/reply-to_munging_useful.html On lists like this, where everyone benefits by s

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Christophe
Steven D'Aprano a écrit : > On Mon, 03 Oct 2005 06:59:04 +, Antoon Pardon wrote: > > >>Well I'm a bit getting sick of those references to standard idioms. >>There are moments those standard idioms don't work, while the >>gist of the OP's remark still stands like: >> >> egold = 0: >> while e

Re: struct.unpack

2005-10-03 Thread g.franzkowiak
Peter Otten schrieb: > g.franzkowiak wrote: > > >>The dataObject was read from a named pipe as an byte stream >> >>state, dataObject = win32file.ReadFile(handle, nbytes, None) >>print repr(dataObject) >> ==> '\x01\x02\x03\x04\x00\x00\x00\x00\x00\x00\x0. >> >>With Frederiks help operates this

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

2005-10-03 Thread Steven D'Aprano
On Mon, 03 Oct 2005 09:14:34 +, Antoon Pardon wrote: > If you are in a project with > multiple authors, your usage of private variables can break code > that other people rely on. If you are in a project with multiple authors, your usage of PUBLIC variables can break code that other people re

Re: Reply-To header

2005-10-03 Thread Roel Schroeven
Peter Decker wrote: > On 10/3/05, Roel Schroeven <[EMAIL PROTECTED]> wrote: > > >>Indeed, and that's by design: http://www.unicom.com/pw/reply-to-harmful.html > > > Of course, that's only one side of the argument: > > http://www.blackgate.net/consulting/reply-to_munging_useful.html > > On lis

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-03 Thread D H
spiffo wrote: > Ok, I LOVE python, so that is not the issue, but, I am getting very worried > about it's growth. I recently re-visted the web looking at alot of projects > I assumed would be up and running by now from over a year ago, such as Boa > Constructor, Iron Python etc... it seems all these

Python TNEF (winmail.dat attachment access) library?

2005-10-03 Thread Petri Savolainen
Hello, has anyone seen such a beast? I tried googling, PyPI, Parnassus etc. but could not find any pure-python code nor extensions to interface with any of the existing implementations. I am thinking about taking the Ruby code I found at http://www.zweknu.org/technical/index.rhtml?s=p%7c15 an

Re: morphological image processing in Python

2005-10-03 Thread benzwt
Alexandre Fayolle 寫道: http://www.mmorph.com/resources.html check this page. Pymorph is a free. > Hello, > > I'm about to start a project which will involve some greyscale image > processing using morphological operators (erosion, dilation, distance > transforms...), and I was wondering if th

Graphical debugger/code explorer

2005-10-03 Thread Florian Lindner
Hello, in order to understand python code from a larger project (Zope 3) I'm looking for a tool that helps me with that. It should also help What (graphical) application running on Linux can you recommend? Thanks, Florian -- http://mail.python.org/mailman/listinfo/python-list

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-03 Thread Rob Cowie
Perhaps with the time saved by using Python instead of C# or some such, you could help to improve adodbapi.py, ensuring support for the next version of MS SQLServer, although that might be of little help in the short term. Just a thought. Also, have a gander at http://www.object-craft.com.au/proje

Re: pywordnet install problems

2005-10-03 Thread Steven Bethard
vdrab wrote: > I had WordNet 2.0 installed but just now I tried it with 1.7.1 as well > and the result was the same. It's a shame, glossing over the pywordnet > page really made me want to give it a try. > Are there any workarounds you can recommend ? What's your wordnet setup like? I have mine i

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Steven D'Aprano
On Mon, 03 Oct 2005 13:58:33 +, Antoon Pardon wrote: > Op 2005-10-03, Duncan Booth schreef <[EMAIL PROTECTED]>: >> Antoon Pardon wrote: >> >>> A language where variable have to be declared before use, would allow >>> to give all misspelled (undeclared) variables in on go, instead of >>> just c

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread en.karpachov
On 3 Oct 2005 13:58:33 GMT Antoon Pardon wrote: > People often promote unittesting here. Writing all those unittest is > an added burden too. But people think this burden is worth it. > > I think writing declaration is also worth it. The gain is not as > much as with unittesting but neither is th

Re: Graphical debugger/code explorer

2005-10-03 Thread benz
>>>PYTHON_IDE={ 'spe' : 'http://spe.pycs.net/', 'eric3' : 'http://www.die-offenbachs.de/detlev/eric3.html', 'drpython' : 'http://drpython.sourceforge.net/'} :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode charmap decoders slow

2005-10-03 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Tony Nelson wrote: > > Is there a faster way to decode from charmaps to utf-8 than unicode()? > > You could try the iconv codec, if your system supports iconv: > > http://cvs.sourceforge.net/viewcvs.py/python-codecs/

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

2005-10-03 Thread bruno modulix
Paul Rubin wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: > >>No, but that is precisely why Python's semi-private variables are >>usually better. Names like _X and class.__X are warnings to the developer >>"use these at your own risk", without preventing developers who need them >>from using

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On 3 Oct 2005 13:58:33 GMT > Antoon Pardon wrote: > > >>People often promote unittesting here. Writing all those unittest is >>an added burden too. But people think this burden is worth it. >> >>I think writing declaration is also worth it. The gain is not as >>much as

Python profiler

2005-10-03 Thread Celine & Dave
Hello All, I am trying to measure memory used in a Python program. Also, I would like to gather some statistics about object usages. For example, I would like to be able to see how much time it takes to search for an item in a dict object, how many times it has to access the symbol table to retri

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread Steven D'Aprano
On Mon, 03 Oct 2005 20:30:35 +0400, en.karpachov wrote: > Some people just don't get the simple fact that declarations are > essentially kind of unit test you get for free (almost), and the compiler > is a testing framework for them. No. Some people just don't get it that declarations aren't almo

Re: Reply-To header

2005-10-03 Thread Peter Decker
On 10/3/05, Roel Schroeven <[EMAIL PROTECTED]> wrote: > The default of this list is not to make conversations private; in fact > the list doesn't have any default. It's you who chooses to send replies > to the original author, to the list, or both, by choosing which button > to press in your mail

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread en.karpachov
On Tue, 04 Oct 2005 01:46:49 +1000 Steven D'Aprano wrote: > errors and not rely on the compiler. No compiler will catch this error: > > x = 12.0 # feet > # three pages of code > y = 15.0 # metres > # three more pages of code > distance = x + y > if distance < 27: > fire_retro_rockets() > > A

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-03 Thread Steven D'Aprano
On Mon, 03 Oct 2005 09:01:37 -0500, spiffo wrote: > The Main Issue in a nutshell > > I am a corporate developer, working for a single company. Got a new project > coming up and wondering if I should stay with Python for this new, fairly > large project, are jump back on the 'safe' M$ bandwagon us

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread en.karpachov
On Mon, 03 Oct 2005 17:43:35 +0100 Steve Holden wrote: > Hmm. Presumably introspection via getattr() is way too dangerous, then? Sure, it is dangerous. Not a showstopper, though. I mean, the absolute address access in the C is too dangerous, yes, but it doesn't make declarations in C any less u

Re: Where to find python c-sources

2005-10-03 Thread John J. Lee
[Tor Erik S�nvisen] > socketmodule.c, but I can't locate this file... Where should I look? [John, finding 'socketmodule.c' responds well to "I'm Feeling Lucky"] > Does google vary in its results across the globe? [Michael] > The search terms might be obvious to you, but it simply means your googl

Re: morphological image processing in Python

2005-10-03 Thread D.Hering
Take a look at ADaM and it's python wrappers: http://datamining.itsc.uah.edu/adam/documentation.html -- http://mail.python.org/mailman/listinfo/python-list

Re: "no variable or argument declarations are necessary."

2005-10-03 Thread George Sakkis
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote > [snipped] > No compiler will catch this error: > > x = 12.0 # feet > # three pages of code > y = 15.0 # metres > # three more pages of code > distance = x + y > if distance < 27: > fire_retro_rockets() Actually modern compilers can (http://www.bo

Re: Where to find python c-sources

2005-10-03 Thread Michael
John J. Lee wrote: > [Tor Erik S�nvisen] >> socketmodule.c, but I can't locate this file... Where should I look? > > [John, finding 'socketmodule.c' responds well to "I'm Feeling Lucky"] >> Does google vary in its results across the globe? > > [Michael] >> The search terms might be obvious to yo

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

2005-10-03 Thread Mike Meyer
Paul Rubin writes: >> > That's not what privilege separation means. It means that the >> > privileged objects stay secure even when the unprivileged part of the >> > program is completely controlled by an attacker. >> In which case, what's "private" got to do with this?

RE: Py2Exe + kinterbasdb

2005-10-03 Thread Jimmy Retzlaff
[EMAIL PROTECTED] wrote: > I compile an application (that working good in native python) to exe > with py2exe. > In native mode (python.exe ReportApp.py) it is working, the reports are > created good. > But when I try to create a report from the compiled exe, it is show an > error: > > Traceback (

python getopt functionality

2005-10-03 Thread M.N.A.Smadi
hi; I have a perl script that I need to port to python. The script takes input from the command line. Is there a standard way of processing command line arguments based on the -flag preceeding the argument? thanks moe smadi -- http://mail.python.org/mailman/listinfo/python-list

Re: python getopt functionality

2005-10-03 Thread Fredrik Lundh
"M.N.A.Smadi" wrote: > I have a perl script that I need to port to python. The script takes > input from the command line. Is there a standard way of processing > command line arguments based on the -flag preceeding the argument? http://docs.python.org/lib/module-getopt.html http://docs.python.o

Re: python getopt functionality

2005-10-03 Thread Michael
M.N.A.Smadi wrote: > I have a perl script that I need to port to python. The script takes > input from the command line. Is there a standard way of processing > command line arguments based on the -flag preceeding the argument? Yes. # pydoc getopt Help on module getopt: NAME getopt - Parse

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-03 Thread Michael
Christophe wrote: > Michael a écrit : >> Rocco Moretti wrote: >> >> >>>That is, what would happen with the following constructs: >>> >>>A if B else C if D else F >>>A if B if C else D else F >> >> >> The correct answer should be the person who wrote it would get told off >> for writing code th

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

2005-10-03 Thread Kent Johnson
Mike Meyer wrote: > Paul Rubin writes: > That's not what privilege separation means. It means that the privileged objects stay secure even when the unprivileged part of the program is completely controlled by an attacker. >>> >>>In which case, what's "privat

Re: Reply-To header

2005-10-03 Thread Roel Schroeven
Peter Decker wrote: > On 10/3/05, Roel Schroeven <[EMAIL PROTECTED]> wrote: > > >>The default of this list is not to make conversations private; in fact >>the list doesn't have any default. It's you who chooses to send replies >>to the original author, to the list, or both, by choosing which butt

  1   2   >