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

Re: what is lambda used for in real code?

2005-01-01 Thread Alex Martelli
Terry Reedy <[EMAIL PROTECTED]> wrote: > "Adam DePrince" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > 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

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 da

Re: what is lambda used for in real code?

2005-01-01 Thread Duncan Booth
Diez B. Roggisch wrote: > The doc string of _s_item contains a token the metaclass is aware of and > creates a wrapper around _s_item. That works nice on methods, but I found > that properties got bound to their functions _before_ the metaclass kicks > in, so the property wasn't called in the wrap

pickling a subclass of tuple

2005-01-01 Thread fedor
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? Thanks , Fedor #!/usr/bin/env python import pickle class A(tuple): def __new__(klass, a

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,

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 ef

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 details

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 himsel

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

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 com

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

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 mx

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 w

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 $6.0

Re: The Industry choice

2005-01-01 Thread Cameron Laird
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 used as

Publish your program for free and enjoy worry free earning. 100% FREE (AND WE MEAN IT - FREE)

2005-01-01 Thread DohnoSoft
Dear software developer!!! If you have some program or utility that you think may be interesting to somebody else, go ahead and submit it to www.DohnoSoft.com This is 100% FREE!!! and DohnoSoft will take care of all issues related to sales, payments and customer support. You will just enjoy wo

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 from

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 pickl

Re: os.path.islink()

2005-01-01 Thread Denis S. Otkidach
On Wed, 08 Dec 2004 20:42:09 +1000 "Egor Bolonev" <[EMAIL PROTECTED]> wrote: > i want to detect "'s" Junctions are just mount points, not symbolic links. Dunno how to detect them in Windows. http://support.microsoft.com/default.aspx?scid=kb;en-us;205524 -- Denis S. Otkidach http://www.python.r

Re: lies about OOP

2005-01-01 Thread Eric Pederson
> From: "Jive" <[EMAIL PROTECTED]> wrote: > Just how old *is* his school? I saw the light in the 70's. For those > of > you too young to remember, those were menacing and sinister days, when > pant > legs were too wide at the bottom, and the grotesque evil of "top down > programming" was on t

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

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 system

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 w

python-dev Summary for 2004-10-16 through 2004-10-31

2005-01-01 Thread Brett C.
This is a summary of traffic on the `python-dev mailing list`_ from October 16, 2004 through October 31, 2004. It is intended to inform the wider Python community of on-going developments on the list. To comment on anything mentioned here, just post to `comp.lang.python`_ (or email python-lis

Re: what is lambda used for in real code?

2005-01-01 Thread Steve Holden
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 anonymous type how, exactly? regards Steve -- Steve Holden

Re: The Industry choice

2005-01-01 Thread Steve Holden
Paul Rubin wrote: [...] There's lots of times when I have a cool programming idea, and find when I sit down at the computer that I can implement the main points of the idea and get a neat demo running rather quickly. That creates a very happy, liberating feeling, plus gives me something to show of

Re: The Industry choice

2005-01-01 Thread Steve Holden
Paul Rubin wrote: [...] There's lots of times when I have a cool programming idea, and find when I sit down at the computer that I can implement the main points of the idea and get a neat demo running rather quickly. That creates a very happy, liberating feeling, plus gives me something to show of

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 "nati

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

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 K

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

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 an

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 Donn Cave
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 | largely psychologica

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

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

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 printe

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,

Re: Python equivalent of script(1)

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

Re: Which blog tool

2005-01-01 Thread Daniel Bickett
There's actually a very simple way to achieve this. In your blogger settings you can specify an email address to which you can email blog posts. Using this, you can simply mail the content from within your python script. I think that's probably the most hassle-free way. Blogger help article: http:

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 fee

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

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 f

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

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

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: Looping using iterators with fractional values

2005-01-01 Thread Mike Meyer
"drife" <[EMAIL PROTECTED]> writes: > 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) { > pri

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

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 th

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 -- http://mail.python.org/mailman/listinfo/pytho

Re: What can I do with Python ??

2005-01-01 Thread Mark Nenadov
What can you do with Python? Just about anything your heart desires. How hard is Python to learn? I'd say it is near the top of the barrel when it comes to being easy to learn. I'd certainly say that for the most part, you will learn Python much faster than you would learn C#. Can you make a full

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

Readline configuration

2005-01-01 Thread Mark Roach
I have readline set up pretty much the same way as in the example in the python docs (http://docs.python.org/lib/readline-example.html) and something I find myself doing fairly often is type some code more code more code ... and then wanting to scroll back through the history to run t

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 whe

Re: What can I do with Python ??

2005-01-01 Thread Reinhold Birkenfeld
BOOGIEMAN wrote: > 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 For fullscreen games, s

Re: Securing a future for anonymous functions in Python

2005-01-01 Thread Simo Melenius
[EMAIL PROTECTED] (Bengt Richter) writes: > ISTM you don't need "end" -- just put the def expression in parens, > and let the closing paren end it, e.g.: I first rejected any parens as not being native to how classes/toplevel functions/control blocks are written in Python. However, this looks qui

UserDict deprecated

2005-01-01 Thread Uwe Mayer
Hi, 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. If I used UserDict I would not need to specify all methods UserDict provides alreay, anyway. Ciao Uwe -- http://mail.

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

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 http://ze

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

2005-01-01 Thread Bo Peng
Scott David Daniels wrote: Python's array module is not built to do this well. It can re-size the array, delete elements inside the array, and other things that don't work very well with C-managed data. I wrote "blocks and views" to overcome this problem. As always the case, this problem have b

Re: UserDict deprecated

2005-01-01 Thread Uwe Mayer
Saturday 01 January 2005 22:48 pm Hans Nowak wrote: > 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

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 f

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 prett

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 call

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 de

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 to

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 pr

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 variab

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 Pytho

Re: The Industry choice

2005-01-01 Thread beliavsky
Paul Rubin wrote: >I don't find static type declarations to have much cost. It's just a >few more keystrokes. I'm open to persuasion about whether they have >benefit. Overall I agree with you and would like to have OPTIONAL static type declarations in Python, as has often been discussed. But witho

Re: what would you like to see in a 2nd edition Nutshell?

2005-01-01 Thread Bryan
Nick Coghlan wrote: JoeG wrote: wxPython takes on more of the native platform's interface. I say seems to because I haven't actually written any code with it. While Tkinter is the GUI toolkit shipped *with* Python, then that's the correct toolkit for Alex to cover in PiaN. Mentioning other toolk

Re: The Industry choice

2005-01-01 Thread Alan Gauld
On Sat, 01 Jan 2005 16:08:07 GMT, [EMAIL PROTECTED] (Cameron Laird) wrote: > I argue that it's a false opposition to categorize projects in > terms of use of single languages. Many projects are MUCH better > off with a mix In practice I have *never* worked on an industrial scale project that on

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

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 Aahz
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 >lower-l

Re: What can I do with Python ??

2005-01-01 Thread Brian Beck
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 zillion useful links. The Python Books link takes you t

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

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 f

Re: Jython & IronPython Under Active Development?

2005-01-01 Thread not [quite] more i squared
Simon John a écrit : jython just had a new and (thus) secret afaik release -- http://mail.python.org/mailman/listinfo/python-list

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 cleanly

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 there

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 f

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 wo

Re: Approximating scattered data

2005-01-01 Thread Grant Edwards
On 2005-01-02, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>However, I can't find anything usable from Python, and my >>Fortram skills are pretty rusty. I tried SciPy, but it's spline >>fitting module doesn't work at all for my data. I've found >>mentions of a Python port NURBS toolbox, but all

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, "dBa

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

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 t

  1   2   >