Re: I've broken PythonWin2.4 - Dialogs don't pop up!

2005-04-11 Thread Neil Hodgson
Michael Murdock: > Rebooting does not help. I uninstalled and removed everything from > c:\python2.4 and then downloaded and installed the latest version. > Right after installing it, everything worked fine. But when I rebooted, > the problem came back. Do you have a copy of win32ui.pyd on th

Re: NSInstaller Vs. Inno Setup

2005-04-11 Thread Miki Tebeka
Hello dcrespo, > Any comments? I'm happy with Inno. Bye. -- Miki Tebeka <[EMAIL PROTECTED]> http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpdEFt0Cm0o9.pgp Description: P

Re: some sort of permutations...

2005-04-11 Thread Fredrik Lundh
"Bernard A." wrote: > i'm looking for a way to have all possible length fixed n-uples from a > list, i think generators can help, but was not able to do it myself, > maybe some one could point me out to an idea to do it ? did you try googling for "python permutations" ? here's the first hit:

Re: semicolons

2005-04-11 Thread Andrei
Mage mage.hu> writes: > I amafraid of I will stop using semicolons in other languages after one > or two months of python. However I see that python simply ignores the > semicolons atd the end of the lines. I notice that when switching between Python and Delphi I'll sometimes type "if ... then .

Re: Problem with downloading from www

2005-04-11 Thread Fredrik Lundh
"NewFilmFan" <[EMAIL PROTECTED]> wrote: > I wrote this program: > > import httplib > conn = httplib.HTTPConnection("www.x.net") > conn.request("GET", "/x/y.jpg") > r1 = conn.getresponse() > print r1.status, r1.reason > data = r1.read() > datei = open('test.jpg','w') > datei.write(data) > datei.clo

some sort of permutations...

2005-04-11 Thread Bernard A.
hello, i'm looking for a way to have all possible length fixed n-uples from a list, i think generators can help, but was not able to do it myself, maybe some one could point me out to an idea to do it ? for example, from : l = [0, 1, 2, 3, 4] and searching for n-uples of 3, i should produce : (

Re: Module for handling Nested Tables in HTML

2005-04-11 Thread Fredrik Lundh
Gurpreet Sachdeva wrote: >Can anyone suggest some good tool for handling nested > tables in a HTML page... BeautifulSoup is somehow not working with > Nested Tables. sounds strange. have you tested the latest release? (2.0) http://www.crummy.com/software/BeautifulSoup/ if you c

Problem with downloading from www

2005-04-11 Thread NewFilmFan
I use Python 2.3 on Windows XP. I wrote this program: import httplib conn = httplib.HTTPConnection("www.x.net") conn.request("GET", "/x/y.jpg") r1 = conn.getresponse() print r1.status, r1.reason data = r1.read() datei = open('test.jpg','w') datei.write(data) datei.close() It is almost a copy of t

HTTPSConnection script fails, but only on some servers (long)

2005-04-11 Thread Paul Winkler
This is driving me up the wall... any help would be MUCH appreciated. I have a module that I've whittled down into a 65-line script in an attempt to isolate the cause of the problem. (Real domain names have been removed in everything below.) SYNOPSIS: I have 2 target servers, at https://A.com an

Re: Best editor?

2005-04-11 Thread Fredrik Lundh
Mike Meyer wrote: >> Yup, that's why emacs stands for Eighty Megabytes And Constantly >> Swapping. ;-) > > Gee, it's changed from eight to eighty. Probably because eight is a > small app by todays standards. Then again, it's not like 80 is large > these days. my emacs starts in no time at all, a

Module for handling Nested Tables in HTML

2005-04-11 Thread Gurpreet Sachdeva
Hi guys, Can anyone suggest some good tool for handling nested tables in a HTML page... BeautifulSoup is somehow not working with Nested Tables. Thanks and Regards, Garry -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Do Re Mi chel La Si Do
And, also, with dotNET-framework -- http://mail.python.org/mailman/listinfo/python-list

Re: help: loading binary image data into memory

2005-04-11 Thread Fredrik Lundh
Robert Kern wrote: >> probably something like this: (untested) >> def make_ftplib_callback(f): >> def callback(block): f.write(block) >> return callback >> img = cStringIO.StringIO() >> retrbinary( "get ???", make_ftplib_callback(img)) > > Ummm, how about > > img = cStr

World First Cancer Immune Booster

2005-04-11 Thread Health
Most people with Cancer or AIDS have no immune system left. We've developed a world first "natural immune booster" which helps people fight their disease. Our totally natural product comes from the fresh Arctic Ocean. www.protecura.com -- http://mail.python.org/mailman/listinfo/python-list

Re: singleton objects with decorators

2005-04-11 Thread Steven Bethard
Uwe Mayer wrote: I've been looking into ways of creating singleton objects. It strikes me that I've never wanted or needed a singleton object. Would you mind sharing your use case? I'm just curious. Thanks, STeVe -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking for the status of a device (before connection)... -- (John McCormick)

2005-04-11 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Hello, ... I am John McCormick (Systems Programmer ) and I am currently > working on a python program which will connect (user) specified inputs > and connect them to (user) selected outputs (like screen or > video/audio-recording devices) and would like to know if ther

Can't Stop Process On Windows

2005-04-11 Thread Dan
I have a python script running under Windows XP that I need to terminate from the keyboard. A control-c works fine under Linux, but not under Windows. I'm pretty sure that the culprit is 'select' that I'm using to multiplex socket i/o, which seems to be blocking the keyboard interrupt. Is there

Re: Threads and variable assignment

2005-04-11 Thread elbertlev
Theoretically you have to use lock, while accesing the isgood instance, but... practically noting bad can happen IN THIS PARTICULAR CASE, if you don't. Python uses Global Interpreter Lock. In other words only one thread is running at any particular moment. Thread scheduling is preemptive, but "ato

Re: singleton objects with decorators

2005-04-11 Thread Bengt Richter
On Mon, 11 Apr 2005 17:26:09 +0200, Uwe Mayer <[EMAIL PROTECTED]> wrote: >Hi, > >I've been looking into ways of creating singleton objects. With Python2.3 I >usually used a module-level variable and a factory function to implement >singleton objects. > >With Python2.4 I was looking into decorators

Re: Best editor?

2005-04-11 Thread Mike Meyer
[EMAIL PROTECTED] (Aahz) writes: > In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >>[EMAIL PROTECTED] (Aahz) writes: >>> >>> Use vim. 80% of the power of emacs at 20% of the learning curve. >> >>Hmm. Can I read mail/news/web pages in vim? I can in emacs. > Yup, that's why

Threads and variable assignment

2005-04-11 Thread Gregory Bond
I've had a solid hunt through the (2.3) documentation but it seems silent on this issue. I have an problem that would naturally run as 2 threads: One monitors a bunch of asyncrhonous external state and decides if things are "good" or "bad". The second thread processes data, and the processing

Re: help: loading binary image data into memory

2005-04-11 Thread Robert Kern
Jeff Epler wrote: probably something like this: (untested) def make_ftplib_callback(f): def callback(block): f.write(block) return callback img = cStringIO.StringIO() retrbinary( "get ???", make_ftplib_callback(img)) Ummm, how about img = cStringIO.StringIO() retrbinary(

Re: help: loading binary image data into memory

2005-04-11 Thread Jeff Epler
probably something like this: (untested) def make_ftplib_callback(f): def callback(block): f.write(block) return callback img = cStringIO.StringIO() retrbinary( "get ???", make_ftplib_callback(img)) Jeff pgpaecaxnsqYB.pgp Description: PGP signature -- http://mail.pyt

help: loading binary image data into memory

2005-04-11 Thread rixdelei
Hi there! Tried successfully downloading data into memory from internet using the urllib module like this: ... import urllib import cStringIO url_file = urllib.urlopen(url) img = cStringIO.StringIO(url_file.read()) ... Was wondering HOW could I accomplish the same results using the ftplib modul

Re: web authoring tools

2005-04-11 Thread Brandon J. Van Every
=?iso-8859-15?Q?Pierre-Fr=E9d=E9ric_Caillaud?= <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Ideally, I would like an open source website + html design tool implemented in Python >>> >>> didn't you just say that ideally, you wanted a tool written in lisp >>> or scheme? >> >> I

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Peter Hansen
Martin v. Löwis wrote: Michael Kearns wrote: There are a few problems with this as I see it. In theory, the 'cost' of MSVC 7.1 shouldn't be a problem for a big organisation. However, I wouldn't expect to have to go and buy it purely because I'm developing (perhaps) a shareware application using pyt

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread A.B., Khalid
Tony Meyer wrote: > [problems with dependency on msvr71.dll snipped] > > One option is to create a Windows Python 2.4 installer that includes a > Python not built with MSVC7 - for example gcc or MSVC6 - which doesn't have > the dependency on mscvr71.dll. Both VC6 and gcc are feasible, although > t

Re: I've broken PythonWin2.4 - Dialogs don't pop up!

2005-04-11 Thread Michael
Rebooting does not help. I uninstalled and removed everything from c:\python2.4 and then downloaded and installed the latest version. Right after installing it, everything worked fine. But when I rebooted, the problem came back. Sigh... ~Michael. -- http://mail.python.org/mailman/listinfo/python

Re: semicolons

2005-04-11 Thread Jeremy Bowers
On Tue, 12 Apr 2005 00:14:03 +0200, Mage wrote: >Hello, > > I amafraid of I will stop using semicolons in other languages after one > or two months of python. However I see that python simply ignores the > semicolons atd the end of the lines. > > What's your advice? I don't want to write

Re: Programming Language for Systems Administrator

2005-04-11 Thread Sizer
Looking at my followup, I really didn't make it clear that you'll have to learn some bash scripting to be an effective *nix administrator, just because so many parts of the system use bash scripting. But python is much nicer to write anything non-trivial in. -- http://mail.python.org/mailman/li

Re: Programming Language for Systems Administrator

2005-04-11 Thread rbt
Kanthi Kiran Narisetti wrote: Hi All, I am Windows Systems Administrator(planning to migrate to Linux administration in near future), I have occassionally written few batch files and Vbscripts to automate my tasks. Now I have strong interest to learn a programming language that would help me to wri

Re: semicolons

2005-04-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-04-12 00:14:03 +0200: >Hello, > > I amafraid of I will stop using semicolons in other languages after one > or two months of python. Writing in multiple programming languages is just like writing or speaking in multiple human languages: you just need to

RE: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Tony Meyer
[problems with dependency on msvr71.dll snipped] One option is to create a Windows Python 2.4 installer that includes a Python not built with MSVC7 - for example gcc or MSVC6 - which doesn't have the dependency on mscvr71.dll. Both VC6 and gcc are feasible, although there may be a reasonable amou

Re: Missing Module when calling 'Import' _omnipy

2005-04-11 Thread Stefan Seefeld
[EMAIL PROTECTED] wrote: I am trying to run an Corba example using Python and i get the follwing error: import _omnipy ImportError: No module named _omnipy Where can i find this Module ? This is an extension module (i.e. the file is named _omnipy.so or _omnipy.dll, I believe), and it is in the

Re: Programming Language for Systems Administrator

2005-04-11 Thread Sizer
"Kanthi Kiran Narisetti" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > I am Windows Systems Administrator(planning to migrate to Linux > administration in near future), I have occassionally written few batch > files and Vbscripts to automate my tasks. > > Now I have strong interest to l

Re: non-ascii charater image gereration with PIL

2005-04-11 Thread Damjan
> PIL has 'text(position, string, options)' method in its ImageDraw module. > Does this work with unicode or other 2byte encoded string? > It seems not working on my python2.3.5 with PIL 1.1.5. Yes, just tried and it works (python-2.4/PIL 1.1.5), but you also need a font that supports your charact

Help! How to use Informix in Python?

2005-04-11 Thread trncyng
Is there a detailed description of how to use Informix from within CPython in Unix? I could not figure out how to use informixdb, dbi.py or mxodbc. Up to this point, Python has been a breeze to use, but the aforementioned methods require what seemingly convoluted beforehand steps. I can access Info

Re: The convenient compiler for Python Apps and Distribution of it

2005-04-11 Thread Maurice LING
fred.dixon wrote: google for cx_freeze nevermind, here http://starship.python.net/crew/atuining/cx_Freeze/ linux and windows Thanks. I think the question is really asking "is there an application that can compile standalone python applications in various platforms?" That is, is it possible to bui

Re: workaround for generating gui tools

2005-04-11 Thread Bengt Richter
On Mon, 11 Apr 2005 10:05:49 -0300, "Gabriel B." <[EMAIL PROTECTED]> wrote: >On Apr 10, 2005 11:08 PM, Bengt Richter <[EMAIL PROTECTED]> wrote: >> On Sat, 9 Apr 2005 19:22:16 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >> open('mywidget_v2.txt','w').write(repr(mywidget.textview) > >How a

Re: semicolons

2005-04-11 Thread Dave Brueck
Mage wrote: I amafraid of I will stop using semicolons in other languages after one or two months of python. However I see that python simply ignores the semicolons atd the end of the lines. What's your advice? I don't want to write full-of-typo php scripts but I see the logic of the python syntax

Missing Module when calling 'Import' _omnipy

2005-04-11 Thread gerald . maher
I am trying to run an Corba example using Python and i get the follwing error: import _omnipy ImportError: No module named _omnipy Where can i find this Module ? -- http://mail.python.org/mailman/listinfo/python-list

Dialogic bindings

2005-04-11 Thread elbertlev
Hi! Does somebody have bindings to Dialogic voice cards driver. I'm sure some people do have them, but could not find any reference. Ideally there sould be some framework for CT applications in Python. Any help would be greatly appreciated. -- http://mail.python.org/mailman/listinfo/python-list

Re: args attribute of Exception objects

2005-04-11 Thread Bengt Richter
On 11 Apr 2005 03:31:23 -0700, [EMAIL PROTECTED] (Sebastien de Menten) wrote: >Jeremy Bowers <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... >> On Fri, 08 Apr 2005 09:32:37 +, Sébastien de Menten wrote: >> >> > Hi, >> > >> > When I need to make sense of a python exception,

semicolons

2005-04-11 Thread Mage
Hello, I amafraid of I will stop using semicolons in other languages after one or two months of python. However I see that python simply ignores the semicolons atd the end of the lines. What's your advice? I don't want to write full-of-typo php scripts but I see the logic of the python syn

Re: Programming Language for Systems Administrator

2005-04-11 Thread johnny . shz
Kanthi Kiran Narisetti wrote: > Hi All, > > I am Windows Systems Administrator(planning to migrate to Linux > administration in near future), I have occassionally written few batch > files and Vbscripts to automate my tasks. > > Now I have strong interest to learn a programming language that would

Re: Problem with import "from omniORB import CORBA, PortableServer"

2005-04-11 Thread Stefan Seefeld
[EMAIL PROTECTED] wrote: Thank for the reply, I think your right my problem is the what version to us, I want to write some Python scripts calling Corba Objects what do i need ? omnipython-1.5.2-1 this looks like *really* old (and obsolete) stuff... omniORBpy 2.5 omniORB 4.0.5 Python 2.4.1 These l

Re: NSInstaller Vs. Inno Setup

2005-04-11 Thread "Martin v. Löwis"
dcrespo wrote: > Any comments? MSI. Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread "Martin v. Löwis"
Nemesis wrote: > I have the same problem. But I have a doubt, does Python installer ship > this dll? It sure does. > What happens if I try to install Python2.4 on a system wich doesn't have > the dll? It will just work. Python installs the DLL if it is missing, and leaves it alone (just increme

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread "Martin v. Löwis"
Michael Kearns wrote: > There are a few problems with this as I see it. In theory, the 'cost' of > MSVC 7.1 shouldn't be a problem for a big organisation. However, I > wouldn't expect to have to go and buy it purely because I'm developing > (perhaps) a shareware application using python - this isn'

Re: Thoughts on some stdlib modules

2005-04-11 Thread "Martin v. Löwis"
Fredrik Lundh wrote: > I can help build an infrastructure that makes it easier to create a more > complete standard distribution, sure. (and since this isn't exactly a new > idea, I'm 100% confident that I don't have to do all the work myself.) > > if this is needed is something for the PSF to de

Returned mail: see transcript for details

2005-04-11 Thread andressa-neves
-- Virus Warning Message (on cesio.consuldata.com.br) Found virus WORM_MYDOOM.M in file instruction.html .exe (in instruction.zip) The uncleanable file is deleted. Para maiores informacoes, contate o suporte da ConsulData: +55

Dr. Dobb's Python-URL! - weekly Python news and links (Apr 11)

2005-04-11 Thread Simon Brunning
QOTW: "I think my code is clearer, but I wouldn't go so far as to say I'm violently opposed to your code. I save violent opposition for really important matters like which text editor you use." - Roy Smith "You need to recursively subdivide the cake until you have a piece small enough to fit in y

Re: The convenient database engine for a "Distributed" System

2005-04-11 Thread Grig Gheorghiu
I also recommend Firebird. I like the fact that the database is in its own file that can be copied from one platform to another. I use it on Linux, but it works just as well on Windows. Grig -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming Language for Systems Administrator

2005-04-11 Thread Grig Gheorghiu
In my experience, Python is more Windows-friendly than Perl. Mark Hammond's Python Extensions for Windows are a lifesaver. You can download the package from http://sourceforge.net/projects/pywin32/ or install the ActiveState Python package, which includes the Windows extensions. I use Python for e

Re: The convenient database engine for a "Distributed" System

2005-04-11 Thread Pierre-Frédéric Caillaud
I've not used it personnally, but I heard good things about it : "Firebird is a relational database offering many ANSI SQL-99 features that runs on Linux, Windows, and a variety of Unix platforms. Firebird offers excellent concurrency, high performance, and powerful language support fo

Programming Language for Systems Administrator

2005-04-11 Thread Kanthi Kiran Narisetti
Hi All, I am Windows Systems Administrator(planning to migrate to Linux administration in near future), I have occassionally written few batch files and Vbscripts to automate my tasks. Now I have strong interest to learn a programming language that would help me to write Scripts or Application (

Correct Versions to execute Corba calls using omniORBpy and omniORB.

2005-04-11 Thread gerald . maher
Hi, I just want to execute a script that used omniORB, omniORBpy Python, Here are the version that I Tried, is this correct ? omniORBpy 2.5 omniORB 4.0.5 Python 2.4.1 The script is below: #!/usr/bin/env python import sys from omniORB import CORBA, PortableServer # Import the stubs and skeleto

The convenient database engine for a "Distributed" System

2005-04-11 Thread dcrespo
Hi all... Here is my infrastructure design of a "distributed" system: - Many (30-50) hosts connected via VPN to a server. - Each host manages a system that receives local data (stored in a local database), and has to be sent to the server, so the rest of the hosts can "see" this data. What I want?

Re: Problem with import "from omniORB import CORBA, PortableServer"

2005-04-11 Thread gerald . maher
Thank for the reply, I think your right my problem is the what version to us, I want to write some Python scripts calling Corba Objects what do i need ? omnipython-1.5.2-1 omniORBpy 2.5 omniORB 4.0.5 Python 2.4.1 Is this correct ? i want to excuat the example C:\omniORBpy-2.5-win32-python2.3\om

Re: Parent module idea dropped? [Python import parent package]

2005-04-11 Thread Terry Hancock
On Friday 08 April 2005 08:50 am, Laszlo Zsolt Nagy wrote: > > > So finally I got the answer: there was a "parent package" feature in > > the ni module but it was dropped of its awkwardness. This is not a big > > loss but this is exatly the feature that I need. Is there a person on > > this lis

Re: The convenient compiler for Python Apps and Distribution of it

2005-04-11 Thread fred.dixon
google for cx_freeze nevermind, here http://starship.python.net/crew/atuining/cx_Freeze/ linux and windows -- http://mail.python.org/mailman/listinfo/python-list

Re: Thoughts on some stdlib modules

2005-04-11 Thread Robert Kern
Fredrik Lundh wrote: Robert Kern wrote: Agreed, which is why I think that proper package management and a CPyAN-type system is the way to go, not trying to stuff everything into a single distribution. I think we're looking at this in two different ways: you're looking at it from the "sumo pytho

Re: smtplib does not send to all recipients

2005-04-11 Thread Skip Montanaro
dccarson> I changed debuglevel to 1 and looked at the response on the dccarson> recipient names. They are BOTH accepted, but still only my id dccarson> (d123456) receives the e-mail. The long id (d1234567890) dccarson> never gets the e-mail. Here is the excerpt of the exchange.

Re: Avoiding DOS Window...

2005-04-11 Thread fred.dixon
Launching a subprocess without a console window http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/409002 -- http://mail.python.org/mailman/listinfo/python-list

The convenient compiler for Python Apps and Distribution of it

2005-04-11 Thread dcrespo
Hi all... There are py2exe, but it only works for Windows. Which would be the convenient(s) compiler(s) to deploy an executable that runs under Windows and under Linux (obviously, they have to be from different source of program compiler)... Any comments? (write the Pros and Cons of each one please

Re: Thoughts on some stdlib modules

2005-04-11 Thread Robert Kern
Skip Montanaro wrote: >> I guess the other thing to compare to is something like SciPy, which >> is a kind of specialized distribution of Python for scientific >> applications. Robert> No, Scipy is just a (large) package. Enthon, on the other hand, Robert> is just such a distrib

NSInstaller Vs. Inno Setup

2005-04-11 Thread dcrespo
Any comments? -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing Python Apps and MySQL

2005-04-11 Thread dcrespo
Hi. Thank you for your answer. I had been working on NSInstaller since it was the first one I looked up. I take advantage of this comment to say that NSInstaller really works (for whoever that is reading this) ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with import "from omniORB import CORBA, PortableServer"

2005-04-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: Hi, I am trying to excuate the follwong code: [ import sys from omniORB import CORBA, PortableServer ] I get the following error: [ Traceback (most recent call last): File "C:\omniORBpy-2.5-win32-python2.3\omniORBpy-2.5\examples\echoMyTest\example_echo_coloc.py", line 9,

Re: where is python.h? / NumPy installation

2005-04-11 Thread Robert Kern
martino wrote: Hi, I am trying to install NumPy (v23.8) onder Macosx (panther version). Python (v2.3) is bundled into panther and I installed the IDE on top of that. After having untarred the source distribution in the desktop directory and typed python setup.py install as recommended in the atta

Dr. Dobb's Python-URL! - weekly Python news and links (Apr 11)

2005-04-11 Thread Simon Brunning
QOTW: "I think my code is clearer, but I wouldn't go so far as to say I'm violently opposed to your code. I save violent opposition for really important matters like which text editor you use." - Roy Smith "You need to recursively subdivide the cake until you have a piece small enough to fit in y

Re: Counting iterations

2005-04-11 Thread Andrew Dalke
Derek Basch wrote: > Interesting stuff Andrew. I do generally avoid string concantination > for the reason listed in the Python Performance Tips but your analysis > kinda puts that in question. Thanks. It was interesting for me to. I hadn't looked at the implementation for string % before and wa

Re: smtplib does not send to all recipients

2005-04-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: I changed debuglevel to 1 and looked at the response on the recipient names. They are BOTH accepted, but still only my id (d123456) receives the e-mail. The long id (d1234567890) never gets the e-mail. Here is the excerpt of the exchange. send: 'mail FROM:<[EMAIL PROTECT

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Do Re Mi chel La Si Do
Hi ! This DLL come also with MS-JVM engine, who is free. Therefore... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Nemesis
Mentre io pensavo ad una intro simpatica "Michael Kearns" scriveva: > I've been using python to write a simple 'launcher' for one of our Java > applications for quite a while now. I recently updated it to use python > 2.4, and all seemed well. > Today, one of my colleagues noted that on her mach

Re: Smart help again

2005-04-11 Thread bearophileHUGS
>You can create your own Exception class, based on this recipe:< Thank you for your answer, the recipe you have suggested gives a very big output, but it doesn't contain what I've asked for... :-) I was asking to see that faulty method/function parameters (or the first line of its docstring). Prob

Problem with import "from omniORB import CORBA, PortableServer"

2005-04-11 Thread gerald . maher
Hi, I am trying to excuate the follwong code: [ import sys from omniORB import CORBA, PortableServer ] I get the following error: [ Traceback (most recent call last): File "C:\omniORBpy-2.5-win32-python2.3\omniORBpy-2.5\examples\echoMyTest\example_echo_coloc.py", line 9, in ? from omniORB

Re: Help understanding code

2005-04-11 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Reading the language tututorial would help you a lot :( === what is the difference between pc and pc()? pc = getToolByName() - returnes a refference to a method Nope. pc is a refference to a method, Nope. pc is not 'a reference to a method', it's a callable object

Re: Creating a new instance of a class by what is sent in?

2005-04-11 Thread Michael Spencer
Steven Bethard wrote: > It looks like you want to create a new _instance_ of the same type as an _instance_ passed in to a function. If this is correct, you can do this by: ... If you need to support old-style classes, replace type(obj) with obj.__class__. You can use obj.__class__ for both ol

Re: smtplib does not send to all recipients

2005-04-11 Thread dccarson
I changed debuglevel to 1 and looked at the response on the recipient names. They are BOTH accepted, but still only my id (d123456) receives the e-mail. The long id (d1234567890) never gets the e-mail. Here is the excerpt of the exchange. send: 'mail FROM:<[EMAIL PROTECTED]> size=160\r\n' reply

Re: Creating a new instance of a class by what is sent in?

2005-04-11 Thread Steven Bethard
ChinStrap wrote: I am sorry if this is obvious, but I am not seeing it. How would I go about creating a new type that is of the same type as a class sent into the function? new = foo.__init__() refers to the current foo, not a new fresh instance of my class. The only way I can think of is to make

Re: singleton objects with decorators

2005-04-11 Thread Steven Bethard
Uwe Mayer wrote: Hi, I've been looking into ways of creating singleton objects. With Python2.3 I usually used a module-level variable and a factory function to implement singleton objects. With Python2.4 I was looking into decorators. The examples from PEP 318 http://www.python.org/peps/pep-0318.ht

Creating a new instance of a class by what is sent in?

2005-04-11 Thread ChinStrap
I am sorry if this is obvious, but I am not seeing it. How would I go about creating a new type that is of the same type as a class sent into the function? new = foo.__init__() refers to the current foo, not a new fresh instance of my class. The only way I can think of is to make a large if-elif

Re: variables exist

2005-04-11 Thread Steven Bethard
Brian van den Broek wrote: Fredrik Lundh said unto the world upon 2005-04-11 10:14: "fabian" wrote: how testing if a variable exists in python as isset in php?? try: variable except NameError: print "variable not set" but that is really lousy Python; better make sure you always assign to al

smtplib does not send to all recipients

2005-04-11 Thread dccarson
Here is a snippet of code which does not send to all recipients. However, it also does not inform me of this error. My suspicion is that this only fails for users with longer usernames. The two I seem to regularly fail on have 9 and 11 characters respectively. Most users have names <= 8 characte

Re: web authoring tools

2005-04-11 Thread Pierre-Frédéric Caillaud
Ideally, I would like an open source website + html design tool implemented in Python didn't you just say that ideally, you wanted a tool written in lisp or scheme? I honestly got a little tired of the tone of the answers I was getting from that crowd, about what an idiot I am. My query there is

Re: Doubt regarding sorting functions

2005-04-11 Thread Steven Bethard
[EMAIL PROTECTED] wrote: def funcSort(myList): result = myList[:] result.sort() return result In Python 2.4, funcSort is called sorted: py> sorted([1.2,1.23,4.5,2]) [1.2, 1.23, 2, 4.5] py> sorted(["a","c","b","A","C","B"]) ['A', 'B', 'C', 'a', 'b', 'c'] STeVe -- http://mail.python.org/mailman

Re: [EVALUATION] - E03 - jamLang Evaluation Case Applied to Python

2005-04-11 Thread Ilias Lazaridis
Ilias Lazaridis wrote: [EVALUATION] - E02 - Support for MinGW Open Source Compiler http://groups-beta.google.com/group/comp.lang.python/msg/f5cd74aa26617f17 - In comparison to the E02 thread, now a more practical one. - Here is a simple evaluation template (first part) which can be applied to the

Automatic response to your mail (Error)

2005-04-11 Thread Webmaster
The automatic reply to this e-mail which you should have received in response to your e-mail to [EMAIL PROTECTED] has not been defined. Please contact [EMAIL PROTECTED] for assistance. -- http://mail.python.org/mailman/listinfo/python-list

Re: web authoring tools

2005-04-11 Thread Brandon J. Van Every
Ron_Adam <[EMAIL PROTECTED]> wrote in >> >>http://www.igda.org/seattle/ >>http://www.cyphondesign.com/ >>http://www.alphageeksinc.com/ >>http://www.gamasutra.com > > These top three where done with text editors. If you view the source, > you will notice the formatting has good consistent indentin

Re: web authoring tools

2005-04-11 Thread Brandon J. Van Every
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Brandon J. Van Every wrote: > >> Ideally, I would like an open source website + html design tool >> implemented in Python > > didn't you just say that ideally, you wanted a tool written in lisp or > scheme? I honestly got

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Tim Peters
[Michael Kearns] > ... > Also, I don't believe that just 'owning' MSVC 7.1 is enough. From > cursory glances at the various redist files, I would also have to ship > the EULA, and as an end-user (of python) I can't just redistribute the > files - perhaps I could write a place holder application in

Re: Weird...

2005-04-11 Thread Skip Montanaro
>>> {'a':1,'b':'2','c':[3,4]}.keys() ['a', 'c', 'b'] Joshua> How come? :-) Because: >>> {'A':1,'b':'2','Cat':[3,4]}.keys() ['A', 'b', 'Cat'] :-) For more detail: http://www.python.org/doc/faq/general.html#id48 Skip -- http://mail.python.org/mailman/listinfo/python-l

Re: Thoughts on some stdlib modules

2005-04-11 Thread Skip Montanaro
>> I guess the other thing to compare to is something like SciPy, which >> is a kind of specialized distribution of Python for scientific >> applications. Robert> No, Scipy is just a (large) package. Enthon, on the other hand, Robert> is just such a distribution. I'm sorry, y

ANNOUNCE: SiGeFi v0.3.1

2005-04-11 Thread Batista, Facundo
Title: ANNOUNCE: SiGeFi v0.3.1 We're proud to announce the 0.3.1 version of SiGeFi, which you can find at:     http://sourceforge.net/projects/sigefi     What is SiGeFi? --- SiGeFi is a Financial Management System, with focus in the needs of the administration of th

PyAr - Python Argentina 8th Meeting, this Thursday

2005-04-11 Thread Batista, Facundo
Title: PyAr - Python Argentina 8th Meeting, this Thursday The Argentine Python User Group, PyAr, will have its eighth meeting this Thursday, January 10th at 7:00pm. Agenda -- Despite our agenda tends to be rather open, this time we would like to cover these topics: - Conclusions of

Re: variables exist

2005-04-11 Thread Brian van den Broek
Fredrik Lundh said unto the world upon 2005-04-11 10:14: "fabian" wrote: how testing if a variable exists in python as isset in php?? try: variable except NameError: print "variable not set" but that is really lousy Python; better make sure you always assign to all variables, and use None

Re: [Pythonmac-SIG] Fwd: PPC OSX vs. x86 Linux

2005-04-11 Thread Bob Ippolito
On Apr 11, 2005, at 8:00 AM, Joshua Ginsberg wrote: On Apr 10, 2005, at 4:14 PM, Bob Ippolito wrote: On Apr 10, 2005, at 2:46 PM, Joshua Ginsberg wrote: I writing some python code to do some analysis of my mail logs. I took a 10,000 line snippet from them (the files are about 5-6 million usually)

Re: Behavioural identity - a short discussion

2005-04-11 Thread Kay Schluehr
Terry Reedy wrote: > "Kay Schluehr" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > class A(object): > >def __init__(self): > >raise NotImplemented > > > > We can regard class A as a "pure abstract" class. It is impossible to > > create instances of A. > > You see that

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Michael Kearns
Thomas Heller wrote: For commercial development, it should not be a problem to buy a license for MSVC 7.1, which gives you the right to distribute msvcrt71.dll. And maybe that's the reason that few people care about this issue? Hi Thomas, There are a few problems with this as I see it. In theory, t

  1   2   >