[issue45870] There's no readline module on Windows Python (cmd.Cmd)

2021-11-29 Thread keeely
keeely added the comment: I'm attaching an example usage of cmd + readline to show how you can have context-specific history for sub-shells. WARNING: WRITES FILES TO CWD! In the event that someone does implement this on Windows it would be nice if this worked. That doesn't

[issue45870] There's no readline module on Windows Python (cmd.Cmd)

2021-11-29 Thread keeely
keeely added the comment: Regrettably I cannot submit a PR for the docs because I value my online anonymity and Python submissions require a real name (IIRC), but my suggestion would be pretty simple. Taking as an example, for termios (https://docs.python.org/3/library/termios.html), we

[issue45870] There's no readline module on Windows Python (cmd.Cmd)

2021-11-27 Thread keeely
keeely added the comment: You can take the view that it's not a bug (with some justification), but a few lines in the cmd docs would make all the difference in terms of wasted time. I have now abandoned my Windows port and suggested users install WSL2 instead which is the easies

[issue45870] There's no readline module on Windows Python (cmd.Cmd)

2021-11-22 Thread keeely
New submission from keeely : In the past this was worked around by installing a third-party module: https://github.com/pyreadline/pyreadline For Python 3.10, however this module doesn't work. And pyreadline doesn't seem to be maintained anymore, so it's possible it won

[issue35218] decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits

2019-03-12 Thread keeely
keeely added the comment: You can take out the test. It wasn't there before so who's going to care? -- ___ Python tracker <https://bugs.python.o

[issue35218] decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits

2019-03-12 Thread keeely
keeely added the comment: Can you please get on and fix this if you're going to deprecate Python 2.0. It's unkind on your users to deprecate the old version before you've fixed basic regressions like this in the new one. Just to be clear, I am attaching the code that

[issue35218] decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits

2019-01-03 Thread keeely
keeely added the comment: Please note: I'm unable to fill in your contributor agreement form, so please consider the patch an illustrative example. In any case, the fix is pretty-much a one-liner, so shouldn't be a big deal to 're-write'. I'm disappointed t

[issue35218] decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits

2018-11-13 Thread keeely
Change by keeely : -- keywords: +patch Added file: https://bugs.python.org/file47930/zipfile_flags.patch ___ Python tracker <https://bugs.python.org/issue35

[issue35218] decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits

2018-11-12 Thread keeely
Change by keeely : -- title: Impossible to round-trip decompress -> compress zipfiles with Python 3 due to losing flag_bits -> decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits ___ Python tracker

[issue35218] Impossible to round-trip decompress -> compress zipfiles with Python 3 due to losing flag_bits

2018-11-12 Thread keeely
New submission from keeely : Python 2.7 allows one to capture from one file a list of ZipInfo objects, and then recreate a new file using those ZipInfo objects. The same thing appears to be impossible with Python 3 without resorting to monkey-patches because of a line of code in the