Re: question about smtplib

2005-10-04 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: cool. so this line server = smtplib.SMTP(localhost) is when i connect ? http://www.python.org/doc/lib/module-smtplib.html If the optional host and port parameters are given, the SMTP connect() method is called with those parameters during

Re: semi-newbie module namespace confusion

2005-10-04 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: The main jist of the problem is that I'm trying add data from one module to a list and a dictionary in another module, and it doesn't seem to stick over there. The programs below seem to illustrate the issue. (The results follow the programs). Why are the results

Re: Background process for ssh port forwarding

2005-10-04 Thread Juho Schultz
Jesse Rosenthal wrote: Hello all, I'm writing a script which will backup data from my machine to a server using rsync. It checks to see if I am on the local network. If I am, it runs rsync over ssh to 192.168.2.6 using the pexpect module to log in. That's the easy part. Now, when I'm not

Re: Recursive Property of Octal Numbers

2005-10-04 Thread Tim Roberts
James Stroud [EMAIL PROTECTED] wrote: I'm very curious about what is going on here. I'm sure my curiosity has something to do with ignorance of some fundamental concept of computer science (maybe that 8 is just a vertical infinity?): py b = '\xb6' 8 doesn't have anything to do with it. What

Re: Controlling who can run an executable

2005-10-04 Thread Svennglenn
What I want: - the simplest thing that could possibly work! Have the program check for a file hidden somewhere on the computer. For instance, if the file dummyfile.dll doesn't exist in the windows/system32 folder the program just doesn't start. And when you install the program on her computer

Re: question about smtplib

2005-10-04 Thread Tim Roberts
[EMAIL PROTECTED] wrote: cool. so this line server = smtplib.SMTP(localhost) is when i connect ? Use the source, Luke. Source code for every standard module is included on your hard disk. If you look in the __init__ for class SMTP, your question will be answered. -- - Tim Roberts, [EMAIL

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

2005-10-04 Thread Paul Rubin
Mike Meyer [EMAIL PROTECTED] writes: I assumed the Java model was based on the C++ model because it seems that everything in Java is based on C++, and they share the same vocabulary. If I'm wrong - well, that means you considered another language already. I guess it's similar that way,

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Antoon Pardon
Op 2005-10-03, Steven D'Aprano schreef [EMAIL PROTECTED]: 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

cgi relay for python cgi script

2005-10-04 Thread Amir Michail
Hi, Is there an easy way to execute a python cgi script on a different machine from the cgi server? I could write my own server, but I was wondering if something is available that would allow me to use a cgi script as is without modification. Amir --

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Antoon Pardon
Op 2005-10-03, Steven D'Aprano schreef [EMAIL PROTECTED]: 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:

Re: Python TNEF (winmail.dat attachment access) library?

2005-10-04 Thread Steven D'Aprano
Larry Bates wrote: Why not write Python class that uses CTypes and make it available as a recipe? From a performance standpoint it is unlikely you can do better than to call the .dll and have it do the work for you. Just a suggestion. A pure Python solution will be cross-platform, while

Re: cgi relay for python cgi script

2005-10-04 Thread Fredrik Lundh
Amir Michail wrote: Is there an easy way to execute a python cgi script on a different machine from the cgi server? http://www.google.com/search?q=reverse+proxy /F -- http://mail.python.org/mailman/listinfo/python-list

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

2005-10-04 Thread Antoon Pardon
Op 2005-10-03, Steven D'Aprano schreef [EMAIL PROTECTED]: 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

Re: semi-newbie module namespace confusion

2005-10-04 Thread David Murmann
Fredrik Lundh wrote: running a piece of python code as a script isn't the same thing as importing it as a module: I ran into the same problem some time ago and even wanted to post here about it, but found out that it had been reported as a bug three times at sourceforge (if i remember

Re: semi-newbie module namespace confusion

2005-10-04 Thread Fredrik Lundh
David Murmann wrote: I ran into the same problem some time ago and even wanted to post here about it, but found out that it had been reported as a bug three times at sourceforge (if i remember correctly). The comments there explained it of course, but I still think that this behavior is

Re: Python 3! Finally!

2005-10-04 Thread Christos Georgiou
On Fri, 30 Sep 2005 20:50:06 +0200, rumours say that Stefan Behnel [EMAIL PROTECTED] might have written: Weird, though, the md5sum is the same as for the Python-2.4.2.tar.bz2 that I downloaded late (late!) yesterday evening and had forgotten in my download directory... just found it next to the

Re: Reply-To header

2005-10-04 Thread Roel Schroeven
Mike Meyer wrote: Roel Schroeven [EMAIL PROTECTED] writes: Is that really the desired behaviour? IMO the least you can do if you're searching for help is subscribing to the mailing list on which you're looking for help. Me and many others don't like to receive replies directly instead of via

Re: Python based unacceptable language filter

2005-10-04 Thread Frithiof Andreas Jensen
David Pratt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

Re: Graphical debugger/code explorer

2005-10-04 Thread Florian Lindner
benz wrote: PYTHON_IDE={ 'spe' : 'http://spe.pycs.net/', 'eric3' : 'http://www.die-offenbachs.de/detlev/eric3.html', 'drpython' : 'http://drpython.sourceforge.net/'} I've tried out eric3 and it looks promising. However, I have one problem. I open a file which is part of Zope and set a

Re: semi-newbie module namespace confusion

2005-10-04 Thread David Murmann
Fredrik Lundh wrote: David Murmann wrote: I ran into the same problem some time ago and even wanted to post here about it, but found out that it had been reported as a bug three times at sourceforge (if i remember correctly). The comments there explained it of course, but I still think that

Re: Python Debug Build

2005-10-04 Thread Gerhard Häring
Fredrik Lundh wrote: Celine Dave wrote: What happens if I build Python with debug option (--with-pydebug)? Do I see any changes in my program output? What is --with-pydebug good for? from the README: --with-pydebug: Enable additional debugging code to help track down memory

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Steven D'Aprano
Mike Meyer wrote: Steven D'Aprano [EMAIL PROTECTED] writes: Declared variables have considerable labour costs, and only marginal gains. Since the steps you take to protect against other errors will also protect against mistyping variables, declarations of variables is of little practical

Re: Reply-To header

2005-10-04 Thread Steve Holden
Steven D'Aprano wrote: Mike Meyer wrote: When I notice that a list is broken (RFC 2822 says that reply-to is for the *author* of the message; anyone else setting it is doing so in violation of the RFC, and hence broken, no matter how useful it may be), Since when did obeying the RFC

Re: Graphical debugger/code explorer

2005-10-04 Thread ld
Florian Lindner wrote: 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? Maybe you shoud tryy doxygen/happydoc etc? Doxygen support

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

2005-10-04 Thread Max M
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 using a dot net language? Hehe ... I

Re: question about smtplib

2005-10-04 Thread Piet van Oostrum
Tim Roberts [EMAIL PROTECTED] (TR) wrote: TR [EMAIL PROTECTED] wrote: cool. so this line server = smtplib.SMTP(localhost) is when i connect ? TR Use the source, Luke. Source code for every standard module is included on TR your hard disk. If you look in the __init__ for class SMTP, your TR

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

2005-10-04 Thread Lasse Vågsæther Karlsen
While Microsoft and other big software vendors might have a roadmap that ties you very tightly in with their budget, and also changes that roadmap from time to time which breaks your current software, a lot of open source projects have no roadmap at all. This means that a .x.y.2 upgrade might

Processing an image with numarray.nd image

2005-10-04 Thread Raphaël MARC
Hello, Can anyone tell me how to open an image and transform it into a list so that the functions of the multi dimensionnal module of numarray (numarray.nd image) can process it ? Do I have to use PIL ? So I would code something like : import Image im = Image.open(Python.jpg) data =

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

2005-10-04 Thread Lasse Vågsæther Karlsen
Ok, when re-reading my post it seems that I'm saying that Python has no roadmap. That was not my intent. I meant projects other than Python, even though the problems I got with 2.4.2 is real, I suspect there's something in Komodo that is the problem since I can run all my python programs with

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Frithiof Andreas Jensen
bruno modulix [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

IDE crash

2005-10-04 Thread accolades
We've discussed this before in the group; IDEs that crash on completion of a PyGame or PyOgre (or any other graphics library) script. I have had this result with pretty much every IDE that I have tried. Except Eclipse. I just wanted to let everyone know, (in case anyone else out there is picky

Re: Controlling who can run an executable

2005-10-04 Thread Cigar
Mike Meyer wrote: First thing to know; you can't stop someone who's sufficiently determined to run the program. I have explained to her that I can't prevent someone who REALLY wants her program from tossing a rock through her front window and making off with her PC. They'd get the hardware and

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Antoon Pardon
Op 2005-10-04, Steven D'Aprano schreef [EMAIL PROTECTED]: Mike Meyer wrote: Steven D'Aprano [EMAIL PROTECTED] writes: Declared variables have considerable labour costs, and only marginal gains. Since the steps you take to protect against other errors will also protect against mistyping

Re: Controlling who can run an executable

2005-10-04 Thread Paul Rubin
Cigar [EMAIL PROTECTED] writes: I may have to just put password protection in and if she hangs herself by 'sharing' the password with underlings she trusts (at the present)... again that's outside of my control of protecting her. You could have the password automatically change once a month.

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Paul Rubin
Antoon Pardon [EMAIL PROTECTED] writes: Or you just code without declaring, intending to go back and do it later, and invariably forget. What's the problem, the compilor will allert you to your forgetfullness and you can then correct them all at once. Thiat in fact happens to me all the

Re: pywordnet install problems

2005-10-04 Thread vdrab
Thanks, I already figured it out a few days ago. In the wordnet.py file, just override the path (WNHOME and/or WNSEARCH) to the wordnet 2.0directory that has the lexnames files etc... (on my ubuntu box: '/usr/share/wordnet') That seems to fix it, although python gives a few warnings at startup.

Re: Processing an image with numarray.nd image

2005-10-04 Thread Matt Feinstein
On Tue, 04 Oct 2005 11:56:51 +0200, Raphaël MARC [EMAIL PROTECTED] wrote: Hello, Can anyone tell me how to open an image and transform it into a list so that the functions of the multi dimensionnal module of numarray (numarray.nd image) can process it ? Do I have to use PIL ? So I would code

Re: semi-newbie module namespace confusion

2005-10-04 Thread Andrew Gwozdziewycz
well, in my opinion python is not trying hard enough. to me it isimmediately obvious that the main module gets evaluated twice andi am rather sure that one could introduce some magic of the kind"oh, i reevaluate the main script here, the module does not get filledthe usual way but uses the

Re: Thread's, async_chat and asyncore

2005-10-04 Thread Matt Hammond
Hi Jos, Have you looked at Kamaelia? Its a project I'm involved in to create a framework for highly concurrent systems, geared particularly for suitability for network server/client applications. A system is built out of many small components, each with their own pseudo-thread of execution

Re: Controlling who can run an executable

2005-10-04 Thread Paul Rubin
Cigar [EMAIL PROTECTED] writes: I think the BIGGEST threat here is a feeling of vulnerablity. She now realizes that she is in a position that her competition was many years ago when she came into possesion of program the 'other side' was using and that she is now vulnerable. She wants to

What is executed when in a generator

2005-10-04 Thread Jerzy Karczmarczuk
I thought that the following sequence gl=0 def gen(x): global gl gl=x yield x s=gen(1) suspends the generator just before the yield, so after the assignment of s gl becomes 1. Well, no. It is still zero. If I put print something before the yield, this doesn't get executed

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

2005-10-04 Thread Peter Decker
On 10/3/05, spiffo [EMAIL PROTECTED] wrote: 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

Re: cgi relay for python cgi script

2005-10-04 Thread Amir Michail
Fredrik Lundh wrote: Amir Michail wrote: Is there an easy way to execute a python cgi script on a different machine from the cgi server? http://www.google.com/search?q=reverse+proxy /F Is there an easy way to do this without modifying the configuration of the cgi server and without

Re: What is executed when in a generator

2005-10-04 Thread Fredrik Lundh
Jerzy Karczmarczuk wrote: Could you tell me please where can I read something in depth about the semantics of generators? I feel a bit lost. the behaviour is described in the language reference manual: http://docs.python.org/ref/yield.html When a generator function is called, it

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Steve Holden
Paul Rubin wrote: Antoon Pardon [EMAIL PROTECTED] writes: Or you just code without declaring, intending to go back and do it later, and invariably forget. What's the problem, the compilor will allert you to your forgetfullness and you can then correct them all at once. Thiat in fact

Re: What is executed when in a generator

2005-10-04 Thread Matt Hammond
On Tue, 04 Oct 2005 12:48:03 +0100, Jerzy Karczmarczuk [EMAIL PROTECTED] wrote: before the yield, this doesn't get executed either. *EVERYTHING* from the beginning until the yield gets executed only upon s.next(). Could you tell me please where can I read something in depth about the

Re: cgi relay for python cgi script

2005-10-04 Thread Fredrik Lundh
Amir Michail wrote: Is there an easy way to do this without modifying the configuration of the cgi server and without running a cgi server on the other machine where the script will actually run? Perhaps someone wrote a simple server that provides the required environment for the cgi script

Re: Dynamical loading of modules

2005-10-04 Thread Carsten Haese
On Mon, 2005-10-03 at 17:37, Steve Holden wrote: Carsten Haese wrote: On Mon, 2005-10-03 at 16:41, Carsten Haese wrote: On Mon, 2005-10-03 at 15:52, Jacob Kroon wrote: Hi, I'm having some problems with implementing dynamical module loading. First let me describe the scenario with an

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

2005-10-04 Thread Luis M. Gonzalez
Boa Constructor, Iron Python etc... it seems all these projects get started, but never finished. I don't know Boa (never liked it, never used it), but you could try PythonCard: much higher level, easier and more productive. As for Ironpython seems to be moving full steam towards a stable

Re: What is executed when in a generator

2005-10-04 Thread Steve Holden
Jerzy Karczmarczuk wrote: I thought that the following sequence gl=0 def gen(x): global gl gl=x yield x s=gen(1) suspends the generator just before the yield, so after the assignment of s gl becomes 1. Well, no. It is still zero. If I put print something

Re: Dynamical loading of modules

2005-10-04 Thread Steve Holden
Carsten Haese wrote: On Mon, 2005-10-03 at 17:37, Steve Holden wrote: Carsten Haese wrote: On Mon, 2005-10-03 at 16:41, Carsten Haese wrote: On Mon, 2005-10-03 at 15:52, Jacob Kroon wrote: Hi, I'm having some problems with implementing dynamical module loading. First let me describe the

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Antoon Pardon
Op 2005-10-04, Steve Holden schreef [EMAIL PROTECTED]: Paul Rubin wrote: Antoon Pardon [EMAIL PROTECTED] writes: Or you just code without declaring, intending to go back and do it later, and invariably forget. What's the problem, the compilor will allert you to your forgetfullness and you

Swig and Python

2005-10-04 Thread Java and Swing
I am trying to wrap some C code I have. Currently I have something like... defs.h --- typedef unsigned long MY_DIGIT; myapp.c - void MakeDigits(MY_DIGIT digits[]) { } char* GetString(char *inMessage, MY_DIGIT *digit) { char *results; ... ... return

Re: cgi relay for python cgi script

2005-10-04 Thread Amir Michail
Fredrik Lundh wrote: Amir Michail wrote: Is there an easy way to do this without modifying the configuration of the cgi server and without running a cgi server on the other machine where the script will actually run? Perhaps someone wrote a simple server that provides the required

Re: Python profiler

2005-10-04 Thread Peter Tillotson
look in the gc module ... Celine Dave wrote: Hello All, I am trying to find a profiler that can measure the memory usage in a Python program. 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

ssh or other python editor

2005-10-04 Thread martijn
H! I'm using a windows machine. And a FreeBSD server where I run my python scripts. I'm working/making my python scripts in a windows OS with putty now. But I really want the python text colors and tab spacing like the python windows IDE but the problem is that I can't find a good program.

Re: What is executed when in a generator

2005-10-04 Thread Jerzy Karczmarczuk
Thank you all for some precisions about yield and generators. But I would like to underline that I am *not* a complete newbie, and I understand this stuff in general. I read the yield.html material quite a time ago. But thank you for the PEP, I should have scanned it more carefully. My problem

Re: Dynamical loading of modules

2005-10-04 Thread Carsten Haese
On Tue, 2005-10-04 at 08:32, Steve Holden wrote: Carsten Haese wrote: On Mon, 2005-10-03 at 17:37, Steve Holden wrote: Carsten Haese wrote: On Mon, 2005-10-03 at 16:41, Carsten Haese wrote: On Mon, 2005-10-03 at 15:52, Jacob Kroon wrote: Hi, I'm having some problems with

Re: Dynamical loading of modules

2005-10-04 Thread Steve Holden
Carsten Haese wrote: On Tue, 2005-10-04 at 08:32, Steve Holden wrote: Carsten Haese wrote: On Mon, 2005-10-03 at 17:37, Steve Holden wrote: Carsten Haese wrote: On Mon, 2005-10-03 at 16:41, Carsten Haese wrote: On Mon, 2005-10-03 at 15:52, Jacob Kroon wrote: Hi, I'm having some

dictionary interface

2005-10-04 Thread Antoon Pardon
I'm writing a Tree class, which should behave a lot like a dictionary. In order to test this, I took the unittest from the source distribution for dictionaries and used it to test against my Tree class. Things are working out rather well, but I stumbled on a problem. this unittest tries to test

Re: Python = Excel question

2005-10-04 Thread Magnus Lycka
Gerry Blais wrote: Newbie questions: Suppose abc.xls has sheets a, b, c. How can I find, in Python, the sheet names? Given a sheet name, how can I export the sheet as a csv file? Finally, how can I, in Python, make a .txt version of a Word document? I think Google will help you to

Re: what does 0 mean in MyApp(0)

2005-10-04 Thread Magnus Lycka
Alex wrote: Alterbnative 2 is simple and useful, so that's why everybody use that alternative. Everybody doesn't... Particularly in Windows, it's common that people make a .pyw-file, and then you don't see any console, or otherwise they double-click on a .py-file, and if the app dies with an

NNTP module capable of MODE STREAM

2005-10-04 Thread Klaus Alexander Seistrup
Hi, I need a Python NNTP module that is capable of doing MODE STREAM as client and as server. Does anyone here know of such a module except the twisted.protocols.nntp module? Cheers, -- Klaus Alexander Seistrup Copenhagen, Denmark http://streetkids.dk/ --

Re: Controlling who can run an executable

2005-10-04 Thread Michael Ekstrand
On Tuesday 04 October 2005 01:43, Svennglenn wrote: Have the program check for a file hidden somewhere on the computer. For instance, if the file dummyfile.dll doesn't exist in the windows/system32 folder the program just doesn't start. And when you install the program on her computer just add

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Istvan Albert
What can one do to swiftly detect this type of bug? While I can only speak from my own experience I can't remember a single instance where this type of bug caused any kind of serious problem. IMHO these are very trivial errors, that get caught immediately and I would not even qualify them as

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

2005-10-04 Thread Benji York
Luis M. Gonzalez wrote: If not Ironpython, Boo (which could be considered almost an static version of Python for .NET) would be a great choice. You could also use Python for .Net (http://www.zope.org/Members/Brian/PythonNet). -- Benji York --

Re: ssh or other python editor

2005-10-04 Thread projecktzero
[EMAIL PROTECTED] wrote: H! I'm using a windows machine. And a FreeBSD server where I run my python scripts. I'm working/making my python scripts in a windows OS with putty now. But I really want the python text colors and tab spacing like the python windows IDE but the problem is that I

Re: Dynamical loading of modules

2005-10-04 Thread Fredrik Lundh
Carsten Haese wrote: I don't see how to make __import__ do that. hint: you might get more people to look at your problems/proposals if you actually trim the replies a little. (is 295 angle brackets in a single message perhaps some kind of c.l.py record?) /F --

Re: ssh or other python editor

2005-10-04 Thread martijn
So you're using Putty to telenet/ssh into the FreeBSD server, but what editor on you using on the FreeBSD server? I use pico for that. That Samba isn't available but I can install it. Or are there other editors for FreeBSD that I can run with putty ? I'm going googling arround again, Thanks.

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

2005-10-04 Thread Istvan Albert
Disclaimer: this is not a flame against Boo. It just boggles my mind that a language that describes itself as python inspired syntax keeps being touted as: Luis M. Gonzalez wrote: Boo (which could be considered almost an static version of Python for .NET) Boo is *nothing* like a static

Re: Dynamical loading of modules

2005-10-04 Thread Fredrik Lundh
(is 295 angle brackets in a single message perhaps some kind of c.l.py record?) oh, nevermind. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh or other python editor

2005-10-04 Thread martijn
googling arround give me a full list of python editors and other stuff http://wiki.python.org/moin/PythonEditors -- 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-04 Thread Paul Boddie
Lasse Vågsæther Karlsen wrote: While Microsoft and other big software vendors might have a roadmap that ties you very tightly in with their budget, and also changes that roadmap from time to time which breaks your current software, a lot of open source projects have no roadmap at all. This

Re: dictionary interface

2005-10-04 Thread Robert Kern
Antoon Pardon wrote: I'm writing a Tree class, which should behave a lot like a dictionary. In order to test this, I took the unittest from the source distribution for dictionaries and used it to test against my Tree class. Things are working out rather well, but I stumbled on a problem.

Re: cgi relay for python cgi script

2005-10-04 Thread Steve Holden
Amir Michail wrote: Fredrik Lundh wrote: Amir Michail wrote: Is there an easy way to do this without modifying the configuration of the cgi server and without running a cgi server on the other machine where the script will actually run? Perhaps someone wrote a simple server that provides the

Re: ssh or other python editor

2005-10-04 Thread Fredrik Lundh
projecktzero wrote: If samba isn't available/set-up, you can try using FTP. You can then use Crimson Editor which does the syntax coloring and can ftp to/from a server. are you guys for real? is there any major text editor for Unix that doesn't support Python syntax coloring and indentation

Which SQL module to use?

2005-10-04 Thread mrstephengross
I'd like to do some basic SQL stuff in Python. It seems like there are a heck of a lot of SQL modules for Python. What's the simplest and easiest one to use? Thanks, --Steve ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: no variable or argument declarations are necessary.

2005-10-04 Thread Brian Quinlan
Have those of you who think that the lack of required declarations in Python is a huge weakness given any thought to the impact that adding them would have on the rest of the language? I can't imagine how any language with required declarations could even remotely resemble Python. And if you

Re: ssh or other python editor

2005-10-04 Thread martijn
- I'm a newbie at freeBSD so I think there is , but I don't know where. And i'm using putty on a windows OS what don't understand the syntax coloring. -- http://mail.python.org/mailman/listinfo/python-list

email module, redirecting to stdout

2005-10-04 Thread Laszlo Zsolt Nagy
Hello, I have this code: s = smtplib.SMTP() s.set_debuglevel(1) s.connect(host=smtp_host) s.set_debuglevel(0) log(Connected, sending e-mail) sys.stdout.flush() s.sendmail( consts.EMAIL_FROMADDRESS, [to],

Re: ssh or other python editor

2005-10-04 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: - I'm a newbie at freeBSD so I think there is , but I don't know where. I just complained when someone included the entire message thread in their replies, but not including anything at all is pretty annoying too. And i'm using putty on a windows OS what don't

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

2005-10-04 Thread D H
Istvan Albert wrote: Disclaimer: this is not a flame against Boo. It just boggles my mind that a language that describes itself as python inspired syntax keeps being touted as: Luis M. Gonzalez wrote: Boo (which could be considered almost an static version of Python for .NET) Boo is

Re: Exception raising, and performance implications.

2005-10-04 Thread leo
However, I think the functionality you're asking for is available as inspect.currentframe(), and if the implementation is in C it may have a tiny performance advantage over the Python version. You're absolutely right, in fact the code snippet from my OP was taken directly from

Re: email module, redirecting to stdout

2005-10-04 Thread Peter Otten
Laszlo Zsolt Nagy wrote: I have this code: s = smtplib.SMTP() s.set_debuglevel(1) s.connect(host=smtp_host) s.set_debuglevel(0) log(Connected, sending e-mail) sys.stdout.flush() s.sendmail( consts.EMAIL_FROMADDRESS,

Re: Which SQL module to use?

2005-10-04 Thread Philipp
mrstephengross schrieb: I'd like to do some basic SQL stuff in Python. It seems like there are a heck of a lot of SQL modules for Python. What's the simplest and easiest one to use? Thanks, --Steve ([EMAIL PROTECTED]) Do you have any DBMS in mind? Philipp --

Re: Which SQL module to use?

2005-10-04 Thread Gerhard Häring
mrstephengross wrote: I'd like to do some basic SQL stuff in Python. It seems like there are a heck of a lot of SQL modules for Python. What's the simplest and easiest one to use? It looks like pysqlite would be good for getting started with the SQL/Python combo: http://www.pysqlite.org/

Re: email module, redirecting to stdout

2005-10-04 Thread Just
In article [EMAIL PROTECTED], Peter Otten [EMAIL PROTECTED] wrote: Laszlo Zsolt Nagy wrote: I have this code: s = smtplib.SMTP() s.set_debuglevel(1) s.connect(host=smtp_host) s.set_debuglevel(0) log(Connected, sending e-mail)

Re: question about smtplib

2005-10-04 Thread nephish
thanks for all the help, got it working ok now, connecting once, sending many. thanks for the link too. cheers, sk -- http://mail.python.org/mailman/listinfo/python-list

Re: ssh or other python editor

2005-10-04 Thread Grant Edwards
On 2005-10-04, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm working/making my python scripts in a windows OS with putty now. But I really want the python text colors and tab spacing like the python windows IDE but the problem is that I can't find a good program. Jed, Emacs, and Vim all have

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

2005-10-04 Thread Luis M. Gonzalez
If you read again my comment, I said almost an static version of Python for .NET. That means that it's not a Python implementation, but another language. It takes a lot from python though, and it is aknowledeged by its creator in the first paragraph of its homepage. And if you still feel the need

Re: email module, redirecting to stdout

2005-10-04 Thread Peter Otten
Just wrote: smtplib obtains a copy of stderr by from sys import stderr Ouch. I'd consider this a bug. from sys import stderr should at least be considered bad style. I'd rather say this is the low-tech equivalent to debug = logging.getLogger(smtplib).debug an approach which is currently

Re: help w/ simple GPIB prog.

2005-10-04 Thread Dietmar Schwertberger
In article [EMAIL PROTECTED], whoopsi URL:mailto:[EMAIL PROTECTED] wrote: I thought I would simply be able to open a port, and send SCPI commands to configure and aquire values. But when I tried to run GPIB .py files from gpib-device-0.0.4 I got an error: symbol 'ibsta' not found. Doing

Re: Which SQL module to use?

2005-10-04 Thread Ed Hotchkiss
I'm using MySQLdb. I use a FREE MySQL server at freesql.org. I also have an example class and some functions that use the module. even a simple script that turns a .cvs into a mysql table. contact me if interested. -edward -- http://mail.python.org/mailman/listinfo/python-list

Re: Swig and Python

2005-10-04 Thread Steve Juranich
On 4 Oct 2005 05:46:27 -0700, Java and Swing [EMAIL PROTECTED] wrote: ...Ok, so I have a couple questions. 1) How would I call MakeDigits from python? In the C code I would normally have something like... MY_DIGIT tmp[10]; MakeDigits(tmp); How I usually do this is to write

Python script to install network printers

2005-10-04 Thread Matt Chan
Hi, I am trying to create a python script to install a set of network printers. I have had success using an os.popen statement, using rundll32 and printui.dll. This takes way too long. Can someone point me in a quicker direction? thanks, Matt --

Re: ssh or other python editor

2005-10-04 Thread Graham Fawcett
[EMAIL PROTECTED] wrote: So you're using Putty to telenet/ssh into the FreeBSD server, but what editor on you using on the FreeBSD server? I use pico for that. That Samba isn't available but I can install it. Or are there other editors for FreeBSD that I can run with putty ? I use Emacs on

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

2005-10-04 Thread El Pitonero
Paul Rubin wrote: 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 opened until 9am tomorrow, including by me. Is that handcuffs? It's normal procedure at any bank, for good reason. It's not necessarily some distrustful

Re: Exception raising, and performance implications.

2005-10-04 Thread Phillip J. Eby
leo wrote: You're absolutely right, in fact the code snippet from my OP was taken directly from inspect.currentframe. We're intending on using this in production, and I'm trying to gauge what the implications may be. Use sys._getframe() instead; it doesn't raise an exception. Wow, I was

Re: Controlling who can run an executable

2005-10-04 Thread Tony Nelson
In article [EMAIL PROTECTED], Cigar [EMAIL PROTECTED] wrote: I am developing a program for a client. She runs a shop where her clients bring in items for sale or short term buyback. Development of the program has been going great but she's mentioned that there is a 'feature' coming up in

how to debug when Segmentation fault

2005-10-04 Thread Maksim Kasimov
Hello, my programm sometime gives Segmentation fault message (no matter how long the programm had run (1 day or 2 weeks). And there is nothing in log-files that can points the problem. My question is how it possible to find out where is the problem in the code? Thanks for any help. Python

  1   2   3   >