Re: 有中国人乎?

2008-04-22 Thread Jack
Jeroen Ruigrok van der Werven 写道: (My Mandarin is not very good.) -On [20080413 09:24], [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Python这种语言有前途吗?在下想学他一学. Python indeed does have a good future. I am not quite sure with 在下想学他一学 if you are asking for someone to teach to you or if you want to

Re: IDLE gripe and question

2008-04-22 Thread Dick Moores
At 09:30 PM 4/22/2008, Mensanator wrote: First, find the shortcut that lauches IDLE. On my Vista system it's in C:\Program Data\Microsoft\Windows\Start Menu\Programs\Python 2.5 XP will be different, I think there're start menu directories under each user and a default one. Anyway, once you hav

Re: Python Success stories

2008-04-22 Thread Steve Holden
Roy Smith wrote: In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: Challenge him to a dual with dead kippers at twenty paces. You gotta be careful about stuff like this. You might slap him with a dead kipper only to discover he's got a dead camel in his pocket. Of c

Designer Louis Vuitton Taiga Computer Case Odessa - Green M30834 Green Handbags, Replica, Fake

2008-04-22 Thread watches0759
Designer Louis Vuitton Taiga Computer Case Odessa - Green M30834 Green Handbags, Replica, Fake Our Louis Vuitton Taiga Computer Case Odessa - Green M30834 Green is a vibrant mix of style and pleasure, offering you exact copies of the original handbags. If you need a cool and most welcomed change t

Re: IDLE gripe and question

2008-04-22 Thread Gabriel Genellina
En Wed, 23 Apr 2008 01:30:47 -0300, Mensanator <[EMAIL PROTECTED]> escribió: On Apr 22, 7:42�pm, Dick Moores <[EMAIL PROTECTED]> wrote: I have IDLE 1.2.1, on Win XP, Python 2.5.1. The first time I use File | Open to open a script, the Open dialogue box always opens at E:\Python25\Lib\idlelib.

"Dreaming in Code"

2008-04-22 Thread Paul McGuire
Haven't seen anyone mention this book, it is a "Soul of a New Machine"- style record of the Chandler project. Since Chandler uses Python and Twisted, and employed a few Python celebs, I thought folks on this list might have already read the hardcover version. I just picked up the paperback at B&N

Re: Explicit variable declaration

2008-04-22 Thread Gabriel Genellina
En Tue, 22 Apr 2008 21:39:41 -0300, Filip Gruszczyński <[EMAIL PROTECTED]> escribió: Hello everyone! It is my first message on this list, therefore I would like to say hello to everyone. I am fourth year student of CS on the Univeristy of Warsaw and recently I have become very interested in d

Re: about python

2008-04-22 Thread [EMAIL PROTECTED]
On Apr 22, 10:50 pm, [EMAIL PROTECTED] wrote: > How can python execute in browser? > > Mukul Depends on the browser and which compilers/postprocessors you're willing to use. The Grail browser supports python natively, there are python plugins for some other browsers, and there are C# plugins for o

Re: Python Success stories

2008-04-22 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: > Challenge him to a dual with dead kippers at twenty paces. You gotta be careful about stuff like this. You might slap him with a dead kipper only to discover he's got a dead camel in his pocket. Of course, there's alway

Re: Python Success stories

2008-04-22 Thread Steve Holden
Ben Finney wrote: Steve Holden <[EMAIL PROTECTED]> writes: Challenge him to a dual with dead kippers at twenty paces. Please, have some dignity! Challenge him to a duel with live kippers. Live, *rabid* kippers. With frickin' laser beams on their heads. I like your style. Though considerin

Re: Python Success stories

2008-04-22 Thread Ben Finney
Steve Holden <[EMAIL PROTECTED]> writes: > Challenge him to a dual with dead kippers at twenty paces. Please, have some dignity! Challenge him to a duel with live kippers. Live, *rabid* kippers. With frickin' laser beams on their heads. -- \ "A man's only as old as the woman he feels."

Re: Python Success stories

2008-04-22 Thread Steve Holden
Nikita the Spider wrote: In article <[EMAIL PROTECTED]>, azrael <[EMAIL PROTECTED]> wrote: Which big aplications are written in python. I see its development, But i can't come up with a big name. I know that there are a lot of companys using python, but is there anythong big written only in p

Re: IDLE gripe and question

2008-04-22 Thread Mensanator
On Apr 22, 7:42�pm, Dick Moores <[EMAIL PROTECTED]> wrote: > I have IDLE 1.2.1, on Win XP, Python 2.5.1. > > The first time I use File | Open to open a script, the Open dialogue > box always opens at E:\Python25\Lib\idlelib. Most of the scripts I > want to access are in E:\PythonWork. There doesn't

Re: Python Success stories

2008-04-22 Thread Steve Holden
azrael wrote: Hy guys, A friend of mine i a proud PERL developer which always keeps making jokes on python's cost. Please give me any arguments to cut him down about his commnets like :"keep programing i python. maybe, one day, you will be able to program in VisualBasic" This hurts. Please give

Re: pop langs website ranking

2008-04-22 Thread Roedy Green
On Tue, 22 Apr 2008 14:41:33 -0700 (PDT), "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who said : > alexa I was shocked at the detailed information Alexa (owned by Amzon.com)_ had about my website. I wrote them and asked how they got it. They said volunteers

Re: pop langs website ranking

2008-04-22 Thread Lew
Gerry Ford wrote: "Paul McGuire" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Apr 22, 4:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: In February, i spent few hours researching the popularity of some computer language websites. I seem to recall this exact same post f

Re: about python

2008-04-22 Thread Jason Scheirer
On Apr 22, 7:50 pm, [EMAIL PROTECTED] wrote: > How can python execute in browser? > > Mukul Very carefully. Alternately, applets/Jython. -- http://mail.python.org/mailman/listinfo/python-list

Re: list manipulation

2008-04-22 Thread Mike Driscoll
John Machin wrote: Mike Driscoll wrote: Well you could always do something like this: output = ';'.join(roadList) Which will put single quotes on the ends. No, it doesn't. You are conflating foo and repr(foo). I suppose if you want to be silly, you could do this: output = '"%s"' % ';'.j

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-22 Thread Harishankar
On Wednesday 23 Apr 2008 08:27:01 Heikki Toivonen wrote: > At OSAF we used a slightly modified killableprocess module with a > wrapper to deal with complexities of various redirections in > cross-platform way. I actually blogged about this a week ago so rather > than rehash the issues I'll point yo

Re: about python

2008-04-22 Thread Mike Driscoll
[EMAIL PROTECTED] wrote: How can python execute in browser? Mukul -- http://mail.python.org/mailman/listinfo/python-list Check out IronPython, which you can use with Silverlight or Mono. Or you could look at any of the cool Python Web Frameworks, such as TurboGears, Pylons, CherryPy, or Dj

Re: IDLE gripe and question

2008-04-22 Thread Guilherme Polo
2008/4/22, Dick Moores <[EMAIL PROTECTED]>: > I have IDLE 1.2.1, on Win XP, Python 2.5.1. > > The first time I use File | Open to open a script, the Open dialogue box > always opens at E:\Python25\Lib\idlelib. Here on Linux it opens at the directory from where idle was executed, so I can't exactl

Designer Versace V Bag - Khaki 6532 Khaki Handbags, Replica, Fake

2008-04-22 Thread watches0684
Designer Versace V Bag - Khaki 6532 Khaki Handbags, Replica, Fake Our Versace V Bag - Khaki 6532 Khaki is a vibrant mix of style and pleasure, offering you exact copies of the original handbags. If you need a cool and most welcomed change to your style, a change you certainly deserve, choose one o

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-22 Thread Harishankar
On Wednesday 23 Apr 2008 02:25:14 Christian Heimes wrote: > Nick Craig-Wood schrieb: > > Nothing apart from the fact it doesn't work on windows. The buffering > > will cause you grief too. If you want to do this properly under unix > > use pexpect not subprocess. > > > > http://www.noah.org/wik

Re: pop langs website ranking

2008-04-22 Thread Gerry Ford
"Paul McGuire" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Apr 22, 4:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > In February, i spent few hours researching the popularity of some > computer language websites. > I seem to recall this exact same post from *last* Febru

Re: Explicit variable declaration

2008-04-22 Thread Ben Finney
"Filip Gruszczyński" <[EMAIL PROTECTED]> writes: > I have become very interested in dynamically typed languages, > especially Python. Good to know. Welcome to the group. > I would like to ask, whether there is any way of explicitly > declaring variables used in a function? Declaring what about

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-22 Thread Heikki Toivonen
Harishankar wrote: > Sorry to start off on a negative note in the list, but I feel that the Python > subprocess module is sorely deficient because it lacks a mechanism to: At OSAF we used a slightly modified killableprocess module with a wrapper to deal with complexities of various redirections i

about python

2008-04-22 Thread mranjan
How can python execute in browser? Mukul -- http://mail.python.org/mailman/listinfo/python-list

Re: Explicit variable declaration

2008-04-22 Thread Benjamin
On Apr 22, 7:39 pm, "Filip Gruszczyński" <[EMAIL PROTECTED]> wrote: > Hello everyone! > > It is my first message on this list, therefore I would like to say > hello to everyone. I am fourth year student of CS on the Univeristy of > Warsaw and recently I have become very interested in dynamically ty

Re: Explicit variable declaration

2008-04-22 Thread Dan Bishop
On Apr 22, 7:39 pm, "Filip Gruszczyński" <[EMAIL PROTECTED]> wrote: > Hello everyone! > > It is my first message on this list, therefore I would like to say > hello to everyone. I am fourth year student of CS on the Univeristy of > Warsaw and recently I have become very interested in dynamically ty

Re: pop langs website ranking

2008-04-22 Thread Paul McGuire
On Apr 22, 4:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > In February, i spent few hours researching the popularity of some > computer language websites. > I seem to recall this exact same post from *last* February. > I'll be doing some research sometimes soon on this. > ... and no "res

Re: python has memory leak?

2008-04-22 Thread Jean-Paul Calderone
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), [EMAIL PROTECTED] wrote: Hi all, I feel that my python script is leaking memory. And this is a test I have: [snip] The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after the o

Explicit variable declaration

2008-04-22 Thread Filip Gruszczyński
Hello everyone! It is my first message on this list, therefore I would like to say hello to everyone. I am fourth year student of CS on the Univeristy of Warsaw and recently I have become very interested in dynamically typed languages, especially Python. I would like to ask, whether there is any

Re: python-ldap: searching without specifying an OU?

2008-04-22 Thread hotani
Thanks for the response. The user I'm connecting as should have full access but I'll double check tomorrow. This is the LDAP error that is returned when I leave out the OU: {'info': ': LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed

IDLE gripe and question

2008-04-22 Thread Dick Moores
I have IDLE 1.2.1, on Win XP, Python 2.5.1. The first time I use File | Open to open a script, the Open dialogue box always opens at E:\Python25\Lib\idlelib. Most of the scripts I want to access are in E:\PythonWork. There doesn't seem to be a way to change the default folder to E:\PythonWork,

Re: Lists: why is this behavior different for index and slice assignments?

2008-04-22 Thread John Machin
John Salerno wrote: Steve Holden wrote: Assignment to a list *element* rebinds the single element to the assigned value. Ok, I understand that. Assignment to a list *slice* has to be of a list [or iterable, as per Duncan], and it replaces the elements in the slice by assigned elements.

Re: Lists: why is this behavior different for index and slice assignments?

2008-04-22 Thread Matt Nordhoff
John Salerno wrote: >> replaces the elements in the slice by assigned elements. > > > I don't understand the second part of that sentence. I'm assuming "it" > refers to the list being assigned, "replaces the elements" is > self-evident, but what does "by assigned elements" refer to? It seems > wh

Re: Lists: why is this behavior different for index and slice assignments?

2008-04-22 Thread John Salerno
Steve Holden wrote: Assignment to a list *element* rebinds the single element to the assigned value. Ok, I understand that. Assignment to a list *slice* has to be of a list [or iterable, as per Duncan], and it replaces the elements in the slice by assigned elements. I don't understand t

Re: python has memory leak?

2008-04-22 Thread Christian Heimes
[EMAIL PROTECTED] schrieb: > The version of my python is: > Python 2.4.4 Stackless 3.1b3 060516 (#71, Oct 31 2007, 14:22:28) [MSC ^ This is the wrong list to ask for memory leaks of Stackless ;) Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Success stories

2008-04-22 Thread dimitri pater
http://code.google.com/appengine/docs/whatisgoogleappengine.html 2008/4/22 Ivan Illarionov <[EMAIL PROTECTED]>: > On 22 апр, 14:25, azrael <[EMAIL PROTECTED]> wrote: > [] > > > This hurts. Please give me informations about realy famous > > aplications. > > What do you mean by "really famous

Re: pop langs website ranking

2008-04-22 Thread Cor Gest
Some entity, AKA "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote this mindboggling stuff: (selectively-snipped) > My website is now actually ranked higher than PaulGraham.com ! well well, so your site is more popular. You can make it even more popular, you know. Just rename some lame article about

Re: list manipulation

2008-04-22 Thread John Machin
Mike Driscoll wrote: Well you could always do something like this: output = ';'.join(roadList) Which will put single quotes on the ends. No, it doesn't. You are conflating foo and repr(foo). I suppose if you want to be silly, you could do this: output = '"%s"' % ';'.join(roadList) *IF*

python has memory leak?

2008-04-22 Thread yzghan
Hi all, I feel that my python script is leaking memory. And this is a test I have: log.write("[" + timestamp() + "] " + "test() ... memory usage: " + " ".join(repr(i/(1024*1024)) for i in getMemInfo()) + "\n") m = {} i = 1000*1000 while i > 0: i = i - 1 m.setdefaul

Re: list manipulation

2008-04-22 Thread John Machin
Joe Riopel wrote: On Tue, Apr 22, 2008 at 4:55 PM, DataSmash <[EMAIL PROTECTED]> wrote: Hello, I have a list that looks like this: roadList = ["Motorways","Local","Arterial"] I want to apply some code so that the output looks like this: "Motorways;Local;Arterial" How can this be done with

pop langs website ranking

2008-04-22 Thread [EMAIL PROTECTED]
In February, i spent few hours researching the popularity of some computer language websites. (The message can be found here: http://xahlee.org/lang_traf/lang_sites.html http://community.livejournal.com/lisp/42778.html http://groups.google.com/group/comp.lang.perl.misc/msg/59c87899c2668f4c )

Re: subprocess module is sorely deficient?

2008-04-22 Thread Mike Hansen
> I think the best solution would be to port Pexpect to windows which > wouldn't be that difficult according to my reading of the code. If > only I had more free time! Sage ( http://www.sagemath.org ) uses pexpect fairly extensively to interface with all sorts of other systems. We recently recei

New technology data storage. Get 2GB Free (Limited time offer)

2008-04-22 Thread a . ktechnology5
Get free 2GB online web drive. Get a secure 2GB free online storage solution. Forget the hassles of CDs, floppies and tape drives for your data storage. Whether it is your tax return, music collection or irreplaceable digital photographs, you have the piece of mind that your data is stored in our h

Re: list manipulation

2008-04-22 Thread DataSmash
Joe & Mike, Thanks for your input! R.D. -- http://mail.python.org/mailman/listinfo/python-list

Re: python-ldap: searching without specifying an OU?

2008-04-22 Thread Michael Ströder
hotani wrote: I am attempting to pull info from an LDAP server (Active Directory), but cannot specify an OU. In other words, I need to search users in all OU's, not a specific one. If the user you're binding with has the right in AD to search the whole subtree you can start searching at the do

Re: Spawning a thread and printing dots until it finishes

2008-04-22 Thread D'Arcy J.M. Cain
On Tue, 22 Apr 2008 13:45:32 -0700 Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Tue, 22 Apr 2008 13:25:07 -0400, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > I think that there are two things that you need to wrap your head > > around before u

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-22 Thread Christian Heimes
Martin v. Löwis schrieb: >> 2. Kill the subprocess in a platform independent manner (i.e. no third party >> modules and no hacks). > > What's wrong with the .terminate method of the Popen object? It's brand new ;) Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: list manipulation

2008-04-22 Thread Vlastimil Brom
2008/4/22, DataSmash <[EMAIL PROTECTED]>: > > Hello, > > I have a list that looks like this: > roadList = ["Motorways","Local","Arterial"] > > I want to apply some code so that the output looks like this: > "Motorways;Local;Arterial" > > ...in other words, I want each item in the list separated by

Re: list manipulation

2008-04-22 Thread Mike Driscoll
On Apr 22, 3:55 pm, DataSmash <[EMAIL PROTECTED]> wrote: > Hello, > > I have a list that looks like this: > roadList = ["Motorways","Local","Arterial"] > > I want to apply some code so that the output looks like this: > "Motorways;Local;Arterial" > > ...in other words, I want each item in the list

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-22 Thread Martin v. Löwis
> 2. Kill the subprocess in a platform independent manner (i.e. no third party > modules and no hacks). What's wrong with the .terminate method of the Popen object? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: list manipulation

2008-04-22 Thread Joe Riopel
On Tue, Apr 22, 2008 at 4:55 PM, DataSmash <[EMAIL PROTECTED]> wrote: > Hello, > > I have a list that looks like this: > roadList = ["Motorways","Local","Arterial"] > > I want to apply some code so that the output looks like this: > "Motorways;Local;Arterial" > How can this be done with the LE

Re: Python Success stories

2008-04-22 Thread Ivan Illarionov
On 22 апр, 14:25, azrael <[EMAIL PROTECTED]> wrote: [] > This hurts. Please give me informations about realy famous > aplications. What do you mean by "really famous"? Information is here: http://www.python.org/about/quotes/ Are YouTube and Google famous enough? -- Ivan -- http://mail.pytho

list manipulation

2008-04-22 Thread DataSmash
Hello, I have a list that looks like this: roadList = ["Motorways","Local","Arterial"] I want to apply some code so that the output looks like this: "Motorways;Local;Arterial" ...in other words, I want each item in the list separated by a ';' and then the whole thing surrounded by quotes. How c

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-22 Thread Christian Heimes
Nick Craig-Wood schrieb: > Nothing apart from the fact it doesn't work on windows. The buffering > will cause you grief too. If you want to do this properly under unix > use pexpect not subprocess. > > http://www.noah.org/wiki/Pexpect > > Proper non blocking IO is an absolute nightmare under

Re: Choosing log file destination in logging configuration file

2008-04-22 Thread guybenron
On Apr 22, 12:57 pm, Miki <[EMAIL PROTECTED]> wrote: > Hello, > > > > > So far so good. In the relevant applications, the code looks something > > like this: > > logging.config.fileConfig('log.ini') > > logger = logging.getLogger('log.regular') logger = > > logging.getLogger('log.daemonic') > > ..

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-22 Thread Christian Heimes
Harishankar schrieb: > 2. Kill the subprocess in a platform independent manner (i.e. no third party > modules and no hacks). I've added the feature to the Popen class a few days ago. The new methods are kill(), terminate() and send_signal(sig). On Windows all methods just fall back to _subprocess

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-22 Thread Nick Craig-Wood
Mark Wooding <[EMAIL PROTECTED]> wrote: > Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > Harishankar <[EMAIL PROTECTED]> wrote: > >> 1. Create non-blocking pipes which can be read in a separate thread > >> [...] > > > > You are correct on both of those points. > > I must be missing something.

Re: Python Success stories

2008-04-22 Thread Mike Hansen
On Apr 22, 3:25 am, azrael <[EMAIL PROTECTED]> wrote: > Hy guys, > A friend of mine i a proud PERL developer which always keeps making > jokes on python's cost. > > Please give me any arguments to cut him down about his commnets > like :"keep programing i python. maybe, one day, you will be able to

Re: question about the mainloop

2008-04-22 Thread globalrev
On 21 Apr, 07:31, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 21 Apr 2008 00:57:38 -0300, globalrev <[EMAIL PROTECTED]> escribió: > > > > > On 21 Apr, 04:26, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > >> En Sun, 20 Apr 2008 20:24:04 -0300, globalrev <[EMAIL PROTECTED]> escribió:

Re: Choosing log file destination in logging configuration file

2008-04-22 Thread Miki
Hello, > So far so good. In the relevant applications, the code looks something > like this: > logging.config.fileConfig('log.ini') > logger = logging.getLogger('log.regular') logger = > logging.getLogger('log.daemonic') > .. and start logging. > > The thorn in my side is that after the fileConfi

Re: Setting expirty data on a cookie

2008-04-22 Thread David
On Tue, Apr 22, 2008 at 6:21 PM, sophie_newbie <[EMAIL PROTECTED]> wrote: > Does anyone know how to do this? I can't seem to make it work. > > I'm using: > > c = Cookie.SimpleCookie() > c['data'] = "unamepwordwhatever" > c.expires = time.time() + 300 > print c > > > This doesn't seem to work,

Re: Python Success stories

2008-04-22 Thread Gabriel Genellina
En Tue, 22 Apr 2008 13:50:54 -0300, Jérémy Wagner <[EMAIL PROTECTED]> escribió: > Sure. Python is more readable than Perl, though I have found Python > to have a weird behavior regarding this little issue : > > How can you explain that Python doesn't support the ++ opeator, > whereas at the same t

Re: Spawing a thread and printing dots until it finishes

2008-04-22 Thread Diez B. Roggisch
Larry Bates schrieb: sophie_newbie wrote: On Apr 22, 4:41 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: On Tue, 22 Apr 2008 07:10:07 -0700 (PDT) sophie_newbie<[EMAIL PROTECTED]> wrote: import threading class MyThread ( threading.Thread ): def run ( self ): myLong

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-22 Thread Mark Wooding
Kenneth McDonald <[EMAIL PROTECTED]> wrote: > Sadly. python-beautifulsoup is a Debian package, so ftp://ftp.debian.org/debian/pool/main/b/beautifulsoup/beautifulsoup_3.0.4.orig.tar.gz should be a copy of the (unmodified) upstream source. -- [mdw] -- http://mail.python.org/mailman/listinfo/p

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-22 Thread David
On Tue, Apr 22, 2008 at 8:36 PM, Kenneth McDonald <[EMAIL PROTECTED]> wrote: > Sadly. > > Thanks, > Ken > -- I checked, it's up now. You can also download packaged versions from Linux distros. eg: http://packages.debian.org/sid/web/python-beautifulsoup (there's a link to the tar.gz on the rig

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-22 Thread Larry Bates
Kenneth McDonald wrote: Sadly. Thanks, Ken easy_install BeautifulSoup worked for me a couple of days ago. Of course you ahve to have easy_install running, but that is quite easy and makes installation of other modules quite easy. -Larry -- http://mail.python.org/mailman/listinfo/python-list

Choosing log file destination in logging configuration file

2008-04-22 Thread guybenron
Hey, I have a sort of petty-neurotic question, I'm kinda pedantic and like to keep my log directories clean, and this thing is bothering me to the point of actually posting a question (couldn't find any post about this..). My application has two types of components: daemons and regular ones that

Re: Spawing a thread and printing dots until it finishes

2008-04-22 Thread Diez B. Roggisch
I think that there are two things that you need to wrap your head around before understanding what is happening here. First, threads are NOT pre-emptive. Unless your thread gives up the processor it will run forever. The sleep call is one way to give up the processor. That is not correct, at

Re: SWIG C++ std::cout do not output to interactive interpreter IDLE

2008-04-22 Thread Juergen Perlinger
[EMAIL PROTECTED] wrote: > Dear All, > > I have some functions written in C++, which I try to approach from > python using swig. In the C++ functions I use std::cout to print stuff > to output. Everything works fine, but the only problem that I have is > that when I start IDLE and use the functio

Re: Problem with urllib2 and authentification

2008-04-22 Thread Gabriel Genellina
En Tue, 22 Apr 2008 11:24:20 -0300, Miguel Beltran R. <[EMAIL PROTECTED]> escribió: > Using this script for connect to Zope I have this error > > ---script: > import urllib2 > > protocolo='http://' > servidor='10.28.1.239/' > pagina='manage' > fullurl=protocolo+servidor+pagina > > aut=urllib2.HTT

Re: Python Success stories

2008-04-22 Thread Carl Banks
On Apr 22, 12:50 pm, Jérémy Wagner <[EMAIL PROTECTED]> wrote: > Sure. Python is more readable than Perl, though I have found Python > to have a weird behavior regarding this little issue : > > How can you explain that Python doesn't support the ++ opeator, > whereas at the same time it does support

Re: Problem with urllib2 and authentification

2008-04-22 Thread Rob Wolfe
Rob Wolfe <[EMAIL PROTECTED]> writes: >> ---script: >> import urllib2 >> >> protocolo='http://' >> servidor='10.28.1.239/' >> pagina='manage' >> fullurl=protocolo+servidor+pagina >> >> aut=urllib2.HTTPBasicAuthHandler() >> aut.add_password(realm=None, >> uri=servidor, >>

Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-22 Thread Kenneth McDonald
Sadly. Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with urllib2 and authentification

2008-04-22 Thread Rob Wolfe
"Miguel Beltran R." <[EMAIL PROTECTED]> writes: > Using this script for connect to Zope I have this error You forgot to add the authentication handler to the list of handlers. See below. > > ---script: > import urllib2 > > protocolo='http://' > servidor='10.28.1.239/' > pagina='manage' > fullur

Re: py3k concerns. An example

2008-04-22 Thread Martin v. Löwis
>>> In py3k string%dictionary is going away. >> Why do you say that? It's not going away in Python 3.0. > > I also got the impression that it was going away. PEP 3101's abstract > says: > > This PEP proposes a new system for built-in string formatting > operations, intended as a replacem

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-22 Thread Martin v. Löwis
> test test_mmap crashed -- : [Errno > 22] Invalid argument You should run this with -v. This is too little detail to know what exactly failed. > self.assertEqual(spid, cpid) > AssertionError: 0 != 6840386 > > What do these failures indicate? That suggests a bug in wait4: apparently, it fa

Re: Python Success stories

2008-04-22 Thread Paul Hankin
On Apr 22, 5:50 pm, Jérémy Wagner <[EMAIL PROTECTED]> wrote: > Sure. Python is more readable than Perl, though I have found Python > to have a weird behavior regarding this little issue : > > How can you explain that Python doesn't support the ++ opeator, > whereas at the same time it does support

Re: Spawing a thread and printing dots until it finishes

2008-04-22 Thread Larry Bates
sophie_newbie wrote: On Apr 22, 4:41 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: On Tue, 22 Apr 2008 07:10:07 -0700 (PDT) sophie_newbie<[EMAIL PROTECTED]> wrote: import threading class MyThread ( threading.Thread ): def run ( self ): myLongCommand()... import ti

Re: Problem using copy.copy with my own class

2008-04-22 Thread Marc 'BlackJack' Rintsch
On Tue, 22 Apr 2008 11:13:43 -0600, Jeffrey Barish wrote: > By the way, I have simplified somewhat the code in the explanation. Please simplify the code to a minimal example that still has the problem and *show it to us*. It's hard to spot errors in code that nobody except you knows. -- http://m

Re: Does Python 2.5 include or not include SQLite engine?

2008-04-22 Thread J Sisson
On Gentoo, SQLite can be turned on or off via the sqlite USE flag for Python 2.5+ during installation. There's also a separate pysqlite package, and the python-updater script doesn't seem to take Python2.5's build into account when (re)building all of the Python2.4 modules for Python2.5...it break

Re: subprocess module is sorely deficient?

2008-04-22 Thread sturlamolden
On Apr 22, 12:52 pm, Harishankar <[EMAIL PROTECTED]> wrote: > Sorry to start off on a negative note in the list, but I feel that the Python > subprocess module is sorely deficient because it lacks a mechanism to Have you looked at the processing module in cheese shop? -- http://mail.python.org/m

RE: Python script to automate use of Google Translate? (or other translator)

2008-04-22 Thread Trent Nelson
> > I have the need to occasionally translate a single word > > programatically. Would anyone have a Python script that > > would let me do this using Google (or another) translation > > service? As a matter of fact, yes, I do! This happens to be my most favourite piece of Python code I've ever

Re: Lists: why is this behavior different for index and slice assignments?

2008-04-22 Thread Duncan Booth
Steve Holden <[EMAIL PROTECTED]> wrote: > Assignment to a list *element* rebinds the single element to the > assigned value. Assignment to a list *slice* has to be of a list, and it > replaces the elements in the slice by assigned elements. > Assignment to a list *slice* just has use an iterabl

python-ldap: searching without specifying an OU?

2008-04-22 Thread hotani
I am attempting to pull info from an LDAP server (Active Directory), but cannot specify an OU. In other words, I need to search users in all OU's, not a specific one. Here is what works: con = ldap.initialize("ldap://server.local";) con.simple_bind_s('[EMAIL PROTECTED]', pass) result = con.search

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

2008-04-22 Thread Mark Wooding
Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > Harishankar <[EMAIL PROTECTED]> wrote: >> 1. Create non-blocking pipes which can be read in a separate thread >> [...] > > You are correct on both of those points. I must be missing something. What's wrong with spawning the subprocess with subprocess

Re: Does Python 2.5 include or not include SQLite engine?

2008-04-22 Thread Trent Mick
Whether a Python installation includes the SQLite 3 bindings typically depends on: 1. Python version: core support for the SQLite 3 bindings (i.e. the "sqlite3" module) was added in Python 2.5. Earlier versions of Python may also have a 3rd-party package/module that adds SQLite bindings, of c

Re: Spawing a thread and printing dots until it finishes

2008-04-22 Thread Gabriel Genellina
En Tue, 22 Apr 2008 13:32:38 -0300, sophie_newbie <[EMAIL PROTECTED]> escribió: > On Apr 22, 4:41 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: >> On Tue, 22 Apr 2008 07:10:07 -0700 (PDT) >> sophie_newbie<[EMAIL PROTECTED]> wrote: >> > import threading >> > class MyThread ( threading.Thread ):

Re: Spawing a thread and printing dots until it finishes

2008-04-22 Thread D'Arcy J.M. Cain
On Tue, 22 Apr 2008 09:32:38 -0700 (PDT) sophie_newbie <[EMAIL PROTECTED]> wrote: > On Apr 22, 4:41 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > > We know that your main routine gives up the processor but without a > > full definition of MyThread how do we know that it ever does? I > > susp

Problem using copy.copy with my own class

2008-04-22 Thread Jeffrey Barish
(Pdb) myclass MyClass( 0, 0, 'A string', 123.45) (Pdb) copy.copy(myclass) *** TypeError: TypeError('__new__() takes at least 4 arguments (2 given)',) I see 4 arguments (actually, 5 because Python is passing cls invisibly to __new__). Does anyone have an idea what is going on here? I have not def

Re: Segfault accessing dictionary in C Python module

2008-04-22 Thread Mitko Haralanov
On Mon, 21 Apr 2008 17:09:57 -0700 (PDT) sturlamolden <[EMAIL PROTECTED]> wrote: > Albeit not having looked at your code in detail, I'm wiling to bet you > have one of the refcounts wrong. It turns out you are correct. I forgot to increment the refcount on the value extracted from the dict (since

Re: Remove multiple inheritance in Python 3000

2008-04-22 Thread Diez B. Roggisch
Carl Banks schrieb: On Apr 22, 11:10 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: 2. Java interfaces solve a different problem than MI (used properly) does: interfaces are there to make types polymorphic, whereas inheritance's main use is to share behavior. But the *goal* of the polymorphy

Re: Python Success stories

2008-04-22 Thread Jérémy Wagner
Sure. Python is more readable than Perl, though I have found Python to have a weird behavior regarding this little issue : How can you explain that Python doesn't support the ++ opeator, whereas at the same time it does support the += operator ??? No python developer I know has been able to answ

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-22 Thread Randy Galbraith
On Apr 20, 10:17 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > I recommend you disable compilation of ctypes (by removing the call > to detect_ctypes from setup.py). It's fairly unlikely that you can > manage to make ctypes work on your system. Martin, Thanks again. I'm much closer now. Her

Re: Witty retorts (was: Python Success stories)

2008-04-22 Thread Paul Boddie
On 22 Apr, 16:02, Ben Finney <[EMAIL PROTECTED]> wrote: > > What lesson is it intended to teach, other than that "Fuck you" is > somehow a "retort"? I can't see that improving too many situations. It isn't supposed to teach anything: it's a joke! It'd be more relevant (yet somewhat surreal if deta

Re: Spawing a thread and printing dots until it finishes

2008-04-22 Thread sophie_newbie
On Apr 22, 4:41 pm, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > On Tue, 22 Apr 2008 07:10:07 -0700 (PDT) > > > > sophie_newbie<[EMAIL PROTECTED]> wrote: > > import threading > > class MyThread ( threading.Thread ): > > def run ( self ): > > myLongCommand()... > > > impor

Re: Python Success stories

2008-04-22 Thread s0suk3
On Apr 22, 5:25 am, azrael <[EMAIL PROTECTED]> wrote: > Hy guys, > A friend of mine i a proud PERL developer which always keeps making > jokes on python's cost. > > Please give me any arguments to cut him down about his commnets > like :"keep programing i python. maybe, one day, you will be able to

Re: Remove multiple inheritance in Python 3000

2008-04-22 Thread Carl Banks
On Apr 22, 11:10 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > 2. Java interfaces solve a different problem than MI (used properly) > > does: interfaces are there to make types polymorphic, whereas > > inheritance's main use is to share behavior. > > But the *goal* of the polymorphy is main

  1   2   >