ANN: PyQt v4.8.1 Released

2010-11-01 Thread Phil Thompson
PyQt v4.8.1 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/. PyQt is a comprehensive set of bindings for the Qt application and UI framework from Nokia. It supports the same platforms as Qt (Windows, Linux and MacOS/X). PyQt supports Python v3 and Python

Allow multiline conditions and the like

2010-11-01 Thread Yingjie Lan
Hi, This is a mini-proposal I piggy-tailed in the other topic: Allow the conditions in the if-, elif-, while-, for-, and with-clauses to span multiple lines without using a backlalsh at the end of a line, just like when you specify literal lists, tuples, dicts, etc. across multiple lines

Re: with block for multiple files

2010-11-01 Thread Yingjie Lan
Guido's time machine strikes again! It's already in Python 3; your example would be spelled: with open('scores.csv') as f, open('grades.csv', wt) as g:     g.write(f.read()) Indeed! Thanks, Chris and James. Yingjie -- http://mail.python.org/mailman/listinfo/python-list

Allowing comments after the line continuation backslash

2010-11-01 Thread Yingjie Lan
Hi, Sorry if I am baking too many ideas today. I am just having trouble with the backslashes I would like to have comments after the line continuation backslash. if a 0 \ #comments for this condition and b 0: #do something here This is currently not OK, but this might be a

python script to read google spreadsheet

2010-11-01 Thread charu gangal
import gdata.spreadsheet.service username= 'prakhil.purch...@gmail.com' passwd = 'purchase' doc_name= 'googleapps_spreadsheet' gd_client = gdata.spreadsheet.service.SpreadsheetsService() gd_client.email = username gd_client.password =passwd #gd_client.source =

Re: text file reformatting

2010-11-01 Thread iwawi
On 31 loka, 21:48, Tim Chase python.l...@tim.thechases.com wrote: PRJ01001 4 00100END PRJ01002 3 00110END I would like to pick only some columns to a new file and put them to a certain places (to match previous data) - definition file (def.csv) could be something like this: VARIABLE  

Re: Compare source code

2010-11-01 Thread Bob Martin
in 645437 20101031 230912 Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message 4ccd5ad9$0$19151$426a7...@news.free.fr, jf wrote: I edit each file to remove tabs ... expand -i oldfile newfile Do you know a tools to compare the initial file with the cleaned one to know if

Re: Allow multiline conditions and the like

2010-11-01 Thread Ben Finney
Yingjie Lan lany...@yahoo.com writes: Allow the conditions in the if-, elif-, while-, for-, and with-clauses to span multiple lines without using a backlalsh at the end of a line, You can already do this with any expression: use parentheses. Yingjie Lan lany...@yahoo.com writes: I would

Re: Allow multiline conditions and the like

2010-11-01 Thread Lawrence D'Oliveiro
In message 874oc1ldo6@benfinney.id.au, Ben Finney wrote: Yingjie Lan lany...@yahoo.com writes: Allow the conditions in the if-, elif-, while-, for-, and with-clauses to span multiple lines without using a backlalsh at the end of a line, You can already do this with any expression: use

Re: Allowing comments after the line continuation backslash

2010-11-01 Thread Lawrence D'Oliveiro
In message mailman.437.1288592002.2218.python-l...@python.org, Yingjie Lan wrote: I would like to have comments after the line continuation backslash. What language allows that? -- http://mail.python.org/mailman/listinfo/python-list

Re: How on Factorial

2010-11-01 Thread Lawrence D'Oliveiro
In message dvukp7-7sa@satorlaser.homedns.org, Ulrich Eckhardt wrote: Geobird wrote: def fact(x): return x 1 and x * fact(x - 1) or 1 I'd say this is about as small as it gets. fact = lambda x : x 1 and x * fact(x - 1) or 1 -- Lawrence “Functionalism Strikes Again”

Re: How on Factorial

2010-11-01 Thread Lawrence D'Oliveiro
In message qoteibcq9pr@ruuvi.it.helsinki.fi, Jussi Piitulainen wrote: (I agree that no one should write factorial like that, except as a joke. I have nothing against (x if (a b) else y). The trick with and and or was used before Python had an actual conditional expression.) You know

Re: Why flat is better than nested?

2010-11-01 Thread Lawrence D'Oliveiro
In message mailman.297.1288170848.2218.python-l...@python.org, Stefan Behnel wrote: What's a that boy? A boy who’s the opposite of fin. -- http://mail.python.org/mailman/listinfo/python-list

Re: Allowing comments after the line continuation backslash

2010-11-01 Thread Martin v. Loewis
Sorry if I am baking too many ideas today. I am just having trouble with the backslashes I would like to have comments after the line continuation backslash. if a 0 \ #comments for this condition and b 0: #do something here This is currently not OK, but this might be a

Re: python script to read google spreadsheet

2010-11-01 Thread Lawrence D'Oliveiro
In message 0b6f704c-e108-4fb9-afc2-3616d92d6...@t13g2000yqm.googlegroups.com, charu gangal wrote: This is the python code I was trying to access the cell information from a google spreadsheet but the issue is that i am able to make it work on Eclipse but when i deploy it, it is not showing me

Re: Allow multiline conditions and the like

2010-11-01 Thread Steven D'Aprano
On Sun, 31 Oct 2010 23:02:21 -0700, Yingjie Lan wrote: Hi, This is a mini-proposal I piggy-tailed in the other topic: Allow the conditions in the if-, elif-, while-, for-, and with-clauses to span multiple lines [...] also, if we don't allow it, people just have to use parenthesis

Re: Allowing comments after the line continuation backslash

2010-11-01 Thread Ulrich Eckhardt
Yingjie Lan wrote: I would like to have comments after the line continuation backslash. if a 0 \ #comments for this condition and b 0: #do something here Historically, and also in Python, the backslash escapes the immediately following character. That means that _nothing_ may

Re: text file reformatting

2010-11-01 Thread cbr...@cbrownsystems.com
On Oct 31, 11:46 pm, iwawi iwawi...@gmail.com wrote: On 31 loka, 21:48, Tim Chase python.l...@tim.thechases.com wrote: PRJ01001 4 00100END PRJ01002 3 00110END I would like to pick only some columns to a new file and put them to a certain places (to match previous data) -

Re: Allowing comments after the line continuation backslash

2010-11-01 Thread Steven D'Aprano
On Sun, 31 Oct 2010 23:13:19 -0700, Yingjie Lan wrote: Hi, Sorry if I am baking too many ideas today. I am just having trouble with the backslashes Then don't use them. If you are having so much trouble keeping your lines short, then I suggest you're trying to do too much in one line.

Re: python script to read google spreadsheet

2010-11-01 Thread charu gangal
This is the page i am getting on localhost 8080. The code is showing me thr result only in Eclipse but not through google app engine launcher. Traceback (most recent call last): File C:\Program Files (x86)\Google\google_appengine\google\appengine \tools\dev_appserver.py, line 3211, in

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert c...@rebertia.com wrote: On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz whitequill...@gmail.com wrote: I am working with differential equations of the higher roots of negative one. (dividing enormous numbers into other enormous numbers to come out with

Re: Py3: Import relative path module

2010-11-01 Thread Steven D'Aprano
On Mon, 01 Nov 2010 01:08:52 -0700, Gnarlodious wrote: On Oct 31, 11:09 am, Дамјан Георгиевски wrote: from .. import Data.DumpHT as DumpHT That doesn't work. Any more ideas? Define doesn't work. Does it? Print a warning message but continue execution? Import the wrong module? Abort Python

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
Simply out of curiosity is there a way to force python to print more then 16 places from the decimal? For better accuracy. On Mon, Nov 1, 2010 at 4:19 AM, Bj Raz whitequill...@gmail.com wrote: On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert c...@rebertia.com wrote: On Thu, Oct 28, 2010 at

Would you recommend python as a first programming language?

2010-11-01 Thread bradenf
I was thinking of recommending this to a friend but what do you all think? Thanks! Sent wirelessly from my BlackBerry. -- http://mail.python.org/mailman/listinfo/python-list

Re: Allow multiline conditions and the like

2010-11-01 Thread Chris Rebert
On Mon, Nov 1, 2010 at 12:51 AM, Steven D'Aprano steve-remove-t...@cybersource.com.au wrote: On Sun, 31 Oct 2010 23:02:21 -0700, Yingjie Lan wrote: Hi, This is a mini-proposal I piggy-tailed in the other topic: Allow the conditions in the if-, elif-, while-, for-, and with-clauses to span

Re: factorial of negative one (-1)

2010-11-01 Thread Chris Rebert
On Mon, Nov 1, 2010 at 4:19 AM, Bj Raz whitequill...@gmail.com wrote: On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert c...@rebertia.com wrote: On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz whitequill...@gmail.com wrote: I am working with differential equations of the higher roots of negative one.

Re: How on Factorial

2010-11-01 Thread Steven D'Aprano
On Mon, 01 Nov 2010 20:23:42 +1300, Lawrence D'Oliveiro wrote: In message qoteibcq9pr@ruuvi.it.helsinki.fi, Jussi Piitulainen wrote: (I agree that no one should write factorial like that, except as a joke. I have nothing against (x if (a b) else y). The trick with and and or was used

Re: text file reformatting

2010-11-01 Thread iwawi
On 1 marras, 09:59, cbr...@cbrownsystems.com cbr...@cbrownsystems.com wrote: On Oct 31, 11:46 pm, iwawi iwawi...@gmail.com wrote: On 31 loka, 21:48, Tim Chase python.l...@tim.thechases.com wrote: PRJ01001 4 00100END PRJ01002 3 00110END I would like to pick only some columns

using google app through python

2010-11-01 Thread charu gangal
Hey! Can anyone help me with python script for reading google spreadsheets? what all packages do i need to import to make the code run successfully after deploying it on google environment..thnx in advance -- http://mail.python.org/mailman/listinfo/python-list

Re: factorial of negative one (-1)

2010-11-01 Thread Hrvoje Niksic
Chris Rebert c...@rebertia.com writes: (2) The underlying double-precision floating-point number only has ~16 decimal digits of precision, so it's pointless to print out further digits. A digression which has nothing to do with Raj's desire for better accuracy... Printing out further digits

ANN: PyQt v4.8.1 Released

2010-11-01 Thread Phil Thompson
PyQt v4.8.1 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/. PyQt is a comprehensive set of bindings for the Qt application and UI framework from Nokia. It supports the same platforms as Qt (Windows, Linux and MacOS/X). PyQt supports Python v3 and Python

Re: Py3: Import relative path module

2010-11-01 Thread Gnarlodious
On Nov 1, 2:16 am, Steven D'Aprano steve-REMOVE- t...@cybersource.com.au wrote: On Mon, 01 Nov 2010 01:08:52 -0700, Gnarlodious wrote: On Oct 31, 11:09 am, Дамјан Георгиевски wrote: from .. import Data.DumpHT as DumpHT That doesn't work. Any more ideas? Define doesn't work. LOL. I get

Re: Would you recommend python as a first programming language?

2010-11-01 Thread Alex Willmer
On Oct 30, 7:16 pm, brad...@hotmail.com wrote: I was thinking of recommending this to a friend but what do you all think? I think 1. Python is a great language, and a good starting point for many people. 2. You really haven't given us much to go on. Regards, Alex --

2to3 urllib.URLopener - urllib.request.URLopener

2010-11-01 Thread Chris McDonald
Howdy, I was going through, evaluating how hard a project would be to move over to a hybrid codebase of python2 and python3 using 2to3. I found that while it would convert most other urllib renames and moves, 2to3 currently leaves urllib.URLopener as is, instead of changing it to go via the

Re: factorial of negative one (-1)

2010-11-01 Thread Ken Watford
On Mon, Nov 1, 2010 at 5:42 AM, Hrvoje Niksic hnik...@xemacs.org wrote: Printing out further digits (without quotes) is not pointless if you want to find out the exact representation of your number in python's floating point, for educational purposes or otherwise.  Python has a little-known

Re: Allowing comments after the line continuation backslash

2010-11-01 Thread Neil Cerutti
On 2010-11-01, Martin v. Loewis mar...@v.loewis.de wrote: i.e. avoid the backslash for multi-line conditions altogether (in fact, I can't think any situation where I would use the backslash). The horrible-to-nest with statement. -- Neil Cerutti --

Re: Py3: Import relative path module

2010-11-01 Thread Peter Otten
Gnarlodious wrote: On Nov 1, 2:16 am, Steven D'Aprano steve-REMOVE- t...@cybersource.com.au wrote: On Mon, 01 Nov 2010 01:08:52 -0700, Gnarlodious wrote: On Oct 31, 11:09 am, Дамјан Георгиевски wrote: from .. import Data.DumpHT as DumpHT That doesn't work. Any more ideas? Define

Re: [Beginer Question] I heard about python needing some sort of_VariableName_ boiler plate?

2010-11-01 Thread Tim Chase
On 10/31/10 23:51, Ben Finney wrote: Sorry, to clarify I heard that when you declare a variable in python you have to use some sort of standard boiler plate _variable_ however this has not been my experience using IDLE so is this even true? I don't know what “some sort of boiler plate

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
On Nov 1, 2010, at 5:42 AM, Hrvoje Niksic hnik...@xemacs.org wrote: Chris Rebert c...@rebertia.com writes: (2) The underlying double-precision floating-point number only has ~16 decimal digits of precision, so it's pointless to print out further digits. A digression which has nothing to

pcs pcap not able to recognize interface

2010-11-01 Thread Sadashiv
I'm facing following error while running Python script. Any idea what causing this error -- execute_local_command: Traceback (most recent call last): File ./pcapreplay/flowreplay.py, line 376, in module main() File ./pcapreplay/flowreplay.py, line 177, in main cPcapC =

Re: Would you recommend python as a first programming language?

2010-11-01 Thread Grant Edwards
On 2010-10-30, brad...@hotmail.com brad...@hotmail.com wrote: I was thinking of recommending this to a friend but what do you all think? Sounds like a great idea to me. Sent wirelessly from my BlackBerry. Well bully for you! -- Grant Edwards grant.b.edwardsYow! I am

Re: Would you recommend python as a first programming language?

2010-11-01 Thread Daniel Kluev
I was thinking of recommending this to a friend but what do you all think? Python is great language to learn programming. I've heard MIT switched from Scheme to Python as introductory language for their students. -- With best regards, Daniel Kluev --

Re: python script to read google spreadsheet

2010-11-01 Thread Dan M
On Mon, 01 Nov 2010 01:14:09 -0700, charu gangal wrote: This is the page i am getting on localhost 8080. The code is showing me thr result only in Eclipse but not through google app engine launcher. Traceback (most recent call last): File C:\Program Files

Re: Py3: Import relative path module

2010-11-01 Thread Gnarlodious
On Nov 1, 5:36 am, Peter Otten wrote: Remove the directory containing the importing file from your sys.path. I removed all sys.path customizations and rebooted. In the following scenario, I am programming in one.py attempting to import Data.py which is in the alpha folder: $ tree . `-- alpha

Re: Py3: Import relative path module

2010-11-01 Thread Peter Otten
Gnarlodious wrote: On Nov 1, 5:36 am, Peter Otten wrote: Remove the directory containing the importing file from your sys.path. I removed all sys.path customizations and rebooted. In the following scenario, I am programming in one.py attempting to import Data.py which is in the alpha

Re: Would you recommend python as a first programming language?

2010-11-01 Thread D'Arcy J.M. Cain
On Sat, 30 Oct 2010 19:16:10 + brad...@hotmail.com wrote: I was thinking of recommending this to a friend but what do you all think? Of course! But then, what did you expect from this group. :-) -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves

Re: How on Factorial

2010-11-01 Thread Vito 'ZeD' De Tullio
Lawrence D'Oliveiro wrote: You know what, I think I actually prefer the trick to Python’s backwards-if syntax... fact = lambda x: x*fact(x-1) if x1 else 1 naa, it's not too bad... -- By ZeD -- http://mail.python.org/mailman/listinfo/python-list

Re: text file reformatting

2010-11-01 Thread cbr...@cbrownsystems.com
On Nov 1, 1:58 am, iwawi iwawi...@gmail.com wrote: On 1 marras, 09:59, cbr...@cbrownsystems.com cbr...@cbrownsystems.com wrote: On Oct 31, 11:46 pm, iwawi iwawi...@gmail.com wrote: On 31 loka, 21:48, Tim Chase python.l...@tim.thechases.com wrote: PRJ01001 4 00100END PRJ01002

PHP (PHP Hypertext Preprocessor) Programming is Similar to C ...

2010-11-01 Thread PHP.CCC
PHP (PHP Hypertext Preprocessor) Programming is Similar to C ... PHP programming is similar to C / JavaScript and Java. ... Modeling Agencies - Helping Teen Models · Fashion and Success - Starting a Retail ... Read More http://childschooledu.blogspot.com/ --

Re: Compare source code

2010-11-01 Thread Peter Pearson
On Mon, 01 Nov 2010 12:09:12 +1300, Lawrence D'Oliveiro wrote: In message 4ccd5ad9$0$19151$426a7...@news.free.fr, jf wrote: I edit each file to remove tabs ... expand -i oldfile newfile Do you know a tools to compare the initial file with the cleaned one to know if the algorithms are

Re: [Beginer Question] I heard about python needing some sort of_VariableName_ boiler plate?

2010-11-01 Thread MRAB
On 01/11/2010 04:51, Ben Finney wrote: brad...@hotmail.com writes: Sorry, to clarify I heard that when you declare a variable in python you have to use some sort of standard boiler plate _variable_ however this has not been my experience using IDLE so is this even true? I don't know what

Re: Exception Handling in Python 3

2010-11-01 Thread John Nagle
On 10/24/2010 5:36 AM, Steve Holden wrote: On 10/24/2010 2:22 AM, Lawrence D'Oliveiro wrote: In messagemailman.176.1287896531.2218.python-l...@python.org, Steve Holden wrote: Yes, *if the exception is caught* then it doesn't make any difference. If the exception creates a traceback, however,

Re: [Beginer Question] I heard about python needing somesort of_VariableName_ boiler plate?

2010-11-01 Thread bradenf
Sorry that is what I mean. What is it for? Sent wirelessly from my BlackBerry. -Original Message- From: MRAB pyt...@mrabarnett.plus.com Sender: python-list-bounces+bradenf=hotmail@python.org Date: Mon, 01 Nov 2010 17:33:22 To: python-list@python.org Reply-To: python-list@python.org

Re: [Beginer Question] I heard about python needing somesort of_VariableName_ boiler plate?

2010-11-01 Thread MRAB
On 01/11/2010 18:18, brad...@hotmail.com wrote: Sorry that is what I mean. What is it for? Sent wirelessly from my BlackBerry. -Original Message- From: MRABpyt...@mrabarnett.plus.com Sender: python-list-bounces+bradenf=hotmail@python.org Date: Mon, 01 Nov 2010 17:33:22

Re: [Beginer Question] I heard about python needing somesort of_VariableName_ boiler plate?

2010-11-01 Thread Benjamin Kaplan
On Mon, Nov 1, 2010 at 2:18 PM, brad...@hotmail.com wrote: Sorry that is what I mean. What is it for? Sent wirelessly from my BlackBerry. What is what for? There is no boiler plate on variable names. *BY CONVENTION*, variables and methods with a special meaning will start and end with two

Re: [Beginer Question] I heard about python needing somesort of_VariableName_ boiler plate?

2010-11-01 Thread Andreas Waldenburger
On Mon, 1 Nov 2010 18:18:45 + brad...@hotmail.com wrote: Sorry that is what I mean. What is it for? Sent wirelessly from my BlackBerry. andreas.quick_hot_anger = True Braden! Stop Top-Posting already! Please. If your BlackBerry makes this hard, then get another mail client. It gets

Re: [Beginer Question] I heard about python needing somesort of_VariableName_ boiler plate?

2010-11-01 Thread Terry Reedy
On 11/1/2010 2:18 PM, brad...@hotmail.com wrote: Sorry that is what I mean. What is it for? Sent wirelessly from my BlackBerry. Does it require you to toppost? Understanding the above requires one to guess what 'that' forward references. Perhaps the OP means: if __name__ ==

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
On Mon, Nov 1, 2010 at 8:52 AM, Bj Raz whitequill...@gmail.com wrote: On Nov 1, 2010, at 5:42 AM, Hrvoje Niksic hnik...@xemacs.org wrote: Chris Rebert c...@rebertia.com writes: (2) The underlying double-precision floating-point number only has ~16 decimal digits of precision, so it's

Re: Py3: Import relative path module

2010-11-01 Thread Terry Reedy
On 11/1/2010 6:54 AM, Gnarlodious wrote: On Nov 1, 2:16 am, Steven D'Apranosteve-REMOVE- t...@cybersource.com.au wrote: On Mon, 01 Nov 2010 01:08:52 -0700, Gnarlodious wrote: On Oct 31, 11:09 am, Дамјан Георгиевски wrote: from .. import Data.DumpHT as DumpHT That doesn't work. Any more

Re: 2to3 urllib.URLopener - urllib.request.URLopener

2010-11-01 Thread Terry Reedy
On 11/1/2010 7:23 AM, Chris McDonald wrote: Howdy, I was going through, evaluating how hard a project would be to move over to a hybrid codebase of python2 and python3 using 2to3. I found that while it would convert most other urllib renames and moves, 2to3 currently leaves urllib.URLopener as

playful coding problems for 10 year olds

2010-11-01 Thread Daniel Fetchinson
Hi folks, My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it would be good to have a bunch of playful coding problems for her, stuff that she could code herself maybe after some initial help. Do you guys

Re: [Beginer Question] I heard about python needing somesort of_VariableName_ boiler plate?

2010-11-01 Thread Grant Edwards
On 2010-11-01, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Mon, Nov 1, 2010 at 2:18 PM, brad...@hotmail.com wrote: Sorry that is what I mean. What is it for? Sent wirelessly from my BlackBerry. What is what for? I think I smell troll... -- Grant Edwards

Re: playful coding problems for 10 year olds

2010-11-01 Thread Dirk Nachbar
This is in JS but have a look here http://github.com/ryanmcgrath/splash On 1 Nov, 20:31, Daniel Fetchinson fetchin...@googlemail.com wrote: Hi folks, My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it

Re: using google app through python

2010-11-01 Thread Dirk Nachbar
Why don't you start here http://code.google.com/apis/spreadsheets/data/1.0/developers_guide_python.html On 1 Nov, 09:05, charu gangal charugan...@gmail.com wrote: Hey! Can anyone help me with python script for reading google spreadsheets? what all packages do i need to import to make the code

Re: playful coding problems for 10 year olds

2010-11-01 Thread Arnaud Delobelle
Daniel Fetchinson fetchin...@googlemail.com writes: Hi folks, My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it would be good to have a bunch of playful coding problems for her, stuff that she could

Re: playful coding problems for 10 year olds

2010-11-01 Thread Martin v. Loewis
My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it would be good to have a bunch of playful coding problems for her, stuff that she could code herself maybe after some initial help. I think anything

serial I/O install fail -- DLL not found

2010-11-01 Thread Fossil
Just starting with Python. Installed: Python 2.7 pywin32-214.win32-py2.7.exe pyserial-2.5.win32.exe on a Home WinXP SP3 Toshiba laptop with 2GB memory. Open Python and try to do simple I/O test and can't even get past first line. Transcript below. You will see that __name__ is defined as

Re: Allowing comments after the line continuation backslash

2010-11-01 Thread Lawrence D'Oliveiro
In message 4cce6ff6.2050...@v.loewis.de, Martin v. Loewis wrote: (in fact, I can't think any situation where I would use the backslash). for \ Description, Attr, ColorList \ in \ ( (normal, image, MainWindow.ColorsNormalList), (highlighted,

Re: Compare source code

2010-11-01 Thread Lawrence D'Oliveiro
In message 8j8am4fk2...@mid.individual.net, Peter Pearson wrote: On Mon, 01 Nov 2010 12:09:12 +1300, Lawrence D'Oliveiro wrote: In message 4ccd5ad9$0$19151$426a7...@news.free.fr, jf wrote: I edit each file to remove tabs ... expand -i oldfile newfile Do you know a tools to compare

Re: Compare source code

2010-11-01 Thread Grant Edwards
On 2010-11-01, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message 8j8am4fk2...@mid.individual.net, Peter Pearson wrote: diff -b oldfile newfile Warning: diff -b won't detect changes in indentation. Changes in indentation can change a Python program. I'm getting

Re: playful coding problems for 10 year olds

2010-11-01 Thread Lawrence D'Oliveiro
In message 4ccf3595.2060...@v.loewis.de, Martin v. Loewis wrote: Take a look at the turtle demos. Are turtle graphics still enough to hold the kids’ interest these days? I’ve been visiting a local Computer Clubhouse, and it seems like they mostly spend their time in Google SketchUp and

Re: serial I/O install fail -- DLL not found

2010-11-01 Thread Benjamin Kaplan
On Mon, Nov 1, 2010 at 5:55 PM, Fossil mskcrpttn...@gmail.com wrote: Just starting with Python. Installed:  Python 2.7  pywin32-214.win32-py2.7.exe  pyserial-2.5.win32.exe on a Home WinXP SP3 Toshiba laptop with 2GB memory.  Open Python and try to do simple I/O test and can't even get past

Re: playful coding problems for 10 year olds

2010-11-01 Thread Emile van Sebille
On 11/1/2010 2:48 PM Martin v. Loewis said... My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it would be good to have a bunch of playful coding problems for her, stuff that she could code herself maybe

[ANN] pyOpenSSL 0.11 released

2010-11-01 Thread exarkun
Hello all, I'm happy to announce the release of pyOpenSSL 0.11. The primary change from the last release is that Python 3.2 is now supported. Python 2.4 through Python 2.7 are still supported as well. This release also fixes a handful of bugs in error handling code. It also adds APIs for

extracting variables accessed and written from function / rule-based function calls

2010-11-01 Thread Daniel
Hello, I have a class with some members that depend on others. Initially most of them are None. For each one there is a function to calculate it as soon as some other dependencies become available. In the end, all values can be computed by the right sequence of function applications. class A:

Re: [Beginer Question] I heard about python needing somesort of_VariableName_ boiler plate?

2010-11-01 Thread Ben Finney
brad...@hotmail.com writes: Sorry that is what I mean. What is it for? Branden, you're welcome to ask questions about Python here. But please, help us help you: Don't top-post. It makes the flow of conversation difficult to follow. Instead, respond in-line beneath the point you're responding

Re: Compare source code

2010-11-01 Thread Peter Pearson
On Mon, 1 Nov 2010 22:24:03 + (UTC), Grant Edwards wrote: On 2010-11-01, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message 8j8am4fk2...@mid.individual.net, Peter Pearson wrote: diff -b oldfile newfile Warning: diff -b won't detect changes in indentation.

Re: Compare source code

2010-11-01 Thread Emile van Sebille
On 11/1/2010 3:18 PM Lawrence D'Oliveiro said... In message8j8am4fk2...@mid.individual.net, Peter Pearson wrote: snip Warning: diff -b won't detect changes in indentation. Changes in indentation can change a Python program. I’m getting less and less keen on that particular feature of

Re: extracting variables accessed and written from function / rule-based function calls

2010-11-01 Thread MRAB
On 01/11/2010 22:44, Daniel wrote: Hello, I have a class with some members that depend on others. Initially most of them are None. For each one there is a function to calculate it as soon as some other dependencies become available. In the end, all values can be computed by the right sequence

Re: playful coding problems for 10 year olds

2010-11-01 Thread Gary Herron
On 11/01/2010 01:31 PM, Daniel Fetchinson wrote: Hi folks, My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it would be good to have a bunch of playful coding problems for her, stuff that she could code

Re: Compare source code

2010-11-01 Thread Lawrence D'Oliveiro
In message mailman.465.1288653523.2218.python-l...@python.org, Emile van Sebille wrote: At least you can look at python code and _know_ that spurious placement of required line noise don't have the ability to impact what the code does. But it does. What is spurious whitespace if not noise,

Re: how to sync file on client and server

2010-11-01 Thread Lawrence D'Oliveiro
In message bbcc1dce-1a05-46fe-879c-7d0b08a2f...@r14g2000yqa.googlegroups.com, nu wrote: I want to sync the file foder in different server,and I can't use ftp protocl. I try to sync files during defferent server and not use username and password to login. Set up an SSH public/private key

Re: import ImageGrab fails on Ubuntu 10.04

2010-11-01 Thread Lawrence D'Oliveiro
In message 4ccd954f$0$12350$426a7...@news.free.fr, News123 wrote: Is there any other way to make screen shots in Linux, ideally without creating an intermediate file The ImageMagick “import” command lets you grab the contents of any window (including the root window) from your X server

Re: extracting variables accessed and written from function / rule-based function calls

2010-11-01 Thread James Mills
On Tue, Nov 2, 2010 at 9:23 AM, MRAB pyt...@mrabarnett.plus.com wrote: You might be interested by the story of how AstraZeneca tackled that kind of problem in PyDrone: http://www.python.org/about/success/astra/ This might be a good use-case (if I'm reading the post correctly) for Traits (1)

Re: serial I/O install fail -- DLL not found

2010-11-01 Thread Ian
On Nov 1, 3:55 pm, Fossil mskcrpttn...@gmail.com wrote: Just starting with Python. Installed:   Python 2.7   pywin32-214.win32-py2.7.exe   pyserial-2.5.win32.exe on a Home WinXP SP3 Toshiba laptop with 2GB memory.  Open Python and try to do simple I/O test and can't even get past first

Re: Allowing comments after the line continuation backslash

2010-11-01 Thread Chris Rebert
On Mon, Nov 1, 2010 at 3:16 PM, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message 4cce6ff6.2050...@v.loewis.de, Martin v. Loewis wrote: (in fact, I can't think any situation where I would use the backslash).    for \        Description, Attr, ColorList \    in \      

Re: Compare source code

2010-11-01 Thread Ian
On Nov 1, 4:48 pm, Peter Pearson ppear...@nowhere.invalid wrote: True, but diff doesn't come with an ignore curly braces option. I'm not personally repelled by Python's use of significant indentation, but I must concede that some awkwardness results from assigning significance to something

Re: extracting variables accessed and written from function / rule-based function calls

2010-11-01 Thread MRAB
On 01/11/2010 23:38, James Mills wrote: On Tue, Nov 2, 2010 at 9:23 AM, MRABpyt...@mrabarnett.plus.com wrote: You might be interested by the story of how AstraZeneca tackled that kind of problem in PyDrone: http://www.python.org/about/success/astra/ This might be a good use-case (if I'm

Re: serial I/O install fail -- DLL not found

2010-11-01 Thread Fossil
Thank you, Ian. You put your finger on the problem. As I thrashed around earlier, I had installed serial i/o pieces before the clean install pieces of pywin32-214.win32-py2.7.exe pyserial-2.5.win32.exe I did a complete de-install and re-install. Now the serial i/o is functioning -- I'm

*** FBI gets a warm welcome in Chicago for their EXCELLENT performance - cheers to NEW CONS ***

2010-11-01 Thread silver light
*** FBI gets a warm welcome in Chicago for their EXCELLENT performance - cheers to NEW CONS *** http://www.youtube.com/watch?v=eq2ZvSd-z0Mfeature=player_embeddedrelated http://www.youtube.com/watch?v=eq2ZvSd-z0Mfeature=player_embeddedrelated

Re: [pyOpenSSL] [ANN] pyOpenSSL 0.11 released

2010-11-01 Thread Glyph Lefkowitz
On Nov 1, 2010, at 6:43 PM, exar...@twistedmatrix.com wrote: I'm happy to announce the release of pyOpenSSL 0.11. Congratulations, JP! It's great to see this effort coming together.-- http://mail.python.org/mailman/listinfo/python-list

Re: *** FBI gets a warm welcome in Chicago for their EXCELLENTperformance - cheers to NEW CONS ***

2010-11-01 Thread brf256
How exactly does this relate to python? Sent wirelessly from my BlackBerry device on the Bell network. Envoyé sans fil par mon terminal mobile BlackBerry sur le réseau de Bell. -Original Message- From: silver light lightsilv...@gmail.com Sender:

Re: *** FBI gets a warm welcome in Chicago for their EXCELLENTperformance - cheers to NEW CONS ***

2010-11-01 Thread Chris Rebert
-Original Message- From: silver light lightsilv...@gmail.com Sender: python-list-bounces+brf256=gmail@python.org Date: Mon, 1 Nov 2010 18:10:36 To: python-list@python.org Cc: lightsilv...@gmail.com Subject: *** FBI gets a warm welcome in Chicago for their EXCELLENT        

Re: Allow multiline conditions and the like

2010-11-01 Thread alex23
Chris Rebert c...@rebertia.com wrote: Or, if possible, refactor the conditional into a function (call) so it's no longer multiline in the first place. Or even simpler, assign the condition result to a variable: a_b_positive = a 0 and b 0 if a_b_positive: ... --

Re: Allowing comments after the line continuation backslash

2010-11-01 Thread Lawrence D'Oliveiro
In message mailman.469.1288654964.2218.python-l...@python.org, Chris Rebert wrote: desc_attr_colors_triples = ((normal, image, MainWindow.ColorsNormalList), (highlighted, highlight, MainWindow.ColorsHighlightedList), (selected, select, MainWindow.ColorsSelectedList)) for in

Re: serial I/O install fail -- DLL not found

2010-11-01 Thread Lawrence D'Oliveiro
In message da1b455a-02d0-41b7-b5dc-73546fd0b...@k22g2000yqh.googlegroups.com, Fossil wrote: I did a complete de-install and re-install. Standard solution to Dimdows problems, really... -- http://mail.python.org/mailman/listinfo/python-list

Re: *** FBI gets a warm welcome in Chicago for their EXCELLENTperformance - cheers to NEW CONS ***

2010-11-01 Thread small Pox
On Nov 1, 6:35 pm, Chris Rebert c...@rebertia.com wrote: -Original Message- From: silver light lightsilv...@gmail.com Sender: python-list-bounces+brf256=gmail@python.org Date: Mon, 1 Nov 2010 18:10:36 To: python-l...@python.org Cc: lightsilv...@gmail.com Subject: *** FBI

Re: factorial of negative one (-1)

2010-11-01 Thread Lawrence D'Oliveiro
In message 87r5f55qj5@xemacs.org, Hrvoje Niksic wrote: Python has a little-known but very instructive method for determining the makeup of a float: 1.1 .as_integer_ratio() (2476979795053773, 2251799813685248) Only available in 2.6 or later. Are we already talking as though 2.5 doesn’t

Re: ANN: PyQt v4.8.1 Released

2010-11-01 Thread Lawrence D'Oliveiro
In message mailman.443.1288608727.2218.python-l...@python.org, Phil Thompson wrote: PyQt is available under the GPL and a commercial license. Surely you mean “proprietary” rather than “commercial”. There is nothing about the GPL that prevents “commercial” use. --

Re: functions, list, default parameters

2010-11-01 Thread Lawrence D'Oliveiro
In message 20101021235138.609fe...@geekmail.invalid, Andreas Waldenburger wrote: While not very commonly needed, why should a shared default argument be forbidden? Because it’s safer to disallow it than to allow it. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >