Re: [Python-Dev] [Python-checkins] cpython (2.7): properly handle the single null-byte file (closes #24022)

2016-09-19 Thread Benjamin Peterson


On Mon, Sep 19, 2016, at 01:35, Eric V. Smith wrote:
> Shouldn't there be a test added for this?

In fact, there is one: test_particularly_evil_undecodable in
test_compile.py. No has managed to make Python crash by exploiting this
particular problem—it's just ASan complaints.
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] docs.python.org problem

2016-09-19 Thread Guido van Rossum
I've filed https://github.com/python/pythondotorg/issues/1014, not sure if
that's the right tracker though.

On Mon, Sep 19, 2016 at 10:29 AM, Wolfgang Maier <
wolfgang.ma...@biologie.uni-freiburg.de> wrote:

> Dear all,
>
> FYI, https://docs.python.org/3.6/ is currently pointing to the Python
> 3.7.0a0 documentation
>
> Best,
> Wolfgang
>
> ___
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/guido%
> 40python.org
>



-- 
--Guido van Rossum (python.org/~guido)
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] docs.python.org problem

2016-09-19 Thread Ned Deily
On Sep 19, 2016, at 13:29, Wolfgang Maier 
 wrote:
> FYI, https://docs.python.org/3.6/ is currently pointing to the Python 3.7.0a0 
> documentation

Thanks for the report. Working on it.

--Ned

--
  Ned Deily
  n...@python.org -- []

___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] docs.python.org problem

2016-09-19 Thread Wolfgang Maier

Dear all,

FYI, https://docs.python.org/3.6/ is currently pointing to the Python 
3.7.0a0 documentation


Best,
Wolfgang

___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-checkins] cpython: Use HTTP in testPythonOrg

2016-09-19 Thread Berker Peksağ
On Sun, Sep 11, 2016 at 3:58 PM, Eric V. Smith  wrote:
> Hi, Berker.
>
> Could you add a comment to the test on why this should use http? I can see
> this bouncing back and forth between http and https, as people clean an up
> all http usages to be https.

Hi Eric,

Sorry, I missed your email. Victor's analysis is correct. I've changed
the test to use pythontest.net and increased the test coverage in
http://bugs.python.org/issue28151. Thank you for the review!

--Berker
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-checkins] cpython (2.7): properly handle the single null-byte file (closes #24022)

2016-09-19 Thread Eric V. Smith
Shouldn't there be a test added for this?

--
Eric.

> On Sep 19, 2016, at 2:44 AM, benjamin.peterson  
> wrote:
> 
> https://hg.python.org/cpython/rev/c6438a3df7a4
> changeset:   103950:c6438a3df7a4
> branch:  2.7
> parent:  103927:a8771f230c06
> user:Benjamin Peterson 
> date:Sun Sep 18 23:41:11 2016 -0700
> summary:
>  properly handle the single null-byte file (closes #24022)
> 
> files:
>  Parser/tokenizer.c |  2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> 
> diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
> --- a/Parser/tokenizer.c
> +++ b/Parser/tokenizer.c
> @@ -951,7 +951,7 @@
> else {
> tok->done = E_OK;
> tok->inp = strchr(tok->buf, '\0');
> -done = tok->inp[-1] == '\n';
> +done = tok->inp == tok->buf || tok->inp[-1] == '\n';
> }
> }
> else {
> 
> -- 
> Repository URL: https://hg.python.org/cpython
> ___
> Python-checkins mailing list
> python-check...@python.org
> https://mail.python.org/mailman/listinfo/python-checkins
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com