Re: how to find out, whether a path is socket or device

2010-08-30 Thread News123
On 08/30/2010 02:09 AM, Steven D'Aprano wrote:
 On Mon, 30 Aug 2010 01:46:16 +0200, News123 wrote:
 
 Hi,

 Under Linux I'd like to find out, whether I got a file, a character
 device or a socket as a parameter.
 
 See the stat module.
 

Thks a lot.

I was looking in os.path and forgot about stat (it obviously was too
late :-( )

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how to find out, whether a path is socket or device

2010-08-29 Thread Steven D'Aprano
On Mon, 30 Aug 2010 01:46:16 +0200, News123 wrote:

 Hi,
 
 Under Linux I'd like to find out, whether I got a file, a character
 device or a socket as a parameter.

See the stat module.



-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list