[Python-Dev] Fix or remove XMLParser.doctype()

2015-06-08 Thread Serhiy Storchaka

There are issues with the doctype() method of XMLParser.

1. Using subclass of XMLParser emits a deprecation warning [1].

2. There is behavior difference between Python and C implementations if 
implement doctype() [2].


This method was deprecated for long time, and the simplest solution is 
to completely remove it. The questions are:


1. Can doctype() be removed or there is significant risk to break 
someone's code?


2. If fix doctype() instead of removing it (in any case should be done 
in maintained releases), what behavior should be preserved? Should 
target's doctype() be called instead of XMLParser.doctype() (Python 
implementation) or be called in addition to XMLParser.doctype() (C 
implementation)?


Eli suggested to ask on Python-Dev.

[1] http://bugs.python.org/issue19176
[2] http://bugs.python.org/issue19176#msg238783

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


Re: [Python-Dev] cpython (3.4): #23891: add a section to the Tutorial describing virtual environments and pip

2015-06-08 Thread Antoine Pitrou
On Mon, 08 Jun 2015 21:39:17 +
andrew.kuchling  wrote:
> https://hg.python.org/cpython/rev/15ee0e7078e3
> changeset:   96555:15ee0e7078e3
> branch:  3.4
> parent:  96552:2b78227974fa
> user:Andrew Kuchling 
> date:Mon Jun 08 17:35:45 2015 -0400
> summary:
>   #23891: add a section to the Tutorial describing virtual environments and 
> pip

This is very cool, thank you!

Regards

Antoine.


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