[issue18898] Apply the setobject optimizations to dictionaries
Changes by Alan Cristhian : -- nosy: +Alan.Cristhian ___ Python tracker <http://bugs.python.org/issue18898> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1539925] warnings in interactive sessions
Changes by Alan Cristhian : -- nosy: +Alan.Cristhian ___ Python tracker <http://bugs.python.org/issue1539925> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5342] packaging: add tests for old versions cleanup on update
Changes by Alan Cristhian : -- nosy: +Alan.Cristhian ___ Python tracker <http://bugs.python.org/issue5342> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19441] itertools.tee improve documentation
New submission from Alan Cristhian: I had some problems using itertools.tee function. Fortunately I found the following advice on the PEP-323: "Currently, the copied iterators remaintied to the original iterator. If the original advances, then so do all of the copies. Good practice is to overwrite the original So THAT anamolies do result: a, b = t (a)." I believe that such advice should be in the documentation as well: "Currently, the copied iterators remaintied to the original iterator. If the original advances, then so do all of the copies and vice versa. Good practice is to overwrite the original So THAT anamolies do result: a, b = t (a ). " Note that I added "and vice versa". -- assignee: docs@python components: Documentation messages: 201693 nosy: Alan.Cristhian, docs@python priority: normal severity: normal status: open title: itertools.tee improve documentation type: enhancement versions: Python 3.3 ___ Python tracker <http://bugs.python.org/issue19441> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19441] itertools.tee improve documentation
Alan Cristhian added the comment: Ok, I agree. -- ___ Python tracker <http://bugs.python.org/issue19441> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25310] End mark argument for StreamReader.readline() method
New submission from Alan Cristhian: I use pickle to serialize data. The pickle.dumps() methods sometimes introduce the b"\n" character: >>> import pickle >>> tuple_with_10 = (10,) >>> result = pickle.dumps(tuple_with_10, protocol=4) >>> result b'\x80\x04\x95\x05\x00\x00\x00\x00\x00\x00\x00K\n\x85\x94.' >>> b"\n" in result True The same is true with all protocols. So, if I read the stream with StreamReader.readline() method and then try to deserialize with pickle.loads(), I got and EOLError because the stream has been cut. An default argument in the readline() method can solve this issue. -- components: asyncio messages: 252249 nosy: Alan.Cristhian, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: End mark argument for StreamReader.readline() method type: behavior versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue25310> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com