Re: Decimating Excel files

2007-02-05 Thread [EMAIL PROTECTED]
On Feb 5, 5:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 03 Feb 2007 18:52:10 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > On Feb 3, 1:43?pm, gonzlobo <[EMAIL PROTECTED]> wrote: > >> We have a data

Re: Recursive zipping of Directories in Windows

2007-02-05 Thread [EMAIL PROTECTED]
On Feb 4, 12:42 pm, "Jandre" <[EMAIL PROTECTED]> wrote: > On Feb 1, 9:39 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > > > > > Jandre wrote: > > > Hi > > > > I am a python novice and I am trying to write a python script (most of > &g

Re: Python design project

2007-02-05 Thread [EMAIL PROTECTED]
On Feb 5, 4:09 am, [EMAIL PROTECTED] wrote: > I think I need to explain the things better I think, so I do; > > First answering the questions above; I think i have to explain the > project more. > > With type I mean; typography/fonts/characters.. For my final exam I > creat

Re: Calling J from Python

2007-02-05 Thread [EMAIL PROTECTED]
On Feb 5, 8:48 am, "Gosi" <[EMAIL PROTECTED]> wrote: > It is quite easy to call J from Python > > http://groups.google.com/group/J-Programming/browse_thread/thread/5e8... There are a couple of issue that should be adressed. Am I going to jail if I write a program and

Running long script in the background

2007-02-06 Thread [EMAIL PROTECTED]
Hello, I am trying to write a python cgi that calls a script over ssh, the problem is the script takes a very long time to execute so Apache makes the CGI time out and I never see any output. The script is set to print a progress report to stdout every 3 seconds but I never see any output until t

Re: Running long script in the background

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 6, 8:36 am, "jasonmc" <[EMAIL PROTECTED]> wrote: > > Does anybody know a way to make output show in real time? > > You can put: #!/usr/bin/python -u > at the top of the script to have unbuffered binary stdout and stderr. Thanks. I tried that but it sti

Re: Running long script in the background

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 6, 10:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Feb 6, 8:36 am, "jasonmc" <[EMAIL PROTECTED]> wrote: > > > > Does anybody know a way to make output show in real time? > > > You can put: #!/usr/bin/python -u > >

Re: How can I use __setitem__ method of dict object?

2007-02-06 Thread [EMAIL PROTECTED]
On 6 fév, 16:23, "jeremito" <[EMAIL PROTECTED]> wrote: > Please excuse me if this is obvious to others, but I can't figure it > out. I am subclassing dict, but want to prevent direct changing of > some key/value pairs. For this I thought I should override th

Re: Running long script in the background

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 6, 2:02 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On 6 Feb 2007 07:37:33 -0800, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > > > Everything works fine until I call the popen function, then i

Re: Python does not play well with others

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 5, 5:45 pm, "Graham Dumpleton" <[EMAIL PROTECTED]> wrote: > On Feb 6, 8:57 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 5, 12:52 pm, John Nagle <[EMAIL PROTECTED]> wrote: > > > > [EMAIL PROTECTE

Re: Python does not play well with others

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 6, 4:27 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > In our case, the issue is this: we load a ton of info at server > > restart, from the database. Some of it gets processed a bit based on >

Can Parallel Python run on a muti-CPU server ?

2007-02-06 Thread [EMAIL PROTECTED]
Hi all, I'm interested in Parallel Python and I learned from the website of Parallel Python that it can run on SMP and clusters. But can it run on a our muti-CPU server ? We are running an origin3800 server with 128 CPUs. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: VIDEO: US OIL NAZIS MAKE FUN OF KIDS

2007-02-06 Thread [EMAIL PROTECTED]
There is more ... Some American soldiers raped Iraqi girls and The conservatives living in America still says they are not guilty.Bush must take responsible of these situation.These are massed most of Americans. [EMAIL PROTECTED] wrote: > Pretzel, please include scientific newsgroups l

Re: Threading in Python

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 7, 11:14 am, "S.Mohideen" <[EMAIL PROTECTED]> wrote: > Python is praised about - me too. But at one instance it fails. It fails to > behave as a true multi-threaded application. That means utilizing all the > CPUs parallely in the SMP efficiently stays as a dream

Re: Steiner Tree

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 7, 4:11 am, [EMAIL PROTECTED] wrote: > Suresh: > > > I could find GeoSteiner (http://www.diku.dk/geosteiner/) which is > > implemented as a C program. Anybody know python wrapper for this? > > Anybody tried this program in a python program? > > Once compile

Re: Running long script in the background

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 6, 5:26 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to write a python cgi that calls a script over ssh, the > problem is the script takes a very long time to execute so Apache > makes the CGI time out and I never see any output

Re: Running long script in the background

2007-02-06 Thread [EMAIL PROTECTED]
On Feb 6, 11:13 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > output = os.popen(command, 'r', 1) OOPS... I imagine the ridiculous buffer size is unnecessary... I was trying to get it to work with the original for loop iterating on output, it shoul

Re: Can Parallel Python run on a muti-CPU server ?

2007-02-06 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > Hi all, > > I'm interested in Parallel Python and I learned from the website of > Parallel Python > that it can run on SMP and clusters. But can it run on a our muti-CPU > server ? > We are running an origin3800 server with 128 CPUs. > >

Vim search under cursor

2007-02-07 Thread [EMAIL PROTECTED]
Hi, I am using gvim to edit python source files. When I press "*" or "#", I would want to search for the attribute name under the cursor and not the entire string. For example, If I have os.error and pressing * on top of error searches for os.error rather than error. How to set this, any Idea? th

Re: Graphs, bar charts, etc

2007-02-07 Thread [EMAIL PROTECTED]
On Feb 7, 4:46 am, "Joshua J. Kugler" <[EMAIL PROTECTED]> wrote: > Jan Danielsson wrote: > > Hello all, > > >I have some data in a postgresql table which I view through a web > > interface (the web interface is written in python -- using mod_python &g

Re: Running long script in the background

2007-02-07 Thread [EMAIL PROTECTED]
On Feb 8, 10:42 am, "Karthik Gurusamy" <[EMAIL PROTECTED]> wrote: > On Feb 6, 5:26 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I am trying to write a python cgi that calls a script over ssh, the > > proble

Re: Calling J from Python

2007-02-08 Thread [EMAIL PROTECTED]
, "Gosi" <[EMAIL PROTECTED]> wrote: > On Feb 6, 3:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > On Feb 5, 8:48 am, "Gosi" <[EMAIL PROTECTED]> wrote: > > > > It is quite easy to call J from Python > > > >

Re: Best Free and Open Source Python IDE

2007-02-08 Thread [EMAIL PROTECTED]
On 8 fév, 13:03, "Srikanth" <[EMAIL PROTECTED]> wrote: > Yes, > > All I need is a good IDE, I can't find something like Eclipse (JDT). > Eclipse has a Python IDE plug-in but it's not that great. Please > recommend. > emacs +python-mode +ecb -- http://mail.python.org/mailman/listinfo/python-list

Re: Best Free and Open Source Python IDE

2007-02-08 Thread [EMAIL PROTECTED]
Srikanth wrote: > All I need is a good IDE, I can't find something like Eclipse (JDT). > Eclipse has a Python IDE plug-in but it's not that great. Please > recommend. My favourite at the mo is Komodo Edit - free (though not OSS). On the OSS side, SPE is very good too - more of an IDE than Komodo

Re: Running Application Within Emacs

2007-02-08 Thread [EMAIL PROTECTED]
You can call scripts from the interpreter with execfile('script.py'). If you use ipython there is a %run command that executes a script. Enjoy! Bernhard On Feb 7, 3:26 pm, [EMAIL PROTECTED] wrote: > My editor is emacs in linux, and I have the python mode enabled. The two > me

Re: Newbie Question

2007-02-08 Thread [EMAIL PROTECTED]
does some things very well when it comes to gui.. You may want several languages unless you are doing simple tasks. On Feb 8, 6:12 pm, "John" <[EMAIL PROTECTED]> wrote: > Visual Basic is also good. > > "Reid" <[EMAIL PROTECTED]> wrote in message > > n

Re: excel find last column

2007-02-08 Thread [EMAIL PROTECTED]
> > I get the error that xlPrevious is not defined. > If you are using pythonwin, run the COM Makepy utility on Microsoft Excel Object Library. Then you have access to the defined constants as follows. >>> import win32com.client >>> win32com.client.constants.xlPrevious 2 Hope this helps. Paul

Python Papers second issue now available!

2007-02-08 Thread [EMAIL PROTECTED]
G'day Pythonistas! Welcome to Issue Two of The Python Papers. It has been an exciting time and we are pleased to have reached this milestone. I'd like to say a big hello to all the people who have provided their input in making this a reality: the python-advocacy list, comp.lang.python, the Python

Re: Python Papers second issue now available!

2007-02-08 Thread [EMAIL PROTECTED]
http://pythonpapers.cgpublisher.com/product/pub.169/prod.5 Sorry, forgot to add the URL -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a MoinMoin guru - MoinMoin+SpamBayes == no wiki spam?

2007-02-08 Thread [EMAIL PROTECTED]
I think it's a fantastic idea, myself. I think it should work well. It's probably important to filter the edit, not the whole article, otherwise the ham might obscure the spam. Cheers, -T -- http://mail.python.org/mailman/listinfo/python-list

Re: Thanks for the help

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 04:06, "Reid" <[EMAIL PROTECTED]> wrote: > Hello All > > Thanks for taking the time to answer my question. I do not need 3d stuff. > Just a couple of buttons and menu's. That's not "3D", that's GUI (Graphical User Interface). "

Re: Dictionary Question

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 04:02, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 08 Feb 2007 23:32:50 -0300, Sick Monkey <[EMAIL PROTECTED]> > escribió: > > > db = {'[EMAIL PROTECTED]':'none', '[EMAIL PROTECTED]':'none', > &g

Re: Thanks for the help

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 07:43, "azrael" <[EMAIL PROTECTED]> wrote: > On Feb 9, 4:06 am, "Reid" <[EMAIL PROTECTED]> wrote: > > > Hello All > > > Thanks for taking the time to answer my question. I do not need 3d stuff. > > Just a couple of buttons and

Re: resolve environment variables in string - regular expression

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 12:30, "Kai Rosenthal" <[EMAIL PROTECTED]> wrote: > Hello, > > how can I resolve envionment variables in a string. > e.g. > > strVar = /myVar > resolve in nothing. This raises a SyntaxError. Python is *not* a shell script language. > str1 = /my

Re: Newbie Question

2007-02-09 Thread [EMAIL PROTECTED]
On 9 fév, 00:16, [EMAIL PROTECTED] wrote: > On Feb 8, 2:17 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > > > > > On 2007-02-08, Reid <[EMAIL PROTECTED]> wrote: > > > > I am just starting to play with programing again as a hobby. I have heard > &g

Re: Is Python for me?

2007-02-09 Thread [EMAIL PROTECTED]
On Feb 9, 5:08 am, "jiddu" <[EMAIL PROTECTED]> wrote: > I'm planning to create a poker calculator, I learned some basic in > highschool years ago and I was told for beginners Python is a good > language to start. Be sure to check out the Python411 podcast http://

Re: python linux distro

2007-02-09 Thread [EMAIL PROTECTED]
Try this. It's a pre-build VMware image. Torrent hasn't worked for me. I tracked down a physical copy. http://www.vmware.com/vmtn/appliances/directory/289 -- http://mail.python.org/mailman/listinfo/python-list

Re: pygame and python 2.5

2007-02-09 Thread [EMAIL PROTECTED]
On Feb 9, 11:39�am, "Ben Sizer" <[EMAIL PROTECTED]> wrote: > On Feb 9, 1:48 pm, "siggi" <[EMAIL PROTECTED]> wrote: > > > @Ben Sizer > > Lucky I spotted this... > > > As a Python (and programming ) newbie �allow me a �- certainly naiv

Re: Glob returning an empty list when passed a variable

2007-02-10 Thread [EMAIL PROTECTED]
On Feb 10, 3:32 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > > >>> "% s" % 'banana' > 'banana' > >>> "% s" % 1 > '1' > >>> "% s" % -1 > '-1' > >>> > With some number: In [2]: "% 3s" % 'a' Out[2]: ' a' Hieu -- http://mail.python.org/mailman/listinfo/python-list

Re: pygame and python 2.5

2007-02-10 Thread [EMAIL PROTECTED]
On Feb 10, 4:07?pm, "Ben Sizer" <[EMAIL PROTECTED]> wrote: > On Feb 10, 6:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > On Feb 9, 11:39?am, "Ben Sizer" <[EMAIL PROTECTED]> wrote: > > > > Hopefully in the futur

Re: pygame and python 2.5

2007-02-10 Thread [EMAIL PROTECTED]
On Feb 10, 11:03�pm, [EMAIL PROTECTED] wrote: > � � >> However, the difference between the open-source people and Microsoft > � � >> is the the open-source people aren't being paid by you for the use of > � � >> their product, so they're not obligated in an

Re: pygame and python 2.5

2007-02-11 Thread [EMAIL PROTECTED]
On Feb 11, 1:35�am, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Feb 10, 4:07?pm, "Ben Sizer" <[EMAIL PROTECTED]> wrote: > >> On Feb 10, 6:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >

gvim: doc string editing

2007-02-11 Thread [EMAIL PROTECTED]
Hi, I am using gvim, and am looking for a way to tell gvim to automatically wrap long lines into multiple lines ( by automatically inserting the newline character) when I edit doc strings. I am sure somebody must have done this. - Suresh -- http://mail.python.org/mailman/listinfo/python-list

Re: gvim: doc string editing

2007-02-11 Thread [EMAIL PROTECTED]
On Feb 11, 7:01 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-02-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, I am using gvim, and am looking for a way to tell gvim to > > automatically wrap long lines into multiple lines ( by > > automatic

Re: pygame and python 2.5

2007-02-11 Thread [EMAIL PROTECTED]
On Feb 11, 4:24 am, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Feb 11, 1:35?am, Steve Holden <[EMAIL PROTECTED]> wrote: > [...] > >>>> After all, they have already given freely and generously, and if they > >>>&g

Re: pygame and python 2.5

2007-02-11 Thread [EMAIL PROTECTED]
On Feb 11, 5:33?am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 11 Feb 2007 01:08:21 -0800, [EMAIL PROTECTED] wrote: > >> An update is in the works for those > >> using more recent releases, > > > That's good news, although the responsibl

Re: Regular Expressions

2007-02-11 Thread [EMAIL PROTECTED]
> That's a little harsh -- regexes have their place, together with pointer > arithmetic, bit manipulations, reverse polish notation and goto. The > problem is when people use them inappropriately e.g. using a regex when a > simple string.find will do. > > > A quote attributed variously to > > Tim

Re: randomly generate n of each of two types

2007-02-12 Thread [EMAIL PROTECTED]
__ import %s" % function) print function, 'n =', nvalue, ':', t.timeit(number=100) Which yielded the following results: [EMAIL PROTECTED]:~$ python test.py test_index n = 1000 : 0.599834918976 test_index n = 1 : 5.78634595871 test_index n = 10 :

Re: Regular Expressions

2007-02-12 Thread [EMAIL PROTECTED]
HTML: htmllib and HTMLParser (both in the Python library), BeautifulSoup (again GIYF) XML: xml.* in the Python library. ElementTree (recommended) is included in Python 2.5; use xml.etree.cElementTree. The source of HTMLParser and xmllib use regular expressions for parsing out the data. htmllib c

Re: Newbie Question

2007-02-12 Thread [EMAIL PROTECTED]
On 9 fév, 14:06, Stef Mientki <[EMAIL PROTECTED]> wrote: > >> will explain the rest > > > Delphi is a (dying) proprietary, MS-Windows-only[1] software relying > > on a low-level language. > > Well it may be dying, > but for the moment it beats Python with

Re: c++ for python programmers

2007-02-12 Thread [EMAIL PROTECTED]
Thomas Nelson wrote: > I realize I'm approaching this backwards from the direction most > people go, but does anyone know of a good c/c++ introduction for > python programmers? I would stick with C unless you need to edit C++ code. (Calling them C/C++ doesn't make much sense as they're separate l

Templates for epydoc

2007-02-13 Thread [EMAIL PROTECTED]
Hello, I am looking for a good css template to be used with epydoc . Google did not help. Any links would be helpful. - Suresh -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Question

2007-02-13 Thread [EMAIL PROTECTED]
On 12 fév, 15:59, Stef Mientki <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On 9 fév, 14:06, Stef Mientki <[EMAIL PROTECTED]> wrote: > >>>> will explain the rest > >>> Delphi is a (dying) proprietary, MS-Windows-only[1] software relying

Re: Vim scripting with python

2007-02-13 Thread [EMAIL PROTECTED]
J. Clifford Dyer wrote: > Stuart D. Gathman wrote: > > On Sat, 03 Feb 2007 05:02:54 -0800, Tool69 wrote: > > > >> Does anyone have any advice, and more genraly how to script Vim with > >> Python ? > > > > :py import sys > > :py print sys.version > > :help :py > > > >> I know I can put some python f

Re: pygame and python 2.5

2007-02-13 Thread [EMAIL PROTECTED]
On Feb 13, 2:24 am, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Feb 11, 4:24 am, Steve Holden <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>> On Feb 11, 1:35?am, Steve Holden <[EMAIL PROTECTED]> wr

Recursive calls and stack

2007-02-13 Thread [EMAIL PROTECTED]
Hi, I have a program which literately finds the object that overlapping a point. The horizontal and vertical search are called recursively from inside each other. Is this way of implementation fill the stack space with the local variables inside each call. If this is not good, is there a better w

Re: Recursive calls and stack

2007-02-13 Thread [EMAIL PROTECTED]
On Feb 14, 11:45 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 14 Feb 2007 03:09:37 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > Hi, > > I have a program which literately finds the object that overlapping a > > poi

Re: Recursive calls and stack

2007-02-14 Thread [EMAIL PROTECTED]
On Feb 14, 11:09 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > I have a program which literately finds the object that overlapping a > point. The horizontal and vertical search are called recursively from > inside each other. > Is this way of impleme

Re: list of range of floats

2007-02-14 Thread [EMAIL PROTECTED]
a = 0.0 b = 10.0 inc = .2 flts = [] while a < b: flts.append(a) a += inc -- http://mail.python.org/mailman/listinfo/python-list

Re: threading and multicores, pros and cons

2007-02-14 Thread [EMAIL PROTECTED]
On Feb 14, 1:44 am, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > > When a customer comes with his new beautiful dual-core server and > > get a basic plone install up and running, he will immediately > > compare it to J2EE and wonder why he should pay a consultant to m

output to console and to multiple files

2007-02-14 Thread [EMAIL PROTECTED]
Hello, I searched on Google and in this Google Group, but did not find any solution to my problem. I'm looking for a way to output stdout/stderr (from a subprocess or spawn) to screen and to at least two different files. eg. stdout/stderr -> screen stdout -> log.out stderr -> log.err and if pos

Re: threading and multicores, pros and cons

2007-02-14 Thread [EMAIL PROTECTED]
On Feb 14, 4:37 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > Java has historically had no support at all for real multiple process > > solutions (akin to fork() or ZwCreateProcess() with NULL > &g

Re: Method overloading?

2007-02-15 Thread [EMAIL PROTECTED]
On 15 fév, 09:32, "Troy Melhase" <[EMAIL PROTECTED]> wrote: > On 14 Feb 2007 20:54:31 -0800, placid <[EMAIL PROTECTED]> wrote: > > > class Test: > > def __init__(self): > > pass > > > def puts(self, str): > > pr

Re: output to console and to multiple files

2007-02-15 Thread [EMAIL PROTECTED]
On Feb 14, 5:10 pm, "goodwolf" <[EMAIL PROTECTED]> wrote: > like this? > > class Writers (object): > > def __init__(self, *writers): > self.writers = writers > > def write(self, string): > for w in self.writers: >

Re: rot13 in a more Pythonic style?

2007-02-15 Thread [EMAIL PROTECTED]
On Feb 14, 11:46 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 14 Feb 2007 14:04:17 -0300, Andy Dingley <[EMAIL PROTECTED]> > escribió: > > > I still don't understand what a lambda is _for_ in Python. I know what > > they are, I kno

Re: output to console and to multiple files

2007-02-15 Thread [EMAIL PROTECTED]
On Feb 14, 6:52 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 14 Feb 2007 19:28:34 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > I'm looking for a way to output stdout/stderr (from a subprocess or > > spawn) to screen

The Python Papers Volume 2 Issue 1 HTML now available

2007-02-15 Thread [EMAIL PROTECTED]
http://archive.pythonpapers.org/ThePythonPapersVolume2Issue1.html Hi Pythonistas! The HTML version of the latest edition of The Python Papers is now available from the above URL. The editors understand that the web layout lacks the sophistication of the PDF, or indeed that possible under HTML. Ho

The Python Papers Volume 2 Issue 1 HTML now available

2007-02-15 Thread [EMAIL PROTECTED]
http://archive.pythonpapers.org/ThePythonPapersVolume2Issue1.html Hi Pythonistas! The HTML version of the latest edition of The Python Papers is now available from the above URL. The editors understand that the web layout lacks the sophistication of the PDF, or indeed that possible under HTML. Ho

Re: output to console and to multiple files

2007-02-16 Thread [EMAIL PROTECTED]
On Feb 15, 5:48 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 15 Feb 2007 19:35:10 -0300, Matimus <[EMAIL PROTECTED]> escribió: > > > > >> I think you should be able to use my or goodwolf's solution with the > >> subpro

MS Word mail merge automation

2007-02-16 Thread [EMAIL PROTECTED]
Hi Steve M. , Your articole is very interesting to me becouse I'm just tring to do the same thing. Could you please show me the last version of your python code so that I could use it for my purpose. I'm not a programmer but a my friend could help me for this. Thanks so much in advance for your

Re: output to console and to multiple files

2007-02-16 Thread [EMAIL PROTECTED]
On Feb 16, 4:07 pm, [EMAIL PROTECTED] wrote: > On Feb 16, 3:28 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > > That's ok inside the same process, but the OP needs to use it "from a > > subprocess or spawn". > > You h

download free computer books enjoy

2007-02-17 Thread [EMAIL PROTECTED]
Free Computer Education Ebooks,Tutorials and much more ASP, Business, C++, Careers, CISCO, e-books, Engineering, English, Filmmaking, Finance, Health, Leadership, Management, Marketing, Mathematics, Mobile, Oracle, Perl , Photography, PHP, Programming, VOIPand much more visit http

download free computer books enjoy

2007-02-17 Thread [EMAIL PROTECTED]
Free Computer Education Ebooks,Tutorials and much more ASP, Business, C++, Careers, CISCO, e-books, Engineering, English, Filmmaking, Finance, Health, Leadership, Management, Marketing, Mathematics, Mobile, Oracle, Perl , Photography, PHP, Programming, VOIPand much more visit http

Re: why I don't like range/xrange

2007-02-17 Thread [EMAIL PROTECTED]
Bruno Desthuilliers wrote: > Roel Schroeven a ecrit : > > Bruno Desthuilliers schreef: > > > >> stdazi a ecrit : > > > > > >>> for (i = 0 ; i < 10 ; i++) > >>>i = 10; > >> > >> > >> for i in range(10): > >>i = 10 > >> > >> What's your point, exactly ? > > > > > > In the first iteration, i i

Help Parsing XML Namespaces with BeautifulSoup

2007-02-17 Thread [EMAIL PROTECTED]
I'm trying to parse out some XML nodes with namespaces using BeautifulSoup. I can't seem to get the syntax correct. It doesn't like the colon in the tag name, and I'm not sure how to refer to that tag. I'm trying to get the attributes of this tag: The only way I've been able to get it is by doi

Re: function & class

2007-02-18 Thread [EMAIL PROTECTED]
Bruno Desthuilliers wrote: > Classes are used to define and create ('instanciate' in OO jargon) Good info from Bruno, just a quick note that it's spelled "instantiate" (I'm not usually big on spelling corrections but since you were teaching a new word I thought it might be worthwile). -- http://

ipython shortcut to reload modules

2007-02-19 Thread [EMAIL PROTECTED]
Hey! I'm using ipython as my python shell and often run scripts with the magic command %run: In [1]: %run script.py If modules are loaded within the script these are not reloaded when I rerun the script. Hence, when I changed some of the modules loaded, I have to call In [2]: reload(module1) Ou

Declare a variable global

2007-02-19 Thread [EMAIL PROTECTED]
Hi, I have the following code: colorIndex = 0; def test(): print colorIndex; This won't work. But it works if i do this: colorIndex = 0; def test(): global colorIndex; print colorIndex; My question is why do I have to explicit declaring 'global' for 'colorIndex'? Can't pyth

Re: Declare a variable global

2007-02-19 Thread [EMAIL PROTECTED]
On Feb 19, 11:09 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On 19 Feb 2007 09:04:19 -0800, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >Hi, > > >I have the following code: > > >colorIndex = 0; > > >def test(): >

Re: Bypassing __setattr__ for changing special attributes

2007-02-20 Thread [EMAIL PROTECTED]
On 20 fév, 05:39, "George Sakkis" <[EMAIL PROTECTED]> wrote: > I was kinda surprised that setting __class__ or __dict__ goes through > the __setattr__ mechanism, like a normal attribute: But __class__ and __dict___ *are* 'normal' attributes... -- http://mail.py

Re: Python 3.0 unfit for serious work?

2007-02-21 Thread [EMAIL PROTECTED]
On Feb 21, 1:44 pm, [EMAIL PROTECTED] (Aahz) wrote: > > Note that I believe it will be many years, perhaps even a decade, before > "python" on a Unix system starts up Python 3.0. That's a pretty safe bet considering that the factory-installed "python" on my Lin

Re: network simulator in Python ?

2007-02-21 Thread [EMAIL PROTECTED]
On Feb 21, 12:26 pm, "DanielJohnson" <[EMAIL PROTECTED]> wrote: > I was wondering if anyblody can suggest me a network simulator written > in python in which I can add on my own code and extend its > functionality. > > I am looking for a simulator which will si

Re: Convert to binary and convert back to strings

2007-02-21 Thread [EMAIL PROTECTED]
On Feb 21, 5:50 pm, "Harlin Seritt" <[EMAIL PROTECTED]> wrote: > Hi... > > I would like to take a string like 'supercalifragilisticexpialidocius' > and write it to a file in binary forms -- this way a user cannot read > the string in case they were try to o

Re: Creating a daemon process in Python

2007-02-22 Thread [EMAIL PROTECTED]
Thanks all, I understood there is no shortcut function like BSD daemon(). I'll do it manually using examples from cookbook... On 2月22日, 午前1:41, Benjamin Niemann <[EMAIL PROTECTED]> wrote: > Hello, > > Sakagami Hiroki wrote: > > What is the easiest way to create

How can I track/monitor an application and system resources.

2007-02-22 Thread [EMAIL PROTECTED]
Hello All, I'm a newbie to Python! I am trying to develop a program that monitors the performance of an application. The kind of information I am interested in is the CPU/ Process/Thread and memory performance. Specifically, I would like to track the following CPU usage Used Memory on Phone Fre

Re: How can I track/monitor an application and system resources.

2007-02-23 Thread [EMAIL PROTECTED]
The application is written in VC++ and we're using python to stress test it! Many thanks again! R. On 22 Feb, 20:07, Tim Golden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hello All, > > > I'm a newbie to Python! > > > I am trying to devel

The truth about the SigEx Foundry and the SigEx Ventures

2007-02-23 Thread [EMAIL PROTECTED]
First of all, I'd like to appologise for the noise and for cross-posting. This is my first and last e-mail on this list. As you may have noticed from the subject of the e-mail, I'm about to speak about the SigEx Ventures company, an organisation that appoints itself as the liaison between strateg

Re: Rational numbers

2007-02-23 Thread [EMAIL PROTECTED]
On Feb 23, 10:39 am, Martin Manns <[EMAIL PROTECTED]> wrote: > On Fri, 23 Feb 2007 09:52:06 -0600 > > Larry Bates <[EMAIL PROTECTED]> wrote: > > I quick search of Google turned up: > > >http://books.google.com/books?id=1Shx_VXS6ioC&pg=PA625&lpg=PA625

Re: Rational numbers

2007-02-23 Thread [EMAIL PROTECTED]
On Feb 23, 2:00 pm, [EMAIL PROTECTED] wrote: > On Feb 23, 10:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > On Feb 23, 10:39 am, Martin Manns <[EMAIL PROTECTED]> wrote: > > > > On Fri, 23 Feb 2007 09:52:06 -0600 >

Find the first element that meets the condition

2007-02-25 Thread [EMAIL PROTECTED]
Hi, I have a list and I want to find the first element that meets a condition. I do not want to use 'filter', because I want to come out of the iteration as soon as the first element is found. I have implemented it this way, may be, there should be a built in hiding somewhere in the standard librar

Python / Socket speed

2007-02-26 Thread [EMAIL PROTECTED]
Seems like sockets are about 6 times faster on OpenSUSE than on Windows XP in Python. http://pyfanatic.blogspot.com/2007/02/socket-performance.html Is this related to Python or the OS? /MSkou -- http://mail.python.org/mailman/listinfo/python-list

what the heck is going on here?

2007-02-26 Thread [EMAIL PROTECTED]
I found the following ways to generate permutations on the ASPN: Python Cookbook page. SLOW (two defs): def xcombinations(items,n): if n == 0: yield[] else: for i in xrange(len(items)): for cc in xcombinations(items[:i]+items[i+1:],n-1): yield [items[i

How to use cmp() function to compare 2 files?

2007-02-26 Thread [EMAIL PROTECTED]
Hi, i have 2 files which are different (1 line difference): $ diff groupresult20070226190027.xml groupresult20070226190027-2.xml 5c5 < x:22 y:516 w:740 h:120 area: --- > x:22 y:516 w:740 h:1202 area: But when I use the cmp() function to compare 2 files, it return "1", $ python Python 2.4.3 (#1,

Re: How to use cmp() function to compare 2 files?

2007-02-26 Thread [EMAIL PROTECTED]
On Feb 26, 10:22 pm, "Dan Bishop" <[EMAIL PROTECTED]> wrote: > On Feb 26, 10:09 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > i have 2 files which are different (1 line difference): > > $ diff groupresult2007

Re: How to use cmp() function to compare 2 files?

2007-02-26 Thread [EMAIL PROTECTED]
On Feb 26, 10:53 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Feb 26, 10:22 pm, "Dan Bishop" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 26, 10:09 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > Hi

Re: ANN: PyDSTool now compatible with numpy 1.0.1, scipy 0.5.2 and 64-bit CPUs.

2007-02-27 Thread [EMAIL PROTECTED]
On Feb 20, 4:16 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > Sounds GREAT ! > thank you ! > I just took a quick look, > the comparison to SimuLink looks good, > now if someone could make a comparison with Modelica;-) > > cheers, > Stef Mientki As far as I can tell

Re: Python, Embedded linux and web development

2007-02-27 Thread [EMAIL PROTECTED]
On 27 fév, 13:27, "Paul Boddie" <[EMAIL PROTECTED]> wrote: > On 27 Feb, 13:12, "Tzury" <[EMAIL PROTECTED]> wrote: > > > > > c) small web application that will be used as front end to configure > > the system (flat files and sqlite3 db ar

how to convert an integer to a float?

2007-02-27 Thread [EMAIL PROTECTED]
Hi, I have the following functions, but ' dx = abs(i2 - i1)/min(i2, i1)' always return 0, can you please tell me how can i convert it from an integer to float? def compareValue(n1, n2): i1 = int(n1) i2 = int(n2) dx = abs(i2 - i1)/min(i2, i1) print dx return dx < 0.05 -- ht

Re: Python Source Code Beautifier

2007-02-27 Thread [EMAIL PROTECTED]
On Feb 27, 3:45 am, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: > Hello, I did not find any reasonable pyhton source code beautifier > program (preferable gui). > > Some would ask why? Program it immediatly good. > > (BTW: Would be a nice project, if I would have more s

Re: Installing java2python (Newbie)

2007-02-27 Thread [EMAIL PROTECTED]
ommand Line window? I get the error "SyntaxError: invalid syntax" with the word "setup" On Feb 27, 10:34 pm, "Jeremy Dillworth" <[EMAIL PROTECTED]> wrote: > I haven't used that particular package, but the norm for setup.py is > this command line: > &

<    31   32   33   34   35   36   37   38   39   40   >