[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: I see this in Python 2.7. No idea if this is a regression, mere future request, but doesn't it make sense to print the value `__path__` in the repr string? import paste paste module 'paste' (built-in) paste.__path__ ['/home

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: You are mistaken. It doesn't include __path__ into repr, but __file__. It prints (built-in) if the filename is not set for some reason. -- nosy: +loewis resolution: - invalid status: open - pending

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: On 2010-05-24, at 2:44 PM, Martin v. Löwis wrote: You are mistaken. It doesn't include __path__ into repr, but __file__. It prints (built-in) if the filename is not set for some reason. Ok. Why is __file__ not set for

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you please provide a reproducible bug report? I have no idea what paste is or how it got into your .local folder. Please structure the bug report as follows: 1. this is what you did 2. this is what happened 3. this is what you expected

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: On 2010-05-24, at 3:46 PM, Martin v. Löwis wrote: Can you please provide a reproducible bug report? I have no idea what paste is or how it got into your .local folder. Please structure the bug report as follows: 1. this is

[issue8812] Show package path in repr string for packages installed to user site

2010-05-24 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8812 ___ ___

Re: repr(string)

2008-07-25 Thread David C. Ullrich
In article [EMAIL PROTECTED], MRAB [EMAIL PROTECTED] wrote: On Jul 23, 4:04 pm, David C. Ullrich [EMAIL PROTECTED] wrote: I've been saving data in a file with one line per field. Now some of the fields may become multi-line strings... I was about to start escaping and unescaping

Re: repr(string)

2008-07-24 Thread David C. Ullrich
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: David C. Ullrich wrote: I've been saving data in a file with one line per field. Now some of the fields may become multi-line strings... I was about to start escaping and unescaping linefeeds by hand, when I

Re: repr(string)

2008-07-24 Thread Peter Otten
David C. Ullrich wrote: In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: David C. Ullrich wrote: I've been saving data in a file with one line per field. Now some of the fields may become multi-line strings... I was about to start escaping and unescaping

Re: repr(string)

2008-07-24 Thread Peter Otten
Peter Otten wrote: You could also use a csv file with a single row. Err, I meant column, but a row would also work. Your choice. Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: repr(string)

2008-07-24 Thread Fredrik Lundh
David C. Ullrich skrev: just keep in mind that using eval() on untrusted data isn't a very good idea. Right. This data comes from me, gets put into a file and then read by me. Someone _could_ corrupt that file, but someone who could do that could more easily just throw the machine out the

Re: repr(string)

2008-07-24 Thread David C. Ullrich
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: David C. Ullrich skrev: just keep in mind that using eval() on untrusted data isn't a very good idea. Right. This data comes from me, gets put into a file and then read by me. Someone _could_ corrupt that file,

Re: repr(string)

2008-07-24 Thread David C. Ullrich
In article [EMAIL PROTECTED], Peter Otten [EMAIL PROTECTED] wrote: David C. Ullrich wrote: In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: David C. Ullrich wrote: I've been saving data in a file with one line per field. Now some of the fields may become

Re: repr(string)

2008-07-24 Thread MRAB
On Jul 23, 4:04 pm, David C. Ullrich [EMAIL PROTECTED] wrote: I've been saving data in a file with one line per field. Now some of the fields may become multi-line strings... I was about to start escaping and unescaping linefeeds by hand, when I realized that repr() and eval() should do.

repr(string)

2008-07-23 Thread David C. Ullrich
I've been saving data in a file with one line per field. Now some of the fields may become multi-line strings... I was about to start escaping and unescaping linefeeds by hand, when I realized that repr() and eval() should do. Hence the question: If s is a string, is repr(s) guaranteed not to

Re: repr(string)

2008-07-23 Thread Guilherme Polo
On Wed, Jul 23, 2008 at 12:04 PM, David C. Ullrich [EMAIL PROTECTED] wrote: I've been saving data in a file with one line per field. Now some of the fields may become multi-line strings... I was about to start escaping and unescaping linefeeds by hand, when I realized that repr() and eval()

Re: repr(string)

2008-07-23 Thread Fredrik Lundh
David C. Ullrich wrote: I've been saving data in a file with one line per field. Now some of the fields may become multi-line strings... I was about to start escaping and unescaping linefeeds by hand, when I realized that repr() and eval() should do. Hence the question: If s is a string, is