Re: Galois field

2004-12-03 Thread Mikael Olofsson
Roie Kerstein wrote: I am looking for a python package that deals with galois fields. Does anybody know where can I find it? Googling for python "finite field" reveals among other things the URLs http://www.hpcf.upr.edu/~humberto/software/fields/ http://www.csua.berkeley.edu/~emin/source_c

Re: Python 2.4 and Tkinter

2004-12-03 Thread Eric Brunel
Jeffrey Barish wrote: [snip] OK, I downloaded tcl8.4.8 and tk8.4.8. They are now installed. Back to python2.4 make. It now bombs at: gcc -pthread -shared build/temp.linux-i686-2.4/_tkinter.o build/temp.linux-i686-2.4/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/local/lib -ltk8.4 -ltcl8

Re: PySQLLite Speed

2004-12-03 Thread Gerhard Haering
On Thu, Dec 02, 2004 at 04:22:25PM -0800, Kevin wrote: > Hello All, > > I wondering if anyone has encountered the same issue > with using PySQL. This is my first time using this DB > so this preformance may be typical. I'm reading an > ASCII file through PyParse that contains about 1.3Meg > of F

hello all

2004-12-03 Thread Ishwor Gurung
Hello all, I am just starting out on learning Python and joined this list. I have grabbed the Learning Perl book by Mark & David. This book really seems good so far.. the concepts are explained pretty nicely. :) I have a background a bit in Java but Python seems so cooler. The concept of Dynamica

Re: PySQLLite Speed

2004-12-03 Thread Gerhard Haering
On Thu, Dec 02, 2004 at 08:39:31PM -0800, Kevin wrote: > Hello All, > > I wanted to thank Roger Binn for his email. He had > the answer to my issue with writing speed. It's > actual made an incredible change in the preformace. I > didn't have to go all the way to implementing the > synchronous

Re: ANNOUNCE: Ice 2.0 released

2004-12-03 Thread James Stroud
> > PS: Please feel free to set FU-Ts as appropriate. > > What are FU-Ts? "It took me 3 hours to figure out FU meant 'Felix Unger'."" -- Oscar Madison, The Odd Couple MTC. -- James Stroud, Ph.D. UCLA-DOE Institute for Genomics and Proteomics 611 Charles E. Young Dr. S. MBI 205, UCLA

Re: efficient intersection of lists with rounding

2004-12-03 Thread Raymond Hettinger
"Gordon Williams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have to lists that I need to find the common numbers (2nd rounded to > nearest integral) and I am wondering if there is a more efficient way of > doing it. > > >>> a= [(123,1.3),(123,2.4),(123,7.8),(123,10.2)]

Re: installing 2.4

2004-12-03 Thread Matt Gerrans
"Peter Hansen" <[EMAIL PROTECTED]> wrote: > Only pure Python code can run without change on a newer interpreter. Is the interpreter smart enough to rebuild a pyc (if the corresponding py file is there of course) file that was built by a previous version? -- http://mail.python.org/mailman/list

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2004-12-03 Thread David Fraser
Rocco Moretti wrote: For some reason I can't seem to make use of the google links. When I use the above eg http://groups.google.com/groups?frame=right&th=e562a771d1c827c9 I get a not found google page with url http://groups-beta.google.com/groups?frame=right&th=e562a771d1c827c9 really wanted to

Re: inheritance problem with 2 cooperative methods

2004-12-03 Thread David Fraser
Dan Perl wrote: Here is a problem I am having trouble with and I hope someone in this group will suggest a solution. First, some code that works. 3 classes that are derived from each other (A->B->C), each one implementing only 2 methods, __init__ and setConfig.

window size in IDLE

2004-12-03 Thread p.kosina
Can I somehow in config-main.cfg set how big shall (and where) open the IDLE window? Cause in my w98 it is always opening so that I can not see the bottom line Thank you Pavel -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic use of CSV module to skip headers?

2004-12-03 Thread Peter Otten
Ramon Felciano wrote: > I'm using the csv module to parse a tab-delimited file and wondered > whether there was a more elegant way to skip an possible header line. > I'm doing > > line = 0 > reader = csv.reader(file(filename)) > for row in reader: > if (ignoreFirstLine & line == 0): > continue >

Re: How is Python designed?

2004-12-03 Thread Limin Fu
--- Timo Virkkala <[EMAIL PROTECTED]> wrote: > > Do you mean the structure and design of the > language, or the process of > designing the language? I mean the structure and design of the language. Sorry for the umbiguous question. > > Well, in either case, you'll probably find your > answer

MDaemon Warning - virus found: Mail System Error - Returned Mail

2004-12-03 Thread The Post Office
*** WARNING ** Este mensaje ha sido analizado por MDaemon AntiVirus y ha encontrado un fichero anexo(s) infectado(s). Por favor revise el reporte de abajo. AttachmentVirus name Action taken ---

Re: pre-PEP generic objects

2004-12-03 Thread Nick Craig-Wood
Peter Otten wrote: > Functions written in Python have a __get__ attribute while builtin > functions (implemented in C) don't. Python-coded functions therefore > automatically act as descriptors while builtins are just another > attribute. Jp Calderone <[EMAIL PROTECTED]> wrote: > When the class ob

Re: RotatingFileHandler

2004-12-03 Thread Vinay Sajip
Robert Brewer wrote: Kamus of Kadizhar wrote: I'm having a problem with logging. I have an older app that used the RotatingFileHandler before it became part of the main distribution (I guess in 2.3). [snip] The offending snippet of code is: logFile = logging.handlers.RotatingFileHandler('/var/l

Re: How is Python designed?

2004-12-03 Thread Limin Fu
To clarify, I mean the internal structure and design of python interpreter. Any hint? Thanks. Regards, Limin __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 -- http://mail.python.org

Re: pickle and py2exe

2004-12-03 Thread Johan Lindberg
>>> Im trying to compile a script with py2exe. The pickle module is causing the >>> program to give an error. >>> >>> Traceback (most recent call last): >>> File "SETIstat.pyw", line 330, in ? >>> File "SETIstat.pyw", line 84, in start_up >>> File "SETIstat.pyw", line 79, in config_load >>>

Re: File locking and logging

2004-12-03 Thread Vinay Sajip
Kamus of Kadizhar <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Thanks to Robert Brewer, I got enough insight into logging to make it work > > Now I have another issue: file locking. Sorry if this is a very basic > question, but I can't find a handy reference anywhere t

Re: Galois field

2004-12-03 Thread Roie Kerstein
Terry Reedy wrote: > Googling python 'galois fields' gives over 500 hits, the most recent being > your identical question on catalog-sig.  Have you looked at them? Yes. Nothing there is a module. only discussions. :( -- Best regards Roie Kerstein -- http://mail.python.org/mailman/listinfo/pyt

Re: efficient intersection of lists with rounding

2004-12-03 Thread Michael Hoffman
Steven Bethard wrote: Yeah, almost certainly since he's looking at lists 3K long. If they were small, you never know since the list comprehension gets the C-code speedup, while sets.Set is Python code: > [list comprehension] 1 loops, best of 3: 27.5 usec per loop > [Python 2.3 Set] 1 lo

Virus in your Mail to empire.support

2004-12-03 Thread root at smtp
The VirusCheck at the IMST generated the following Message: V I R U S A L E R T Our VirusCheck found a Virus (W32/Netsky-Q) in your eMail to "empire.support". This eMail has been deleted ! Now it is on you to check your System for Viruses This Syst

python-mode question

2004-12-03 Thread Thomas Heller
When I edit a Python script with XEmacs, then hit C-c C-c, the script is executed, the output is shown in a *Python Output* buffer, and the cursor is moved into this buffer. How can I change the behaviour so that the cursor stays where it was before? I'm using Revision 4.29, if it matters. Thank

Curses programming, threads?

2004-12-03 Thread Bartlomiej Rymarski
Hello, I'm writing this little program, and I've came across a function that I need to call. Since the execution of the function takes a real long time I want to put a timer, or an animated 'loading' screen (it would be best if it was a progressbar). The questions is how to make two commands to

Re: window size in IDLE

2004-12-03 Thread Ishwor Gurung
hi kosina although i am new to this list as well, please CC to the python list as well. That way not only 'we' but everyone benefits. :) On Fri, 03 Dec 2004 11:30:06 +0100, gen2n <[EMAIL PROTECTED]> wrote: > Thanks a lot. Could you help me once more with beginners question? > In IDLE, when saving

Re: Curses programming, threads?

2004-12-03 Thread Bartlomiej Rymarski
Bartlomiej Rymarski <[EMAIL PROTECTED]> wrote: > [...] > And the loader() function would run in a loop until connect_db() is > is finished. Is that possible in python? Or are there any other, > better ways to do it? > [...] Oh, I forgot - I'm using Linux, and curses module in Python 2.3. -- Bar

Re: Galois field

2004-12-03 Thread Roie Kerstein
Mikael Olofsson wrote: > Googling for > > python "finite field" > > reveals among other things the URLs > > http://www.hpcf.upr.edu/~humberto/software/fields/ > http://www.csua.berkeley.edu/~emin/source_code/py_ecc/ > Thank you very much! However, I lack two important things in the packages i

Re: Versioning Libraries

2004-12-03 Thread Richard Brodie
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Python is exceptionally backwards compatible, so generally > code from an older version will run unchanged on newer > Pythons. I'm just curious: why exceptionally? I like Python for a lot of reasons but I wouldn't put A

Mouse and/or keyboard simulation

2004-12-03 Thread lamb2000
No one in the world knows the answer to my question! " Is it possible to emulate in Python for Linux the mouse and/or the keyboard?" I am coming from XP, where I have plenty of methods (AutoIt, Macro Express, Macro Scheduler and even VBA macro registration in Excel).

Re: decorators ?

2004-12-03 Thread Simon Brunning
On Fri, 03 Dec 2004 02:43:22 GMT, Jp Calderone <[EMAIL PROTECTED]> wrote: > Bob Ippolito, you mean. And, no offense to Bob, but woopidy freaking doo. > Now the vast hordes of PyObjC developers get to use their editor's name > completion feature a little bit less. What an awesome justificatio

Newbie alert !

2004-12-03 Thread Jean Montambeault
I am not only learning Python but programming itself ; reading your posts makes me believe that nobody is that much of a beginner here. Is there a newgroup or list for my type somewhere I can't find it ? To illustrate my case this script : # function to draw rings for an Olympic flag def rings(

Re: Versioning Libraries

2004-12-03 Thread Simon Brunning
On Fri, 3 Dec 2004 11:03:58 -, Richard Brodie <[EMAIL PROTECTED]> wrote: > I'm just curious: why exceptionally? I like Python for a lot of > reasons but I wouldn't put API stability high on the list. > Not compared with a traditional language like C or Fortran, > anyway. Which languages go aro

Re: Versioning Libraries

2004-12-03 Thread Peter Hansen
Richard Brodie wrote: "Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Python is exceptionally backwards compatible, so generally code from an older version will run unchanged on newer Pythons. I'm just curious: why exceptionally? I like Python for a lot of reasons but I

Re:Of course I have 'from Tkinter import *'...

2004-12-03 Thread Jean Montambeault
... at the start of the file. I just thought it to be too obvious to be included : my mistake. Thanks Jean -- http://mail.python.org/mailman/listinfo/python-list

Re: installing 2.4

2004-12-03 Thread Peter Hansen
Matt Gerrans wrote: "Peter Hansen" <[EMAIL PROTECTED]> wrote: Only pure Python code can run without change on a newer interpreter. Is the interpreter smart enough to rebuild a pyc (if the corresponding py file is there of course) file that was built by a previous version? Yes. The .pyc files cont

Re: Newbie alert !

2004-12-03 Thread Simon Brunning
On Fri, 03 Dec 2004 06:38:54 -0500, Jean Montambeault <[EMAIL PROTECTED]> wrote: > I am not only learning Python but programming itself ; reading your > posts makes me believe that nobody is that much of a beginner here. Is > there a newgroup or list for my type somewhere I can't find it ? The tut

Re: PySQLLite Speed

2004-12-03 Thread Kent Johnson
Kevin wrote: Hello All, I wanted to thank Roger Binn for his email. He had the answer to my issue with writing speed. It's actual made an incredible change in the preformace. I didn't have to go all the way to implementing the synchronous mode(for my app). Previously, I was insert one record at

Re: Newbie alert !

2004-12-03 Thread Eric Brunel
Jean Montambeault wrote: I am not only learning Python but programming itself ; reading your posts makes me believe that nobody is that much of a beginner here. Is there a newgroup or list for my type somewhere I can't find it ? To illustrate my case this script : # function to draw rings for a

Re: PySQLLite Speed

2004-12-03 Thread Gerhard Haering
On Fri, Dec 03, 2004 at 06:06:11AM -0500, Kent Johnson wrote: > If your data is (or can be) created by an iterator, you can use this recipe > to group the data into batches of whatever size you choose and write the > individual batches to the db. > http://aspn.activestate.com/ASPN/Cookbook/Python

Re: pythonwin broke

2004-12-03 Thread Steve Holden
Jive wrote: I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3, but it's still broke. When I start PythonWin, sometimes it looks like it is going to be okay. But as soon as I open a .py file, the interactive window grabs the focus and will not let go. I am stumped. Is the

Re: pre-PEP generic objects

2004-12-03 Thread Steve Holden
Paul Rubin wrote: Steven Bethard <[EMAIL PROTECTED]> writes: IMHO this too easy to accomplish right now to warrant an "official" implementation: class Bunch: pass b = Bunch() b.one, b.two, b.three = 1,2,3 works just fine, depending on the problem I might add a few special operators. For anything

Re: Galois field

2004-12-03 Thread Mikael Olofsson
Roie Kerstein wrote: Thank you very much! However, I lack two important things in the packages introduced there: 1. There is only element arithmetic - no polynomials, in which I have need. 2. there is support only for fields of order 2^p, while I need fields of prime order. You still helped me, as

Re: Versioning Libraries

2004-12-03 Thread Richard Brodie
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anyway, you're confusing "instability" (I hate that word, > it has connotations of unreliability, which aren't intended) > with "enhancement". The API gets changed, yes, but by > adding new things, almost never by remov

Re: How is Python designed?

2004-12-03 Thread Steve Holden
Limin Fu wrote: To clarify, I mean the internal structure and design of python interpreter. Any hint? Thanks. Regards, Limin In the open source world, of course, the usual answer from people like me (who don't delve deeply into the internals most of the time) is "use the source, Luke". But I'm s

Re: Mouse and/or keyboard simulation

2004-12-03 Thread Radovan Garabik
lamb2000 <[EMAIL PROTECTED]> wrote: > [-- text/plain, encoding 7bit, charset: us-ascii, 21 lines --] > > >No one in the world knows the answer to my question! >" Is it possible to emulate in Python for Linux the mouse and/or the > keyboard?" >I am coming from XP, where I

Automated mail bounce handling.

2004-12-03 Thread Alan Kennedy
Hi All, I'm writing an application that sends out emails, for workflow-item tracking purposes. I am using a VERP-style addressing mechanism, whereby I send each message from an uniquely generated email address, so that I can relate bounces, notification failures, etc, to the original address to

Re: inheritance problem with 2 cooperative methods

2004-12-03 Thread Dan Perl
This is almost the same code as Greg's with the only difference being that test for configuration having been done. But the test is unnecessary. I don't see how setConfig could be invoked in the super of the base class (A), so such a test would be relevant only in subclasses, if they DO invoke

Re: help running python in a limited interpreted environment

2004-12-03 Thread Nick Coghlan
Mike wrote: AttributeError: 'module' object has no attribute 'xxx' We know the calling script finds the necessary modules, and the attribute clearly appears in the module's .py file. Can anyone tell me what the problem is or if what we're trying to do is not possible? Is there something in additio

Re: installing 2.4

2004-12-03 Thread Steve Holden
Peter Hansen wrote: Matt Gerrans wrote: "Peter Hansen" <[EMAIL PROTECTED]> wrote: Only pure Python code can run without change on a newer interpreter. Is the interpreter smart enough to rebuild a pyc (if the corresponding py file is there of course) file that was built by a previous version? Yes

Pre-PEP: Executing modules inside packages with '-m'

2004-12-03 Thread Nick Coghlan
Anyone playing with the CPython interpreter's new command line switch might have noticed that it only works with top-level modules (i.e. scripts that are directly on sys.path). If the script is inside a package, the invocation will fail with a "Module not found" error. This PEP is aimed at fixi

Re: RotatingFileHandler

2004-12-03 Thread Kamus of Kadizhar
On Fri, 03 Dec 2004 09:40:07 +, Vinay Sajip wrote: > Of course, you should not normally be calling emit() from user code. The > correct approach is to log events to loggers, and not emit them to > handlers directly. Thanks, I finally got that figured out. Lots changed between the time I

Re: pickle and py2exe

2004-12-03 Thread Daniel Bickett
> While looking into this, I had seen some mention of protocol option in > pickle. I > hadnt specified anything for protocol, so it defaults to 0 though I dont know > what that is. Its my first time using pickle and second with py2exe. If you think this might be your problem, then it would be bes

Re: installing wxPython on Linux and Windows

2004-12-03 Thread Daniel Bickett
> I have no way to build it on Windows though, as I don't have Visual C++ > 7.1, for that we must wait for Robin Dunn. Would it be too difficult of a task to try getting the build working with Dev-C++? That way those without enough incentive for purchasing Visual C++ (in excess of $100, I believe)

Re: pre-PEP generic objects

2004-12-03 Thread Carlos Ribeiro
On Fri, 03 Dec 2004 07:41:59 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: > Next question: bunch is a cute name, but not very suggestive of purpose. > Who can think of a better one? "Better"is highly subjective in this context. There are several alternatives: Bunch Generic Record DataRecord I

Re: Newbie alert !

2004-12-03 Thread Adam DePrince
On Fri, 2004-12-03 at 06:38, Jean Montambeault wrote: > I am not only learning Python but programming itself ; reading your > posts makes me believe that nobody is that much of a beginner here. Is > there a newgroup or list for my type somewhere I can't find it ? > > To illustrate my case this s

Re: pre-PEP generic objects

2004-12-03 Thread Istvan Albert
Steven Bethard wrote: > The question is not how easy it is to write, > but how many times it's going to get written. but with that logic we could create a standard "looping" construct called loop(x) that would stand in for for i in range(x): or a file_reader('whatever') generator that would be a s

distinction between float & int

2004-12-03 Thread Ishwor
hi all, can anyone tell me why this distinction? i mean why it returns False on floats?? >>> a = 1 >>> b = 1 >>> a is b True >>> a = 1.1 >>> b = 1.1 >>> a is b False >>> thanx . -- cheers, Ishwor Gurung -- http://mail.python.org/mailman/listinfo/python-list

Re: pre-PEP generic objects

2004-12-03 Thread Remy Blank
Istvan Albert wrote: > On the other hand, it would be nice to have a module that > implements various design patterns. The Bunch, the Borg, the Null, > the Proxy all nicely documented tucked away in their separate > module. That would feel a lot less like littering the standard name space > with an

Re: Newbie alert !

2004-12-03 Thread Adam DePrince
> > > bou_europe=Button(fen1, text='Europe',\ > >command=rings(41, 100, -22, 'blue')) Silly me. I misunderstood what you wanted first time around. In Python functions are "first class objects" that are treated no differently than anything else. When you setup your button

Re: distinction between float & int

2004-12-03 Thread Steve Holden
Ishwor wrote: hi all, can anyone tell me why this distinction? i mean why it returns False on floats?? a = 1 b = 1 a is b True a = 1.1 b = 1.1 a is b False thanx . There is no guarantee that this will hold in all implementations of Python. The majority implementation, usually called CPython becaus

Re: installing wxPython on Linux and Windows

2004-12-03 Thread Rob Williscroft
Daniel Bickett wrote in news:mailman.7076.1102081193.5135.python- [EMAIL PROTECTED] in comp.lang.python: >> I have no way to build it on Windows though, as I don't have Visual C++ >> 7.1, for that we must wait for Robin Dunn. > > Would it be too difficult of a task to try getting the build workin

Re: distinction between float & int

2004-12-03 Thread Adam DePrince
On Fri, 2004-12-03 at 09:01, Ishwor wrote: > hi all, > can anyone tell me why this distinction? i mean why it returns False > on floats?? > >>> a = 1 > >>> b = 1 > >>> a is b > True > >>> a = 1.1 > >>> b = 1.1 > >>> a is b > False > >>> > > thanx . > -- > cheers, > Ishwor Gurung In Python, so

Re: pre-PEP generic objects

2004-12-03 Thread Carlos Ribeiro
On Fri, 03 Dec 2004 08:58:48 -0500, Istvan Albert <[EMAIL PROTECTED]> wrote: > On the other hand, it would be nice to have a module that > implements various design patterns. The Bunch, the Borg, the Null, > the Proxy all nicely documented tucked away in their separate > module. That would feel a l

float point properties access

2004-12-03 Thread Neal D. Becker
Is there a way in python to access properties of floats? I need something equiv to C DBL_EPSILON defined in . -- http://mail.python.org/mailman/listinfo/python-list

Display Adapter Information from Registry?

2004-12-03 Thread Omer Ahmad
Hi All, I've been working with python for about 6 months now, and have been very impressed with the size and scope of the libraries. I have, however, run into a bit of a problem. I discoverred Marc Hammonds PyWin32 extensions, (whcih are awesome) and Tim Golden's WMI wrapper for accessing the Wi

Re: float point properties access

2004-12-03 Thread Robin Becker
Neal D. Becker wrote: Is there a way in python to access properties of floats? I need something equiv to C DBL_EPSILON defined in . you could try the traditional algorithm >>> def dbl_epsilon(): ... n = 0 ... while 1: ... e = 1.0/2**n ... if (1.0+e==1.0): break ...

How did you learn Python?

2004-12-03 Thread Shawn Milo
I was just wondering what the best books were for learning Python. Which books are good for getting started, and which should be saved for later, or or not useful except as a reference for the learned? I have a decent programming background in VB, JavaScript, VBScript, Net.Data (IBM's macro langu

Re: Curses programming, threads?

2004-12-03 Thread Michele Simionato
Bartlomiej Rymarski <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Bartlomiej Rymarski <[EMAIL PROTECTED]> wrote: > > [...] > > And the loader() function would run in a loop until connect_db() is > > is finished. Is that possible in python? Or are there any other, > > better w

RE: How did you learn Python?

2004-12-03 Thread Batista, Facundo
Title: RE: How did you learn Python? [Shawn Milo] #- I was just wondering what the best books were for learning Python. #- #- Which books are good for getting started, and which should #- be saved for #- later, or or not useful except as a reference for the learned? My particular process

Re: Plone

2004-12-03 Thread Joe Raul
verzeihung , was ist das? - Original Message - From: "merman" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python.announce To: <[EMAIL PROTECTED]> Sent: Thursday, November 25, 2004 8:12 PM Subject: Plone > Hallo, > > das ist schon wichtig: > > http://plone.org/newsitems/plone-2.0.5-rc >

Re: float point properties access

2004-12-03 Thread Robin Becker
Robin Becker wrote: Neal D. Becker wrote: Is there a way in python to access properties of floats? I need something equiv to C DBL_EPSILON defined in . you could try the traditional algorithm >>> def dbl_epsilon(): ... n = 0 ... while 1: ... e = 1.0/2**n ... if (1.0+e==

Module list generation

2004-12-03 Thread Doug Kearns
Is this the best/simplest way to generate a module list? python -c 'from pydoc import help; help("modules")' Thanks, Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: How did you learn Python?

2004-12-03 Thread Thomas Guettler
Am Fri, 03 Dec 2004 09:54:36 -0500 schrieb Shawn Milo: > I was just wondering what the best books were for learning Python. > > Which books are good for getting started, and which should be saved for > later, or or not useful except as a reference for the learned? Hi, I learned a lot by reading

Re: Display Adapter Information from Registry?

2004-12-03 Thread Larry Bates
Let's see, there are tools that do what you want but you are being told not use them? If you use py2exe to bundle up all your commercial software (with extensions) and then Inno Setup to create a setup.exe file for setting everything up, nobody ever knows about Python, extensions, etc. This elimi

RE: How did you learn Python?

2004-12-03 Thread Doran_Dermot
Hi Shawn, I would recommend the following for starters: - The Tutorial (http://www.python.org/dev/doc/devel/tut/tut.html) - Python "How to Program" by Deitel After that it is like any language, natural or computer related! Use it! However, I think you'll find that it is a lot easier to use tha

Re: How did you learn Python?

2004-12-03 Thread Jeffrey Maitland
Well I would suggest the Python in a Nutshell and the Python Cookbook both by O'Reilly as references. They are great for a desktop reference and I check them first before I google/search else where for answers. Being they are reference books they or more on aide then a teaching device however

Re: Galois field

2004-12-03 Thread Nick Craig-Wood
Mikael Olofsson <[EMAIL PROTECTED]> wrote: > At our department we use Magma (http://magma.maths.usyd.edu.au/) > for finite field arithmetic and error control codes. Magma has > nothing to do with Python, instead it is a very mature tool of its > own, mainly for descrete math. It knows what a pe

Replace string except inside quotes?

2004-12-03 Thread beliavsky
The code for text in open("file.txt","r"): print text.replace("foo","bar")[:-1] replaces 'foo' with 'bar' in a file, but how do I avoid changing text inside single or double quotes? For making changes to Python code, I would also like to avoid changing text in comments, either the '#' or '""

Re: disk based dictionaries

2004-12-03 Thread Chris Cioffi
I'd like to second this suggestion. While there are a few things you need to be aware of when writing your code (mostly taken care of in the latest release) it's a mostly trivial code change. (For me it was replacing a few dictionaries with PersistentMap objects and changing the base class of a f

Re: Python 2.4 and Tkinter

2004-12-03 Thread Jeffrey Barish
Eric Brunel wrote: > Jeffrey Barish wrote: > [snip] >> OK, I downloaded tcl8.4.8 and tk8.4.8. They are now installed. Back >> to >> python2.4 make. It now bombs at: >> >> gcc -pthread -shared build/temp.linux-i686-2.4/_tkinter.o >> build/temp.linux-i686-2.4/tkappinit.o -L/usr/X11R6/lib64 >> -L

Re: How did you learn Python?

2004-12-03 Thread Eric Pederson
"Shawn Milo" wrote: > My point is, I don't want something that is going to explain the > basic > programming concepts, but does give a good introduction to > Python-specific > things. I think you might appreciate "Learning Python" as it's written very succinctly, but it goes through the lang

Re: installing wxPython on Linux and Windows

2004-12-03 Thread Michael Hobbs
Daniel Bickett <[EMAIL PROTECTED]> wrote: >> I have no way to build it on Windows though, as I don't have Visual C++ >> 7.1, for that we must wait for Robin Dunn. > > Would it be too difficult of a task to try getting the build working > with Dev-C++? That way those without enough incentive for pu

Help with use of code.InteractiveInterpreter for multiline code

2004-12-03 Thread [EMAIL PROTECTED]
I'm trying to embed a Python interpreter in a GUI I'm developing, and I'm having trouble understanding the proper use of code.InteractiveInterpreter. Here's what I'm trying: % python Python 2.3 (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin Type "help",

Re: PyQt on a Server

2004-12-03 Thread Jerry Sievers
Bob Parnes <[EMAIL PROTECTED]> writes: > my /etc/ld.so.conf file already has that lib in it. So something else is > happening, but it clearly has nothing to do with python. Have you run ldconfig (probably /sbin/ldconfig) since the line was added to the /etc ld config file? -- ---

Re: hello all

2004-12-03 Thread Brian van den Broek
Ishwor Gurung said unto the world upon 2004-12-03 03:36: Hello all, I am just starting out on learning Python and joined this list. I have grabbed the Learning Perl book by Mark & David. This book really seems good so far.. the concepts are explained pretty nicely. :) I have a background a bit in

We what judge the string using which encode?

2004-12-03 Thread hlddn
unicode or other? we what judge? thank all -- http://mail.python.org/mailman/listinfo/python-list

Re: window size in IDLE

2004-12-03 Thread Brian van den Broek
p.kosina said unto the world upon 2004-12-03 04:04: Can I somehow in config-main.cfg set how big shall (and where) open the IDLE window? Cause in my w98 it is always opening so that I can not see the bottom line Thank you Pavel Hi Pavel, I had the same issue with IDLE 1.03 running on Pytho

Re: how to list files with extension .txt in windows?

2004-12-03 Thread ed
I do have permission toa ccess the file as that file is careted and read my me. I have read/write access to that location. regards Aaron Bingham <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > ed wrote: > > >I have used batch script to do it but it has a lot of issues with > >a

Re: How did you learn Python?

2004-12-03 Thread Philippe C. Martin
I used those: http://diveintopython.org/ http://www.fzu.cz/texty/ruzne/python/ http://www.pythonware.com/library/tkinter/introduction/ Then O'Reilly 'Programming Python' Regards, Philippe -- * Philippe C. Martin SnakeCard LLC www.snakecard.com * -- h

Re: How did you learn Python?

2004-12-03 Thread Brian van den Broek
Shawn Milo said unto the world upon 2004-12-03 09:54: I was just wondering what the best books were for learning Python. Which books are good for getting started, and which should be saved for later, or or not useful except as a reference for the learned? I have a decent programming background in V

Re: disk based dictionaries

2004-12-03 Thread Shivram U
Hi Steve, Larry, Thanks for the Help! I am using the pickle module now as i just need to store and retrieve dictionaries. Best Regards, Shivram U On Thu, 2004-12-02 at 23:59, Steve wrote: > Hi Shivam, > > If storing and retrieving is all that you are interested in, you > should consider 'pi

finding byte order

2004-12-03 Thread biner
Hello, I am using a program that has to read binary data from files coming from different machines. The file are always written with big endian. I am using the struct module to read the data and it is fine because I can specify in the format if the data are to be read with big or small endian co

freetype2 bindings?

2004-12-03 Thread Bill McClain
I have googled for Python bindings for freetype2 and have not found any recent projects. The freetype page references this at Sourceforge: http://www.sourceforge.net/projects/pyft2 ...but it is "nonexistent". Nothing else at Sourceforge for python + freetype. I will wrap the api myself (my fi

Re: pre-PEP generic objects

2004-12-03 Thread Ian Bicking
Istvan Albert wrote: Steven Bethard wrote: > The question is not how easy it is to write, > but how many times it's going to get written. but with that logic we could create a standard "looping" construct called loop(x) that would stand in for for i in range(x): IMHO, that example is quite the o

Re: Help with use of code.InteractiveInterpreter for multiline code

2004-12-03 Thread Jean Brouwers
Take a look at the source code of the code module (file code.py in the lib directory). The push() method of the InteractiveConsole class shows how to handle multi-line statements. Basically, keep collecting lines as long as the result returned by the runsource() call is true. Maybe instead of c

Difficulties POSTing to RDP Hierarchy Browse Page

2004-12-03 Thread Chris Lasher
Hello, I'm trying to write a tool to scrape through some of the Ribosomal Database Project II's (http://rdp.cme.msu.edu/) pages, specifically, through the Hierarchy Browser. (http://rdp.cme.msu.edu/hierarchy/) The Hierarchy Browser is accessed first through a page with a form. There are four fi

Re: Help with use of code.InteractiveInterpreter for multiline code

2004-12-03 Thread Jim Sizelove
[EMAIL PROTECTED] wrote: I'm trying to embed a Python interpreter in a GUI I'm developing, and I'm having trouble understanding the proper use of code.InteractiveInterpreter. [examples of calling the interpreter instance] What's the proper way to call the interpreter instance for a multiline exampl

Re: We what judge the language using which question?

2004-12-03 Thread David Fraser
hlddn wrote: unicode or other? we what judge? thank all You need to usually know the encoding from the context, otherwise you'll have to guess. In this regard I find http://www.eki.ee/letter/ helpful But if you want more details, you'll need to provide a clearer question ... David -- http://mail.

Psyco 1.3 released

2004-12-03 Thread Armin Rigo
Hi all, Psyco 1.3 has been released: http://sourceforge.net/project/showfiles.php?group_id=41036

Re: Module list generation

2004-12-03 Thread Scott David Daniels
Doug Kearns wrote: Is this the best/simplest way to generate a module list? python -c 'from pydoc import help; help("modules")' Thanks, Doug I am not sure if this is what you want, but how about: For python 2.4, try: python -c "import sys; print sorted(sys.modules)" For earlier pythons, use: pytho

  1   2   3   >