Urgent :Required for Oracle DBA in Qatar

2010-11-01 Thread VAM SYSTEMS
VAM SYSTEMS is a Business Consulting, IT Solutions and Services company with operations in UAE, Qatar, Bahrain, USA, Australia, Singapore & India. VAM SYSTEMS is currently looking for Oracle DBA for our Qatar operations with the following skill set and terms and conditions: Skill Set required: Stro

Advance I.T Training 2011

2010-11-01 Thread PHP.CCC
Advance I.T Training 2011 Advance Excel VBA There are lot of erp software in market erp like Peachtree ,tally software ,account software ,medi cal billing ,tax software, financial soft wares or Software for Finance But We bring you a web site which teach you or guide you to developed a good accoun

Re: Why this result with the re module

2010-11-01 Thread John Bond
On 2/11/2010 4:31 AM, Yingjie Lan wrote: Hi, I am rather confused by these results below. I am not a re expert at all. the module version of re is 2.2.1 with python 3.1.2 import re re.findall('.a.', 'Mary has a lamb') #OK ['Mar', 'has', ' a ', 'lam'] re.findall('(.a.)*', 'Mary has a lamb') #?

Re: Compare source code

2010-11-01 Thread D'Arcy J.M. Cain
On 02 Nov 2010 04:16:28 GMT Seebs wrote: > But there's no *reason* to do that, while there are many common daily > events which result in whitespace changes. e.g., any email sent > to my work account is being magically transformed into HTML (no one > knows why) on the server, so I can't get corre

Why this result with the re module

2010-11-01 Thread Yingjie Lan
Hi, I am rather confused by these results below. I am not a re expert at all. the module version of re is 2.2.1 with python 3.1.2 >>> import re >>> re.findall('.a.', 'Mary has a lamb') #OK ['Mar', 'has', ' a ', 'lam'] >>> re.findall('(.a.)*', 'Mary has a lamb') #?? ['Mar', '', '', 'lam', '', ''

Re: Compare source code

2010-11-01 Thread Seebs
On 2010-11-01, Grant Edwards wrote: > On 2010-11-01, Lawrence D'Oliveiro wrote: >> In message <8j8am4fk2...@mid.individual.net>, Peter Pearson wrote: >>> Warning: "diff -b" won't detect changes in indentation. Changes in >>> indentation can change a Python program. >> I'm getting less and less

Re: functions, list, default parameters

2010-11-01 Thread Robert Kern
On 2010-11-01 22:31 , Lawrence D'Oliveiro wrote: In message<8j1seqfa1...@mid.individual.net>, Gregory Ewing wrote: Steven D'Aprano wrote: And how does Python know whether some arbitrary default object is mutable or not? It doesn't, that's the whole point. Of course it knows. It is the one

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

2010-11-01 Thread Ameya the ______
Post this question on the C/C++ group... and do post those replie here :P -- 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 MRAB
On 02/11/2010 03:18, small Pox wrote: On Nov 1, 6:35 pm, Chris Rebert wrote: -Original Message- From: silver light Sender: python-list-bounces+brf256=gmail@python.org Date: Mon, 1 Nov 2010 18:10:36 To: Cc: Subject: *** FBI gets a warm welcome in Chicago for their EXCELLENT p

Re: str(int_var) formatted

2010-11-01 Thread Lawrence D'Oliveiro
In message , John Yeung wrote: > I will give zfill a little exposure, as it seems unloved/underused: > > str(x).zfill(2) The inside of my brain is a finite place. Each thing I put in there leaves less room for something else. So I have to think very carefully before deciding what to keep in

Re: functions, list, default parameters

2010-11-01 Thread Lawrence D'Oliveiro
In message <8j1seqfa1...@mid.individual.net>, Gregory Ewing wrote: > Steven D'Aprano wrote: > >> And how does Python know whether some arbitrary default object is mutable >> or not? > > It doesn't, that's the whole point. Of course it knows. It is the one defining the concept in the first place

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

Re: ANN: PyQt v4.8.1 Released

2010-11-01 Thread Lawrence D'Oliveiro
In message , 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. -- http://mail.python.org/mailman/listinfo/python-list

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

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 wrote: > > -Original Message- > > From: silver light > > Sender: python-list-bounces+brf256=gmail@python.org > > Date: Mon, 1 Nov 2010 18:10:36 > > To: > > Cc: > > Subject: *** FBI gets a warm welcome in Chicago for their EXCELLENT > >        performa

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

2010-11-01 Thread Lawrence D'Oliveiro
In message , 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: Allowing comments after the line continuation backslash

2010-11-01 Thread Lawrence D'Oliveiro
In message , Chris Rebert wrote: > desc_attr_colors_triples = (("normal", "image", > MainWindow.ColorsNormalList), > ("highlighted", "highlight", MainWindow.ColorsHighlightedList), > ("selected", "select", MainWindow.ColorsSelectedList)) > for in description, attr, color_list in desc_attr

Re: Allow multiline conditions and the like

2010-11-01 Thread alex23
Chris Rebert 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: ... -- http://mail.python.org/mailman/listinfo/

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 > Sender: python-list-bounces+brf256=gmail@python.org > Date: Mon, 1 Nov 2010 18:10:36 > To: > Cc: > Subject: *** FBI gets a warm welcome in Chicago for their EXCELLENT >        performance - cheers to NEW CONS *** > > *** FBI gets a warm wel

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 Sender: python-list-bounces+brf256=gmail@python.org Date: Mon, 1 Nov

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

*** 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-z0M&feature=player_embedded&related http://www.youtube.com/watch?v=eq2ZvSd-z0M&feature=player_embedded&related http://www.youtube.com/watch?v=eq2ZvSd-z0M&feature

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 stil

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

Re: Compare source code

2010-11-01 Thread Ian
On Nov 1, 4:48 pm, Peter Pearson 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 (whitespace) that many

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 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 \ >        ( >            ("norm

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

2010-11-01 Thread Ian
On Nov 1, 3:55 pm, Fossil 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 line. > Transcript b

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 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) cheers James 1. http://p

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: how to sync file on client and server

2010-11-01 Thread Lawrence D'Oliveiro
In message , 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 pair. Then run Rsync over SSH. Job done. -- http://mail.pytho

Re: Compare source code

2010-11-01 Thread Lawrence D'Oliveiro
In message , 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, after all? -- http://mail.python.org/mailman/listi

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 her

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 o

Re: Compare source code

2010-11-01 Thread Emile van Sebille
On 11/1/2010 3:18 PM Lawrence D'Oliveiro said... In message<8j8am4fk2...@mid.individual.net>, Peter Pearson wrote: 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 Python.

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

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

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:

[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

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 aft

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 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 line. > Tr

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 Phot

Re: Compare source code

2010-11-01 Thread Grant Edwards
On 2010-11-01, Lawrence D'Oliveiro 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 less and less kee

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 newfile >> >>> Do you know a tools

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"

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

Re: playful coding problems for 10 year olds

2010-11-01 Thread Arnaud Delobelle
Daniel Fetchinson 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 code herself maybe a

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 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 > run successfully a

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

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 wrote: > On Mon, Nov 1, 2010 at 2:18 PM, 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 grant.b.edwardsYow! hubub, hubub, HUBUB,

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 kn

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 i

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'Aprano 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

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
On Mon, Nov 1, 2010 at 8:52 AM, Bj Raz wrote: > On Nov 1, 2010, at 5:42 AM, Hrvoje Niksic wrote: > > > Chris Rebert 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. > >

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__ == "__main__

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 get

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, 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 underscores. *BY CON

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: MRAB Sender: python-list-bounces+bradenf=hotmail@python.org Date: Mon, 01 Nov 2010 17:33:22 To: Reply-To: python-list@python.org Sub

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 Sender: python-list-bounces+bradenf=hotmail@python.org Date: Mon, 01 Nov 2010 17:33:22 To: Reply-To: python-list@python.org Subject: Re: [Beginer Question] I heard about pyth

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 message, Steve Holden wrote: Yes, *if the exception is caught* then it doesn't make any difference. If the exception creates a traceback, however, I maintain that the additional information is conf

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 “som

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 newfile > >> Do you know a tools to compare the initial file with the cleaned one to >> know if the algorithms a

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/ -- http://mail.python.org/mailman/listi

Re: text file reformatting

2010-11-01 Thread cbr...@cbrownsystems.com
On Nov 1, 1:58 am, iwawi wrote: > On 1 marras, 09:59, "cbr...@cbrownsystems.com" > > > > wrote: > > On Oct 31, 11:46 pm, iwawi wrote: > > > > On 31 loka, 21:48, Tim Chase wrote: > > > > > > PRJ01001 4 00100END > > > > > PRJ01002 3 00110END > > > > > > I would like to pick only some columns to a

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 x>1 else 1 naa, it's not too bad... -- By ZeD -- http://mail.python.org/mailman/listinfo/python-list

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 | Democracy is three wolves http://www.druid.net/darcy/

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 al

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 > . > `-- al

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 (x86)\Google\google_appengin

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 -- http://mail.python.org/mailman/listinf

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

2010-11-01 Thread Grant Edwards
On 2010-10-30, 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 having FUN...

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 main() File "./pcapreplay/flowreplay.py", line 177, in main cPcapC = pcs.PcapConnector

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
On Nov 1, 2010, at 5:42 AM, Hrvoje Niksic wrote: > Chris Rebert 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

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 _variable

Re: Py3: Import relative path module

2010-11-01 Thread Peter Otten
Gnarlodious wrote: > On Nov 1, 2:16 am, Steven D'Aprano 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: Allowing comments after the line continuation backslash

2010-11-01 Thread Neil Cerutti
On 2010-11-01, Martin v. Loewis 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 -- http://mail.python.org/mailman/listinfo/python-list

Re: factorial of negative one (-1)

2010-11-01 Thread Ken Watford
On Mon, Nov 1, 2010 at 5:42 AM, Hrvoje Niksic 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 but very instru

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 reques

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 -- http://mail.python.org/

Re: Py3: Import relative path module

2010-11-01 Thread Gnarlodious
On Nov 1, 2:16 am, Steven D'Aprano 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 error: from .. import

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: factorial of negative one (-1)

2010-11-01 Thread Hrvoje Niksic
Chris Rebert 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 (without qu

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: text file reformatting

2010-11-01 Thread iwawi
On 1 marras, 09:59, "cbr...@cbrownsystems.com" wrote: > On Oct 31, 11:46 pm, iwawi wrote: > > > > > > > On 31 loka, 21:48, Tim Chase 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 p

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

Re: factorial of negative one (-1)

2010-11-01 Thread Chris Rebert
> On Mon, Nov 1, 2010 at 4:19 AM, Bj Raz wrote: >> On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert wrote: >>> On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz wrote: >>> > I am working with differential equations of the higher roots of >>> > negative >>> > one. (dividing enormous numbers into other enormou

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 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 multiple lines > [...] >>

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: 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 wrote: > > > On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert wrote: > >> On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz wrote: >> > I am work

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

Re: factorial of negative one (-1)

2010-11-01 Thread Bj Raz
On Fri, Oct 29, 2010 at 1:02 AM, Chris Rebert wrote: > On Thu, Oct 28, 2010 at 9:41 PM, Bj Raz 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 > > very reasonable numbers). > >

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 _HandleR

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 li

Re: text file reformatting

2010-11-01 Thread cbr...@cbrownsystems.com
On Oct 31, 11:46 pm, iwawi wrote: > On 31 loka, 21:48, Tim Chase 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

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 _nothin

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

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 showin

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 t

Re: Why "flat is better than nested"?

2010-11-01 Thread Lawrence D'Oliveiro
In message , 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: How on Factorial

2010-11-01 Thread Lawrence D'Oliveiro
In message , 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 what, I think I actually prefer the

  1   2   >