Re: PEP 288 ponderings

2005-01-02 Thread Raymond Hettinger
[Steven Bethard] > (1) What's the benefit of the generator versions of these functions over > the class-based versions? Generators are easier to write, are clearer, and run faster. They automatically * create a distinct generator-iterator object upon each invocation * create the next() and idempo

Re: Frameworks for "Non-Content Oriented Web Apps"

2005-01-02 Thread Sridhar
You need Twisted - http://twistedmatrix.com --- : http://en.wikipedia.org/wiki/User:Sridharinfinity -- http://mail.python.org/mailman/listinfo/python-list

Re: What can I do with Python ??

2005-01-02 Thread Casey Hawthorne
Aren't games using full screen mode to address only 320 by 240 resolution for faster screen painting? If one used only 320 by 240 in a window, then that would be 1/4 of the screen or less! -- Regards, Casey -- http://mail.python.org/mailman/listinfo/python-list

Re: screen clear question

2005-01-02 Thread Alan Gauld
On Sun, 02 Jan 2005 14:23:07 +0800, Craig Ringer <[EMAIL PROTECTED]> wrote: > On Sun, 2005-01-02 at 11:31, jcollins wrote: > > Is there a command in Python to clear the screen? That is without writing > > multiple blank lines. > > Without knowing what 'screen' you're talking about, it's hard to s

Re: Frameworks for "Non-Content Oriented Web Apps"

2005-01-02 Thread Alan Gauld
On 1 Jan 2005 20:51:06 -0800, [EMAIL PROTECTED] wrote: > Is there something that can ease the development of application that > are not content oriented(I call them "NON CONTENT-ORIENTED WEB > APPLICATIONS" because I don't know what else to call them). I mean the > applications like, accounting, h

Python! Is! Truly! Amazing!

2005-01-02 Thread Erik Bethke
Hello Everyone, I have to say: Python! Is! Truly! Amazing! So I started with python about a month ago and put in 24 hours across three weekends. My first project was to recreate a simple maze-let thingie that I remember as my first program way back on the Vic-20. That was a quick snap and a pl

Re: PEP 288 ponderings

2005-01-02 Thread Steven Bethard
Raymond Hettinger wrote: [Steven Bethard] (2) Since in all the examples there's a one-to-one correlation between setting a generator attribute and calling the generator's next function, aren't these generator attribute assignments basically just trying to define the 'next' parameter list? They are

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread Erik Bethke
Oh yeah, and farmer, no I didn't yet get back to making an exe by fixing the problem with pygame2exe i just got disctracted getting other things done so fast! -Erik www.gopetslive.com -- http://mail.python.org/mailman/listinfo/python-list

Re: The Industry choice

2005-01-02 Thread Eric Pederson
Cameron Laird wrote: > > Let me add a cautionary note, though: Big Companies, > including Oracle, Software AG, IBM, Cisco, and so on, have > adopted Tcl over and over. All of them still rely on Tcl > for crucial products. All of them also have employees who > sincerely wonder, "Tcl? Isn't th

Continuations Based Web Framework - Seaside.

2005-01-02 Thread Mike Thompson
'Seaside' is a Smalltalk framework for what might be called "Modal Web Development" or "Synchronous Web Programming", or even "Continuation Based Web Apps". http://www.beta4.com/seaside2/ Very sexy it looks too. And it seems to be generating a lot of interest - Ruby and Java variants have

Re: The Industry choice

2005-01-02 Thread Peter Dembinski
Paul Rubin writes: [...] > I don't understand that. If I see "str x = str(3)", then I know > that x is a string. def foo(x): return str(x) str = foo(x) And now, let's say that foo()'s definition is in another module. It is hard for a programmer to quickly determ

Re: The Industry choice

2005-01-02 Thread Stefan Axelsson
Paul Rubin wrote: I do believe that it's a horrible deficiency in Python that it has no declarations at all, even optional ones, like "perl -w" or "use strict". Python's scoping hacks that result from the lack of declarations just seem to me like pure insanity. Yes, ignoring most of the debate abo

Re: The Industry choice

2005-01-02 Thread Peter Dembinski
"Donn Cave" <[EMAIL PROTECTED]> writes: [...] > For me, the effect is striking. I pound out a little program, > couple hundred lines maybe, and think "hm, guess that's it" and save > it to disk. Run the compiler, it says "no, that's not it - look > at line 49, where this expression has type st

Problems programming with Tkinter

2005-01-02 Thread Svennglenn
Hi ! I'm trying to create a graphical program using Tkinter. The program is supposed to save a string the user defines as a filename. I've made it work with the the first button in the program that's named "Spara ett värde i en sträng till ett filnamn", that's swedish for "Save a value in a string

Re: The Industry choice

2005-01-02 Thread Mark Carter
> It might be nice if it was widely understood (in IT) that Python was a language any competent > programmer could pick up in an afternoon I am a programmer who works for a firm of engineers, where they program in VBA, badly. I've often mentioned Python, whereupon I'm usually dismissed as a cra

[OT] Re: The Industry choice

2005-01-02 Thread Peter Dembinski
Paul Rubin writes: > Peter Dembinski <[EMAIL PROTECTED]> writes: >> If it has to be both reliable and secure, I suggest you used more >> redundant language such as Ada 95. > > That's something to think about and it's come up in discussions, > but probably complicates st

Re: The Industry choice

2005-01-02 Thread Paul Rubin
Mark Carter <[EMAIL PROTECTED]> writes: > We might be doing a project which involves web-type stuff. I pointed > out that if they did, they wouldn't be able to use VB/VBA, and may > need to use something like Python. They'll probably use vb.net. -- http://mail.python.org/mailman/listinfo/python-l

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread Erik Bethke
somehow lost my j's: www.erikbethke.com/Python/screenshot02.jpg www.erikbethke.com/Python/screenshot03.jpg www.erikbethke.com/Python/screenshot04.jpg www.erikbethke.com/Python/screenshot05.jpg -- http://mail.python.org/mailman/listinfo/python-list

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread @(none)
Mike Thompson wrote: 'Seaside' is a Smalltalk framework for what might be called "Modal Web Development" or "Synchronous Web Programming", or even "Continuation Based Web Apps". Continuation Based Frameworks seem to be getting quite some attention lately. For example in the Lisp world. Check out

Re: Frameworks for "Non-Content Oriented Web Apps"

2005-01-02 Thread mirnazim
I have started a topic that is really vauge. I knew that this topic is very general and abstract but I think it turned out to be more general that I had expected. Let me make an attemp at defining "Non-Content Oriented Web Applications". A "Non-Content Oriented Web Application": (1) will be acces

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread gabriele renzi
Mike Thompson ha scritto: 'Seaside' is a Smalltalk framework for what might be called "Modal Web Development" or "Synchronous Web Programming", or even "Continuation Based Web Apps". http://www.beta4.com/seaside2/ Very sexy it looks too. And it seems to be generating a lot of interest - Ru

Re: The Industry choice

2005-01-02 Thread Roy Smith
Stefan Axelsson <[EMAIL PROTECTED]> wrote: > Yes, ignoring most of the debate about static vs. dynamic typing, I've > also longed for 'use strict'. You can use __slots__ to get the effect you're after. Well, sort of; it only works for instance variables, not locals. And the gurus will argue t

RE: Problems programming with Tkinter

2005-01-02 Thread Walter S. Leipold
Svenglenn writes: > But, i want the program to open a new dialogue when i press > the button "Visa ruta" and in that dialogue will be a field > where you can enter a value directly in the program, but a > can't get it to work because is don't know how i shall do to > open a new dialogue window

Re: The Industry choice

2005-01-02 Thread Steve Holden
Paul Rubin wrote: Steve Holden <[EMAIL PROTECTED]> writes: It seems to me that IDLE and a lot of the rest of Python are examples of someone having a cool idea and writing a demo, then releasing it with a lot of missing components and rough edges, without realizing that it can't reasonably be called

Re: The Industry choice

2005-01-02 Thread Steve Holden
Aahz wrote: In article <[EMAIL PROTECTED]>, Paul Rubin wrote: I was pretty skeptical of Java's checked exceptions when I first used them but have been coming around about them. There's just been too many times when I wrote something in Python that crashed because some l

Re: The Industry choice

2005-01-02 Thread Steve Holden
Mark Carter wrote: > It might be nice if it was widely understood (in IT) that Python was a language any competent > programmer could pick up in an afternoon I am a programmer who works for a firm of engineers, where they program in VBA, badly. I've often mentioned Python, whereupon I'm usuall

Re: The Industry choice

2005-01-02 Thread Stefan Axelsson
Roy Smith wrote: In perl, I always use "use strict", but in Python, I just don't feel the need. Between the exception mechanism and unit tests, the odds of a typo going unnoticed for very long are pretty slim. I'll admit I don't use Pychecker, but if I was doing production code, I would probab

Re: Gate Oxide thickness of CMOS

2005-01-02 Thread oceanwave
it's depend on the various product, 200 Angstrom or 30 Angstrom is possible. the number of mask:15 or 30 ^^ -- http://mail.python.org/mailman/listinfo/python-list

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Steve Holden
gabriele renzi wrote: Mike Thompson ha scritto: 'Seaside' is a Smalltalk framework for what might be called "Modal Web Development" or "Synchronous Web Programming", or even "Continuation Based Web Apps". http://www.beta4.com/seaside2/ Very sexy it looks too. And it seems to be generating a

Re: What can I do with Python ??

2005-01-02 Thread Peter Hansen
Casey Hawthorne wrote: Aren't games using full screen mode to address only 320 by 240 resolution for faster screen painting? If one used only 320 by 240 in a window, then that would be 1/4 of the screen or less! And, on many of our screens, only a few inches across and too small to see without a ma

Re: What can I do with Python ??

2005-01-02 Thread Lee Harr
On 2005-01-02, Brian Beck <[EMAIL PROTECTED]> wrote: > Alex Martelli wrote: >> You _gotta_ be kidding, right...? The Beginner's Guide link takes you >> right to the BeginnersGuide page which starts with the reassurance that >> Python is easy to learn even if you're new to programming and continues

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Valentino Volonghi aka Dialtone
Mike Thompson wrote: > I googled for the python spin-off but didn't find one. Closest I found Get Nevow with wolf (flow backwards, in the svn sandbox). http://www.divmod.org/cvs/sandbox/phunt/wolf/?root=Nevow You will need stackless or greenlet if using CPython. -- Valentino Volonghi aka Dial

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread Miklós P
"Erik Bethke" <[EMAIL PROTECTED]> wrote: > Hello Everyone, > > I have to say: > > Python! Is! Truly! Amazing! > > So I started with python about a month ago and put in 24 hours across > three weekends. ... > > Truly thank you. > > -Erik > I enjoyed to read about your enthusiasm about Python you

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread Nelson Minar
"Erik Bethke" <[EMAIL PROTECTED]> writes: > I have NEVER experienced this kind of programming joy. Yep, I feel the same way since learning Python. It's really a productive and pleasant language. Congratulations on all your game successes! -- http://mail.python.org/mailman/listinfo/python-list

Re: What can I do with Python ??

2005-01-02 Thread Jabaru
> BTW, I don't know of > a way to write fullscreen games in C#... > Directx, Opengl, Gdi+, win32api, SDL... the list goes on -- http://mail.python.org/mailman/listinfo/python-list

Re: screen clear question

2005-01-02 Thread Nick Coghlan
Alan Gauld wrote: But the bottom line is that there is no builtin command because the mechanism is different on each platform. I'd have said it was because the inpreter is line-oriented rather than screen-oriented, but YMMV. Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, A

Re: Frameworks for "Non-Content Oriented Web Apps"

2005-01-02 Thread paolo_veronelli
[EMAIL PROTECTED] wrote: I have started a topic that is really vauge. I knew that this topic is very general and abstract but I think it turned out to be more general that I had expected. Let me make an attemp at defining "Non-Content Oriented Web Applications". A "Non-Content Oriented Web Applicat

run region in IDLE

2005-01-02 Thread Rolf Wester
Hi, I would like to send a marked region of an IDLE editing window to the IDLE shell for evaluating, so that I can develop software incrementally. I know that I could type directly into the shell window (or copy and paste between an editing window and the shellwindow) but I'm looking for a way o

Advice request for project

2005-01-02 Thread John French
I've been interested in Python for a while now but haven't had an opportunity to use / learn it. I'm tasked now with a project at work that might be my first opportunity. I have to write a ~75 concurrent user document storage app. that allows users to scan documents from locally attached scan

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Ron Garret <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > "Erik Bethke" <[EMAIL PROTECTED]> wrote: > > > > > I have NEVER experienced this kind of programming joy. > > Just wait until you discover Lisp! > > ;-) > > rg Shouldn't that be ;-)))

Re: The Industry choice

2005-01-02 Thread Aahz
In article <[EMAIL PROTECTED]>, Donn Cave <[EMAIL PROTECTED]> wrote: > >I can only believe that if you think the benefit of static typing is >psychological, either something is very different between the way you >and I write programs, or you're not doing it right. > >For me, the effect is striking.

Re: The Industry choice

2005-01-02 Thread Bulba!
On Sat, 01 Jan 2005 13:28:16 -0600, "Rob Emmons" <[EMAIL PROTECTED]> wrote: >> For managers of companies it's worse: the company makes >> VERY substantial investments into any technology it "marries", >> and that means big losses if it goes. Long-term stability >> of this technology in terms of "w

Re: The Industry choice

2005-01-02 Thread Bulba!
On Sat, 01 Jan 2005 15:08:01 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: >> There is the stability issue you mention... but also probably the fear >> issue. If you choose a solution from a major company -- then it fails for >> some reason or they drop the product -- it's their fault -- you've g

Re: The Industry choice

2005-01-02 Thread Aahz
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> In article <[EMAIL PROTECTED]>, >> Paul Rubin wrote: >>> >>>I was pretty skeptical of Java's checked exceptions when I first used >>>them but have been coming around about them. Th

Re: The Industry choice

2005-01-02 Thread Bulba!
On Fri, 31 Dec 2004 21:08:02 GMT, [EMAIL PROTECTED] (Cameron Laird) wrote: >Let me add a cautionary note, though: Big Companies, >including Oracle, Software AG, IBM, Cisco, and so on, have >adopted Tcl over and over. All of them still rely on Tcl >for crucial products. All of them also have emp

Re: The Industry choice

2005-01-02 Thread Roy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Steve Holden <[EMAIL PROTECTED]> wrote: > >Aahz wrote: > >> In article <[EMAIL PROTECTED]>, > >> Paul Rubin wrote: > >>> > >>>I was pretty skeptical of Java's checked

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread StvB
you did this with pygame!!?? "Erik Bethke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > somehow lost my j's: > > www.erikbethke.com/Python/screenshot02.jpg > www.erikbethke.com/Python/screenshot03.jpg > www.erikbethke.com/Python/screenshot04.jpg > www.erikbethke.com/Python/screens

Re: screen clear question

2005-01-02 Thread Alan Gauld
On Mon, 03 Jan 2005 02:15:23 +1000, Nick Coghlan > Alan Gauld wrote: > > But the bottom line is that there is no builtin command > > because the mechanism is different on each platform. > > I'd have said it was because the inpreter is line-oriented rather than > screen-oriented, but YMMV. Yeah

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread Aahz
In article <[EMAIL PROTECTED]>, Roy Smith <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, > Ron Garret <[EMAIL PROTECTED]> wrote: >> In article <[EMAIL PROTECTED]>, >> "Erik Bethke" <[EMAIL PROTECTED]> wrote: >>> >>> I have NEVER experienced this kind of programming joy. >> >> Just

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread Ron Garret
In article <[EMAIL PROTECTED]>, "Erik Bethke" <[EMAIL PROTECTED]> wrote: > > I have NEVER experienced this kind of programming joy. Just wait until you discover Lisp! ;-) rg -- http://mail.python.org/mailman/listinfo/python-list

Re: The Industry choice

2005-01-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mark Carter <[EMAIL PROTECTED]> wrote: . [tale of *very* typical experience with non-software engineers] . . >use something like

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Kendall Clark
On Sun, Jan 02, 2005 at 10:03:10AM -0500, Steve Holden wrote: > I did actually do some sort-of-related work in this area, which I > presented at PyCon DC 2004 - you can access the paper at > >http://www.python.org/pycon/dc2004/papers/18/Setting_A_Context.pdf > > An audience member mentioned

Re: Speed ain't bad

2005-01-02 Thread Bulba!
On Sat, 1 Jan 2005 14:20:06 +0100, "Anders J. Munch" <[EMAIL PROTECTED]> wrote: >> One of the posters inspired me to do profiling on my newbie script >> (pasted below). After measurements I have found that the speed >> of Python, at least in the area where my script works, is surprisingly >> high.

Re: The Industry choice

2005-01-02 Thread Roy Smith
[EMAIL PROTECTED] (Cameron Laird) wrote: > Let me add a cautionary note, though: Big Companies, > including Oracle, Software AG, IBM, Cisco, and so on, have > adopted Tcl over and over. All of them still rely on Tcl > for crucial products. All of them also have employees who > sincerely wonde

Re: The Industry choice

2005-01-02 Thread beliavsky
Roy Smith wrote: >I think you've hit the nail on the head. In awk (and perl, and most >shells, and IIRC, FORTRAN), using an undefined variable silently gets >you a default value (empty string or zero). This tends to propagate >errors and make them very difficult to track down. You may recall corre

Re: The Industry choice

2005-01-02 Thread Mark Carter
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Mark Carter <[EMAIL PROTECTED]> wrote: >. >[tale of *very* >typical experience >with non-software >engineers] >. >. > Don't start me!

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread Kamilche
Erik Bethke wrote: Anyways, I am now a super gushing fan-boy. I have worked my way up from a scripter working in crappy proprietary languages to a c++ programmer, to now biz guy. But when I walked away from programming I gave it a grim farewell, c++ work is good, but so much mind goes into it to

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Jon Perez
none wrote: Does Python really need yet another framework? Apart from the intellectual excersise, wouldn't it be nice if Python would get a framework "for the rest of us" (meaning: mere mortals) which would focus upon getting work done in a simple manner instead of creating yet another, new, h

Re: The Industry choice

2005-01-02 Thread Donn Cave
Quoth Paul Rubin : | "Donn Cave" <[EMAIL PROTECTED]> writes: |> Yes, it would be really weird if Python went that way, and the |> sort of idle speculations we were reading recently from Guido |> sure sounded like he knows better. But it's not like there aren't |> some int

arbitrary number of arguments in a function declaration

2005-01-02 Thread rbt
How do I set up a function so that it can take an arbitrary number of arguments? For example, I have a bunch of expenses which may grow or shrink depending on the client's circumstance and a function that sums them up... hard coding them is tedious. How might I make this dynamic so that it can

Re: arbitrary number of arguments in a function declaration

2005-01-02 Thread Nick Coghlan
rbt wrote: How do I set up a function so that it can take an arbitrary number of arguments? For example, I have a bunch of expenses which may grow or shrink depending on the client's circumstance and a function that sums them up... hard coding them is tedious. How might I make this dynamic so t

Re: arbitrary number of arguments in a function declaration

2005-01-02 Thread rbt
Nick Coghlan wrote: rbt wrote: How do I set up a function so that it can take an arbitrary number of arguments? For example, I have a bunch of expenses which may grow or shrink depending on the client's circumstance and a function that sums them up... hard coding them is tedious. How might I mak

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Jp Calderone
On Sun, 2 Jan 2005 13:34:02 -0500, Kendall Clark <[EMAIL PROTECTED]> wrote: >On Sun, Jan 02, 2005 at 10:03:10AM -0500, Steve Holden wrote: > > > I did actually do some sort-of-related work in this area, which I > > presented at PyCon DC 2004 - you can access the paper at > > > >http://www.py

Re: arbitrary number of arguments in a function declaration

2005-01-02 Thread Steven Bethard
rbt wrote: How do I set up a function so that it can take an arbitrary number of arguments? If you haven't already, you should check out the Tutorial: http://docs.python.org/tut/node6.html#SECTION00673 How might I make this dynamic so that it can handle any amount of expenses? de

[ANN] rpncalc-1.2 RPN Calculator For Python

2005-01-02 Thread Raymond L. Buvel
The rpncalc package adds an interactive Reverse Polish Notation (RPN) interpreter to Python. This interpreter allows the use of Python as an RPN calculator. You can easily switch between the RPN interpreter and the standard Python interpreter. Home page: http://calcrpnpy.sourceforge.net/ Changes

Re: What can I do with Python ??

2005-01-02 Thread Reinhold Birkenfeld
Jabaru wrote: >> BTW, I don't know of >> a way to write fullscreen games in C#... >> > > Directx, Opengl, Gdi+, win32api, SDL... the list goes on Yes, that's right, but most of those you can use in Python, too. I should have inserted the word "specific" at the right point in my sentence Reinhol

Rebinding stdout (was: Re: Python! Is! Truly! Amazing!)

2005-01-02 Thread Ron Garret
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Roy Smith <[EMAIL PROTECTED]> wrote: > >In article <[EMAIL PROTECTED]>, > > Ron Garret <[EMAIL PROTECTED]> wrote: > >> In article <[EMAIL PROTECTED]>, > >> "Erik Bethke" <[EMAIL PROTECTED]> wrot

Re: IDLE question

2005-01-02 Thread Kurt B. Kaiser
Ishwor <[EMAIL PROTECTED]> writes: > On Sun, 26 Dec 2004 13:02:01 +0100, Rolf Wester > <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I would like to use IDLE as interactively as I can with Emacs. In Emacs >> I can send a marked region to the Python interpreter. Is there any way >> to do the same thing

Re: Rebinding stdout

2005-01-02 Thread Mark McEahern
Ron Garret wrote: But this topic does bring up a legitimate question: I have a bunch of code that generates HTML using PRINT statements. I need to convert all this code to return strings rather than actually printing them (so I can use the results to populate templates). In Lisp I could do thi

How to make executable file ?

2005-01-02 Thread BOOGIEMAN
Just how to make *.exe file from python code ?? I typed this : a, b = 0, 1 while b < 1000: print b, a, b = b, a+b and saved it as pyt.txt Now, how do I make pyt.exe file ??? I want to run it on windows where isn't installed python. -- http://mail.python.org/mailman/listinfo/pyth

Re: How to make executable file ?

2005-01-02 Thread Gian Mario Tagliaretti
BOOGIEMAN wrote: [...] > and saved it as pyt.txt > Maybe pyt.py is better :) > Now, how do I make pyt.exe file ??? > I want to run it on windows where isn't installed python. Have a look at py2exe: http://starship.python.net/crew/theller/py2exe/ don't be scared when you see the dimension of

Re: The Industry choice

2005-01-02 Thread Peter Dembinski
Peter Dembinski <[EMAIL PROTECTED]> writes: [...] > str = foo(x) (ick!) it should be: bar = foo(x) -- http://mail.python.org/mailman/listinfo/python-list

ctypes NULL pointers; was: Python To Send Emails Via Outlook Express

2005-01-02 Thread Lenard Lindstrom
Posted in a previous thread was some Python code for accessing Window's Simple MAPI api using the ctypes module. http://groups-beta.google.com/group/comp.lang.python/msg/56fa74cdba9b7be9 This Simple MAPI module was Ian's completed version of an example I had posted in an earlier message. In it I

Re: How to make executable file ?

2005-01-02 Thread BOOGIEMAN
On Sun, 02 Jan 2005 21:56:45 +0100, Gian Mario Tagliaretti wrote: > don't be scared when you see the dimension of the files... 1.9 Mb for a console application ?! And is it possible to make Windows application ? I want to display results in windows message box. -- http://mail.python.org/mailman

Re: The Industry choice

2005-01-02 Thread Peter Dembinski
Peter Dembinski <[EMAIL PROTECTED]> writes: > Peter Dembinski <[EMAIL PROTECTED]> writes: > > [...] > >> str = foo(x) > > (ick!) it should be: > > bar = foo(x) Besides, shouldn't str be a reserved word or something? -- http://mail.python.org/mailman/listinfo/python-list

RE: Frameworks for "Non-Content Oriented Web Apps"

2005-01-02 Thread Robert Brewer
[EMAIL PROTECTED] wrote: > Let me make an attemp at defining "Non-Content > Oriented Web Applications". > > A "Non-Content Oriented Web Application": > (1) will be accessed from web browser(obviously). Clear enough. > (2) will be developed using 'W3C' and other open > standards(STRICTLY, to ensu

Re: How to make executable file ?

2005-01-02 Thread Maurice LING
Hi all, This may be OT but is there a way to do the same for *nix type of system? Like cast a python interpreter with scripts together? I'm running Mac OSX here. The only remote idea I have is to use jythonc to convert everything into .class files and package that as a .jar file but I can't do t

Re: The Industry choice

2005-01-02 Thread Peter Dembinski
Bulba! <[EMAIL PROTECTED]> writes: [...] > The point is obviously "cover your ass" attitude of managers: Managers get paid for taking risk :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Rebinding stdout

2005-01-02 Thread Ron Garret
In article <[EMAIL PROTECTED]>, Mark McEahern <[EMAIL PROTECTED]> wrote: > Ron Garret wrote: > > > But this topic does bring up a legitimate question: I have a bunch of > > code that generates HTML using PRINT statements. I need to convert > > all this code to return strings rather than actua

Re: ctypes NULL pointers; was: Python To Send Emails Via Outlook Express

2005-01-02 Thread ian
Thanks again Lenard!! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to make executable file ?

2005-01-02 Thread Tim Jarman
Maurice LING wrote: > Hi all, > > This may be OT but is there a way to do the same for *nix type of > system? Like cast a python interpreter with scripts together? > > I'm running Mac OSX here. > For OSX, google for py2app - for *nix in general, I believe freeze is your mman, although so many

Re: The Industry choice

2005-01-02 Thread Terry Reedy
"Peter Dembinski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Besides, shouldn't str be a reserved word or something? It is a name in the builtins module which is automatically searched after globals. Many experienced Pythoneers strongly advise against rebinding builtin name

Re: Python! Is! Truly! Amazing!

2005-01-02 Thread StvB
The way that Paul Graham sees Lisp: ()))yes!) ) "Roy Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In article <[EMAIL PROTECTED]>, > Ron Garret <[EMAIL PROTECTED]> wrote: > >> In article <[EMAIL PROTECTED]>, >> "Erik Bethke" <[EMAIL PROTECTED]> wrote: >> >

Re: How to make executable file ?

2005-01-02 Thread Grant Edwards
On 2005-01-02, BOOGIEMAN <[EMAIL PROTECTED]> wrote: >> don't be scared when you see the dimension of the files... > > 1.9 Mb for a console application ?! Yup. I know it's rather small for a Windows application. > And is it possible to make Windows application? Yes. > I want to display results

Re: The Industry choice

2005-01-02 Thread Alex Martelli
Roy Smith <[EMAIL PROTECTED]> wrote: > Stefan Axelsson <[EMAIL PROTECTED]> wrote: > > Yes, ignoring most of the debate about static vs. dynamic typing, I've > > also longed for 'use strict'. > > You can use __slots__ to get the effect you're after. Well, sort of; it > only works for instance var

Re: The Industry choice

2005-01-02 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> 2004-I: "xundef.f", line 2: 'y' is set but never used. > 2005-W: "xundef.f", line 4: 'x' is used but never set. > 2153-W: "xundef.f", line 5, column 1: Subscript out of range. None of these are syntax errors. The first two of these

Re: The Industry choice

2005-01-02 Thread Terry Reedy
"Bulba!" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 01 Jan 2005 15:08:01 -0500, Steve Holden > >>whereas when a company goes >>bust there's no guarantee the software IP will ever be extricated from >>the resulting mess. > > There is a good _chance_ here: money. Somebody

mertz@gnosis.cx

2005-01-02 Thread Scott David Daniels
I was pointed to appendix A by a comp.lang.py post. In the "except statements" section (which might better be called the "try" statement and include a try: ... finally: ...), you say: The 'except' statement can optionally bind a name to an exception argument: >>> try: ... raise

Re: The Industry choice

2005-01-02 Thread Terry Reedy
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well clearly there's a spectrum. However, I have previously written that > the number of open source projects that appear to get stuck somewhere > between release 0.1 and release 0.9 is amazingly large, and does imply

? about file() and open()

2005-01-02 Thread Sean
Was wondering if there was any difference between these two functions. I have read some text that said file() wasn't introduced until 2.2 and that it was synonymous with open(). Does this mean that I should be using file() where I used open() before? Sean Morris -- http://mail.python.org/mailma

Re: UserDict deprecated

2005-01-02 Thread Uwe Mayer
Saturday 01 January 2005 23:34 pm Steven Bethard wrote: [...] > If you implemented the file interface functions yourself, why do you > want to inherit from file? [...] > But just inheriting from list won't make this work, will it? Don't you > want to do something like: [...] Right. I guess th

Re: The Industry choice

2005-01-02 Thread Roy Smith
"Terry Reedy" <[EMAIL PROTECTED]> wrote: > None has been reserved because there is no known good use for overriding > it. Should I infer from the above that there's a known bad use? > True and False will be reserved someday. I remember a lisp I used many years ago. If you tried to rebind nil,

Re: arbitrary number of arguments in a function declaration

2005-01-02 Thread it's me
And in case it's not obvious already, you get the number of arguments that got passed down from: len(args) "Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > rbt wrote: > > How do I set up a function so that it can take an arbitrary number of > > arguments? For examp

Re: HTTP GET request with basic authorization?

2005-01-02 Thread Jonas Galvez
Christopher J. wrote: > I tried this, but it didn't work: > conn.request("GET", "/somepage.html", None, > {"AUTHORIZATION": "Basic username:password"}) Hmm, try this: import re, base64 userpass = base64.encodestring('user:pass').replace('\n', '') authd = {'Authorization':'Basic %s' % userpass} c

Re: The Industry choice

2005-01-02 Thread Alex Martelli
Bulba! <[EMAIL PROTECTED]> wrote: > True. I have a bit of interest in economics, so I've seen e.g. > this example - why is it that foreign branches of companies > tend to cluster themselves in one city or country (e.g. It's not just _foreign_ companies -- regional clustering of all kinds of busin

Re: ? about file() and open()

2005-01-02 Thread Mark McEahern
Sean wrote: Was wondering if there was any difference between these two functions. None, as shown here: D:\Python23>python Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> file == open

Re: ? about file() and open()

2005-01-02 Thread Alex Martelli
Sean <[EMAIL PROTECTED]> wrote: > Was wondering if there was any difference between these two functions. Not today: >>> open is file True they're two names for the same object. Which isn't a function, btw: >>> type(open) the object, as you see, is a type (besides calling it to instantiate i

Re: The Industry choice

2005-01-02 Thread Mike Meyer
Bulba! <[EMAIL PROTECTED]> writes: > This "free software" (not so much OSS) notion "but you can > hire programmers to fix it" doesn't really happen in practice, > at least not frequently: because this company/guy remains > ALONE with this technology, the costs are unacceptable. Yes, but fixing p

Re: How to make executable file ?

2005-01-02 Thread Alex Martelli
Maurice LING <[EMAIL PROTECTED]> wrote: > Hi all, > > This may be OT but is there a way to do the same for *nix type of > system? Like cast a python interpreter with scripts together? Yes, but fortunately on the Mac you don't need that. > I'm running Mac OSX here. Assuming we're talking Mac O

Re: PEP 288 ponderings

2005-01-02 Thread Michael Sparks
On Sun, 2 Jan 2005, Ian Bicking wrote: > Steven Bethard wrote: > > PEP 288 was mentioned in one of the lambda threads and so I ended up > > reading it for the first time recently. I definitely don't like the > > idea of a magical __self__ variable that isn't declared anywhere. It > > also seemed

  1   2   >