Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread Colin J. Williams
cirfu wrote: is there an IDE for python of the same quality as Eclipse or DEVC++? I am currently using the editor that coems iwth python and it is all fine but for bigger projects it would be nice to have some way to easier browse the projectfiles for example. I don't know these but you might

Re: Connecting a Desktop App to a Web App

2008-06-23 Thread Daniel Fetchinson
>>> Okay, well I wouldn't be creating the app, so, any hints on how to >>> figure out the API of a web app I don't know super well? >> >> Is it something like google, youtube, facebook, etc? These have >> publicly available API specifications. >> >> If it's just a random website without a well main

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread Tim Cook
I highly recommend Wing http://www.wingware.com . There are various licensing levels and even one for open source only developers. The support is AWESOME!. --Tim On Mon, 2008-06-23 at 09:15 -0700, cirfu wrote: > is there an IDE for python of the same quality as Eclipse or DEVC++? > > I am cur

MD5 hash for url and utf unicode converting to ascii

2008-06-23 Thread joe shoemaker
I would like to convert url into md5 hash. My question is that md5 hash will create collision at 2^64. If you do long(value,16), where value is the md5 hash string, would value returned from long(value, 16) be unique as long as md5 hashed string is unique? when you move md5 hashed string to long, w

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread lotrpy
On 6月24日, 上午7时31分, Tim Cook <[EMAIL PROTECTED]> wrote: > signature.asc > 1K下载 > > I highly recommend Winghttp://www.wingware.com. There are various > licensing levels and even one for open source only developers. The > support is AWESOME!. > > --Tim +1 for WingIDE, My favorite Python IDE. Code I

very large graph

2008-06-23 Thread chrispoliquin
I need to represent the hyperlinks between a large number of HTML files as a graph. My non-directed graph will have about 63,000 nodes and and probably close to 500,000 edges. I have looked into igraph (http://cneurocvs.rmki.kfki.hu/igraph/doc/ python/index.html) and networkX (https://networkx.la

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 cirfu wrote: > is there an IDE for python of the same quality as Eclipse or DEVC++? > > I am currently using the editor that coems iwth python and it is all > fine but for bigger projects it would be nice to have some way to > easier browse the projec

Re: insertion sorts...

2008-06-23 Thread Terry Reedy
Matimus wrote: May I suggest you look into using `enumerate`: for i, val in enumerate([4,5,6]): ... print i, val ... 0 4 1 5 2 6 It allows you to get the index and the value at the same time, which should eliminate the need for `aList.index`. I thought of suggesting that, but indirectly

Re: very large graph

2008-06-23 Thread bearophileHUGS
[EMAIL PROTECTED]: > My non-directed graph will have about 63,000 nodes > and and probably close to 500,000 edges. That's large, but today not very large anymore. Today very large graphs probably have more than millions of nodes... You have to try, but I think any Python graph lib may be fit for y

Re: tuple.index() and tuple.count()

2008-06-23 Thread Benjamin
On Jun 23, 3:13 pm, [EMAIL PROTECTED] wrote: > never mind... a coworker pointed me to this > > http://bugs.python.org/issue1696444 > > apparently they're there in py3k... and 2.6 -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread David
Rich Healey wrote: I don't want to start a flamewar. But I like vim. Hi Rich, could I take a look at your .vimrc , the python stuff. thanks -- http://mail.python.org/mailman/listinfo/python-list -- Powered by Gentoo GNU/LINUX http://www.linuxcrazy.com -- http://mail.python.org/mailman/listi

32-bit python memory limits?

2008-06-23 Thread Gary Robinson
I'm running a Python job on OS X 10.5.3 and the Python 2.5.2 that's available as a binary download at python.org for OS X. I ran a python program tonight that ended up using much more memory than anticipated. It just kept on using more and more memory. Instead of killing it, I just watched it,

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David wrote: > Rich Healey wrote: >> >> I don't want to start a flamewar. >> >> But I like vim. >> > Hi Rich, could I take a look at your .vimrc , the python stuff. > thanks > -- > http://mail.python.org/mailman/listinfo/python-list > hi my .vimrc i

Re: Passing arguments to subclasses

2008-06-23 Thread Scott David Daniels
John Dann wrote: ... the answer might have been of the 'yes, but' kind. Well, if you really care, there is a 'yes, but' answer, but it only has to do with multiple inheritance, and hence is a bit esoteric for the issues you are currently addressing. This is not meant to be a tease; I think it w

Re: MD5 hash for url and utf unicode converting to ascii

2008-06-23 Thread Daniel Pitts
joe shoemaker wrote: I would like to convert url into md5 hash. My question is that md5 hash will create collision at 2^64. If you do long(value,16), where value is the md5 hash string, would value returned from long(value, 16) be unique as long as md5 hashed string is unique? when you move md5 h

Re: Question: How do I format printing in python

2008-06-23 Thread Mark Tolonen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi All, How do I format printed data in python? I could not find this in the Python Reference Manual: http://docs.python.org/ref/print.html Nor could I find it in Matloff's great tutorial: http://heather.cs.ucdavis.edu/~matloff/Python

Re: Question: How do I format printing in python

2008-06-23 Thread Larry Bates
[EMAIL PROTECTED] wrote: Hi All, How do I format printed data in python? I could not find this in the Python Reference Manual: http://docs.python.org/ref/print.html Nor could I find it in Matloff's great tutorial: http://heather.cs.ucdavis.edu/~matloff/Python/PythonIntro.pdf For example, how d

Re: 32-bit python memory limits?

2008-06-23 Thread Larry Bates
Gary Robinson wrote: I'm running a Python job on OS X 10.5.3 and the Python 2.5.2 that's available as a binary download at python.org for OS X. I ran a python program tonight that ended up using much more memory than anticipated. It just kept on using more and more memory. Instead of killing i

Re: String question

2008-06-23 Thread Mark Tolonen
"Andreu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Yes, ... don't ask me why, but in fact v1,v2,v3 = str1.split() does not seem to work. My original problem was I forgot about the parenthesis as Tim point out. So I ended up converting to a list as in: v = str1.split() and acc

Re: 32-bit python memory limits?

2008-06-23 Thread Grant Edwards
On 2008-06-24, Gary Robinson <[EMAIL PROTECTED]> wrote: > I'm running a Python job on OS X 10.5.3 and the Python 2.5.2 > that's available as a binary download at python.org for OS X. > > I ran a python program tonight that ended up using much more > memory than anticipated. It just kept on using m

Re: Using Python to run SSH commands on a remote server

2008-06-23 Thread subeen
On Jun 24, 3:51 am, John Salerno <[EMAIL PROTECTED]> wrote: > Jeffrey Froman wrote: > > Also note that "all .py files on my web server" is not necessarily > > restricted to CGI scripts -- and therein lies the real gist of my > > cautionary note. > > Yeah, I realized that afterwards. Good point. I w

Re: Question: How do I format printing in python

2008-06-23 Thread Maric Michaud
Le Tuesday 24 June 2008 05:33:01 Larry Bates, vous avez écrit : > [EMAIL PROTECTED] wrote: ... > > data = '''512 Jun 5 2004 X11r6 > 22 Jan 17 2005 a2p > 22 Jan 17 2005 acctcom > 5374 Sep 15 2002 acledit > 5664 May 13 2004 aclget > 12020 May 13 2004 aclput > 115734 Jun 2 2004 adb > 46518 Jun 4 2004

Is there any way to find out sizeof an object

2008-06-23 Thread srinivasan srinivas
Hi, I have written a class which has some attributes. I want to know how do i find out the size of an instance of this class?? class T(object):     def __init__(self, fn_name, *args, **kwds):         self.fn_name = fn_name         self.args = args         self.kwds = kwds Thanks, Srini Bol

Fwd: xml to mysql (vice versa ) too

2008-06-23 Thread swapna mudavath
can anybody help me in this -swapna -- Forwarded message -- From: swapna mudavath <[EMAIL PROTECTED]> Date: Mon, Jun 23, 2008 at 5:27 PM Subject: xml to mysql (vice versa ) too To: [email protected] Hi, I need to write a python script to store data which is in XML to M

Re: An idiom for code generation with exec

2008-06-23 Thread eliben
> If code generation is not the best, and I fail to see any performance issue > that could explain such a choice, except a misunderstanding of > what "compilation" means in python, just don't use it, use closures or > callable instances, there are many way to achieve this. And while we're on the t

Re: Fwd: xml to mysql (vice versa ) too

2008-06-23 Thread Maric Michaud
Le Tuesday 24 June 2008 07:08:46 swapna mudavath, vous avez écrit : > can anybody help me in this > > -swapna > > -- Forwarded message -- > From: swapna mudavath <[EMAIL PROTECTED]> > Date: Mon, Jun 23, 2008 at 5:27 PM > Subject: xml to mysql (vice versa ) too > To: Python-list@

Re: An idiom for code generation with exec

2008-06-23 Thread Terry Reedy
eliben wrote: And while we're on the topic of what compilation means in Python, It depends on the implementation. I'm not sure I fully understand the difference between compiled (.pyc) code and exec-ed code. Is the exec-ed code turned to bytecode too, i.e. it will be as efficient as comp

Re: An idiom for code generation with exec

2008-06-23 Thread Maric Michaud
Le Tuesday 24 June 2008 07:18:47 eliben, vous avez écrit : > > If code generation is not the best, and I fail to see any performance > > issue that could explain such a choice, except a misunderstanding of > > what "compilation" means in python, just don't use it, use closures or > > callable insta

Python 3000 vs Perl 6

2008-06-23 Thread Corey G.
If Perl 6 ever does get on its feet and get released, how does it compare to Python 3000? Is Perl 6 more like Java now with Parrot? I just want to make sure that Python is staying competitive. If this is the wrong mailing list, just let me know. Thanks! -- http://mail.python.org/mailman/

Any GUI lib wiget is capable of a WYSIWYG editor?

2008-06-23 Thread oyster
that is an html editor with text and picture, while the picture is linked to the local image file. for wxPython, the richtextcontrol save the image as en embedded object, so it is not my choice is there any other GUI lib and/or sample code to do so? thanks -- http://mail.python.org/mailman/listi

Re: Is there any way to find out sizeof an object

2008-06-23 Thread Martin v. Löwis
> I have written a class which has some attributes. I want to know how > do i find out the size of an instance of this class?? > class T(object): > def __init__(self, fn_name, *args, **kwds): > self.fn_name = fn_name > self.args = args > self.kwds = kwds In Python 2.6,

<    1   2