Re: What's the neatest way of getting dictionary entries in a specified order?

2017-03-08 Thread gvmcmt
On Thursday, March 9, 2017 at 1:03:31 AM UTC+5:30, Chris Green wrote: > I have a fairly simple application that populates a GUI window with > fields from a database table. The fields are defined/configured by a > dictionary as follows:- > > # > # > # Address Book field details, dict

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread gvmcmt
On Monday, March 6, 2017 at 2:37:11 PM UTC+5:30, Jussi Piitulainen wrote: > gvm...@gmail.com writes: > > > On Sunday, March 5, 2017 at 11:25:04 PM UTC+5:30, Steve D'Aprano wrote: > >> I'm trying to convert strings to Title Case, but getting ugly results > >> if the words contain an apostrophe: > >

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread gvmcmt
On Sunday, March 5, 2017 at 11:25:04 PM UTC+5:30, Steve D'Aprano wrote: > I'm trying to convert strings to Title Case, but getting ugly results if the > words contain an apostrophe: > > > py> 'hello world'.title() # okay > 'Hello World' > py> "i can't be having with this".title() # not okay > "

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread gvmcmt
On Sunday, March 5, 2017 at 11:25:04 PM UTC+5:30, Steve D'Aprano wrote: > I'm trying to convert strings to Title Case, but getting ugly results if the > words contain an apostrophe: > > > py> 'hello world'.title() # okay > 'Hello World' > py> "i can't be having with this".title() # not okay > "

Re: list of the lists - append after search

2017-03-05 Thread gvmcmt
On Thursday, March 2, 2017 at 9:33:14 PM UTC+5:30, Andrew Zyman wrote: > Hello, > please advise. > > I'd like search and append the internal list in the list-of-the-lists. > > Example: > ll =[ [a,1], [b,2], [c,3], [blah, 1000] ] > > i want to search for the internal [] based on the string fi