Re: Why asci-only symbols?

2005-10-10 Thread jepler
I'm not aware of any PEPs on the subject, but google groups turns up some past threads. Here's one from February 2004: http://groups.google.com/group/comp.lang.python/browse_frm/thread/d5fcc1c8825a60dc/96856af647ce71d5 I didn't immediately find this message of Guido's that everyone's talk

Re: Newbie needs help. Setting PYTHONDOCS to read HTML.

2005-10-10 Thread Brett Hoerner
You can use Python regardless of the docs... of course. Not sure what you mean there. As far as setting an Environment Variable, though: (1) Right-Click My Computer, go to Properties (2) Go to the Advanced tab (3) Click Environment Variables (bottom middle-ish) (4) Under "User Variables" clic

Looking for info on Python's memory allocation

2005-10-10 Thread Steven D'Aprano
Can somebody help me please? I've spent a fruitless hour googling with no luck. I'm discussing memory allocation techniques with somebody, and I'm trying to find a quote from -- I think -- Tim Peters where he discusses the way Python allocates memory when you append to lists. In basic terms,

Re: Send password over TCP connection

2005-10-10 Thread Peter Hansen
dcrespo wrote: > Two copies of the password: one on the client, the other on the server. [snip] > I think it is a very good solution, Isn't it? Ignoring all the other issues, any solution which actually requires the password to be stored on the server is a bad solution. Administrators should no

Re: Library functions

2005-10-10 Thread Peter Hansen
Tuvas wrote: > How exactly do you do that? Just to get some kind of an idea, perhaps > you could share bits of code? Thanks! Did you check out the ctypes web site before asking? See http://starship.python.net/crew/theller/ctypes/ and at least read through the helpful tutorial before asking ques

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-10 Thread Sebastian Bassi
On 9/30/05, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: > after Guido's pronouncement yesterday, in one of the next versions of Python > there will be a conditional expression with the following syntax: > X if C else Y I don't understand why there is a new expression, if this could be accomplis

Re: Why asci-only symbols?

2005-10-10 Thread Peter Hansen
Mike Meyer wrote: > Out of random curiosity, is there a PEP/thread/? that explains why > Python symbols are restricted to 7-bit ascii? And of equally random curiosity :-), what alternative(s) can you suggest would have been appropriate? (I note that Unicode, for example, dates from around the t

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-10 Thread Peter Hansen
Sebastian Bassi wrote: > I don't understand why there is a new expression, if this could be > accomplished with: > > if C: > X > else: > Y > > What is the advantage with the new expression? It actually is an expression, whereas your example shows a statement (so "this" could _not_ be accompli

Re: Looking for info on Python's memory allocation

2005-10-10 Thread R Toop
http://mail.python.org/pipermail/python-list/2003-December/198141.html wherein Tim gently corrects my brash guess that Python lists are pointer-linked. The example's linearly-constructed list is allocated by doubling storage, copying & freeing (cf realloc). The result that the process virtual memo

Re: Looking for info on Python's memory allocation

2005-10-10 Thread jepler
While there may be a discussion somewhere in the archives, the comments in listobject.c are enlightening too. /* Ensure ob_item has room for at least newsize elements, and set * ob_size to newsize. If newsize > ob_size on entry, the content * of the new slots at exit is undefined heap trash; it

Re: Newbie needs help. Setting PYTHONDOCS to read HTML.

2005-10-10 Thread moondusterone
Brett, I did that and now when I enter "keywords" I get a list of words. And it says that I can enter any of the words to get more help. I enter "class" and I get "could not read docs from C:/Python24/ref/if.html". "Brett Hoerner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >

Re: Python's Performance

2005-10-10 Thread Steve Holden
Peter Hansen wrote: > Harald Armin Massa wrote: > >>""" >>What is Python? >> >>Python is an interpreted, interactive, object-oriented programming >>language. It is often compared to Tcl, Perl, Scheme or Java. >>""" >>taken from >>http://www.python.org/doc/Summary.html >> >>maybe someone could upda

Re: Python name lookups

2005-10-10 Thread Steve Holden
Dave wrote: > Hello All, > > As far as I understand, Python deals with a lot of > string objects, i.e. it looks up all names. Is there a > way to find out how many name lookup operations take > place in a Python program? Is it the name lookup > operation or hash operation that degrades performance

Re: Python, COM Servers, and Multi-Threading

2005-10-10 Thread Steve Holden
Carl Waldbieser wrote: > I have been considering using Python and the Reportlab library for > generating PDF reports for the back-end of a web based application. The > application runs most of its background tasks on a dedicated server that is > Windows based (Win2K or Win2k3). The program that l

Re: Comparing lists

2005-10-10 Thread Christian Stapfer
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christian Stapfer wrote: >> "George Sakkis" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>>"Christian Stapfer" <[EMAIL PROTECTED]> wrote: <[EMAIL PROTECTED]> wrote: >try to use set. >>>

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-10 Thread George Sakkis
"Dave Hansen" <[EMAIL PROTECTED]> wrote: > On Mon, 10 Oct 2005 16:42:34 -0500, Terry Hancock > <[EMAIL PROTECTED]> wrote: > > >On Sunday 09 October 2005 07:50 am, phil hunt wrote: > >> On Fri, 7 Oct 2005 01:05:12 -0500, Terry Hancock <[EMAIL PROTECTED]> wrote: > >> >GvR's syntax has the advantage

Re: Why asci-only symbols?

2005-10-10 Thread Do Re Mi chel La Si Do
Hi ! I agree with you; I will adore capacity to call functions named in Unicode. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python reliability

2005-10-10 Thread Ville Voipio
In article <[EMAIL PROTECTED]>, Thomas Bartkus wrote: > > All in all, it would seem that the reliability of the Python run time is the > least of your worries. The best multi-tasking operating systems do a good > job of segragating different processes BUT what multitasking operating > system meet

Re: Python reliability

2005-10-10 Thread Ville Voipio
In article <[EMAIL PROTECTED]>, Peter Hansen wrote: > Other than that, we had no real issues and definitely felt the choice of > Python was completely justified. I have no hesitation recommending it, > other than to caution (as I believe Paul R did) that use of new features > is "dangerous" in

Batteries Included?

2005-10-10 Thread Alex
One of the first things I wanted to do when I start learning Python was to produce a simple standalone application that I could distribute to my users (windows users). Python's moto is "Batteries Included", but where are the batteries for making exe files and making an installer file? I had to down

Let My Terminal Go

2005-10-10 Thread [EMAIL PROTECTED]
Hello, A user of my application points me to a behavior in gVim, the text editor, that I would like to implement in my application. When gVim is launched from a shell terminal, it completely frees the terminal. You can continue to use the terminal for whatever purpose you wish, including closing

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-10 Thread Eric Nieuwland
Dave Hansen wrote: > And Basic, and Fortran, and Lisp, and just about any programming > language you care to name, including python (if Condition: Affirmative > else: Negative). > > Not to mention that the sequence is identical to execution order. > It's just plain goofy to have to scan to the midd

Re: how to capture key pressing

2005-10-10 Thread Tim Roberts
"billie" <[EMAIL PROTECTED]> wrote: > >> Look at curses. > >I was searching for something portable on multiple platforms. Keyboard access is not portable. It is quite system-specific, even in C. >Curses doesn't work on Windows. Sure it does. You can find curses implementations for Windows. Ho

Re: Let My Terminal Go

2005-10-10 Thread marduk
On Mon, 2005-10-10 at 22:58 -0700, [EMAIL PROTECTED] wrote: > Hello, > > A user of my application points me to a behavior in gVim, > the text editor, that I would like to implement in my > application. > > When gVim is launched from a shell terminal, it completely > frees the terminal. You can co

Re: Batteries Included?

2005-10-10 Thread Sybren Stuvel
Alex enlightened us with: > Python's moto is "Batteries Included", but where are the batteries > for making exe files and making an installer file? Those aren't "batteries". Those are things you can do with the program, but are outside the programming language. Writing and distributing software is

Re: Let My Terminal Go

2005-10-10 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > When gVim is launched from a shell terminal, it completely frees the > terminal. [...] How do I implement this in my application written in > python? Using fork() and by catching the HUP signal. Sybren -- The problem with the world is stupidity. Not sayin

Re: Looking for info on Python's memory allocation

2005-10-10 Thread Sybren Stuvel
Steven D'Aprano enlightened us with: > he says that every time you try to append to a list that is already > full, Python doubles the size of the list. This wastes no more than > 50% of the memory needed for that list, but has various advantages > -- and I'm damned if I can remember exactly what th

<    1   2   3