Re: set breakpoint in another module/file

2009-09-22 Thread millerdev
> I think winpdb ( nothing todo with windows-OS ) can do that and much more. The problem with winpdb (which I played with a long time ago) is that it's much heavier than the built-in pdb--it's a GUI debugger. It requires the beast called wx, which I do not use for web (or GUI) development. I'm do

Re: set breakpoint in another module/file

2009-09-22 Thread Stef Mientki
Daniel wrote: Is there a way with pdb to set a breakpoint in another module directly using a command similar to set_trace() ? For example, I'd like to do something like this in my source code: import pdb pdb.setbreak(42, "/path/to/universe.py", "name == 'hitchhiker'") I think winpdb ( nothi

set breakpoint in another module/file

2009-09-22 Thread Daniel
Is there a way with pdb to set a breakpoint in another module directly using a command similar to set_trace() ? For example, I'd like to do something like this in my source code: import pdb pdb.setbreak(42, "/path/to/universe.py", "name == 'hitchhiker'") Is there a way to do (something like) that

Re: module file

2007-01-13 Thread Gabriel Genellina
"Rob Wolfe" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Imbaud Pierre <[EMAIL PROTECTED]> writes: > >> I am willing to retrieve the file an imported module came from; >> module.__file__, or inspect.getfile(module) only gives me the >> relative file name. How do I determine

closed: module file

2007-01-13 Thread Imbaud Pierre
Imbaud Pierre a écrit : > I am willing to retrieve the file an imported module came from; > module.__file__, or inspect.getfile(module) only gives me the > relative file name. How do I determine the path? > Its obviously possible from python: ipython displays the information > (interactively: *modu

module file

2007-01-13 Thread Imbaud Pierre
I am willing to retrieve the file an imported module came from module.__file__, or inspect.getfile(module) only gives me the relative file name. How do I determine the path? Its obviously possible from python: ipython displays the information (interactively: *module?*). NB: I saw the discussion abo

Re: module file

2007-01-12 Thread Rob Wolfe
Imbaud Pierre <[EMAIL PROTECTED]> writes: > I am willing to retrieve the file an imported module came from; > module.__file__, or inspect.getfile(module) only gives me the > relative file name. How do I determine the path? >>> import os >>> os.path.abspath(module.__file__) -- HTH, Rob -- http:

module file

2007-01-12 Thread Imbaud Pierre
I am willing to retrieve the file an imported module came from; module.__file__, or inspect.getfile(module) only gives me the relative file name. How do I determine the path? Its obviously possible from python: ipython displays the information (interactively: *module?*). Python 2.4 on Suse 9.3 (clu

Re: How to delete a module file

2005-03-03 Thread Thomas Heller
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > On Thu, 03 Mar 2005 12:29:58 +0100, Olivier Ravard > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > >> >> So, what is the solution ? >> >> > As the old joke concludes... "... stop doing that". > > I don't think Wi

Re: How to delete a module file

2005-03-03 Thread Olivier Ravard
Le lundi 28 fÃvrier 2005 Ã 17:08 +, Dennis Lee Bieber a Ãcrit : > On Mon, 28 Feb 2005 16:43:45 +0100, Olivier Ravard > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > > > > > Remark : This problem does not exist under Linux. > > > I think Linux just masks the situat

How to delete a module file

2005-02-28 Thread Olivier Ravard
Hi everybody, My application enables the developpment of new C++ modules that are dynamically loaded in this application. My problem is that (under Windows) I can't delete a module that have been already imported. I must exiting the application (which is not a good idea for a developpment en

Re: module file length limitations on windows?

2004-12-16 Thread Lonnie Princehouse
No non-printing characters. However, I just tried copying the file (from a windows cmd prompt), and the copy was cut off at the same point the interpreter is getting to. When I edit the file with vim, though, the whole thing comes through. I think this is a pretty strong indication that this monke

Re: module file length limitations on windows?

2004-12-16 Thread Steve Holden
Lonnie Princehouse wrote: I've run into some eccentric behavior... It appears that one of my modules is being cut off at exactly 2^14 characters when I try to import it. Has anyone else encountered this? I can't find any mention of such a bug, and stranger yet, other modules that exceed 16384 ch

module file length limitations on windows?

2004-12-16 Thread Lonnie Princehouse
I've run into some eccentric behavior... It appears that one of my modules is being cut off at exactly 2^14 characters when I try to import it. Has anyone else encountered this? I can't find any mention of such a bug, and stranger yet, other modules that exceed 16384 characters seem to work just