Re: importlib.util.find_spec()

2014-08-28 Thread Twirlip2
Excuse me for following up my own post; also, for continuing to use Google Groups (but I've been browsing news.gmane.org, with the intention of using it in future - once I understand how to use it). I should have read this: http://legacy.python.org/dev/peps/pep-0451/ PEP 451 -- A ModuleSpec Type

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-27 Thread Twirlip2
On Wednesday, 27 August 2014 05:55:28 UTC+1, Chris Angelico wrote: On Wed, Aug 27, 2014 at 1:13 PM, Rustom Mody rus...@gmail.com wrote: On Wednesday, August 27, 2014 8:06:24 AM UTC+5:30, Chris Angelico wrote: On Wed, Aug 27, 2014 at 10:58 AM, Twirlip2 wrote: So, please give me a few

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-27 Thread Twirlip2
On Wednesday, 27 August 2014 09:12:07 UTC+1, Chris Kwpolska Warrick wrote: On Wed, Aug 27, 2014 at 2:58 AM, Twirlip2 ahr...@googlemail.com wrote: I have plenty of ideas for improving the program, but first I have to re-organise the present spaghetti code in a more logical fashion. I

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-27 Thread Twirlip2
On Wednesday, 27 August 2014 05:03:10 UTC+1, Terry Reedy wrote: On 8/26/2014 9:11 PM, Twirlip2 wrote: Firefox can't find the server at news.gmane.com. sorry. .org This is gmane.comp.python.general Found it now, thanks. I'll take my time and learn how to use it. I hope it's OK if I

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-27 Thread Twirlip2
On Tuesday, 26 August 2014 23:55:51 UTC+1, Twirlip2 wrote: It doesn't seem immediately obvious how to get a definitive list of which names to avoid using (and therefore, inadvertently 'shadowing', as I did today). For example, https://docs.python.org/3/tutorial/modules.html#standard

importlib.util.find_spec()

2014-08-27 Thread Twirlip2
I want to write a function (preferably not very complicated, nor requiring deep understanding of the innards of Python) that will tell me whether a given string name can be used as the name of a module (filename name.py), which can be placed in the search path, without conflicting with some other

IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
I've been using IDLE with Python 3.4.0 on Windows XP (SP3), since March this year, and since May I've been running IDLE almost continuously, using it scores of times every day, mostly to run the same script (for running a media player on BBC WMA streams, to bypass the dreaded iPlayer). No

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 19:46:55 UTC+1, Terry Reedy wrote: On 8/26/2014 2:01 PM, Twirlip2 wrote: I've been using IDLE with Python 3.4.0 on Windows XP (SP3), ... Does all non-Python stuff seem to be working? Yes. For a few days, I'd been frequently running a second instance

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 19:46:55 UTC+1, Terry Reedy wrote: On 8/26/2014 2:01 PM, Twirlip2 wrote: [...] Here are the aforementioned error messages (sorry, I didn't realise I could simply select all and copy text from a command window) - I hope the formatting doesn't get messed up. (I

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 20:20:22 UTC+1, Twirlip2 wrote: Mercifully, it looks like Python is not broken, but I have done something Silly! [...] What I don't yet understand is why Python is trying to execute anything at all. But I'm sure there's a simple explanation

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 20:44:35 UTC+1, Twirlip2 wrote: Meanwhile, let me try renaming my module, and see what happens ... Whoopee, IDLE is back! I need to sit down for a while, and just relax. Oh look, there's a nice comfy chair! Surely nothing unexpected can happen now. -- https

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Tuesday, 26 August 2014 23:03:20 UTC+1, Gregory Ewing wrote: Twirlip2 wrote: There is probably some lesson I should learn from this. The lesson is probably that you shouldn't put the code you're developing somewhere that's on the default import path. Most of what I was doing

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 00:07:03 UTC+1, Chris Angelico wrote: On Wed, Aug 27, 2014 at 4:01 AM, Twirlip2 ahr...@googlemail.com wrote: I've been using IDLE with Python 3.4.0 on Windows XP (SP3), since March this year, and since May I've been running IDLE almost continuously, using

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 00:20:56 UTC+1, Mark Lawrence wrote: Another lesson is that google grops is crap [...] You read my mind! (See parenthetical note at end of my most recent post.) I'm a recovered Usenet addict, of long standing. My excuse is that it was a near-emergency - I'd been

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:01:22 UTC+1, Steven D'Aprano wrote: Gregory Ewing wrote: Although shadowing builtin module names is never a good idea, either! /s/builtin/standard library/ Quick! Name all the standard library modules, stat! In Python 3.3, there are something like

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:04:18 UTC+1, Steven D'Aprano wrote: Twirlip2 wrote: Since I require Python in order to listen to my beloved radio programmes reliably (don't get me started on the subject of the thrice-accursed BBC website!), I therefore have IDLE running all the time

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:21:32 UTC+1, Chris Angelico wrote: On Wed, Aug 27, 2014 at 10:08 AM, Twirlip2 wrote: On Wednesday, 27 August 2014 01:04:18 UTC+1, Steven D'Aprano wrote: Twirlip2 wrote: Since I require Python in order to listen to my beloved radio programmes reliably

Re: Python conquors the BBC [was Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?]

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:58:16 UTC+1, Twirlip2 wrote: It's a mess, but it does at least keep local dependencies in a configuration file. (I had no trouble getting it to run on two different PCs, under both XP and Win98SE - and, if I recall correctly, also Vista, but I never use

Re: IDLE has suddenly become FAWLTY - so should I be hitting it with a big stick, or what?

2014-08-26 Thread Twirlip2
On Wednesday, 27 August 2014 01:51:20 UTC+1, Terry Reedy wrote: On 8/26/2014 7:29 PM, Twirlip2 wrote: On Wednesday, 27 August 2014 00:20:56 UTC+1, Mark Lawrence wrote: Another lesson is that google grops is crap [...] You read my mind! (See parenthetical note at end of my most recent post