Re: Change user on UNIX

2008-03-20 Thread Preston Landers
On Mar 20, 9:46 am, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > In the unix world, this is highly discouraged. You shouldn't have to > change your user. The only user who can change roles---and who should > change roles for security reasons---is root. IMHO this statement is a bit too broad. Th

Re: Strange behavior of the Eclipse embedded console

2008-03-20 Thread Preston Landers
On Mar 20, 9:09 am, hellt <[EMAIL PROTECTED]> wrote: > "The eclipse console is not an exact copy of a shell... one of the > changes is that when you press in a shell, it may give you a > \r, \n or \r\n as an end-line char, depending on your platform. Python > does not expect this -- from the docs

Re: Improving datetime

2008-03-19 Thread Preston Landers
On Mar 19, 9:12 am, "Nicholas F. Fabry" <[EMAIL PROTECTED]> wrote: > So - where should I propose these changes?  Here?  python-dev?  Should   > I write up a full PEP or should I just give a more informal outline   > with code samples?   My guess is that the python-dev folks would send you here or

Re: clocking subprocesses

2008-03-03 Thread Preston Landers
On Mar 3, 11:57 am, [EMAIL PROTECTED] wrote: > So, long story short, I need to get CPU time of something I call using > subprocess.call().   Run your command through the "time" program. You can parse the output format of "time", or set a custom output format. This mostly applies to Unix-like sy

Re: at-exit-thread

2008-02-29 Thread Preston Landers
On Feb 29, 2:12 pm, [EMAIL PROTECTED] wrote: > If a thread adds an object it creates to a nonlocal > collection, such as a class-static set, does it have to maintain a > list of all such objects, just to get the right ones destroyed on > completion?   Yes. > Processes destroy their garbage hassle

Re: is there enough information?

2008-02-26 Thread Preston Landers
On Feb 26, 11:13 am, [EMAIL PROTECTED] wrote: > All I asked for was, ideas. Nope, you didn't. You said exactly this: "Specify {...} Is it enough?" and included a snipped of code that was not standalone, provided no context or explanatory information, and gave us no clue what you might be trying

Re: is there enough information?

2008-02-26 Thread Preston Landers
On Feb 26, 1:45 am, [EMAIL PROTECTED] wrote: > Two options occurred to me, which the first showed up in the earlier > extremely skeletal and cryptic post: Perhaps you would be more likely to get the kind of help you seem to want if you refrained from posting "cryptic and skeletal" messages. The f

Re: Pydev, Eclipse

2008-02-22 Thread Preston Landers
Boris Ozegovic([EMAIL PROTECTED])@2008.02.22 19:59:28 +0100: > Hi > > Suppose I have three blocks: > if 1: > if 2: > if 3: > # here I want my cursor go back to second block (if 2:) > > What is the standard shortcut for this? ctrl+arrow keys aren't, arrow keys > alone

Re: Is there a open souce IDE writen by C( C++) or partly writen by C( C++)?

2008-02-22 Thread Preston Landers
On Feb 21, 8:58 pm, zaley <[EMAIL PROTECTED]> wrote: > Is there a open souce IDE writen by C( C++) or partly writen by C( C+ > +)? Eclipse is a good open source IDE for many languages including C/C++ and Python. It includes an interactive debugger. I believe most of it is written in Java, but I'

Re: Web Development Project

2008-02-21 Thread Preston Landers
john_sm3853([EMAIL PROTECTED])@2008.02.21 15:34:44 -0800: > > Hey guys, I am interested in knowing, what new Web Development projects you > are doing, curious to know, what data base you use, and if you are using > Linux or Windows platform. IMHO the best platform right now is: Apache 2 on Li

Re: The big shots

2008-02-20 Thread Preston Landers
On Feb 19, 7:19 pm, [EMAIL PROTECTED] wrote: > If not, how about these: > > - It doesn't match the rest of the language > - It's too cutting edge > - It is too hard to handle > - It would get out of hand really quickly > - I can't control you anymore after I let it in > - The functionality already

Re: What's "the standard" for code docs?

2008-02-20 Thread Preston Landers
On Feb 20, 2:32 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > I use epydoc for pyparsing, and I really like the results. Just make > sure that importing your modules doesn't really do anything > substantial (like connect to db's, or run unit tests that run for > hours); epydoc imports your code a

Re: how to finish a while loop...

2008-02-19 Thread Preston Landers
On Feb 19, 7:35 pm, icarus <[EMAIL PROTECTED]> wrote: > > But when I paste it into eclipse and run it > > eclipse's console, it doesn't work because answer seems to have a > > stray '\r' carriage return (CR) and therefore the comparison to 'no' > > fails. > > I get no 'compile' errors th

Re: how to finish a while loop...

2008-02-19 Thread Preston Landers
On Feb 19, 7:12 pm, richie <[EMAIL PROTECTED]> wrote: > On Feb 20, 9:00 am, icarus <[EMAIL PROTECTED]> wrote: > > > > > Hi all, i'm new to python. Learning on my own how to ask a user to > > finish a loop or not. > > For some reason, it behaves as infinite loop although I changed its > > condition

Re: What's "the standard" for code docs?

2008-02-19 Thread Preston Landers
On Feb 19, 4:31 pm, [EMAIL PROTECTED] wrote: > bash-2.04$ man precious I understand now that you were referring to unix manual pages, but I'm afraid I still don't understand what your original reply (man serious) has to do with anything in particular. But after reading some of your other recent

Re: What's "the standard" for code docs?

2008-02-19 Thread Preston Landers
On Feb 19, 4:16 pm, [EMAIL PROTECTED] wrote: > On Feb 19, 4:12 pm, Preston Landers <[EMAIL PROTECTED]> wrote: > > > On Feb 16, 1:56 am, John Nagle <[EMAIL PROTECTED]> wrote: > > > > Preston Landers wrote: > > > > Hey guys and gals. What are all th

Re: What's "the standard" for code docs?

2008-02-19 Thread Preston Landers
On Feb 16, 1:56 am, John Nagle <[EMAIL PROTECTED]> wrote: > Preston Landers wrote: > > Hey guys and gals. What are all the cool kids using these days to > > document their code? > >HTML. Text-only docs are so last-cen. My sarcasometer is broken today... are yo

What's "the standard" for code docs?

2008-02-15 Thread Preston Landers
Hey guys and gals. What are all the cool kids using these days to document their code? My goal is to create in-line documentation of each package/module/class/method and create some semi-nice looking (or at least usable) packaged documentation from it, in HTML and/or PDF format. I've been using

Re: Floating point bug?

2008-02-13 Thread Preston Landers
[EMAIL PROTECTED]([EMAIL PROTECTED])@2008.02.13 15:13:20 -0800: > Not a bug. All languages implementing floating point numbers have the > same issue. Some just decide to hide it from you. Please read > http://docs.python.org/tut/node16.html and particularly > http://docs.python.org/tut/node16.html#

Re: Best way to protect my new commercial software.

2007-12-18 Thread Preston Landers
Jan Claeys([EMAIL PROTECTED])@2007.12.18 12:06:08 +: > Op Fri, 14 Dec 2007 16:54:35 +, schreef Grant Edwards: > > > Uh what? I don't know what country you're in, but in the US, it doesn't > > take any time at all to copyright something. The mere act of writing > > something copyrights it