Re: Why tuples use parentheses ()'s instead of something else like 's?

2005-01-01 Thread edin . salkovic
Roy Smith wrote: In article [EMAIL PROTECTED], Reinhold Birkenfeld [EMAIL PROTECTED] wrote: + being an operator Looks more like a smiley for guy wearing a bowtie :)), I had a nice laugh with this one. -- http://mail.python.org/mailman/listinfo/python-list

Re: Complementary language?

2005-01-01 Thread Alan Gauld
On Sat, 25 Dec 2004 18:40:31 -0500, HackingYodel [EMAIL PROTECTED] wrote: Hello all! I'm learning to program at home. I can't imagine a better language than Python for this. The ideal situation, for me, would be to study two languages at the same time. Probably sounds crazy, but it

Re: OT: spacing of code in Google Groups

2005-01-01 Thread Terry Reedy
JanC [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know if gmane keeps formating of messages intact when posting? That could be an alternative too... Reading posts via gmane with Outlook Express preserves leading spaces just fine. However, OE deletes tabs regardless of

Re: exposing C array to python namespace: NumPy and array module.

2005-01-01 Thread Craig Ringer
On Sat, 2005-01-01 at 08:18, Bo Peng wrote: Python's array module is built-in, easy to use, but *without* a FromLenAndData function! Even the buffer interface provides only 'get buffer' but no 'set buffer' functions. Could anyone tell me how I can create an array object from existing data?

Re: Complementary language?

2005-01-01 Thread Premshree Pillai
On Sat, 1 Jan 2005 09:35:32 + (UTC), Alan Gauld [EMAIL PROTECTED] wrote: On Sat, 25 Dec 2004 18:40:31 -0500, HackingYodel [EMAIL PROTECTED] wrote: Hello all! I'm learning to program at home. I can't imagine a better language than Python for this. The ideal situation, for me, would be

Re: The Industry choice

2005-01-01 Thread Cameron Laird
In article [EMAIL PROTECTED], Hans Nowak [EMAIL PROTECTED] wrote: Paul Rubin wrote: You should write unit tests either way, but in Python you're relying on the tests to find stuff that the compiler finds for you with Java. As I wrote on my weblog a while ago, I suspect that this effect is

Which blog tool

2005-01-01 Thread Mark Carter
I currently use python to automatically summarise a certain newsgroup daily, and post the findings that it makes. Someone has suggested that they would like a to see a blog of the posts. I wondered if there was a python tool/library that could automate the blog postings. Any ideas? Some

Re: Speed ain't bad

2005-01-01 Thread Anders J. Munch
Bulba! [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 good code for someone who calls himself a

Re: Which blog tool

2005-01-01 Thread Premshree Pillai
On Sat, 01 Jan 2005 13:14:23 +, Mark Carter [EMAIL PROTECTED] wrote: I currently use python to automatically summarise a certain newsgroup daily, and post the findings that it makes. Someone has suggested that they would like a to see a blog of the posts. I wondered if there was a python

HELP: Tkinter idiom needed

2005-01-01 Thread Pekka Niiranen
Hi there, after reading TkInter/thread -recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965 I wondered if it was possible to avoid using threads for the following problem: I have script started from W2K console that normally prints ascii messages to the screen. However, I have

Re: what is lambda used for in real code?

2005-01-01 Thread Roy Smith
In article [EMAIL PROTECTED], Adam DePrince [EMAIL PROTECTED] wrote: We can operate on every other class without having to involve the namespace, why should functions be any different? def is a weird beast. It does more than just bind a lambda to a name, it also alters the function so it

Re: what is lambda used for in real code?

2005-01-01 Thread Diez B. Roggisch
Why not improve your metaclass wrapping so it knows about properties and replaces them with properties containing wrapped functions? Erg - never thought of that, actually - it was so fast to introduce the lambda... But after some tinkering with metaclasses, I think it can be done - I have to

DB-API 2.0 in pysqlite and pgdb

2005-01-01 Thread Roman Suzi
Happy New Year to all Pythoneers! I am playing with pysqlite and pgdb and their DB-API conformancy. It was quite interesting to know: - sqlite doesn't have mandatory helper-functions Date, Tim, etc. (due to an error int it's __init__, but this is quite obvious to correct or just to use

Re: Which blog tool

2005-01-01 Thread Mark Carter
Premshree Pillai wrote: You can use the Blogger API to post to your Blogger account. There's a Python interface to the API -- PyBlogger -- available here: http://beetle.cbtlsl.com/archives/category/pyblogger Hey, it Just Works! I got the whole basic thing working in a few minutes. It was exactly

want some extra cash, try this

2005-01-01 Thread adamhum
want some extra cash, try this THIS REALLY CAN MAKE YOU EASY MONEY!! A little while back, I was on my computer having a grand old time, just like you are now and came across an article similar to this that said you could make thousands dollars within weeks with only an initial investment of

Re: exposing C array to python namespace: NumPy and array module.

2005-01-01 Thread Bo Peng
Craig Ringer wrote: On Sat, 2005-01-01 at 08:18, Bo Peng wrote: Python's array module is built-in, easy to use, but *without* a FromLenAndData function! Even the buffer interface provides only 'get buffer' but no 'set buffer' functions. Could anyone tell me how I can create an array object

Re: pickling a subclass of tuple

2005-01-01 Thread Alex Martelli
fedor [EMAIL PROTECTED] wrote: Hi all, happy new year, I was trying to pickle a instance of a subclass of a tuple when I ran into a problem. Pickling doesn't work with HIGHEST_PROTOCOL. How should I rewrite my class so I can pickle it? You're falling afoul of an optimization in pickle's

Re: lies about OOP

2005-01-01 Thread Daniel T.
[EMAIL PROTECTED] wrote: A paper finding that OOP can lead to more buggy software is at http://www.leshatton.org/IEEE_Soft_98a.html Sure, OOP *can* lead to more buggy software, that doesn't mean it always does. Les Hatton Does OO sync with the way we think?, IEEE Software, 15(3), p.46-54

Re: lies about OOP

2005-01-01 Thread Daniel T.
H. S. Lahman [EMAIL PROTECTED] wrote: Les Hatton Does OO sync with the way we think?, IEEE Software, 15(3), p.46-54 This paper argues from real data that OO based systems written in C++ appear to increase the cost of fixing defects significantly when compared with systems written in

Windows process priority setting question...

2005-01-01 Thread Ray S
Is it possible to have an app re-set its own priority? I see that 2.4+ has the ability for sub-processes, but only on creation. Apparently win32process.SetPriorityClass(handle, dwPriorityClass) and PyCWinThread.SetThreadPriority(priority) allows one to change a sub while a the sub is running, but

Re: PyQT installation

2005-01-01 Thread John J. Lee
[EMAIL PROTECTED] (Alex Martelli) writes: [...] Basically: if you want it on Windows for free, forget Qt Correct. (I hear the cygwin people are trying to make a GPL Qt available for Win+cyg+XFree, but I suspect trolltech ain't happy about that -- anyway, I don't think it would be native,

Re: The Industry choice

2005-01-01 Thread Steve Holden
Cameron Laird wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Bulba wrote: OK, so what projects and why would you consider Python: 1. clearly unsuitable Large-scale scientific computing projects, such as numerical weather prediction, where performance is critical. Python could be

Re: PyQT installation

2005-01-01 Thread Ken Godee
John J. Lee wrote: [EMAIL PROTECTED] (Alex Martelli) writes: [...] Basically: if you want it on Windows for free, forget Qt Correct. I believe the book C++ GUI programming Qt3 comes with a windows Qt gpl 3.x version. Just have to buy the book. No PyQt version to match thou. Blackadder from the

Re: what is lambda used for in real code?

2005-01-01 Thread Alex Martelli
Steve Holden [EMAIL PROTECTED] wrote: Adam DePrince wrote: [...] In sort, we must preserve the ability to create an anonymous function simply because we can do so for every other object type, and functions are not special enough to permit this special case. And you'd create an

Re: exposing C array to python namespace: NumPy and array module.

2005-01-01 Thread Craig Ringer
On Sat, 2005-01-01 at 10:27 -0600, Bo Peng wrote: Sorry if I was not clear enough. I was talking about the differece between python array module (http://docs.python.org/lib/module-array.html, Modules/arraymodule.c in the source tree) and NumPy array. They both use C-style memory block

Re: exposing C array to python namespace: NumPy and array module.

2005-01-01 Thread Raymond L. Buvel
Bo Peng wrote: Dear list, I am writing a Python extension module that needs a way to expose pieces of a big C array to python. Currently, I am using NumPy like the following: PyObject* res = PyArray_FromDimsAndData(1, int*dim, PyArray_DOUBLE, char*buf); Users will get a Numeric Array object

Re: PyQT installation

2005-01-01 Thread John J Lee
On Sat, 1 Jan 2005, Ken Godee wrote: [...] I believe the book C++ GUI programming Qt3 comes with a windows Qt gpl 3.x version. Just have to buy the book. No PyQt version to match thou. GPL only if you buy the book makes no sense. Either it's GPL or it isn't. (It isn't, in fact.) [...]

Re: The Industry choice

2005-01-01 Thread Hans Nowak
Donn Cave wrote: Quoth Hans Nowak [EMAIL PROTECTED]: | Paul Rubin wrote: | | You should write unit tests either way, but in Python you're relying | on the tests to find stuff that the compiler finds for you with Java. | | As I wrote on my weblog a while ago, I suspect that this effect is |

Re: The Industry choice

2005-01-01 Thread Rob Emmons
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 we're not going to be left out in cold alone with this technology to feed it means a

Python equivalent of script(1)

2005-01-01 Thread cepl
Is there anything like script(1) for python interactive sessions. From script(1) manpage: Script makes a typescript of everything printed on your terminal. It is useful for students who need a hardcopy record of an interactive session as proof of an assignment, as the typescript file can be

Re: Python equivalent of script(1)

2005-01-01 Thread Thomas Rast
[EMAIL PROTECTED] writes: I would love to have a record of all what I've done, so I can edit this record into final script. You can save the current input history with import readline readline.write_history_file(python.log) If you want to log your whole session, including output, try using

Re: Python equivalent of script(1)

2005-01-01 Thread cepl
Thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list

Re: what is lambda used for in real code?

2005-01-01 Thread Steve Holden
Alex Martelli wrote: Steve Holden [EMAIL PROTECTED] wrote: Adam DePrince wrote: [...] In sort, we must preserve the ability to create an anonymous function simply because we can do so for every other object type, and functions are not special enough to permit this special case. And you'd create

Looping using iterators with fractional values

2005-01-01 Thread drife
Hello, Making the transition from Perl to Python, and have a question about constructing a loop that uses an iterator of type float. How does one do this in Python? In Perl this construct quite easy: for (my $i=0.25; $i=2.25; $i+=0.25) { printf %9.2f\n, $i; } Thanks in advance for your help.

Re: The Industry choice

2005-01-01 Thread Steve Holden
Rob Emmons 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 we're not going to be left out in cold alone with this technology to feed

Re: Looping using iterators with fractional values

2005-01-01 Thread Mark McEahern
drife wrote: Hello, Making the transition from Perl to Python, and have a question about constructing a loop that uses an iterator of type float. How does one do this in Python? Use a generator: def iterfloat(start, stop, inc): ... f = start ... while f = stop: ... yield f

I need some advice/help on running my scripts

2005-01-01 Thread Sean
For the last couple of months I have been reading and working throught the examples in Magnus Lie Hetland's Book Practical Python This for all practical purposes is the first computer programming language I have spent any time at learning, so much of what I have covered in the book was for the

Re: Python equivalent of script(1)

2005-01-01 Thread Grant Edwards
On 2005-01-01, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there anything like script(1) for python interactive sessions. $ script transcript.txt Script started, file is transcript.txt $ python ... Not sure if there's a way to shut off readline... -- Grant Edwards

Re: Looping using iterators with fractional values

2005-01-01 Thread Reinhold Birkenfeld
drife wrote: Hello, Making the transition from Perl to Python, and have a question about constructing a loop that uses an iterator of type float. How does one do this in Python? In Perl this construct quite easy: for (my $i=0.25; $i=2.25; $i+=0.25) { printf %9.2f\n, $i; } =Py2.3:

Re: Python equivalent of script(1)

2005-01-01 Thread Mike Meyer
[EMAIL PROTECTED] writes: In my case I wouldn't like to use it as a proof of anything, but I want to get a script accessing a library system in my school -- it means many attempts to play with urllib. I would prefer to do it in an interactive session, but then I would love to have a record of

Re: Looping using iterators with fractional values

2005-01-01 Thread Steven Bethard
Mark McEahern wrote: drife wrote: Hello, Making the transition from Perl to Python, and have a question about constructing a loop that uses an iterator of type float. How does one do this in Python? Use a generator: def iterfloat(start, stop, inc): ... f = start ... while f = stop:

Re: what is lambda used for in real code?

2005-01-01 Thread Alex Martelli
Steve Holden [EMAIL PROTECTED] wrote: ... And you'd create an anonymous type how, exactly? type('',(),{}) ... Indeed. And then you'd insert all the methods as lambdas by We both know that the Python language framework has enough introspection capabilities to do this, but I'm

Re: I need some advice/help on running my scripts

2005-01-01 Thread Steven Bethard
Sean wrote: My problem is that many of the example scripts are run on Linux machines and I am using Win XP Pro. Here is a specific example of what is confusing me. If I want to open a file from the dos prompt in some script do I just write the name of the file I want to open (assuming it is in

What can I do with Python ??

2005-01-01 Thread BOOGIEMAN
Beginners question, but really what can you do with it ? How hard is Python to learn compared with other languages (let's say C#). Can you make fullscreen game with it (for example) ? I've looked at http://www.python.org but nothing concrete there --

Re: Clearing the screen

2005-01-01 Thread Artur M. Piwko
In the darkest hour on Sat, 25 Dec 2004 09:41:54 +1030, Ishwor [EMAIL PROTECTED] screamed: def cls(): for i in range(1,40): print ; Slightly ot, but perhaps this'll work for you: def cls(): print \033[2J -- [ Artur M. Piwko : Pipen : AMP29-RIPE : RLU:100918 :

Re: exposing C array to python namespace: NumPy and array module.

2005-01-01 Thread Scott David Daniels
Bo Peng wrote: Dear list, I am writing a Python extension module that needs a way to expose pieces of a big C array to python. Currently, I [use] NumPy Users ... actually change the underlying C array. Python's array module is built-in, easy to use, but *without* a FromLenAndData function!

Re: Looping using iterators with fractional values

2005-01-01 Thread Reinhold Birkenfeld
Mike Meyer wrote: Or - and much safer when dealing with floating point numbers - iterate over integers and generate your float values: for j in range(1, 9): i = j * .25 print %9.2f % i There's a glitch there, though - should be range(1, 10). Reinhold PS: I'm wondering whether my

Re: Securing a future for anonymous functions in Python

2005-01-01 Thread Simo Melenius
Doug Holton [EMAIL PROTECTED] writes: Steven Bethard wrote: Simo Melenius wrote: map (def x: Oops, I found a typo alreay. I meant to write def (x): -- no name for anonymous functions but just the argument list, please :) Right the comma plus other things make this difficult for a parser

Re: PyQT installation

2005-01-01 Thread Jarek Zgoda
Ken Godee wrote: I believe the book C++ GUI programming Qt3 comes with a windows Qt gpl 3.x version. Just have to buy the book. No PyQt version to match thou. No, Sir. It's a non-commercial edition. At the request from Trolltech, there's no PyQt-nc available for this version of Qt. Blackadder

Re: UserDict deprecated

2005-01-01 Thread Hans Nowak
Uwe Mayer wrote: Why is the UserDict module is deprecated after Python 2.2. The application of it I have in mind is, i.e. multiple inheritance from file and dic - which is not possible. I am curious, what would you do with a class that derives from both file and dict? -- Hans Nowak

Re: UserDict deprecated

2005-01-01 Thread Hans Nowak
Uwe Mayer wrote: Why is the UserDict module is deprecated after Python 2.2. The application of it I have in mind is, i.e. multiple inheritance from file and dic - which is not possible. [...] I was writing a class that read /writes some binary file format. I implemented the functions from the file

Approximating scattered data

2005-01-01 Thread Grant Edwards
I've been looking for some way to approximate scattered 3D data points in Python. The data doesn't seem to be amenable to fitting functions like polymials, so I may have to use something more like a spline surface. However, I can't find anything usable from Python, and my Fortram skills are

Re: The Industry choice

2005-01-01 Thread Paul Rubin
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 complete

Re: The Industry choice

2005-01-01 Thread Paul Rubin
[EMAIL PROTECTED] (Cameron Laird) writes: That is, while I have a LOT of respect for Paul's programming and judgment, and question myself when I'm on the side opposite him, I ultimately value type declarations in languages such as Java as more cost than benefit. I don't find static type

Re: UserDict deprecated

2005-01-01 Thread Steven Bethard
Uwe Mayer wrote: Saturday 01 January 2005 22:48 pm Hans Nowak wrote: I am curious, what would you do with a class that derives from both file and dict? I was writing a class that read /writes some binary file format. I implemented the functions from the file interface such that they are refering

Re: UserDict deprecated

2005-01-01 Thread Alex Martelli
Uwe Mayer [EMAIL PROTECTED] wrote: ... If I used UserDict I would not need to specify all methods UserDict provides alreay, anyway. The DictMixin class from the UserDict module is *not* deprecated -- only the UserDict class from the same module. (If you found info saying otherwise pls

Re: Looping using iterators with fractional values

2005-01-01 Thread beliavsky
Mike Meyer wrote: Or - and much safer when dealing with floating point numbers - iterate over integers and generate your float values: for j in range(1, 9): i = j * .25 print %9.2f % i I agree with this suggestion. As an historical aside, Fortran had loops with floating point variables

Re: What can I do with Python ??

2005-01-01 Thread Alex Martelli
BOOGIEMAN [EMAIL PROTECTED] wrote: Beginners question, but really what can you do with it ? You can write application programs, big or small, of just about any kind you may imagine, on just about any platform you may imagine (from mainframes and supercomputers down to powerful cellphones such

Re: exposing C array to python namespace: NumPy and array module.

2005-01-01 Thread Scott David Daniels
Bo Peng wrote: Scott David Daniels wrote: I wrote blocks and views to overcome this problem. I was too impatient to wait for your reply. :-) I call 21-hour turnaround over New Year's Eve pretty good. Clearly I will never be quick enough for you ;-). Since I presented this at the Vancouver Python

Re: What can I do with Python ??

2005-01-01 Thread Alan Gauld
On Sat, 1 Jan 2005 21:57:32 +0100, BOOGIEMAN (let's say C#). Can you make fullscreen game with it (for example) ? RANT You can but please don't! Make your game run fast in a window. I hate fascist games programmers who insist on monopolising a 21 inch 1600x1200 display and assuming I have

Re: Approximating scattered data

2005-01-01 Thread beliavsky
Grant Edwards wrote: I've been looking for some way to approximate scattered 3D data points in Python. The data doesn't seem to be amenable to fitting functions like polymials, so I may have to use something more like a spline surface. However, I can't find anything usable from Python, and my

Re: The Industry choice

2005-01-01 Thread Paul Rubin
[EMAIL PROTECTED] writes: Overall I agree with you and would like to have OPTIONAL static type declarations in Python, as has often been discussed. But without facilities for generic programming, such as templates in C++, static type declarations can force one to duplicate a LOT of code, with

Re: Red Robin Jython JDK classes

2005-01-01 Thread not [quite] more i squared
Henri Sivonen a écrit : I am trying to set up the Red Robin Jython Development Tools for Eclipse. It finds the Python libraries of Jython and my own jars. It does not find the JDK classes. If I try to add classes.jar from the JDK to the Jython Class Path of the project, the plug-in no longer

PEP 288 ponderings

2005-01-01 Thread Steven Bethard
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 like generator attributes don't really solve the problem very

Re: Confusion About Classes

2005-01-01 Thread flamesrock
Well, I took a short excursion into xml for a different part of the program, but the class is now finished!! (source below) I have a few more questions for you guys. 1)If I set self.serverConfig = file(os.path.join('configuration','score.conf'), 'w') and then go self.serverConfig.close(), is

Re: What can I do with Python ??

2005-01-01 Thread BOOGIEMAN
On Sat, 01 Jan 2005 16:03:08 -0500, Mark Nenadov wrote: What can you do with Python? Just about anything your heart desires. Thanks everybody, I downloaded latest windows version and Python-Docs-2.4 archive. Is that enough for absolute beginner. Is there any e-book, step by step guide ... etc

Re: What can I do with Python ??

2005-01-01 Thread Doug Holton
BOOGIEMAN wrote: Thanks everybody, I downloaded latest windows version and Python-Docs-2.4 archive. Is that enough for absolute beginner. Is there any e-book, step by step guide ... etc for download, or anything else important what I have to know before I start learning Python ? The main thing I

Re: Is it possible to open a dbf

2005-01-01 Thread Miklós P
Paul Rubin wrote: John Fabiani [EMAIL PROTECTED] writes: I'm wondering if there is a module available that will open a dbf So far (more than a minute) I have discovered a reader only. So if you have a URL or a search string it would be very helpful. TIA John Yes, dBase Python

Re: PEP 288 ponderings

2005-01-01 Thread Jp Calderone
On Sun, 02 Jan 2005 01:04:06 GMT, Steven Bethard [EMAIL PROTECTED] 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

screen clear question

2005-01-01 Thread jcollins
Is there a command in Python to clear the screen? That is without writing multiple blank lines. Thanks. Jim C -- http://mail.python.org/mailman/listinfo/python-list

ANN: PyXR 0.9.4 - Cross-Referenced HTML from Python Source

2005-01-01 Thread olsongt
PyXR 0.9.4 - Cross-Referenced HTML from Python Source PyXR generates pretty-printed HTML pages from python source files to make source browsing easier. It provides extensive cross-referencenced hyperlinks that integrate with the Python Library Reference as well as other python source files.

HTTP GET request with basic authorization?

2005-01-01 Thread Christopher J. Bottaro
How do I do this using httplib.HTTPConnection and httplib.HTTPConnection.request()? The library reference only gives a simple GET example with no header stuff. I tried this, but it didn't work: conn.request(GET, /somepage.html, None, {AUTHORIZATION: Basic username:password}) Thanks for the

Re: Mailing list hosting?

2005-01-01 Thread weblord
free mailing list offer - limited time http://nabaza.com/autoresponders.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: spacing of code in Google Groups

2005-01-01 Thread JanC
Terry Reedy schreef: JanC [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know if gmane keeps formating of messages intact when posting? That could be an alternative too... Reading posts via gmane with Outlook Express preserves leading spaces just fine. However, OE

Frameworks for Non-Content Oriented Web Apps

2005-01-01 Thread mirnazim
Hi, There are great Python Web Application Framework. But most of them are meant for content oriented web apps. 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

Re: Frameworks for Non-Content Oriented Web Apps

2005-01-01 Thread Tim Churches
[EMAIL PROTECTED] wrote: Hi, There are great Python Web Application Framework. But most of them are meant for content oriented web apps. 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

Re: Frameworks for Non-Content Oriented Web Apps

2005-01-01 Thread Paul Rubin
Tim Churches [EMAIL PROTECTED] writes: Can you give some URL for publicly accessible examples of what you mean by a NON CONTENT-ORIENTED WEB APPLICATIONS, so we can get a better idea of what you mean? I don't think there was anything unclear about it. A spreadsheet might be a good example. --

Re: when wxPython update to python2.4?

2005-01-01 Thread Nick Coghlan
alang_yl wrote: i can't wait. wxPython 2.5 already has a version which works with Python 2.4 (grab it from www.wxpython.org). For the wxPython 2.4 series, I understand Robin is planning a release which will both integrate the 2.4 series into the new wxPython versioning scheme, and also

Re: Frameworks for Non-Content Oriented Web Apps

2005-01-01 Thread Nick Coghlan
[EMAIL PROTECTED] wrote: But is there some sort of framework or something that is actually meant for such web apps,application that make heavy use of forms, have very high amount of user interaction etc. Hmm, PJE's PEAK might be worth having a look at: http://peak.telecommunity.com/ However, I'm

Re: The Industry choice

2005-01-01 Thread Nick Coghlan
Paul Rubin wrote: I don't see that big a problem. The current Python sorting routine operates on instances of class object and calls the __cmp__ method to do comparisons. Every class of sortable objects either defines a __cmp__ method or inherits one from some superclass, and sort calls those

Re: screen clear question

2005-01-01 Thread Craig Ringer
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 you mean clearing a terminal, you can call 'tput clear' or '/usr/bin/clear' on

Re: PEP 288 ponderings

2005-01-01 Thread Ian Bicking
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 like generator attributes don't really solve

Re: The Industry choice

2005-01-01 Thread Donn Cave
Quoth Paul Rubin http://[EMAIL PROTECTED]: | [EMAIL PROTECTED] writes: | Overall I agree with you and would like to have OPTIONAL static type | declarations in Python, as has often been discussed. But without | facilities for generic programming, such as templates in C++, static | type

Re: Frameworks for Non-Content Oriented Web Apps

2005-01-01 Thread Ian Bicking
[EMAIL PROTECTED] wrote: There are great Python Web Application Framework. But most of them are meant for content oriented web apps. 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

Re: Any Python XML Data Binding Utilities Avaiable?

2005-01-01 Thread Uche Ogbuji
Sounds like generateDS is closest to what you want: http://www.rexx.com/~dkuhlman/generateDS.html If you can bind from instances only and don't need schema, see Amara Bindery: http://uche.ogbuji.net/tech/4Suite/amara/ Also consider Gnosis Utilities and ElementTree. -- Uche Ogbuji

Re: screen clear question

2005-01-01 Thread Daniel Bickett
import os # windows os.system(cls) # bash ( mac, linux ) os.system(clear) That's all I can account for. Daniel Bickett -- http://mail.python.org/mailman/listinfo/python-list

Re: Frameworks for Non-Content Oriented Web Apps

2005-01-01 Thread Stephen Thorne
On 1 Jan 2005 20:51:06 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: But is there some sort of framework or something that is actually meant for such web apps,application that make heavy use of forms, have very high amount of user interaction etc. etc Yeah, nevow, by those crazy twisted

Re: The Industry choice

2005-01-01 Thread 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 interesting issues farther on downstream there, in the

Re: PEP 288 ponderings

2005-01-01 Thread Nick Coghlan
Ian Bicking wrote: Using a one-element list is kind of annoying, because it isn't clear out of context that it's just a way of creating shared state. But it's okay, work right now, and provides the exact same functionality. Uh, isn't shared state what classes were invented for? Py class

[ python-Bugs-1092502 ] Memory leak in socket.py on Mac OS X 10.3

2005-01-01 Thread SourceForge.net
Bugs item #1092502, was opened at 2004-12-28 21:09 Message generated for change (Comment added) made by etrepum You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1092502group_id=5470 Category: Python Library Group: Platform-specific Status: Open Resolution: