Re: Uniform Function Call Syntax (UFCS)

2014-06-10 Thread jongiddy
So, just to summarise the discussion: There was some very mild support for readable pipelines, either using UFCS or an alternative syntax, but the Pythonic way to make combinations of function and method applications readable is to assign to variables over multiple lines. Make the code read

Re: lists vs. NumPy arrays for sets of dates and strings

2014-06-10 Thread Peter Otten
beliav...@aol.com.dmarc.invalid wrote: I am going to read a multivariate time series from a CSV file that looks like Date,A,B 2014-01-01,10.0,20.0 2014-01-02,10.1,19.9 ... The numerical data I will store in a NumPy array, since they are more convenient to work with than lists of

Re: try/except/finally

2014-06-10 Thread Thomas Rachel
Am 08.06.2014 05:58 schrieb Rustom Mody: Some people¹ think that gotos are a code-smell. ¹ I am not exactly those people. A chap called E W Dijkstra made the statement: Goto statement considered harmful and became famous. And became widely misunderstood. If anybody would read the whole what

Re: try/except/finally

2014-06-10 Thread Marko Rauhamaa
Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa...@spamschutz.glglgl.de: Essentially, you can write both good and bad code both with and without goto. Point is, choose tasteful idioms in your code. Marko -- https://mail.python.org/mailman/listinfo/python-list

Is this sort of a constraint implementable in Python?

2014-06-10 Thread varun7rs
Hello Everyone, I'm working on a python code to input matrices into CPLEX solver. I have most of my code running fine but as of now, I don't know how to express this constraint. My objective is to minimize the number of nodes. I have got one of the weirdest looking constraints which I don't

Re: First time I looked at Python was(...)

2014-06-10 Thread alister
On Mon, 09 Jun 2014 21:54:25 +0100, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ... it's easy to read ...

Re: Interfacing Fortran applications

2014-06-10 Thread alister
On Mon, 09 Jun 2014 14:24:07 +0200, Michael Welle wrote: Hello, Sturla Molden sturla.mol...@gmail.com writes: Michael Welle mwe012...@gmx.net wrote: I thought about equipping the Fortran application with sockets, so that I can send input data and commands (which is now done via cmd

Re: First time I looked at Python was(...)

2014-06-10 Thread Robin Becker
On 10/06/2014 11:14, alister wrote: On Mon, 09 Jun 2014 21:54:25 +0100, Carlos Anselmo Dias wrote: I'm sorry What does all this relate to? Turing test? -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 11:14 AM, alister wrote: On Mon, 09 Jun 2014 21:54:25 +0100, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I

Re: try/except/finally

2014-06-10 Thread Rustom Mody
On Tuesday, June 10, 2014 12:57:29 PM UTC+5:30, Thomas Rachel wrote: Am 08.06.2014 05:58 schrieb Rustom Mody: Some people� think that gotos are a code-smell. � I am not exactly those people. A chap called E W Dijkstra made the statement: Goto statement considered harmful and became

Re: First time I looked at Python was(...)

2014-06-10 Thread Ben Finney
Carlos Anselmo Dias car...@premium-sponsor.com writes: Following my post Copy/paste of python team(...) + script attachment(...) I find those screeds very difficult to read. One significant improvement would be to write sentences *as* sentences, without trailing them away with an ellipsis.

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 01:10 PM, Ben Finney wrote: Carlos Anselmo Dias car...@premium-sponsor.com writes: Following my post Copy/paste of python team(...) + script attachment(...) I find those screeds very difficult to read. One significant improvement would be to write sentences *as* sentences,

Re: First time I looked at Python was(...)

2014-06-10 Thread alister
On Tue, 10 Jun 2014 13:39:50 +0100, Carlos Anselmo Dias wrote: On 06/10/2014 01:10 PM, Ben Finney wrote: Carlos Anselmo Dias car...@premium-sponsor.com writes: Following my post Copy/paste of python team(...) + script attachment(...) I find those screeds very difficult to read. One

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 01:47 PM, alister wrote: On Tue, 10 Jun 2014 13:39:50 +0100, Carlos Anselmo Dias wrote: On 06/10/2014 01:10 PM, Ben Finney wrote: Carlos Anselmo Dias car...@premium-sponsor.com writes: Following my post Copy/paste of python team(...) + script attachment(...) I find those

Re: First time I looked at Python was(...)

2014-06-10 Thread alister
On Tue, 10 Jun 2014 14:09:52 +0100, Carlos Anselmo Dias wrote: Hi ... English is not my maternal language ... I wrote what I consider the most appropriated taking in consideration that the summary of the description might be enough to help people think about it ... If those were the main

Re: First time I looked at Python was(...)

2014-06-10 Thread alister
On Tue, 10 Jun 2014 11:53:38 +0100, Robin Becker wrote: On 10/06/2014 11:14, alister wrote: On Mon, 09 Jun 2014 21:54:25 +0100, Carlos Anselmo Dias wrote: I'm sorry What does all this relate to? Turing test? I think you mast be correct -- Iowa State -- the high school after

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 02:16 PM, alister wrote: On Tue, 10 Jun 2014 14:09:52 +0100, Carlos Anselmo Dias wrote: Hi ... English is not my maternal language ... I wrote what I consider the most appropriated taking in consideration that the summary of the description might be enough to help people think

Re: First time I looked at Python was(...)

2014-06-10 Thread Rustom Mody
On Tuesday, June 10, 2014 6:55:27 PM UTC+5:30, Carlos Anselmo Dias wrote: https://www.youtube.com/watch?v=N1EwYpfUFQU (...) http://huntingtonleadership.com/blog/entry/communication-is-a-two-way-street.html -- https://mail.python.org/mailman/listinfo/python-list

Re: First time I looked at Python was(...)

2014-06-10 Thread Grant Edwards
On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native language? I doubt it. -- Grant Edwards

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence is the way things are done in your native

Re: First time I looked at Python was(...)

2014-06-10 Thread Ned Batchelder
On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every completing a sentence

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 03:07 PM, Ned Batchelder wrote: On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases

Re: First time I looked at Python was(...)

2014-06-10 Thread Joel Goldstick
This looks like a bot On Jun 10, 2014 10:08 AM, Ned Batchelder n...@nedbatchelder.com wrote: On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal

Re: First time I looked at Python was(...)

2014-06-10 Thread alister
On Tue, 10 Jun 2014 14:59:09 +0100, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias car...@premium-sponsor.com wrote: English is not my maternal language ... And stringing together a bunch of phrases with elipses without every

Re: First time I looked at Python was(...)

2014-06-10 Thread Rustom Mody
On Tuesday, June 10, 2014 7:48:05 PM UTC+5:30, Carlos Anselmo Dias wrote: On 06/10/2014 03:07 PM, Ned Batchelder wrote: On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias wrote: English is not my maternal

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 03:24 PM, Rustom Mody wrote: On Tuesday, June 10, 2014 7:48:05 PM UTC+5:30, Carlos Anselmo Dias wrote: On 06/10/2014 03:07 PM, Ned Batchelder wrote: On 6/10/14 9:59 AM, Carlos Anselmo Dias wrote: On 06/10/2014 02:47 PM, Grant Edwards wrote: On 2014-06-10, Carlos Anselmo Dias

Re: First time I looked at Python was(...)

2014-06-10 Thread Mark H Harris
On 6/9/14 3:54 PM, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ... it's easy to read ... even if I'm not familiar

Re: Is MVC Design Pattern good enough?

2014-06-10 Thread Ian Kelly
On Mon, Jun 9, 2014 at 9:54 PM, Stefan Ram r...@zedat.fu-berlin.de wrote: Chris Angelico ros...@gmail.com writes: On Tue, Jun 10, 2014 at 12:57 PM, Stefan Ram r...@zedat.fu-berlin.de wrote: AFAIK standard Python has no GUI library at all, so Java SE and C# already are better than Python insofar

Re: First time I looked at Python was(...)

2014-06-10 Thread Shiyao Ma
I wonder if it's opensourced. I am kinda interested in its implementation. On the whole, the performance is rather good. 2014-06-10 22:39 GMT+08:00 Mark H Harris harrismh...@gmail.com: On 6/9/14 3:54 PM, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 04:09 PM, Shiyao Ma wrote: I wonder if it's opensourced. I am kinda interested in its implementation. On the whole, the performance is rather good. 2014-06-10 22:39 GMT+08:00 Mark H Harris harrismh...@gmail.com mailto:harrismh...@gmail.com: On 6/9/14 3:54 PM, Carlos

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 03:39 PM, Mark H Harris wrote: On 6/9/14 3:54 PM, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ...

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 02:38 PM, Rustom Mody wrote: On Tuesday, June 10, 2014 6:55:27 PM UTC+5:30, Carlos Anselmo Dias wrote: https://www.youtube.com/watch?v=N1EwYpfUFQU (...) http://huntingtonleadership.com/blog/entry/communication-is-a-two-way-street.html Making part of the team ...

Re: First time I looked at Python was(...)

2014-06-10 Thread Søren
Hi ... That's great and you're one person with enough /Intelligence/ to participate in the projects I described you. You can think about the solution, logs , how the information is organized,etc. You're certainly one of the persons! I'm not writing more ... I have been on this mail

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 03:57 PM, Søren wrote: Hi ... That's great and you're one person with enough /Intelligence/ to participate in the projects I described you. You can think about the solution, logs , how the information is organized,etc. You're certainly one of the persons! I'm not writing

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
Let me finish with this ... https://www.youtube.com/watch?v=M79e5ji-53w I'm waiting for traffic of search engines to start organizing what must be organized ... I've already one main section more or less organized ... and that main section will allow to develop the other sections ... One

Re: try/except/finally

2014-06-10 Thread Skip Montanaro
Here is Dijkstra: http://www.u.arizona.edu/~rubinson/copyright_violations/Go_To_Considered_Harmful.html ... And here is Hoare... | Ada has a plethora of features and notational conventions, many of them | unnecessary and some of them, like exception handling, even | dangerous. Do not allow

Re: try/except/finally

2014-06-10 Thread Mark Lawrence
On 10/06/2014 08:27, Thomas Rachel wrote: Am 08.06.2014 05:58 schrieb Rustom Mody: Some people¹ think that gotos are a code-smell. ¹ I am not exactly those people. A chap called E W Dijkstra made the statement: Goto statement considered harmful and became famous. And became widely

Re: Is MVC Design Pattern good enough?

2014-06-10 Thread Mark Lawrence
On 10/06/2014 04:32, Chris Angelico wrote: On Tue, Jun 10, 2014 at 12:57 PM, Stefan Ram r...@zedat.fu-berlin.de wrote: AFAIK standard Python has no GUI library at all, so Java SE and C# already are better than Python insofar as they include a standard GUI toolkit at all! In Python one

Re: try/except/finally

2014-06-10 Thread Grant Edwards
On 2014-06-10, Mark Lawrence breamore...@yahoo.co.uk wrote: I entirely agree. I find it incredible that some people find it so difficult to differentiate having tens or even hundreds of gotos leaping around willy nilly to a similar number of labels, and a similar number of gotos targetted

Re: try/except/finally

2014-06-10 Thread alister
On Tue, 10 Jun 2014 19:14:18 +0100, Mark Lawrence wrote: On 10/06/2014 08:27, Thomas Rachel wrote: Am 08.06.2014 05:58 schrieb Rustom Mody: Some people¹ think that gotos are a code-smell. ¹ I am not exactly those people. A chap called E W Dijkstra made the statement: Goto statement

How do I get zlib installed on a python2.7 alt install?

2014-06-10 Thread Nzyme11
Installed python 2.7.7 on SLES from source to /opt/python2.7. It's already an installed module on 2.6. How do I get zlib installed on python2.7 as well?? -- https://mail.python.org/mailman/listinfo/python-list

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-10 Thread alister
On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote: Le samedi 7 juin 2014 04:20:22 UTC+2, Tim Chase a écrit : On 2014-06-06 09:59, Travis Griggs wrote: On Jun 4, 2014, at 4:01 AM, Tim Chase wrote: If you use UTF-8 for everything It seems to me, that increasingly other

Re: First time I looked at Python was(...)

2014-06-10 Thread Terry Reedy
On 6/10/2014 1:19 PM, Carlos Anselmo Dias wrote: Let me finish with this ... https://www.youtube.com/watch?off-topic music video Yes, do finish with that. People, please quit responding to 'carlos' from premium-sponsor.com (which apparently exists but has no web page). -- Terry Jan Reedy

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
Terry Jan Reedy ... https://www.youtube.com/watch?v=HbGHq2aUXDU (yhis one is portuguese ... I'm someone who did very probably more webpages than you in your entire life ... Do you exist? On 06/10/2014 08:57 PM, Terry Reedy wrote: On 6/10/2014 1:19 PM, Carlos Anselmo Dias wrote: Let

Re: Is this sort of a constraint implementable in Python?

2014-06-10 Thread Gary Herron
On 06/10/2014 02:12 AM, varun...@gmail.com wrote: Hello Everyone, I'm working on a python code to input matrices into CPLEX solver. I have most of my code running fine but as of now, I don't know how to express this constraint. My objective is to minimize the number of nodes. I have got one

Re: try/except/finally

2014-06-10 Thread Chris Angelico
On Wed, Jun 11, 2014 at 4:48 AM, Grant Edwards invalid@invalid.invalid wrote: I've seen some amazingly convoluted C code where people got themselves wrapped around the axle six different ways in order to avoid using goto fail or goto retry. Invariably I was looking at the code because it

Re: try/except/finally

2014-06-10 Thread Roy Smith
In article mailman.10972.1402432630.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Yeah. As soon as you take on board a hard-and-fast rule, you open yourself up to stupid cases where the rule ought to have been broken. I don't know a single piece of programming advice

Re: First time I looked at Python was(...)

2014-06-10 Thread leo kirotawa
Gzz, Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by his terrible taste in music. Wondering now about moderation , have we one? []'s On Tue, Jun 10, 2014 at 5:07 PM, Carlos Anselmo Dias car...@premium-sponsor.com wrote: Terry Jan Reedy ...

Re: try/except/finally

2014-06-10 Thread Chris Angelico
On Wed, Jun 11, 2014 at 6:38 AM, Roy Smith r...@panix.com wrote: In article mailman.10972.1402432630.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Yeah. As soon as you take on board a hard-and-fast rule, you open yourself up to stupid cases where the rule ought to have

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
The end- for replies like this one ... As far as I'm concerned and I'm not ... we'll talk about what I wrote when it will be time too ... There we'll see who has the possibility of participating ... and I'm not excluding people ... and certainly not those who answered like this ... I can't

Re: os.startfile hanging onto the launched app, or my IDE?

2014-06-10 Thread Ethan Furman
On 06/09/2014 09:46 PM, Tim Golden wrote: On 09/06/2014 23:31, Ethan Furman wrote: On 06/09/2014 03:21 PM, Josh English wrote: So this quirk is coming from PyScripter, which is a shame, because I don't think it's under development, so it won't be fixed. The nice thing about Python code is

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
Troll is you ... Get real ... On 06/10/2014 09:41 PM, leo kirotawa wrote: Gzz, Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by his terrible taste in music. Wondering now about moderation , have we one? []'s On Tue, Jun 10, 2014 at 5:07 PM, Carlos Anselmo Dias

Re: First time I looked at Python was(...)

2014-06-10 Thread Mark Lawrence
On 10/06/2014 21:41, leo kirotawa wrote: Gzz, Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by his terrible taste in music. Wondering now about moderation , have we one? No, otherwise the resident unicode expert would have been booted long ago. -- My fellow

Re: First time I looked at Python was(...)

2014-06-10 Thread Larry Martell
On Tue, Jun 10, 2014 at 4:51 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 10/06/2014 21:41, leo kirotawa wrote: Gzz, Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by his terrible taste in music. Wondering now about moderation , have we one? No, otherwise the

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
Hi... I don't understand the 'problem' of several people ... I created one post because I've several projects, I'm looking for one team of experienced experts in Python to work in my projects ... asap ... I provided one script(I'm not one expert in Python) to help people think and described

Re: First time I looked at Python was(...)

2014-06-10 Thread Ethan Furman
On 06/09/2014 01:54 PM, Carlos Anselmo Dias wrote: [snip] *plonk* -- https://mail.python.org/mailman/listinfo/python-list

Re: First time I looked at Python was(...)

2014-06-10 Thread Mark H Harris
On 6/10/14 3:41 PM, leo kirotawa wrote: Guys I'm from Brazil too, and I'm ashamed for this troll. Don't feed the troll bot. OTOH, it might be fun to feed it some weird subject|predicate phrases to see what it does with them. Bots eat bananas because bouncing on berries becomes beenie baby

Re: try/except/finally

2014-06-10 Thread Ethan Furman
On 06/10/2014 01:38 PM, Roy Smith wrote: Chris Angelico wrote: # Yeah. As soon as you take on board a hard-and-fast rule, you open yourself up to stupid cases where the rule ought to have been broken. I don't know a single piece of programming advice which, if taken as an inviolate rule,

Re: First time I looked at Python was(...)

2014-06-10 Thread Carlos Anselmo Dias
On 06/10/2014 10:32 PM, Mark H Harris wrote: On 6/10/14 3:41 PM, leo kirotawa wrote: Guys I'm from Brazil too, and I'm ashamed for this troll. Don't feed the troll bot. OTOH, it might be fun to feed it some weird subject|predicate phrases to see what it does with them. Bots eat bananas

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-10 Thread Tim Delaney
On 11 June 2014 05:43, alister alister.nospam.w...@ntlworld.com wrote: Your error reports always seem to resolve around benchmarks despite speed not being one of Pythons prime objectives By his own admission, jmf doesn't use Python anymore. His only reason to remain on this

Re: try/except/finally

2014-06-10 Thread Mark Lawrence
On 10/06/2014 21:43, Ethan Furman wrote: On 06/10/2014 01:38 PM, Roy Smith wrote: Chris Angelico wrote: # Yeah. As soon as you take on board a hard-and-fast rule, you open yourself up to stupid cases where the rule ought to have been broken. I don't know a single piece of programming advice

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-10 Thread Mark Lawrence
On 10/06/2014 20:43, alister wrote: On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote: [snip the garbage] jmf Your error reports always seem to resolve around benchmarks despite speed not being one of Pythons prime objectives Computers store data using bytes ASCII Characters can be

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-10 Thread Devin Jeanpierre
Please don't be unnecessarily cruel and antagonistic. -- Devin On Tue, Jun 10, 2014 at 4:16 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 10/06/2014 20:43, alister wrote: On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote: [snip the garbage] jmf Your error reports always seem

Re: try/except/finally

2014-06-10 Thread Steven D'Aprano
On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote: I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. Don't try to program while your cat is sleeping on the keyboard. -- Steven D'Aprano

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-10 Thread Steven D'Aprano
On Tue, 10 Jun 2014 19:43:13 +, alister wrote: On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote: Please don't feed the troll. I don't know whether JMF is trolling or if he is a crank who doesn't understand what he is doing, but either way he's been trying to square this circle for the

Re: try/except/finally

2014-06-10 Thread Chris Angelico
On Wed, Jun 11, 2014 at 10:00 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote: I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. Don't

Re: try/except/finally

2014-06-10 Thread Roy Smith
On Wed, Jun 11, 2014 at 10:00 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Don't try to program while your cat is sleeping on the keyboard. In article mailman.10989.1402445543.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Hmm. I've never actually

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-10 Thread Ethan Furman
On 06/10/2014 04:29 PM, Devin Jeanpierre wrote: Please don't be unnecessarily cruel and antagonistic. I completely agree. jmf should leave us alone and stop cruelly and antagonizingly baiting us with stupidity and falsehoods. -- ~Ethan~ --

Re: try/except/finally

2014-06-10 Thread Tim Delaney
On 11 June 2014 10:00, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote: I don't know a single piece of programming advice which, if taken as an inviolate rule, doesn't at some point cause suboptimal code. Don't try to

Re: try/except/finally

2014-06-10 Thread Mark Lawrence
On 11/06/2014 01:40, Tim Delaney wrote: On 11 June 2014 10:00, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info mailto:steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote: I don't know a single piece of programming advice

Re: try/except/finally

2014-06-10 Thread Chris Angelico
On Wed, Jun 11, 2014 at 10:53 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: Does it make any difference if the cat is European or African? What? I don't know. ARGH! ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Micro Python -- a lean and efficient implementation of Python 3

2014-06-10 Thread Mark Lawrence
On 11/06/2014 00:29, Devin Jeanpierre wrote: Please don't be unnecessarily cruel and antagonistic. -- Devin I am simply giving our resident unicode expert a taste of his own medicine. If you don't like that complain to the PSF about the root cause of the problem, not the symptoms. -- My

Re: try/except/finally

2014-06-10 Thread Mark Lawrence
On 11/06/2014 02:00, Chris Angelico wrote: On Wed, Jun 11, 2014 at 10:53 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: Does it make any difference if the cat is European or African? What? I don't know. ARGH! ChrisA Awfully sorry, it's 2 a.m. here, next

Re: try/except/finally

2014-06-10 Thread Rustom Mody
On Tuesday, June 10, 2014 11:41:45 PM UTC+5:30, Skip Montanaro wrote: Would be interesting to get their collective take on C++... Are there any good parts? It appears the book was cancelled

[issue634412] RFC 2387 in email package

2014-06-10 Thread Abhilash Raj
Abhilash Raj added the comment: David: How does this API look? https://gist.github.com/maxking/2f37bae7875dde027e3c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue634412 ___

[issue17457] Unittest discover fails with namespace packages and builtin modules

2014-06-10 Thread Claudiu.Popa
Claudiu.Popa added the comment: Can we close this? The feature already landed in Python 3.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17457 ___

[issue21695] Idle 3.4.1-: closing Find in Files while in progress closes Idle

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec91ee7d9d8d by Terry Jan Reedy in branch '2.7': Issue #21695: Catch AttributeError created when user closes grep output window http://hg.python.org/cpython/rev/ec91ee7d9d8d New changeset d9c1f36494b6 by Terry Jan Reedy in branch '3.4': Issue

[issue21695] Idle 3.4.1-: closing Find in Files while in progress closes Idle

2014-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added try: except: and tested on installed 3.4.1, which previously failed. There is no way that I know of to start repository Idle without a console to print a traceback to. I added a missing import, removed an incorrect comment, added others, and changed

[issue19840] The is no way to tell shutil.move to ignore metadata

2014-06-10 Thread Claudiu.Popa
Claudiu.Popa added the comment: Any type of feedback will be appreciated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19840 ___ ___

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-06-10 Thread Claudiu.Popa
Claudiu.Popa added the comment: Since issue15745 hasn't been fixed yet, would be okay to skip these tests when the test suite runs from a ZFS container? Currently, these failures are a nuissance when running the test suite. -- ___ Python tracker

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-06-10 Thread koobs
koobs added the comment: I'd like to put the buildbot slave instances back onto ZFS for broader Disk/IO test coverage for Python and other projects as well as to gain some administrative disk utilisation flexibility. These two issues have unfortunately precluded that, and there's much more

[issue21700] Missing mention of DatagramProtocol having connection_made and connection_lost methods

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79562a31e5a6 by Victor Stinner in branch '3.4': Issue #21700: Fix asyncio doc, add DatagramProtocol http://hg.python.org/cpython/rev/79562a31e5a6 New changeset a8dfdae4c4a0 by Victor Stinner in branch 'default': (Merge 3.4) Issue #21700: Fix

[issue21700] Missing mention of DatagramProtocol having connection_made and connection_lost methods

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: Fixed. Thanks for the report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21700 ___

[issue21702] asyncio: remote_addr of create_datagram_endpoint() is not documented

2014-06-10 Thread STINNER Victor
New submission from STINNER Victor: See issue #21701 for a recent issue about this parameter. -- assignee: docs@python components: Documentation, asyncio messages: 220147 nosy: ariddell, docs@python, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title:

[issue21701] create_datagram_endpoint does not receive when both local_addr and remote_addr provided

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: I opened the issue #21702 to document the parameter remote_addr. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21701 ___

[issue17457] Unittest discover fails with namespace packages and builtin modules

2014-06-10 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17457 ___

[issue18039] dbm.open(..., flag=n) does not work and does not give a warning

2014-06-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18039 ___ ___

[issue21326] asyncio: request clearer error message when event loop closed

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7912179335cc by Victor Stinner in branch '3.4': Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop http://hg.python.org/cpython/rev/7912179335cc -- ___ Python tracker

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-06-10 Thread Sebastian Kreft
Sebastian Kreft added the comment: I was able to recreate the issue again, and now i have some info about the offending futures: State: RUNNING, Result: None, Exception: None, Waiters: 0, Cancelled: False, Running: True, Done: False The information does not seem very relevant. However, I can

[issue21326] asyncio: request clearer error message when event loop closed

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: This issue was discussed on the python-dev mailing list. The conclusion is that adding a new method to asyncio is safe because asyncio has a provisional API (whereas the selectors module doesn't). Ok, Python 3.4.2 will have the new method

[issue21679] Prevent extraneous fstat during open()

2014-06-10 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: Again, thanks for the review. It's true that HAVE_FSTAT can be defined without stat structure containing st_blksize. I added an ifdef HAVE_STRUCT_STAT_ST_BLKSIZE for that. Attaching third version of the patch, hopefully everything will be ok now.

[issue18039] dbm.open(..., flag=n) does not work and does not give a warning

2014-06-10 Thread Claudiu.Popa
Claudiu.Popa added the comment: Thanks for the reviews, Serhiy. Here's the new version of the patch. -- Added file: http://bugs.python.org/file35549/issue18039_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18039

[issue21595] asyncio: Creating many subprocess generates lots of internal BlockingIOError

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: Can someone please review asyncio_read_from_self.patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21595 ___

[issue21596] asyncio.wait fails when futures list is empty

2014-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b3f8b6d6e5c by Victor Stinner in branch '3.4': Issue #21596: asyncio.wait(): mention that the sequence of futures must not http://hg.python.org/cpython/rev/2b3f8b6d6e5c New changeset 68d45a1a3ce0 by Victor Stinner in branch 'default': (Merge 3.4)

[issue21596] asyncio.wait fails when futures list is empty

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: Fixed. Thanks for the report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21596 ___

[issue21515] Use Linux O_TMPFILE flag in tempfile.TemporaryFile?

2014-06-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21515 ___

[issue13247] under Windows, os.path.abspath returns non-ASCII bytes paths as question marks

2014-06-10 Thread STINNER Victor
STINNER Victor added the comment: I've read this entire issue and can't see that much can be done My patch can be applied in Python 3.5 to notice immediatly users that filenames cannot be encoded to the ANSI code page. Anyway, bytes filenames are deprecated (emit a DeprecationWarning

[issue21703] IDLE: Test UndoDelegator

2014-06-10 Thread Saimadhav Heblikar
New submission from Saimadhav Heblikar: Adds test for UndoDelegator class in idlelib.UndoDelegator. With the help of Victor Stinner on IRC, I managed to reduce the refleak, but the current status is: saimadhav@debian:~/dev/34-cpython$ ./python -m test -R 3:3 -uall test_idle [1/1] test_idle

[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2014-06-10 Thread Matthias Urlichs
Matthias Urlichs added the comment: Actually, the problem is cgi.py around line 550: clen = -1 if 'content-length' in self.headers: try: clen = int(self.headers['content-length']) except ValueError: pass if

[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2014-06-10 Thread Matthias Urlichs
Matthias Urlichs added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file35551/cgi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20504 ___

  1   2   >