Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Marko Rauhamaa
Chris Angelico : > On Sun, Jul 19, 2015 at 2:45 PM, Steven D'Aprano wrote: >> sys.setdigits('Devanagari') > > Easiest way to play with this would be a sys.displayhook, I think; I think the numeral selection is analogous to the number base: >>> 0o10 8 >>> "{:o}".format(0o10) '10' wh

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Rustom Mody
On Sunday, July 19, 2015 at 12:46:26 PM UTC+5:30, Marko Rauhamaa wrote: > Chris Angelico: > > > On Sun, Jul 19, 2015 at 2:45 PM, Steven D'Aprano wrote: > >> sys.setdigits('Devanagari') > > > > Easiest way to play with this would be a sys.displayhook, I think; > > I think the numeral selection is

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Marko Rauhamaa
Rustom Mody : > On Sunday, July 19, 2015 at 12:46:26 PM UTC+5:30, Marko Rauhamaa wrote: >> IOW, don't make it global. > > But it is willy-nilly global. > Python: 4+5 > 9 The interactive mode is not all that interesting, but ok, make that configurable as well. Marko -- https://mail.python.

Re: Integers with leading zeroes

2015-07-19 Thread Skybuck Flying
Don't be noob ? ;) Always remove leading zeroes ? One case that comes to mind is ASCII art like code... where programmer may want to align numbers for clearity: 0014324 0234545 345 0534543 ^ That could be a problem but possibly solveable with spaces instead: 14324 234545 345 534543

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Terry Reedy
On 7/19/2015 12:45 AM, Steven D'Aprano wrote: On Sun, 19 Jul 2015 01:52 pm, Rustom Mody wrote: JFTR: My kids (um... students) have just managed to add devanagari numerals to python. ie we can now do १ + २ 3 That is actually quite awesome, and I would support a new feature that set the num

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Terry Reedy
On 7/18/2015 8:03 PM, Gary Herron wrote: On 07/18/2015 04:36 PM, Terry Reedy wrote: I would like more viewpoints from 2.7 users. I read that (incorrectly of course) and just had to ask: How do you intend to extract a viewpoint from that last 7/10 of a user? With apologies, Some humor

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Terry Reedy
On 7/18/2015 11:52 PM, Rustom Mody wrote: among other things, a complaint about rejection of his desire for a mechanism for subsetting Python for teaching purposes. Response 2: Core python is the most conservatively maintained part of Python. Trying to change it radically, as distributed by P

Re: Noob in Python. Problem with fairly simple test case

2015-07-19 Thread Laura Creighton
In a message of Sat, 18 Jul 2015 16:18:57 -0700, Rick Johnson writes: >I'll have to admit you make a good point here. Although the >argument is diminished by observing that Ruby is far more >popular in Asia than Python. Python seems to be mainly a >Scandinavian, European, and American toy. For the

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Laura Creighton
In a message of Sat, 18 Jul 2015 19:36:33 -0400, Terry Reedy writes: >If the vast majority of Python programmers are focused on 2.7, why are >volunteers to help fix 2.7 bugs so scarce? Because volunteers to fix any bugs are scarce? Because most people really only think of bug fixing when they ha

Is this a good way to work with init and exception

2015-07-19 Thread Cecil Westerhof
I am using libturpial to post things on Twitter. But sometimes I get a ServiceOverCapacity exception. So I wrote the following code. == class InitAlreadyDoneError(Exception): pass # Functions def init(max_tries = 5, wait

batch spatial join - python

2015-07-19 Thread Lara BK
Hello, I would like to do a spatial join in a batch process in python. # I have this layers: neighbourhood = "D:\\Users\\laraifat\\Desktop\\pythonproject\\layers\\neighbourhood.shp" buildings = "D:\\Users\\laraifat\\Desktop\\pythonproject\\layers\\buildings.shp" openspace = "D:\\Users\\larai

PyQt v5.5 Released

2015-07-19 Thread Phil Thompson
PyQt5 v5.5 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of The Qt Company's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include

Re: Is this a good way to work with init and exception

2015-07-19 Thread Chris Angelico
Reordering/interleaving your post to respond to different parts together. On Sun, Jul 19, 2015 at 8:35 PM, Cecil Westerhof wrote: > I am using libturpial to post things on Twitter. But sometimes I get a > ServiceOverCapacity exception. So I wrote the following code. > > ==

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 19/07/2015 03:13, Terry Reedy wrote: On 7/18/2015 7:50 PM, Devin Jeanpierre wrote: to 2.7, surely bug fixes are also allowed? Of course, allowed. But should they be made, and if so, by who? The people who want the fixes. I have contributed both performance improvements and bug fixes

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 19/07/2015 04:45, Paul Rubin wrote: Terry Reedy writes: I am suggesting that if there are 10x as many 2.7only programmers as 3.xonly programmers, and none of the 2.7 programmers is willing to do the backport *of an already accepted patch*, then maybe it should not be done at all. The patch

Re: batch spatial join - python

2015-07-19 Thread Steven D'Aprano
On Sun, 19 Jul 2015 10:11 pm, Lara BK wrote: > I would like to do a spatial join in a batch process in python. You seem to be using arcpy. Unfortunately, that's not a standard part of Python, so I don't know it very well. But looking at the error you get: > Traceback (most recent call last): >

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 19/07/2015 04:52, Rustom Mody wrote: Not to mention actively hostile attitude to discussions that could at the moment be tangential to current CPython. See (and whole thread) https://mail.python.org/pipermail/python-ideas/2015-May/033708.html This https://mail.python.org/pipermail/python-i

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Steven D'Aprano
On Sun, 19 Jul 2015 07:27 pm, Laura Creighton wrote: > In the tiny corner of industrial automation where I do a lot of work, > nobody is using 3.0. I should hope not, because 3.0 was rubbish and is unsupported :-) I expect you mean 3.x in general. > It is not clear that this is ever going to c

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 19/07/2015 06:53, dieter wrote: Mark Lawrence writes: ... If the vast majority of Python programmers are focused on 2.7, why are volunteers to help fix 2.7 bugs so scarce? I have not done much work related to Python bug fixing. But, I had bad experience with other open source projects: ma

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Laura Creighton
In a message of Sun, 19 Jul 2015 23:59:29 +1000, "Steven D'Aprano" writes: >On Sun, 19 Jul 2015 07:27 pm, Laura Creighton wrote: > >> In the tiny corner of industrial automation where I do a lot of work, >> nobody is using 3.0. > >I should hope not, because 3.0 was rubbish and is unsupported :-) >

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Laura Creighton
In a message of Sun, 19 Jul 2015 23:59:29 +1000, "Steven D'Aprano" writes: >Bug for bug compatible back to the 1970s, right? :-) No, till the last posix in 1989 or so. Definitely not to the 1970s as we want v7 c structs and x++ not the v6 ++x version. :) Laura -- https://mail.python.org/mailm

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rustom Mody
On Sunday, July 19, 2015 at 2:42:41 PM UTC+5:30, Terry Reedy wrote: > On 7/18/2015 11:52 PM, Rustom Mody wrote: > among other things, a complaint about rejection of his desire for a > mechanism for subsetting Python for teaching purposes. Sorry Terry if the compliant sounded louder than the answe

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Ian Kelly
On Sun, Jul 19, 2015 at 3:27 AM, Laura Creighton wrote: > In this corner of the world, the favourite language for developing in > is C (because we work close to hardware) and one of the things we like > about it, a whole lot, is that the language never changes out from > under you. So there is gr

Re: Proposed keyword to transfer control to another function

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 2:05 AM, Dennis Lee Bieber wrote: > I've only seen one other application using HHMLL -- and that was the > Amiga file system. Okay, I'll bite. What does HHMLL stand for? Google didn't answer my question instantly with the first result, like it usually does. I even

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Cecil Westerhof
On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: > On 19/07/2015 03:13, Terry Reedy wrote: >> On 7/18/2015 7:50 PM, Devin Jeanpierre wrote: >>> to 2.7, surely bug fixes are also allowed? >> >> Of course, allowed. But should they be made, and if so, by who? > > The people who want the fixes.

Re: Proposed keyword to transfer control to another function

2015-07-19 Thread MRAB
On 2015-07-19 17:13, Chris Angelico wrote: On Mon, Jul 20, 2015 at 2:05 AM, Dennis Lee Bieber wrote: I've only seen one other application using HHMLL -- and that was the Amiga file system. Okay, I'll bite. What does HHMLL stand for? Google didn't answer my question instantly with the

Re: Proposed keyword to transfer control to another function

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 2:24 AM, MRAB wrote: > On 2015-07-19 17:13, Chris Angelico wrote: >> >> On Mon, Jul 20, 2015 at 2:05 AM, Dennis Lee Bieber >> wrote: >>> >>> I've only seen one other application using HHMLL -- and that was >>> the >>> Amiga file system. >> >> >> Okay, I'll bite. Wh

Re: Need assistance

2015-07-19 Thread MRAB
On 2015-07-19 01:59, Denis McMahon wrote: On Sat, 18 Jul 2015 12:35:10 +0200, Sibylle Koczian wrote: Am 18.07.2015 um 02:40 schrieb Denis McMahon: Having a list of words, get a copy of the list in reverse order. See the reversed function (and maybe the list function). That won't really he

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 19/07/2015 17:10, Cecil Westerhof wrote: On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: On 19/07/2015 03:13, Terry Reedy wrote: On 7/18/2015 7:50 PM, Devin Jeanpierre wrote: to 2.7, surely bug fixes are also allowed? Of course, allowed. But should they be made, and if so, by who

Re: Proposed keyword to transfer control to another function

2015-07-19 Thread Mark Lawrence
On 19/07/2015 17:24, MRAB wrote: On 2015-07-19 17:13, Chris Angelico wrote: On Mon, Jul 20, 2015 at 2:05 AM, Dennis Lee Bieber wrote: I've only seen one other application using HHMLL -- and that was the Amiga file system. Okay, I'll bite. What does HHMLL stand for? Google didn't answ

Re: Proposed keyword to transfer control to another function

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 2:41 AM, Mark Lawrence wrote: > On 19/07/2015 17:24, MRAB wrote: >> >> On 2015-07-19 17:13, Chris Angelico wrote: >>> >>> On Mon, Jul 20, 2015 at 2:05 AM, Dennis Lee Bieber >>> wrote: I've only seen one other application using HHMLL -- and that was t

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 12:54:34 AM UTC-5, dieter wrote: > From my point of view: if you want help with fixing bugs, > you must ensure that there is a high probability that > those contributions really find their way into the main > development lines. As I understand from other messages in > th

Re: Is this a good way to work with init and exception

2015-07-19 Thread Cecil Westerhof
On Sunday 19 Jul 2015 14:59 CEST, Chris Angelico wrote: > Reordering/interleaving your post to respond to different parts > together. > > On Sun, Jul 19, 2015 at 8:35 PM, Cecil Westerhof wrote: >> I am using libturpial to post things on Twitter. But sometimes I >> get a ServiceOverCapacity except

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Tim Chase
On 2015-07-19 14:45, Steven D'Aprano wrote: >> ie we can now do > १ + २ >> 3 > > That is actually quite awesome, and I would support a new feature > that set the numeric characters to a particular script, e.g. Latin, > Arabic, Devanagari, whatever, and printed them in that same script. > I

Re: Noob in Python. Problem with fairly simple test case

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote: > And, despite Norway not being part of the EU, Scandinavia > is still in Europe. This is a bit off topic: But i don't consider Scandinavia to be a part of the EU. Not anymore than i would consider America to be a part of the EU

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Cecil Westerhof
On Sunday 19 Jul 2015 18:38 CEST, Mark Lawrence wrote: > On 19/07/2015 17:10, Cecil Westerhof wrote: >> On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: >> >>> On 19/07/2015 03:13, Terry Reedy wrote: On 7/18/2015 7:50 PM, Devin Jeanpierre wrote: > to 2.7, surely bug fixes are also a

Re: Noob in Python. Problem with fairly simple test case

2015-07-19 Thread MRAB
On 2015-07-19 18:25, Rick Johnson wrote: On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote: And, despite Norway not being part of the EU, Scandinavia is still in Europe. This is a bit off topic: But i don't consider Scandinavia to be a part of the EU. Not anymore than i would

Re: Noob in Python. Problem with fairly simple test case

2015-07-19 Thread Laura Creighton
In a message of Sun, 19 Jul 2015 10:25:35 -0700, Rick Johnson writes: >On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote: >> And, despite Norway not being part of the EU, Scandinavia >> is still in Europe. > >This is a bit off topic: But i don't consider Scandinavia to >be a part

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 19/07/2015 18:14, Cecil Westerhof wrote: On Sunday 19 Jul 2015 18:38 CEST, Mark Lawrence wrote: On 19/07/2015 17:10, Cecil Westerhof wrote: On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: On 19/07/2015 03:13, Terry Reedy wrote: On 7/18/2015 7:50 PM, Devin Jeanpierre wrote: to 2.7

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Chris Angelico
On Sun, Jul 19, 2015 at 10:56 PM, Tim Chase wrote: > Agreed that it's pretty awesome. It seems to have some holes though: > > Python 3.4.2 (default, Oct 8 2014, 10:45:20) > [GCC 4.9.1] on linux > Type "help", "copyright", "credits" or "license" for more information. print('\N{VULGAR FRACTIO

flipping string order

2015-07-19 Thread Denis McMahon
On Sun, 19 Jul 2015 17:35:03 +0100, MRAB wrote: > rsplit -> one line. def lastWordFirst(s): return " ".join(reversed(s.rsplit(" ", 1))) -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Is this a good way to work with init and exception

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 2:46 AM, Cecil Westerhof wrote: > On Sunday 19 Jul 2015 14:59 CEST, Chris Angelico wrote: > >> Reordering/interleaving your post to respond to different parts >> together. >> >> On Sun, Jul 19, 2015 at 8:35 PM, Cecil Westerhof wrote: >>> I am using libturpial to post thing

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Laura Creighton
In a message of Sun, 19 Jul 2015 09:29:11 -0600, Ian Kelly writes: >I think this is an unrealistic and unattainable goal. Even if you stop >patching your Python 2.7 version altogether, what about the >environment that it runs in? Are you going to stop patching the OS >forever? Are you going to fix

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 4:14 AM, Laura Creighton wrote: > In a message of Sun, 19 Jul 2015 09:29:11 -0600, Ian Kelly writes: >>I think this is an unrealistic and unattainable goal. Even if you stop >>patching your Python 2.7 version altogether, what about the >>environment that it runs in? Are you

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 12:55:06 PM UTC-5, Mark Lawrence wrote: > I don't think so, I know. If they want the patches that > badly and can't do it themselves they'll have to grin and > bear it, or do a bit of begging, or pay somebody to do it > for them. It's all about the effing money then?

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Sunday, July 19, 2015 at 7:28:15 PM UTC+1, Rick Johnson wrote: > On Sunday, July 19, 2015 at 12:55:06 PM UTC-5, Mark Lawrence wrote: > > I don't think so, I know. If they want the patches that > > badly and can't do it themselves they'll have to grin and > > bear it, or do a bit of begging, or

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Ian Kelly
On Sun, Jul 19, 2015 at 10:10 AM, Cecil Westerhof wrote: > On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: > >> On 19/07/2015 03:13, Terry Reedy wrote: >>> On 7/18/2015 7:50 PM, Devin Jeanpierre wrote: to 2.7, surely bug fixes are also allowed? >>> >>> Of course, allowed. But should t

how to play

2015-07-19 Thread Aron Barsam
i have trouble trying to play python please can you respond soon -- https://mail.python.org/mailman/listinfo/python-list

Re: how to play

2015-07-19 Thread Ian Kelly
On Sun, Jul 19, 2015 at 1:01 PM, Aron Barsam wrote: > i have trouble trying to play python please can you respond soon "Play" is an odd choice of verb. Are you under the impression that Python is a game? Anyway, here's how to use Python: 1. Download Python from python.org. 2. Install Python on y

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 1:44:25 PM UTC-5, bream...@gmail.com wrote: > No, it's simply that nobody can force volunteers to back > port something when they're just not interested in doing > the work, for whatever reason. Hence my statement above, > of which you have focused on the last eight wor

Re: Is this a good way to work with init and exception

2015-07-19 Thread Cecil Westerhof
On Sunday 19 Jul 2015 20:11 CEST, Chris Angelico wrote: >>> Parameterized imports aren't possible, correct. What I'd look at >>> here is a more explicit instantiation. Something like: >>> >>> import twitterDecebal >>> twitter = twitterDecebal.twitterDecebal(5, 60) >> >> I worked with default value

Re: how to play

2015-07-19 Thread MRAB
On 2015-07-19 20:01, Aron Barsam wrote: i have trouble trying to play python please can you respond soon You'll need to provide some details. Saying "i have trouble" isn't helpful. Help us to help you. Which operating system are you using? Windows, MacOS, Linux? Which version? Which version

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 2:02:12 PM UTC-5, Ian wrote: > Poor analogy. Babies need others to change their diapers > for them because they're not capable of doing it for > themselves. Duh! That was the point of his analogy, Ian. *ALL* Python programmers need the patches. Whether or not they posse

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Terry Reedy
On 7/18/2015 10:33 PM, Devin Jeanpierre wrote: On Sat, Jul 18, 2015 at 6:34 PM, Terry Reedy wrote: On 7/18/2015 8:27 PM, Mark Lawrence wrote: On 19/07/2015 00:36, Terry Reedy wrote: Programmers don't much like doing maintainance work when they're paid to do it, so why would they volunteer to d

Re: Integers with leading zeroes

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 3:19:01 AM UTC-5, Skybuck Flying wrote: > 14324 > 234545 > 345 > 534543 > > ^ Looks less good though in non-fixed-sized font. The obvious solution is to use a fixed width font. If you're inserting syntactical noise simply to maintain readability in variable widt

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Tim Chase
On 2015-07-20 04:07, Chris Angelico wrote: > The int() and float() functions accept, if I'm not mistaken, > anything with Unicode category "Nd" (Number, decimal digit). In > your examples, the fraction (U+215B) is No, and the Roman numerals > (U+2168, U+2182) are Nl, so they're not supported. Addin

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Cecil Westerhof
On Sunday 19 Jul 2015 21:01 CEST, Ian Kelly wrote: > On Sun, Jul 19, 2015 at 10:10 AM, Cecil Westerhof wrote: >> On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: >> >>> On 19/07/2015 03:13, Terry Reedy wrote: On 7/18/2015 7:50 PM, Devin Jeanpierre wrote: > to 2.7, surely bug fixes

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Sunday, July 19, 2015 at 8:13:50 PM UTC+1, Rick Johnson wrote: > On Sunday, July 19, 2015 at 1:44:25 PM UTC-5, bream...@gmail.com wrote: > > No, it's simply that nobody can force volunteers to back > > port something when they're just not interested in doing > > the work, for whatever reason. H

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 19/07/2015 21:05, Cecil Westerhof wrote: On Sunday 19 Jul 2015 21:01 CEST, Ian Kelly wrote: On Sun, Jul 19, 2015 at 10:10 AM, Cecil Westerhof wrote: On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: On 19/07/2015 03:13, Terry Reedy wrote: On 7/18/2015 7:50 PM, Devin Jeanpierre wrot

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Sunday, July 19, 2015 at 8:29:06 PM UTC+1, Rick Johnson wrote: > On Sunday, July 19, 2015 at 2:02:12 PM UTC-5, Ian wrote: > > Poor analogy. Babies need others to change their diapers > > for them because they're not capable of doing it for > > themselves. > > Duh! That was the point of his anal

Re: Is this a good way to work with init and exception

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 5:10 AM, Cecil Westerhof wrote: >> I think it's fine, then. As long as it makes absolutely no sense to >> have two separately-initialized twitter connections, and as long as >> it's okay for two separate modules to both import this and to then >> share state, then what you

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 5:55 AM, Tim Chase wrote: > On 2015-07-20 04:07, Chris Angelico wrote: >> The int() and float() functions accept, if I'm not mistaken, >> anything with Unicode category "Nd" (Number, decimal digit). In >> your examples, the fraction (U+215B) is No, and the Roman numerals >>

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Terry Reedy
On 7/19/2015 5:27 AM, Laura Creighton wrote: In a message of Sat, 18 Jul 2015 19:36:33 -0400, Terry Reedy writes: If the vast majority of Python programmers are focused on 2.7, why are volunteers to help fix 2.7 bugs so scarce? Because volunteers to fix any bugs are scarce? Because most peopl

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 3:36:21 PM UTC-5, bream...@gmail.com wrote: > Wrong, not all programmers need the patches as a lot of > people couldn't care two hoots about 2.7. Well you should. Because apparently, you're incapable of recognizing that Py2 and Py3 are existentially joined at the hip!

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread MRAB
On 2015-07-19 22:16, Chris Angelico wrote: On Mon, Jul 20, 2015 at 5:55 AM, Tim Chase wrote: On 2015-07-20 04:07, Chris Angelico wrote: The int() and float() functions accept, if I'm not mistaken, anything with Unicode category "Nd" (Number, decimal digit). In your examples, the fraction (U+21

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Terry Reedy
On 7/18/2015 10:48 PM, Zachary Ware wrote: On Sat, Jul 18, 2015 at 9:13 PM, Terry Reedy wrote: I understand the general problem quite well. But feeling that one would have to do a 2.7 backport after writing, editing, or reviewing a 3.x patch can discourage doing a review in the first place. I

Re: Is this a good way to work with init and exception

2015-07-19 Thread Cecil Westerhof
On Sunday 19 Jul 2015 23:08 CEST, Chris Angelico wrote: > On Mon, Jul 20, 2015 at 5:10 AM, Cecil Westerhof wrote: >>> I think it's fine, then. As long as it makes absolutely no sense >>> to have two separately-initialized twitter connections, and as >>> long as it's okay for two separate modules

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Cecil Westerhof
On Sunday 19 Jul 2015 22:28 CEST, Mark Lawrence wrote: > On 19/07/2015 21:05, Cecil Westerhof wrote: >> On Sunday 19 Jul 2015 21:01 CEST, Ian Kelly wrote: >> >>> On Sun, Jul 19, 2015 at 10:10 AM, Cecil Westerhof wrote: On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: > On 19/0

Re: Is this a good way to work with init and exception

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 8:19 AM, Cecil Westerhof wrote: >> If two modules import the same module, they get two references to >> that same module, not two separate module instances. Since your >> parameters appear only to affect the initialization itself, this is >> not likely to be a problem (it's

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 19/07/2015 23:10, Cecil Westerhof wrote: On Sunday 19 Jul 2015 22:28 CEST, Mark Lawrence wrote: On 19/07/2015 21:05, Cecil Westerhof wrote: On Sunday 19 Jul 2015 21:01 CEST, Ian Kelly wrote: On Sun, Jul 19, 2015 at 10:10 AM, Cecil Westerhof wrote: On Sunday 19 Jul 2015 15:42 CEST, Mark

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Terry Reedy
On 7/19/2015 1:53 AM, dieter wrote: Mark Lawrence writes: ... If the vast majority of Python programmers are focused on 2.7, why are volunteers to help fix 2.7 bugs so scarce? I have not done much work related to Python bug fixing. But, I had bad experience with other open source projects: m

Re: Need assistance

2015-07-19 Thread craig . sirna
On Thursday, July 16, 2015 at 9:16:01 PM UTC-5, craig...@gmail.com wrote: > I need help writing a homework program. > > I'll write it, but I can't figure out how to incorporate what I have read in > the book to work in code. > > The assignment wants us to take a users first, middle and last nam

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Terry Reedy
On 7/19/2015 3:32 AM, Rustom Mody wrote: Unix bc: $ bc bc 1.06.95 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 4+5 9 obase=8 4+5 11 IOW bc has two (global) variables ibase and oba

Re: Is this a good way to work with init and exception

2015-07-19 Thread Cecil Westerhof
On Monday 20 Jul 2015 00:40 CEST, Chris Angelico wrote: > On Mon, Jul 20, 2015 at 8:19 AM, Cecil Westerhof wrote: >>> If two modules import the same module, they get two references to >>> that same module, not two separate module instances. Since your >>> parameters appear only to affect the init

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Cecil Westerhof
On Monday 20 Jul 2015 00:51 CEST, Mark Lawrence wrote: > On 19/07/2015 23:10, Cecil Westerhof wrote: >> On Sunday 19 Jul 2015 22:28 CEST, Mark Lawrence wrote: >> >>> On 19/07/2015 21:05, Cecil Westerhof wrote: On Sunday 19 Jul 2015 21:01 CEST, Ian Kelly wrote: > On Sun, Jul 19, 2015

Re: Need assistance

2015-07-19 Thread Michael Torrie
On 07/19/2015 05:06 PM, craig.si...@gmail.com wrote: > def main(): name= input('Enter your full name: ') > split=name.split() > Full_name=split[2],split[0], split[1] > print(Full_name[2],',', Full_name[0], Full_name[1]) > > main() > > Sorry it took so long to get back to you guys an

Re: Need assistance

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 6:07:14 PM UTC-5, craig...@gmail.com wrote: > def main(): > name= input('Enter your full name: ') > split=name.split() > Full_name=split[2],split[0], split[1] > print(Full_name[2],',', Full_name[0], Full_name[1]) > > main() Sorry, but this code is

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 20/07/2015 00:23, Cecil Westerhof wrote: On Monday 20 Jul 2015 00:51 CEST, Mark Lawrence wrote: On 19/07/2015 23:10, Cecil Westerhof wrote: On Sunday 19 Jul 2015 22:28 CEST, Mark Lawrence wrote: On 19/07/2015 21:05, Cecil Westerhof wrote: On Sunday 19 Jul 2015 21:01 CEST, Ian Kelly wrote

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Sunday, July 19, 2015 at 10:27:58 PM UTC+1, Rick Johnson wrote: > On Sunday, July 19, 2015 at 3:36:21 PM UTC-5, bream...@gmail.com wrote: > > Wrong, not all programmers need the patches as a lot of > > people couldn't care two hoots about 2.7. > > Well you should. Because apparently, you're i

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 7:28:28 PM UTC-5, Mark Lawrence wrote: > Thank goodness for that as you make no sense at all. As > for this ivory tower nonsense, [...] Cecil, don't pay too much attention to Mark, he's a glory hound. He's like the Python community version of Cerberus -- you know, the

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Devin Jeanpierre
On Sat, Jul 18, 2015 at 9:45 PM, Steven D'Aprano wrote: >> It gets really boring submitting 2.7-specific patches, though, when >> they aren't accepted, and the committers have such a hostile attitude >> towards it. I was told by core devs that, instead of fixing bugs in >> Python 2, I should just

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 7:45:43 PM UTC-5, bream...@gmail.com wrote: > I have no negative perception of 2.7, it simply no longer > interests me, to repeat in the same way that it no longer > interests some core devs. Your apathy towards Py2 will not shield you from the collateral damage caused

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread breamoreboy
On Monday, July 20, 2015 at 1:49:58 AM UTC+1, Rick Johnson wrote: > On Sunday, July 19, 2015 at 7:28:28 PM UTC-5, Mark Lawrence wrote: > > > Thank goodness for that as you make no sense at all. As > > for this ivory tower nonsense, [...] > > Cecil, don't pay too much attention to Mark, he's a glo

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 8:26:52 PM UTC-5, bream...@gmail.com wrote: > On Monday, July 20, 2015 at 1:49:58 AM UTC+1, Rick Johnson wrote: > > On Sunday, July 19, 2015 at 7:28:28 PM UTC-5, Mark Lawrence wrote: > > Every time i defeat [MARK LAWRENCE], and drag him out > > through an opening in the

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Mark Lawrence
On 20/07/2015 02:20, Devin Jeanpierre wrote: I don't like how this is being redirected to "surely you misunderstood" or "I don't believe you". The fact that some core devs are hostile to 2.x development is really bleedingly obvious, you shouldn't need quotes or context thrown at you. The rhetor

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-19 Thread Rustom Mody
On Monday, July 20, 2015 at 4:43:57 AM UTC+5:30, Terry Reedy wrote: > On 7/19/2015 3:32 AM, Rustom Mody wrote: > > > Unix bc: > > $ bc > > bc 1.06.95 > > Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, > > Inc. > > This is free software with ABSOLUTELY NO WARRANTY. > >

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rustom Mody
On Monday, July 20, 2015 at 7:16:50 AM UTC+5:30, Mark Lawrence wrote: > On 20/07/2015 02:20, Devin Jeanpierre wrote: > > > > > I don't like how this is being redirected to "surely you > > misunderstood" or "I don't believe you". The fact that some core devs > > are hostile to 2.x development is re

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Steven D'Aprano
On Mon, 20 Jul 2015 05:01 am, Ian Kelly wrote: > On Sun, Jul 19, 2015 at 10:10 AM, Cecil Westerhof > wrote: >> On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: >> >>> On 19/07/2015 03:13, Terry Reedy wrote: On 7/18/2015 7:50 PM, Devin Jeanpierre wrote: > to 2.7, surely bug fixes ar

Off-topic: Europe [was Re: Noob in Python. Problem with fairly simple test case]

2015-07-19 Thread Steven D'Aprano
On Mon, 20 Jul 2015 03:25 am, Rick Johnson wrote: > On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote: >> And, despite Norway not being part of the EU, Scandinavia >> is still in Europe. > > This is a bit off topic: But i don't consider Scandinavia to > be a part of the EU. La

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Steven D'Aprano
On Mon, 20 Jul 2015 06:21 am, breamore...@gmail.com wrote: > All in all though I have to admit that overall it's a really onerous task. >  Once you've produced the patch you have to go to all the trouble of > logging on to the issue tracker, finding the appropriate issue and > uploading the patch.

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Steven D'Aprano
On Mon, 20 Jul 2015 08:51 am, Mark Lawrence wrote: > You are now suggesting that people shouldn't even bother reading the > develoment guide, just great.  Do they have to do anything themselves to > get patches through?  Presumably the core devs give up their paid work, > holidays, families, other

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 12:16 PM, Rustom Mody wrote: > I just ran the following command > $ hg log --template "{author|person}\n" | sort | uniq -c | sort -nr > > as giving all the committers to python in sorted order. > I get the list below. > Dont see any Mark Lawrence there > Of course I dont kn

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rustom Mody
On Monday, July 20, 2015 at 6:19:58 AM UTC+5:30, Rick Johnson wrote: > But don't worry, his bark is worse than his bite, and he is > just the first of many daemons you must defeat on your quest > to challenge the benevolent Hades. Do you give lessons in rhetoric Rick? -- https://mail.python.org/m

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Steven D'Aprano
On Mon, 20 Jul 2015 11:20 am, Devin Jeanpierre wrote: > On Sat, Jul 18, 2015 at 9:45 PM, Steven D'Aprano > wrote: >>> It gets really boring submitting 2.7-specific patches, though, when >>> they aren't accepted, and the committers have such a hostile attitude >>> towards it. I was told by core de

Can't Install Pandas

2015-07-19 Thread ryguy7272
Hello experts. I odwnloaded Pandas, and put it here. C:\Python34\Scripts\pandas-0.16.2 Then, I ran this in what most people call the c-prompt, but I call it the 'Python 3.4.3 Shell' "C:\Python34\Scripts\pandas-0.16.2>" "pip install 'setup.py'" It seems like everything ran fine, so I try this.

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Steven D'Aprano
On Mon, 20 Jul 2015 11:35 am, Rick Johnson wrote: > I figured that was you *MARK LAWRENCE*. I shall add sock-puppeting > to your many egregious offenses! And poorly executed sock-puppeting > as well! You're a zero. Rick, what the hell are you talking about? Mark is using the same email address as

Re: Can't Install Pandas

2015-07-19 Thread ryguy7272
On Sunday, July 19, 2015 at 11:05:46 PM UTC-4, ryguy7272 wrote: > Hello experts. I odwnloaded Pandas, and put it here. > C:\Python34\Scripts\pandas-0.16.2 > > Then, I ran this in what most people call the c-prompt, but I call it the > 'Python 3.4.3 Shell' > "C:\Python34\Scripts\pandas-0.16.2>" "

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Ian Kelly
On Sun, Jul 19, 2015 at 9:12 PM, Steven D'Aprano wrote: > On Mon, 20 Jul 2015 11:35 am, Rick Johnson wrote: > >> I figured that was you *MARK LAWRENCE*. I shall add sock-puppeting >> to your many egregious offenses! And poorly executed sock-puppeting >> as well! You're a zero. > > Rick, what the h

Re: Can't Install Pandas

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 1:05 PM, ryguy7272 wrote: > Hello experts. I odwnloaded Pandas, and put it here. > C:\Python34\Scripts\pandas-0.16.2 > > Then, I ran this in what most people call the c-prompt, but I call it the > 'Python 3.4.3 Shell' > "C:\Python34\Scripts\pandas-0.16.2>" "pip install 's

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Devin Jeanpierre
On Sun, Jul 19, 2015 at 8:05 PM, Steven D'Aprano wrote: > On Mon, 20 Jul 2015 11:20 am, Devin Jeanpierre wrote: >> I was most frustrated by the first case -- the patch was (informally) >> rejected in favor of the "right" fix, and the "right" fix was >> (informally) rejected because it changed beha

  1   2   >