EuroPython 2019: Schedule is online

2019-06-24 Thread M.-A. Lemburg
We are pleased to announce the EuroPython 2019 schedule. We will again have more than 130 sessions in total, held by more than 130 speakers. Schedule for EuroPython 2019 * https://ep2019.europython.eu/events/schedule/ * Please note that the schedule may still chan

[no subject]

2019-06-24 Thread Sagar Jape
I'm not able to install pip in my pc it gives following error. what should I do? -- https://mail.python.org/mailman/listinfo/python-list

Re:

2019-06-24 Thread Joel Goldstick
On Mon, Jun 24, 2019 at 4:13 AM Sagar Jape wrote: > > I'm not able to install pip in my pc it gives following error. what should > I do? > -- > https://mail.python.org/mailman/listinfo/python-list Copy and paste your session info. The list doesn't show images. -- Joel Goldstick http://joelgold

Re: User failed to install PIP

2019-06-24 Thread Barry Scott
I guess you attached an image of the error message. I also going to guess that you are a windows user. All attachments are stripped on this list. You will need to explain in text what you did and what the error message was. Note that PIP is install when you install python. Have you installed pyt

Re: finding a component in a list of pairs

2019-06-24 Thread Peter Pearson
[snip] > print( dict( pairs ).get( 'sun', '(unknown)' )) You probably know this, but . . . just in case . . . If you're doing this many times, you'll want to construct the dict just once and then make many references to the dict, rather than re-constructing the dict every time you want to look up

Re: Understand workflow about reading and writing files in Python

2019-06-24 Thread Windson Yang
When you said "C-runtime buffered I/O", are you talking about Standard I/O in C (FILE * object)? AFAIN, In CPython, we didn't use Standard I/O, right? Dennis Lee Bieber 于2019年6月25日周二 上午12:48写道: > On Mon, 24 Jun 2019 15:18:26 +1200, DL Neil > declaimed the following: > > > > > >However, the OpSy

Re: Understand workflow about reading and writing files in Python

2019-06-24 Thread Windson Yang
DL Neil 于2019年6月24日周一 上午11:18写道: > Yes, better to reply to list - others may 'jump in'... > > > On 20/06/19 5:37 PM, Windson Yang wrote: > > Thank you so much for you review DL Neil, it really helps :D. However, > > there are some parts still confused me, I replyed as below. > > It's not a partic

Re: generator to write N lines to file

2019-06-24 Thread Sayth Renshaw
> To get the individual lines you have to yield them > > for line in lines_gen: > yield line > > This can be rewritten with some syntactic sugar as > > yield from lines_gen > > > for line in getWord(fileName, 5): > > with open(dumpName, 'a') as f: > >