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

2017-10-05 Thread Greg Couch
Greg Couch <gr...@cgl.ucsf.edu> 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: +gre

Re: spam issue

2017-03-06 Thread Greg Couch
On Thursday, March 2, 2017 at 8:08:44 AM UTC-8, Andrew Zyman wrote: > Why is this group have such an obscene number of spam posts ? > I'm subscribed to a few other google groups and this is the only one that has > this issue. If you do use google groups, please "Report abuse" for these messages.

[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 rep...@bugs.python.org http://bugs.python.org/issue734176

[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 hasattr(obj

[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 with it? In trying to get

Re: Tk MouseWheel Support

2011-03-15 Thread Greg Couch
On Mar 10, 1:37 pm, Corey Richardson kb1...@aim.com wrote: On 03/10/2011 03:35 PM, Corey Richardson wrote: Middle button is Button-3 IIRC, and I think it'd be MouseUp and MouseDown. I'm really not sure though. It's Button-2 rather. -- Corey Richardson Middle button is button-3 on Mac

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

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

Re: if, continuation and indentation

2010-06-07 Thread Greg Couch
On May 27, 5:22 am, HH henri...@gmail.com wrote: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. When I write an if statement with many conditions, I prefer to use a parenthesis around the whole

[issue6270] Menu deletecommand fails if command is already deleted

2009-06-11 Thread Greg Couch
New submission from Greg Couch gr...@cgl.ucsf.edu: 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

[issue6270] Menu deletecommand fails if command is already deleted

2009-06-11 Thread Greg Couch
Changes by Greg Couch gr...@cgl.ucsf.edu: Added file: http://bugs.python.org/file14266/delcmd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6270

[issue6270] Menu deletecommand fails if command is already deleted

2009-06-11 Thread Greg Couch
Changes by Greg Couch gr...@cgl.ucsf.edu: Removed file: http://bugs.python.org/file14265/delcmd.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6270

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

2009-05-11 Thread Greg Couch
Greg Couch gr...@cgl.ucsf.edu 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

[issue1229239] optionally allow mutable builtin types

2009-02-17 Thread Greg Couch
Greg Couch gr...@cgl.ucsf.edu 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/Python-2.5.2

[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 was typed in). The root cause of bug

[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 for production use

[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 get a backtrace

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

2007-11-29 Thread Greg Couch
Greg Couch added the comment: That's a disappointment. ffi_common.h 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

[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

[issue1506] func alloca inside ctypes lib needs #include alloca.h 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 also

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

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

[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 ffi_common.h in callproc.c to conditionally

Re: webbrowser.open still gives problem with file://

2007-11-14 Thread Greg Couch
. The other thing you need to do is to use Python 2.5's version of webbrowser.py instead of the earlier ones. It's easy to backport and works *much* better. Greg Couch UCSF Computer Graphics Lab -- http://mail.python.org/mailman/listinfo/python-list

Re: Python molecular viewer

2007-08-29 Thread Greg Couch
though. Greg Couch UCSF Computer Graphics Lab -- http://mail.python.org/mailman/listinfo/python-list