Re: Simple Password Strength Checker Review Help needed

2010-01-27 Thread Paul Rubin
Steven D'Aprano writes: > I think you're missing a word there. Relatively secure perhaps? Yes, something like that, oops. > The problem is that most users will not be a little bit careful. They > will stick the password on a Post-it note on the side of the monitor,... Right, that's what I mean

Re: python 3's adoption

2010-01-27 Thread Steven D'Aprano
On Tue, 26 Jan 2010 23:37:00 -0800, Paul Rubin wrote: > Steven D'Aprano writes: >> Sorry, I meant consistent with the rest of Python, which mostly uses >> functions/methods and only rarely statements (e.g. del and import). > > yield, assert, if/else, return, etc. If we're after that kind of > c

Re: python 3's adoption

2010-01-27 Thread Paul Rubin
Steven D'Aprano writes: > Without becoming a purely functional language, you won't get rid of all > statements. Why not? GCC lets you use any statement in an expression: #include main() { int i, x, p=0; x = ({ for (i=1; i<=10; i++) p += i; p;}); printf ("x=%d\n

Re: Sikuli: the coolest Python project I have yet seen...

2010-01-27 Thread alex23
Tim Roberts wrote: > it's not the most efficient way to automate applications Sikuli doesn't seem that much different from Python in this way: it may not be the most efficient use of the computer's time, but I dare say it's significantly less demanding on the end user's. I can see Sikuli easily

Re: python 3's adoption

2010-01-27 Thread Daniel Fetchinson
>>> * Print is now a function. Great, much improvement. > > Actually not, IMHO. All it does is is to provide incompatibility. What incompatibility are you exactly talking about? Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2 Type "help", "co

Help parsing a page with python

2010-01-27 Thread mierdatutis mi
Hi, I would like to parse a webpage to can get the url of the video download. I use pyhton and firebug but I cant get the url link. Example: The url where I have to get the video link is: http://www.rtve.es/mediateca/videos/20100125/saber-comer---salsa-verde-judiones-25-01-10/676590.shtml " The

Re: Help parsing a page with python

2010-01-27 Thread Simon Brunning
2010/1/27 mierdatutis mi : > Hi, > > I would like to parse a webpage to can get the url of the video download. I > use pyhton and firebug but I cant get the url link. > > Example: > > The url where I have to get the video link is: > http://www.rtve.es/mediateca/videos/20100125/saber-comer---salsa-v

Re: python 3's adoption

2010-01-27 Thread Steve Holden
Paul Rubin wrote: > Steven D'Aprano writes: >> Without becoming a purely functional language, you won't get rid of all >> statements. > > Why not? GCC lets you use any statement in an expression: > > #include > > main() > { > int i, x, p=0; > x = ({ for (i=1; i<=10;

Ad hoc lists vs ad hoc tuples

2010-01-27 Thread Floris Bruynooghe
One thing I ofter wonder is which is better when you just need a throwaway sequence: a list or a tuple? E.g.: if foo in ['some', 'random', 'strings']: ... if [bool1, bool2, boo3].count(True) != 1: ... (The last one only works with tuples since python 2.6) Is a list or tuple better or mor

myths about python 3

2010-01-27 Thread Daniel Fetchinson
Hi folks, I was going to write this post for a while because all sorts of myths periodically come up on this list about python 3. I don't think the posters mean to spread false information on purpose, they simply are not aware of the facts. My list is surely incomplete, please feel free to post y

Re: myths about python 3

2010-01-27 Thread Stefan Behnel
Daniel Fetchinson, 27.01.2010 11:32: > 1. Print statement/function creates incompatibility between 2.x and 3.x! > > Certainly false or misleading, if one uses 2.6 and 3.x the > incompatibility is not there. Print as a function works in 2.6: > > Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) > [

Re: myths about python 3

2010-01-27 Thread Andre Engels
On Wed, Jan 27, 2010 at 11:32 AM, Daniel Fetchinson wrote: > Hi folks, > > I was going to write this post for a while because all sorts of myths > periodically come up on this list about python 3. I don't think the > posters mean to spread false information on purpose, they simply are > not aware

Re: Terminal application with non-standard print

2010-01-27 Thread Rémi
On 25 jan, 23:30, Sean DiZazzo wrote: > On Jan 24, 11:27 am, Rémi wrote: > > > > > Hello everyone, > > > I would like to do a Python application that prints data to stdout, but > > not the common way. I do not want the lines to be printed after each > > other, but the old lines to be replaced wit

Re: Help parsing a page with python

2010-01-27 Thread mierdatutis mi
Those videos are generated by javascript. There is some parser with python for javascript??? Thanks a lot! 2010/1/27 Simon Brunning > 2010/1/27 mierdatutis mi : > > Hi, > > > > I would like to parse a webpage to can get the url of the video download. > I > > use pyhton and firebug but I cant g

Re: python 3's adoption

2010-01-27 Thread Xah Lee
Someone is badmouthing me, and it has been doing so over the years. I feel obliged to post a off topic relpy. See: • DreamHost.com and A Incidence of Harassment http://xahlee.org/Periodic_dosage_dir/t2/harassment.html • Why Can't You Be Normal? http://xahlee.org/Netiquette_dir/why_cant_you_be

Re: Help parsing a page with python

2010-01-27 Thread Simon Brunning
2010/1/27 mierdatutis mi : > Those videos are generated by javascript. > There is some parser with python for javascript??? There is , but simulating the whole context of a browser is going to be a horror. You are probably far better off automating a

Re: scraping with urllib2

2010-01-27 Thread Javier Collado
Hello, To accept cookies, use the HTTPCookieProcessor as explained here: http://www.nomadjourney.com/2009/03/automatic-site-login-using-python-urllib2/ Best regards, Javier 2010/1/27 Andre Engels : > On Wed, Jan 27, 2010 at 6:26 AM, Patrick wrote: >> I'm trying to scrape the attached link f

Re: Help parsing a page with python

2010-01-27 Thread Javier Collado
Hello, A test case for Windmill might also be used to extract the information that you're looking for. Best regards, Javier 2010/1/27 mierdatutis mi : > Those videos are generated by javascript. > There is some parser with python for javascript??? > > Thanks a lot! > > > 2010/1/27 Simon Brun

Re: Help parsing a page with python

2010-01-27 Thread mierdatutis mi
Hello again, What test case for Windmill? Can you say me the link, please? Many thanks 2010/1/27 Javier Collado > Hello, > > A test case for Windmill might also be used to extract the information > that you're looking for. > > Best regards, > Javier > > 2010/1/27 mierdatutis mi : > > Those

Re: Help parsing a page with python

2010-01-27 Thread Simon Brunning
2010/1/27 mierdatutis mi : > Hello again, > > What test case for Windmill? Can you say me the link, please? http://lmgtfy.com/?q=windmill+test -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list

Re: Ad hoc lists vs ad hoc tuples

2010-01-27 Thread Iain King
On Jan 27, 10:20 am, Floris Bruynooghe wrote: > One thing I ofter wonder is which is better when you just need a > throwaway sequence: a list or a tuple?  E.g.: > > if foo in ['some', 'random', 'strings']: >     ... > if [bool1, bool2, boo3].count(True) != 1: >    ... > > (The last one only works

Re: python 3's adoption

2010-01-27 Thread Xah Lee
On Jan 26, 3:47 pm, Xah Lee wrote: > * Many functions that return lists now returns “Views” or > “Iterators” Instead. A fucking fuck all fucked up shit. A extraneous > “oop engineering” complication. (See: Lambda in Python 3000) See also: “Iterators: Signs of Weakness in Object-Oriented Lan

Python and Ruby

2010-01-27 Thread Jean Guillaume Pyraksos
What are the arguments for choosing Python against Ruby for introductory programming ? Python has no provisions for tail recursion, Ruby is going to... So what ? Thanks, JG -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Ruby

2010-01-27 Thread Stefan Behnel
Jean Guillaume Pyraksos, 27.01.2010 14:01: > What are the arguments for choosing Python against Ruby > for introductory programming ? PEP 20: http://www.python.org/dev/peps/pep-0020/ Stefan -- http://mail.python.org/mailman/listinfo/python-list

starting a thread in a nother thread

2010-01-27 Thread Richard Lamboj
hello, just for _curiosity_. What would be if i start a thread in a nother thread and acquire a lock in the "child" thread. Is there anything that could go wrong if someone try to start threads in threads? Kind Regards, Richi -- http://mail.python.org/mailman/listinfo/python-list

Re: starting a thread in a nother thread

2010-01-27 Thread Stefan Behnel
Richard Lamboj, 27.01.2010 14:06: > just for _curiosity_. What would be if i start a thread in a nother thread > and > acquire a lock in the "child" thread. Is there anything that could go wrong > if someone try to start threads in threads? There's usually tons of things that can go wrong w.r.t

Re: Python and Ruby

2010-01-27 Thread Simon Brunning
2010/1/27 Jean Guillaume Pyraksos : > What are the arguments for choosing Python against Ruby > for introductory programming ? Frankly, either would be a good choice. I think Python is a little cleaner, but I'm sure you'd find Ruby fans who'd argue the complete opposite. Both have good ecosystems

Re: Help parsing a page with python

2010-01-27 Thread Javier Collado
Hello, You can find some advice here: http://www.packtpub.com/article/web-scraping-with-python-part-2 Best regards, Javier 2010/1/27 mierdatutis mi : > Hello again, > > What test case for Windmill? Can you say me the link, please? > > Many thanks > > 2010/1/27 Javier Collado >> >> Hello, >>

Re: Just drawing lines and plotting points?

2010-01-27 Thread Alf P. Steinbach
* rantingrick: On Jan 26, 10:52 pm, "Alf P. Steinbach" wrote: * rantingrick: On Jan 26, 9:38 pm, Terry Reedy wrote: On 1/26/2010 7:54 PM, Chris Rebert wrote: On Tue, Jan 26, 2010 at 4:36 PM, Someone Something wrote: Hello, I need a python library that makes drawing lines and plotting

Re: myths about python 3

2010-01-27 Thread Daniel Fetchinson
>> Hi folks, >> >> I was going to write this post for a while because all sorts of myths >> periodically come up on this list about python 3. I don't think the >> posters mean to spread false information on purpose, they simply are >> not aware of the facts. >> >> My list is surely incomplete, plea

Re: starting a thread in a nother thread

2010-01-27 Thread Richard Lamboj
Am Wednesday 27 January 2010 14:10:13 schrieb Stefan Behnel: > Richard Lamboj, 27.01.2010 14:06: > > just for _curiosity_. What would be if i start a thread in a nother > > thread and acquire a lock in the "child" thread. Is there anything that > > could go wrong if someone try to start threads in

Re: myths about python 3

2010-01-27 Thread Daniel Fetchinson
>> 1. Print statement/function creates incompatibility between 2.x and 3.x! >> >> Certainly false or misleading, if one uses 2.6 and 3.x the >> incompatibility is not there. Print as a function works in 2.6: >> >> Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) >> [GCC 4.4.1 20090818 (Red Hat 4.4.

Re: myths about python 3

2010-01-27 Thread Jean-Michel Pichavant
Daniel Fetchinson wrote: Hi folks, I was going to write this post for a while because all sorts of myths periodically come up on this list about python 3. I don't think the posters mean to spread false information on purpose, they simply are not aware of the facts. My list is surely incomplete,

Re: starting a thread in a nother thread

2010-01-27 Thread Stefan Behnel
Richard Lamboj, 27.01.2010 15:23: > Am Wednesday 27 January 2010 14:10:13 schrieb Stefan Behnel: >> Richard Lamboj, 27.01.2010 14:06: >>> just for _curiosity_. What would be if i start a thread in a nother >>> thread and acquire a lock in the "child" thread. Is there anything that >>> could go wron

Generic proxy (that proxies methods like __iter__)

2010-01-27 Thread D HANNEY
>>> def show(opened): ... with opened as file: ... for line in file: ... print line.strip() ... >>> show(open("test.txt")) blah1 blah2 blah3 # # Good! I wonder if I can do that with StringIO ... # >>> import StringIO >>> show(StringIO.StringIO("

Re: myths about python 3

2010-01-27 Thread Lie Ryan
On 01/28/10 01:32, Jean-Michel Pichavant wrote: > Daniel Fetchinson wrote: Hi folks, I was going to write this post for a while because all sorts of myths periodically come up on this list about python 3. I don't think the posters mean to spread false information on purpose

Re: Ad hoc lists vs ad hoc tuples

2010-01-27 Thread M.-A. Lemburg
Iain King wrote: > On Jan 27, 10:20 am, Floris Bruynooghe > wrote: >> One thing I ofter wonder is which is better when you just need a >> throwaway sequence: a list or a tuple? E.g.: >> >> if foo in ['some', 'random', 'strings']: >> ... >> if [bool1, bool2, boo3].count(True) != 1: >>... >

Re: list.pop(0) vs. collections.dequeue

2010-01-27 Thread Steve Howell
On Jan 26, 11:34 pm, Arnaud Delobelle wrote: > Steve Howell writes: > > On Jan 25, 1:32 pm, Arnaud Delobelle wrote: > >> Steve Howell writes: > > >> [...] > > >> > My algorithm does exactly N pops and roughly N list accesses, so I > >> > would be going from N*N + N to N + N log N if switched to

Re: Python and Ruby

2010-01-27 Thread Roald de Vries
On Jan 27, 2010, at 2:01 PM, Jean Guillaume Pyraksos wrote: What are the arguments for choosing Python against Ruby for introductory programming ? Python has no provisions for tail recursion, Ruby is going to... So what ? Thanks, I think the main difference is in culture, especially for *in

Re: python 3's adoption

2010-01-27 Thread Alf P. Steinbach
* Daniel Fetchinson: * Print is now a function. Great, much improvement. Actually not, IMHO. All it does is is to provide incompatibility. What incompatibility are you exactly talking about? Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2

Re: Generic proxy (that proxies methods like __iter__)

2010-01-27 Thread Arnaud Delobelle
On 27 Jan, 14:41, D HANNEY wrote: [...] > >>> class NoGuardProxy(object): > > ... def __init__(self, t): > ... self.t = t > ... def __enter__(self): > ... return self > ... def __exit__(self, type, value, traceback): > ... ret

Re: Ad hoc lists vs ad hoc tuples

2010-01-27 Thread Steve Holden
Iain King wrote: > On Jan 27, 10:20 am, Floris Bruynooghe > wrote: >> One thing I ofter wonder is which is better when you just need a >> throwaway sequence: a list or a tuple? E.g.: >> >> if foo in ['some', 'random', 'strings']: >> ... >> if [bool1, bool2, boo3].count(True) != 1: >>... >

Library support for Python 3.x

2010-01-27 Thread Kevin Walzer
I'm going to be starting some new Python projects in Python 2.6, but am concerned that at least three of the libraries I will be using--pycrypto, paramiko and feedparser--are not currently supported in Python 3.x. The authors of these programs have not given any indication that work is underway

Re: python 3's adoption

2010-01-27 Thread Daniel Fetchinson
> * Print is now a function. Great, much improvement. >>> Actually not, IMHO. All it does is is to provide incompatibility. >> >> >> What incompatibility are you exactly talking about? >> >> Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) >> [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2

Re: python 3's adoption

2010-01-27 Thread Alf P. Steinbach
* Daniel Fetchinson: * Print is now a function. Great, much improvement. Actually not, IMHO. All it does is is to provide incompatibility. What incompatibility are you exactly talking about? Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2

Re: ctypes for AIX

2010-01-27 Thread Antoine Pitrou
Hello, > I then figured I would get a new copy of python and install it > on AIX. I downloaded python.2.5.5c2 from http://www.python.org. I did > the configure and make which posted many errors in the ctypes function > which I guess is the reason that is does not get include in the final > make.

Re: myths about python 3

2010-01-27 Thread eric_dex...@msn.com
On Jan 27, 8:42 am, Lie Ryan wrote: > On 01/28/10 01:32, Jean-Michel Pichavant wrote: > > > > > Daniel Fetchinson wrote: > Hi folks, > > I was going to write this post for a while because all sorts of myths > periodically come up on this list about python 3. I don't think the >

Re: python 3's adoption

2010-01-27 Thread Stefan Behnel
Xah Lee, 27.01.2010 00:47: > Any comment on this? No, sorry. Not worth bothering. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3's adoption

2010-01-27 Thread Grant Edwards
On 2010-01-27, Alf P. Steinbach wrote: > I'm responding to the original message by Xah Lee, which is > not carried by my Usenet provider. A Usenet provider that doesn't carry messages from Xah Lee. So... many... jokes. -- Grant -- http://mail.python.org/mailman/listinfo/python-list

Re: Help parsing a page with python

2010-01-27 Thread mierdatutis mi
Hello, Thanks Javier, But I think that the page embeds a viewer. Only the viewer knows the URL to the FLV file itself. I can't see any direct correspondence between the elements of the two URLs, I cant see a way to construct the FLV's URL from the contents of that page :-( I have to do manually

Re: python 3's adoption

2010-01-27 Thread Daniel Fetchinson
>>> * Print is now a function. Great, much improvement. > Actually not, IMHO. All it does is is to provide incompatibility. What incompatibility are you exactly talking about? Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)

GUI-pyqt solution needed

2010-01-27 Thread Chirag Dhyani
Hi, My sincere apologies if I am mailing in wrong list. My mission:I have to develop GUI based tool on python and will be using PyQT with qtdesigner. I am automating creation of test script for call flows just by drawing them from tool. Challenges: In this tool there will be a drawing ar

Re: Library support for Python 3.x

2010-01-27 Thread Aahz
In article <9f3c3$4b605a65$4275d90a$30...@fuse.net>, Kevin Walzer wrote: > >I'm going to be starting some new Python projects in Python 2.6, but am >concerned that at least three of the libraries I will be >using--pycrypto, paramiko and feedparser--are not currently supported in >Python 3.x. T

Re: Simple Password Strength Checker Review Help needed

2010-01-27 Thread Aahz
In article <7xfx5sxbmw@ruckus.brouhaha.com>, Paul Rubin wrote: > >From a security point of view, the concept >of "password strength checking" is pretty dubious. If you want secure >passwords, generate them from a random number source and assign them to >the users. Don't have the users make

Re: python 3's adoption

2010-01-27 Thread Alf P. Steinbach
* Daniel Fetchinson: * Print is now a function. Great, much improvement. Actually not, IMHO. All it does is is to provide incompatibility. What incompatibility are you exactly talking about? Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57) [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2 T

Re: Ad hoc lists vs ad hoc tuples

2010-01-27 Thread Antoine Pitrou
Le Wed, 27 Jan 2010 02:20:53 -0800, Floris Bruynooghe a écrit : > > Is a list or tuple better or more efficient in these situations? Tuples are faster to allocate (they are allocated in one single step) and quite a bit smaller too. In some situations, in Python 2.7 and 3.1, they can also be igno

Extract half screen of a video

2010-01-27 Thread aditya shukla
Hello Guys, I have a video and what I want is to extract only half of the screen of it.By half screen i mean when i run the video i can say the left half(from the monitor's screen) of the video and dump the right half. Thanks Aditya -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3's adoption

2010-01-27 Thread Steve Holden
Alf P. Steinbach wrote: [...] > The main problem with the incompatibility is for porting code, not for > writing code from scratch. It's also a problem wrt. learning the > language. And I see no good reason for it: print can't really do more, > or less, or more conveniently (rather, one has to writ

Re: python 3's adoption

2010-01-27 Thread Alf P. Steinbach
* Steve Holden: Alf P. Steinbach wrote: [...] The main problem with the incompatibility is for porting code, not for writing code from scratch. It's also a problem wrt. learning the language. And I see no good reason for it: print can't really do more, or less, or more conveniently (rather, one

Re: site.py confusion

2010-01-27 Thread Arnaud Delobelle
George Trojan writes: > Inspired by the 'Default path for files' thread I tried to use > sitecustomize in my code. What puzzles me is that the site.py's main() > is not executed. My sitecustomize.py is > def main(): > print 'In Main()' > main() > and the test program is > import site > #site.

Re: I really need webbrowser.open('file://') to open a web browser

2010-01-27 Thread Mitchell L Model
On Jan 15, 2010, at 3:59 PM, Timur Tabi After reading several web pages and mailing list threads, I've learned that the webbrowser module does not really support opening local files, even if I use a file:// URL designator. In most cases, webbrowser.open() will indeed open the default web brow

Re: site.py confusion

2010-01-27 Thread George Trojan
Arnaud Delobelle wrote: George Trojan writes: Inspired by the 'Default path for files' thread I tried to use sitecustomize in my code. What puzzles me is that the site.py's main() is not executed. My sitecustomize.py is def main(): print 'In Main()' main() and the test program is import si

Re: Library support for Python 3.x

2010-01-27 Thread Paul Rubin
a...@pythoncraft.com (Aahz) writes: > From my POV, your question would be precisely identical if you had > started your project when Python 2.3 was just released and wanted to > know if the libraries you selected would be available for Python 2.6. I didn't realize 2.6 broke libraries that had work

Re: Library support for Python 3.x

2010-01-27 Thread exarkun
On 07:03 pm, no.em...@nospam.invalid wrote: a...@pythoncraft.com (Aahz) writes: From my POV, your question would be precisely identical if you had started your project when Python 2.3 was just released and wanted to know if the libraries you selected would be available for Python 2.6. I didn't

Re: Library support for Python 3.x

2010-01-27 Thread sjdevn...@yahoo.com
On Jan 27, 2:03 pm, Paul Rubin wrote: > a...@pythoncraft.com (Aahz) writes: > > From my POV, your question would be precisely identical if you had > > started your project when Python 2.3 was just released and wanted to > > know if the libraries you selected would be available for Python 2.6. > >

Pyowa Meeting Next Monday

2010-01-27 Thread Mike Driscoll
Hi, Next Monday, February 1st, we will be having our first Pyowa meeting of 2010! It will be held at the Marshall County Sheriff's Office and start at 7 p.m. (barring inclement weather). I will be demoing some software I created for our Sheriff's office and will talk about the various modules used

Re: python 3's adoption

2010-01-27 Thread Grant Edwards
On 2010-01-27, Alf P. Steinbach wrote: > * Steve Holden: >> Alf P. Steinbach wrote: >> [...] >>> The main problem with the incompatibility is for porting code, not for >>> writing code from scratch. It's also a problem wrt. learning the >>> language. And I see no good reason for it: print can't re

Re: python 3's adoption

2010-01-27 Thread Adam Tauno Williams
On Wed, 2010-01-27 at 18:52 +0100, Alf P. Steinbach wrote: > * Steve Holden: > > Alf P. Steinbach wrote: > > [...] > >> The main problem with the incompatibility is for porting code, not for > >> writing code from scratch. It's also a problem wrt. learning the > >> language. And I see no good reaso

Re: Simple Password Strength Checker Review Help needed

2010-01-27 Thread John Nagle
Mallikarjun(ಮಲ್ಲಿಕಾರ್ಜುನ್) wrote: Dear friends, I am newbie to Python + pygtk + Glade and recently wrote a simple password strength checker app. Since this is my first app/program, can someone review my code (just over 150 lines) and help me improve my programming capabilities Here's my cla

Re: Library support for Python 3.x

2010-01-27 Thread Mike C. Fletcher
Kevin Walzer wrote: > I'm going to be starting some new Python projects in Python 2.6, but > am concerned that at least three of the libraries I will be > using--pycrypto, paramiko and feedparser--are not currently supported > in Python 3.x. The authors of these programs have not given any > indica

Re: I really need webbrowser.open('file://') to open a web browser

2010-01-27 Thread Timur Tabi
On Wed, Jan 27, 2010 at 12:29 PM, Mitchell L Model wrote: > I had some discussions with the Python documentation writers that led to the > following note being included in the Python 3.1 library documentation for > webbrowser.open: "Note that on some platforms, trying to open a filename > using t

Re: myths about python 3

2010-01-27 Thread John Nagle
Daniel Fetchinson wrote: Hi folks, I was going to write this post for a while because all sorts of myths periodically come up on this list about python 3. I don't think the posters mean to spread false information on purpose, they simply are not aware of the facts. My list is surely incomplete,

Re: myths about python 3

2010-01-27 Thread Grant Edwards
On 2010-01-27, John Nagle wrote: > Arguably, Python 3 has been rejected by the market. Let's just say that it hasn't yet been accepted by the market. ;) > Instead, there's now Python 2.6, Python 2.7, and Python 2.8. > Python 3 has turned into a debacle like Perl 6, now 10 years > old. I think

Re: starting a thread in a nother thread

2010-01-27 Thread John Nagle
Stefan Behnel wrote: Richard Lamboj, 27.01.2010 15:23: Am Wednesday 27 January 2010 14:10:13 schrieb Stefan Behnel: Richard Lamboj, 27.01.2010 14:06: just for _curiosity_. What would be if i start a thread in a nother thread and acquire a lock in the "child" thread. Is there anything that coul

Re: Library support for Python 3.x

2010-01-27 Thread John Nagle
Kevin Walzer wrote: I'm going to be starting some new Python projects in Python 2.6, but am concerned that at least three of the libraries I will be using--pycrypto, paramiko and feedparser--are not currently supported in Python 3.x. The authors of these programs have not given any indication

Re: myths about python 3

2010-01-27 Thread Adam Tauno Williams
On Wed, 2010-01-27 at 12:56 -0800, John Nagle wrote: > Daniel Fetchinson wrote: > > Hi folks, > > I was going to write this post for a while because all sorts of myths > > periodically come up on this list about python 3. I don't think the > > posters mean to spread false information on purpose, th

Re: myths about python 3

2010-01-27 Thread sjdevn...@yahoo.com
On Jan 27, 9:22 am, Daniel Fetchinson wrote: > >> Hi folks, > > >> I was going to write this post for a while because all sorts of myths > >> periodically come up on this list about python 3. I don't think the > >> posters mean to spread false information on purpose, they simply are > >> not aware

Re: C Structure rebuild with ctypes

2010-01-27 Thread Georg
Hi Mark, many thanks for your hints. > --- func.py -- > import ctypes as c > > # int func (int numVars, char **varNames, int *varTypes) > > INT = c.c_int > PINT = c.POINTER(INT) > PCHAR = c.c_char_p > PPCHAR = c.POINTER(PCHAR) > > func = c.CDLL('func').func > func.rest

Re: myths about python 3

2010-01-27 Thread Ben Finney
John Nagle writes: > Myths about Python 3: > > 1. Python 3 is supported by major Linux distributions. > > FALSE - most distros are shipping with Python 2.4, or 2.5 at > best. There's a big difference between “What list of versions of Python does ship with?” versus “Which one

Re: myths about python 3

2010-01-27 Thread Benjamin Kaplan
On Wed, Jan 27, 2010 at 3:56 PM, John Nagle wrote: > Daniel Fetchinson wrote: >> >> Hi folks, >> >> I was going to write this post for a while because all sorts of myths >> periodically come up on this list about python 3. I don't think the >> posters mean to spread false information on purpose, t

Re: myths about python 3

2010-01-27 Thread Christian Heimes
John Nagle wrote: > 1. Python 3 is supported by major Linux distributions. > > FALSE - most distros are shipping with Python 2.4, or 2.5 at best. You are wrong. Modern versions of Debian / Ubuntu are using Python 2.6. My Ubuntu box has python3.0, too. > 2. Python 3 is supported by multip

Re: myths about python 3

2010-01-27 Thread Ben Finney
Adam Tauno Williams writes: > On Wed, 2010-01-27 at 12:56 -0800, John Nagle wrote: > > 2. Python 3 is supported by multiple Python implementations. > > FALSE - Only CPython supports 3.x. Iron Python, Unladen Swallow, > > PyPy, and Jython have all stayed with 2.x versions of Python. > >

Re: myths about python 3

2010-01-27 Thread Ben Finney
Christian Heimes writes: > John Nagle wrote: > > 1. Python 3 is supported by major Linux distributions. > > > > FALSE - most distros are shipping with Python 2.4, or 2.5 at best. > > You are wrong. Modern versions of Debian / Ubuntu are using Python > 2.6. Only if by “modern” you mean “not

Re: python 3's adoption

2010-01-27 Thread Alf P. Steinbach
* Adam Tauno Williams: On Wed, 2010-01-27 at 18:52 +0100, Alf P. Steinbach wrote: * Steve Holden: Alf P. Steinbach wrote: [...] The main problem with the incompatibility is for porting code, not for writing code from scratch. It's also a problem wrt. learning the language. And I see no good re

Re: myths about python 3

2010-01-27 Thread Adam Tauno Williams
On Wed, 2010-01-27 at 16:25 -0500, Benjamin Kaplan wrote: > On Wed, Jan 27, 2010 at 3:56 PM, John Nagle wrote: > Give the package maintainers time to update. There were some pretty > big changes to the C API. Most of the major 3rd party packages like > numpy and MySQLdb have already commited to ha

Re: I really need webbrowser.open('file://') to open a web browser

2010-01-27 Thread Mitchell L Model
On Jan 27, 2010, at 3:31 PM, Timur Tabi wrote: On Wed, Jan 27, 2010 at 12:29 PM, Mitchell L Model wrote: I had some discussions with the Python documentation writers that led to the following note being included in the Python 3.1 library documentation for webbrowser.open: "Note that on s

Re: myths about python 3

2010-01-27 Thread Carl Banks
On Jan 27, 12:56 pm, John Nagle wrote: > Arguably, Python 3 has been rejected by the market. No it's not fathomably arguable, because there's no reasonable way that Python 3 could have fully replaced Python 2 so quickly. At best, you could reasonably argue there hasn't been enough time to tell.

Re: Ad hoc lists vs ad hoc tuples

2010-01-27 Thread Terry Reedy
On 1/27/2010 12:32 PM, Antoine Pitrou wrote: Le Wed, 27 Jan 2010 02:20:53 -0800, Floris Bruynooghe a écrit : Is a list or tuple better or more efficient in these situations? Tuples are faster to allocate (they are allocated in one single step) and quite a bit smaller too. In some situations,

Re: myths about python 3

2010-01-27 Thread exarkun
On 10:07 pm, pavlovevide...@gmail.com wrote: On Jan 27, 12:56�pm, John Nagle wrote: Arguably, Python 3 has been rejected by the market. No it's not fathomably arguable, because there's no reasonable way that Python 3 could have fully replaced Python 2 so quickly. At best, you could reasonabl

Re: I really need webbrowser.open('file://') to open a web browser

2010-01-27 Thread Paul Boddie
On 27 Jan, 23:00, Mitchell L Model wrote: > > I suppose that since a file: URL is not, strictly speaking, on the   > web, that it shouldn't be opened with a "web" browser. But anything with a URL is (or should be regarded as being) on the Web. It may not be anything more than a local resource and

Re: some turtle questions

2010-01-27 Thread Lee Harr
> I am trying to think of things to do with the turtle module > 1) is there a way to determine the current screen pixel color? This would not use the included turtle module, but you could use the turtle module from the pygsear collection: http://www.nongnu.org/pygsear/ It requires pygame, but

Re: myths about python 3

2010-01-27 Thread Mensanator
On Jan 27, 2:56 pm, John Nagle wrote: > Daniel Fetchinson wrote: > > Hi folks, > > > I was going to write this post for a while because all sorts of myths > > periodically come up on this list about python 3. I don't think the > > posters mean to spread false information on purpose, they simply ar

Re: myths about python 3

2010-01-27 Thread Terry Reedy
On 1/27/2010 3:56 PM, John Nagle wrote: 2. Python 3 is supported by multiple Python implementations. FALSE - Only CPython supports 3.x. Iron Python, Unladen Swallow, PyPy, and Jython have all stayed with 2.x versions of Python. Actually, Unladen Swallow is now targeted at 3.1; its developers

Re: Library support for Python 3.x

2010-01-27 Thread Terry Reedy
On 1/27/2010 2:03 PM, Paul Rubin wrote: a...@pythoncraft.com (Aahz) writes: From my POV, your question would be precisely identical if you had started your project when Python 2.3 was just released and wanted to know if the libraries you selected would be available for Python 2.6. I didn't re

Re: python 3's adoption

2010-01-27 Thread John Bokma
Xah Lee writes: > Someone is badmouthing me, and it has been doing so over the years. I > feel obliged to post a off topic relpy. See: > > • DreamHost.com and A Incidence of Harassment > http://xahlee.org/Periodic_dosage_dir/t2/harassment.html Dreamhost is not the only ISP that has agreed with

Re: Python and Ruby

2010-01-27 Thread Jonathan Gardner
On Jan 27, 5:47 am, Simon Brunning wrote: > > I think Python is a little cleaner, but I'm sure you'd find Ruby fans > who'd argue the complete opposite. > Are you sure about that? There's a lot of line noise in Ruby. How are you supposed to pronounce "@@"? What about "{|..| ... }"? There's a lo

Re: Python and Ruby

2010-01-27 Thread Jonathan Gardner
On Jan 27, 6:56 am, Roald de Vries wrote: > On Jan 27, 2010, at 2:01 PM, Jean Guillaume Pyraksos wrote: > > > What are the arguments for choosing Python against Ruby > > for introductory programming? > > I think the main difference is in culture, especially for   > *introductory* programming. To

Re: myths about python 3

2010-01-27 Thread Daniel Fetchinson
>> Hi folks, >> >> I was going to write this post for a while because all sorts of myths >> periodically come up on this list about python 3. I don't think the >> posters mean to spread false information on purpose, they simply are >> not aware of the facts. >> >> My list is surely incomplete, plea

Re: myths about python 3

2010-01-27 Thread David Malcolm
On Wed, 2010-01-27 at 16:25 -0500, Benjamin Kaplan wrote: > On Wed, Jan 27, 2010 at 3:56 PM, John Nagle wrote: > > Daniel Fetchinson wrote: > >> > >> Hi folks, > >> > >> I was going to write this post for a while because all sorts of myths > >> periodically come up on this list about python 3. I d

Re: myths about python 3

2010-01-27 Thread Edward A. Falk
In article , Daniel Fetchinson wrote: >Hi folks, > >1. Print statement/function creates incompatibility between 2.x and 3.x! > >Certainly false or misleading, if one uses 2.6 and 3.x the >incompatibility is not there. Print as a function works in 2.6: Yes, but does print as a statement work? Yo

  1   2   >