Re: how to match list members in py3.x

2018-11-26 Thread Ethan Furman
On 11/25/2018 08:30 AM, Muhammad Rizwan wrote: > IF YOU CAN'T HELP BETTER IGNORE THE POST AND DON'T TRY TO BE A SMART > ASS. On 11/25/2018 08:49 AM, Muhammad Rizwan wrote: > IF YOU CAN'T HELP BETTER IGNORE THE POST AND DON'T TRY TO BE A SMART > ASS. On 11/25/2018 10:55 AM, Muhammad Rizwan wrote:

Re: [docs] Improvement Request

2018-11-26 Thread Jules Lasne
I thinks this is sphinx related, not the python doc team :) Regards, Jules Lasne +33640736355 jules.la...@gmail.com juleslasne.com Le lun. 26 nov. 2018 à 15:08, Sayan Kundu a écrit : > *** Please make "Table of Contents" an independent scrolling panel* > For a long documentation, users have to

Re: [Tutor] Issue in using "subprocess.Popen" for parsing the command output

2018-11-26 Thread Mats Wichmann
On 11/25/18 10:58 AM, srinivasan wrote: > Even only with "*proc.decode("utf-8")"* in the above code still it seems to > throw the error > > #return proc.strip().decode("utf-8") > #return proc.decode("utf-8").strip() > *return proc.decode("utf-8")* > > Error: > /home/srinivasan/Downloa

Re: how to match list members in py3.x

2018-11-26 Thread Michael F. Stemper
On 25/11/2018 11.41, Richard Damon wrote: > On 11/25/18 12:28 PM, Muhammad Rizwan wrote: >> handle = open('file.txt') >> newlist = list() >> for line in handle: >> #line.rstrip() >> linewords = line.split() >> print(linewords) >> >> for word in linewords: >> newlist.append(word) >>

Re: Question on difference between LambdaType and FunctionType

2018-11-26 Thread Ian Kelly
On Sun, Nov 25, 2018 at 2:00 PM Chris Angelico wrote: > > On Mon, Nov 26, 2018 at 7:55 AM Iwo Herka wrote: > > > > > class Foo: > > >def setup(self): ... > > >__init__ = lambda self: self.setup() > > > > Sorry, didn't address this. This is fine too, since I'm assuming that > > only method

Re: how to match list members in py3.x

2018-11-26 Thread mm0fmf
On 25/11/2018 16:49, Muhammad Rizwan wrote: IF YOU CAN'T HELP BETTER IGNORE THE POST AND DON'T TRY TO BE A SMART ASS. *plonk* -- https://mail.python.org/mailman/listinfo/python-list

Re: help me in a program in python to implement Railway Reservation System using file handling technique.

2018-11-26 Thread Mario R. Osorio
On Saturday, November 24, 2018 at 1:44:21 AM UTC-5, Chris Angelico wrote: > On Sat, Nov 24, 2018 at 5:36 PM wrote: > > > > hello all, > > please hepl me in the above program. python to implement Railway > > Reservation System using file handling technique. > > > > System should perform below ope

Re: Python2.7 unicode conundrum

2018-11-26 Thread Robert Latest via Python-list
Richard Damon wrote: > Why do you say it has been convert to 'Latin'. The string prints as > being Unicode. Internally Python doesn't store strings as UTF-8, but as > plain Unicode (UCS-2 or UCS-4 as needed), and code-point E4 is the > character you want. You're right, this wasn't the minimal exam