Announce: Linux Desktop Testing Project (LDTP) 2.0.2 released

2010-01-27 Thread Nagappan Alagappan
Hello, About LDTP: Linux Desktop Testing Project is aimed at producing high quality test automation framework (using GNOME / Python) and cutting-edge tools that can be used to test Linux Desktop and improve it. It uses the Accessibility libraries to poke through the application's user interface.

Re: Simple Password Strength Checker Review Help needed

2010-01-27 Thread Paul Rubin
Steven D'Aprano ste...@remove.this.cybersource.com.au 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

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 ste...@remove.this.cybersource.com.au 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.

Re: python 3's adoption

2010-01-27 Thread Paul Rubin
Steven D'Aprano ste...@remove.this.cybersource.com.au 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 stdio.h main() { int i, x, p=0; x = ({ for (i=1;

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

2010-01-27 Thread alex23
Tim Roberts t...@probo.com 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

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,

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 mmm...@gmail.com: 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:

Re: python 3's adoption

2010-01-27 Thread Steve Holden
Paul Rubin wrote: Steven D'Aprano ste...@remove.this.cybersource.com.au 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 stdio.h main() { int i, x, p=0;

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

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

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) [GCC

Re: myths about python 3

2010-01-27 Thread Andre Engels
On Wed, Jan 27, 2010 at 11:32 AM, Daniel Fetchinson fetchin...@googlemail.com 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

Re: Terminal application with non-standard print

2010-01-27 Thread Rémi
On 25 jan, 23:30, Sean DiZazzo half.ital...@gmail.com wrote: On Jan 24, 11:27 am, Rémi babedo...@yahoo.fr 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

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 si...@brunningonline.net 2010/1/27 mierdatutis mi mmm...@gmail.com: Hi, I would like to parse a webpage to can get the url of the video download. I use

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?

Re: Help parsing a page with python

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

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 andreeng...@gmail.com: On Wed, Jan 27, 2010 at 6:26 AM, Patrick whya...@gmail.com wrote: I'm

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 mmm...@gmail.com: Those videos are generated by javascript. There is some parser with python for javascript??? Thanks a lot! 2010/1/27

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 javier.coll...@gmail.com 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

Re: Help parsing a page with python

2010-01-27 Thread Simon Brunning
2010/1/27 mierdatutis mi mmm...@gmail.com: 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 floris.bruynoo...@gmail.com 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

Re: python 3's adoption

2010-01-27 Thread Xah Lee
On Jan 26, 3:47 pm, Xah Lee xah...@gmail.com 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

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 wis...@hotmail.com: 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

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 mmm...@gmail.com: Hello again, What test case for Windmill? Can you say me the link, please? Many thanks 2010/1/27 Javier Collado

Re: Just drawing lines and plotting points?

2010-01-27 Thread Alf P. Steinbach
* rantingrick: On Jan 26, 10:52 pm, Alf P. Steinbach al...@start.no wrote: * rantingrick: On Jan 26, 9:38 pm, Terry Reedy tjre...@udel.edu wrote: On 1/26/2010 7:54 PM, Chris Rebert wrote: On Tue, Jan 26, 2010 at 4:36 PM, Someone Somethingfordhai...@gmail.com wrote: Hello, I need a

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, please feel free to

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.1-6)] on

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

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 wrong if someone

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

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, they simply are

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 floris.bruynoo...@gmail.com 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) !=

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

2010-01-27 Thread Steve Howell
On Jan 26, 11:34 pm, Arnaud Delobelle arno...@googlemail.com wrote: Steve Howell showel...@yahoo.com writes: On Jan 25, 1:32 pm, Arnaud Delobelle arno...@googlemail.com wrote: Steve Howell showel...@yahoo.com writes: [...] My algorithm does exactly N pops and roughly N list accesses,

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

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

Re: Generic proxy (that proxies methods like __iter__)

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

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 floris.bruynoo...@gmail.com 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) !=

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

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,

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. I

Re: myths about python 3

2010-01-27 Thread eric_dex...@msn.com
On Jan 27, 8:42 am, Lie Ryan lie.1...@gmail.com 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 posters

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 al...@start.no 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 --

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

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,

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

Re: Library support for Python 3.x

2010-01-27 Thread Aahz
In article 9f3c3$4b605a65$4275d90a$30...@fuse.net, Kevin Walzer k...@codebykevin.com 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

Re: Simple Password Strength Checker Review Help needed

2010-01-27 Thread Aahz
In article 7xfx5sxbmw@ruckus.brouhaha.com, Paul Rubin no.em...@nospam.invalid 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

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: 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

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 write a

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 george.tro...@noaa.gov 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

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 ti...@freescale.com 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

Re: site.py confusion

2010-01-27 Thread George Trojan
Arnaud Delobelle wrote: George Trojan george.tro...@noaa.gov 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

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 worked

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

Re: Library support for Python 3.x

2010-01-27 Thread sjdevn...@yahoo.com
On Jan 27, 2:03 pm, Paul Rubin 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

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

Re: python 3's adoption

2010-01-27 Thread Grant Edwards
On 2010-01-27, Alf P. Steinbach al...@start.no 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: 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 reason for it:

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

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 indication

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 mlm...@comcast.net 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

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

Re: myths about python 3

2010-01-27 Thread Grant Edwards
On 2010-01-27, John Nagle na...@animats.com 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

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 could

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, they

Re: myths about python 3

2010-01-27 Thread sjdevn...@yahoo.com
On Jan 27, 9:22 am, Daniel Fetchinson fetchin...@googlemail.com 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

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.restype = None

Re: myths about python 3

2010-01-27 Thread Ben Finney
John Nagle na...@animats.com 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 fooOS ship with?”

Re: myths about python 3

2010-01-27 Thread Benjamin Kaplan
On Wed, Jan 27, 2010 at 3:56 PM, John Nagle na...@animats.com 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

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 multiple

Re: myths about python 3

2010-01-27 Thread Ben Finney
Adam Tauno Williams awill...@opengroupware.us 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

Re: myths about python 3

2010-01-27 Thread Ben Finney
Christian Heimes li...@cheimes.de 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

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: 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 na...@animats.com 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

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 mlm...@comcast.net 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

Re: myths about python 3

2010-01-27 Thread Carl Banks
On Jan 27, 12:56 pm, John Nagle na...@animats.com 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

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 na...@animats.com 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,

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 mlm...@comcast.net 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

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 na...@animats.com 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

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: python 3's adoption

2010-01-27 Thread John Bokma
Xah Lee xah...@gmail.com 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

Re: Python and Ruby

2010-01-27 Thread Jonathan Gardner
On Jan 27, 5:47 am, Simon Brunning si...@brunningonline.net 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 {|..| ...

Re: Python and Ruby

2010-01-27 Thread Jonathan Gardner
On Jan 27, 6:56 am, Roald de Vries r...@roalddevries.nl 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*

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, please feel free to

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 na...@animats.com 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

  1   2   3   >