Roundup Robot | 24 Jul 16:48 2014

[issue1730136] tkFont.__eq__ gives type error


Roundup Robot added the comment:

New changeset 841cdb6145e9 by Serhiy Storchaka in branch '2.7':
Issue #1730136: Fix comparison between a tk Font object and an object of a
http://hg.python.org/cpython/rev/841cdb6145e9

----------
nosy: +python-dev

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue1730136>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Hoxily | 24 Jul 16:46 2014

[issue22059] incorrect type conversion from str to bytes in asynchat module in asynchat.py


New submission from Hoxily:

refer to  http://hg.python.org/cpython/file/5d70ac83d104/Lib/asynchat.py#l123

----------
components: Library (Lib)
hgrepos: 265
messages: 223842
nosy: brett.cannon, hoxily, tim.peters
priority: normal
severity: normal
status: open
title: incorrect type conversion from str to bytes in asynchat module in asynchat.py
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue22059>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Facundo Batista | 24 Jul 16:41 2014

[issue22058] datetime.datetime() should accept a datetime.date as constructor


New submission from Facundo Batista:

Currently (tested on py3.4):

>>> from datetime import datetime, date
>>> d = datetime.now()
>>> date(d)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: an integer is required (got type datetime.datetime)

IMO, it's like doing int(float), a truncation of some info. For example, this is what I want to happen:

>>> d
datetime.datetime(2014, 7, 24, 11, 38, 44, 966613)
>>> date(d)
datetime.date(2014, 7, 24)

----------
messages: 223840
nosy: facundobatista
priority: normal
severity: normal
status: open
title: datetime.datetime() should accept a datetime.date as constructor
versions: Python 3.5

_______________________________________
Python tracker <report <at> bugs.python.org>
(Continue reading)

Serhiy Storchaka | 24 Jul 16:41 2014

[issue1730136] tkFont.__eq__ gives type error


Serhiy Storchaka added the comment:

The patch was not committed to 2.7 and now this bug causes an error on buildbot.

http://buildbot.python.org/all/builders/AMD64%20Debian%20root%202.7/builds/303/steps/test/logs/stdio

======================================================================
ERROR: test_finalizer (test.test_gc.GCTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/buildarea/2.7.angelico-debian-amd64/build/Lib/test/test_gc.py", line 149, in test_finalizer
    gc.garbage.remove(obj)
  File "/root/buildarea/2.7.angelico-debian-amd64/build/Lib/lib-tk/tkFont.py", line 100, in __eq__
    return self.name == other.name and isinstance(other, Font)
AttributeError: A instance has no attribute 'name'

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue1730136>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Alon Mishne | 24 Jul 15:59 2014

[issue22057] The doc say all globals are copied on eval(), but only __builtins__ is copied


New submission from Alon Mishne:

According to the documentation of eval():

> If the globals dictionary is present and lacks '__builtins__', the current globals are copied into
globals before expression is parsed.

However in practice only the __builtins__ items are copied, see:

http://hg.python.org/cpython/file/2.7/Python/bltinmodule.c#l655

See http://stackoverflow.com/q/24934908/242762

----------
assignee: docs <at> python
components: Documentation
messages: 223837
nosy: amishne, docs <at> python
priority: normal
severity: normal
status: open
title: The doc say all globals are copied on eval(), but only __builtins__ is copied
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue22057>
_______________________________________
_______________________________________________
(Continue reading)

Andrew Svetlov | 24 Jul 10:38 2014

[issue22055] Incomplete sentence in asyncio BaseEventLoop doc


New submission from Andrew Svetlov:

Fixed in f578e1d717b7 and f578e1d717b7.
Thanks.

----------
nosy: +asvetlov
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue22055>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Saimadhav Heblikar | 24 Jul 08:29 2014

[issue22055] Incomplete sentence in asyncio BaseEventLoop doc


Changes by Saimadhav Heblikar <saimadhavheblikar <at> gmail.com>:

----------
assignee: docs <at> python
components: Documentation, asyncio
files: asyncio-eventloop-doc-incomplete-sent.diff
keywords: patch
nosy: docs <at> python, gvanrossum, haypo, sahutd, yselivanov
priority: normal
severity: normal
status: open
title: Incomplete sentence in asyncio BaseEventLoop doc
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36060/asyncio-eventloop-doc-incomplete-sent.diff

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue22055>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Milan Oberkirch | 24 Jul 01:52 2014

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror


Milan Oberkirch added the comment:

This bug was resolved for SMTPServerDisconnected exceptions but not for SSLError. Is it still
reproducible? If so, the attached patch should fix it for 3.x (couldn't test if it does because I don't know
how to reproduce the error).

----------
nosy: +jesstess, zvyn
Added file: http://bugs.python.org/file36057/issue1481032.patch

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue1481032>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

STINNER Victor | 24 Jul 01:51 2014

[issue1191964] add non-blocking read and write methods to subprocess.Popen


STINNER Victor added the comment:

> I have implemented and would continue to lean towards continuing to hide BrokenPipeError on the
additional API endpoints.

FYI asyncio.Process.communicate() ignores BrokenPipeError and ConnectionResetError, whereas
asyncio.Process.stdin.drain() (coroutine to wait until all bytes are written) raises a
BrokenPipeError or ConnectionResetError if the child process exited. I think subprocess has the same design.

(I modified recently asyncio to ignore BrokenPipeError in communicate(), it was a bug.)

----------

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue1191964>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

STINNER Victor | 23 Jul 23:30 2014

[issue22054] Add os.get_blocking() and os.set_blocking() functions


New submission from STINNER Victor:

Antoine suggested me to add these functions in the issue #22042.

Here is a patch to implement these functions and use them in various places.

----------
files: os_blocking.patch
keywords: patch
messages: 223782
nosy: haypo, neologix, pitrou
priority: normal
severity: normal
status: open
title: Add os.get_blocking() and os.set_blocking() functions
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file36052/os_blocking.patch

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue22054>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Terry J. Reedy | 23 Jul 23:24 2014

[issue22053] turtledemo: clean up start and stop, fix warning


New submission from Terry J. Reedy:

The patch adds a main function with the minimum needed to start the mainloop. It omits the 'while RUN' loop
and development code for catching exceptions while running. They should never happen, and silently
suppressing tracebacks is a bad idea.

The patch also deletes the unneeded sys.exit() call from _destroy. In 3.x debug builds, this call results
in the following clipped warning being printed in the startup console.

    while executing
"46111032_destroy"
    (command for "WM_DELETE_WINDOW" window manager protocol) 

These no longer occur when sys.exit() is removed.

Turtledemo works fine with these changes.

----------
assignee: terry.reedy
files: turdemo_start_stop.diff
keywords: patch
messages: 223780
nosy: terry.reedy
priority: normal
severity: normal
stage: commit review
status: open
title: turtledemo: clean up start and stop, fix warning
type: behavior
(Continue reading)


Gmane