Re: Windows service in production?

2011-08-18 Thread Adam Jorgensen
Yeah, we run our Python App as a service under Windows. You can look at the open-souce part of our product using http://trac.sjsoft.com/browser If you look into the code you should be able to find some stuff to do with services. Specficially, look in trunk/j5/src/j5/OS/WinService.py On 19 August

Re: Python Windows Extensions for Mac

2011-08-19 Thread Adam Jorgensen
You mean pywin32? They sure don't install on linux so that should give you a clue... On 19 August 2011 22:02, johnny.venter wrote: > > Hello, I am looking for the Python Windows Extensions to see if they can be > installed on a Mac.THanks. > > -- > http://mail.python.org/mailman/listinfo/pyth

Weird interaction with nested functions inside a decorator-producing function and closuring of outer data...

2011-08-24 Thread Adam Jorgensen
Hi all, I'm experiencing a weird issue with closuring of parameters and some nested functions I have inside two functions that return decorators. I think it's best illustrated with the actual code: # This decorator doesn't work. For some reason python refuses to closure the *decode_args parameter

Re: Weird interaction with nested functions inside a decorator-producing function and closuring of outer data...

2011-08-24 Thread Adam Jorgensen
Thanks :-) Sorry about the size, I wasn't sure what was relevant... On 24 August 2011 15:29, Peter Otten <__pete...@web.de> wrote: > Adam Jorgensen wrote: > >> Hi all, I'm experiencing a weird issue with closuring of parameters >> and some nested function

Re: Python IDE/Eclipse

2011-08-30 Thread Adam Jorgensen
I recommend PyCharm. Best Python IDE ever :-) If you can't afford to pay for it in the long run, then PyDev is the next best bet. I would recommend downloading the most minimal Eclipse you can get (Usually the Eclipse RCP Runtime) and install the necessary plugins as you go. This prevents you from

Re: Functions vs OOP

2011-09-04 Thread Adam Jorgensen
Progranming with functions vs Progranming with objects sounds like C vs. C++ more than functional programming vs. OO programming On 4 September 2011 04:18, William Gill wrote: > On 9/3/2011 9:51 PM, Terry Reedy wrote: > >> >> It is possible that our doc was less than crystal clear. We are >> con

Re: [Python-ideas] relaxing keyword usage restrictions

2011-09-08 Thread Adam Jorgensen
About the only keyword I can think of this being even slightly useful for would be class and even then I think that clazz is a pretty acceptable substitute. -- http://mail.python.org/mailman/listinfo/python-list

Re: What do you guys think about adding a method "to_json"

2011-09-11 Thread Adam Jorgensen
Perhaps an actual use-case would clarify the need for this? 2011/9/12 Chris Rebert > 2011/9/11 Juan Pablo Romero Méndez : > > Hello, > > > > What do you guys think about adding a method "to_json" to dictionaries > > and sequence types? Perhaps through a module import? > > Why? We already have js

Re: Killing threads (was Re: Cancel or timeout a long running regular expression)

2011-09-18 Thread Adam Jorgensen
The point of the Java thread.stop() being deprecated seems to have very little to do with undeclared exceptions being raised and a lot to do with objects being left in a potentially damaged state. As Ian said, it's a lot more complex than just adding try/catches. Killing a thread in the middle of