Re: WHAT IS THIS?

2007-02-16 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Captain wrote: > Just bought a new PC with Windows XP Media Edition. […] I gather > Python is a programming language, but I am wondering why it was > installed on my PC, and is it safe to remove it? I have no intention of > learning the program. Thanks in advance If it

Re: WHAT IS THIS?

2007-02-16 Thread Shadab Sayani
HI, I think it is safe to remove it.As far as I know no windows OS core programs use python Cheers, Shadab. --- Captain <[EMAIL PROTECTED]> wrote: > Just bought a new PC with Windows XP Media Edition. > I have two entries in > the "Add or Remove Programs" section of Control > Panel, but there i

WHAT IS THIS?

2007-02-16 Thread Captain
Just bought a new PC with Windows XP Media Edition. I have two entries in the "Add or Remove Programs" section of Control Panel, but there is no corresponding item in the Start Menu. One entry says: Python 2.2.3 and the other says: Python 2.2 pywin32 extensions (build203).. The size for each

Re: IOError: [Errno 4] Interrupted system call

2007-02-16 Thread Gabriel Genellina
En Fri, 16 Feb 2007 18:07:40 -0300, <[EMAIL PROTECTED]> escribió: > i don't have any signal handlers in my code, but i have no idea what > is going on in the internals of the pyQt framework that i'm using for > the GUI. > > p = subprocess.Popen('mycommand', shell=True, stdin=subprocess.PIPE, > std

Re: Pep 3105: the end of print?

2007-02-16 Thread Klaas
On Feb 16, 2:31 pm, Sam <[EMAIL PROTECTED]> wrote: >pass > except (ImportError, SyntaxError): ># python 3.0 >print2 = print > SyntaxError: invalid syntax > > Any and all aliasing must happen in compat26.py. My suggested solution is > this: Good catch. Point is that it is not impossib

Re: how to use Dispatch to open an application in win32com.client

2007-02-16 Thread Gabriel Genellina
En Fri, 16 Feb 2007 23:36:26 -0300, vithi <[EMAIL PROTECTED]> escribió: > I am trying to launch an application. When I try like that > When I try like that Excel is opening > import win32com.client > object = win32com.client.Dispatch("Excel.Application") > object.Visible = 1 > > But when I try my

Re: saving path to modules permanently

2007-02-16 Thread Steve Holden
Frank wrote: > Hi, > > I want to create some modules to use them in my programs. Now the > problem is, how to add the path to these modules permanently to the > python search path. > > For example: > > import sys > sys.path.append('path to my modules') > > > works fine for one session but does

Re: Help Required for Choosing Programming Language

2007-02-16 Thread Peter Decker
On 2/16/07, Stef Mientki <[EMAIL PROTECTED]> wrote: > In one of the other threads, Dabo was meant as a GUI designer, > I tried it yesterday, > and although it looks very promising, > at the moment this is not a graphical design environment, > just a complex (compared to Delphi) design environment

how to use Dispatch to open an application in win32com.client

2007-02-16 Thread vithi
Hi' I am trying to launch an application. When I try like that When I try like that Excel is opening import win32com.client object = win32com.client.Dispatch("Excel.Application") object.Visible = 1 But when I try my application which is QeepIt.exe which is in the c:\ drive it is not running Any bo

how to use Dispatch to open an application in win32com.client

2007-02-16 Thread vithi
Hi' I am trying to launch an application. When I try like that When I try like that Excel is opening import win32com.client object = win32com.client.Dispatch("Excel.Application") object.Visible = 1 But when I try my application which is QeepIt.exe which is in the c:\ drive it is not running Any bo

how to use Dispatch to open an application in win32com.client

2007-02-16 Thread vithi
Hi' I am trying to launch an application. When I try like that When I try like that Excel is opening import win32com.client object = win32com.client.Dispatch("Excel.Application") object.Visible = 1 But when I try my application which is QeepIt.exe which is in the c:\ drive it is not running Any bo

how to use Dispatch to open an application in win32com.client

2007-02-16 Thread vithi
Hi' I am trying to launch an application. When I try like that When I try like that Excel is opening import win32com.client object = win32com.client.Dispatch("Excel.Application") object.Visible = 1 But when I try my application which is QeepIt.exe which is in the c:\ drive it is not running Any bo

Re: why I don't like range/xrange

2007-02-16 Thread Samuel Karl Peterson
Roel Schroeven <[EMAIL PROTECTED]> on Sat, 17 Feb 2007 01:31:13 GMT didst step forth and proclaim thus: ... > So, the point is that in C you can influence the loop's behavior by > modifying the loop variable, while you cannot do that in Python (at > least not in a for-loop). What's wrong with...

Re: why I don't like range/xrange

2007-02-16 Thread Roel Schroeven
Bruno Desthuilliers schreef: > stdazi a écrit : >> for (i = 0 ; i < 10 ; i++) >>i = 10; > > for i in range(10): >i = 10 > > What's your point, exactly ? In the first iteration, i is set equal to 10. Then, before starting the second iteration, i is incremented to 11; then the loop condi

Re: output to console and to multiple files

2007-02-16 Thread Fuzzyman
On Feb 16, 11:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Feb 16, 4:07 pm, [EMAIL PROTECTED] wrote: > > > > > On Feb 16, 3:28 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > That's ok inside the same process, but the OP needs to use it "from a > > > subprocess or spawn". >

Re: Output to a text window

2007-02-16 Thread google
On Feb 17, 1:25 pm, "Joshua J. Kugler" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi, > > > I'm going around in circles so I'm asking for help. I want to read a > > simple text file and output the contents to a GUI window when I click > > on a button. I have written a small python pr

Re: Help Required for Choosing Programming Language

2007-02-16 Thread Stef Mientki
Bruno Desthuilliers wrote: > Stef Mientki a écrit : >> [EMAIL PROTECTED] wrote: >> >>> I am VB6 programmer and wants to start new programming language but i >>> am unable to deciced. >>> >>> i have read about Python, Ruby and Visual C++. but i want to go >>> through with GUI based programming langu

Re: IOError: [Errno 4] Interrupted system call

2007-02-16 Thread Donn Cave
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > i don't have any signal handlers in my code, but i have no idea what > is going on in the internals of the pyQt framework that i'm using for > the GUI. > > as far as simply ignoring the exception, that does not seem to work. > for instan

Output to a text window

2007-02-16 Thread google
Hi, I'm going around in circles so I'm asking for help. I want to read a simple text file and output the contents to a GUI window when I click on a button. I have written a small python program to read the contents of a file when a button is clicked but can only output this to a console window. I'

Re: Output to a text window

2007-02-16 Thread Joshua J. Kugler
[EMAIL PROTECTED] wrote: > Hi, > > I'm going around in circles so I'm asking for help. I want to read a > simple text file and output the contents to a GUI window when I click > on a button. I have written a small python program to read the > contents of a file when a button is clicked but can on

Output to a text window

2007-02-16 Thread google
Hi, I'm going around in circles so I'm asking for help. I want to read a simple text file and output the contents to a GUI window when I click on a button. I have written a small python program to read the contents of a file when a button is clicked but can only output this to a console window. I'

Re: f---ing typechecking

2007-02-16 Thread Paul Rubin
Donn Cave <[EMAIL PROTECTED]> writes: > What this proves is that you can implement > an argument list at run time, but it by no means changes the > nature of the argument list as a sequence. Right, it's treated as a sequence rather than a record structure. So is that consistent with the "tuples ar

Re: f---ing typechecking

2007-02-16 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: > Donn Cave <[EMAIL PROTECTED]> writes: > > Unpredictable? How do you manage to write functions in this case? > > Are all your formal parameter lists like (*a), with logic to deal > > with the variable lengths? > > I'm

Re: output to console and to multiple files

2007-02-16 Thread [EMAIL PROTECTED]
On Feb 16, 4:07 pm, [EMAIL PROTECTED] wrote: > On Feb 16, 3:28 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > > That's ok inside the same process, but the OP needs to use it "from a > > subprocess or spawn". > > You have to use something like tee, working with real file handles. > > I'm

Re: Help Required for Choosing Programming Language

2007-02-16 Thread bearophileHUGS
Bruno Desthuilliers: > Iftikhar: > > i have read about Python, Ruby and Visual C++. but i want to go > > through with GUI based programming language > > "GUI based programming languages" ? What's that ? Maybe a language like Gui4cli :-) http://users.hol.gr/~dck/g4c/ Bye, bearophile -- http://ma

saving path to modules permanently

2007-02-16 Thread Frank
Hi, I want to create some modules to use them in my programs. Now the problem is, how to add the path to these modules permanently to the python search path. For example: import sys sys.path.append('path to my modules') works fine for one session but does not save this path permanently. I als

Re: output to console and to multiple files

2007-02-16 Thread garrickp
On Feb 16, 3:28 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > That's ok inside the same process, but the OP needs to use it "from a > subprocess or spawn". > You have to use something like tee, working with real file handles. > I'm not particularly familiar with this, but it seems to me

Re: can't load a dll in python 2.5

2007-02-16 Thread Gabriel Genellina
En Fri, 16 Feb 2007 18:11:53 -0300, Steven Bethard <[EMAIL PROTECTED]> escribió: > [EMAIL PROTECTED] wrote: >> I am on WindowsXP. I have a dll that I can load in python 2.3 but >> when trying to load it into python 2.5 it complains that there is >> nothing by that name. Is there some aspect o

Re: Pep 3105: the end of print?

2007-02-16 Thread Sam
On 16 Feb 2007 13:48:29 -0800, Klaas <[EMAIL PROTECTED]> wrote: > 3. in your code: > try: > from compat26 import print2 > except (ImportError, SyntaxError): > # python 3.0 > print2 = print Python 2.5c1 (r25c1:51305, Aug 17 2006, 10:41:11) [MSC v.1310 32 bit (Intel)] on win32 Type "copy

Re: output to console and to multiple files

2007-02-16 Thread Gabriel Genellina
En Fri, 16 Feb 2007 14:04:33 -0300, Bart Ogryczak <[EMAIL PROTECTED]> escribió: > On Feb 14, 11:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: >> I'm looking for a way to output stdout/stderr (from a subprocess or >> spawn) to screen and to at least two different files. > > I'd derive

Re: help with looping, re.search, multiple indexing

2007-02-16 Thread Peter Otten
Lance Hoffmeyer wrote: > How do I add another index inside a re.search? > > I want to add > for j in [96,97,98,99] > BASE = re.search ... > sh.Cells97... > for i > > so that the Table 96 within the re.search(s) becomes Table 96, Table 97, > Table 98, Table 99 but don't know how

Re: cmath, __float__ and __complex__

2007-02-16 Thread Ziga Seilnacht
Mark Dickinson wrote: > Does anyone know of a good reason for the above behaviour? Would a > patch to complexobject.c that `fixes' this be of any interest to > anyone but me? Or would it likely break something else? I think this is a bug in the PyComplex_AsCComplex function. To get more feedbac

Re: Compression library

2007-02-16 Thread John Machin
On Feb 16, 8:02 pm, [EMAIL PROTECTED] wrote: > Hi all, > I'm looking for a library in python containing severall compression > algorithms like RLE, Deflate, LZ77-78-W, Huffman,.. > do someone know if such of this type of lib exists?? Short answer: Yes Longer answer: You too could know if you

help with looping, re.search, multiple indexing

2007-02-16 Thread Lance Hoffmeyer
Hey all, How do I add another index inside a re.search? I want to add for j in [96,97,98,99] BASE = re.search ... sh.Cells97... for i so that the Table 96 within the re.search(s) becomes Table 96, Table 97, Table 98, Table 99 but don't know how to add a second index within the

Re: Help Required for Choosing Programming Language

2007-02-16 Thread Bruno Desthuilliers
Stef Mientki a écrit : > [EMAIL PROTECTED] wrote: > >> I am VB6 programmer and wants to start new programming language but i >> am unable to deciced. >> >> i have read about Python, Ruby and Visual C++. but i want to go >> through with GUI based programming language like VB.net >> >> so will you p

Re: Help Required for Choosing Programming Language

2007-02-16 Thread Bjoern Schliessmann
Stef Mientki wrote: > Although the GUI of Python is not as good as VB, What is the GUI of a language? Regards, Björn -- BOFH excuse #334: 50% of the manual is in .pdf readme files -- http://mail.python.org/mailman/listinfo/python-list

Re: Pep 3105: the end of print?

2007-02-16 Thread Klaas
On Feb 16, 6:01 am, "Edward K Ream" <[EMAIL PROTECTED]> wrote: > That's the proof. Can you find a flaw in it? Casting this in terms of theorem proving only obfuscates the discussion. Here is how to maintain a single codebase for this feature: 1. Convert all your print statements to 3.0 print f

Re: Help Required for Choosing Programming Language

2007-02-16 Thread Stef Mientki
[EMAIL PROTECTED] wrote: > I am VB6 programmer and wants to start new programming language but i > am unable to deciced. > > i have read about Python, Ruby and Visual C++. but i want to go > through with GUI based programming language like VB.net > > so will you please guide me which GUI based la

Re: Help Required for Choosing Programming Language

2007-02-16 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > I am VB6 programmer and wants to start new programming language but i > am unable to deciced. > > i have read about Python, Ruby and Visual C++. but i want to go > through with GUI based programming language "GUI based programming languages" ? What's that ? > like V

Re: Help Required for Choosing Programming Language

2007-02-16 Thread Neil Cerutti
On 2007-02-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am VB6 programmer and wants to start new programming language > but i am unable to deciced. > > i have read about Python, Ruby and Visual C++. but i want to go > through with GUI based programming language like VB.net > > so will you p

Re: Group Membership in Active Directory Query

2007-02-16 Thread Tim Golden
Kooch54 wrote: >> Thanks for your response and Uwe I apologize if I misunderstood >> and misinterpreted your comments. I am sorry. >> I have tried Tim's module called active_directory and it works really >> well. But I can't figure out how to connect to a specific group is I >> know the comm

Help Required for Choosing Programming Language

2007-02-16 Thread ifti_crazy
I am VB6 programmer and wants to start new programming language but i am unable to deciced. i have read about Python, Ruby and Visual C++. but i want to go through with GUI based programming language like VB.net so will you please guide me which GUI based language has worth with complete OOPS Cha

Re: why I don't like range/xrange

2007-02-16 Thread Bruno Desthuilliers
stdazi a écrit : > Hello! > > Many times I was suggested to use xrange and range instead of the > while constructs, and indeed, they are quite more elegant - but, after > calculating the overhead (and losen flexibility) when working with > range/xrange, and while loops, you get to the conclusion t

Re: can't load a dll in python 2.5

2007-02-16 Thread Steven Bethard
[EMAIL PROTECTED] wrote: > I am on WindowsXP. I have a dll that I can load in python 2.3 but > when trying to load it into python 2.5 it complains that there is > nothing by that name. Is there some aspect of the dll loading > mechanism between python 2.3 and 2.5 that has changed preventing me >

Re: IOError: [Errno 4] Interrupted system call

2007-02-16 Thread chadrik
i don't have any signal handlers in my code, but i have no idea what is going on in the internals of the pyQt framework that i'm using for the GUI. as far as simply ignoring the exception, that does not seem to work. for instance, here's some code i've tried: p = subprocess.Popen('mycommand', sh

Re: sorting list of tuples by second (third...) tuple item

2007-02-16 Thread Bruno Desthuilliers
Giovanni Toffoli a écrit : > Hi, > > I'm not in the mailing list. > By Googling, I stepped into this an old post: (Thu Feb 14 20:40:08 CET > 2002) of Jeff Shannon: > http://mail.python.org/pipermail/python-list/2002-February/128438.html > > <<< > def SortOnItem(mylist, index): >templist = [

Re: Tkinter __call__

2007-02-16 Thread James Stroud
Gigs_ wrote: > James Stroud wrote: >> Gigs_ wrote: >>> def printit(self, name): >>> print name, 'returns =>', demos[name]() >>> >>> >>> I have tried but cant get it to work properly. >>> I want to instead printit method to put __call__ and call it like that >>> Can someone help me, plea

Re: Approaches of interprocess communication

2007-02-16 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > Hi all, > > Supposing you have two separate processes running on the same box, > what approach would you suggest to communicate between those two > processes. Hi exhuma, That would depend on what data I was exchanging bet

Re: Approaches of interprocess communication

2007-02-16 Thread Goldfish
On Feb 16, 5:11 am, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > Hi all, > > Supposing you have two separate processes running on the same box, > what approach would you suggest to communicate between those two > processes. > Spring Python makes it easy to get processes talking to each other. You can

Re: Group Membership in Active Directory Query

2007-02-16 Thread Kooch54
On Feb 8, 8:44 am, "Kooch54" <[EMAIL PROTECTED]> wrote: > On Feb 7, 7:52 pm, "alex23" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 8, 4:27 am, [EMAIL PROTECTED] wrote: > > > > First and foremost thanks for the feedback. Although I don't > > > appreciate the slight dig at me. > > > dummy = ldap_obj.

can't load a dll in python 2.5

2007-02-16 Thread dwmaillist
Hello, I am on WindowsXP. I have a dll that I can load in python 2.3 but when trying to load it into python 2.5 it complains that there is nothing by that name. Is there some aspect of the dll loading mechanism between python 2.3 and 2.5 that has changed preventing me from loading the dll in 2.5

Re: why I don't like range/xrange

2007-02-16 Thread Bjoern Schliessmann
Eduardo "EdCrypt" O. Padoan wrote: >> But this long int => int issue should not exist in a future >> python version any more, IIRC int and long int is scheduled to be >> merged somehow. (Or isn't it?) > > It is done. Thanks for the info. Please don't send mail copies! Regards, Björn -- BOF

Re: why I don't like range/xrange

2007-02-16 Thread Roger Miller
On Feb 16, 7:01 am, "Bart Ogryczak" <[EMAIL PROTECTED]> wrote: > On Feb 16, 4:30 pm, "stdazi" <[EMAIL PROTECTED]> wrote: > > > for (i = 0; some_function() /* or other condition */ ; i++) > > C's "for(pre,cond,post) code" is nothing more, then shorthand form of > "pre; while(cond) {code; post;}" I

Re: why I don't like range/xrange

2007-02-16 Thread Neil Cerutti
On 2007-02-16, Bart Ogryczak <[EMAIL PROTECTED]> wrote: > On Feb 16, 4:30 pm, "stdazi" <[EMAIL PROTECTED]> wrote: > >> for (i = 0; some_function() /* or other condition */ ; i++) > > C's "for(pre,cond,post) code" is nothing more, then shorthand form of > "pre; while(cond) {code; post;}" > Which tra

Re: f---ing typechecking

2007-02-16 Thread Paul Rubin
Donn Cave <[EMAIL PROTECTED]> writes: > Unpredictable? How do you manage to write functions in this case? > Are all your formal parameter lists like (*a), with logic to deal > with the variable lengths? I'm thinking of functions like printf, which take a variable number of args and don't assign t

Re: IOError: [Errno 4] Interrupted system call

2007-02-16 Thread Donn Cave
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > i'm getting the same error when trying to read results from popen2 > within a pyQt window. is this a threading issue? is my pyQt window > responsible for interrupting the read? i'm fairly new to python so > i'm struggling to figure this

Re: f---ing typechecking

2007-02-16 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: > Donn Cave <[EMAIL PROTECTED]> writes: > > If t is a valid argument tuple for function f, then can t[1:] > > also be a valid argument tuple for function f? > > > > For ordinary functions without special argument handli

Re: Reg Google Web Toolkit and Python

2007-02-16 Thread Adonis Vargas
Shadab Sayani wrote: > Hi , > We have a project where I need to read files store > them in database in the backend.We have done this in > python.Now we decided to use Ajax technique for user > interface.For that we found that GWT is one of the > best toolkits.Now I got a doubt can I interface GWT >

Re: f---ing typechecking

2007-02-16 Thread tsuraan
Agreed. This would be similar to: py> 1 + 1.0 Traceback: can only add int to int. Etc. But then again, the unimaginative defense would be that it wouldn't be python if you could catentate a list and a tuple. Of course, that behaviour would be quite defensible; auto-casting int to float is _w

XOR Binascii Hex Strings using the PyCrypto module

2007-02-16 Thread yaipa
I snipped this bit of code out of Andrew Kuchling 'pyCrypto' test fixture. Having a need to XOR Binascii Hex strings in my current project, I found it very helpful to cut down on a bit of code clutter. So if you have a need for a Crypto module, this one seems to work off the self without much ef

Re: why I don't like range/xrange

2007-02-16 Thread Eduardo \"EdCrypt\" O. Padoan
> But this long int => int issue should not exist in a future python > version any more, IIRC int and long int is scheduled to be merged > somehow. (Or isn't it?) It is done. http://mail.python.org/pipermail/python-3000-checkins/2007-January/000251.html -- EduardoOPadoan (eopadoan->altavix::com

Re: Approaches of interprocess communication

2007-02-16 Thread Bjoern Schliessmann
exhuma.twn wrote: > * Sockets >Advantage: Supported per se in nearly every programming >language without even the need to install additional packages >Disadvantage: Lot's of code to write, Who's Lot? :) No, seriously. Why would you think that it's much to write? It can, especially us

Re: Any Idea about thread safe issue with python

2007-02-16 Thread Bjoern Schliessmann
mralokkp wrote: > I need help guys. I have a code running properly and execute again > after a certain time. > In Simple words [incomplete and useless code line] is not solving > my purpose. Would any body like to help. Please be so kind and read this paragraph: http://www.catb.org/~esr/faqs/sm

Re: builtin set literal

2007-02-16 Thread Paul Rubin
Paul Rubin writes: > notations for lists and dicts, using list((1,2,3)) and dict((1,2),(3,4)) > for [1,2,3] and {1:2, 3:4} respectively. Actually that would be dict(((1,2), (3,4))), of course. -- http://mail.python.org/mailman/listinfo/python-list

Re: rot13 in a more Pythonic style?

2007-02-16 Thread Andy Dingley
On 14 Feb, 20:06, "Beej" <[EMAIL PROTECTED]> wrote: > http://linuxgazette.net/109/pramode.html Thanks, that's a _really_ interesting link (Oh, I need to learn Scheme!) My code now looks like this, which I'm starting to feel much happier about in a functional sense. c_rot = lambda c, chars :

Re: builtin set literal

2007-02-16 Thread Paul Rubin
Steven Bethard <[EMAIL PROTECTED]> writes: > Yes, a lot of people liked this approach, but it was rejected due to > gratuitous breakage. While Python 3.0 is not afraid to break backwards > compatibility, it tries to do so only when there's a very substantial > advantage. I guess enough people felt

sorting list of tuples by second (third...) tuple item

2007-02-16 Thread Giovanni Toffoli
Hi, I'm not in the mailing list. By Googling, I stepped into this an old post: (Thu Feb 14 20:40:08 CET 2002) of Jeff Shannon: http://mail.python.org/pipermail/python-list/2002-February/128438.html <<< def SortOnItem(mylist, index): templist = [ (line[index], line) for line in mylist ] t

Re: builtin set literal

2007-02-16 Thread Steven Bethard
Schüle Daniel wrote: >> {:} for empty dict and {} for empty set don't look too much atrocious >> to me. > > this looks consistent to me Yes, a lot of people liked this approach, but it was rejected due to gratuitous breakage. While Python 3.0 is not afraid to break backwards compatibility, it t

Re: why I don't like range/xrange

2007-02-16 Thread Bjoern Schliessmann
stdazi wrote: > Many times I was suggested to use xrange and range instead of the > while constructs, and indeed, they are quite more elegant - but, > after calculating the overhead (and losen flexibility) when > working with range/xrange, and while loops, you get to the > conclusion that it isn't

Re: Pep 3105: the end of print?

2007-02-16 Thread Tobias Brox
[Edward K Ream] > Not at all. Backwards compatibility means that one can still run old code > provided the code eschews new features. Python releases have generally > been backwards compatible with previous releases, with a few minor > exceptions. For example, my app runs fine on Python 2.2.

Re: Command line prompt broken on XP with Python 2.5 - help!

2007-02-16 Thread Endless Story
On Feb 16, 11:51 am, "Endless Story" <[EMAIL PROTECTED]> wrote: > I did add c:/cywgin to the path, don't remember why now. Having looked at the Cygwin user manual, I think I probably did this as the result of misunderstanding the installation process. A PATH variable is needed, but it can go into

Re: Command line prompt broken on XP with Python 2.5 - help!

2007-02-16 Thread Endless Story
On Feb 16, 11:51 am, "Endless Story" <[EMAIL PROTECTED]> wrote: > On Feb 16, 11:34 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > > It sounds like you may have mistakenly added Cygwin binary directories > > to your Windows path. This isn't normally necessary, since the Cygwin > > shell makes all n

Re: why I don't like range/xrange

2007-02-16 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Steven D'Aprano wrote: >> for (i = 0 ; i < 10 ; i++) >>i = 10; > > > This would be written in Python as: > > for i in xrange(10): > i = 10 Nope, in Python it's: for i in xrange(10): break I think his example should demonstrate that assigning to the loop va

Re: output to console and to multiple files

2007-02-16 Thread Bart Ogryczak
On Feb 14, 11:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > I searched on Google and in this Google Group, but did not find any > solution to my problem. > > I'm looking for a way to output stdout/stderr (from a subprocess or > spawn) to screen and to at least two different fil

Re: why I don't like range/xrange

2007-02-16 Thread Bart Ogryczak
On Feb 16, 4:30 pm, "stdazi" <[EMAIL PROTECTED]> wrote: > for (i = 0; some_function() /* or other condition */ ; i++) C's "for(pre,cond,post) code" is nothing more, then shorthand form of "pre; while(cond) {code; post;}" Which translated to Python would be: pre while cond: code post -- h

Re: Command line prompt broken on XP with Python 2.5 - help!

2007-02-16 Thread Endless Story
On Feb 16, 11:34 am, Steve Holden <[EMAIL PROTECTED]> wrote: > It sounds like you may have mistakenly added Cygwin binary directories > to your Windows path. This isn't normally necessary, since the Cygwin > shell makes all necessary path adjustments as it starts. I did add c:/cywgin to the path,

Re: Command line prompt broken on XP with Python 2.5 - help!

2007-02-16 Thread Endless Story
On Feb 16, 11:34 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Endless Story wrote: > > On Feb 16, 10:29 am, Tim Golden <[EMAIL PROTECTED]> wrote: > >> I would ask if you had *any* other Python installation > >> -- say a cygwin one -- which might just be getting in the way? > > > It's a cygwin prob

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
> But that doesn't just happen. True, but it didn't happen as you imply. Leo's core defines a gui-and-platform-independent set of api's which then get instantiated in plugins. Plugins can, and do, use platform-dependent features. For example, the wxWidgets plugin uses the scintilla text widg

Re: Pep 3105: the end of print?

2007-02-16 Thread Steve Holden
Jean-Paul Calderone wrote: > On Sat, 17 Feb 2007 01:32:21 +1100, Steven D'Aprano >> [snip] >> >> I don't think that follows at all. print is only a problem if you expect >> your code to work under both Python 2.x and 3.x. I wouldn't imagine >> that many people are going to expect that: I know I do

CENSURING FEMALE SHALLOWNESS

2007-02-16 Thread Urlet
A thought-provoking, yet genuine document supporting recognition of the role of true fathers, even if ex-lifeguards at the Hotel Riviera. Against Blondes' momentary hanky-panky that, however, has long-term consequences. http://www.youtube.com/watch?v=RtDfdlsgREI -- http://mail.python.org/mailman

Re: Command line prompt broken on XP with Python 2.5 - help!

2007-02-16 Thread Steve Holden
Endless Story wrote: > On Feb 16, 10:29 am, Tim Golden <[EMAIL PROTECTED]> wrote: >> I would ask if you had *any* other Python installation >> -- say a cygwin one -- which might just be getting in the way? > > It's a cygwin problem, guddammit. I was wondering if this might be the > case - I should

Re: Reg Google Web Toolkit and Python

2007-02-16 Thread Steve Holden
Shadab Sayani wrote: > Hi , > We have a project where I need to read files store > them in database in the backend.We have done this in > python.Now we decided to use Ajax technique for user > interface.For that we found that GWT is one of the > best toolkits.Now I got a doubt can I interface GWT >

Re: Approaches of interprocess communication

2007-02-16 Thread Daniel Nogradi
> About "Linda": Am I right that it looks very similar to "JavaSpaces"? > If yes, are there any funcdamental differences between those two? Yes, they are both linda implementations, but I have no idea what so ever how they compare. A local java expert maybe? -- http://mail.python.org/mailman/list

Re: Pep 3105: the end of print?

2007-02-16 Thread Steven D'Aprano
On Fri, 16 Feb 2007 09:32:56 -0600, Edward K Ream wrote: >> Even in the Python world, nobody expects to run the same code base under > C Python and Jython and IronPython and PyPy. > > Leo now runs under CPython with both wxWidgets and Tkinter. The gui code is > confined to plugins, and a similar

Re: why I don't like range/xrange

2007-02-16 Thread Steven D'Aprano
On Fri, 16 Feb 2007 07:30:15 -0800, stdazi wrote: > Hello! > > Many times I was suggested to use xrange and range instead of the > while constructs, and indeed, they are quite more elegant - but, after > calculating the overhead (and losen flexibility) when working with > range/xrange, and while

Re: why I don't like range/xrange

2007-02-16 Thread Larry Bates
stdazi wrote: > Hello! > > Many times I was suggested to use xrange and range instead of the > while constructs, and indeed, they are quite more elegant - but, after > calculating the overhead (and losen flexibility) when working with > range/xrange, and while loops, you get to the conclusion that

Re: Command line prompt broken on XP with Python 2.5 - help!

2007-02-16 Thread Endless Story
On Feb 16, 10:29 am, Tim Golden <[EMAIL PROTECTED]> wrote: > I would ask if you had *any* other Python installation > -- say a cygwin one -- which might just be getting in the way? It's a cygwin problem, guddammit. I was wondering if this might be the case - I should have mentioned in my initial p

Re: why I don't like range/xrange

2007-02-16 Thread Paul McGuire
On Feb 16, 9:30 am, "stdazi" <[EMAIL PROTECTED]> wrote: > Hello! > > Many times I was suggested to use xrange and range instead of the > while constructs, and indeed, they are quite more elegant - but, after > calculating the overhead (and losen flexibility) when working with > range/xrange, and wh

Re: why I don't like range/xrange

2007-02-16 Thread Chris Mellon
On 16 Feb 2007 07:30:15 -0800, stdazi <[EMAIL PROTECTED]> wrote: > Hello! > > Many times I was suggested to use xrange and range instead of the > while constructs, and indeed, they are quite more elegant - but, after > calculating the overhead (and losen flexibility) when working with > range/xrang

Re: Pep 3105: the end of print?

2007-02-16 Thread Jean-Paul Calderone
On Fri, 16 Feb 2007 16:49:05 +0100, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: >On 2/16/07, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: >>I was just pointing out that some people might be confused. I didn't make >>any judgement about that fact. You seem to be suggesting that because >>there >

Re: Pep 3105: the end of print?

2007-02-16 Thread BJörn Lindqvist
On 2/16/07, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > I was just pointing out that some people might be confused. I didn't make > any judgement about that fact. You seem to be suggesting that because there > are other confusing things, it's okay for Python to be confusing too. I'm > not m

MS Word mail merge automation

2007-02-16 Thread [EMAIL PROTECTED]
Hi Steve M. , Your articole is very interesting to me becouse I'm just tring to do the same thing. Could you please show me the last version of your python code so that I could use it for my purpose. I'm not a programmer but a my friend could help me for this. Thanks so much in advance for your

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
> Keep the print name; > Keep the print functionality; > Keep a single code base. Retain the print statement and its functionality, and define an official_print_function to be used in the common code base. I would be satisfied with this (it's what I do now), and it would cause no needless prob

Re: output to console and to multiple files

2007-02-16 Thread [EMAIL PROTECTED]
On Feb 15, 5:48 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 15 Feb 2007 19:35:10 -0300, Matimus <[EMAIL PROTECTED]> escribió: > > > > >> I think you should be able to use my or goodwolf's solution with the > >> subprocess module. Something like this (untested): > > >> [code] > >> c

Re: Reg Google Web Toolkit and Python

2007-02-16 Thread Roman Yakovenko
On 2/16/07, Shadab Sayani <[EMAIL PROTECTED]> wrote: > Hi , > We have a project where I need to read files store > them in database in the backend.We have done this in > python.Now we decided to use Ajax technique for user > interface.For that we found that GWT is one of the > best toolkits.Now I g

Re: Pep 3105: the end of print?

2007-02-16 Thread Steven D'Aprano
On Fri, 16 Feb 2007 09:07:02 -0600, Edward K Ream wrote: >>> That's the proof. Can you find a flaw in it? >> No, but it doesn't matter. There's no particular reason why you have to >> write "print (whatever)" in your code. What you need is *some function* >> that is capable of duplicating the fun

Re: Pep 3105: the end of print?

2007-02-16 Thread Edward K Ream
> Even in the Python world, nobody expects to run the same code base under C Python and Jython and IronPython and PyPy. Leo now runs under CPython with both wxWidgets and Tkinter. The gui code is confined to plugins, and a similar gui plugin will suffice to run Leo under IronPython. Indeed, Leo

why I don't like range/xrange

2007-02-16 Thread stdazi
Hello! Many times I was suggested to use xrange and range instead of the while constructs, and indeed, they are quite more elegant - but, after calculating the overhead (and losen flexibility) when working with range/xrange, and while loops, you get to the conclusion that it isn't really worth usi

[ANN] wxCocoaDialog v0.3

2007-02-16 Thread Alexander Stigsen
wxCocoaDialog v0.3 http://code.google.com/p/wxcocoadialog/ wxCocoaDialog is an multi-platform port of the CocoaDialog application for OS X, that allows the use of common GUI controls such as file selectors, text input, progress bars, yes/no confirmations and more with a command-line applicatio

Re: Command line prompt broken on XP with Python 2.5 - help!

2007-02-16 Thread Tim Golden
Endless Story wrote: > On Feb 16, 9:56 am, "Jim" <[EMAIL PROTECTED]> wrote: >> On Feb 16, 5:52 am, "Endless Story" <[EMAIL PROTECTED]> wrote: >> Are you talking about the Environment Variables-->System Variable-->path? >> You may want to right click on My Computer-->System Properties-->Advanced-->

  1   2   >