[issue45924] Incorrect traceback when future's exception is raised multiple times

2022-03-18 Thread lilydjwg
Change by lilydjwg : -- nosy: +lilydjwg ___ Python tracker <https://bugs.python.org/issue45924> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45671] str(CancelledError()) is empty

2021-10-30 Thread lilydjwg
lilydjwg added the comment: OK, I see. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45671] str(CancelledError()) is empty

2021-10-29 Thread lilydjwg
lilydjwg added the comment: Oh, I find that many exceptions return an empty string when created without any arguments, but most raised ones do have a descriptive error message. Yes, if it's going to change, we'd change all of them. But now I doubt if it's worth the effort... What if we

[issue45671] str(CancelledError()) is empty

2021-10-29 Thread lilydjwg
New submission from lilydjwg : When I try to print an asyncio.CancelledError object, I do not see it and I thought something went wrong. CancelledError inherits from BaseException and all BaseException subclasses (e.g. SystemExit, KeyboardInterrupted) seem to return empty strings for str(e

[issue42682] awaiting a wrapped asyncio.Task multiple times gives long, repeative tracebacks

2020-12-19 Thread lilydjwg
New submission from lilydjwg : import asyncio async def crash(key): raise Exception('crash!') async def wait(fu): await fu async def main(): crasher = asyncio.create_task(crash(())) fs = [wait(crasher) for _ in range(10)] for fu in asyncio.as_completed(fs): try: await fu

[issue41105] Add some extra content check in configure process for some empty header file who has been deprecated by glibc

2020-06-24 Thread lilydjwg
Change by lilydjwg : -- nosy: +lilydjwg ___ Python tracker <https://bugs.python.org/issue41105> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37095] [Feature Request]: Add zstd support in tarfile

2019-11-24 Thread lilydjwg
Change by lilydjwg : -- nosy: +lilydjwg ___ Python tracker <https://bugs.python.org/issue37095> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

2019-05-28 Thread lilydjwg
Change by lilydjwg : -- keywords: +patch pull_requests: +13527 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13628 ___ Python tracker <https://bugs.python.org/issu

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

2019-05-27 Thread lilydjwg
lilydjwg added the comment: > All we need is `program = os.fspath(program)` in base_events.py > subprocess_exec() method. I don't think so. The arguments could be `pathlib.Path` too. We can update the `isinstance(arg, (str, bytes))` check so the args pass on to `subprocess

[issue34506] Traceback logged when SSL handshake fails

2019-03-22 Thread lilydjwg
Change by lilydjwg : -- nosy: +lilydjwg ___ Python tracker <https://bugs.python.org/issue34506> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35246] asyncio.create_subprocess_exec doesn't accept pathlib.Path like subprocess does

2018-11-14 Thread lilydjwg
New submission from lilydjwg : When I pass pathlib.Path to asyncio.create_subprocess_exec I get: TypeError: program arguments must be a bytes or text string, not PosixPath It's not so good when subprocess accepts this kind of arguments without issues. So can you add support

[issue35144] TemporaryDirectory clean-up fails with unsearchable directories

2018-11-03 Thread lilydjwg
lilydjwg added the comment: Yes issue26660 is similar but not the same. On Windows it seems a read-only file cannot be deleted while on Linux a file resident in a non-searchable directory cannot be deleted. An onerror for TemporaryDirectory will work. Also I'd like to add an optional

[issue35144] TemporaryDirectory can't be cleaned up if there are unsearchable directories

2018-11-02 Thread lilydjwg
New submission from lilydjwg : If the title doesn't explain clearly, here's a demo program that will fail: import tempfile import pathlib def test(): with tempfile.TemporaryDirectory(prefix='test-bad-') as tmpdir: tmpdir = pathlib.Path(tmpdir) subdir = tmpdir / 'sub

[issue27650] Implement `__repr__` methods for logging.Logger and others

2016-12-27 Thread lilydjwg
lilydjwg added the comment: This hangs this test from celery: https://github.com/celery/celery/blob/master/t/unit/app/test_log.py#L72 It constructs a Logger with `.parent` to itself, making getEffectiveLevel loop forever. The code tries to raise an exception when such loops are detected

[issue28565] datetime.strptime %Z doesn't get included in the result

2016-10-30 Thread lilydjwg
New submission from lilydjwg: With %z, the result gets a tzinfo, but with %Z, it succeeds but the result is without timezone info: >>> datetime.datetime.strptime('2016-10-31T03:58:24 CST', '%Y-%m-%dT%H:%M:%S >>> %Z') datetime.datetime(2016, 10, 31, 3, 58, 24) >>>

[issue27970] ssl: can't verify a trusted site with imcomplete certificate chain

2016-09-06 Thread lilydjwg
lilydjwg added the comment: I understand now, thank you! It's much easier to work around such issues than fix other people's sites. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27970] ssl: can't verify a trusted site with imcomplete certificate chain

2016-09-06 Thread lilydjwg
lilydjwg added the comment: Please read my code. I've provided the CA certificate; this should work because I've downloaded the certificate manually and feed it to Python. openssl command line tool works. gnutls-cli works too. wget (with openssl) works too. curl (with openssl) fails like

[issue27970] ssl: can't verify a trusted site with imcomplete certificate chain

2016-09-06 Thread lilydjwg
New submission from lilydjwg: This fails: Python 3.5.2 (default, Jun 28 2016, 08:46:01) [GCC 6.1.1 20160602] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> import socket >>>

[issue21047] html.parser.HTMLParser: convert_charrefs should become True by default

2016-01-10 Thread lilydjwg
lilydjwg added the comment: FYI, this breaks one of my programs. I find it now because it only threw errors in rare cases, and I've never seen the deprecated warning because I don't check the logs unless something goes wrong. -- nosy: +lilydjwg

[issue24494] Can't specify encoding with fileinput and inplace=True

2015-06-23 Thread lilydjwg
New submission from lilydjwg: I want to use fileinput to modify files, but find no way to specify the file encoding. I tried to use hook_encoded, but it says FileInput cannot use an opening hook in inplace mode. -- components: Library (Lib) messages: 245711 nosy: lilydjwg priority

[issue1602] windows console doesn't print or input Unicode

2015-04-16 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing

[issue8106] SSL session management

2015-04-13 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8106 ___ ___ Python-bugs-list mailing

[issue23262] webbrowser module broken with Firefox 36+

2015-02-27 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23262 ___ ___ Python-bugs-list mailing

[issue5907] repr of time.struct_time type does not eval

2015-01-21 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5907 ___ ___ Python-bugs-list mailing

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2015-01-21 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list mailing

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-20 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13936 ___ ___ Python-bugs-list mailing

[issue15222] mailbox.mbox writes without empty line after each message

2012-10-26 Thread lilydjwg
lilydjwg added the comment: My system has updated to Python 3.3.0 and this bugs me again :-( I don't see the changes in Python 3.3.0. So when will this be merged into 3.3? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15222

[issue15222] mailbox.mbox writes without empty line after each message

2012-09-02 Thread lilydjwg
lilydjwg added the comment: The last patch works fine here, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15222 ___ ___ Python-bugs

[issue15222] mailbox.mbox writes without empty line after each message

2012-07-03 Thread lilydjwg
lilydjwg lilyd...@gmail.com added the comment: Hi, I have figured it out. The 'mbox2' file should be in correct format now. Run './bug.py' once to delete the last mail. 'cat newmail mbox2' to append a new mail to that mbox. Run './bug.py' again. Now, 'mbox2' doesn't have a newline at the end

[issue15222] mailbox.mbox writes without empty line after each message

2012-07-03 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: Added file: http://bugs.python.org/file26255/newmail ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15222

[issue15222] mailbox.mbox writes without empty line after each message

2012-07-03 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: Added file: http://bugs.python.org/file26256/bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15222

[issue15222] mailbox.mbox writes without end-of-line at the file end.

2012-06-29 Thread lilydjwg
lilydjwg lilyd...@gmail.com added the comment: I think I got something wrong. It seems that it only happens when the last message is deleted. I've also made up a sample mbox attached. The code to reproduce: from mailbox import mbox mb = mbox('mbox') del mb[len(mb)-1] mb.close

[issue15222] mailbox.mbox writes without empty line after each message

2012-06-29 Thread lilydjwg
lilydjwg lilyd...@gmail.com added the comment: Hi, Petri Lehtinen. That's a bug of mine. That mbox is made up by me for demo, not procmail which has the newline. However, a newline is indeed lost and in some way it does corrupt my real mbox

[issue9559] mailbox.mbox creates new file when adding message to mbox

2012-06-28 Thread lilydjwg
Changes by lilydjwg lilyd...@gmail.com: -- nosy: +lilydjwg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9559 ___ ___ Python-bugs-list mailing

[issue15222] mailbox.mbox writes without end-of-line at the file end.

2012-06-28 Thread lilydjwg
New submission from lilydjwg lilyd...@gmail.com: I find that when mbox writes mails back, it loses the last end-of-line, making appending new mails to the mbox becomes incorrect. I'm using Linux. In _singlefileMailbox.flush(), when writing the mbox, it loses the last byte ('\n') at the end

[issue12275] urllib.request.HTTPRedirectHandler won't redirect to a URL with only path but not domain

2011-06-07 Thread lilydjwg
New submission from lilydjwg lilyd...@gmail.com: On redirecting to a url like '/login', at around line 556 of request.py it will raise an HTTPError. The sys.verrsion is Python 3.2 (r32:88445, Apr 15 2011, 11:20:08) [GCC 4.5.2 20110127 (prerelease)] on linux2 -- components