[issue22865] Document how to make pty.spawn not copy data

2019-05-20 Thread Geoff Shannon
Change by Geoff Shannon : -- pull_requests: +13364 ___ Python tracker <https://bugs.python.org/issue22865> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22865] Document how to make pty.spawn not copy data

2019-05-19 Thread Geoff Shannon
Geoff Shannon added the comment: @martin.panter I removed the mention of inserting null bytes and restricted the documentation updates to more fully documenting the current behaviour. -- ___ Python tracker <https://bugs.python.org/issue22

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2019-02-26 Thread Geoff Shannon
Geoff Shannon added the comment: I'm aware of it. I actually wrote that patch as well. :D -- ___ Python tracker <https://bugs.python.org/issue26228> ___ ___

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2019-02-26 Thread Geoff Shannon
Geoff Shannon added the comment: I took a shot at fixing this in a smaller more targeted patch. I think this should still solve the major issue of pty.spawn hanging on platforms that don't raise an error. In addition, pty.spawn should now _ALWAYS_ return the terminal to the previous

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2019-02-26 Thread Geoff Shannon
Change by Geoff Shannon : -- pull_requests: +12074 ___ Python tracker <https://bugs.python.org/issue26228> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22865] Document how to make pty.spawn not copy data

2019-02-21 Thread Geoff Shannon
Geoff Shannon added the comment: It is submitted @cheryl.sabella. Thanks for reviving this, I had totally lost track of it. -- ___ Python tracker <https://bugs.python.org/issue22

[issue22865] Document how to make pty.spawn not copy data

2015-10-06 Thread Geoff Shannon
Geoff Shannon added the comment: Hmm, I spoke improperly. I think you are entirely correct in your statements. What I meant by "terminals ignore null bytes" is that returning a string consisting of only a null byte doesn't cause anything observable to happen, includin

[issue22865] Document how to make pty.spawn not copy data

2015-06-07 Thread Geoff Shannon
Geoff Shannon added the comment: Hey, pinging this issue. Hoping someone has time to take a look at it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22865

[issue22865] Document how to make pty.spawn not copy data

2015-05-07 Thread Geoff Shannon
Geoff Shannon added the comment: Okay, I just found another way to achieve the same effect of letting the _read function ignore data but not inadvertantly close the stream. It relies on the fact that terminals will ignore null bytes fed to them. Now there are no code changes required, just

[issue22865] Allow pty.spawn to ignore data to copy

2015-01-06 Thread Geoff Shannon
Geoff Shannon added the comment: I tweaked the patch a bit to not include the parentheses since that seems to be the style here. -- Added file: http://bugs.python.org/file37620/pty.patch ___ Python tracker rep...@bugs.python.org http

[issue22865] Allow pty.spawn to ignore data to copy

2014-11-13 Thread Geoff Shannon
New submission from Geoff Shannon: While using the pty.py module I had cause to want to be able to silently eat characters from the input stream. I discovered that because of the check for end of file being if not data that there was no way to do this. Since the default function used