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 allowed? Of

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 ce...@decebal.nl 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

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 Terry Reedy
On 7/18/2015 10:33 PM, Devin Jeanpierre wrote: On Sat, Jul 18, 2015 at 6:34 PM, Terry Reedy tjre...@udel.edu 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

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

[issue24667] OrderedDict.popitem() raises KeyError

2015-07-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___ ___ Python-bugs-list

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.

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 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 values, because I

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

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 wlfr...@ix.netcom.com 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

Re: how to play

2015-07-19 Thread Ian Kelly
On Sun, Jul 19, 2015 at 1:01 PM, Aron Barsam aronbar...@gmail.com 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.

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 width

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

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 :-) I expect

[issue24670] os.chdir breaks result of os.path.abspath(__file__) and os.path.realpath(__file__)

2015-07-19 Thread LordBlick
New submission from LordBlick: The use of methods path.chdir () corrupts the subsequent ability to detect the file path which is interpreted. I've made simple example, which is atached: $ cd ~/tmp $ ./test_os_path.py abspath:~/tmp/test_os_path.py weak abspath: ~/tmp/test_os_path.py

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

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 python.l...@tim.thechases.com 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.

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 5c3812412b6f caused a refleak. $ ./python -m test.regrtest -uall -R 3:3 test_set [1/1] test_set beginning 6 repetitions 123456 .. test_set leaked [23561, 24961, 23961] references, sum=72483 test_set leaked [785, 787, 787] memory blocks, sum=2359 1 test

[issue24668] Deprecate 00000 as a synonym for 0

2015-07-19 Thread Georg Brandl
Georg Brandl added the comment: I don't recall the reason for this deliberate change (as seen from the docs change). I'm unable to come up with a good reason for this change now, but on the other hand I can't come up with a good reason for code churn and adding deprecationg warnings for 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

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 l...@openend.se 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

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

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

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

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-07-19 Thread Martin Panter
Martin Panter added the comment: Nick seemed to approve of this, so perhaps it is ready to commit? The new patch just resolves a minor conflict with the current code. -- stage: patch review - commit review versions: +Python 3.6 Added file:

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset acb5b177dd4e by Raymond Hettinger in branch 'default': Issue #24583: Fix refcount leak. https://hg.python.org/cpython/rev/acb5b177dd4e -- ___ Python tracker rep...@bugs.python.org

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-07-19 Thread Martin Panter
Martin Panter added the comment: This patch defeats the warnings -- status: closed - open Added file: http://bugs.python.org/file39955/stat-times-deprecated.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15745

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added comments on Rietveld. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4395 ___ ___ Python-bugs-list

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Michael Torrie
On 07/19/2015 06:27 PM, Mark Lawrence wrote: On 20/07/2015 00:23, Cecil Westerhof wrote: No use replying anymore. You make a caricature of what I am saying and put words in my mouth I never said. Just stay in your cosy ivory tower. But please do not pretend that you are open for discussion,

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added a patch to neaten it up a bit by naming the exit conditions and avoiding the unnecessary extra incref/decref pair around the resize call. -- Added file: http://bugs.python.org/file39956/set_named_exits.diff

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 pip

Re: Need assistance

2015-07-19 Thread Michael Torrie
On 07/19/2015 06:21 PM, Rick Johnson wrote: 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])

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.

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2015-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I was pinging Raymond. He is maintainer of the collections module, this issue is assigned to his, and he had valid objections to previous version of the patch. Even one of this reason is enough to wait his review before committing. Thank you Raymond.

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK 3.5+ (not tested). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24583 ___ ___ Python-bugs-list

[issue5315] signal handler never gets called

2015-07-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This was turned into a doc issue, with no patch forthcoming, but Devin has submitted a bugfix. Should this be turned back into a bug issue? -- nosy: +terry.reedy stage: - patch review versions: +Python 3.4, Python 3.5, Python 3.6 -Python 2.6, Python

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added a variant patch that brings the steps together in a more logical manner (single entry point at the top and the named exits at the bottom, brings refcount adjustment logic together in a more coherent way). The restart target is done the same way as

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 st...@pearwood.info 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,

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 st...@pearwood.info 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

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-07-19 Thread Alex Walters
Changes by Alex Walters tritium-l...@sdamon.com: -- nosy: +tritium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list

How we can send mail with attachment in Python?

2015-07-19 Thread Kevin Peterson
Hi, How we can send mail with attachment in Python? Is it any prerequisite for it? Thanks, Kevin Peterson -- https://mail.python.org/mailman/listinfo/python-list

Re: Can't Install Pandas

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 1:05 PM, ryguy7272 ryanshu...@gmail.com 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

[issue24656] remove assret from mock error checking

2015-07-19 Thread Nick Coghlan
Nick Coghlan added the comment: Marking as rejected by the module maintainer. -- resolution: - rejected stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24656

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2015-07-19 Thread Martin Panter
Martin Panter added the comment: Who are you pinging? I did just notice a minor English grammar problem (“one arguments”). But as far as I am concered you could have already committed the patch. -- ___ Python tracker rep...@bugs.python.org

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2015-07-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I will look at this more when I get a chance (likely this week). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: 3.6 only. Correct? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24583 ___ ___ Python-bugs-list mailing

Re: Need assistance

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 3:16 PM, Michael Torrie torr...@gmail.com wrote: On 07/19/2015 06:21 PM, Rick Johnson wrote: 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()

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Paul Rubin
Steven D'Aprano st...@pearwood.info writes: It's very interesting that you ignore the two hardest parts of the process: (1) Producing the patch in the first place. (2) Convincing those with appropriate commit rights to accept the patch. 2 is often harder than 1. Or consider the case when you

Re: How we can send mail with attachment in Python?

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 2:54 PM, Kevin Peterson qh.res...@gmail.com wrote: How we can send mail with attachment in Python? Is it any prerequisite for it? You could use your favourite search engine to look this up. Or you could poke around with the Python standard library and see if anything

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

[issue24668] Deprecate 00000 as a synonym for 0

2015-07-19 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24668 ___ ___

[issue24668] Deprecate 00000 as a synonym for 0

2015-07-19 Thread Mark Dickinson
Mark Dickinson added the comment: [Raymond] I propose leaving this alone unless some actual harm can be shown. +1. -- nosy: +mark.dickinson status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24668

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

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 ce...@decebal.nl 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 ce...@decebal.nl wrote: I am using

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 pay

<    1   2