Nested loop

2005-11-29 Thread viewcharts
I am reading two text files comparing the values in one to the other, this requires two loops. The problem is that when the inner loop is finished, it never goes back into the loop. Any suggestions? for refSymbol in symbols.readlines(): for lookupSymbol in myfile.readlines(): showm

Help!!! On Tkinter Menu problem!!!

2005-11-29 Thread Xuening
I have a problem about menu by using Tkinter. I want to make a dynamic menu. That is when I create a new view/window, one menuitem will be added to the menu. and when I kill a window, the correponding menuitem will be deleted. I write a simple code and I can add menuitem now. But I don't know how t

Re: General question about Python design goals

2005-11-29 Thread bonono
Paul Rubin wrote: > Look at the list.count() example at the start of this thread. > Diagnosing it isn't hard. Curing it isn't hard. It doesn't bloat > Python by an order of magnitude. A suitably factored implementation > might handle lists and strings with the exact same code and not incur > an

Re: Death to tuples!

2005-11-29 Thread Nicola Larosa
> The new intended use is as an immutable sequence type, not a > "lightweight C struct". The new name to denote this new use - > following in the footsteps of the set type - is "frozenlist". The > changes to the implementation would be adding any non-mutating methods > of list to tuple, which appea

Re: Making immutable instances

2005-11-29 Thread bonono
Mike Meyer wrote: > The thing is, the need for an extra attribute doesn't come from your > class, it comes from the client of your class. You can't know if the > client code will need that facility or not, so the only choice you > know won't be wrong sometime is to always add the mixin. In which >

Re: General question about Python design goals

2005-11-29 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > > An awful lot of the time in this newsgroup, "practicality beats > > purity" translates as "the programmer can just be a lazy slob". > > You post that as if it were a bad thing. Yes. The idea of using a program that someone else wrote, is that they do th

Re: Making immutable instances

2005-11-29 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > Letting the class author declare whether or not the client can add > attributes is wrong for the same reasons - and in the same places - > that letting the class author declare that the client shouldn't be > allowed to access specific attributes, and so on,

Re: General question about Python design goals

2005-11-29 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> But a programming language (or UI) is not just a collection of syntax >> and and interfaces - it's an implementation. You need to keep in mind >> that "practicality beats purity". > An awful lot of the time i

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > >> Definitely not. The most recent change to the copyright laws made > >> works of music recorded to fullfill a contract "work for hire" by > >> default > The default applies if the contract doesn't say who owns the > work. This was a move by the recordi

Re: Making immutable instances

2005-11-29 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> When it was suggested that a facility for doing this be added to the >> language, I asked for a use case for it. Nobodies come up with a >> reason for placing such restriction on the client yet. If you've got

Re: General question about Python design goals

2005-11-29 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > But a programming language (or UI) is not just a collection of syntax > and and interfaces - it's an implementation. You need to keep in mind > that "practicality beats purity". An awful lot of the time in this newsgroup, "practicality beats purity" transl

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > Then probably the best licence to use is just to follow the lead of > Python. For that sort of small program of limited value, I put something > like this in the code: > > Copyright (c) 2005 Steven D'Aprano. > Released under the same license as used by

Re: sax.make_parser() segfaults

2005-11-29 Thread Frank Millman
Frank Millman wrote: > Hi all > > I am using Python 2.4.1. I have machines running FC4, RH9, and MSW > Server 2003 for testing. > > If I call sax.make_parser() from the interpreter or from a stand-alone > program, it works fine on all machines, but in the following setup it > works correctly on MS

Re: newbie question concerning formatted output

2005-11-29 Thread Bengt Richter
On Tue, 29 Nov 2005 17:40:08 GMT, Thomas Liesner <[EMAIL PROTECTED]> wrote: [...] >This is the codesnippet i am using: Sorry, I made no comment on your actual code. Some follows. > >#!/usr/bin/python > >import string I'm not seeing the need for importing string >inp = open("xyplan.nobreaks","r")

Re: Making immutable instances

2005-11-29 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > When it was suggested that a facility for doing this be added to the > language, I asked for a use case for it. Nobodies come up with a > reason for placing such restriction on the client yet. If you've got a > use case, I'd be interested in hearing it. I s

Re: Dive into Python PDF

2005-11-29 Thread Paul Rubin
"Franz Mueller" <[EMAIL PROTECTED]> writes: > is there a nicer looking version of the "Dive into Python" PDF? > The one from diveintopython.org looks horrible, much worse than the > web-version; also the images aren't where they should be. The one there looks ok to me, though I'm not sure what it'

Re: Dive into Python PDF

2005-11-29 Thread Steve M
You should buy the book in hardcopy, that one looks fine. -- http://mail.python.org/mailman/listinfo/python-list

Re: an intriguing wifi http server mystery...please help

2005-11-29 Thread Paul McNett
[EMAIL PROTECTED] wrote: > 1) > Laptop wired, client > Desktop wired, server > GREAT! > webpage served in 2 seconds > > 2) > Laptop wired, server > Deskop wired, client > GREAT! > webpage served in 2 seconds > > 3) > Laptop wireless, client > Desktop wireless, server > GREAT! > webpage served in

Re: newbie question concerning formatted output

2005-11-29 Thread Bengt Richter
On Tue, 29 Nov 2005 17:40:08 GMT, Thomas Liesner <[EMAIL PROTECTED]> wrote: >Hello all, > >i am having some hard time to format the output of my small script. I am >opening a file which containes just a very long string of hexdata >seperated by spaces. Using split() i can split this string into si

an intriguing wifi http server mystery...please help

2005-11-29 Thread jojoba
Hi, I hope this post is ok for this group. Here's my deal: I have two computers on my LAN at home. One desktop. One laptop. Both computers are wireless enabled (and wired enabled too). I have running a fairly simple HTTP server (written in python) that i can run on either computer. When the comp

Re: python number handling - tiny encryption algorithm

2005-11-29 Thread Paul Rubin
Kinsley Turner <[EMAIL PROTECTED]> writes: > In my version, I end up with hugely long integers, which have obviously > not be constrained into the 4-byte unsigned longs that TEA is expecting. Yeah, Python promotes to long int now. The simplest way to do the 32-bit arithmetic you need is probably

python number handling - tiny encryption algorithm

2005-11-29 Thread Kinsley Turner
Hey-ho, I'm getting a bit out of my depth porting the 'tiny encryption algorithm' from C to python. Ref: http://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm http://www.simonshepherd.supanet.com/source.htm#new_ansi Specifically I don;t know how to handle a C-long block and perform the math

Re: Computer Language Shootout

2005-11-29 Thread bonono
Bengt Richter wrote: > >Interestingly, I find this response quite compatible with the > >personality of this group. > Which "this"? ;-) > I meant his response. -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython : getting started

2005-11-29 Thread Peter Milliken
The book that Colin points out looks good - but not available until Jan 2006. When it comes out I might buy it - just out of curiosity :-) Personally I "bounced" when I attempted to learn wxPython - I found it much easier to learn and use Tkinter combined with Pmw. I really tried on the wxPython

Re: Computer Language Shootout

2005-11-29 Thread Bengt Richter
On 29 Nov 2005 18:34:34 -0800, [EMAIL PROTECTED] wrote: > >Bengt Richter wrote: >> On 29 Nov 2005 14:08:12 -0800, [EMAIL PROTECTED] wrote: >> >> >We don't scrape programs from news-groups, if you'd like the program to >> >be shown on the shootout then please attach the source code to a >> >tracker

improving pypi / setuptools

2005-11-29 Thread Alia Khouri
Due to a recent site overhaul by sourceforge certain files linked to from pypi won't install. For example, in trying to install all the dependencies for the subway web framework, I got this kind of error: . . . Searching for CherryPy>=2.1.0-rc1 Reading http://www.python.org/pypi/CherryPy/ Reading

Re: Precision for equality of two floats?

2005-11-29 Thread Dan Sommers
On Tue, 29 Nov 2005 14:31:46 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: > On Mon, 28 Nov 2005 07:58:37 -0800, [EMAIL PROTECTED] (Alex Martelli) wrote: >> Python's builtin floats compare for exact bit-by-bit equality -- no >> "threshold". You may want to look at the allclose function in the >

Re: Newbie question: Tab key giving different output

2005-11-29 Thread Kaizer
HI there Tim! I've been using your suggestion every since I've been having this issue. I realized exactly what you said...that a space works just as well Thanks! Kaizer. -- http://mail.python.org/mailman/listinfo/python-list

Re: python speed

2005-11-29 Thread [EMAIL PROTECTED]
Krystian wrote: > Hi > > >>are there any future perspectives for Python to be as fast as java? i > >>would like to use Python as a language for writing games. > > > >Why would we want Python to be as fast as Java when it's already faster? > > hm... i came across this site: > http://shootout.alioth.

Re: wxPython Licence vs GPL

2005-11-29 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > > if I owned a company making profit on software sales (sale =! > > support) you sign a death wish for using GPL > > Apart from Microsoft, and possibly Quark (makers of Quark Express desktop > packaging software), and perhaps a few console game develop

Re: Computer Language Shootout

2005-11-29 Thread bonono
Bengt Richter wrote: > On 29 Nov 2005 14:08:12 -0800, [EMAIL PROTECTED] wrote: > > >We don't scrape programs from news-groups, if you'd like the program to > >be shown on the shootout then please attach the source code to a > >tracker item. > You asked for something, got a response, and then you h

Re: run runs away

2005-11-29 Thread Nx
Thanks for your reply ! I now realize , that the run() used in this code stems from a def , which actually wraps os.spawnv(os.P_WAIT, ...) in a way that eliminates waiting I like this newsgroup as there are always people who are less stumped than oneself. Nx -- http://mail.python.org/mailma

Re: newbie question concerning formatted output

2005-11-29 Thread Scott David Daniels
Thomas Liesner wrote: > ... i want to print always three of them in a single line and > after that a linebreak. How about: def emit(aFile): for line in aFile: for word in line.split(): yield word f = open('xyplan.nobreaks', 'r') gen = iter(

Re: How to write an API for a Python application?

2005-11-29 Thread Alex Martelli
Cameron Laird <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Alex Martelli <[EMAIL PROTECTED]> wrote: > . > >Yeah, O'Reilly tools have this delightful penchant for inserting a space > >between two adjacent underscores, drives me crazy:-(. > > > >Alex > > Do m

Re: Computer Language Shootout

2005-11-29 Thread Bengt Richter
On 29 Nov 2005 14:08:12 -0800, [EMAIL PROTECTED] wrote: >We don't scrape programs from news-groups, if you'd like the program to >be shown on the shootout then please attach the source code to a >tracker item. You asked for something, got a response, and then you haughtily[1] declare that it's not

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
Bugs wrote: > So Paul, are you saying there's a bug with the wxGrid control and if so, Yes, I think it is a bug. > do you know if there's been a bug-report submitted to the wxWidgets > and/or wxPython folks? I don't know, but I've been meaning to check. > Or is this just the way the wxGrid

python & Tkinter - library loading failure in linux

2005-11-29 Thread Venky
When I do 'import Tkinter', I get the ImportError: "libtk.so.0: cannot open shared object file: No such file or directory" I work around the issue by creating a softlink libtk.so.0 in the current directory to /usr/lib/libtk8.3.so and then updating env variable LD_LIBRARY_PATH to the current dir

Re: 3d Transformation

2005-11-29 Thread Mike C. Fletcher
Tyler Eaves wrote: >Got a 3d algorithmns question. Algorithmn will be implemented in python, >so a library would be great if it works on windows. Basically my function >would be defined as such. > >Problem is one of coordinate transformation. Give a 3d vector, which >reprents the +z axis in

Re: wxGrid and Focus Event

2005-11-29 Thread Bugs
So Paul, are you saying there's a bug with the wxGrid control and if so, do you know if there's been a bug-report submitted to the wxWidgets and/or wxPython folks? Or is this just the way the wxGrid control works? Thanks! Paul McNett wrote: > Not so fast. I've found out that I had to do the fol

Re: Update the sorting mini-howto

2005-11-29 Thread Andrew Dalke
I wrote: > Years ago I wrote the Sorting mini-howto, currently at > > http://www.amk.ca/python/howto/sorting/sorting.html Thanks to amk it's now on the Wiki at http://wiki.python.org/moin/HowTo/Sorting so feel free to update it directly. Andrew

Re: python speed

2005-11-29 Thread Krystian
Hi >>are there any future perspectives for Python to be as fast as java? i >>would like to use Python as a language for writing games. > >Why would we want Python to be as fast as Java when it's already faster? hm... i came across this site: http://shootout.alioth.debian.org/benchmark.php?test=al

3d Transformation

2005-11-29 Thread Tyler Eaves
Got a 3d algorithmns question. Algorithmn will be implemented in python, so a library would be great if it works on windows. Basically my function would be defined as such. Problem is one of coordinate transformation. Give a 3d vector, which reprents the +z axis in the source coordinate syst

Re: python speed

2005-11-29 Thread Aahz
In article <[EMAIL PROTECTED]>, Krystian <[EMAIL PROTECTED]> wrote: > >are there any future perspectives for Python to be as fast as java? i >would like to use Python as a language for writing games. Why would we want Python to be as fast as Java when it's already faster? Take a look at PyGame.

python speed

2005-11-29 Thread Krystian
Hi are there any future perspectives for Python to be as fast as java? i would like to use Python as a language for writing games. best regards krystian -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Oracle 9i client for Linux

2005-11-29 Thread Andy Leszczynski
Bernard Delmée wrote: > Look into the Oracle Instant Client: > > (might require a -free- OTN registration) It is version 10, would it be compatible with 9i servers? > Be sure to download the smallish "sdk" if you want

Re: wxPython : getting started

2005-11-29 Thread hrh1818
One possible source of help is the book "Python Programming on Win 32". It has a 20 page introducrtion on using wxPython. Howard David Sulc wrote: > Hi ! > > I've looked all over (internet, books, etc.) and I haven't found a very > good ressource to get started with wxPython (yes, I've been thr

Dive into Python PDF

2005-11-29 Thread Franz Mueller
Hi there, is there a nicer looking version of the "Dive into Python" PDF? The one from diveintopython.org looks horrible, much worse than the web-version; also the images aren't where they should be. Has anybody tried to create a nice looking version? Maybe using dblatex or something similar? (I

Re: Why are there no ordered dictionaries?

2005-11-29 Thread Bengt Richter
On Tue, 29 Nov 2005 23:30:45 +0100, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: >I had the same idea to create a py.test to verify and compare various >implementations. The doctests in odict.py are nice, but you can't use >them for this purpose and they may not test enough. It would be also

Re: windows paging Q

2005-11-29 Thread Neil Hodgson
Gerry Blais: > My program has a memory usage of 30 MB according to the task manager, > and is doing 1000+ page faults / second (page fault delta, high speed > refresh rate). > > With memory available, any idea why I'm paging so much, and what I > might do about it? Many page faults are sof

Re: [OT] Oracle 9i client for Linux

2005-11-29 Thread Bernard Delmée
Andy Leszczynski wrote: > Where can I find such? I can download from Oracle whole thing but no the > client itself. Look into the Oracle Instant Client: (might require a -free- OTN registration) Be sure to download the

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Robert Kern <[EMAIL PROTECTED]> writes: > This is the current URL: > http://creativecommons.org/licenses/publicdomain/ Thanks, yeah, I remember seeing that, which is what made me say that CC recognized PD dedications (at least in the US--it's unreasonable to expect to account for every weird law

Re: Looking for good beginner's tutorial

2005-11-29 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Kent Johnson <[EMAIL PROTECTED]> wrote: > Roy Smith wrote: > > My wife wants to learn Python. Can anybody suggest a good tutorial > > for her to read? She's a PhD molecular biologist who is a pretty > > advanced Unix user. She mucks about with Perl scripts doing

Re: ncurses' Dark Devilry

2005-11-29 Thread Mike Meyer
Jeremy Moles <[EMAIL PROTECTED]> writes: > Basically what I'm looking for is a way to refresh a portion of a > curses-controlled "window" without affecting the current location of the > cursor or having to manually move it and move it back. Have you looked into using curses window feature?

[OT] Oracle 9i client for Linux

2005-11-29 Thread Andy Leszczynski
Where can I find such? I can download from Oracle whole thing but no the client itself. Any insight? Thanks, A. -- http://mail.python.org/mailman/listinfo/python-list

Re: Which License Should I Use?

2005-11-29 Thread Robert Kern
Paul Rubin wrote: > Paul Rubin writes: > >>>Lessig isn't sure. E.g. http://www.lessig.org/blog/archives/001066.shtml >> >>Hmm, interesting, thanks. > > Bah, the CC link from there leads to a Zope crash (at least right now): > > http://creativecommons.org/license/public

Re: Looking for good beginner's tutorial

2005-11-29 Thread Kent Johnson
Roy Smith wrote: > My wife wants to learn Python. Can anybody suggest a good tutorial > for her to read? She's a PhD molecular biologist who is a pretty > advanced Unix user. She mucks about with Perl scripts doing things > like text processing and even some simple CGI scripts, but has no > form

Re: Which License Should I Use?

2005-11-29 Thread Mike Meyer
"Andrew Koenig" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Definitely not. The most recent change to the copyright laws made >> works of music recorded to fullfill a contract "work for hire" by >> default. > If there's a contract --

Re: ncurses' Dark Devilry

2005-11-29 Thread Grant Edwards
On 2005-11-29, Greg Ewing <[EMAIL PROTECTED]> wrote: > Christopher Subich wrote: > >> Why not wrap your 1-3 in a function of your own? > > It sounds like the OP is concerned about the visual effect of > the cursor moving on the screen while characters are written. > > I doubt whether curses provide

Re: Death to tuples!

2005-11-29 Thread Mike Meyer
Duncan Booth <[EMAIL PROTECTED]> writes: > Dan Bishop wrote: >>> Is there any place in the language that still requires tuples instead >>> of sequences, except for use as dictionary keys? >> >> The % operator for strings. And in argument lists. >> >> def __setitem__(self, (row, column), value):

Problem with the maxent package

2005-11-29 Thread Anthony Liu
First of all, thank all of you who guided me through the readline library for enabling bash-like python interpreter. This has been taken care of nicely. I am trying to use the maxent package written by Zhang Le from here: http://homepages.inf.ed.ac.uk/s0450736/maxent_toolkit.html#download The b

Re: ncurses' Dark Devilry

2005-11-29 Thread Greg Ewing
Christopher Subich wrote: > Why not wrap your 1-3 in a function of your own? It sounds like the OP is concerned about the visual effect of the cursor moving on the screen while characters are written. I doubt whether curses provides any way of controlling that. Curses was designed for glass ttys

windows paging Q

2005-11-29 Thread Gerry Blais
I'm running a Python program (1000 by 1000 grid, all source shortest path, running time currently in days) in Python 2.4 under XP. System memory usage according to the task manager is steady at 500 MB out of 1 GB physical memory. My program has a memory usage of 30 MB according to the task m

Re: Compiling Guppy-PE extension modules

2005-11-29 Thread Dave Hansen
On 29 Nov 2005 11:53:31 -0800 in comp.lang.python, "Sverker Nilsson" <[EMAIL PROTECTED]> wrote: [...] >One of the problems, seems to be string constants in the C source that >contain newlines. I am using GCC on Linux so, I missed this with the I'm not sure what you mean by this. Something like

Re: xpath support in python 2.4

2005-11-29 Thread jay graves
Fredrik Lundh wrote: > sounds like you've installed > http://pyxml.sourceforge.net/ > on one of your machines, but not on the other. or ActiveState Python on one and python.org Python on the other??? Just a guess. No STFWing was done before posting this message. ;-) -- http://mail.python.or

Re: New Ordered Dictionery to Criticise

2005-11-29 Thread Martin v. Löwis
Fuzzyman wrote: >>- One problem with the FancyDict is that it allows >> d.keys.append(100) > > > Are you sure ? Not at all. This was from inspection only; I propably misinterpreted the code. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Paul Rubin writes: > > Lessig isn't sure. E.g. http://www.lessig.org/blog/archives/001066.shtml > Hmm, interesting, thanks. Bah, the CC link from there leads to a Zope crash (at least right now): http://creativecommons.org/license/publicdomain-direct KeyError S

Re: Which License Should I Use?

2005-11-29 Thread Paul Rubin
Robert Kern <[EMAIL PROTECTED]> writes: > Is that why the CC Public Domain Dedication has the subtitle > "Copyright-Only Dedication (based on United States law) or Public Domain > Certification"? > > Lessig isn't sure. E.g. http://www.lessig.org/blog/archives/001066.shtml Hmm, interesting, thanks

Update the sorting mini-howto

2005-11-29 Thread Andrew Dalke
Years ago I wrote the Sorting mini-howto, currently at http://www.amk.ca/python/howto/sorting/sorting.html I've had various people thank me for that, in person and through email. It's rather out of date now given the decorate-sort-undecorate option and 'sorted' functions in Python 2.4. Hmmm,

Re: Why are there no ordered dictionaries?

2005-11-29 Thread Christoph Zwerschke
I had the same idea to create a py.test to verify and compare various implementations. The doctests in odict.py are nice, but you can't use them for this purpose and they may not test enough. It would be also good to have something for testing and comparing performance. -- Christoph -- http://

Re: xpath support in python 2.4

2005-11-29 Thread uche . ogbuji
"And80": "Is [the xml.xpath module] still part of the standard library?" Alan Kennedy: "No, it's not. Not sure if it ever was. " It never was. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.nethttp://fourthought.com http://copia.ogbuji.net

Re: General question about Python design goals

2005-11-29 Thread Christoph Zwerschke
Fredrik Lundh wrote: > on the other hand, it's also possible that there are perfectly usable ways > to keep bikes and bike seats dry where Christoph works, but that he prefers > not to use them because they're violating some design rule. Depends on how you understand "perfectly usable." My collegu

Re: Looking for good beginner's tutorial

2005-11-29 Thread BartlebyScrivener
It's deja vu all over again. If the link breaks, search the group non-programming tutorial http://groups.google.com/group/comp.lang.python/browse_frm/thread/4b7a01e1feb128fa/a6b51baa0ca01c19?q=fehily+&rnum=10#a6b51baa0ca01c19 Good luck bs Roy Smith wrote: > My wife wants to learn Python. Can a

Re: Computer Language Shootout

2005-11-29 Thread igouy
We don't scrape programs from news-groups, if you'd like the program to be shown on the shootout then please attach the source code to a tracker item. Please follow the FAQ instructions http://shootout.alioth.debian.org/faq.php#contribute [EMAIL PROTECTED] wrote: > This is a direct translation o

Re: unicode speed

2005-11-29 Thread jepler
On Tue, Nov 29, 2005 at 09:48:15AM +0100, David Siroky wrote: > Hi! > > I need to enlighten myself in Python unicode speed and implementation. > > My platform is AMD [EMAIL PROTECTED] (x86-32), Debian, Python 2.4. > > First a simple example (and time results): > > x = "a"*5000 > real0m0

Re: Which License Should I Use?

2005-11-29 Thread Aahz
In article <[EMAIL PROTECTED]>, Robert Kern <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> In article <[EMAIL PROTECTED]>, >> Robert Kern <[EMAIL PROTECTED]> wrote: >>> >>>Don't listen to schmucks on USENET when making legal decisions. Hire >>>yourself a competent schmuck. >> >> Mind if I .sig this

Re: Which License Should I Use?

2005-11-29 Thread Robert Kern
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Robert Kern <[EMAIL PROTECTED]> wrote: > >>Don't listen to schmucks on USENET when making legal decisions. Hire >>yourself a competent schmuck. > > Mind if I .sig this? How would you like to be attributed? Please do. "USENET schmuck" is a suffici

Python Application Servers

2005-11-29 Thread Yaswanth Narvaneni
Hi! I am a newbie and I have just started working on Python. I am planning to develop a web-based 1v1 game in flash and would like to use python as a back end for the game. I am an experienced programmer/web programmer, so I have no probs learning a new language from scratch and ppl tell me that P

Re: ncurses' Dark Devilry

2005-11-29 Thread Christopher Subich
Jeremy Moles wrote: >>In article <[EMAIL PROTECTED]>, >> Jeremy Moles <[EMAIL PROTECTED]> wrote: >>>I have a focus "wheel" of sorts that allows the user to do input on >>>various wigets and windows and whatnot. However, if I want to quickly >>>call addstr somewhere else in the application I have to

Unifying Attributes and Names (was: Re: Death to tuples!)

2005-11-29 Thread Christopher Subich
Bengt Richter wrote: > If we had a way to effect an override of a specific instance's attribute accesses > to make certain attribute names act as if they were defined in type(instance), and > if we could do this with function instances, and if function local accesses would > check if names were on

Re: Computer Language Shootout

2005-11-29 Thread bearophileHUGS
This is a direct translation of the D code, maybe it's not the faster Python implementation, and surely it's not the shorter one. But Psyco makes it much faster (Psyco likes "low level" style code). ShedSkink is (almost) able to compile it too, producing a really fast executable (with some "smart a

Re: Which License Should I Use?

2005-11-29 Thread Aahz
In article <[EMAIL PROTECTED]>, Robert Kern <[EMAIL PROTECTED]> wrote: > >Don't listen to schmucks on USENET when making legal decisions. Hire >yourself a competent schmuck. Mind if I .sig this? How would you like to be attributed? -- Aahz ([EMAIL PROTECTED]) <*> http://www.py

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
lux wrote: > TANKS!!! > Now it work!!! Not so fast. I've found out that I had to do the following ugly workaround to ensure it works in all cases: def _initEvents(self): ... if self.BaseClass.__name__ == "dGrid": ## Ugly workaround for grids not firing focus event

problem with

2005-11-29 Thread YongYong Li
Recently I got problem on final distributed software in python. In my program, I have C code which import module in python. But when I install my software on another computer which is not installed whole python23 but part of it, I have problem in running the program. The module is simple as I imp

Re: Web functions idea

2005-11-29 Thread Larry Bates
The client software can be written in JavaScript that makes xmlrpc calls to the server (AJAX). That way there is no installation required. But there are loads of free, debugged mailing list programs out there that use email as the interface. You should take a look there first. -Larry Bates Mar

Computer Language Shootout

2005-11-29 Thread igouy
We don't have Python implementations for one program, and a couple of the Python programs we do have show Error. http://shootout.alioth.debian.org/benchmark.php?test=all&lang=python&lang2=python Please contribute missing Python programs or faster more-elegant Python programs. Please follow the

Re: Which License Should I Use?

2005-11-29 Thread Robert Kern
Paul Rubin wrote: > Robert Kern <[EMAIL PROTECTED]> writes: > >>It's a draft, but it contains useful information. Also, Larry Rosen's >>book _Open Source Licensing_ is quite helpful (and free!). >> >> http://rosenlaw.com/oslbook.htm > > That is the guy who claims it is impossible to release anyt

Re: ncurses' Dark Devilry

2005-11-29 Thread Jeremy Moles
On Tue, 2005-11-29 at 20:50 +, Tony Nelson wrote: > In article <[EMAIL PROTECTED]>, > Jeremy Moles <[EMAIL PROTECTED]> wrote: > > > I'm working on a project using ncurses w/ Python. As an aside, I > > implemented addchstr in the cursesmodule.c file in Python SVN, if anyone > > wants me to try

Re: wxGrid and Focus Event

2005-11-29 Thread lux
TANKS!!! Now it work!!! Luca -- http://mail.python.org/mailman/listinfo/python-list

Looking for good beginner's tutorial

2005-11-29 Thread Roy Smith
My wife wants to learn Python. Can anybody suggest a good tutorial for her to read? She's a PhD molecular biologist who is a pretty advanced Unix user. She mucks about with Perl scripts doing things like text processing and even some simple CGI scripts, but has no formal programming training. I

Re: CGI question

2005-11-29 Thread Istvan Albert
See urlparse: http://www.python.org/doc/current/lib/module-urlparse.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Which License Should I Use?

2005-11-29 Thread Robert Kern
Andrew Koenig wrote: > "Robert Kern" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Andrew Koenig wrote: > >>>I'm pretty sure that there was a change to the copyright laws a few years >>>ago (perhaps as part of the DMCA), that made it clear that you own >>>everything you produ

Re: wxPython : getting started

2005-11-29 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, David Sulc <[EMAIL PROTECTED]> wrote: > Hi ! > > I've looked all over (internet, books, etc.) and I haven't found a very > good ressource to get started with wxPython (yes, I've been through > their tutorial). > > What I would basically like to do for starters

Re: unicode speed

2005-11-29 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, David Siroky <[EMAIL PROTECTED]> wrote: > Hi! > > I need to enlighten myself in Python unicode speed and implementation. > > My platform is AMD [EMAIL PROTECTED] (x86-32), Debian, Python 2.4. > > First a simple example (and time results): > > x = "a"*5000 >

Re: ncurses' Dark Devilry

2005-11-29 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, Jeremy Moles <[EMAIL PROTECTED]> wrote: > I'm working on a project using ncurses w/ Python. As an aside, I > implemented addchstr in the cursesmodule.c file in Python SVN, if anyone > wants me to try and get that made permanent. > > AT ANY RATE... > > I was wonde

Re: newbie question concerning formatted output

2005-11-29 Thread dwelch
Thomas Liesner wrote: > Hello all, > > i am having some hard time to format the output of my small script. I am > opening a file which containes just a very long string of hexdata > seperated by spaces. Using split() i can split this string into single > words and print them on stdout. So far so g

Re: XMLSchema Parsing

2005-11-29 Thread uche . ogbuji
km wrote: > i'd like to know if there are any good XMLSchema (.xsd files) parsing modules > in python. > regards, Parse and do what? You can parse WXS (a.k.a. XSD) with any XML parser out there. Anyway, off-head, Python tools that handle WXS, to some extent: xsv libxml2/Python lxml generateDS.

Re: wxGrid and Focus Event

2005-11-29 Thread Paul McNett
lux wrote: > Can you try this code? Sure, thanks for posting it! > If you press only the TAB key > the focus go from the TextCtrl to the Grid (I suppose) > but onGridFocus in not called. Confirmed, at least on Gtk. > any idea? Yep, the grid is actually a collection of subwindows, and I made

Re: CGI question

2005-11-29 Thread Dan Stromberg
On Sat, 26 Nov 2005 13:26:11 +0100, Fredrik Lundh wrote: > Dan Stromberg wrote: > >> What's the best way of converting this: >> >> 'hide\\?http://www.dedasys.com/articles/programming_language_economics.html\x012005-07-20 >> 14:48' >> >> ...to something easily usable in a python CGI script? > > e

Re: Compiling Guppy-PE extension modules

2005-11-29 Thread Claudio Grondi
"Sverker Nilsson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I have been informed that Guppy-PE (http://guppy-pe.sourceforge.net) > has failed to compile its extension modules with a Microsoft .NET 2003 > compiler under Windows 2000. > > [To the person who informed me abou

Re: Web functions idea

2005-11-29 Thread Mark Carter
bruno at modulix wrote: > Mark Carter wrote: > Congratulations, you've just rediscovered REST !-) Huzzah! > Turbogears is probably what you're looking for (if not quite what you > describe). Thanks. It looks quite interesting. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >