Re: getting object instead of string from dir()

2008-12-17 Thread André
On Dec 17, 3:52 pm, Rominsky wrote: > > I do have some understanding of the pythonic methodology of > programming, though by far I still don't consider myself an expert. > The problem at hand is that I am coming from a matlab world and trying > to drag my coworkers with me.  I have gotten a lot o

Re: getting object instead of string from dir()

2008-12-17 Thread Steve Holden
Steven D'Aprano wrote: > On Wed, 17 Dec 2008 11:52:17 -0800, Rominsky wrote: > >> I do have some understanding of the pythonic methodology of programming, >> though by far I still don't consider myself an expert. The problem at >> hand is that I am coming from a matlab world and trying to drag my

Re: getting object instead of string from dir()

2008-12-17 Thread rdmurray
Quoth Rominsky : > vars seems to give an identical response as locals and globals, at > least in my test name space. All three are new commands for me. I Without arguments vars() returns the same thing as locals(). > like the idea of adopting either vars or locals instead of dir as it > sets up

Re: getting object instead of string from dir()

2008-12-17 Thread Steven D'Aprano
On Wed, 17 Dec 2008 11:52:17 -0800, Rominsky wrote: > I do have some understanding of the pythonic methodology of programming, > though by far I still don't consider myself an expert. The problem at > hand is that I am coming from a matlab world and trying to drag my > coworkers with me. I have g

Re: getting object instead of string from dir()

2008-12-17 Thread Rominsky
On Dec 17, 1:21 pm, Jean-Paul Calderone wrote: > On Wed, 17 Dec 2008 11:52:17 -0800 (PST), Rominsky > wrote: > >On Dec 17, 10:59 am, Christian Heimes wrote: > >> Rominsky schrieb: > > >> > I am trying to use dir to generate a list of methods, variables, etc. > >> > I would like to be able to go

Re: getting object instead of string from dir()

2008-12-17 Thread Kurt Smith
On Wed, Dec 17, 2008 at 1:52 PM, Rominsky wrote: > On Dec 17, 10:59 am, Christian Heimes wrote: > > Rominsky schrieb: > > > > > I am trying to use dir to generate a list of methods, variables, etc. > > > I would like to be able to go through the list and seperate the > > > objects by type using

Re: getting object instead of string from dir()

2008-12-17 Thread Jean-Paul Calderone
On Wed, 17 Dec 2008 11:52:17 -0800 (PST), Rominsky wrote: On Dec 17, 10:59 am, Christian Heimes wrote: Rominsky schrieb: > I am trying to use dir to generate a list of methods, variables, etc. > I would like to be able to go through the list and seperate the > objects by type using the type(

Re: getting object instead of string from dir()

2008-12-17 Thread Rominsky
On Dec 17, 10:59 am, Christian Heimes wrote: > Rominsky schrieb: > > > I am trying to use dir to generate a list of methods, variables, etc. > > I would like to be able to go through the list and seperate the > > objects by type using the type() command, but the dir command returns > > a list of s

Re: getting object instead of string from dir()

2008-12-17 Thread Christian Heimes
Rominsky schrieb: > I am trying to use dir to generate a list of methods, variables, etc. > I would like to be able to go through the list and seperate the > objects by type using the type() command, but the dir command returns > a list of strings. When I ask for the type of an element, the answer

Re: getting object instead of string from dir()

2008-12-17 Thread david wright
--- On Wed, 12/17/08, Rominsky wrote: From: Rominsky Subject: getting object instead of string from dir() To: python-list@python.org Date: Wednesday, December 17, 2008, 12:16 PM I am trying to use dir to generate a list of methods, variables, etc. I would like to be able to go through the

Re: getting object instead of string from dir()

2008-12-17 Thread Andrew Nelis
On Dec 17, 5:16 pm, Rominsky wrote: > I am trying to use dir to generate a list of methods, variables, etc. > I would like to be able to go through the list and seperate the > objects by type using the type() command, but the dir command returns > a list of strings.  When I ask for the type of an

getting object instead of string from dir()

2008-12-17 Thread Rominsky
I am trying to use dir to generate a list of methods, variables, etc. I would like to be able to go through the list and seperate the objects by type using the type() command, but the dir command returns a list of strings. When I ask for the type of an element, the answer is always string. How do