Re: Force Focus in Tkinter

2005-12-06 Thread Martin Franklin
annagel wrote: > Thanks for the reply and as it turns out no I don't think I really do > want to do this. I started working with tkinter after banging my head > against the wall for a while with wxwindows so the whole thing ended up > being a last minute change so I am trying to get most at least

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2005-12-06 Thread Erik Max Francis
Jon Perez wrote: > Actually, I think Xah often has a point, except he can't > seem to express it without resorting to profanity and > a controlled manner, thus giving the impression he's a > troll. > > Also, he seems to be blissfully unaware of the concept > of netiquette. ;-) His "points" have

Re: JPEG decoder not available in PIL

2005-12-06 Thread Fredrik Lundh
"Peter" wrote: > At the last moment I managed to solve this problem and I hope it is > worth supplying the details here. First there is a file in the install > directory libImaging/Jpeg.h which has a line: > > #include "jpeglib.h" > > but there is no such header file. On my system I put: > >

Re: ANN: pygene - genetic algorithms package

2005-12-06 Thread Erik Max Francis
Peter Hansen wrote: > Okay, good, I already knew all that then, except perhaps that key word > "fixed". > > Perhaps I've long been using the wrong label, but I've been doing what > I've considered to be "genetic algorithms" and yet working with > sometimes variable amounts of sometimes heterog

Re: Force Focus in Tkinter

2005-12-06 Thread annagel
Thanks for the reply and as it turns out no I don't think I really do want to do this. I started working with tkinter after banging my head against the wall for a while with wxwindows so the whole thing ended up being a last minute change so I am trying to get most at least of the bugs out on a ti

Re: Xah's Edu Corner: Examples of Quality Technical Writing

2005-12-06 Thread Jon Perez
Sherm Pendley wrote: > Xah's a pretty well-known troll in these parts. I suppose he thinks someone > is going to take the bait and rush to "defend" the other languages or some > such nonsense. Actually, I think Xah often has a point, except he can't seem to express it without resorting to profani

Re: Learning Python...

2005-12-06 Thread David Van Mosselbeen
Falc wrote: > Hi there... > > I have been looking at learning Python, so far it looks like an > absolutely grat language. I am having trouble finding some free > resources to learn Python from. I am on windows and the only experience > I have with programming is with PHP. > > I have been trying

Re: JPEG decoder not available in PIL

2005-12-06 Thread Heiko Wundram
Peter wrote: > At the last moment I managed to solve this problem and I hope it is > worth supplying the details here. First there is a file in the install > directory libImaging/Jpeg.h which has a line: > > #include "jpeglib.h" > > but there is no such header file. On my system I put: > >

Re: dynamic variable referencing

2005-12-06 Thread Heiko Wundram
Michael Williams wrote: > - I don't want to say OBJECT.VAR but rather OBJECT. > ("string") and have it retrieve the variable (not the value of > it) if in fact it exists. . . > > > It's not exactly clear what you're trying to tell us here. Basically, what I guess you want is:

Re: ANN: pygene - genetic algorithms package

2005-12-06 Thread Peter Hansen
Erik Max Francis wrote: > You're not replying to me, but I'm the one that elicited that comment. > (I was originally asking the question because I misinterpreted the first > sentence of his announcement about pygene to mean that pygene was a > genetic programming system, but that was never his c

Re: Documentation suggestions

2005-12-06 Thread Rhamphoryncus
A.M. Kuchling wrote: > Here are some thoughts on reorganizing Python's documentation, with > one big suggestion. Throwing in my own 2¢.. I think the language reference should be disseminated into the rest of the documentation. Some of the stuff (operator precedence anybody?) could be done directl

WindowsXP development using msvc .net 2003

2005-12-06 Thread Michael O'Brien
Hola~ I'm developing a c++ library that contains python types and methods on Windows using MSVC .net 2003 and g++ on Linux. To compile on Linux, I just compile and I can use a debug compiled version of my plugin in a vanilla python interpreter. On Windows, it seems like you have to compile a cust

Re: Wrapping method calls with metaclasses

2005-12-06 Thread Alex Martelli
Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > I've never used metaclasses in real life before and while searching through > the online Cookbook I found this gorgeous example: > > "Wrapping method calls (meta-class example)" > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/198078 > > Wha

Re: Python 2.4.2 make failure in posixmodule on OSX 10.4.3

2005-12-06 Thread smurphus
Yes, it looks like I was missing the necessary headers. Once I replaced them, it has been smooth sailing. Thank you for your assitance, Martin. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unexpected behavior of read only attributes and super

2005-12-06 Thread Steven Bethard
Samuel M. Smith wrote: > The dict class has some read only attributes that generate an exception > if I try to assign a value to them. > I wanted to trap for this exception in a subclass using super but it > doesn't happen. > > class SD(dict): >pass > [snip] > s = SD() > super(SD,s).__set

iewin.IEHtmlWindow shutil.move conflict

2005-12-06 Thread Todd7
I am writing a python program to load a pdf file into an IEHtmlWindow which displays it through adobe acrobat reader 7. Depending on the buttons the user clicks, the program moves it to another subdirectory with a new name. I am using python 2.4 with wxpython 2.6 on a windowsxp machine. I en

Re: join dictionaries using keys from one & values

2005-12-06 Thread ProvoWallis
Thanks again. This is very helpful. -- http://mail.python.org/mailman/listinfo/python-list

Re: Output: Number of digits in exponent?

2005-12-06 Thread Paul Rubin
Jens Bloch Helmers <[EMAIL PROTECTED]> writes: > How can I control the number of digits in the exponent when writing > floats to a file? It seems that Python2.4.2(winXP) prints three > digits anyway. > > >>> print 1.0e50 > 1e+050 That's weird; must be version and/or OS dependent. On Fedora Core

Re: Documentation suggestions

2005-12-06 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > I proposed a documentation sprint for PyCon a couple of years ago, but > nobody thought it was important enough to work on. It would be a good > idea next year, too. IMO this should definitely be done. That nobody thought docs were important enough to wo

Re: Bitching about the documentation...

2005-12-06 Thread Paul Rubin
François Pinard <[EMAIL PROTECTED]> writes: > > You may suggest that I should process my e-mail more promptly. > > No, I'm not suggesting you how to work, no more that I would accept > that you force me into working your way. If any of us wants to force > the other to speak through robots, that o

Re: ANN: pygene - genetic algorithms package

2005-12-06 Thread Erik Max Francis
Peter Hansen wrote: > I've done just enough work in genetic algorithms (and a token amount in > genetic programming) to be perplexed by this comment. Are you > suggesting that genetic programming is somehow not related to genetic > algorithms? > > My understanding is that (said perhaps somewh

Re: str attributes

2005-12-06 Thread Bengt Richter
On 6 Dec 2005 16:52:57 -0800, [EMAIL PROTECTED] wrote: >I don't know if this was already discussed. I think that maybe Python >2.5 can add some attributes to the str object: > str.ascii_letters >'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' str.hexdigits >'0123456789abcdefABCDEF

Re: Bitching about the documentation...

2005-12-06 Thread François Pinard
[A.M. Kuchling] >On Tue, 6 Dec 2005 00:05:38 -0500, > François Pinard <[EMAIL PROTECTED]> wrote: >> It's a relatively recent phenomenon that maintainers go berzerk, foaming >> at the mouth over forms, borders, colors, and various other mania! :-) > It's largely to ensure that the ideas a

Re: Fixed Width Font in Tkinter

2005-12-06 Thread Dustan
Never mind, I got it to work. -- http://mail.python.org/mailman/listinfo/python-list

Re: Binary representation of floating point numbers

2005-12-06 Thread Bengt Richter
On Tue, 06 Dec 2005 22:51:03 -, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2005-12-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> The only way to get the flags is as a float, either through an >> ascii string or a true float. > >That's perverse. > >Really. > >Somebody needs to be sl

Re: My Python Website

2005-12-06 Thread Tuvas
Thanks for the suggestions, I've put them on the page already. I used .zips so as not to confuse anyone that it's some kind of a file, but, I have used the formentioned sourcecode 2 HTML colorizer to put up nice web previews, as well as commenting the code a bit more. Thanks for your help! -- htt

PyAuthD - beta 6

2005-12-06 Thread Heiko Wundram
Hi all! It's been a while since I've announced a version of PyAuthD, and we're nearing a 0.1 release steadily. Beta 6 marks a milestone as the current release has been powering the backend of our virtual mail and VPN solution for about three months now. But, now, for release info: What is PyAuth

Re: Documentation suggestions

2005-12-06 Thread Peter Hansen
Aahz wrote: > Here's a question that kind of gets to the heart of a lot of the > problem: where does ``print`` get documented? If we can come up with a > good process for answering that question, we can probably fix a lot of > other problems. (Note emphasis on the word "process".) Sometimes a po

Re: Documentation suggestions

2005-12-06 Thread BartlebyScrivener
You are correct about the tutorial. Just try to look at the home page through the eyes of a curious Windows user who wants to learn programming and is trying to decide whether to take up Perl, Ruby, Python, or Visual Basic, let's say. On the home page, the first link that catches the eye for this

Re: extract python install info from registry

2005-12-06 Thread Peter Hansen
rbt wrote: > I'm creating a Python plugin for Bartpe (Windows Pre-Install > Environment) and it works OK, but to make it work _exactly_ like it does > on XP (.py and .pyw associate with python and pythonw), I need to > extract the reg entries so I can recreate them in the WinPE environment. If

Fixed Width Font in Tkinter

2005-12-06 Thread Dustan
How do I make a fixed font width in Tkinter? Here's my code (there's more, of course, but this is the focus of the question): import tkFont Font=tkFont.Font(root=master, family="Courier", size=14) I'm sure it's possible, because it's done in IDLE. -- http://mail.python.org/mailman/listinfo/pyth

Re: ANN: pygene - genetic algorithms package

2005-12-06 Thread Peter Hansen
aum wrote: > On Mon, 05 Dec 2005 23:45:30 -0800, Erik Max Francis wrote: >>I only scanned through the API documentation, but it looks like only >>genetic algorithms are supported, not full genetic programming. > > Correct. Organisms of a species have a fixed genome. I've done just enough work in

dynamic variable referencing

2005-12-06 Thread Michael Williams
I would RTM, but I'm not sure exactly what to look for. Basically, I need to be able to call a variable dynamically. Meaning something like the following: - I don't want to say OBJECT.VAR but rather OBJECT. ("string") and have it retrieve the var

str attributes

2005-12-06 Thread bearophileHUGS
I don't know if this was already discussed. I think that maybe Python 2.5 can add some attributes to the str object: >>> str.ascii_letters 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' >>> str.hexdigits '0123456789abcdefABCDEF' etc. And maybe this too: str.maketrans(from, to) (I think s

Re: PythonMagick on Windows

2005-12-06 Thread Terry Hancock
On 5 Dec 2005 16:38:32 -0800 "Adam Endicott" <[EMAIL PROTECTED]> wrote: > I actually did some more fiddling around with it, and I > think I can do what I need with ghostscript, bypassing > ImageMagick altogether. It also appears to be *much* > faster. If you look closer, you will see that this is

Re: Documentation suggestions

2005-12-06 Thread Terry Hancock
On Tue, 6 Dec 2005 11:31:21 -0500 "A.M. Kuchling" <[EMAIL PROTECTED]> wrote: > Here are some thoughts on reorganizing Python's > documentation, with one big suggestion. > There's another struggle within the LibRef: is it a > reference or a tutorial? REFERENCE! :-) > Does it list methods in >

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-06 Thread Ben Sizer
[EMAIL PROTECTED] wrote: > > Just because a few people dislike something, > > doesn't make it a defect. > > Actually, it does. Whose definition of defect are we using? And how small a sample population are we going to require in order to find a 'something' which less than 'a few' people dislike?

Re: Binary representation of floating point numbers

2005-12-06 Thread 63q2o4i02
Actually that's probably the easiest way. I may want to use shorter variable names :) thanks michael -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Louie-1.0b2 - Signal dispatching mechanism

2005-12-06 Thread Matthew Scott
Thomas Heller wrote: > "Pat" <[EMAIL PROTECTED]> writes: > > Thomas Heller wrote: > >> What is the difference between PyDispatcher and Louie? > > > > Not too much at this point, but the general differences are listed on > > this page: > > > > http://louie.berlios.de/changes.html > > Ok, so I won't

Re: Documentation suggestions

2005-12-06 Thread rurpy
[EMAIL PROTECTED] wrote: > Ian> I think it would be very useful if there was reference (not just > Ian> tutorial) documentation for all the syntax, special semantics like > Ian> magic methods, and all the functions and objects in builtins. > > It's pretty common to have a User's Guide as w

Re: XML and namespaces

2005-12-06 Thread Paul Boddie
Alan Kennedy wrote: > Don't confuse libxml2dom with libxml2. Well, quite, but perhaps you can explain what I'm doing wrong with this low-level version of the previously specified code: import libxml2mod document = libxml2mod.xmlNewDoc(None) element = libxml2mod.xmlNewChild(document, None, "href",

Re: Binary representation of floating point numbers

2005-12-06 Thread Mike Meyer
[EMAIL PROTECTED] writes: > In float mode, the instrument returns a sequence of bits that are > exactly the ieee754 number in the case of floats, or just the flags in > the case of flags. PyVisa, when set to float mode, will convert > everything to float, because it is unaware apriori that one of

Re: Binary representation of floating point numbers

2005-12-06 Thread Grant Edwards
On 2005-12-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The only way to get the flags is as a float, either through an > ascii string or a true float. That's perverse. Really. Somebody needs to be slapped. > The value of the float, however, is representable as 24 bits > of normal binar

Re: Binary representation of floating point numbers

2005-12-06 Thread 63q2o4i02
Ok, I figured it out... The only way to get the flags is as a float, either through an ascii string or a true float. The value of the float, however, is representable as 24 bits of normal binary. So for example, the value returned is +4.608400E+04 which is really an int, 46084, which is more eas

Re: junk pointer ????

2005-12-06 Thread jepler
It means there is a bug in a Python extension or in Python itself. If you can reproduce the bug by importing only modules written in Python or included with Python, then you should document the steps to do so in a bug report in the bug tracker on http://sourceforge.net/python If you can only rep

Re: Binary representation of floating point numbers

2005-12-06 Thread 63q2o4i02
Hi, okay, let me be more concise. The lab equipment has two formatting modes, ascii, and float. In ascii mode, it returns strings that represent the numeric value, so e.g. 3.14 is returned as '3.14'. PyVisa, when set to read ascii mode, will convert these strings to float with "visa.read_values

Test Post Ignore

2005-12-06 Thread Samuel M. Smith
My posts don't seem to be showing up. This is a test. Sorry -- http://mail.python.org/mailman/listinfo/python-list

Re: Unexpected behavior of read only attributes and super

2005-12-06 Thread Samuel M.Smith
Even more strangeness If I define the class to use slots class SD(dict): __slots__ = ['a','b'] s = SD() >>> s.__iter__ >>> s.__iter__ = 5 Traceback (most recent call last): File "", line 1, in ? AttributeError: 'SD' object attribute '__iter__' is read-only Then I get the read only

Unexpected behavior of read only attributes and super

2005-12-06 Thread Samuel M. Smith
I have been playing around with a subclass of dict wrt a recipe for setting dict items using attribute syntax. The dict class has some read only attributes that generate an exception if I try to assign a value to them. I wanted to trap for this exception in a subclass using super but it doesn

Re: Calculating Elapsed Time

2005-12-06 Thread Bengt Richter
On Tue, 6 Dec 2005 12:36:55 -0800 (PST), Jean Johnson <[EMAIL PROTECTED]> wrote: >Hello - > >I have a start and end time that is written using the >following: > >time.strftime("%b %d %Y %H:%M:%S") > >How do I calculate the elapsed time? > >>> tf1 = time.strftime("%b %d %Y %H:%M:%S") >>> tf1

Re: insert a dictionary into sql data base

2005-12-06 Thread David Bear
Carsten Haese wrote: > The > example he gave you constructs an insert query with only one parameter > placeholder. You'll need as many placeholders as the number of values that > are inserted. > > The following example should work better: > > def insertDict(curs, tablename, data): > fields = d

Re: UNIX timestamp from a datetime class

2005-12-06 Thread Tim Peters
[John Reese] > >>> import time, calendar, datetime > >>> n= 1133893540.874922 > >>> datetime.datetime.fromtimestamp(n) > datetime.datetime(2005, 12, 6, 10, 25, 40, 874922) > >>> lt= _ > >>> datetime.datetime.utcfromtimestamp(n) > datetime.datetime(2005, 12, 6, 18, 25, 40, 874922) > >>> gmt= _ > > S

JPEG decoder not available in PIL

2005-12-06 Thread Peter
I have a problem which seems to come up from time to time but I can't find anything relevant in the archives. I have used PIL v1.1.5 with no problem on Windows for some time but now wish to put it on Linux (Suse Linux v10.0). I obtained and built the JPEG libraries (jpeg-6b) without any problem. T

Re: UNIX timestamp from a datetime class

2005-12-06 Thread gry
John Reese wrote: > Hi. > > >>> import time, calendar, datetime > >>> n= 1133893540.874922 > >>> datetime.datetime.fromtimestamp(n) > datetime.datetime(2005, 12, 6, 10, 25, 40, 874922) > >>> lt= _ > >>> datetime.datetime.utcfromtimestamp(n) > datetime.datetime(2005, 12, 6, 18, 25, 40, 874922) > >>

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-06 Thread JohnBMudd
> Just because a few people dislike something, > doesn't make it a defect. Actually, it does. Unless you're in the business of building security systems. Then the goals are reversed. I can accept that you like scope by indent and don't want to see any changes gong forward. That's your choice.

Re: Dynamic Link Library

2005-12-06 Thread Larry Bates
I think py2exe can do this (most recent version), but you would be much better off creating a COM object and calling that from your other application. I KNOW that works quite well. -Larry Bates Ervin J. Obando wrote: > Hi everyone, > > Apologies if my question is a bit novice-ish. I was wonderi

PyCon Sponsorship

2005-12-06 Thread Steve Holden
Yes, folks, it's that time of the year again. Although the PyCon 2006 chair has passed to Andrew Kuchling I am still involved with raising sponsorship for the event, and I just wanted to remind regular c.l.py readers that PyCon represents an excellent opportunity to get your organization's name

Re: Calculating Elapsed Time

2005-12-06 Thread skip
Jean> I'm using an old version of python (2.1) and datetime isn't Jean> available until Python 2.3. I can't upgrade my python. There's a reference implementation of datetime written in Python: http://svn.python.org/view/sandbox/trunk/datetime/ It may or may not work in 2.1. If you

Re: Documentation suggestions

2005-12-06 Thread skip
Ian> I think it would be very useful if there was reference (not just Ian> tutorial) documentation for all the syntax, special semantics like Ian> magic methods, and all the functions and objects in builtins. It's pretty common to have a User's Guide as well as a Reference Manual fo

Re: Binary representation of floating point numbers

2005-12-06 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Hi, > I'm using python to run some lab equipment using PyVisa. When I read a > list of values from the equipment, one of the fields is 32 bits of > flags, but the value is returned as a floating point number, either in > ASCII format, or pure binary. Value returned by

Re: Documentation suggestions

2005-12-06 Thread Colin J. Williams
Michael Spencer wrote: > A.M. Kuchling wrote: > >> Here are some thoughts on reorganizing Python's documentation, with >> one big suggestion. >> > > Thanks for raising this topic, and for your on-going efforts in this field. > > I use the compiled html help file provided by PythonWin, which incl

Re: Calculating Elapsed Time

2005-12-06 Thread Fredrik Lundh
Jean Johnson wrote: > I have a start and end time that is written using the > following: > > time.strftime("%b %d %Y %H:%M:%S") > > How do I calculate the elapsed time? import time FORMAT = "%b %d %Y %H:%M:%S" t1 = time.strftime(FORMAT) print t1 time.sleep(1) t2 = time.strftime(FORMAT) prin

Re: Calculating Elapsed Time

2005-12-06 Thread Jean Johnson
I'm using an old version of python (2.1) and datetime isn't available until Python 2.3. I can't upgrade my python. --- [EMAIL PROTECTED] wrote: > > Jean> How do I calculate the elapsed time? > > Where t1_s and t2_s reference time strings in the > format you describe: > > import dateti

Re: Calculating Elapsed Time

2005-12-06 Thread skip
Jean> How do I calculate the elapsed time? Where t1_s and t2_s reference time strings in the format you describe: import datetime import time fmt = "%b %d %Y %H:%M:%S" t1 = datetime.datetime(*time.strftime(t1_s, fmt)[:6]) t2 = datetime.datetime(*time.strftime(t2_s, fmt

Re: Binary representation of floating point numbers

2005-12-06 Thread Grant Edwards
On 2005-12-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm using python to run some lab equipment using PyVisa. When I read a > list of values from the equipment, one of the fields is 32 bits of > flags, but the value is returned as a floating point number, either in > ASCII format, or pur

Re: Documentation suggestions

2005-12-06 Thread Colin J. Williams
Carl Friedrich Bolz wrote: > [EMAIL PROTECTED] wrote: > >> Ian> A test suite seems far more useful to implementors than any >> guide, >> >> Of course, test cases can be modified or ignored. I'd agree with you >> if we >> had a test suite that was more strongly cast in stone. > > > hum. a

Re: Is there an equivalent to Java Webstart in Python?

2005-12-06 Thread Kent Johnson
Ravi Teja wrote: > Hi Kent, > Too complicated example :-). Jythonc works just fine to create a > regular jar file that you can reference in your jnlp file. If it works for you, good. I have never been able to compile a real app with jythonc and I gave up on it long ago. Kent -- http://mail.py

Re: Documentation suggestions

2005-12-06 Thread Ian Bicking
Aahz wrote: > Here's a question that kind of gets to the heart of a lot of the > problem: where does ``print`` get documented? If we can come up with a > good process for answering that question, we can probably fix a lot of > other problems. (Note emphasis on the word "process".) Good point; th

Calculating Elapsed Time

2005-12-06 Thread Jean Johnson
Hello - I have a start and end time that is written using the following: time.strftime("%b %d %Y %H:%M:%S") How do I calculate the elapsed time? JJ __ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.c

Re: Documentation suggestions

2005-12-06 Thread skip
>> Of course, test cases can be modified or ignored. I'd agree with you >> if we had a test suite that was more strongly cast in stone. Carl> hum. a test suite like that would have to be constructed very Carl> carefully. The current CPython testsuite tests quite some things

Re: Need help implementing an algorithm in python

2005-12-06 Thread Colin J. Williams
ech0 wrote: > wow. nevermind. i figured it out. > I hope that you will share it with those of us who haven't figured it out yet. Colin W. -- http://mail.python.org/mailman/listinfo/python-list

Binary representation of floating point numbers

2005-12-06 Thread 63q2o4i02
Hi, I'm using python to run some lab equipment using PyVisa. When I read a list of values from the equipment, one of the fields is 32 bits of flags, but the value is returned as a floating point number, either in ASCII format, or pure binary. In either case, since I'm using PyVisa, it converts t

Re: Eclipse best/good or bad IDE for Python?

2005-12-06 Thread Trent Mick
[Paul Boddie wrote] > Shouldn't you have something nice to say about Komodo instead, however? > ;-) Yah, I was just reminding Aaron of his fine-print legal requirements to evermore only be able to extol the virtues of Komodo. Muuuwahahaha! :) Trent -- Trent Mick [EMAIL PROTECTED] -- http://mai

Re: Documentation suggestions

2005-12-06 Thread Steve Holden
A.M. Kuchling wrote: > On Tue, 6 Dec 2005 11:28:12 -0600, > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>Somehow I think Guido would eventually put his (16-ton) foot down. ;-) > > > Maybe, but he hasn't put his foot down on new-style classes yet, which > were added in 2.2. It would b

Re: windows installer problems

2005-12-06 Thread Trent Mick
[EMAIL PROTECTED] wrote] > Hi, > I'm trying to install Python on Windows 2000 Server using remote > desktop. I log as a user that is in administrators group. Instalator > starts, I select default installation directory, on the next screen > with parts to install I click just next. Than blicks scree

Re: Documentation suggestions

2005-12-06 Thread Aahz
In article <[EMAIL PROTECTED]>, A.M. Kuchling <[EMAIL PROTECTED]> wrote: > >There's another struggle within the LibRef: is it a reference or a >tutorial? Does it list methods in alphabetical order so you can look >them up, or does it list them in a pedagogically useful order? I >think it has to b

Re: extract python install info from registry

2005-12-06 Thread Trent Mick
[Laszlo Zsolt Nagy wrote] > rbt wrote: > > >On windows xp, is there an easy way to extract the information that > >Python added to the registry as it was installed? > > > > > Using regedit.exe, look at the registry keys and values under > > HKEY_LOCAL_MACHINE\Software\Python > > If you need t

Re: Documentation suggestions

2005-12-06 Thread Carl Friedrich Bolz
[EMAIL PROTECTED] wrote: > Ian> A test suite seems far more useful to implementors than any guide, > > Of course, test cases can be modified or ignored. I'd agree with you if we > had a test suite that was more strongly cast in stone. hum. a test suite like that would have to be constructed

Re: i=2; lst=[i**=2 while i<1000]

2005-12-06 Thread Michael Spencer
Daniel Schüle wrote: > Hello NG, > > I am wondering if there were proposals or previous disscussions in this > NG considering using 'while' in comprehension lists > > # pseudo code > i=2 > lst=[i**=2 while i<1000] > You are actually describing two features that list comps don't natively suppor

Re: python speed

2005-12-06 Thread David Rasmussen
bruno at modulix wrote: > > There's nothing like "pure" Python. Python depends on a lot of libs, > most of them being coded in C++ or C (or assembly FWIW). The common > scheme is to use Python for the logic and low-level libs for the > critical parts. > I know. But if a discussion like this is t

Re: python speed

2005-12-06 Thread David Rasmussen
Peter Hansen wrote: >> >>> From the speed requirement: Is that correspondance chess by any chance?? >> >> Regular chess at tournament time controls requires speed too. Any pure >> Python chess program would lose badly to the best C/C++ programs out >> there now. >> >> I would also like to see Hal

Re: python speed

2005-12-06 Thread David Rasmussen
Harald Armin Massa wrote: >>Faster than assembly? LOL... :) > > why not? Because any program generated automatically by a compiler of any kind can always be expressed in assembly langauge. That writing assembler for many processors can be really hard to do well is beside the point. We're talk

Re: python speed

2005-12-06 Thread David Rasmussen
Steve Holden wrote: >> >> Faster than assembly? LOL... :) >> > I don't see why this is so funny. A good C compiler with optimization > typically produces better code than an equivalent assembly language > program. As compilation techniques improve this gap is likely to widen. > There's less and

Re: join dictionaries using keys from one & values

2005-12-06 Thread danplawson
Super simple: dict3 = {} for k1 in dict1.keys(): for k2 in dict2.keys(): if dict1.get(k1) == dict2[k2]: dict3[k1] = k2 works in all cases and can be simplified to an iterated dictionary in python 2.4 -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle for MPI

2005-12-06 Thread David E. Konerding DSD staff
In article <[EMAIL PROTECTED]>, tooper wrote: > Hello, > > Did anybody tried python pickle module over heterogeneous 32/64 bits > mpi exchanges to overcome the translation problem ? i.e. pickling on > one side (let's say a 32-bits OS side), sending the buffer as string > through mpi and unpickling

Re: Documentation suggestions

2005-12-06 Thread A.M. Kuchling
On 6 Dec 2005 10:10:09 -0800, Ian Bicking <[EMAIL PROTECTED]> wrote: > stable personal pages that should be linked in . But I do think that > we should encourage some specific process for new or revised > tutorial/howto contributions, like encouraging people put such material > in the wik

Re: Documentation suggestions

2005-12-06 Thread A.M. Kuchling
On Tue, 6 Dec 2005 18:33:05 +0100, > I've proposed adding support for semi-automatic linking to external > documents, based on a simple tagging model, a couple of times, e.g. > > http://mail.python.org/pipermail/python-list/2005-May/280751.html Very interesting. There could be a manually-ma

Re: Call for a cooperation

2005-12-06 Thread KvS
Hi Nico, as a Dutch PhD researcher in maths also (although the field is financ. maths & the place Frankfurt am Main at the moment) I feel obliged to answer ;). Had a quick look at your page and it seems all pretty straightforward, at least at first sight. And as Jeremiah pointed out, Python is eas

Re: Documentation suggestions

2005-12-06 Thread skip
>>> A series of examples seems more concrete than a formal description,<< rd> Amen. This is why people buy the books: The good ones have lots of rd> examples. The wizards glance at them in passing and think, "Duh." rd> And the rest of us (including the intermediate folks, I'll bet

Re: How to wake up the jython list moderator

2005-12-06 Thread Anton Vredegoor
Thomas Heller wrote: > The easiest solution for this is to join the mailing list (with the > email address that you use to post), disable list delivery, and repost > your message via gmane. > Thanks. Anton -- http://mail.python.org/mailman/listinfo/python-list

UNIX timestamp from a datetime class

2005-12-06 Thread John Reese
Hi. >>> import time, calendar, datetime >>> n= 1133893540.874922 >>> datetime.datetime.fromtimestamp(n) datetime.datetime(2005, 12, 6, 10, 25, 40, 874922) >>> lt= _ >>> datetime.datetime.utcfromtimestamp(n) datetime.datetime(2005, 12, 6, 18, 25, 40, 874922) >>> gmt= _ So it's easy to create datet

Re: Documentation suggestions

2005-12-06 Thread Michael Spencer
A.M. Kuchling wrote: > Here are some thoughts on reorganizing Python's documentation, with > one big suggestion. > Thanks for raising this topic, and for your on-going efforts in this field. I use the compiled html help file provided by PythonWin, which includes all the core documentation. I u

Call for a cooperation

2005-12-06 Thread G. Sica
Dear all, I'm a PhD researcher in logic at the University of Leiden in Holland. At the present I'm doing a work about the implementation of some parts of the Braille code related to the representation of the logical and mathematical symbols. In order to the well development of this work I will need

Re: Output: Number of digits in exponent?

2005-12-06 Thread danplawson
'%.4e' % 1.0e50 -- http://mail.python.org/mailman/listinfo/python-list

Re: Usenet falsehoods (was Re: Bitching about the documentation...)

2005-12-06 Thread Aahz
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2005-12-06, Aahz <[EMAIL PROTECTED]> wrote: >> In article <[EMAIL PROTECTED]>, >> Grant Edwards <[EMAIL PROTECTED]> wrote: >>> >>>Hmm, I though he explained it: >>> >>> 1) Not using your real name. >>> >>> 2) A yahoo,

Re: Documentation suggestions

2005-12-06 Thread Ian Bicking
Fredrik Lundh wrote: > > > There's another struggle within the LibRef: is it a reference or a > > > tutorial? Does it list methods in alphabetical order so you can look > > > them up, or does it list them in a pedagogically useful order? I > > > think it has to be a reference; if each section wer

Re: How to wake up the jython list moderator

2005-12-06 Thread Thomas Heller
"Anton Vredegoor" <[EMAIL PROTECTED]> writes: > I'm trying to post messages to the jython mailing list via gmane. I > this possible? I've got all kinds of messages confirming that I exist > and that my message has arrived and will be either approved or rejected > with an explanation, but since the

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-06 Thread Fredrik Lundh
"Zeljko Vrba" wrote: > >> Python recognizes the TAB character as valid indentation. TAB > >> characters are evil. They should be banned from Python source code. > > > > AGREE! AGREE! AGREE! > > > The day TABs are banned from the source, I drop python forever. It took me > too long to get used

Re: Documentation suggestions

2005-12-06 Thread Ian Bicking
Fredrik Lundh wrote: > I've proposed adding support for semi-automatic linking to external > documents, based on a simple tagging model, a couple of times, e.g. > > http://mail.python.org/pipermail/python-list/2005-May/280751.html > http://mail.python.org/pipermail/python-list/2005-May/2807

How to wake up the jython list moderator

2005-12-06 Thread Anton Vredegoor
I'm trying to post messages to the jython mailing list via gmane. I this possible? I've got all kinds of messages confirming that I exist and that my message has arrived and will be either approved or rejected with an explanation, but since then nothing but silence and my message doesn't show up e

  1   2   3   >