Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Ulrich Eckhardt ulrich.eckha...@dominolaser.com Ahem, is this Java the language that a certain, well-known service provider is getting screwed over hard currently, because they forgot to read the fineprint in the declaration of freedom? And this Objective C, isn't this the language that

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com On Mon, May 23, 2011 at 10:17 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Daniel Kluev dan.kl...@gmail.com Aha, so with other words that ORM doesn't have that feature. DBIX::Class also use the DateTime module, but it can use it directly, without

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com Moreover, you are comparing apples to oranges here, and then complaining that apples somehow turned out to be not oranges. If we take python way of defining dicts and check it in perl, we find that it is not supported, so obviously perl is non-intuitive and

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Stefan Behnel
Beliavsky, 20.05.2011 18:39: I thought this essay on why one startup chose Python was interesting. Since everyone seems to be hot flaming at their pet languages in this thread, let me quickly say this: Thanks for sharing the link. Stefan --

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Stefan Behnel stefan...@behnel.de Beliavsky, 20.05.2011 18:39: I thought this essay on why one startup chose Python was interesting. Since everyone seems to be hot flaming at their pet languages in this thread, let me quickly say this: Thanks for sharing the link. Maybe I have

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Tue, May 24, 2011 at 6:10 PM, Octavian Rasnita orasn...@gmail.com wrote: From: Stefan Behnel stefan...@behnel.de Beliavsky, 20.05.2011 18:39: I thought this essay on why one startup chose Python was interesting. Since everyone seems to be hot flaming at their pet languages in this

NEED HELP- read file contents, while loop to accept user input, and enter to exit

2011-05-24 Thread Cathy James
dear mentor, I need help with my code: 1) my program won't display file contents upon opening 2) my program is not writing to file 3) my program is not closing when user presses enter- gow do I do this with a while loop? please see my attempt below and help: #1) open file and display current

Re: NEED HELP- read file contents, while loop to accept user input, and enter to exit

2011-05-24 Thread Tim Golden
On 24/05/2011 09:31, Cathy James wrote: dear mentor, I need help with my code: 1) my program won't display file contents upon opening #1) open file and display current file contents: f = open ('c:/testing.txt'', 'r') f.readlines() If you're running this in an interactive interpreter, I

Re: NEED HELP- read file contents, while loop to accept user input, and enter to exit

2011-05-24 Thread Chris Angelico
On Tue, May 24, 2011 at 6:31 PM, Cathy James nambo...@gmail.com wrote:     s = input ('enter name: ').strip() Are you using Python 2 or Python 3? If it's Python 2, this should be raw_input().     f = open ('c:/testing.txt', 'a') ...     f = open ('c:/testing.txt', 'r') You may be having

Re: I installed Python 3 on Fedora 14 By Downloading python3.2 bziped source tarball and install it according to the README, Now How shall I uninstalled python 3.2?

2011-05-24 Thread harrismh777
Varuna Seneviratna wrote: Now How shall I uninstalled python 3.2? Now, how shall I remove Python 3.2 ? ... very carefully. It might be nice if there were a label in the Makefile so this would work: sudo make removeall ... but alas,why do you want to un-install Python3.2 ?

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Daniel Kluev
On Tue, May 24, 2011 at 5:00 PM, Octavian Rasnita orasn...@gmail.com wrote: And you are telling that in Perl should be used an even more complicated and ugly syntax just for beeing the same as in Python just for showing that I am wrong, but I was comparing just the shortness and cleraness of

Re: NEED HELP- read file contents, while loop to accept user input, and enter to exit

2011-05-24 Thread Chris Rebert
On Tue, May 24, 2011 at 1:31 AM, Cathy James nambo...@gmail.com wrote: dear mentor, I need help with my code: snip In addition to what others have already said... please see my attempt below and help: #1) open file and display current file contents: f = open ('c:/testing.txt'', 'r')

Re: [Savoynet] More 'vast heavin'

2011-05-24 Thread Chris Angelico
On Tue, May 24, 2011 at 7:03 PM, Larry Simons la...@threelittlemaids.co.uk wrote: On Tue 24/05/2011 04:11, Libby Moyer wrote: And the rhymes in Mikado! Are you referring to ablutioner, diminutioner and “you shun her” all rhymed with executioner? Can't deny that they're grin-worthy! (Or

Re: I installed Python 3 on Fedora 14 By Downloading python3.2 bziped source tarball and install it according to the README, Now How shall I uninstalled python 3.2?

2011-05-24 Thread harrismh777
Varuna Seneviratna wrote: Now How shall I uninstalled python 3.2? What --prefix did you use? default? -- http://mail.python.org/mailman/listinfo/python-list

Re: NEED HELP- read file contents, while loop to accept user input, and enter to exit

2011-05-24 Thread Jean-Michel Pichavant
Cathy James wrote: f = open ('c:/testing.txt'', 'r') replace the double quote by a single quote. JM -- http://mail.python.org/mailman/listinfo/python-list

Re: Why did Quora choose Python for its development?

2011-05-24 Thread D'Arcy J.M. Cain
On Tue, 24 May 2011 09:00:14 +0300 Octavian Rasnita orasn...@gmail.com wrote: So, again, in Perl is just: %d = @l; Please tell me if Python has a syntax which is more clear than this for doing this thing. How is that clear? Shorter != clearer. A Python programmer looking at that sees

Re: Why did Quora choose Python for its development?

2011-05-24 Thread D'Arcy J.M. Cain
On Tue, 24 May 2011 00:17:55 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would send me screaming in the opposite direction. --

File access denied after subprocess completion on Windows platform

2011-05-24 Thread Claudiu Nicolaie CISMARU
Hello, I have a program that uses pyside for an QT interface and a thread that downloads a lot of files. The thread is created with QThread object. But my problem I don't think it's QT related. The thread retrieves with pycurl a file that contains a list of files and start to downloads them.

Re: how to get PID from subprocess library

2011-05-24 Thread Anssi Saari
TheSaint nob...@nowhere.net.no writes: self.handle= \ xmlrpclib.ServerProxy('http://localhost:%s/rpc' %int(self.numport)) Couldn't you just try to call something via this handle, like self.handle.aria2.getVersion()? If there's an error, then start aria2 as a daemon and try

Python 3.2 Idle doesn't start. No error message.

2011-05-24 Thread markrrivet
Hello all. I have Python 2.71 installed on my Windows 7 laptop and it runs fine. I was having a problem with Python 3.2, 32bit, not starting with an error message saying this application has quit abnormally. That was fixed when I took the PYTHONPATH statement out of my environment variables.

Re: File access denied after subprocess completion on Windows platform

2011-05-24 Thread Tim Golden
On 24/05/2011 11:01, Claudiu Nicolaie CISMARU wrote: The problem appears when I close the called program (in our case calc.exe). The (1) part (the call of os.rename) raise an exception: type 'exceptions.WindowsError' (32, 'The process cannot access the file because it is being used by another

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Teemu Likonen
* 2011-05-24T06:05:35-04:00 * D'Arcy J. M. Cain wrote: On Tue, 24 May 2011 09:00:14 +0300 Octavian Rasnita orasn...@gmail.com wrote: %d = @l; Please tell me if Python has a syntax which is more clear than this for doing this thing. How is that clear? Shorter != clearer. A Python

Re: how to get PID from subprocess library

2011-05-24 Thread TheSaint
Anssi Saari wrote: Couldn't you just try to call something via this handle, like self.handle.aria2.getVersion()? If there's an error, then start aria2 as a daemon and try again. Very good, you're right. Furthermore I should avoid to call that function several times. I think to join it with

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Kevin Walzer
On 5/22/11 3:44 AM, Octavian Rasnita wrote: Somebody told that C# and Objective C are good languages. They might be good, but they are proprietary, and not only that they are proprietary, but they need to be ran under platforms that cannot be used freely, so from the freedom point of view,

Re: os.access giving incorrect results on Windows

2011-05-24 Thread Tim Golden
On 20/05/2011 12:26, Ayaskanta Swain wrote: Thanks for the reply and suggestions. I followed the patch provided by you in issue 2528, but the code looks very tricky to me. OK, first a summary of the discussion on the python-dev thread. Essentially it was felt that os.access was sufficiently

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 12:09 AM, Kevin Walzer k...@codebykevin.com wrote: Proprietary? Licensing options for C# in its Mono (Free Platform) implementation: http://www.mono-project.com/Licensing Licensing options for Objective-C in its GNUStep (Free Platform) implementaiton

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Kevin Walzer
On 5/24/11 2:23 AM, Stefan Behnel wrote: Beliavsky, 20.05.2011 18:39: I thought this essay on why one startup chose Python was interesting. Since everyone seems to be hot flaming at their pet languages in this thread, let me quickly say this: Thanks for sharing the link. Stefan I kind of

Codes do not run

2011-05-24 Thread SKHUMBUZO ZIKHALI
Hi: I am learning Python on my own using a Guide to Programming with Python book. Author of the book is Micheal Dawson and I am using version 2.3.5 of python.  When I try to run the code I do not get required results. The picture could not be loaded. I get trackback message regarding

Re: Codes do not run

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 1:17 AM, SKHUMBUZO ZIKHALI akekhofanan...@yahoo.co.uk wrote: The example from the book is as follows: from liveswires import games I think this might be meant to say livewires. Presumably you did install this package? If not, it won't work (but even if you have, it

Obtaining a full path name from file

2011-05-24 Thread RVince
s = C:\AciiCsv\Gravity_Test_data\A.csv f = open(s,r) How do I obtain the full pathname given the File, f? (which should equal C:\AciiCsv\Gravity_Test_data). I've tried all sorts of stuff and am just not finding it. Any help greatly appreciated ! --

Re: Codes do not run

2011-05-24 Thread Tim Johnson
* SKHUMBUZO ZIKHALI akekhofanan...@yahoo.co.uk [110524 07:26]: Hi: I am learning Python on my own using a Guide to Programming with Python book. Author of the book is Micheal Dawson and I am using version 2.3.5 of python.  When I try to run the code I do not get required results. The

Re: Obtaining a full path name from file

2011-05-24 Thread Tim Golden
On 24/05/2011 16:36, RVince wrote: s = C:\AciiCsv\Gravity_Test_data\A.csv f = open(s,r) How do I obtain the full pathname given the File, f? (which should equal C:\AciiCsv\Gravity_Test_data). I've tried all sorts of stuff and am just not finding it. Any help greatly appreciated ! You're going

Re: Obtaining a full path name from file

2011-05-24 Thread RVince
Ha! You;re right -- but is there a way to get it without the filename appended at the end? On May 24, 11:52 am, Tim Golden m...@timgolden.me.uk wrote: On 24/05/2011 16:36, RVince wrote: s = C:\AciiCsv\Gravity_Test_data\A.csv f = open(s,r) How do I obtain the full pathname given the File,

Re: Obtaining a full path name from file

2011-05-24 Thread Mel
Tim Golden wrote: On 24/05/2011 16:36, RVince wrote: s = C:\AciiCsv\Gravity_Test_data\A.csv f = open(s,r) How do I obtain the full pathname given the File, f? (which should equal C:\AciiCsv\Gravity_Test_data). I've tried all sorts of stuff and am just not finding it. Any help greatly

Re: Obtaining a full path name from file

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 2:04 AM, RVince rvinc...@gmail.com wrote: Ha! You;re right -- but is there a way to get it without the filename appended at the end? Parse the file name with the os.path functions: http://docs.python.org/library/os.path.html Chris Angelico --

Re: Obtaining a full path name from file

2011-05-24 Thread Tim Golden
On 24/05/2011 17:04, RVince wrote: Ha! You;re right -- but is there a way to get it without the filename appended at the end? Well, just use the functions in os.path, specifically os.path.dirname... TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: Obtaining a full path name from file

2011-05-24 Thread Jean-Michel Pichavant
RVince wrote: Ha! You;re right -- but is there a way to get it without the filename appended at the end? On May 24, 11:52 am, Tim Golden m...@timgolden.me.uk wrote: On 24/05/2011 16:36, RVince wrote: s = C:\AciiCsv\Gravity_Test_data\A.csv f = open(s,r) How do I obtain the full

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: D'Arcy J.M. Cain da...@druid.net On Tue, 24 May 2011 09:00:14 +0300 Octavian Rasnita orasn...@gmail.com wrote: So, again, in Perl is just: %d = @l; Please tell me if Python has a syntax which is more clear than this for doing this thing. How is that clear? Shorter != clearer.

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: D'Arcy J.M. Cain da...@druid.net On Tue, 24 May 2011 00:17:55 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would send me

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Daniel Kluev dan.kl...@gmail.com On Tue, May 24, 2011 at 5:00 PM, Octavian Rasnita orasn...@gmail.com wrote: And you are telling that in Perl should be used an even more complicated and ugly syntax just for beeing the same as in Python just for showing that I am wrong, but I was

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: Kevin Walzer k...@codebykevin.com On 5/22/11 3:44 AM, Octavian Rasnita wrote: Somebody told that C# and Objective C are good languages. They might be good, but they are proprietary, and not only that they are proprietary, but they need to be ran under platforms that cannot be used

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
Subject: Re: Why did Quora choose Python for its development? I've been programming for about seven years, and am basically self-taught. I got my first taste of writing code when trying do to some basic hacking on my (then) shiny new G3 iBook. (Even though it was a Mac, I was enthralled by

Re: Python 3.2 Idle doesn't start. No error message.

2011-05-24 Thread Terry Reedy
On 5/24/2011 8:01 AM, markrri...@aol.com wrote: Hello all. I have Python 2.71 installed on my Windows 7 laptop and it runs fine. I was having a problem with Python 3.2, 32bit, not starting with an error message saying this application has quit abnormally. That was fixed when I took the

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Teemu Likonen tliko...@iki.fi writes: * 2011-05-24T06:05:35-04:00 * D'Arcy J. M. Cain wrote: On Tue, 24 May 2011 09:00:14 +0300 Octavian Rasnita orasn...@gmail.com wrote: %d = @l; Please tell me if Python has a syntax which is more clear than this for doing this thing. How is that

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
D'Arcy J.M. Cain da...@druid.net writes: On Tue, 24 May 2011 00:17:55 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would send me

Re: File access denied after subprocess completion on Windows platform

2011-05-24 Thread Claudiu Nicolaie CISMARU
I'm quoting a message that I received on personal address and wasn't sent to list: try adding argument close_fds=True to subprocess.Popen harish And Tim's message: It's not quite clear from your description above whether you can be sure that the called subprocess has closed all its

Re: Why did Quora choose Python for its development?

2011-05-24 Thread D'Arcy J.M. Cain
On Tue, 24 May 2011 19:10:56 +0300 Octavian Rasnita orasn...@gmail.com wrote: If I was even considering using Perl, this one exchange would send me screaming in the opposite direction. If you didn't consider to change the language you prefer it means that you are closed minded and use to

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 2:50 AM, John Bokma j...@castleamber.com wrote: Wise words. And I agree. To me Python vs. Perl has nothing to do with being a fanboy (unlike many other posters here). I like both languages, I have invested a lot of time in learning Python and I am really not dense. Yet,

Re: Why did Quora choose Python for its development?

2011-05-24 Thread D'Arcy J.M. Cain
On Tue, 24 May 2011 11:52:39 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would send me screaming in the opposite direction.

Re: English Idiom in Unix: Directory Recursively

2011-05-24 Thread Xah Lee
On May 23, 9:28 pm, Chris Angelico ros...@gmail.com wrote: On Tue, May 24, 2011 at 2:20 PM, Xah Lee xah...@gmail.com wrote: why don't you file a bug report? In GNU Emacs 23.2, it's under the Help menu. I suppose it's the same in other emacs distro. Because I do not consider its behaviour to

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 2:50 AM, John Bokma j...@castleamber.com wrote: Wise words. And I agree. To me Python vs. Perl has nothing to do with being a fanboy (unlike many other posters here). I like both languages, I have invested a lot of time in

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
D'Arcy J.M. Cain da...@druid.net writes: On Tue, 24 May 2011 11:52:39 -0500 John Bokma j...@castleamber.com wrote: $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array; If I was even considering using Perl, this one exchange would

Re: NEED HELP- read file contents, while loop to accept user

2011-05-24 Thread Cathy James
TJG- that solved the printing issue!! Many thanks:) Thanks to Chris and Jean Michel for your hints. On Tue, May 24, 2011 at 4:07 AM, python-list-requ...@python.org wrote: Send Python-list mailing list submissions to python-list@python.org To subscribe or unsubscribe via the World

subscribef

2011-05-24 Thread Jim Syyap
-- http://mail.python.org/mailman/listinfo/python-list

Re: Obtaining a full path name from file

2011-05-24 Thread Michael Kent
If a filename does not contain a path component, os.path.abspath will prepend the current directory path onto it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Octavian Rasnita
From: John Bokma j...@castleamber.com Octavian Rasnita orasn...@gmail.com writes: From: Daniel Kluev dan.kl...@gmail.com a = [1,2] dict([a]) Yes, but d = dict([a]) is not so nice as $d = @a; That will give you the number of elements in @a. What you (probably) mean is %hash = @array;

Code Review

2011-05-24 Thread ad
Hello all, Please review the code pasted below. I am wondering what other ways there are of performing the same tasks. This was typed using version 3.2. The script is designed to clean up a directory (FTP, Logs, etc.) Basically you pass two arguments. The first argument is an number of days old

Re: Python 3.2 Idle doesn't start. No error message.

2011-05-24 Thread markrrivet
On Tue, 24 May 2011 12:50:47 -0400, Terry Reedy tjre...@udel.edu wrote: On 5/24/2011 8:01 AM, markrri...@aol.com wrote: Hello all. I have Python 2.71 installed on my Windows 7 laptop and it runs fine. I was having a problem with Python 3.2, 32bit, not starting with an error message saying this

Re: File access denied after subprocess completion on Windows platform

2011-05-24 Thread Claudiu Nicolaie CISMARU
Seems that close_fds did the trick. Anyway, I read that description on the documentation last night but I think I was so tired that I understood that in Windows has no effect... :) Now. There is one more issue. Seems that on faster computers and/or Windows 7 (the Win32 thing I have tested

Odp: Re: Strange behaviour of input() function (Python 3.2)

2011-05-24 Thread sunrrrise
Ok, another time I'd like to thank you for your help. I gave up, I'm going to get used to IDLE GUI... at least this one works! -- http://mail.python.org/mailman/listinfo/python-list

Re: Functional Programing: stop using recursion, cons. Use map vectors

2011-05-24 Thread asandroq
On May 24, 12:27 am, Deeyana d.awlb...@hotmail.invalid wrote: Classic unsubstantiated and erroneous claim. Scheme does not come OOTB with any suitable libraries for host interop and though it can make calls to C libraries, doing so is awkward and involves difficulties with the impedance

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 3:56 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: To me, a language is a tool. To me, and to a lot of Perl programmers it's not different. The more tools you have competence with, the easier it will be to select the right one for

Re: Python 3.2 Idle doesn't start. No error message.

2011-05-24 Thread Terry Reedy
On 5/24/2011 4:12 PM, markrri...@aol.com wrote: On Tue, 24 May 2011 12:50:47 -0400, Terry Reedytjre...@udel.edu How do you try to start it? From start|programs|python and clicking on the idle icon. OK. Works fine for me on winxp desktop and win7 laptop. 3.2.1 will be out soon. Whether or

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 3:39 AM, D'Arcy J.M. Cain da...@druid.net wrote: My point was that even proponents of the language can make a significant error based on the way the variable is named.  It's like the old Fortran IV that I first learned where the name of the variable determined whether

Re: File access denied after subprocess completion on Windows platform

2011-05-24 Thread Terry Reedy
On 5/24/2011 4:18 PM, Claudiu Nicolaie CISMARU wrote: Seems that close_fds did the trick. Anyway, I read that description on the documentation last night but I think I was so tired that I understood that in Windows has no effect... :) Now. There is one more issue. Seems that on faster

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 3:56 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: To me, a language is a tool. To me, and to a lot of Perl programmers it's not different. The more tools you have competence with, the

Re: Python 3.2 Idle doesn't start. No error message.

2011-05-24 Thread markrrivet
On Tue, 24 May 2011 17:53:53 -0400, Terry Reedy tjre...@udel.edu wrote: On 5/24/2011 4:12 PM, markrri...@aol.com wrote: On Tue, 24 May 2011 12:50:47 -0400, Terry Reedytjre...@udel.edu How do you try to start it? From start|programs|python and clicking on the idle icon. OK. Works fine for me

Re: English Idiom in Unix: Directory Recursively

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 3:40 AM, Xah Lee xah...@gmail.com wrote: On May 23, 9:28 pm, Chris Angelico ros...@gmail.com wrote: Because I do not consider its behaviour to be errant. And I suspect its main developers won't either. That's why I suggested you grab the sources and make The Perfect

Beginner needs advice

2011-05-24 Thread Lew Schwartz
Here's my background: I'm a Windows based Visual FoxPro developer, and I want to start programming in Python. I'll be sticking to Windows (XP 7) and my immediate needs are to manage display large groups of jpg's, tiff's etc... so I need form based graphics capable libraries (in addition to

Re: Functional Programing: stop using recursion, cons. Use map vectors

2011-05-24 Thread Chris Angelico
On Tue, May 24, 2011 at 8:27 AM, Deeyana d.awlberg@hotmail.invalid wrote: Classic unsubstantiated and erroneous claim. Scheme does not come OOTB with any suitable libraries for host interop and though it can make calls to C libraries, doing so is awkward and involves difficulties with the

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 3:39 AM, D'Arcy J.M. Cain da...@druid.net wrote: My point was that even proponents of the language can make a significant error based on the way the variable is named.  It's like the old Fortran IV that I first learned where the

Re: Why did Quora choose Python for its development?

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 9:16 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: Yes, I believe that was Perl. And an amusing quote. But most of the point of it comes from the fact that Perl uses punctuation for most of its keywords, For example? whereas

Re: Faster Recursive Fibonacci Numbers

2011-05-24 Thread Raymond Hettinger
On May 17, 8:50 am, RJB rbott...@csusb.edu wrote: I noticed some discussion of recursion. the trick is to find a formula where the arguments are divided, not decremented. I've had a divide-and-conquer recursion for the Fibonacci numbers for a couple of years in C++ but just for fun rewrote

Re: English Idiom in Unix: Directory Recursively

2011-05-24 Thread Rikishi42
On 2011-05-24, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I think that is a patronizing remark that under-estimates the intelligence of lay people and over-estimates the difficulty of understanding recursion. Why would you presume this to be related to intelligence? The

Re: Functional Programing: stop using recursion, cons. Use map vectors

2011-05-24 Thread Deeyana
On Tue, 24 May 2011 13:39:15 -0700, asandroq wrote: On May 24, 12:27 am, Deeyana d.awlb...@hotmail.invalid wrote: Classic unsubstantiated and erroneous claim. Scheme does not come OOTB with any suitable libraries for host interop and though it can make calls to C libraries, doing so is

Link errors embedding Python 3.2

2011-05-24 Thread Chris Angelico
I'm starting to feel incredibly stupid here. Hopefully someone can point out a really obvious thing that I've missed, thus enabling me to move forward! Up until now, I've been embedding Python 2.6.6 in my C++ program, by compiling with -I/usr/include/python2.6 -lpython2.6, and all has been well.

Subject: mrjob v0.2.6 released

2011-05-24 Thread Jimmy Retzlaff
What is mrjob? - mrjob is a Python package that helps you write and run Hadoop Streaming jobs. mrjob fully supports Amazon's Elastic MapReduce (EMR) service, which allows you to buy time on a Hadoop cluster on an hourly basis. It also works with your own Hadoop cluster. Some

Re: Beginner needs advice

2011-05-24 Thread memilanuk
On 05/24/2011 03:17 PM, Lew Schwartz wrote: Here's my background: I'm a Windows based Visual FoxPro developer, and I want to start programming in Python. I'll be sticking to Windows (XP 7) and my immediate needs are to manage display large groups of jpg's, tiff's etc... so I need form based

Re: English Idiom in Unix: Directory Recursively

2011-05-24 Thread Chris Angelico
On Wed, May 25, 2011 at 8:06 AM, Rikishi42 skunkwo...@rikishi42.net wrote: On 2011-05-24, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Why not use 'delete a directory'. It's obvious the content gets binned, too. Which is why I raised the issue with regard to other operations.

Re: Why did Quora choose Python for its development?

2011-05-24 Thread John Bokma
Chris Angelico ros...@gmail.com writes: On Wed, May 25, 2011 at 9:16 AM, John Bokma j...@castleamber.com wrote: Chris Angelico ros...@gmail.com writes: Yes, I believe that was Perl. And an amusing quote. But most of the point of it comes from the fact that Perl uses punctuation for most of

Re: Abandoning Python

2011-05-24 Thread Paul Rubin
John Lee j...@pobox.com writes: In this thread, I'm asking about the views of Python programmers on languages other than Python. I sympathize with what you're looking for but I don't think there's a really good answer at this time. Things IMO are converging in the direction of functional

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-24 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: Wait, the tests seem wrong. I'll post an update later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1625 ___

[issue12136] test_logging fails when no ssl available

2011-05-24 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12136 ___

[issue12151] test_logging fails sometimes

2011-05-24 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12151 ___ ___

[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list

[issue12155] queue example doesn't stop worker threads

2011-05-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Is it unclear to you what those mean? Well, it's clear, but I like when I can simply copy/paste the example and it does just work: If you post a high-quality self-contained example somewhere on the net, I would be happy to

[issue6560] socket sendmsg(), recvmsg() methods

2011-05-24 Thread Gergely Kálmán
Gergely Kálmán kalman.gerg...@duodecad.hu added the comment: No, indeed this is a lot better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6560 ___

[issue8796] Deprecate codecs.open()

2011-05-24 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: -- title: Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter - Deprecate codecs.open() ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796

[issue12166] object.__dir__

2011-05-24 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: Implementing a custom __dir__ method is fiddly because there is no way of obtaining the standard list of attributes that dir would return. Moving the relevant parts of the dir implementation into object.__dir__ would allow a custom

[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I think it's better to use a StringIO instance for the tests. For which test excatly? An encoder produces bytes, I don't the relation with StringIO. -- ___ Python tracker

[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-24 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 5c716437a83a by Victor Stinner in branch 'default': Issue #12049: Add RAND_bytes() and RAND_pseudo_bytes() functions to the ssl http://hg.python.org/cpython/rev/5c716437a83a -- nosy: +python-dev

[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12049 ___

[issue12167] test_packaging reference leak

2011-05-24 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Looks like either packaging or test_packaging forgets to clean up after itself: results for 9a16fa0c9548 on branch default test_packaging leaked [193, 193, 193] references, sum=579 --

[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: I think it's better to use a StringIO instance for the tests. For which test excatly? An encoder produces bytes, I don't the relation with

[issue12028] threading._get_ident(): remove it in the doc or make it public

2011-05-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: threading_get_ident.patch: make get_ident() public, replace threading._get_ident() by threading.get_ident(). According to this patch, get_ident() function *is* used: it is used by the logging and reprlib modules (and many tests).

[issue12167] test_packaging reference leak

2011-05-24 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12167 ___ ___

[issue12140] Crash upon start up

2011-05-24 Thread Philip Drew
Philip Drew pwtd...@gmail.com added the comment: Ok, python now works in command prompt, but IDLE still wont run. Also, PYTHONHOME needs to be reset on every start up of command prompt. -- ___ Python tracker rep...@bugs.python.org

[issue12166] object.__dir__

2011-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12166 ___ ___

[issue12089] regrtest.py doesn't check for unexpected output anymore?

2011-05-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @Antoine: What's your opinion? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12089 ___

[issue11748] test_ftplib failure in test for source_address

2011-05-24 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Is this fixed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11748 ___ ___

  1   2   3   >