Re: Understand workflow about reading and writing files in Python

2019-06-18 Thread DL Neil
I've not gone 'back' to refer to any ComSc theory on buffer-management. Perhaps you might benefit from such? I like your use of the word "shift", so I'll continue to use it. There are three separate units of data to consider - each of which could be called a "buffer". To avoid confusing (mysel

[RELEASE] Python 3.7.4rc1 and 3.6.9rc1 are now available

2019-06-18 Thread Ned Deily
Python 3.7.4rc1 and 3.6.9rc1 are now available. 3.7.4rc1 is the release preview of the next maintenance release of Python 3.7, the latest feature release of Python. 3.6.9rc1 is the release preview of the first security-fix release of Python 3.6. Assuming no critical problems are found prior to 2019

Understand workflow about reading and writing files in Python

2019-06-18 Thread Windson Yang
I'm trying to understand the workflow of how Python read/writes data with buffer. I will be appreciated if someone can review it. ### Read n data 1. If the data already in the buffer, return data 2. If the data not in the buffer: 1. copy all the current data from the buffer 2. create a new

EuroPython 2019: Community Discounts

2019-06-18 Thread M.-A. Lemburg
The EuroPython Society (EPS) does not only run the EuroPython conference, but also aims to provide help for the Python community in Europe in general. * https://www.europython-society.org/ * Let’s all meet at EuroPython In addition to the Python Organ

EuroPython 2019: Inviting European Python Conference Organizers

2019-06-18 Thread M.-A. Lemburg
As you may know, the EuroPython Society (EPS) has extended it’s mission to not only run the EuroPython conference, but also provide help for the Python community in Europe in general. * https://www.europython-society.org/ * As part of this, we would like to get to know, and help cr

Re: Is there an archive of this list with permanent URLs to each message?

2019-06-18 Thread Luciano Ramalho
On Tue, Jun 18, 2019 at 12:27 PM jkn wrote: > A second edition? Curses, just after I recently bought a copy of the first > edition ;-o ... > > (It's a very good book BTW - thanks!) Thanks, J! The 2nd edition won't be available until Q1 2020 at the earliest. Dave Beazley once told me that Fluen

Re: tkinter: on_cancel() method [RESOLVED]

2019-06-18 Thread Rich Shepard
On Tue, 18 Jun 2019, Rich Shepard wrote: I have frames for data entry and modification. Each has two buttons: Save and Cancel. Is there a standard tkinter on_cancel() method responding to a user clicking on the Cancel button? Found the solution: self.destroy() Rich -- https://mail.python.org/

Re: Is there an archive of this list with permanent URLs to each message?

2019-06-18 Thread jkn
On Monday, June 17, 2019 at 10:28:44 AM UTC+1, Luciano Ramalho wrote: > Hello! When I wrote Fluent Python a few years ago I provided my > readers with hundreds of links to my sources, including several links > to messages in the python-list archive. > > Now as I prepare the 2nd edition I notice al

Re: python numpy histogram

2019-06-18 Thread Machiel Kolstein
Thank you for your fast reply. You're right, I completely missed the fact that range should be given with two numbers (which in retrospect should have been obvious). Best regards, Machiel -- Avís - Aviso - Legal Notice - (LOPD) - http://legal.ifae.es -- https://ma

tkinter: on_cancel() method

2019-06-18 Thread Rich Shepard
I have frames for data entry and modification. Each has two buttons: Save and Cancel. Is there a standard tkinter on_cancel() method responding to a user clicking on the Cancel button? My web searches find suggestions for 'after' responses, but no specific code to close the dialog box without sav

Re: python numpy histogram

2019-06-18 Thread Peter Otten
Machiel Kolstein wrote: > > Hi, > > I get the following error: > > ERROR: > Traceback (most recent call last): > File "exponential_distr.py", line 32, in > numpy.histogram(data_array, bins=100, range=2) > File "/usr/lib/python2.7/dist-packages/numpy/lib/function_base.py", line >

python numpy histogram

2019-06-18 Thread Machiel Kolstein
Hi, I get the following error: ERROR: Traceback (most recent call last): File "exponential_distr.py", line 32, in numpy.histogram(data_array, bins=100, range=2) File "/usr/lib/python2.7/dist-packages/numpy/lib/function_base.py", line 499, in histogram mn, mx = [mi + 0.0 for

Re: Which curses version should I use under Windows

2019-06-18 Thread jfong
MRAB於 2019年6月18日星期二 UTC+8下午6時12分50秒寫道: > On 2019-06-18 04:57, jf...@ms4.hinet.net wrote: > > Terry Reedy於 2019年6月18日星期二 UTC+8上午11時03分00秒寫道: > >> On 6/17/2019 10:54 PM, jf...@ms4.hinet.net wrote: > >> > >> > c:\Works\Python34>pip install windows-curses > >> > DEPRECATION: Python 3.4 support has bee

Re: Which curses version should I use under Windows

2019-06-18 Thread MRAB
On 2019-06-18 04:57, jf...@ms4.hinet.net wrote: Terry Reedy於 2019年6月18日星期二 UTC+8上午11時03分00秒寫道: On 6/17/2019 10:54 PM, jf...@ms4.hinet.net wrote: > c:\Works\Python34>pip install windows-curses > DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Pl