[issue29095] Compiling Python 3.6 from source on MacOS X Sierra

2017-10-05 Thread Greg Couch
Greg Couch added the comment: The problem with compiling OpenSSL from source is that it doesn't know how to access the root certificates needed for verification on Mac OS X. See issue17128 for more details. -- nosy: +gregcouch ___ Python tr

[issue734176] Make Tkinter.py's nametowidget work with cloned menu widgets

2013-05-19 Thread Greg Couch
Greg Couch added the comment: We still apply that patch to the Python that we embed in our application and have for the last 10 years :-) -- ___ Python tracker <http://bugs.python.org/issue734

[issue16851] Hint about correct ismethod and isfunction usage

2013-02-11 Thread Greg Couch
Greg Couch added the comment: In my opinion, the Python 2.7 results are wrong. In Python 2.7, inspect.ismethod returns True for both bound and unbound methods -- ie., is broken according to the documentation. As a workaround, I'm using: def is_bound_method(obj): return hasatt

[issue1516] make _ctypes work with non-gcc compilers

2012-10-18 Thread Greg Couch
Greg Couch added the comment: On Thu, 18 Oct 2012, Trent Nelson wrote: > Trent Nelson added the comment: > > Hi Greg, > >I realize it's been a good five years since you first raised this >issue, but I was wondering if you ever ended up making any progress >

[issue1759845] subprocess.call fails with unicode strings in command line

2010-08-04 Thread Greg Couch
Greg Couch added the comment: So Terry, can you reopen this bug then? It's not out of date. -- ___ Python tracker <http://bugs.python.org/issue1759845> ___ ___

[issue6270] Menu deletecommand fails if command is already deleted

2009-06-11 Thread Greg Couch
Changes by Greg Couch : Removed file: http://bugs.python.org/file14265/delcmd.patch ___ Python tracker <http://bugs.python.org/issue6270> ___ ___ Python-bugs-list mailin

[issue6270] Menu deletecommand fails if command is already deleted

2009-06-11 Thread Greg Couch
Changes by Greg Couch : Added file: http://bugs.python.org/file14266/delcmd.patch ___ Python tracker <http://bugs.python.org/issue6270> ___ ___ Python-bugs-list mailin

[issue6270] Menu deletecommand fails if command is already deleted

2009-06-11 Thread Greg Couch
New submission from Greg Couch : Sometime around Python 2.5.4, Menu.delete was changed to delete associated entry commands (and thus plug a memory leak). This broke Pmw.OptionMenu because it already had similar code, so when Menu.delete was called, the commands were already gone, and a TclError

[issue1759845] subprocess.call fails with unicode strings in command line

2009-05-11 Thread Greg Couch
Greg Couch added the comment: I like the C patch better. It only tries to decode non-unicode objects with the filesystem (mbcs) encoding. This fits in with Python 3.0 perfectly where all strings are unicode. In 2.5, strings are assumed to be in the mbcs encoding, to match the Windows ANSI

[issue1229239] optionally allow mutable builtin types

2009-02-17 Thread Greg Couch
Greg Couch added the comment: FYI, I was able to work around this and use an unmodified Python by subtyping type and overriding the setattr method as shown below. It's a lot messier than patching Python. static int Mutable_SetAttr(PyObject *obj, PyObject *name, PyObject *

[issue1759845] subprocess.call fails with unicode strings in command line

2008-10-01 Thread Greg Couch
Greg Couch <[EMAIL PROTECTED]> added the comment: We're having the same problem. My quick fix was to patch subprocess.py so the command line and executable are converted to the filesystem encoding (mbcs). -- nosy: +gregcouch Added file: http://bugs.python.org/file11674/P

[issue2693] IDLE doesn't work with Tk 8.5

2008-04-29 Thread Greg Couch
Greg Couch <[EMAIL PROTECTED]> added the comment: Starting over: The goal of this patch is to get Tk 8.5 to work with Python 2.5's Idle. It currently fails with a ValueError, "invalid literal for int() with base 10: '(72,'" (the 72 changes depending on what wa

[issue2693] IDLE doesn't work with Tk 8.5

2008-04-26 Thread Greg Couch
Greg Couch <[EMAIL PROTECTED]> added the comment: I wish I could be as cavalier about Tk 8.5. The last version of Tk 8.4 just came out and it really shows its age, especially on Mac OS X, and those are ~25% of our application's downloads. Since Python 2.6a2 is "not suitable fo

[issue2693] IDLE doesn't work with Tk 8.5

2008-04-25 Thread Greg Couch
New submission from Greg Couch <[EMAIL PROTECTED]>: IDLE and Tk 8.5 don't well work together for both Python 2.5 and 2.6a (SVN version). The reasons are related but different. In Python 2.5, you can't select any text in the IDLE window and whenever a calltip is to appear, you

[issue1516] make _ctypes work with non-gcc compilers

2007-11-29 Thread Greg Couch
Greg Couch added the comment: The modications work on Tru64 and IRIX. cc has understood .s suffixes for a long time. You use cc instead of as because it knows how to run the C preprocessor (often /lib/cpp, but not on all systems). Looking at the Solaris cc manual page (via google), I see that

[issue1506] func alloca inside ctypes lib needs #include on solaris

2007-11-29 Thread Greg Couch
Greg Couch added the comment: That's a disappointment. has the right logic in it already. Perhaps it should be copied to callproc.c. I'm less concerned about alloca not being there at all because it seems to be a pervasive extension in non-gcc compilers, but using malloc is fine to

[issue1516] make _ctypes work with non-gcc compilers

2007-11-28 Thread Greg Couch
New submission from Greg Couch: To get _ctypes to sucessfully compile with native UNIX compilers (i.e., not gcc), several modifications need to be made: (1) use the equivalent of the Py_GCC_ATTRIBUTE macro for __attribute__ (in ffi.h), (2) include in callproc.c to conditionally include , and

[issue1506] func alloca inside ctypes lib needs #include on solaris

2007-11-28 Thread Greg Couch
Greg Couch added the comment: Turns out callproc.c forgot to include after which conditionally includes alloca.h. So it's a one-line fix. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python

[issue1506] func alloca inside ctypes lib needs #include on solaris

2007-11-28 Thread Greg Couch
Greg Couch added the comment: A better solution would be to use the HAVE_ALLOCA and HAVE_ALLOCA_H defines that fficonfig.h provides to decide whether or not to include alloca.h. And in callproc.c whether or not to provide a workaround using malloc (I'm assuming non-gcc sparc compilers