Re: Passing command line argument to program from within IDLE?

2010-02-04 Thread Tim Chase
Gabriel Genellina wrote: En Thu, 04 Feb 2010 20:46:52 -0300, John Bokma Oops, that should've been Steve, my apologies. See http://bugs.python.org/issue5680 Am I the only one that expected that issue to be about too many Steves (and perhaps too many Tims) on c.l.p? :-) -tkc -- http:/

merge stdin, stdout?

2010-02-04 Thread jonny lowe
Hi everyone, Is there an easy way to merge stdin and stdout? For instance suppose I have script that prompts for a number and prints the number. If you execute this with redirection from a file say input.txt with 42 in the file, then executing ./myscript < input.txt > output.txt the output.txt m

Re: python admin abuse complaint

2010-02-04 Thread Stephen Thorne
On Feb 5, 9:02 am, Steve Holden wrote: > > • The list of ban'd person's names, the reason for banning, and the > > name of admin who ban'd them, should be public. (irc already provides > > means for this that allows admins to annotate in the ban list.) In > > particular, if you are going to ban so

Exiting a Program Running in Idle, Various Choices

2010-02-04 Thread W. eWatson
I I have a very simple program running in Python, with say the last line print "bye". it finishes leaving the script showing >>> in the shell window. The program proceeds linearly to the bottom line. Suppose now I have instead a few lines of MatPlotLib code (MPL) like this at the end: ... S

Re: python admin abuse complaint

2010-02-04 Thread Steve Holden
Stephen Thorne wrote: > On Feb 5, 9:02 am, Steve Holden wrote: >>> • The list of ban'd person's names, the reason for banning, and the >>> name of admin who ban'd them, should be public. (irc already provides >>> means for this that allows admins to annotate in the ban list.) In >>> particular, if

Re: Problem with __init__.py in Python3.1

2010-02-04 Thread Hidura
Thanks i middle resolve the problem, and i going to read the PEP-366 i've been read the 328, i will kept informed of the progresses. Thanks again for the help [?] On Thu, Feb 4, 2010 at 6:47 PM, Ben Finney > wrote: > "Gabriel Genellina" writes: > > > If you directly run a script from inside a

Re: merge stdin, stdout?

2010-02-04 Thread exarkun
On 01:56 am, jonny.lowe.12...@gmail.com wrote: Hi everyone, Is there an easy way to merge stdin and stdout? For instance suppose I have script that prompts for a number and prints the number. If you execute this with redirection from a file say input.txt with 42 in the file, then executing ./my

Re: Your beloved python features

2010-02-04 Thread Sean DiZazzo
On Feb 4, 3:03 pm, Julian wrote: > Hello, > > I've asked this question at stackoverflow a few weeks ago, and to make > it clear: this should NOT be a copy of the stackoverflow-thread > "hidden features of Python". > > I want to design a poster for an open source conference, the local > usergroup w

Re: equivalent of Ruby's Pathname?

2010-02-04 Thread Sean DiZazzo
On Feb 3, 6:08 pm, alex23 wrote: > On Feb 4, 8:47 am, Phlip wrote: > > > Yes, calling os.path.walk() and os.path.join() all the time on raw > > strings is fun, but I seem to recall from my Ruby days a class called > > Pathname, which presented an object that behaved like a string at > > need, and

Re: Passing parameters in URL

2010-02-04 Thread Alan Harris-Reid
Many thanks to all those who replied to my question and clearing-up the differences between GET and POST. I think I know what to do now - if not, I'll be back :-) Regards, Alan -- http://mail.python.org/mailman/listinfo/python-list

ANN: ActivePython 2.6.4.10 is now available

2010-02-04 Thread Sridhar Ratnakumar
I'm happy to announce that ActivePython 2.6.4.10 is now available for download from: http://www.activestate.com/activepython/ This is a minor release with several updates and fixes. Changes in 2.6.4.10 --- - PyPM is now included in 64-bit Windows and Linux builds - Include

Re: Passing command line argument to program from within IDLE?

2010-02-04 Thread Steven D'Aprano
On Thu, 04 Feb 2010 19:36:19 -0600, Tim Chase wrote: > Gabriel Genellina wrote: >> En Thu, 04 Feb 2010 20:46:52 -0300, John Bokma >>> Oops, that should've been Steve, my apologies. >> >> See http://bugs.python.org/issue5680 > > > Am I the only one that expected that issue to be about too many

Re: Passing command line argument to program from within IDLE?

2010-02-04 Thread John Bokma
Tim Chase writes: > Gabriel Genellina wrote: >> En Thu, 04 Feb 2010 20:46:52 -0300, John Bokma >> >>> Oops, that should've been Steve, my apologies. >> >> See http://bugs.python.org/issue5680 > > Am I the only one that expected that issue to be about too many Steves > (and perhaps too many Tim

Re: Common area of circles

2010-02-04 Thread John Nagle
Chris Rebert wrote: On Thu, Feb 4, 2010 at 2:39 AM, Shashwat Anand wrote: Given 'n' circles and the co-ordinates of their center, and the radius of all being equal i.e. 'one', How can I take out the intersection of their area. How is this at all specific to Python? This also sounds suspiciou

Re: Your beloved python features

2010-02-04 Thread Arnaud Delobelle
On 4 Feb, 23:03, Julian wrote: > Hello, > > I've asked this question at stackoverflow a few weeks ago, and to make > it clear: this should NOT be a copy of the stackoverflow-thread > "hidden features of Python". > > I want to design a poster for an open source conference, the local > usergroup wil

Re: Your beloved python features

2010-02-04 Thread Xavier Ho
Personally, I love the fact that I can type in 2**25 in the intepreter without crashing my machine. ;) Cheers, -Xav -- http://mail.python.org/mailman/listinfo/python-list

Re: Your beloved python features

2010-02-04 Thread Paul Rubin
Julian writes: > I want to design a poster for an open source conference, the local > usergroup will have a table there, and in the past years there were > some people that came to the python-table just to ask "why should I > use python?". - Very easy to learn, at least for the not-too-hairy frag

Re: Your beloved python features

2010-02-04 Thread George Sakkis
On Feb 5, 2:45 am, "Bruce C. Baker" wrote: > "Terry Reedy" wrote in message > > news:mailman.1929.1265328905.28905.python-l...@python.org... > > > Iterators, and in particular, generators. > > A killer feature. > > > Terry Jan Reedy +1, iterators/generators is among Python's best features for m

Re: Python 3 minor irritation

2010-02-04 Thread David Monaghan
On Thu, 04 Feb 2010 00:39:01 +, David Monaghan wrote: >I have a small program which reads files from the directory in which it >resides. It's written in Python 3 and when run through IDLE or PythonWin >works fine. If I double-click the file, it works fine in Python 2.6, but in >3 it fails bec

<    1   2