Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread jfong
Wildman於 2019年7月4日星期四 UTC+8上午11時15分57秒寫道: > On Thu, 04 Jul 2019 10:36:36 +1000, Cameron Simpson wrote: > > > On 03Jul2019 16:57, Jach Fong wrote: > >>I have the test0.py below. I expect to see 'abcd' showing in the notepad > >>window: > >>- > >>import subprocess as sp > >>p0 = sp.Popen('

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Wildman via Python-list
On Thu, 04 Jul 2019 10:36:36 +1000, Cameron Simpson wrote: > On 03Jul2019 16:57, Jach Fong wrote: >>I have the test0.py below. I expect to see 'abcd' showing in the notepad >>window: >>- >>import subprocess as sp >>p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) >>p0.communicate(input=b'abcd

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Chris Angelico
On Thu, Jul 4, 2019 at 11:31 AM wrote: > > Chris Angelico於 2019年7月4日星期四 UTC+8上午8時37分13秒寫道: > > On Thu, Jul 4, 2019 at 10:01 AM wrote: > > > > > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > > > window: > > > - > > > import subprocess as sp > > > p0 = sp.Pop

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Aldwin Pollefeyt
This is same as echo abcd | notepad.exein Command Prompt. You won't see the abcd neither. On Thu, Jul 4, 2019 at 8:41 AM Chris Angelico wrote: > On Thu, Jul 4, 2019 at 10:01 AM wrote: > > > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > window: > > -

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread jfong
Chris Angelico於 2019年7月4日星期四 UTC+8上午8時37分13秒寫道: > On Thu, Jul 4, 2019 at 10:01 AM wrote: > > > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > > window: > > - > > import subprocess as sp > > p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) > > p0.communicate(input=

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Chris Angelico
On Thu, Jul 4, 2019 at 10:01 AM wrote: > > I have the test0.py below. I expect to see 'abcd' showing in the notepad > window: > - > import subprocess as sp > p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) > p0.communicate(input=b'abcd') > - > But nothing happens. The notepad is compl

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Cameron Simpson
On 03Jul2019 16:57, Jach Fong wrote: I have the test0.py below. I expect to see 'abcd' showing in the notepad window: - import subprocess as sp p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) p0.communicate(input=b'abcd') - But nothing happens. The notepad is completely empty. What h

What's wrong on using Popen's communicate method?

2019-07-03 Thread jfong
I have the test0.py below. I expect to see 'abcd' showing in the notepad window: - import subprocess as sp p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) p0.communicate(input=b'abcd') - But nothing happens. The notepad is completely empty. What have I missed? --Jach PS. I am using py

Re: Handle foreign character web input

2019-07-03 Thread Chris Angelico
On Thu, Jul 4, 2019 at 8:12 AM Igor Korot wrote: > > Hi, Chris, > > On Wed, Jul 3, 2019 at 4:41 PM Chris Angelico wrote: > > > > On Thu, Jul 4, 2019 at 7:08 AM Igor Korot wrote: > > > > > > Hi, Thomas, > > > > > > On Sat, Jun 29, 2019 at 11:06 AM Thomas Jollans wrote: > > > > > > > > On 28/06/2

Re: Handle foreign character web input

2019-07-03 Thread Igor Korot
Hi, Chris, On Wed, Jul 3, 2019 at 4:41 PM Chris Angelico wrote: > > On Thu, Jul 4, 2019 at 7:08 AM Igor Korot wrote: > > > > Hi, Thomas, > > > > On Sat, Jun 29, 2019 at 11:06 AM Thomas Jollans wrote: > > > > > > On 28/06/2019 22:25, Tobiah wrote: > > > > A guy comes in and enters his last name

Re: Handle foreign character web input

2019-07-03 Thread Chris Angelico
On Thu, Jul 4, 2019 at 7:08 AM Igor Korot wrote: > > Hi, Thomas, > > On Sat, Jun 29, 2019 at 11:06 AM Thomas Jollans wrote: > > > > On 28/06/2019 22:25, Tobiah wrote: > > > A guy comes in and enters his last name as RÖnngren. > > With a capital Ö in the middle? That's unusual. > > > > > > So what

Re: Handle foreign character web input

2019-07-03 Thread Igor Korot
Hi, Thomas, On Sat, Jun 29, 2019 at 11:06 AM Thomas Jollans wrote: > > On 28/06/2019 22:25, Tobiah wrote: > > A guy comes in and enters his last name as RÖnngren. > With a capital Ö in the middle? That's unusual. > > > > So what did the browser really give me; is it encoded > > in some way, like

Re: Handle foreign character web input

2019-07-03 Thread mm0fmf
On 30/06/2019 15:04, Chris Angelico wrote: ut it looks like our old "Py3's Unicode is buggy" troll is back Yes... check the from field in the posts for confirmation. But it's obvious from the message content anyway. -- https://mail.python.org/mailman/listinfo/python-list

Re: FCNLT Module in Windows

2019-07-03 Thread Igor Korot
Hi, On Wed, Jul 3, 2019 at 12:56 PM Shakeel Ahmad wrote: > > ACK > > Sent from Mail for Windows 10 > > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing and memory management

2019-07-03 Thread Peter J. Holzer
On 2019-07-03 08:37:50 -0800, Israel Brewster wrote: > 1) Determine the total amount of RAM in the machine (how?), assume an > average of 10GB per process, and only launch as many processes as > calculated to fit. Easy, but would run the risk of under-utilizing the > processing capabilities and tak

EuroPython 2019: Late Bird Rates and Day Passes

2019-07-03 Thread M.-A. Lemburg
We will be switching to the late bird rates for tickets on Saturday (July 6), so this is your last chance to get tickets at the regular rate, which is about 30% less than the late bird rate. EuroPython 2019 Tickets * https://ep2019.europython.eu/registration/buy-ticke

Re: Multiprocessing and memory management

2019-07-03 Thread Gary Herron
On 7/3/19 9:37 AM, ijbrews...@alaska.edu wrote: I have a script that benefits greatly from multiprocessing (it’s generating a bunch of images from data). Of course, as expected each process uses a chunk of memory, and the more processes there are, the more memory used. The amount used per pro

FCNLT Module in Windows

2019-07-03 Thread Shakeel Ahmad
Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Multiprocessing and memory management

2019-07-03 Thread Israel Brewster
I have a script that benefits greatly from multiprocessing (it’s generating a bunch of images from data). Of course, as expected each process uses a chunk of memory, and the more processes there are, the more memory used. The amount used per process can vary from around 3 GB (yes, gigabytes) to

EuroPython 2019: Find a new job at the conference

2019-07-03 Thread M.-A. Lemburg
We’d like to draw your attention to our job board, with plenty of job ads from our sponsors: EuroPython 2019 Job Board * https://ep2019.europython.eu/sponsor/job-board/ * Our sponsors would love to get in touch with you, so please have a look and visit them at thei