Friday Finking: 'main-lines' are best kept short

2019-09-12 Thread DL Neil via Python-list
(this follows some feedback from the recent thread: "WedWonder: Scripts and Modules" and commences a somewhat-related topic/invitation to debate/correct/educate) Is it a good idea to keep a system's main-line* code as short as possible, essentially consigning all of 'the action' to applicatio

Re: WedWonder: Scripts and Modules

2019-09-12 Thread Richard Damon
On 9/12/19 5:11 PM, DL Neil via Python-list wrote: > On 12/09/19 8:22 PM, Barry Scott wrote: > >> In large projects with many modules import with side-effect can make >> for a maintenance >> burden. > > > You seem to have unmasked an assumption under which I operate. (well > done - you know what 't

Re: WedWonder: Scripts and Modules

2019-09-12 Thread Cameron Simpson
On 13Sep2019 08:40, DL Neil wrote: On 12/09/19 10:59 AM, Cameron Simpson wrote: On 12Sep2019 08:24, DL Neil wrote: In this day-and-age do you have a script in live/production-use, which is also a module? What is the justification/use case? Many. Many many. 1: Many of my modules run their u

Re: WedWonder: Scripts and Modules

2019-09-12 Thread DL Neil via Python-list
On 12/09/19 8:22 PM, Barry Scott wrote: On 11 Sep 2019, at 21:24, DL Neil via Python-list wrote: In this day-and-age do you have a script in live/production-use, which is also a module? What is the justification/use case? (discounting distutils and similar installation tools, or unit test

Re: WedWonder: Scripts and Modules

2019-09-12 Thread DL Neil via Python-list
On 12/09/19 10:59 AM, Cameron Simpson wrote: On 12Sep2019 08:24, DL Neil wrote: In this day-and-age do you have a script in live/production-use, which is also a module? What is the justification/use case? Many. Many many. 1: Many of my modules run their unit tests if invoked as the main pro

duck typing / library functions

2019-09-12 Thread duncan smith
Hello, The problem I have relates to writing algorithmic code that can handle types with a given API, but where some of the required functionality is implemented as library functions rather than methods. Specifically I have code that uses numpy arrays, but I want to adapt it to use sparse arr

Scientific Software Developers | Job positions at CMCC Foundation - Euro-Mediterranean Center on Climate Change, Italy

2019-09-12 Thread CMCC Info
/Please, feel free to circulate //to anyone you think may be interested./// -- Open positions at CMCC Foundation: *Software Developers for the Digital Ocean (Research Associate) * [Job Opening Code: 9195

cx_freeze bdist_msi: shortcut in startmenu sub-folder?

2019-09-12 Thread Grant Edwards
I've got a couple tk apps I distribute for windows using cx_feeze. Currently I use Inno Setup to create a setup.exe, but would like to switch to using cx_freeze's msi feature. But, I'm stumped trying to figure out how to create an entry in a folder underneath the Windows startmenu. The cx_freeze

Re: numpy results in segmentation fault

2019-09-12 Thread Thomas Jollans
On 12/09/2019 15.53, Pradeep Patra wrote: > Hi , > > I was trying to solve the hackerrank and was using python 3.7.x. > https://www.hackerrank.com/challenges/np-concatenate/problem > > While running the code sometimes I get success result and sometimes it > fails with "Segmentation Fault" at Hacker

numpy results in segmentation fault

2019-09-12 Thread Pradeep Patra
Hi , I was trying to solve the hackerrank and was using python 3.7.x. https://www.hackerrank.com/challenges/np-concatenate/problem While running the code sometimes I get success result and sometimes it fails with "Segmentation Fault" at Hacker rank UI. I dont have any clue why the code is crashin

Error

2019-09-12 Thread Courtney Mark
Hi I am a brand new user. I cannot type onto a shell window or a code window. Kind Regards Courtney Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: WedWonder: Scripts and Modules

2019-09-12 Thread Chris Angelico
On Thu, Sep 12, 2019 at 6:57 PM Barry Scott wrote: > As scripts become more complex having it run on import might make debugging > harder > and prevents reuse. > > For example I will import a script at the REPL and examine it and call > function in it to > help me understand and fix problems. H

Re: Email messages from grouped email using IMAPClient in Python.

2019-09-12 Thread Barry Scott
> On 12 Sep 2019, at 06:06, Srinivas Pullabhotla wrote: > > Hello, > > I am trying to fetch email messages from a gmail inbox. So, there will be > 1000s of messages sent to Inbox and since they are 1000s, the emails are > grouped 100 per each email item. > > When I tried this method, the p

Re: WedWonder: Scripts and Modules

2019-09-12 Thread Barry Scott
> On 11 Sep 2019, at 21:24, DL Neil via Python-list > wrote: > > In this day-and-age do you have a script in live/production-use, which is > also a module? What is the justification/use case? > > (discounting distutils and similar installation tools, or unit testing > methodology) > > >