[Python-Dev] Re: thes mapping data type and thescfg cfg file module - review and suggestion request

2019-11-18 Thread Dave Cinege
ect for stblib is attribute aliasing, then it can be removed. Dave I'm not denying that Thesaurus[Cfg] looks useful. But, like Tal, I must stress that that's not enough to consider inclusion in the stdlib. On Mon, Nov 18, 2019 at 4:25 PM Dave Cinege <mailto:d...@cinege.com>> wrote:

[Python-Dev] Re: thes mapping data type and thescfg cfg file module - review and suggestion request

2019-11-18 Thread Dave Cinege
Tal, On 2019/11/18 10:59, Tal Einat wrote: These days, thanks to pip and PyPI, anyone can publish libraries and it is easy for developers to find and use them if they like. There is no longer a need to add things to the stdlib just to make them widely available. Fair enough, only that you

[Python-Dev] Re: thes mapping data type and thescfg cfg file module - review and suggestion request

2019-11-18 Thread Dave Cinege
of the development *of* Python itself, however, rather than development *with* Python, so it's not an appropriate place for such posts. I suggest you post this on python-list and/or python-announce, to get this in front of a wider audience. - Tal Einat On Mon, Nov 18, 2019 at 7:17 AM Dave

[Python-Dev] thes mapping data type and thescfg cfg file module - review and suggestion request

2019-11-17 Thread Dave Cinege
If you are not aware: - Thesaurus is a mapping data type with recursive keypath map and attribute aliasing. It is a subclass of dict() and is mostly compatible as a general use dictionary replacement. - ThesaurusExtended is a subclass of Thesaurus providing additional usability methods such

Re: [Python-Dev] New string method - splitquoted

2006-05-20 Thread Dave Cinege
On Thursday 18 May 2006 11:11, Guido van Rossum wrote: This is not an apropriate function to add as a string methods. There are too many conventions for quoting and too many details to get right. One method can't possibly handle them all without an enormous number of weird options. It's better

Re: [Python-Dev] New string method - splitquoted

2006-05-20 Thread Dave Cinege
On Thursday 18 May 2006 16:13, you wrote: Dave Cinege wrote: For example: s = ' Chan: 11 SNR: 22 ESSID: Spaced Out Wifi Enc: On' My complaint with this example is that you are just using the wrong tool to do this job. If I was going to do this, I would've immediately jumped

Re: [Python-Dev] New string method - splitquoted

2006-05-18 Thread Dave Cinege
On Thursday 18 May 2006 03:00, Heiko Wundram wrote: Am Donnerstag 18 Mai 2006 06:06 schrieb Dave Cinege: This is useful, but possibly better put into practice as a separate method?? I personally don't think it's particularily useful, at least not in the special case that your patch tries

Re: [Python-Dev] New string method - splitquoted

2006-05-18 Thread Dave Cinege
On Thursday 18 May 2006 04:21, Giovanni Bajo wrote: It's already there. It's called shlex.split(), and follows the semantic of a standard UNIX shell, including escaping and other things. Not quite. As I said in my other post, simple is the idea for this, just like the split method itself.

[Python-Dev] New string method - splitquoted

2006-05-17 Thread Dave Cinege
Very oftenmake that very very very very very very very very very often, I find myself processing text in python that when .split()'ing a line, I'd like to exclude the split for a 'quoted' item...quoted because it contains whitespace or the sep char. For example: s = ' Chan: 11 SNR: