Re: newbie...No module named win32com.client

2006-08-02 Thread placid
[EMAIL PROTECTED] wrote: > This is my very first time to use Phyton! > > I am getting a problem with win32com.client missing from some existinf > scripts. > > >python > Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] > on win32 > Type "help", "copyright", "credits" or "licens

newbie...No module named win32com.client

2006-08-02 Thread schouwla
This is my very first time to use Phyton! I am getting a problem with win32com.client missing from some existinf scripts. >python Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import win32c

Can Your Programming Language Do This? Joel on functional programming and briefly on anonymous functions!

2006-08-02 Thread Casey Hawthorne
Can Your Programming Language Do This? Joel on functional programming and briefly on anonymous functions! http://www.joelonsoftware.com/items/2006/08/01.html -- Regards, Casey -- http://mail.python.org/mailman/listinfo/python-list

Re: How to force a thread to stop

2006-08-02 Thread Alex Martelli
H J van Rooyen <[EMAIL PROTECTED]> wrote: > "Paul Rubin" Writes: > > | "H J van Rooyen" <[EMAIL PROTECTED]> writes: > | > *grin* - Yes of course - if the WDT was enabled - its something that > | > I have not seen on PC's yet... > | > | They are available for PC's, as pl

Re: Are there any AOP project in python community?

2006-08-02 Thread Kay Schluehr
steve wrote: > I mean Aspect-Oriented Programming. > If any please give me some of links. > Thanks a lot. http://www.google.de/search?hl=de&q=python+%2B+AOP&btnG=Google-Suche&meta= -- http://mail.python.org/mailman/listinfo/python-list

[ANN] The argparse module

2006-08-02 Thread Steven Bethard
I'm pleased to announce initial availability of the argparse module, an optparse-inspired command line parser: http://argparse.python-hosting.com/ The argparse module can be downloaded as a single file, argparse.py, through the Browse Source link on the website. Argparse improves on optparse

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread John Machin
BartlebyScrivener wrote: > Stand and fight, Python brothers. Fear not, the Ruby horde! > > From this day to the ending of the world, > But we in it shall be remember'd; > We few, we happy few, we band of brothers; > For he to-day that sheds his blood with me > Shall

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Aahz
In article <[EMAIL PROTECTED]>, crystalattice <[EMAIL PROTECTED]> wrote: > >The best book I've found for "teaching" you the language is from Deitel >and Deitel: Python, How to Program. It's outdated in that is uses >Python 2.2 but the vast majority of concepts still apply; it does >mention when c

Re: Using Python for my web site

2006-08-02 Thread Cliff Wells
On Wed, 2006-08-02 at 23:13 -0300, Gerhard Fiedler wrote: > Thanks, that's one of the conclusions to which I also came. That final > question was missing, even though I felt it was implied. I really had no > clue that this is such a touchy subject. Every opinion in technology seems to be touchy

Re: serial ports, threads and windows

2006-08-02 Thread Grant Edwards
On 2006-08-02, Tom Brown <[EMAIL PROTECTED]> wrote: > When it runs on Windows, could it be: > > 1) Just struggling to run inside of VMware? Could be. Virtual machines are rather tricky things on broken architectures that don't really permit true virtualization. > 2) Using threads with Qt on W

Re: exception handling; python program that interacts with postgresql db

2006-08-02 Thread damacy
yes, i'll have a read. thanks. =) hiaips wrote: > Another option would be to use the psycopg module to connect to > postgres from within your Python code. See > http://www.initd.org/projects/psycopg1 for more information. > > --hiaips -- http://mail.python.org/mailman/listinfo/python-list

Re: exception handling; python program that interacts with postgresql db

2006-08-02 Thread damacy
hiaips wrote: > damacy wrote: > > hi, there. i have this question which might sound quite stupid to some > > people, but here we go anyway. > > > > i have written a python program which interacts with a postgresql > > database. what it does is simply drops an existing database called > > 'mytempdb

Re: need help of regular expression genius

2006-08-02 Thread Paul McGuire
"GHUM" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I need to split a text at every ; (Semikolon), but not at semikolons > which are "escaped" within a pair of $$ or $_$ signs. > The pyparsing rendition to this looks very similar to the SE solution, except for the regexp's: text

python unicode how to

2006-08-02 Thread Thomas Thomas
Hi all,   I have a file with special characters such as "£" etc.  I need to read the file into a list as unicode strings.. How can I do this.. I tried codecs   import codecsfilename='d:/poll/test.XST'metaHash={}infile = codecs.open(filename, "r", encoding='utf-16')text = infile.read().spli

Re: Using Python for my web site

2006-08-02 Thread Gerhard Fiedler
On 2006-08-02 22:17:38, Cliff Wells wrote: > On the other hand, had I appended "So I'd like some other opinions > because I don't know." to the end, it would probably cut the irritation > down considerably (or at least be in a much more defensible position if > it didn't). Thanks, that's one of t

Re: function v. method

2006-08-02 Thread Alex Martelli
Gerhard Fiedler <[EMAIL PROTECTED]> wrote: > On 2006-07-25 05:16:04, Wesley Brooks wrote: > > >> prefix your names with _ or __. Both are ommited from autogenerated > >> docuementation and both are OFFICALLY not supposed to be used. > >> > > > > Could you elaborate on that a little or point me i

Re: exception handling; python program that interacts with postgresql db

2006-08-02 Thread hiaips
Another option would be to use the psycopg module to connect to postgres from within your Python code. See http://www.initd.org/projects/psycopg1 for more information. --hiaips -- http://mail.python.org/mailman/listinfo/python-list

Re: exception handling; python program that interacts with postgresql db

2006-08-02 Thread hiaips
damacy wrote: > hi, there. i have this question which might sound quite stupid to some > people, but here we go anyway. > > i have written a python program which interacts with a postgresql > database. what it does is simply drops an existing database called > 'mytempdb'. > > the code looks like b

Re: Windows vs. Linux

2006-08-02 Thread Alex Martelli
Sybren Stuvel <[EMAIL PROTECTED]> wrote: > Gerhard Fiedler enlightened us with: > > I don't know how many reasons you need besides backward > > compatibility, but all the DOS (still around!) and Windows apps that > > would break... ?!? I think breaking that compatibility would be > > more expensi

exception handling; python program that interacts with postgresql db

2006-08-02 Thread damacy
hi, there. i have this question which might sound quite stupid to some people, but here we go anyway. i have written a python program which interacts with a postgresql database. what it does is simply drops an existing database called 'mytempdb'. the code looks like below; link = subprocess.Pope

Re: Are there any AOP project in python community?

2006-08-02 Thread hiaips
steve wrote: > I mean Aspect-Oriented Programming. > If any please give me some of links. > Thanks a lot. See http://en.wikipedia.org/wiki/Aspect-oriented_programming. There is a list of AOP implementations for a number of languages (including Python) near the bottom of the page. --hiaips -- ht

Re: Using Python for my web site

2006-08-02 Thread Cliff Wells
On Wed, 2006-08-02 at 10:46 -0300, Gerhard Fiedler wrote: > On 2006-08-02 00:51:28, Conrad wrote: > > > Which begins "A few years ago" > > Exactly. Isn't this a good start for honesty? It doesn't claim to state > anything up to date. > > It continues "I did some research", "some" being a very c

Re: Windows vs. Linux

2006-08-02 Thread Gerhard Fiedler
On 2006-08-02 21:09:43, Sybren Stuvel wrote: > Microsoft could provide an emulated environment for backward > compatability, just like Apple did. Wouldn't know what that would cost, > though. Possibly. Rather than waiting for that, I think that languages that want a degree of portability should s

Re: Windows vs. Linux

2006-08-02 Thread Alex Martelli
Gerhard Fiedler <[EMAIL PROTECTED]> wrote: ... > > Part of the CP/M compatibility did include the use of / as flag-indicator > > (the use of \r+\n as line ending also comes from CP/M -- in turn, CP/M > > had aped these traits from some DEC minicomputer operating systems). > > At the time, proba

Re: Hiding Console Output

2006-08-02 Thread placid
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fro

The most powerful question to ask A.I is:

2006-08-02 Thread switzerland qunatium computer
The most powerful question to ask A.I is: 1.How is a hammer connected to everything and what network map would it build for the next question. 2.How is everything connected in the universe by the way of magnetism can we build a quantum ADDRESS of everything in space time If numbers go on too the en

Re: serial ports, threads and windows

2006-08-02 Thread placid
Tom Brown wrote: > When it runs on Windows, could it be: > > 1) Just struggling to run inside of VMware? i have gut feeling that it could be that this is the problem. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hiding Console Output

2006-08-02 Thread kyle.tk
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fro

Are there any AOP project in python community?

2006-08-02 Thread steve
I mean Aspect-Oriented Programming. If any please give me some of links. Thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list

serial ports, threads and windows

2006-08-02 Thread Tom Brown
Hey people, I've written a python app that r/w eight serial ports to control eight devices using eight threads. This all works very nicely in Linux. I even put a GUI on it using PyQt4. Still works nicely. Then I put the app on on a virtual Windows machine running inside of vmware on the same

Re: ElementTree and Unicode

2006-08-02 Thread Sébastien Boisgérault
Martin v. Löwis wrote: > Sébastien Boisgérault schrieb: > > I am trying to embed an *arbitrary* (unicode) strings inside > > an XML document. Of course I'd like to be able to reconstruct > > it later from the xml document ... If the naive way to do it does > > not work, can anyone suggest a way to

Re: Windows vs. Linux

2006-08-02 Thread Gerhard Fiedler
On 2006-08-02 17:36:06, Sybren Stuvel wrote: > IMO it's too bad that "they" chose \r\n as the standard. Having two > bytes as the end of line marker makes sense on typewriters and > similarly operating printing equipment. I may well be mistaken, but I think at the time they set that standard, s

Re: Is there an obvious way to do this in python?

2006-08-02 Thread Bruno Desthuilliers
H J van Rooyen a écrit : > Hi, > > I want to write a small system that is transaction based. > > I want to split the GUI front end data entry away from the file handling and > record keeping. > > Now it seems almost trivially easy using the sockets module to communicate > between machines on the

Re: Windows vs. Linux

2006-08-02 Thread Christopher Weimann
On 08/02/2006-08:06AM, [EMAIL PROTECTED] wrote: > > >From a WinXP command prompt: > > C:\> > C:\>cd /windows/system32 > > C:\WINDOWS\system32> > > This doesn't work the way you think it does. C:\>cd /windows C:\WINDOWS>cd /system32 C:\WINDOWS\system32> C:\WINDOWS\system32>cd

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Bruno Desthuilliers
BartlebyScrivener a écrit : > [EMAIL PROTECTED] wrote: > > >>>The Ruby crowd says you guys are no where >>> near as friendly as them! > > > Slander! Defamation! > I'd rather say cluelessness and jealousy !-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > thanks very much for all the comments, links to articles and other > help.The Ruby crowd says you guys are no where near as friendly as > them! Yes. Python bashing sadly appears to be the national sport amongst Rubyists. Looks like a puberty crisis to me, and I gues

JOB: Python Developer in Chicago, IL

2006-08-02 Thread phredrik
SUMMARY We are a mid-sized Web technology firm with deep roots in the open source community and toolsets. We are seeking an experienced Python programmer to assist us in providing the best possible Web-based applications to our existing and future clients. Join our superior multi-disciplinary te

Re: Hiding Console Output

2006-08-02 Thread Larry Bates
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fr

Re: Simple HTML display of a select query

2006-08-02 Thread Larry Bates
flit wrote: > Hi all, > > How Can I do in the simplest way, display in html one table with the > return of 3 collums? > Like > 1- consult mysql base > 2- make the select query > 3- show the values. > > I am a kind of lost in the frameworks, and modules. > I think a lot of them with little documen

Re: VisualStudio2005 supported in distutils

2006-08-02 Thread Jarek Zgoda
Martin v. Löwis napisał(a): >>Unfortunately, distutils does not support VisualStudio2005. I tried to >>modify the file msvccompiler.py without success (this case requires to >>support some changes of the Visual Studio 8 register for both Win32 and >>Win64). So, I wonder if the integration of Visua

Re: VisualStudio2005 supported in distutils

2006-08-02 Thread Martin v. Löwis
mg schrieb: > Unfortunately, distutils does not support VisualStudio2005. I tried to > modify the file msvccompiler.py without success (this case requires to > support some changes of the Visual Studio 8 register for both Win32 and > Win64). So, I wonder if the integration of VisualStudio2005 in di

Re: python under earthlink hosting?

2006-08-02 Thread mbstevens
On Wed, 02 Aug 2006 14:40:48 +0200, Martin P. Hellwig wrote: > Maybe they didn't symlink it, try /usr/local/bin/python2.4 Thanks, Martin. I went back to earthlink with this: _ Me: "I understand that I am supposed to be able to write CGI scripts in any scripting langua

Re: need help of regular expression genius

2006-08-02 Thread Anthra Norell
Harald, This works. 's' is your SQL sample. >>> import SE # From the Cheese Shop with a good manual >>> Split_Marker = SE.SE (' ";=\" "~\$_?\$(.|\n)*?\$_?\$~==" ') >>> s_with_split_marks = Split_Marker (s) >>> s_split = s_with_split_marks.split ('') That's it! And it isn't as complicated as

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread BartlebyScrivener
Stand and fight, Python brothers. Fear not, the Ruby horde! From this day to the ending of the world, But we in it shall be remember'd; We few, we happy few, we band of brothers; For he to-day that sheds his blood with me Shall be my brother; be he ne'er so

Re: Railroad track syntax diagrams

2006-08-02 Thread Ralf Muschall
Paddy wrote: > I googlled and got these: > http://www.informatik.uni-freiburg.de/~thiemann/haskell/ebnf2ps/ > http://www.antlr.org/share/1107033888258/SDG2-1.5.zip There is another beast, also called ebnf2ps, but in elisp (runs inside the editor). It requires no additional software (i.e. no

Re: Windows vs. Linux

2006-08-02 Thread Gerhard Fiedler
On 2006-08-02 17:38:54, Sybren Stuvel wrote: > Gerhard Fiedler enlightened us with: >>> Microsoft did *NOT* write DOS >> >> Well, they didn't write most of DOS 1.0. But it seems they did write >> (or at least specify) most if not all of the rest up to DOS 6.22 or >> so. Which is possibly consider

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread infidel
> The time to crush our enemies has come. > This is the Jihad! Death to the infidels Whoa, dude, let's not get carried away now, 'k? Looking-over-his-shoulder-ly y'rs, infidel -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows vs. Linux

2006-08-02 Thread Duncan Booth
Tim Chase wrote: > Nice to see consistancy at work. Looks like leading slashes are > stripped and so it trys to find it relative to the current path. > > Nothing like predictable, cross-platform implementations there. > [rolls eyes] > > Thank goodness Python brings some brains to the table wh

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Jarek Zgoda
Luis M. González napisał(a): The Ruby crowd says you guys are no where near as friendly as them! >> >>Slander! Defamation! > > The time to crush our enemies has come. > This is the Jihad! Death to the infidels We'll kill them all, then we'll piss on flowers in their gardens. We'll e

Running queries on large data structure

2006-08-02 Thread Christoph Haas
Hi, list... I have written an application in Perl some time ago (I was young and needed the money) that parses multiple large text files containing nested data structures and allows the user to run quick queries on the data. (For the firewall admins among you: it's a parser and web-based query t

Hiding Console Output

2006-08-02 Thread Kkaa
I'm using the os.system command in a python script on Windows to run a batch file like this: os.system('x.exe') The third-party program x.exe outputs some text to the console that I want to prevent from being displayed. Is there a way to prevent the output of x.exe from python? -- http://mail.

Re: first book about python

2006-08-02 Thread wesley chun
(double feature) > From: "Ray" <[EMAIL PROTECTED]> > Date: Tues, Aug 1 2006 2:10 am > > Hi Wesley, which edition of Python will your latest Core Python cover? > Will it cover 2.5? ray: thanks for asking. one of my goals for the book is to really cover the *core* parts of the language, me

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Luis M. González
BartlebyScrivener wrote: > [EMAIL PROTECTED] wrote: > > >> The Ruby crowd says you guys are no where > >> near as friendly as them! > > Slander! Defamation! The time to crush our enemies has come. This is the Jihad! Death to the infidels -- http://mail.python.org/mailman/listinfo/python-li

Re: Is there an obvious way to do this in python?

2006-08-02 Thread Nick Vatamaniuc
HJ, As someone already posted, the backend sounds very much like a database, so why not use a database: transactions, specific views for different users, limited access and so on = database! Give PostgresSQL a try... As far as presenting a different GUI to users, you can also do it based on the d

Re: Windows vs. Linux

2006-08-02 Thread Gerhard Fiedler
On 2006-08-02 12:41:44, Alex Martelli wrote: > Microsoft did *NOT* write DOS Well, they didn't write most of DOS 1.0. But it seems they did write (or at least specify) most if not all of the rest up to DOS 6.22 or so. Which is possibly considerable. > Part of the CP/M compatibility did include

Re: Windows vs. Linux

2006-08-02 Thread Gerhard Fiedler
On 2006-08-02 13:24:10, Dennis Lee Bieber wrote: > Change Directory may work... but > > C:\Documents and Settings\Dennis Lee Bieber>cd c:\ > > C:\>cd /windows/system32 > > C:\WINDOWS\SYSTEM32>cd c:\ > > C:\>dir /windows/system32 > Parameter format not correct - "windows". Since '/' is u

Re: ElementTree and Unicode

2006-08-02 Thread Martin v. Löwis
Sébastien Boisgérault schrieb: > I am trying to embed an *arbitrary* (unicode) strings inside > an XML document. Of course I'd like to be able to reconstruct > it later from the xml document ... If the naive way to do it does > not work, can anyone suggest a way to do it ? XML does not support arb

Re: Windows vs. Linux

2006-08-02 Thread Gerhard Fiedler
On 2006-08-02 11:29:18, Sybren Stuvel wrote: > John Salerno enlightened us with: >> But of course I still agree with you that in either case it's not a >> judgment you can fairly make 30 years after the fact. > > I don't see Microsoft changing it the next 30 years either... Apple > moved from \r

Re: ElementTree and Unicode

2006-08-02 Thread Martin v. Löwis
Sébastien Boisgérault schrieb: > I am trying to embed an *arbitrary* (unicode) strings inside > an XML document. Of course I'd like to be able to reconstruct > it later from the xml document ... If the naive way to do it does > not work, can anyone suggest a way to do it ? XML does not support arb

Re: itools 0.14.1 released

2006-08-02 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Python Enthought Edition 1.0.0 Released

2006-08-02 Thread david_wahler
I'll be out of the office until approximately August 20th. If you have any questions, please email [EMAIL PROTECTED] -- David Wahler -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Ted
I have always liked this tutorial for beginners: http://www.ibiblio.org/obp/thinkCSpy/ Cheers, Ted -- http://mail.python.org/mailman/listinfo/python-list

Simple HTML display of a select query

2006-08-02 Thread flit
Hi all, How Can I do in the simplest way, display in html one table with the return of 3 collums? Like 1- consult mysql base 2- make the select query 3- show the values. I am a kind of lost in the frameworks, and modules. I think a lot of them with little documentation. Just a simple display in h

Re: Thread Question

2006-08-02 Thread Simon Forman
Ritesh Raj Sarraf wrote: > Hi, > > I have this following situation: > > #INFO: Thread Support > # Will require more design thoughts > from Queue import Queue > from threading import Thread, currentThread > > NUMTHREADS = variables.options.num_of_threads > >

Re: Using Python for my web site

2006-08-02 Thread Paul Boddie
Bruno Desthuilliers wrote: > > To make a long story short, my opinion is that the only sensible thing > to do with Windows is to wipe it out and install an OS instead. If you're convinced you won't be running Windows, why deal with the problem so late in the game? Instead, order a system from a ve

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Aug 2)

2006-08-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Cameron Laird <[EMAIL PROTECTED]> wrote: . . . >Python2.5final is under two weeks away. Watch for it. . . . ... or may

Re: Thread Question

2006-08-02 Thread Ritesh Raj Sarraf
Hi, I have this following situation: #INFO: Thread Support # Will require more design thoughts from Queue import Queue from threading import Thread, currentThread NUMTHREADS = variables.options.num_of_threads def run(request, respo

Re: Is there an obvious way to do this in python?

2006-08-02 Thread Simon Forman
H J van Rooyen wrote: > Hi, > > I want to write a small system that is transaction based. > > I want to split the GUI front end data entry away from the file handling and > record keeping. > > Now it seems almost trivially easy using the sockets module to communicate > between machines on the same

Re: Newbie Q: Class Privacy (or lack of)

2006-08-02 Thread Antoon Pardon
On 2006-08-02, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >> I find that a strange purpose because when you are working on a class, >> you don't necessarily know if you will ever know many instance of that >> class. So should I use __slots__ in all my classes, just to be sure >> for when someone w

Re: Pickle vs XML for file I/O

2006-08-02 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, crystalattice wrote: > One other question though (hope it doesn't sound silly/stupid). Your > suggestion to "pickle a party" using a list has me thinking: can a > list store class instances? Yes of course you can store class instances in lists. > For example, if I wante

Re: ElementTree and Unicode

2006-08-02 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Sébastien Boisgérault wrote: > I am trying to embed an *arbitrary* (unicode) strings inside > an XML document. Of course I'd like to be able to reconstruct > it later from the xml document ... If the naive way to do it does > not work, can anyone suggest a way to do it ? E

Re: Using Python for my web site

2006-08-02 Thread Bruno Desthuilliers
Luis M. González a écrit : (snip). > I guess that the reason for not having used a framework already is > laziness... Strange enough, laziness is my first reason for using frameworks ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Tim Chase
> The Ruby crowd says you guys are no where near as friendly as > them! I was half expecting a nervous breakdown after writing > my first post here. Maybe the Ruby folks have to be friendlier to make up for their language of choice... :*) The python mailing list is your pretty typical technical

Re: Nested function scope problem

2006-08-02 Thread Antoon Pardon
On 2006-08-02, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On 2 Aug 2006 13:09:26 GMT, Antoon Pardon <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> >> And how is this all relevant in deciding that the source language for >> the above interpreter actions isn't C? What th

Re: Using Python for my web site

2006-08-02 Thread Bruno Desthuilliers
Conrad a écrit : > On Mon, 31 Jul 2006 19:14:03 +0200, Bruno Desthuilliers wrote: > > >>northband wrote: >> >>>Hi, I am interested in re-writing my website in Python vs PHP but have a >>>few questions. Here are my specs, please advise as to which >>>configuration would be best: >>> >>>1.Dell Powe

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread BartlebyScrivener
[EMAIL PROTECTED] wrote: >> The Ruby crowd says you guys are no where >> near as friendly as them! Slander! Defamation! -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle vs XML for file I/O

2006-08-02 Thread crystalattice
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, crystalattice > wrote: > > >> What are the problems you fear when using `shelve` by the way? > >> > > The ideas I got about shelve are mostly due to this thread: > > http://tinyurl.com/lueok. There weren't any other threads > > contradictin

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread simonharrison
thanks very much for all the comments, links to articles and other help.The Ruby crowd says you guys are no where near as friendly as them! I was half expecting a nervous breakdown after writing my first post here. Cheers again -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Cygwin Q

2006-08-02 Thread Gerry Blais
Sorry - problem solved. My #!/usr/Pyrthon2.4.exe was inadvertently on line 2... Gerry On Wed, 02 Aug 2006 13:04:10 -0400, Gerry Blais <[EMAIL PROTECTED]> wrote: >I'm trying to install and run, on XP, a queueing analysis package, >PDQ, which has a{ Python, swig, C library version}. > >I'm new

PyImport_Import() failed

2006-08-02 Thread Yang Fan
Hello,   I'm new to Python.I want to embed Python interpreter into my C++ application powered by Borland C++ Builder 2006.   I have written some C++ code in order to evaluate Python script file, but PyImport_Import() calls failed.I really don't know what's wrong with my cpp code.It always return a

Newbie Cygwin Q

2006-08-02 Thread Gerry Blais
I'm trying to install and run, on XP, a queueing analysis package, PDQ, which has a{ Python, swig, C library version}. I'm new to Cygwin (but not to Unix). After installing Cygwin and Python, there is a Python2.4.exe in /lib. If I have a file with #!/lib/Python2.4.exe Print "hello" and I do

Re: Convert string to mathematical function

2006-08-02 Thread jeremito
I was unaware of the exec and eval functions in Python. Without trying them, they seem to be what I want to do. I'll play around with it and see if I can figure it out. Thanks for the suggestions everyone. Jeremy -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get size of unicode string/string in bytes ?

2006-08-02 Thread Walter Dörwald
Diez B. Roggisch wrote: >> So then the easiest thing to do is: take the maximum length of a unicode >> string you could possibly want to store, multiply it by 4 and make that >> the length of the DB field. > >> However, I'm pretty convinced it is a bad idea to store Python unicode >> strings dire

Is there an obvious way to do this in python?

2006-08-02 Thread H J van Rooyen
Hi, I want to write a small system that is transaction based. I want to split the GUI front end data entry away from the file handling and record keeping. Now it seems almost trivially easy using the sockets module to communicate between machines on the same LAN, so that I want to do the record

Re: Newbie Q: Class Privacy (or lack of)

2006-08-02 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Antoon Pardon wrote: > On 2006-07-28, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> This avoids the problem but you get others in return. And it's an >> abuse of `__slots__` which is meant as a way to save memory if you need >> really many objects of that type an

Re: Windows vs. Linux

2006-08-02 Thread John Salerno
Sybren Stuvel wrote: > Apple > moved from \r to \n as EOL character. Interesting. I didn't know that. Although it does seem to make sense to use both \r\n as EOL (if you still consider one as a carriage return and one as a newline, a la old school typewriters), \n is much nicer and cleaner loo

Re: Newbie Q: Class Privacy (or lack of)

2006-08-02 Thread Diez B. Roggisch
> I find that a strange purpose because when you are working on a class, > you don't necessarily know if you will ever know many instance of that > class. So should I use __slots__ in all my classes, just to be sure > for when someone wants many instances of one? I find that a strange reasoning b

Re: Newbie Q: Class Privacy (or lack of)

2006-08-02 Thread Antoon Pardon
On 2006-07-28, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> >> class MyClass(object): >> >> __slots__ = ('bar',) >> >> def func(self): >> return 123 >> >> x = MyClass() >> x.instance_var_not_defined_in_the_class = 456 >> ==> >> AttributeError: 'MyClass' object has no a

Re: Datetime objects

2006-08-02 Thread Lad
John Machin wrote: > Lad wrote: > > Sybren Stuvel wrote: > > > Lad enlightened us with: > > > > How can I find days and minutes difference between two datetime > > > > objects? > > > > For example If I have > > > > b=datetime.datetime(2006, 8, 2, 8, 57, 28, 687000) > > > > a=datetime.datetime(200

Re: Windows vs. Linux

2006-08-02 Thread Tim Chase
> | Not from my Windows XP command prompt it doesn't. Do you have > | anything > | strange installed on your system? > > FWIW: > > > > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > c:\temp>cd \ > > C:\>cd /windows/System32 > > C:\windows\system32> >

Re: need help of regular expression genius

2006-08-02 Thread Ant
GHUM wrote: > I need to split a text at every ; (Semikolon), but not at semikolons > which are "escaped" within a pair of $$ or $_$ signs. Looking at you example SQL code, it probably isn't possible with regexes. Consider the code: $$ blah blah ... $$ blah; xxx $$ blah blah $$ Regexes aren't c

Re: Windows vs. Linux

2006-08-02 Thread Alex Martelli
jean-michel bain-cornu <[EMAIL PROTECTED]> wrote: > Andy Dingley a écrit : > > I'd never recommend dual-boot for anything! > Don't agree man, it's good for testing... It's bothersome for testing: virtualization is much handier in most cases. Alex -- http://mail.python.org/mailman/listinfo/pyth

Re: Windows vs. Linux

2006-08-02 Thread Alex Martelli
Gerhard Fiedler <[EMAIL PROTECTED]> wrote: ... a few fine points of computing history...: > >> (URLs probably use the slash because the internet protocols have been > >> developed largely on Unix-type systems for use with Unix-type systems?) > > > > It wasn't designed specifically for Unix-ty

RE: Windows vs. Linux

2006-08-02 Thread Tim Golden
| [EMAIL PROTECTED] wrote: | | >>From a WinXP command prompt: | > | > C:\> | > C:\>cd /windows/system32 | > | > C:\WINDOWS\system32> | > | > | Not from my Windows XP command prompt it doesn't. Do you have | anything | strange installed on your system? FWIW: Microsoft Windows

Re: looking for a regular expression

2006-08-02 Thread Peter Otten
¨ì©³¦b²Ö¤°»ò°Ú¡H wrote: >> How about >> my_string = "We the people of the United States, in order to form a >> more perfect union, establish justice, insure domestic >> tranquility,.." >> print (x for x in my_string.split(",") if "justice" in x).next() >> This isn't a regular expression, but i

Re: looking for a regular expression

2006-08-02 Thread Ant
> But what if there's not only commas, but also periods and semicolons? I > want to find words between 2 near by punctuations. I think it would make > it difficult to use split instead of regular expression. You could use re.split(r"\W", text) instead of the string split method to split on all non

Re: ElementTree and Unicode

2006-08-02 Thread Sébastien Boisgérault
Richard Brodie wrote: > "Sébastien Boisgérault" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > element = Element("string", value=u"\x00") > > I'm not as familiar with elementtree.ElementTree as I perhaps > should be. However, you appear to be trying to insert a null > chara

Re: Behavior on non definded name in Cheetah

2006-08-02 Thread Paolo Pantaleo
2006/8/2, Peter Otten <[EMAIL PROTECTED]>: > Paolo Pantaleo wrote: > > > 2006/8/2, Stephan Diehl <[EMAIL PROTECTED]>: > >> Paolo Pantaleo wrote: > >> > [I hope I am posting to the right place] > >> > > >> > I have a cheetah template something like this: > >> > > >> > x is: $x > >> > y is: $y > >> >

need help of regular expression genius

2006-08-02 Thread GHUM
I need to split a text at every ; (Semikolon), but not at semikolons which are "escaped" within a pair of $$ or $_$ signs. My guess was that something along this should happen withing csv.py; but ... it is done within _csv.c :( Example: the SQL text should be splitted at "" (of course, those "spl

Re: Windows vs. Linux

2006-08-02 Thread Duncan Booth
[EMAIL PROTECTED] wrote: >>From a WinXP command prompt: > > C:\> > C:\>cd /windows/system32 > > C:\WINDOWS\system32> > > Not from my Windows XP command prompt it doesn't. Do you have anything strange installed on your system? -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >