[issue12059] hashlib does not handle missing hash functions correctly

2011-05-14 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12059

[issue12060] Python doesn't support real time signals

2011-05-14 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: if you used the pipe approach you'd need to deal with the case of the write blocking (or failing if nonblocking) when the pipe buffer is full. also you'd need to block signals around a fork and reinitialize the pipe in the child before

[issue12060] Python doesn't support real time signals

2011-05-14 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: if someone comes up with a situation where this is a real problem, feel free to reopen it. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue12038] assertEqual doesn't display newline differences quite well

2011-05-14 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: We should ensure that the first differing character in the string is always included in what is displayed as a diff. if we're going to shorten a string we should elide something that matches. -- nosy: +gregory.p.smith

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I added these with conditional compilation via autoconf for use on posix systems. These methods are not IPv6 specific. Anyone who wants to see them supported on windows will need to add whatever conditional compilation magic is required

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: thanks i'll take a look at OS X here. obviously i did development and testing on linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1746656

[issue9667] NetBSD curses KEY_* constants

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: unassigning, i don't have time to tackle netbsd issues right now. -- assignee: gregory.p.smith - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9667

[issue7656] test_hashlib fails on some installations (specifically Neal's regression test runner)

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Misc/build.sh seems obsolete... its full of references to svn and we have had buildbots for many years now. The buildbots do not seem to be hitting this issue. Is there a real failure you can point at somewhere? if so please reopen

[issue11197] information leakage with SimpleHTTPServer

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: unassigning, i don't have time for this one right now. doubtful anyone is going to jump in for 3.2.1 given rc1 is being prepared right now. :) General recommendation: don't use SimpleHTTPServer in production. -- assignee

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-20 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: that patch looks good. though I do wish we had a function similar to PyObject_AsStringEncodedFSDefault() so that the ParseTuple call wasn't needed for this relatively common operation when interfacing with system library calls that deal

[issue1597850] Cross compiling patches for MINGW

2011-05-20 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: -gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1597850 ___ ___ Python-bugs

[issue12196] add pipe2() to the os module

2011-05-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I just nuked the pure Python POSIX subprocess implementation in 70467:75ca834df824. No need for both implementations. _posixsubprocess is now the only option. -- ___ Python tracker rep

[issue12196] add pipe2() to the os module

2011-05-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Include an appropriate Version Added annotation in the pipe2 documentation. Otherwise the current patches look good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-05-29 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I added comments in the code review. this patch is looking good once the comments are addressed. thanks for your contribution! As for talk of support for recursion... thats what os.walk() is for. it doesn't belong as part of any

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-10-20 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: If the server failed to close a transaction the protocol stream is over unless you mime relying on hope and luck. Poplib has a nasty set of server implementation bugs to work around here. Readline as defined today no longer suits its needs

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: This looks like a bug in your daemon not in subprocess. Your daemon is intentionally not closing its inherited stderr fd. -- nosy: +gregory.p.smith resolution: - invalid status: open - closed

[issue13417] faster utf-8 decoding

2011-11-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: +1 nice! A couple minor comments on the code review. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13417

[issue13636] Python SSL Stack doesn't have a Secure Default set of ciphers

2011-12-21 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Why make this decision ourselves at all? Copy what Mozilla and Chromium do by default. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13636

[issue8313] unprintable AssertionError object message in unittest tracebacks

2011-12-22 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: http://pypi.python.org/pypi/unittest2 says There are several places in unittest2 (and unittest) that call str(...) on exceptions to get the exception message. This can fail if the exception was created with non-ascii unicode. This is rare

[issue8313] unprintable AssertionError object message in unittest tracebacks

2011-12-22 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: We're on python 2.6, otherwise this would be a moot point. but you might want to include something like that in a new unittest2 backport release. -- ___ Python tracker rep...@bugs.python.org http

[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj

2012-01-13 Thread Gregory P. Smith
New submission from Gregory P. Smith g...@krypto.org: gzip.GzipFile accepts a fileobj parameter with an open file object. Unfortunately gzip requires a filename be embedded in the gzip file and the gzip module code uses fileobj.name to get that. This results in the fake fdopen name from

[issue6721] Locks in python standard library should be sanitized on fork

2012-01-14 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: A new lock type will NOT solve this. It is ALWAYS okay to clear all thread/threading module locks after a fork. They are and always have been process-local by definition so they are also by definition 100% invalid to any child process

[issue13788] os.closerange optimization

2012-01-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Reopening. Comments added to the code review. This issue is independent of the subprocess module issue in #8052. The _posixsubprocess.c has its own fd closing loop. http://hg.python.org/cpython/file/050c07b31192/Modules/_posixsubprocess.c

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-16 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: attaching a patch that implements this safely. -- keywords: +patch Added file: http://bugs.python.org/file24255/subprocess-close-open-fds-gps01.diff ___ Python tracker rep...@bugs.python.org http

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-16 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: attaching a better formatted one for review. -- Added file: http://bugs.python.org/file24256/subprocess-close-open-fds-gps02.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue6559] add pass_fds paramter to subprocess.Popen()

2012-01-16 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Wasn't thought about. I have seen something similar to that done in another c++ subprocess implementation since. If you have suggestions for a more useful API, feel free to propose them in a new issue

[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj

2012-01-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: thanks that looks good. As far as fixing this for 2.7 goes, i don't like the _sound_ of it because it is gross... But i'm actually okay with having special case code in the gzip module that rejects 'fdopen' as an actual filename and uses

[issue13703] Hash collision security issue

2012-01-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I like what you've done in #13704 better than what I see in random-8.patch so far. see the code review comments i've left on both issues. -- nosy: +gregory.p.smith ___ Python tracker rep

[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj

2012-01-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Looks like you've got commit privs (yay) so i'm assigning this to you to take care of that way for 2.7 as well. I'd add a comment to the fdopen C code where the fdopen constant lives as well as to the gzip.py module around the special case

[issue13703] Hash collision security issue

2012-01-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: On Wed, Jan 18, 2012 at 1:10 PM, Guido van Rossum rep...@bugs.python.org wrote: On Wed, Jan 18, 2012 at 1:05 PM, Antoine Pitrou rep...@bugs.python.orgwrote: I would hope 3.3 only gets randomized hashing. Collision counting is a hack

[issue13703] Hash collision security issue

2012-01-18 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: A dict can contain non-orderable keys, I don't know how an AVL tree can fit into that. good point! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703

[issue13703] Hash collision security issue

2012-01-21 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: On Sat, Jan 21, 2012 at 2:45 PM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: You said above that it should be hardcoded; if so, how can it be changed at run-time from an environment

[issue8052] subprocess close_fds behavior should only close open fds

2012-01-21 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: For FreeBSD, Python 3.2 and 3.3 now check to see if /dev/fd is valid. Be sure and mount -t fdescfs none /dev/fd on FreeBSD if you want faster subprocess launching. Run a FreeBSD buildbot? Please do it! For Python 3.1 the fix for #13788

[issue13703] Hash collision security issue

2012-01-23 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: On Mon, Jan 23, 2012 at 1:32 PM, Dave Malcolm rep...@bugs.python.org wrote: Dave Malcolm dmalc...@redhat.com added the comment: I'm attaching an attempt at backporting haypo's random-8.patch to 2.7 Changes relative to random-8.patch

[issue13703] Hash collision security issue

2012-01-26 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: But using non-__builtin__.str objects (such as UserString) would expose the user to an attack? Not necessarily: only if they use these strings as dictionary keys, and only if they do so in contexts where arbitrary user input is consumed

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs

[issue13703] Hash collision security issue

2012-01-29 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: What about PYTHONHASHSEED= - off, PYTHONHASHSEED=0 - random, PYTHONHASHSEED=n - n ? I agree with Jim that it's better to have one env. variable than two. Rather than the empty string for off I suggest an explicit string that makes it clear

[issue13903] New shared-keys dictionary implementation

2012-01-31 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: FYI - I strongly support this type of work to reduce memory use of the Python interpreter! :) Also, yes, constant changing should be separate from this change but are worth occasionally re-measuring and justifying as common computer

[issue13930] lib2to3 ability to output files into a different directory and alter their names

2012-02-02 Thread Gregory P. Smith
New submission from Gregory P. Smith g...@krypto.org: In order for lib2to3 to be integrated into parts of our workflow at work we need it to be able to write converted code out to new directory and modify the filename in the process. While doing that, it is very convenient if it can also

[issue16650] Popen._internal_poll() references errno.ECHILD outside of the local scope

2012-12-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: it's a potential bug. your patch looks good. as for _handle_exitstatus referring to SubprocessError, that is fine. In that situation it is trying to raise the exception and the only time that would ever be a problem is when called by the gc during

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-10 Thread Gregory P. Smith
New submission from Gregory P. Smith: test_posix.test_getgrouplist is failing for me on my Linux (ubuntu precise) based desktop at work. It looks like posix.getgrouplist() is returning all of the larger GIDs. The lowest one it is reporting for my user is 499 but the more distro specific

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: would the values returned by getgrouplist always be a non empty subset of getgroups? (regardless, I expect the id -G process output parsing can be removed) -- title: test_posix.test_getgrouplist fails on some systems - incorrectly comparing

[issue16660] Segmentation fault when importing hashlib

2012-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given where the crash is occurring and that faulthandler traceback it makes me wonder if it was compiled with a set of openssl headers that don't make the library it is using at runtime. If you recompile the interpreter in debug mode (--with-pydebug on your

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given this is more of a code coverage test than any need to test the functionality of the OS library call, just asserting that it returns a non-empty list is a decent test. :) -- ___ Python tracker rep

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2012-12-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: doesn't the size of code setting up ParseTupleWithKeywords and checking the values afterwards bother you? that's the same thing only much less consistent. -- ___ Python tracker rep...@bugs.python.org http

[issue16660] Segmentation fault when importing hashlib

2012-12-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: given the behavior you are seeing, I'm not inclined to trust your computer or however it is configured. I do not believe this is a Python issue. 3.3 works fine on RHEL 6 so it should work fine on CentOS 6. http://buildbot.python.org/all/builders/x86

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2012-12-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: There's a bit of an impasse here on the PEP front. Guido said it wasn't needed. Antoine brings up the point that CPython developers will have to live with the result of this work so maybe something more easy to read and see in one place like a PEP would

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2012-12-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: PEPs are perceived as a hurdle. Regardless, clinic.txt would turn into one pretty easily so just doing it may be easiest. :) On Fri, Dec 14, 2012 at 12:11 PM, Antoine Pitrou rep...@bugs.python.orgwrote: Antoine Pitrou added the comment: I have

[issue16742] PyOS_Readline drops GIL and calls PyOS_StdioReadline, which isn't thread safe

2012-12-23 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith priority: normal - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16742

[issue16772] int() accepts float number base

2012-12-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: If someone thinks this should go into 3.2 and 3.3 they're welcome to do it; no objections from me. (The behavior was unintentional and thus a bug, but it is still a minor behavior change) -- nosy: +gregory.p.smith

[issue16761] Fix int(base=X)

2012-12-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: Having just looked added something to test_int as part of issue16772... There appears to be an explicit test _for_ this strange behavior in there: http://hg.python.org/cpython/file/60f7197f991f/Lib/test/test_int.py#l233 test_base_arg_with_no_x_arg I have

[issue16772] int() accepts float number base

2012-12-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the pointer to round(). PyNumber_AsSsize_t was just what the doctor ordered. PS Grump acknowledged and accepted. Its trunk and we're nowhere near a freeze so I figured it'd be fine to iterate on it in trunk if needed

[issue16772] int() accepts float number base

2012-12-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: I used it because Mark suggested it could have the same behavior as round() and that is the more abstract API that round uses. Regardless, at this point I've added tests and tested for the TypeError when a float is passed as well as testing that the only

[issue16772] int() accepts float number base

2012-12-27 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16772 ___ ___ Python

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think the forkserver approach is a good idea. It is what a lot of users will choose. forkserver won't work everywhere though so the fork+exec option is still desirable to have available. Threads can be started by non-python code (extension modules

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-12-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: ah, i missed that update. cool! +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs

[issue16946] subprocess: _close_open_fd_range_safe() does not set close-on-exec flag on Linux 2.6.23 if O_CLOEXEC is defined

2013-01-12 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith nosy: +gregory.p.smith -gps ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16946

[issue3718] environment variable MACHDEP and python build system

2013-01-26 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: -gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3718 ___ ___ Python-bugs

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-01-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: the patch looks good, thanks! one minor comment in a test but i'll take care of that as i submit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-01 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972

[issue12268] file readline, readlines readall methods can lose data on EINTR

2013-02-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: it was easier to just take care of auditing the write calls as part of this given the code change was directly related to it. On Python 2.7 most of the write calls in the builtin file object (Objects/fileobject.c) rather than the new io module use the libc

[issue12268] file readline, readlines readall methods can lose data on EINTR

2013-02-01 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12268

[issue17102] tarfile extract can write files outside the destination path

2013-02-01 Thread Gregory P. Smith
New submission from Gregory P. Smith: Create a malicious .tar file with entries containing absolute or relative paths and the tarfile module happily uses them as is without sanity checking. filed in response to http://bugs.python.org/issue6972 which fixed the zipfile module for this. I'm

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: yes, tarfile appears to have the same problem. http://bugs.python.org/issue17102 filed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972

[issue17097] multiprocessing BaseManager serve_client() does not check EINTR on recv

2013-02-01 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- title: baseManager serve_client() not check EINTR when recv request - multiprocessing BaseManager serve_client() does not check EINTR on recv ___ Python tracker rep...@bugs.python.org http

[issue17102] tarfile extract can write files outside the destination path

2013-02-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: given issue 1044, this is not high priority. i still think it'd be useful. -- priority: high - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17102

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: I believe this is all done after Serhiy's fixes. -- assignee: gregory.p.smith - serhiy.storchaka status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972

[issue14340] Update embedded copy of expat - fix security crash issues

2013-02-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: done. btw, it looks like benjamin.peterson did it for 2.7 yesterday morning but when 'hg graft' is used to apply a change from another branch the roundup notification mentions the original commit's author, not the person who did the push of the graft

[issue7358] cStringIO not 64-bit safe

2013-02-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Suggested workaround: use io.BytesIO instead of cStringIO. comments on the patch... in short: your patch is changing an ABI and isn't suitable for a maintenance release. I'm not sure how much we can usefully do to cStringIO in a maintenance release. I'd

[issue7358] cStringIO not 64-bit safe

2013-02-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Include/cStringIO.h is public and the name of the structure PycStringIO lacks an _ which implies that it is public. There appear to be a few references to it in external projects doing some searching. A (very old) version of twisted/protocols/_c_urlarg.c

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2013-02-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Serhiy's patch looks good to me. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6083

[issue17121] SSH upload for distutils

2013-02-04 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: -gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: reopening as documentation mixups remain to be fixed. -- nosy: +benjamin.peterson, larry priority: high - release blocker resolution: fixed - stage: patch review - needs patch ___ Python tracker rep

[issue6972] zipfile.ZipFile overwrites files outside destination path

2013-02-07 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-02-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: this bug was likely introduced when i applied the telnetlib patches to use poll to not hit the select fd limit. doh. nice catch! -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http

[issue17221] Resort Misc/NEWS

2013-02-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: re-yank it. that was unintentional. less sections == better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17221

[issue17230] when forking, buffered output is not flushed first.

2013-02-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: os.fork() is a low level system call wrapper. Anyone using it needs to deal with flushing whatever buffers their application has before forking among many many other things. There is a reason it lives in the os module. It is already a dangerous system

[issue17192] libffi-3.0.12 import

2013-02-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: An update to libffi is needed for all maintained versions of Python. In 2.7, we're running into the stack being misaligned in 32-bit x86 code which is something a libffi update fixes. It is a simple patch: http://patchwork.ozlabs.org/patch/58128/ which

[issue17245] ctypes libffi needs to align the x86 stack to 16 bytes

2013-02-19 Thread Gregory P. Smith
New submission from Gregory P. Smith: The problem: without the stack being 16-byte aligned, code generated by modern compilers like recent gcc/g++ or clang assumed that the stack is 16 byte aligned and uses SSE instructions in some circumstances that require this. Without this fix, any

[issue17192] libffi-3.0.12 import

2013-02-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: http://bugs.python.org/issue17245 filed to track the stack alignment issue. The only reason i set this as release blocker is to let a release manager decide which of these two issues to proceed with for 2.7.4 and 3.2.4 (and 3.3.1

[issue17291] Login-data raising EOFError

2013-02-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah that looks like stdin was closed or was /dev/null. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17291

[issue17291] Login-data raising EOFError

2013-02-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: File /home/riley/pywikipedia/userinterfaces/terminal_interface_base.py, line 129, in input text = getpass.getpass('') you can't call getpass without stdin or a terminal and expect it to do anything. your problem is in the pywikipedia code, not Python's

[issue17301] An in-place version of many bytearray methods is needed

2013-02-26 Thread Gregory P. Smith
New submission from Gregory P. Smith: bytearray has many methods that return a *new* bytearray object rather than applying the transformation to modify the bytearray in place. Given that one use of bytearray's is to avoid making extra copies... There should be in-place variants

[issue17301] An in-place version of many bytearray methods is needed

2013-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Translate isn't a text operation. (That's the api I wanted). The others I only lists for completeness because someone else would complain if I hadn't. ;) On Mar 1, 2013 12:57 PM, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy added the comment

[issue10712] 2to3 fixer for deprecated unittest method names

2013-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yes! 2to3 features are allowed in stable releases. On Mar 2, 2013 5:17 AM, Ezio Melotti rep...@bugs.python.org wrote: Ezio Melotti added the comment: Can this still go on 2.7/3.2/3.3? -- ___ Python tracker

[issue16962] _posixsubprocess module uses outdated getdents system call

2013-03-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: looks sane and cleaner than the silly x32 hack in there, i'll take care of it. FYI - your patch forgot to add the unsigned char d_type; struct member before name. fixed and applied. When i wrote that code I was probably assuming that sticking

[issue17343] Add a version of str.split which returns an iterator

2013-03-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: The bytes (and bytearray?) version of this should generate memoryview's instead of new bytes objects to avoid a copy. While not required, It'd be useful if the implementation of this pre-scanned the data internally so that the length of the generated

[issue17343] Add a version of str.split which returns an iterator

2013-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Indeed, a bytearray version would require the talked about but not implemented due to complexity (in pep3118) support for locking a buffer from other mutations. best concentrate on bytes then. Do we have a memoryview equivalent for PyUnicode? If not, we

[issue17301] An in-place version of many bytearray methods is needed

2013-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: The important reasons for this are memory use and cache thrashing, not just CPU time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17301

[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

2013-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: The gain will be more noticeable the faster the Python implementation it is running under is. It is going to avoid logN relloc's in just about all implementations. That CPython is relatively slow is not a justification to avoid adding the feature. I like

[issue13229] Improve tools for iterating over filesystem directories

2013-03-06 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13229

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd like to take care of this at Python. At least for posix (someone else can deal with the windows side if they want). I just stumbled upon an extension module at work that someone wrote specifically because os.listdir consumed way too much ram

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: right he has a separate issue open tracking the walkdir stuff in issue13229. I saw it first before finding this issue which is exactly what I wanted. :) -- ___ Python tracker rep...@bugs.python.org http

[issue17343] Add a version of str.split which returns an iterator

2013-03-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: It'd perhaps have been better if things like memoryview were never exposed to the user at all as a distinct type and became an internal implementation detail behind PyBytes and PyUnicode objects (they could hold a reference to something else or collapse

[issue3329] API for setting the memory allocator used by Python

2013-03-10 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3329 ___ ___ Python-bugs-list

[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: If this is done, it should probably be on by default on all --with-pydebug buildbots. Otherwise I suspect nobody will _ever_ look at its output and we should just remove the feature all together. Being off in the main process on the build bots would still

[issue17405] Add _Py_memset_s() to securely clear memory

2013-03-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd personally say don't bother with this. Let people who _need_ this use their own C extension modules to handle all secure data as we're not in a position to make and test any guarantees about what happens to data anywhere within a Python VM

[issue3982] support .format for bytes

2013-03-16 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3982 ___ ___ Python-bugs-list

[issue17443] imaplib.IMAP4_stream subprocess is opened unbuffered but ignores short reads

2013-03-16 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: gregory.p.smith priority: normal severity: normal status: open title: imaplib.IMAP4_stream subprocess is opened unbuffered but ignores short reads ___ Python tracker rep...@bugs.python.org http

[issue17443] imaplib.IMAP4_stream subprocess is opened unbuffered but ignores short reads

2013-03-16 Thread Gregory P. Smith
New submission from Gregory P. Smith: imaplib.IMAP4_stream subprocess is opened unbuffered but ignores short reads when reading the message body. Depending on timing, message body size and kernel pipe buffer size and phase of the moon and whether you're debugging the thing or not... It can

<    3   4   5   6   7   8   9   10   11   12   >