[issue44611] CPython uses deprecated randomness API

2021-07-12 Thread Dan Stromberg
Dan Stromberg added the comment: Yes, cng-portal. On Mon, Jul 12, 2021 at 3:24 PM Thomas Grainger wrote: > > Thomas Grainger added the comment: > > https://docs.microsoft.com/en-us/windows/win32/seccng/cng-portal ? > > --

[issue44611] CPython uses deprecated randomness API

2021-07-12 Thread Dan Stromberg
New submission from Dan Stromberg : CPython 3.9 uses CryptGenRandom(), which has been deprecated by Microsoft. I'm told the randomness produced by CryptGenRandom() is fine, but Microsoft has introduced a newer API for getting randomness. For these reasons, Python/bootstrap_hash.c should

[issue5672] Implement a way to change the python process name

2018-12-28 Thread Dan Stromberg
Dan Stromberg added the comment: Isn't this "python script doesn't show up in top correctly" issue a matter of "#!/usr/bin/env python3"? If you "#!/usr/bin/python3" (for example) instead, top seems happy. -- nosy: +strombrg

[issue23397] PEP 431 implementation

2015-03-16 Thread Dan Stromberg
Changes by Dan Stromberg strom...@gmail.com: -- nosy: +strombrg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23397 ___ ___ Python-bugs-list

[issue15039] module/ found before module.py when both are in the CWD

2012-06-08 Thread Dan Stromberg
New submission from Dan Stromberg strom...@gmail.com: CPython 3.3a4 appears to find treap/ before treap.py in the CWD. If I rename treap to treap-dir, all seems well for the code in question: dstromberg@zareason-limbo6000a /tmp/tt $ mv treap treap-dir dstromberg@zareason-limbo6000a /tmp/tt

[issue6715] xz compressor support

2011-10-02 Thread Dan Stromberg
Dan Stromberg strom...@gmail.com added the comment: On Sun, Oct 2, 2011 at 3:49 PM, Nadeem Vawda rep...@bugs.python.org wrote: Nadeem Vawda nadeem.va...@gmail.com added the comment: Thanks for investigating the Windows situation. - liblzma can't be compiled by Visual Studio: too many C99

[issue11449] tarfile tries to file_.tell() even when creating a new archive

2011-06-01 Thread Dan Stromberg
Dan Stromberg strom...@gmail.com added the comment: Yes, I just needed to use 'w|' instead of 'w'. Thanks! -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11449

[issue6715] xz compressor support

2011-05-15 Thread Dan Stromberg
Dan Stromberg strom...@gmail.com added the comment: Interesting thing to consider: maybe it'd be better to add support for libarchive, which includes xz support among other things. http://code.google.com/p/libarchive/ -- ___ Python tracker rep

[issue6715] xz compressor support

2011-04-07 Thread Dan Stromberg
Dan Stromberg strom...@gmail.com added the comment: I don't know that much about compression, but I wonder if a threadsafe compression module would enable parallel forms of compression? If yes, then multithreaded might be a big benefit, in light of multicore taking off. EG: http

[issue11449] tarfile tries to file_.tell() even when creating a new archive

2011-03-08 Thread Dan Stromberg
New submission from Dan Stromberg strom...@gmail.com: The attached file demonstrates the problem in 2.5, 2.5, 2.7, 3.0, 3.1 and 3.2. In short, I believe when you're creating a new tar archive (say, to a pipe), there should be no need for a file_.tell() (which blows up when it's a pipe). I

[issue6715] xz compressor support

2010-11-25 Thread Dan Stromberg
Dan Stromberg strom...@gmail.com added the comment: While I realize Python extension modules are pretty much the norm in CPython, it'd be pretty cool if xz support could be written overtop of ctypes. ctypes seems to be emerging as the way of doing FFI across different python implementations

[issue6715] xz compressor support

2010-11-25 Thread Dan Stromberg
Dan Stromberg strom...@gmail.com added the comment: I agree that ctypes is a bit more brittle - both ctypes and c extension modules can yield segfaults, but at least the c extension module is likely to give an error or warning when you rebuild it. However, I'm getting the impression that: 1

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-08 Thread Dan Stromberg
New submission from Dan Stromberg strom...@gmail.com: The tarfile module's gettarinfo callable insists on stat'ing the file in question, preventing one from dynamically generating file content by passing a file-like object for addfile's fileobj argument. I believe the attached patch fixes