Re: how to operate the excel by python?

2005-06-10 Thread alex23
ÒÊÃÉɽÈË wrote: > i want to compare the content in excel,but i don't know whick module to use! > can you help me? I noticed a package on PyPi today that might be useful to you: http://www.python.org/pypi/xlrd/0.3a1 The homepage is a little brief, so I clipped their example from the README:

dedTUNIA: Gegen kreisrunden Haarausfall - Against circular loss of hair - Contre Alopécie Areata

2005-06-10 Thread dedTUNIA NEWS
GO: www.dedTUNIA.com Betroffen von Alopecia Areata: dedTUNIA hilft auch Ihnen Affected by Alopecia Areata: dedTUNIA can help you too ! Affecté par l´Alopécie Areata: dedTUNIA peut vous aider ! Website in: Deutsch - English - Francais GO: www.dedTUNIA.com -- http://mail.python.org/mailman/lis

Sending mail from 'current user' in Python

2005-06-10 Thread Leo Breebaart
I am writing a utility in Python and I'd like to add a command-line option "--mailto " that will cause an e-mail summary to be sent to when the utility finishes running. My first thought was to use smtplib.sendmail(), and basically this works like a charm, except that this function expects a vali

Re: Python Developers Handbook

2005-06-10 Thread wooks
If I had posted or invited the group to look at my full list of items rather than just the python book link then I could see where you are coming from. If my intention was to "spam" this NG then the complaints as they were phrased would only have served to make me more determined. Maybe we will

Re: how to export data from ZODB to text files

2005-06-10 Thread Josef Meile
Hi Lucasz, > Thank you so much. I will ask our Plone administrator to test your > script and I will write about result here. You are wellcome. I think it is one of the easiest way of doing it. > I thought also about Python script like > > > //connect to database > >>> from ZODB import FileSt

Re: Annoying behaviour of the != operator

2005-06-10 Thread greg
David M. Cooke wrote: >>To solve that, I would suggest a fourth category of "arbitrary >>ordering", but that's probably Py3k material. > > We've got that: use hash(). > [1+2j, 3+4j].sort(key=hash) What about objects that are not hashable? The purpose of arbitrary ordering would be to provide an

Re: Annoying behaviour of the != operator

2005-06-10 Thread Robert Kern
greg wrote: > David M. Cooke wrote: > >>>To solve that, I would suggest a fourth category of "arbitrary >>>ordering", but that's probably Py3k material. >> >>We've got that: use hash(). >>[1+2j, 3+4j].sort(key=hash) > > What about objects that are not hashable? > > The purpose of arbitrary order

Re: ANN: Python for Maemo released!

2005-06-10 Thread Carl Friedrich Bolz
[snip Python port announcement] > No reptiles were harmed in the making of these crafts. +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

os.system

2005-06-10 Thread Austin
My code is " os.system("NET SEND computer hihi") " i use this funtion on Windows server 2003. it's ok. But the same code running on Windows XP SP2, it shows the command window twice. How do i remove the command window? -- http://mail.python.org/mailman/listinfo/python-list

Re: how to export data from ZODB to text files

2005-06-10 Thread Josef Meile
Hi again, > I thought also about Python script like > > > //connect to database > >>> from ZODB import FileStorage, DB > >>> storage = FileStorage.FileStorage('Data.fs') > >>> db = DB(storage) > >>> conn = db.open() > >>> dbroot = conn.root() I just found an information that may be usefu

Re: Python Developers Handbook

2005-06-10 Thread Andrew Dalke
wooks wrote: > If I had posted or invited the group to look at my full list of items > rather than just the python book link then I could see where you are > coming from. Take a look at http://www.templetons.com/brad/spamterm.html for some of the first spams and reactions thereof. There's a 30+ y

Re: Start application & continue after app exits

2005-06-10 Thread Guy Lateur
This may be getting somewhat OT, but I'd like to dig a little deeper into this. First of all, security (as in some other proces reading/disclosing the data) is not an issue in this case. The thing is, though, a user could run the script twice, not having closed Word after the first time. So I g

Re: Python as CGI on IIS and Windows 2003 Server

2005-06-10 Thread lothar . sch
jean-marc schrieb: > Some bits are coming back to me: the problems stemmed from adresses - > getting the root of IIS was different so accessing files didn't work > the same way. thanks for that. you are right, IIS versions are different. Wich kind of adresses do you mean, http-adresses or paths in

Problem in generated files with makepy and Microsoft ADO

2005-06-10 Thread Martin Stettner
Hi, when trying to generate the wrapper classes for Microsofts ADO Library (Version 2.8) with makepy, I run into the following problem. Here's what I do (I use ActiveState Python 2.4.1.245) 1.) Running makepy, selecting "Microsoft ActiveX Data Object 2.8" 2.) Starting PythonWin IDE 3.) When I

Re: DB API 2.0 and transactions

2005-06-10 Thread Magnus Lycka
You might have spotted a fairly nasty bug there! Christopher J. Bottaro wrote: > Hi, > Why is there no support for explicit transactions in the DB API? I mean > like transaction() to start the trans and commit() and rollback() would end > the trans or something. To quote from Date & Darwen "A Gu

Re: Problem in generated files with makepy and Microsoft ADO

2005-06-10 Thread Martin Stettner
"Martin Stettner" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi, > > when trying to generate the wrapper classes for Microsofts ADO Library > [bigsnip...] > Martin Ok, I found some references to similar bugs at http://www.python.org/sf/1163244, http://www.python.org/sf/1

Re: without shell

2005-06-10 Thread Tomasz Rola
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 12 Jun 2005, km wrote: > hi all, > > can any linux command be invoked/ executed without using shell (bash) ? > what abt security concerns ? To answer your question fast, yes it is possible. Just pull every "bad" block from the OS, and put

Re: without shell

2005-06-10 Thread Tomasz Rola
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 12 Jun 2005, km wrote: > hi all, > > can any linux command be invoked/ executed without using shell (bash) ? > what abt security concerns ? Ops, I missed the word "command" when reading your mail for the first time, and this changes some p

Re: Python Developers Handbook

2005-06-10 Thread beliavsky
wooks wrote: > I thought that posting a link that contained the word ebay and a > subject title of Python Developers Handbook conveyed all the relevant > information and didn't want to patronise the NG. > > I have had 110 hits on the item but seem to have upset 3 people. This statement shows a mis

Re: Abstract and concrete syntax

2005-06-10 Thread Mandus
As someone who like to do functional style programming, but without a lot of training in that dept., I miss what you ask for from time to time. I don't want to go to much into this discussion, just comment on a tiny little bit: Thu, 09 Jun 2005 03:32:12 +0200 skrev David Baelde: [snip] > > set_ca

Re: Generating HTML from python

2005-06-10 Thread =?ISO-8859-1?Q?Walter_D=F6rwald?=
Cappy2112 wrote: > I looked at HTMLGen a while ago- I didn't see what the advantage was. > I wrote soem code similar to the example above, to generate a page.. > It worked out fine. > > However, I want to add HTML ouput to many of my other python programs, > and I don't want to re-write this for e

python create WMI instances

2005-06-10 Thread Marc Wyburn
Hi all, I am struggling with a vb - python code conversion. I'm using WMI to create printers on remote machines using (in VB); set oPrinter = oService.Get("Win32_Printer").SpawnInstance_ oPrinter.DriverName = strDriver oPrinter.PortName = strPort oPrinter.DeviceID = strPrinter oPrinter.Put_(

Re: different time tuple format

2005-06-10 Thread Magnus Lycka
Maksim Kasimov wrote: > hi all, sorry if i'm reposting > > why time.strptime and time.localtime returns tuple with different DST (9 > item of the tuple)? I've been bitten by the quirks in the time modules so many times that I would advice against using it for any date handling. It's ok for time

Re: Python Developers Handbook

2005-06-10 Thread wooks
> Most assuredly, what Terry sent you is *not* hate mail. It was not taken as hate mail. I think Lucas got it spot on. Thank you for the long lecture on netiquette which I didn't really need. Anybody who has read and understood the book "How to win friends and influence people" would underst

match groups: optional groups not accessible

2005-06-10 Thread david . reitter
Why does the following result in an IndexError? I try to match an optional group, and then access it via its group name. The group happens to not participate in the match, but is obviously defined in the pattern. The documentation says that, at least for numbered groups, "If a group is contained in

Re: Exe file

2005-06-10 Thread Philip Seeger
For easier distribution. Otherwise the client computer had to have Python installed. Philip "Peter Hansen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Philip Seeger wrote: >> I'm sorry for that newbie question but how can I compile a program (a .py >> file) to an execut

Re: EOFError not getting raised

2005-06-10 Thread [EMAIL PROTECTED]
See http://docs.python.org/lib/module-exceptions.html: EOFError gets raised when input() or raw_input() hit an EOF condition without reading data. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Developers Handbook

2005-06-10 Thread wooks
[EMAIL PROTECTED] wrote: > wooks wrote: > > I thought that posting a link that contained the word ebay and a > > subject title of Python Developers Handbook conveyed all the relevant > > information and didn't want to patronise the NG. > > > > I have had 110 hits on the item but seem to have upse

Re: Any way to not create .pyc files?

2005-06-10 Thread Peter Hansen
Terry Hancock wrote: > The user with write access would run the script, causing the pyc files > to be generated for that interpreter. Then a normal user, running an > older Python tries to load the modules. Since a .pyc file exists, it gets > used instead, but *oops* it's for a later version of t

Re: os.system

2005-06-10 Thread Thomas Guettler
Am Fri, 10 Jun 2005 17:10:23 +0800 schrieb Austin: > My code is " os.system("NET SEND computer hihi") " > i use this funtion on Windows server 2003. > it's ok. > > But the same code running on Windows XP SP2, it shows the command window > twice. > How do i remove the command window? Hi, You ca

Re: Exe file

2005-06-10 Thread Peter Hansen
Philip Seeger wrote: >>>I'm sorry for that newbie question but how can I compile a program (a .py >>>file) to an executable file? ... > For easier distribution. Otherwise the client computer had to have Python > installed. In that case, and since you appear to be running on Windows (judging by

Re: match groups: optional groups not accessible

2005-06-10 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > Why does the following result in an IndexError? > I try to match an optional group, and then access it via its group > name. The group happens to not participate in the match, but is > obviously defined in the pattern. > m = re.match('(?Pmaybe)?yes', "yes") Uh, don'

Re: match groups: optional groups not accessible

2005-06-10 Thread Duncan Booth
david.reitter wrote: > So I would expect None rather than an IndexError, which is (only?) > supposed to occur "If a string argument is not used as a group name in > the pattern". That is exactly what does happen. > > I would expect named groups and numbered groups to be behave the same > way. >

RE: python create WMI instances

2005-06-10 Thread Tim Golden
[Marc Wyburn] | | Hi all, I am struggling with a vb - python code conversion. I'm using | WMI to create printers on remote machines using (in VB); | | set oPrinter = oService.Get("Win32_Printer").SpawnInstance_ | | oPrinter.DriverName = strDriver | oPrinter.PortName = strPort | oPrinter.Devic

python bytecode grammar

2005-06-10 Thread M1st0
where I can find the grammar of python bytecode ? ( better if is in BCF ). -- http://mail.python.org/mailman/listinfo/python-list

SMTP Test Rig ( SMTPRIG.PY v1.0 )

2005-06-10 Thread Tim Williams
After a few posts recently, I have put together an SMTP test rig that will receive emails and either store them to a file, write them to a console, or both. Does anyone have any suggestions on where I can get it hosted as a utility for general public use? TIA Tim -- http://mail.python.org/m

Re: python bytecode grammar

2005-06-10 Thread Diez B. Roggisch
M1st0 wrote: > where I can find the grammar of python bytecode ? ( better if is in BCF > ). There is no grammar for bytecodes - the are like assembly instructions. And what's BCF supposed to mean - BNF is a form for grammars, BCF I never heard of. And besides that: tell us what you're after, we

re: howto send html mails using smtplib

2005-06-10 Thread Tim Williams
"Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have the following problem: > 1) I can use smtplib to send text messages > 2) I can generate html > 3) I want to email the html and want it to be seen by the email client as > html. > > However, when I receive the

Re: SMTP Test Rig ( SMTPRIG.PY v1.0 )

2005-06-10 Thread Martin Franklin
Tim Williams wrote: > After a few posts recently, I have put together an SMTP test rig that will > receive emails and either store them to a file, write them to a console, or > both. > > Does anyone have any suggestions on where I can get it hosted as a utility > for general public use? > > TI

Re: Is pyton for me?

2005-06-10 Thread Kent Johnson
Andrew Dalke wrote: > import subprocess > def gensky(hour): > subprocess.check_call(["gensky", "3", "21", str(hour)], >stdout = open("sky%d.rad" % (hour,), "w")) > > > The main differences here are: > - the original code didn't check the return value of os.system(). > I

Re: programmnig advise needed

2005-06-10 Thread Magnus Lycka
[EMAIL PROTECTED] wrote: > Hi, > > I am writing a Python program that needs to read XML files and contruct > a tree object from the XML file (using wxTree). > The XML however is not an hiearchical XML file. It contains > and tags. The tags link the elements > together. Are you sure that you ge

Re: circular import Module

2005-06-10 Thread Magnus Lycka
[EMAIL PROTECTED] wrote: > Hello, > > I have two modules (file1.py and file2.py) > Is that ok in python (without any weird implication) if my module > import each other. I mean in module file1.py there exist command import > file2 and in module file2.py there exist command import file1? Even if i

Re: python bytecode grammar

2005-06-10 Thread M1st0
Ops yes is BNF :P Bacus Normal Form if I am not wrong... However.. I'am tryng to recognizing patterns in a bytecoded file in orderd to optimize... But I would like to "parse" i.e reconstruct it in something like a tree.. in order to apply rules on a tree recursively. I have seen compile.c

re: howto send html mails using smtplib

2005-06-10 Thread Philippe C. Martin
Tim, You are most correct, replace_header did the trick. Thanks a bunch. Philippe Tim Williams wrote: > "Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> I have the following problem: >> 1) I can use smtplib to send text messages >> 2) I can generate htm

[no subject]

2005-06-10 Thread python-list-bounces+archive=mail-archive . com
#! rnews 2612 Newsgroups: comp.lang.python Path: news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp From: Harry George <[EMAIL PROTECTED]> Subject: Re: Generating HTML from python X-Nntp-

Re: Generating HTML from python

2005-06-10 Thread Philippe C. Martin
Thanks Walter Dörwald wrote: > Cappy2112 wrote: >> I looked at HTMLGen a while ago- I didn't see what the advantage was. >> I wrote soem code similar to the example above, to generate a page.. >> It worked out fine. >> >> However, I want to add HTML ouput to many of my other python programs, >>

unittest and XML output

2005-06-10 Thread James Jeffers
I couldn't find any resource that addresses output from the unittest package in python 2.4.x. I can't beleive that there isn't an output formatter/test runner for the unittest package.. surely some needed this before. Is there a working group or package maintainer for these kinds of features? T

Re: Generating HTML from python

2005-06-10 Thread Philippe C. Martin
PS: Just wanted to add that HTMLGen works very well and outputs html that wxHtmlEasyPrinting and my email client have not problem reading (I output student grades, missing assignments, ... in tables). The one gitch is they do not have any installation program (that I've seen) for windows. Regards

Re: anygui,anydb, any opinions?

2005-06-10 Thread Thomas Bartkus
"Renato Ramonda" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus ha scritto: > > >>Then download gtk2.6 and glade for windows and then install pygtk and > >>code away to your satisfaction! :-D > >> > > > > > > I *will* try that. > > On linux you probably have everything

IMAP Proxy

2005-06-10 Thread Tarek Ziadé
Hi, I want to write a small TCP Server in Python to make an IMAP Proxy for post-processing client requests. It is not long either complicated but needs to be very robust so... maybe someone here has already done such a thing I can use or know where i can get it ? Cheers, Tarek -- http://mail.p

Perl s/ To Python?

2005-06-10 Thread John Abel
Does anyone know of a quick way of performing this: $testVar =~ s#/mail/.*$##g The only way I can think of doing it, is: mailPos = testVar.find( "mail" ) remainder = testVar[ :mailPos ] Any ideas would be appreciated. I'm iterating over a lot of entries, and running these lines for each entr

Re: MySQLDBAPI

2005-06-10 Thread deelan
Gregory Piñero wrote: > I didn't see anything about mysql-devel package in the release notes. it's there, section "Prerequisites". > Is that something I can install all to my home directory? never tried, but sounds hard to do. mysql-devel is a bunch of libs and include files tied to mysql. the

Re: without shell

2005-06-10 Thread Steven D'Aprano
On Sun, 12 Jun 2005 23:16:35 +0530, km wrote: > hi all, > > can any linux command be invoked/ executed without using shell (bash) ? py> import os py> status = os.system("ls") Prints the output of ls and stores the exit code into status. py> file_list = os.popen("ls").read() Stores the output

Re: Abstract and concrete syntax

2005-06-10 Thread Kay Schluehr
Mandus schrieb: > As someone who like to do functional style programming, but without a > lot of training in that dept., I miss what you ask for from time to > time. > > I don't want to go to much into this discussion, just comment on a tiny > little bit: > > Thu, 09 Jun 2005 03:32:12 +0200 skrev

Re: SMTP Test Rig ( SMTPRIG.PY v1.0 )

2005-06-10 Thread dowskimania
Tim Williams wrote: > After a few posts recently, I have put together an SMTP test rig that will > receive emails and either store them to a file, write them to a console, or > both. Sounds interesting. > Does anyone have any suggestions on where I can get it hosted as a utility > for general

Re: without shell

2005-06-10 Thread Grant Edwards
On 2005-06-12, km <[EMAIL PROTECTED]> wrote: > can any linux command be invoked/executed without using shell (bash)? Yes -- for some values of "linux command". You can execute anything that's not a bash internal or a bash script without using bash. > what abt security concerns? What about them

Re: Perl s/ To Python?

2005-06-10 Thread JZ
Dnia Fri, 10 Jun 2005 14:57:21 +0100, John Abel napisał(a): > $testVar =~ s#/mail/.*$##g > > The only way I can think of doing it, is: > > mailPos = testVar.find( "mail" ) > remainder = testVar[ :mailPos ] > > Any ideas would be appreciated. I'm iterating over a lot of entries, > and running

Re: without shell

2005-06-10 Thread Grant Edwards
On 2005-06-10, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 12 Jun 2005 23:16:35 +0530, km wrote: > >> hi all, >> >> can any linux command be invoked/ executed without using shell (bash) ? > > py> import os > py> status = os.system("ls") > > Prints the output of ls and stores the exit cod

Re: Perl s/ To Python?

2005-06-10 Thread John Abel
JZ wrote: >Dnia Fri, 10 Jun 2005 14:57:21 +0100, John Abel napisał(a): > > > >>$testVar =~ s#/mail/.*$##g >> >>The only way I can think of doing it, is: >> >>mailPos = testVar.find( "mail" ) >>remainder = testVar[ :mailPos ] >> >>Any ideas would be appreciated. I'm iterating over a lot of entr

Re: without shell

2005-06-10 Thread Mage
Steven D'Aprano wrote: >On Sun, 12 Jun 2005 23:16:35 +0530, km wrote: > > > >>hi all, >> >>can any linux command be invoked/ executed without using shell (bash) ? >> >> > >py> import os >py> status = os.system("ls") > >Prints the output of ls and stores the exit code into status. > >py> fil

Re: Perl s/ To Python?

2005-06-10 Thread Gary Wilson Jr
John Abel wrote: > Does anyone know of a quick way of performing this: > > $testVar =~ s#/mail/.*$##g Use the re (regular expression) module. Since you are iterating over a lot of entries, it is good to compile the regular expression outside of the loop. >>> import re >>> mailRE = re.compile('/

about accessing mysql

2005-06-10 Thread sinan ,
hi everybody, i have a small mysql connection code >>> import MySQLdb >>> db=MySQLdb.Connection(host="localhost",user="root",db="nux") Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.3/site-packages/MySQLdb/__init__.py", line 66, in Connect return Connection

Re: without shell

2005-06-10 Thread Grant Edwards
On 2005-06-10, Mage <[EMAIL PROTECTED]> wrote: >>py> file_list = os.popen("ls").read() >> >>Stores the output of ls into file_list. >> > These commands invoke shell indeed. Under Unix, popen will not invoke a shell if it's passed a sequence rather than a single string. -- Grant Edwards

Re: Dealing with marketing types...

2005-06-10 Thread Will McGugan
flyingfred0 wrote: > A small software team (developers, leads and even the manager when he's > had time) has been using (wx)Python/PostgreSQL for over 2 years and > developed a successful 1.0 release of a client/server product. > > A marketing/product manager has brought in additional management

Basic questions about packages/modules.

2005-06-10 Thread Negroup
Hi, first of all sorry for boring you with a such simple request. I'm using Python since few days, and I like it even if I'm not yet in confidence. I'd like to organize my programs in hierarchical structures, thus I thought that packages could be the solution, however I have some difficulties under

Re: Basic questions about packages/modules.

2005-06-10 Thread John Abel
Negroup wrote: >Hi, first of all sorry for boring you with a such simple request. I'm >using Python since few days, and I like it even if I'm not yet in >confidence. I'd like to organize my programs in hierarchical >structures, thus I thought that packages could be the solution, >however I have so

Re: python bytecode grammar

2005-06-10 Thread Diez B. Roggisch
M1st0 wrote: > Ops yes is BNF :P Bacus Normal Form if I am not wrong... > > However.. > > I'am tryng to recognizing patterns in a bytecoded file in orderd to > optimize... > > But I would like to "parse" i.e reconstruct it in something like a > tree.. > in order to apply rules on a tree rec

Re: IMAP Proxy

2005-06-10 Thread Jp Calderone
On Fri, 10 Jun 2005 15:52:28 +0200, Tarek Ziadé <[EMAIL PROTECTED]> wrote: >Hi, > >I want to write a small TCP Server in Python to make an IMAP Proxy for >post-processing client requests. > >It is not long either complicated but needs to be very robust so... >maybe someone here has already done suc

Re: Annoying behaviour of the != operator

2005-06-10 Thread Steven D'Aprano
On Thu, 09 Jun 2005 08:10:09 -0400, Dan Sommers wrote: >>> The main problem is that Python is trying to stick at least three >>> different concepts onto the same set of operators: equivalence (are >>> these two objects the same?), ordering (in a sorted list, which comes >>> first?), and mathematic

Re: IMAP Proxy

2005-06-10 Thread Skip Montanaro
Tarek> I want to write a small TCP Server in Python to make an IMAP Tarek> Proxy for post-processing client requests. Tarek> It is not long either complicated but needs to be very robust Tarek> so... maybe someone here has already done such a thing I can use Tarek> or know wh

Re: Perl s/ To Python?

2005-06-10 Thread Andreas Kostyrka
I'd consider taking a look at the re module ;) Andreas On Fri, Jun 10, 2005 at 02:57:21PM +0100, John Abel wrote: > Does anyone know of a quick way of performing this: > > $testVar =~ s#/mail/.*$##g > > The only way I can think of doing it, is: > > mailPos = testVar.find( "mail" ) > remainder

Re: about accessing mysql

2005-06-10 Thread Diez B. Roggisch
sinan , wrote: > hi everybody, i have a small mysql connection code > > import MySQLdb db=MySQLdb.Connection(host="localhost",user="root",db="nux") > > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/python2.3/site-packages/MySQLdb/__init__.py", line > 66,

Re: Dealing with marketing types...

2005-06-10 Thread Diez B. Roggisch
Will McGugan wrote: > Marketing types need a bandwagon to jump on. Point out that Google is > used by Google, ILM and NASA. Certainly a true statement - but I've got the sneaky suspicion that the first google was supposed to be python. Diez -- http://mail.python.org/mailman/listinfo/python-lis

Re: without shell

2005-06-10 Thread Steven D'Aprano
On Fri, 10 Jun 2005 14:13:05 +, Grant Edwards wrote: > On 2005-06-10, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >> On Sun, 12 Jun 2005 23:16:35 +0530, km wrote: >> >>> hi all, >>> >>> can any linux command be invoked/ executed without using shell (bash) ? >> >> py> import os >> py> status =

Re: MySQLDBAPI

2005-06-10 Thread Daniel Dittmar
Gregory Piñero wrote: > Is that something I can install all to my home directory? If you have a similar Linux distribution at home, simply build the mysql extension on that machine and then copy it to the web server. Otherwise: You don't have to actually install it. Just make sure that Setup.py

Re: python bytecode grammar

2005-06-10 Thread M1st0
Ok I tried :). -- http://mail.python.org/mailman/listinfo/python-list

Re: Changing entities

2005-06-10 Thread Daniel
Hi Kent This isn't work with the following line: FieldGraphic56::= GraphicString EBCDIC BC= " " SIZE (56 BYTES) >>> byter = re.compile(r'SIZE \((\d+) BYTE\)') >>> s = 'SIZE (1 BYTE)' >>> byter.sub(r'SIZE(\1)', s) 'SIZE(1)' >>> byter.sub(r'SIZE(\1)', line) 'FieldGraphic56::= Gr

Re: Changing entities

2005-06-10 Thread Daniel
Hi Kent This isn't work with the following line: FieldGraphic56::= GraphicString EBCDIC BC= " " SIZE (56 BYTES) >>> byter = re.compile(r'SIZE \((\d+) BYTE\)') >>> s = 'SIZE (1 BYTE)' >>> byter.sub(r'SIZE(\1)', s) 'SIZE(1)' >>> byter.sub(r'SIZE(\1)', line) 'FieldGraphic56::= Gr

Re: Annoying behaviour of the != operator

2005-06-10 Thread Rocco Moretti
Dan Sommers wrote: > On Thu, 09 Jun 2005 15:50:42 +1200, > Greg Ewing <[EMAIL PROTECTED]> wrote: > > >>Rocco Moretti wrote: >> >>>The main problem is that Python is trying to stick at least three >>>different concepts onto the same set of operators: equivalence (are >>>these two objects the same?

Re: about accessing mysql

2005-06-10 Thread sinan ,
hi, my table types are MyISAM both local and server, my code can reach to my locals mysql but cannot reach when running on server. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is pyton for me?

2005-06-10 Thread Andrew Dalke
Kent Johnson wrote: > Where do you find check_call()? It's not in the docs and I get > >>> import subprocess > >>> subprocess.check_call > Traceback (most recent call last): > File "", line 1, in ? > AttributeError: 'module' object has no attribute 'check_call' > > with Python 2.4.1. Interest

Re: about accessing mysql

2005-06-10 Thread sinan ,
oh my system is debian - sarge with python 2.3 -- http://mail.python.org/mailman/listinfo/python-list

Re: about accessing mysql

2005-06-10 Thread deelan
sinan , wrote: (...) > these command works at my computer but when i want to do in my server, > i get these messages as you seen, my both computer and server have > same python, same MySQLdb module and same database with same > priviliges.also how can i connect to remote database? is that work ? >

Re: IMAP Proxy

2005-06-10 Thread =?UTF-8?B?VGFyZWsgWmlhZMOp?=
Jp Calderone wrote: >On Fri, 10 Jun 2005 15:52:28 +0200, Tarek Ziadé <[EMAIL PROTECTED]> wrote: > > >>Hi, >> >>I want to write a small TCP Server in Python to make an IMAP Proxy for >>post-processing client requests. >> >>It is not long either complicated but needs to be very robust so... >>mayb

Re: Basic questions about packages/modules.

2005-06-10 Thread Kay Schluehr
Negroup schrieb: > Hi, first of all sorry for boring you with a such simple request. I'm > using Python since few days, and I like it even if I'm not yet in > confidence. I'd like to organize my programs in hierarchical > structures, thus I thought that packages could be the solution, > however I h

Re: about accessing mysql

2005-06-10 Thread sinan ,
i checked innodb support via show variable. they have both same support. mysql version is 4.0.24_Debian-5-log MySQLdb module version is 1.2.1g2 they are same packets in debian. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: IMAP Proxy

2005-06-10 Thread =?ISO-8859-1?Q?Tarek_Ziad=E9?=
Skip Montanaro wrote: >Tarek> I want to write a small TCP Server in Python to make an IMAP >Tarek> Proxy for post-processing client requests. > >Tarek> It is not long either complicated but needs to be very robust >Tarek> so... maybe someone here has already done such a thing I ca

Re: Annoying behaviour of the != operator

2005-06-10 Thread George Sakkis
"Rocco Moretti" wrote: > One way to handle that is to refuse to sort anything that doesn't have a > "natural" order. But as I understand it, Guido decided that being able > to sort arbitrary lists is a feature, not a bug. He has changed his mind since then (http://mail.python.org/pipermail/python

Re: Annoying behaviour of the != operator

2005-06-10 Thread Dan Bishop
Steven D'Aprano wrote: ... > If you were to ask, "which is bigger, 1+2j or 3+4j?" then you > are asking a question about mathematical size. There is no unique answer > (although taking the absolute value must surely come close) and the > expression 1+2j > 3+4j is undefined. > > But if you ask "whic

Re: Changing entities

2005-06-10 Thread Kent Johnson
Daniel wrote: > Hi Kent > > This isn't work with the following line: > FieldGraphic56::= GraphicString EBCDIC BC= " " SIZE (56 > BYTES) > > byter = re.compile(r'SIZE \((\d+) BYTE\)') Because the string doesn't match the pattern, can you see the difference? Do you understand what

Re: Annoying behaviour of the != operator

2005-06-10 Thread Jp Calderone
On 10 Jun 2005 09:05:53 -0700, Dan Bishop <[EMAIL PROTECTED]> wrote: >Steven D'Aprano wrote: >... >> If you were to ask, "which is bigger, 1+2j or 3+4j?" then you >> are asking a question about mathematical size. There is no unique answer >> (although taking the absolute value must surely come clos

How to overcome automatic cyrillic-to-/hex convert

2005-06-10 Thread degoor_python
Hi friends, I am really sorry to bother you with such a simple stupid question but today it's my second day spent in searching manuals, mail-archives (I downloaded over 100MB from "python-list"), etc., and I could not find anything that can solve the matter. I am from Bulgaria and I use Python (+

Re: Abstract and concrete syntax

2005-06-10 Thread George Sakkis
"Mandus" wrote: > Thu, 09 Jun 2005 03:32:12 +0200 skrev David Baelde: > [snip] > > > > set_callback(obj, > > lambda x: (if a: > >2 > > else: > >3) > > > [snip] > > You can do stuff like this: lambda x: x and 2 or 3 > > Of course, you are st

RE: how to operate the excel by python?

2005-06-10 Thread Hughes, Chad O
Here are two scripts that I have had to build for a class that I teach. You will either need to write the constants explicitly, or I can email neet the constans module that I have built, for the second one to work. I will copy it to the very end. If you have any questions, just let me know. He

Re: Abstract and concrete syntax

2005-06-10 Thread George Sakkis
"Kay Schluehr" wrote: > > Thu, 09 Jun 2005 03:32:12 +0200 skrev David Baelde: > > [snip] > > > > > > set_callback(obj, > > > lambda x: (if a: > > >2 > > > else: > > >3) > > > > > [snip] > > > > You can do stuff like this: lambda x: x and 2

Re: Abstract and concrete syntax

2005-06-10 Thread George Sakkis
"Kay Schluehr" wrote: > > You can do stuff like this: lambda x: x and 2 or 3 > > You can also do this > >lambda x: {True:2,False:3}.get(bool(a)) > > which is both beautiful and pythonic. > > Kay Beauty is in the eye of the beholder, and the same holds for 'pythonicity'; IMO both are much less

Re: Dealing with marketing types...

2005-06-10 Thread Harald Massa
> They want a > "scalable, enterprise solution" (though they don't really know what > that means) and are going crazy throwing around the Java buzzwords > (not to mention XML). > There is a very cheap solution: Ryan Tomayko debunkes all these myths. You can google it up, "astronaut architects"

Re: match groups: optional groups not accessible

2005-06-10 Thread Peter Hansen
Peter Hansen wrote: > [EMAIL PROTECTED] wrote: > >> Why does the following result in an IndexError? >> I try to match an optional group, and then access it via its group >> name. The group happens to not participate in the match, but is >> obviously defined in the pattern. >> > m = re.match('(

RE: how to operate the excel by python?

2005-06-10 Thread Hughes, Chad O
Sorry, I meant to spell check but I did not somehow. Chad -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hughes, Chad O Sent: Friday, June 10, 2005 10:01 AM To: python-list@python.org Subject: RE: how to operate the excel by python? Here are two script

Re: Annoying behaviour of the != operator

2005-06-10 Thread Terry Reedy
"Rocco Moretti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The "wackyness" I refered to wasn't that a list of complex numbers isn't > sortable, but the inconsistent behaviour of list sorting. As you > mentioned, an arbitraty collection of objects in a list is sortable, but > as

  1   2   >