[issue32807] Add 'str' property to PathLib

2018-02-09 Thread Arka

Arka  added the comment:

@Serhiy

No, I wasn't aware of that.

@R. David Murray

Thank you, David. What you said, makes sense and I agree with you.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32807] Add 'str' property to PathLib

2018-02-09 Thread R. David Murray

R. David Murray  added the comment:

That was kind of an abrupt message, let me be more verbose: thank you for 
wanting to improve python, but as Serhiy pointed out we already solved the 
problem you are considering via PEP 519.  In addition to that we consider 
str(x) to be the right way to get the string representation of something.  
Adding an attribute containing the string value is not how python operates in 
general, so we wouldn't make an exception for this class (and note that this 
possibility was discussed in the lead up to PEP 519 and rejected).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32807] Add 'str' property to PathLib

2018-02-09 Thread R. David Murray

R. David Murray  added the comment:

This would not be a pythonic API.

--
nosy: +r.david.murray
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32807] Add 'str' property to PathLib

2018-02-09 Thread Arka

Arka  added the comment:

@matrixise

Because the bots were saying, 'skip news', 'skip issue' labels are not found.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32807] Add 'str' property to PathLib

2018-02-09 Thread Arka

Change by Arka :


--
keywords: +patch
pull_requests: +5411
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32807] Add 'str' property to PathLib

2018-02-09 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Are you aware of PEP 519?

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32807] Add 'str' property to PathLib

2018-02-09 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

and currently for the feature, the PR should be based on master and not 3.5 or 
3.6. because these branch are only for the security and bugfix modes.

Read the devguide at this url: 
https://devguide.python.org/#status-of-python-branches

--
versions: +Python 3.8 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32807] Add 'str' property to PathLib

2018-02-09 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I have seen your PR, why did you close it?

--
nosy: +matrixise

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32807] Add 'str' property to PathLib

2018-02-09 Thread Arka

New submission from Arka :

Add 'str' property to PurePath in PathLib that calls __str__ function and 
returns the string representation of the path. It is easier to use than 
str(Path). Many existing methods accept only strings as a path.

--
components: +Library (Lib)
title: Add -> Add 'str' property to PathLib
versions: +Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com