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

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 say. If

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, high

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

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 that

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 http://[EMAIL PROTECTED] 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 determine

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 about

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 string but

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

[OT] Re: The Industry choice

2005-01-02 Thread Peter Dembinski
Paul Rubin http://[EMAIL PROTECTED] 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 stuff since

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-list

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 Bill

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 accessed

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 - Ruby

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 that

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 in the

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 http://[EMAIL PROTECTED] 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

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 usually

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

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 lot

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

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 with a

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 have recently

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: 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

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 http://[EMAIL PROTECTED] wrote: I was pretty skeptical of Java's checked exceptions when I first

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/screenshot05.jpg

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, that

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: 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. Pretty

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 wonder,

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

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! Dammit, too

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,

Re: The Industry choice

2005-01-02 Thread Donn Cave
Quoth Paul Rubin http://[EMAIL PROTECTED]: | 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 interesting

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

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?

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 wink Reinhold --

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] wrote: I have NEVER

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 with IDLE?

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

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. --

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 the

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. --

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 ensure

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

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 actually

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 *nixen

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 names

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: I have NEVER

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 variables, not

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 would be

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 has poured a

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 some

? 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 --

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, you

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}

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 business

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) type 'type' the object, as you see, is a type (besides calling it to

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 python

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 OS X

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 to me

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Paul Rubin
Kendall Clark [EMAIL PROTECTED] writes: That was me, actually. I remain surprised that there isn't a move afoot either to implement something like Seaside or Borges in Python or to adapt one of the existing web frameworks to be modal/continuation style. Since Python doesn't have

[ANN] ratfun-1.0 Polynomials And Rational Functions

2005-01-02 Thread Raymond L. Buvel
The ratfun module provides classes for defining polynomial and rational function (ratio of two polynomials) objects. These objects can be used in arithmetic expressions and evaluated at a particular point. Home page: http://calcrpnpy.sourceforge.net/ratfun.html Note: If you are using

Re: The Industry choice

2005-01-02 Thread Paul Rubin
Roy Smith [EMAIL PROTECTED] writes: Around here, AOL/Moviephone has been trolling for years for Tcl people; I guess that counts as a big company. The AOL web server also uses tcl as a built-in dynamic content generation language (i.e. sort of like mod_python), or at least it used to. --

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Valentino Volonghi aka Dialtone
Paul Rubin http://[EMAIL PROTECTED] wrote: Since Python doesn't have continuations, that would be a bit tricky. Since I've already said Nevow with wolf works the same as borges. The only thing that wouldn't work without continuations is the back button. With greenlet module (from Armin Rigo)

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Paul Rubin
[EMAIL PROTECTED] (Valentino Volonghi aka Dialtone) writes: Since I've already said Nevow with wolf works the same as borges. The only thing that wouldn't work without continuations is the back button. With greenlet module (from Armin Rigo) also the back button will work. Thanks, I'm not

using HTTP Digest auth with arbitrary HTTP methods?

2005-01-02 Thread John Reese
Hello there. I've run into some missing functionality with HTTP Digest authentication in the 2.3 library and I was wondering if I'm just missing something. Missing functionality the first: urllib2 1a. You can add handlers to your opener indicating that you want to use HTTP Digest auth.

Calling Function Without Parentheses!

2005-01-02 Thread Kamilche
What a debug nightmare! I just spent HOURS running my script through the debugger, sprinkling in log statements, and the like, tracking down my problem. I called a function without the ending parentheses. I sure do WISH Python would trap it when I try to do the following: MyFunc instead of:

Re: Calling Function Without Parentheses!

2005-01-02 Thread Skip Montanaro
Kamilche I called a function without the ending parentheses. I sure do Kamilche WISH Python would trap it when I try to do the following: Kamilche MyFunc Kamilche instead of: Kamilche MyFunc() Google for pychecker. Skip --

Re: Calling Function Without Parentheses!

2005-01-02 Thread Dan Bishop
Kamilche wrote: What a debug nightmare! I just spent HOURS running my script through the debugger, sprinkling in log statements, and the like, tracking down my problem. I called a function without the ending parentheses. I sure do WISH Python would trap it when I try to do the following:

Re: Calling Function Without Parentheses!

2005-01-02 Thread John Machin
Kamilche wrote: What a debug nightmare! I just spent HOURS running my script through the debugger, sprinkling in log statements, and the like, tracking down my problem. I called a function without the ending parentheses. I sure do WISH Python would trap it when I try to do the following:

Re: Calling Function Without Parentheses!

2005-01-02 Thread John Machin
Dan Bishop wrote: Kamilche wrote: What a debug nightmare! I just spent HOURS running my script through the debugger, sprinkling in log statements, and the like, tracking down my problem. I called a function without the ending parentheses. I sure do WISH Python would trap it when I

Re: Continuations Based Web Framework - Seaside.

2005-01-02 Thread Ian Bicking
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 the Smalltalk and Scheme-based work on web

Re: Calling Function Without Parentheses!

2005-01-02 Thread Max M
Kamilche wrote: What a debug nightmare! I just spent HOURS running my script through the debugger, sprinkling in log statements, and the like, tracking down my problem. I called a function without the ending parentheses. I sure do WISH Python would trap it when I try to do the following: MyFunc

Re: File locking is impossible in Windows? SOLUTION

2005-01-02 Thread elbertlev
Sure it will do if one of the processes needs read access only. Scenario when you need shared rw acces with locking: In the file you have records say 30 bytes long, 2 processes are reading/writing these records by: lock-read-unlock or lock-write-unlock . Both processes have to open the file with

Re: using HTTP Digest auth with arbitrary HTTP methods?

2005-01-02 Thread John Reese
In comp.lang.python, [I] wrote: Hello there. I've run into some missing functionality with HTTP Digest authentication in the 2.3 library and I was wondering if I'm just missing something. Missing functionality the first: urllib2 1a. You can add handlers to your opener indicating that you

Re: Problem remotely shutting down a windows computer with python

2005-01-02 Thread Daniel Bickett
While I have no solution for the recipe you cited, it seems like alot of trouble could be avoided by simply importing the os module and running the following command using os.system: shutdown -s Daniel Bickett On 2 Jan 2005 20:13:35 -0800, EW [EMAIL PROTECTED] wrote: I have a problem when

Re: Problem remotely shutting down a windows computer with python

2005-01-02 Thread EW
I believe that would shutdown the computer you were physically at, but it wouldn't shutdown the computer down the hall over the LAN like this script was meant to do. -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem remotely shutting down a windows computer with python

2005-01-02 Thread Kartic
Hi, According to the online docs for InitiateSystemShutdown() at http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/win32api__InitiateSystemShutdown_meth.html bRebootAfterShutdown : int Specifies whether the computer is to restart immediately after shutting down. If this parameter

XML: Better way to accomplish this?

2005-01-02 Thread flamesrock
Hi, I'm working on creating an xml structure like the following, as effiecienty and elegantly as possible using minidom preferably: #region #population #total #0 #/total #R #0 #

[Twisted-Python] Problem with Echoserver (TCP), Help!

2005-01-02 Thread SeSe
Hi, I am new to Twisted. I use a Twisted 1.3.0 on MS Windows XP Home Edition, my python version is 2.3 I try the TCP echoserv.py and echoclient.py example. But the client always fail with following message: Unhandled error in Deferred: Traceback (most recent call last): File

Re: thread/queue bug

2005-01-02 Thread Tim Peters
[EMAIL PROTECTED] Note that python-bugs-list is a moderated list for use only by automated reports generated from SourceForge. I'm redirecting the reply to [EMAIL PROTECTED] I have a very strange bug. A thread in a .pyc stops dead. This program has many threads and queues and has worked

Re: [Twisted-Python] Problem with Echoserver (TCP), Help!

2005-01-02 Thread Kartic
Hi, My experience with Twisted is also limited but let me try to help you. I tried the same combo as you and it worked well with the following responses: receive: Hello, world! receive: What a fine day it is. receive: Bye-bye! connection lost: Connection was closed cleanly. I am sure you started

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

2005-01-02 Thread Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
Ok ; thank you. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >