Re: Can't find latest version of 3.4.x on download page

2017-10-18 Thread Terry Reedy
On 10/18/2017 2:09 AM, Christopher Reimer wrote: Greetings, I'm setting up different test environments for tox. I can't find Windows installer for the latest version of Python 3.4 on the download page. Versions 3.4.5 to 3.4.7 only have the source files available. Correct. These are security

Re: Can't find latest version of 3.4.x on download page

2017-10-18 Thread Ben Finney
Christopher Reimer writes: > I'm setting up different test environments for tox. I can't find > Windows installer for the latest version of Python 3.4 on the download > page. Python 3.4 is provided in source form only; the Python core developers no longer generate installers for it. Anyone who

Re: why del is not a function or method?

2017-10-18 Thread Robin Becker
On 16/10/2017 16:37, Xue Feng via Python-list wrote: Hi,    I wonder why 'del' is not a function or method. Most operations can be used as follows     len(team) or     team.append("tom") But, I think     del team[2] is somewhat uncommon. Why does not it take a syntax we are fami

Re: PEP 249 Compliant error handling

2017-10-18 Thread Abdur-Rahmaan Janhangeer
all corruption systematically ignored but data piece logged in for analysis Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 17 Oct 2017 21:43, "Israel Brewster" wrote: > I have written and maintain a PEP 249 compliant (hopefully) DB API for the > 4D database, and I'v

Re: how to read in the newsreader

2017-10-18 Thread Thomas Jollans
On 2017-10-17 20:38, Pete Forman wrote: > Thomas Jollans writes: > >> On 16/10/17 20:02, Pete Forman wrote: >>> Thomas Jollans writes: >>> On 2017-10-16 08:48, Pete Forman wrote: > Andrew Z writes: > >> hmm. i did do that. maybe just a delay. >> I'll see how it will go tom

Re: right list for SIGABRT python binary question ?

2017-10-18 Thread Karsten Hilbert
OK, here's the first bit which might be part of the puzzle of why my Python script SIGABRT's. When run under "normal" py2.7 it runs all the way through but upon shutdown (*after* sys.exit(0)) faulthandler shows a problem (and returns 134 which made me think of SIGABRT): *** Error in `pyth

Re: multiprocessing shows no benefit

2017-10-18 Thread Jason
I've read the docs several times, but I still have questions. I've even used multiprocessing before, but not map() from it. I am not sure if map() will let me use a common object (via a manager) and if so, how to set that up. -- https://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing shows no benefit

2017-10-18 Thread Thomas Nyberg
On 10/18/2017 05:10 PM, Jason wrote: > I've read the docs several times, but I still have questions. > I've even used multiprocessing before, but not map() from it. > > I am not sure if map() will let me use a common object (via a manager) and if > so, how to set that up. > As I said earlier, y

Re: multiprocessing shows no benefit

2017-10-18 Thread Jason
#When I change line19 to True to use the multiprocessing stuff it all slows down. from multiprocessing import Process, Manager, Pool, cpu_count from timeit import default_timer as timer def f(a,b): return dict_words[a]-b def f_unpack(args): return f(*args) def init():

Re: multiprocessing shows no benefit

2017-10-18 Thread Ian Kelly
On Wed, Oct 18, 2017 at 9:46 AM, Jason wrote: > #When I change line19 to True to use the multiprocessing stuff it all slows > down. > > from multiprocessing import Process, Manager, Pool, cpu_count > from timeit import default_timer as timer > > def f(a,b): > return dict_words[a]-b Since

Re: PEP 249 Compliant error handling

2017-10-18 Thread Israel Brewster
> On Oct 18, 2017, at 1:46 AM, Abdur-Rahmaan Janhangeer > wrote: > > all corruption systematically ignored but data piece logged in for analysis Thanks. Can you expound a bit on what you mean by "data piece logged in" in this context? I'm not aware of any logging specifications in the PEP 24

Re: multiprocessing shows no benefit

2017-10-18 Thread Jason
On Wednesday, October 18, 2017 at 12:14:30 PM UTC-4, Ian wrote: > On Wed, Oct 18, 2017 at 9:46 AM, Jason wrote: > > #When I change line19 to True to use the multiprocessing stuff it all slows > > down. > > > > from multiprocessing import Process, Manager, Pool, cpu_count > > from timeit import de

Re: multiprocessing shows no benefit

2017-10-18 Thread Ian Kelly
On Wed, Oct 18, 2017 at 10:13 AM, Ian Kelly wrote: > On Wed, Oct 18, 2017 at 9:46 AM, Jason wrote: >> #When I change line19 to True to use the multiprocessing stuff it all slows >> down. >> >> from multiprocessing import Process, Manager, Pool, cpu_count >> from timeit import default_timer as ti

Re: multiprocessing shows no benefit

2017-10-18 Thread Ian Kelly
On Wed, Oct 18, 2017 at 10:21 AM, Jason wrote: > On Wednesday, October 18, 2017 at 12:14:30 PM UTC-4, Ian wrote: >> On Wed, Oct 18, 2017 at 9:46 AM, Jason wrote: >> > #When I change line19 to True to use the multiprocessing stuff it all >> > slows down. >> > >> > from multiprocessing import Proc

Re: PEP 249 Compliant error handling

2017-10-18 Thread Israel Brewster
On Oct 17, 2017, at 12:02 PM, MRAB wrote: > > On 2017-10-17 20:25, Israel Brewster wrote: >> >>> On Oct 17, 2017, at 10:35 AM, MRAB >> > wrote: >>> >>> On 2017-10-17 18:26, Israel Brewster wrote: I have written and maintain a PEP 249 compliant (hopefully)

Re: multiprocessing shows no benefit

2017-10-18 Thread Jason
I refactored the map call to break dict_keys into cpu_count() chunks, (so each f() call gets to run continuously over n/cpu_count() items) virtually the same results. pool map is much slower (4x) than regular map, and I don't know why. -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 249 Compliant error handling

2017-10-18 Thread Thomas Jollans
On 17/10/17 19:26, Israel Brewster wrote: > I have written and maintain a PEP 249 compliant (hopefully) DB API for the 4D > database, and I've run into a situation where corrupted string data from the > database can cause the module to error out. Specifically, when decoding the > string, I get a

Re: Searching For Old Posts On Python

2017-10-18 Thread Ian Kelly
On Mon, Oct 16, 2017 at 10:42 PM, Cai Gengyang wrote: > https://duckduckgo.com/html/?q=%22Cai%20Gengyang%22%20python This > seems to be the only method that works, using DuckDuckGo Or any search engine, really. https://www.google.com/search?q=site%3Apython.org+cai+gengyang -- https://mail.p

Re: PEP 249 Compliant error handling

2017-10-18 Thread Karsten Hilbert
On Wed, Oct 18, 2017 at 08:32:48AM -0800, Israel Brewster wrote: > actual question, which is "how does the STANDARD (PEP 249 in > this case) say to handle this, or, baring that (since the > standard probably doesn't explicitly say), how do the > MAJORITY of PEP 249 compliant modules handle this?"

Re: how to read in the newsreader

2017-10-18 Thread Cholo Lennon
On 16/10/17 01:00, Michael Torrie wrote: On 10/15/2017 08:50 PM, Andrew Z wrote: Gents, how do i get this group in a newsreader? The digest i'm getting is not workable for me - i can't reply , can only read the replies from the members of the group. Or. maybe, it shouldn't be a news reader

Re: PEP 249 Compliant error handling

2017-10-18 Thread Cameron Simpson
On 17Oct2017 21:38, Karsten Hilbert wrote: That's certainly a possibility, if that behavior conforms to the DB API "standards". My concern in this front is that in my experience working with other PEP 249 modules (specifically psycopg2), I'm pretty sure that columns designated as type VARCHAR

How to debug an unfired tkinter event?

2017-10-18 Thread jfong
In last few days, I tried to experiment with the scrolling table implemented in canvas, started from this example: http://code.activestate.com/recipes/580793-tkinter-table-with-scrollbars/. Everything works fine until I moved the scrolling_area instance (which the canvas is in) from column=0 to

Re: right list for SIGABRT python binary question ?

2017-10-18 Thread Thomas Jollans
On 2017-10-18 13:43, Karsten Hilbert wrote: > OK, here's the first bit which might be part of the puzzle of > why my Python script SIGABRT's. > > When run under "normal" py2.7 it runs all the way through but > upon shutdown (*after* sys.exit(0)) faulthandler shows a > problem (and returns 134 whic

Re: Python Interview Questions

2017-10-18 Thread lingmaaki
Hope this will help you http://net-informations.com/python/iq/default.htm -- https://mail.python.org/mailman/listinfo/python-list

Re: right list for SIGABRT python binary question ?

2017-10-18 Thread dieter
Karsten Hilbert writes: > ... > When run under "normal" py2.7 it runs all the way through but > upon shutdown (*after* sys.exit(0)) faulthandler shows a > problem (and returns 134 which made me think of SIGABRT): > > *** Error in `python': free(): invalid pointer: 0x00770b14 *** This indica