[issue5538] tearDown in unittest should be executed regardless of result in setUp

2009-03-22 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: That patch wasn't complete -_-... here's a more complete 2.4.x patch. -- Added file: http://bugs.python.org/file13398/issue-5538-2.4.5.diff ___ Python tracker rep...@bugs.python.org http

[issue5538] tearDown in unittest should be executed regardless of result in setUp

2009-03-22 Thread Garrett Cooper
Changes by Garrett Cooper yaneg...@gmail.com: Removed file: http://bugs.python.org/file13397/issue-blah-2.4.5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5538

[issue5538] tearDown in unittest should be executed regardless of result in setUp

2009-03-22 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: If someone will provide a link to a page with instructions on how to checkout python from cvs / svn / etc I'll gladly apply a patch to the sources on 2.x and 3.x HEAD. Thanks, -Garrett

[issue1700507] Carbon.Scrap.PutScrapFlavor

2009-03-14 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: I'm confirming this issue on Intel / Leopard with python 2.5 (system python), 2.5 (macports) and 2.6 (macports). PPC / Tiger with python 2.3 (system python), 2.5 (macports) and 2.6 (macports) just errors out with: MacOS.Error: (-4960

[issue1700507] Carbon.Scrap.PutScrapFlavor

2009-03-14 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: The failure testcase that dingus9 provided is: import Carbon.Scrap as Scrap scrap = Scrap.GetCurrentScrap() scrap.GetScrapFlavorData('TEXT') -- ___ Python tracker rep...@bugs.python.org http

[issue1700507] Carbon.Scrap.PutScrapFlavor

2009-03-14 Thread Garrett Cooper
Changes by Garrett Cooper yaneg...@gmail.com: -- versions: +Python 2.4, Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1700507

[issue1700507] Carbon.Scrap.PutScrapFlavor

2009-03-14 Thread Garrett Cooper
Changes by Garrett Cooper yaneg...@gmail.com: -- versions: -Python 2.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1700507 ___ ___ Python-bugs

Cross-compiling error when compiling 2.6.1...

2009-02-24 Thread Garrett Cooper
I come across the following error: checking for chflags... configure: error: cannot run test program while cross compiling See `config.log' for more details. make-3.81[1]: *** [/nobackup/garrcoop/python_upgrade/contrib/python/obj-mips32/Makefile] Error 1 make-3.81[1]: Leaving directory

Re: Cross-compiling error when compiling 2.6.1...

2009-02-24 Thread Garrett Cooper
On Tue, Feb 24, 2009 at 12:55 PM, Garrett Cooper yaneg...@gmail.com wrote: I come across the following error: checking for chflags... configure: error: cannot run test program while cross compiling See `config.log' for more details. make-3.81[1]: *** [/nobackup/garrcoop/python_upgrade

[issue1006238] cross compile patch

2009-02-24 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: I can definitely chime in on this issue. A (proper) testcase would be to do something like the following: # Example item -- this isn't what you'll be using... CROSS_COMPILE_PREFIX=binos_c3.4.3-p1.mips64-octeon-linux- AS=${CROSS_COMPILE

[issue1006238] cross compile patch

2009-02-24 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: Am I correct in this understanding, or is Pgen unneeded after the grammar file is generated? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1006238

Re: Problem trying to install ReportLab with easy_install

2009-02-22 Thread Garrett Cooper
On Sat, Feb 21, 2009 at 10:06 PM, Sebastian Bassi sba...@clubdelarazon.org wrote: I don't understand what is wrong when I try to install ReportLab. This is under Ubuntu and all build packages are installed. Here is what I get when trying to install it: (I could install it with apt-get, but I

Creating custom formatter function

2009-02-16 Thread Garrett Cooper
Hello Python folks, I have a function where I'd like to prefix a format string via a `prefix' string. The definition of the base method is as follows: #START CODE def print_message(prefix, out_stream, fmt, *args, **kwargs): Print out [prefix]: [message] message = fmt if 0

Re: logging and daemons

2009-02-16 Thread Garrett Cooper
On Mon, Feb 16, 2009 at 5:02 AM, Fernando M. Maresca fmare...@gmail.com wrote: Hello. I'm in the process of replacing a custom logger class in one of my apps that has several daemons. In the last step of daemonizing a program, after closing fds, stderr and stdout are redirected to the

Re: logging and daemons

2009-02-16 Thread Garrett Cooper
On Mon, Feb 16, 2009 at 5:15 AM, Fernando M. Maresca fmare...@gmail.com wrote: Hello, thanks for the answer. On Mon, Feb 16, 2009 at 05:07:45AM -0800, Garrett Cooper wrote: You can actually set sys.std[err|out] to your ?file? descriptor of choice in python (it has to have read, write

<    1   2