[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Berker Peksag
Berker Peksag added the comment: I can commit the patch this week if there are no objections to the name of the variable. I like Brett's PY3KWARNINGS suggestion, but I'm fine with either of the suggested names. -- ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Brett Cannon
Brett Cannon added the comment: Benjamin just announced 2.7.13rc1 is going to be Dec 3, so this patch needs to land before then if it's going to make it in the next release. -- ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Brett Cannon
Brett Cannon added the comment: I agree with Roy: while PYTHON_OPT might be nice long-term, I think that scopes it beyond a py3k change in Python 2.7 and into new feature territory. As for a better name, PY3KWARNINGS is also possible and minimizes typo issues if that's what people are worried

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Roy Williams
Roy Williams added the comment: > What about PYTHON_OPT and allowing to pass any options via an environment > > > variable? There is a number of precedences (gzip, less, etc). > >export PYTHON_OPT="-t -b -3" I'd be open to this, but it seems like a much wider change than something that

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about PYTHON_OPT and allowing to pass any options via an environment variable? There is a number of precedences (gzip, less, etc). export PYTHON_OPT="-t -b -3" Or PYTHON3COMP[ATIBILITY]? -- ___ Python

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-28 Thread Berker Peksag
Berker Peksag added the comment: > PYTHON3WARNINGS looks as Python 3 variant of PYTHONWARNINGS. Sadly, I can't think of a better name. Do you have a suggestion? > Yes, I suppose this falls under the general exemption in 2.x for -3 warning changes. Thanks, Benjamin! --

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, I suppose this falls under the general exemption in 2.x for -3 warning changes. On Fri, Nov 25, 2016, at 09:13, Berker Peksag wrote: > > Berker Peksag added the comment: > > Roy's patch looks good to me in general. Benjamin, as the RM of 2.7, do > you

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PYTHON3WARNINGS looks as Python 3 variant of PYTHONWARNINGS. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-11-25 Thread Berker Peksag
Berker Peksag added the comment: Roy's patch looks good to me in general. Benjamin, as the RM of 2.7, do you have any objections? -- nosy: +benjamin.peterson ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-04 Thread Roy Williams
Roy Williams added the comment: Thanks for the feedback Berker! This is my first CPython patch :D. Added in a note in pyporting. I actually did a much more detailed write up here https://gist.github.com/rowillia/c0feed97c1863b2d8e5a3ed73712df65, but it seems a bit verbose for this document.

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-03 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the new patch. > I've uploaded the new patchset here. We don't directly upload patches to Rietveld so you did the right thing :) See https://docs.python.org/devguide/patch.html for details. Can you also add a note about this new variable to

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-03 Thread Roy Williams
Roy Williams added the comment: Thanks for the feedback Berker. I addressed your feedback, but unfortunately I get a 500 from Rietveld when I try to attach a new patchset. I've uploaded the new patchset here. -- ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-10-03 Thread Roy Williams
Changes by Roy Williams : Added file: http://bugs.python.org/file44947/pythonenable3kwarningsflag.patch ___ Python tracker ___

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch. I left some comments on Rietveld. -- stage: test needed -> patch review ___ Python tracker ___

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-30 Thread Roy Williams
Roy Williams added the comment: Thanks for your support! Here's a patch to enable the `PYTHON3WARNINGS` environment variable. -- keywords: +patch Added file: http://bugs.python.org/file44894/pythonenable3kwarningsflag.patch ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: +1, but I'd name the env var PYTHON3WARNINGS. Who knows, when Python 4 comes around the corner, we may need a PYTHON4WARNINGS... -- nosy: +lemburg ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Roy Williams
Roy Williams added the comment: @Brett @Berker In a similar vein, it'd be great to expose the `-b` flag in Python 3 in a similar manner to test for invalid byte comparisons. -- ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Berker Peksag
Berker Peksag added the comment: +1 from me. This would help people to port their projects to Python 3. -- nosy: +berker.peksag ___ Python tracker ___

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Brett Cannon
Brett Cannon added the comment: The idea seems reasonable to me. I would think this would fall under the -3 exemption if others agree this is reasonable to implement. -- nosy: +brett.cannon ___ Python tracker

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Brett Cannon
Changes by Brett Cannon : -- type: behavior -> enhancement ___ Python tracker ___ ___

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> test needed ___ Python tracker ___ ___

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Brett Cannon
Changes by Brett Cannon : -- components: +Interpreter Core -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-27 Thread Roy Williams
New submission from Roy Williams: I'm finding the `-3` flag to be super useful, but it's quite a huge pain to thread it through all of the places that spawn python subprocesses, sometimes requiring forking of third party code. This would be much simpler if, like PYTHONWARNINGS,