Re: numpy not working any more

2017-08-15 Thread breamoreboy
On Tuesday, August 15, 2017 at 5:23:29 PM UTC+1, Poul Riis wrote: > Den tirsdag den 15. august 2017 kl. 07.29.05 UTC+2 skrev dieter: > > Poul Riis writes: > > > ... > > > For some time I have been using python 3.6.0 on a windows computer. > > > Suddenly, my numpy does not work any more. > > > This

Re: numpy not working any more

2017-08-15 Thread breamoreboy
On Tuesday, August 15, 2017 at 8:13:19 PM UTC+1, Poul Riis wrote: > Den tirsdag den 15. august 2017 kl. 19.19.15 UTC+2 skrev bream...@gmail.com: > > On Tuesday, August 15, 2017 at 5:23:29 PM UTC+1, Poul Riis wrote: > > > Den tirsdag den 15. august 2017 kl. 07.29.05 UTC+2 skrev dieter: > > > > Poul

Re: A small quiz question

2017-08-16 Thread breamoreboy
On Wednesday, August 16, 2017 at 12:45:13 PM UTC+1, Steve D'Aprano wrote: > On Wed, 16 Aug 2017 09:06 pm, Stefan Ram wrote: > > > I wrote my first Python quiz question! > > > > It goes like this: > > > > Can you predict (without trying it out) what the Python > > console will output

Re: A small quiz question

2017-08-16 Thread breamoreboy
On Wednesday, August 16, 2017 at 2:52:09 PM UTC+1, Steve D'Aprano wrote: > On Wed, 16 Aug 2017 10:29 pm, breamoreboy wrote: > > > How do you expect to get four lines of output from the three function calls? > > In the REPL (the interactive interpreter) the result of e

ActiveState recipes now on github

2017-08-13 Thread breamoreboy
FYI - please see https://www.activestate.com/blog/2017/08/code-recipes-now-github-5000-recipes-python-perl-ruby-and-more Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Is this PEP viable?

2017-07-17 Thread breamoreboy
On Monday, July 17, 2017 at 3:41:12 PM UTC+1, Evan Adler wrote: > I would like to submit the following proposal. In the logging module, I > would like handlers (like file handlers and stream handlers) to have a > field for exc_info printing. This way, a call to logger.exception() will > write the

Re: Recent Spam problem

2017-07-26 Thread breamoreboy
On Wednesday, July 26, 2017 at 8:29:07 AM UTC+1, Tim Golden wrote: > On 25/07/2017 06:13, Rustom Mody wrote: > > Of late there has been an explosion of spam > > Thought it was only a google-groups (USENET?) issue and would be barred > > from the mailing list. > > > > But then find its there in

Re: how to make this situation return this result?

2017-07-01 Thread breamoreboy
On Saturday, July 1, 2017 at 1:46:21 PM UTC+1, Ho Yeung Lee wrote: > just want to compare tuples like index (0,1), (0,2), (1,2) without duplicate > such as (2,0), (1,0) etc > I'm still not entirely sure what you're asking, but can't you just generate what you want with itertools combinations,

Re: urllib

2017-06-30 Thread breamoreboy
On Friday, June 30, 2017 at 1:30:10 PM UTC+1, Rasputin wrote: > good luck with that, mate ! Please don't change the subject line and also provide some context when you reply, we're not yet mindreaders :) Kindest regards. -- Mark Lawrence. --

Re: why are these 2 fucking clowns in here ?

2017-06-30 Thread breamoreboy
On Friday, June 30, 2017 at 1:45:00 PM UTC+1, Rasputin wrote: > C. Angelico and Mark Lawrence, > > who the fuck does this twin-scum think they are ? > > you better stfu right now. > > these guys are responsible for turning the pythonWiki into a pile of > rubbish. pythonWiki??? > > fuck off

Can we please dump google groups completely?

2017-07-02 Thread breamoreboy
Yes I know it's daft that it's where I'm posting from, but I'm still banned from using the main mailing list. I've reported over 80 posts today alone, meaning that it's less than useless for anybody who is seriously interested in Python. wxpython did the same years ago, why can't we? Kindest

Re: how to make this situation return this result?

2017-07-02 Thread breamoreboy
On Saturday, July 1, 2017 at 6:55:59 PM UTC+1, Ho Yeung Lee wrote: > My situation is a dictionary with tuple key > I think dictionary.values()[index] > Is correct > This is the second time you've said this and it makes no more sense now than it did the first time. Please explain exactly what

Re: pythonhosted.org status?

2017-07-02 Thread breamoreboy
On Sunday, July 2, 2017 at 10:03:34 AM UTC+1, Irmen de Jong wrote: > Hi, > I'm using pythonhosted.org to host the docs for various projects but it has > either been > very slow or unavailable over the past week. Anyone else having the same > problems? > Should I perhaps consider putting my docs

Re: how to create this dependency table from ast?

2017-07-02 Thread breamoreboy
On Sunday, July 2, 2017 at 2:32:36 PM UTC+1, ad...@python.org wrote: > ad...@python.org: > > Hi, Ho! > > > it is crucial that you dump that fucking Windows of yours and become > real pythonic under Linux ! Isn't this spammer, or is it spanner, cute? I'm rather upset that he's been duplicating

Re: Quote of the week

2017-04-25 Thread breamoreboy
On Wednesday, April 26, 2017 at 12:03:09 AM UTC+1, Ben Finney wrote: > > "If it's not important enough to require tests it's not important > > enough to be in Python." -- Ethan Furman > > Ethan Furman writes: > > > Yes, the smiley was acknowledgement that testing is hard, will never > > be

Re: Bigotry (you win, I give up)

2017-04-25 Thread breamoreboy
On Friday, April 21, 2017 at 4:19:25 PM UTC+1, Ethan Furman wrote: > On 04/21/2017 06:33 AM, Ethan Furman wrote: > > On 04/21/2017 03:38 AM, breamoreboy wrote: > > >> Talking of signatures another of Robert L's beauties landed three or so > >> hours ago. He really

Re: Bigotry (you win, I give up)

2017-04-25 Thread breamoreboy
On Tuesday, April 25, 2017 at 5:41:11 PM UTC+1, Rhodri James wrote: > On 25/04/17 15:26, Rustom Mody wrote: > > > > Astrology is bunk… > > > > Or is it 'fake-news' ? > > > >

Re: Array column separations for beginners

2017-04-27 Thread breamoreboy
On Thursday, April 27, 2017 at 8:10:33 PM UTC+1, katari...@gmail.com wrote: > Thanks a lot, it helped me. > > I have new question..maybe very easy but I am trying to search on web and I > have no clue. > I have array(table) with 3 rows - x, y, y. I would like to plot graph with > double y axis

Re: plot graph from data

2017-04-24 Thread breamoreboy
On Monday, April 24, 2017 at 12:51:26 PM UTC+1, Prasenjit Dutta wrote: > Hi All, > > I have a exported data as below: > > [2J [HNAME CPU % MEM USAGE / > LIMIT > goofy_wozniak0.53% 256.8 MiB / 7.64 GiB >

Re: Rosetta: Range extraction

2017-04-24 Thread breamoreboy
On Tuesday, April 25, 2017 at 12:13:42 AM UTC+1, Gregory Ewing wrote: > bartc wrote: > > On 24/04/2017 09:20, Robert L. wrote: > > > >> old = list[0] > >> list.slice_before{|n| [n-old>1,old=n][0]}. > >> map{|a| a.size<3 ? a.join(",") : [a[0],a[-1]].join("-")}. > >> join "," > > > > Is this

py-backwards - Python to python compiler that allows you to use Python 3.6 features in older versions.

2017-04-28 Thread breamoreboy
Hi folks, I've no idea if you could be interested in this beastie https://github.com/nvbn/py-backwards but if you don't know about it, you can't be :) Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

The tragic tale of the deadlocking Python queue

2017-08-17 Thread breamoreboy
I found it interesting, possibly some of you may feel the same way so here it is https://codewithoutrules.com/2017/08/16/concurrency-python/ Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: EXTERNAL: How to update python from 3.5.2 to 3.5.3 on Linux

2017-05-03 Thread breamoreboy
On Wednesday, May 3, 2017 at 3:50:01 PM UTC+1, Joaquin Henriquez wrote: > >Hi, I am using Python 3.5.2 on Linux Mint (X64) at the moment, and > >wondering how to update it to 3.5.3. Are there some simple commands to do > >that? > > If available on the Mint repository you should be able to upgrade

Re: Iterating through a list. Upon condition I want to move on to next item in list

2017-05-10 Thread breamoreboy
On Wednesday, May 10, 2017 at 8:25:25 PM UTC+1, aaron.m@gmail.com wrote: You've all ready had some answers, but are you after something like this? for elem in mylist: if someThing(elem) is True: continue. Kindest regards. Mark Lawrence. --

What if range did not exist?

2017-05-18 Thread breamoreboy
Here it is https://aroberge.blogspot.co.uk/2017/05/what-if-range-did-not-exist.html. I found it interesting as it gives background into the Python community's development philosophy. I read it from start to finish but some of you may simply wish to jump to the punch line. Kindest regards.

Re: New to python and programming

2017-05-18 Thread breamoreboy
On Wednesday, May 17, 2017 at 9:00:08 PM UTC+1, BT wrote: > Hi guys, > I am fairly new to programming. I was just trying to understand how this > group works. Am i allowed to ask any questions that I may have when i get > stuck? I mean is this group for new programmers as well..? > Thanks You

Re: How to install Python package from source on Windows

2017-05-18 Thread breamoreboy
On Wednesday, May 17, 2017 at 8:32:40 PM UTC+1, bartc wrote: > On 17/05/2017 17:23, Chris Angelico wrote: > > On Thu, May 18, 2017 at 1:37 AM, bartc wrote: > >> On 17/05/2017 15:13, Chris Angelico wrote: > > > [1] Does work on Windows. Install bash for Windows, or (on a > >

Re: How to install Python package from source on Windows

2017-05-18 Thread breamoreboy
On Wednesday, May 17, 2017 at 9:27:58 PM UTC+1, bartc wrote: > On 17/05/2017 21:05, Mark Lawrence wrote: > > On Wednesday, May 17, 2017 at 8:32:40 PM UTC+1, bartc wrote: > >> On 17/05/2017 17:23, Chris Angelico wrote: > >>> On Thu, May 18, 2017 at 1:37 AM, bartc wrote: > On

Python, Unicode, utf-16, utf-32.

2017-05-18 Thread breamoreboy
For those of you who share my extremely dry sense of humour you might like to take a look at this https://groups.google.com/forum/#!topic/comp.lang.python/-58lTkBBZU4. I've not shared directly as it's the latest from the RUE. Apparantly Python 3 is the buggiest ever, despite the huge build

Re: How to install Python package from source on Windows

2017-05-18 Thread breamoreboy
On Thursday, May 18, 2017 at 1:19:48 AM UTC+1, Steve D'Aprano wrote: > On Thu, 18 May 2017 07:47 am, Ian Kelly wrote: > > > Because, as has already been stated, there's no way to make such a simple > > process cross-platform. > > Please understand that Bart's understanding of cross-platform and

Re: How to install Python package from source on Windows

2017-05-17 Thread breamoreboy
On Tuesday, May 16, 2017 at 5:09:34 PM UTC+1, bartc wrote: > On 16/05/2017 08:53, Chris Angelico wrote: > > On Tue, May 16, 2017 at 5:14 PM, Christian Gollwitzer wrote: > >> Am 15.05.17 um 23:58 schrieb Chris Angelico: > >>> > >>> On Tue, May 16, 2017 at 7:01 AM, Deborah Swanson wrote: > >

Re: How to install Python package from source on Windows

2017-05-17 Thread breamoreboy
On Tuesday, May 16, 2017 at 10:19:06 PM UTC+1, Chris Angelico wrote: > On Wed, May 17, 2017 at 7:14 AM, bartc wrote: > > That PCbuild line is step 3 of Quick Start. You have to get past steps 1 and > > 2 first. It talks about something called Git; I don't know what that is or > > what I'm supposed

Re: How to install Python package from source on Windows

2017-05-16 Thread breamoreboy
On Sunday, May 14, 2017 at 10:36:37 PM UTC+1, Deborah Swanson wrote: > I want to install the recordclass package: > https://pypi.python.org/pypi/recordclass > > But they've only released wheel files for two platforms, macosx and > win_amd64, neither of which will install on my system. I need

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-20 Thread breamoreboy
On Tuesday, June 20, 2017 at 12:18:50 PM UTC+1, wxjm...@gmail.com wrote: > Le mardi 20 juin 2017 11:48:03 UTC+2, Steven D'Aprano a écrit : > > Python (3) on Windows just does not work. Period. Complete drivel from the RUE. I, and many others, use Python3 on Windows on a daily basis with not

Re: matplotlib change?

2017-06-22 Thread breamoreboy
On Thursday, June 22, 2017 at 3:33:36 PM UTC+1, Michael F. Stemper wrote: > I have some scripts running as cronjobs that capture the status > of some long-term processes and then periodically plot the data. > The box where they normally run went down yesterday for some > unknown reason, so I ran

Re: how to write add frequency in particular file by reading a csv file and then making a new file of multiple csv file by adding frequency

2017-06-22 Thread breamoreboy
On Thursday, June 22, 2017 at 12:16:28 PM UTC+1, kishan.samp...@gmail.com wrote: > I want to write a common file in which It can add the frequency by adding > multiple csv file and if the same words are repeated in python then it should > add the frequency in the common file can any one help me

[Distutils] ANNOUNCE: Sunsetting of uploading to the legacy PyPI/TestPyPI

2017-06-22 Thread breamoreboy
Things are moving on in the pypi world https://mail.python.org/pipermail/distutils-sig/2017-June/030766.html -- Kindest regards. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: argparse epilog call function?

2017-06-27 Thread breamoreboy
On Tuesday, June 27, 2017 at 3:25:10 PM UTC+1, Chris Angelico wrote: > On Wed, Jun 28, 2017 at 12:09 AM, Fox wrote: > > what " -h " are you even talkin bout ? > > > > > > > > > > def Examples(): > > text = """Lots of examples""" > > print(text.format()) > > > > > > >

Re: How to install Python package from source on Windows

2017-05-20 Thread breamoreboy
On Thursday, May 18, 2017 at 8:32:18 PM UTC+1, bartc wrote: > On 18/05/2017 18:11, Steve D'Aprano wrote: > > > Seems a bit hypocritical, don't you think? Expecting people to go spelunking > > into your undocumented mystery language source code to work out how to > > build it from source, and then

Re: How to install Python package from source on Windows

2017-05-20 Thread breamoreboy
On Friday, May 19, 2017 at 1:41:02 AM UTC+1, Michael Torrie wrote: > On 05/18/2017 05:15 PM, Steve D'Aprano wrote: > > Oh but this is Bart we're talking about. Of course his code generator is > > perfect, it is unthinkable that it emits incorrect code. > > I think we've picked on Bart enough for

Re: Scala considering significant indentation like Python

2017-05-22 Thread breamoreboy
On Monday, May 22, 2017 at 3:34:07 PM UTC+1, Serhiy Storchaka wrote: > 22.05.17 17:24, Skip Montanaro пише: > > On Mon, May 22, 2017 at 9:14 AM, bartc wrote: > >> I think 'end' can be used in Python too: > >> > >> if (cond): > >> stmts > >> end > >> > >> But: > >> > >>

SweetRegex

2017-05-29 Thread breamoreboy
Hi folks, First poor old Ethan Furman loses his job as a vastly superior Enum is set into the wild, but now it looks as if MRAB is out owing to this https://github.com/ac1235/python-SweetRegex. I believe tht we need to have a whip round to ensure that neither Ethan or MRAB lose out

Re: How to install Python package from source on Windows

2017-05-25 Thread breamoreboy
On Thursday, May 25, 2017 at 10:32:56 PM UTC+1, Deborah Swanson wrote: > > Michael Torrie wrote, on Thursday, May 25, 2017 1:57 PM > > > I didn't see a traceback where you tried to upgrade pip to > > > 9.0.1. > > It's a long thread. You just didn't find it. > You've never attempted to upgrade

Re: How to install Python package from source on Windows

2017-05-25 Thread breamoreboy
On Friday, May 26, 2017 at 12:11:41 AM UTC+1, Deborah Swanson wrote: > breamoreboy wrote, on Thursday, May 25, 2017 3:23 PM > > > > On Thursday, May 25, 2017 at 10:32:56 PM UTC+1, Deborah Swanson wrote: > > > > Michael Torrie wrote, on Thursday, May 25, 2017 1:5

Verifiably better, validated Enum for Python

2017-05-23 Thread breamoreboy
Well that's what is says here https://github.com/ofek/venum so it must be true. Please move over Ethan, your time is up :-) Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Concatenating files in order

2017-05-23 Thread breamoreboy
On Tuesday, May 23, 2017 at 8:29:57 PM UTC+1, Mahmood Naderan wrote: > Hi, > There are some text files ending with _chunk_i where 'i' is an integer. For > example, > > XXX_chunk_0 > XXX_chunk_1 > ... > > I want to concatenate them in order. Thing is that the total number of files > may be

Re: Where is pydlna-server?

2017-05-30 Thread breamoreboy
On Friday, May 26, 2017 at 9:22:10 PM UTC+1, MoonKid wrote: > I have read about a project called "pydlna-server". But it looks like > that it is gone. Does anyone know about that project, the source or have > contact to the last maintainer. > > There is an google archive page about it >

Re: How to install Python package from source on Windows

2017-05-30 Thread breamoreboy
On Tuesday, May 30, 2017 at 11:32:46 PM UTC+1, Deborah Swanson wrote: > I really don't get it how all of you have latched onto this idea that I > said pip tried to install Visual Studio. I said it happened when I tried > to upgrade pip, and I agreed with someone else who wondered if it might >

Re: json to access using python

2017-06-18 Thread breamoreboy
On Sunday, June 18, 2017 at 7:50:10 PM UTC+1, Xristos Xristoou wrote: > hello > > > I have a json url and i want from this url to update my table in microsoft > access,how to do that using python or some tool of microsoft access ? You need to do some research first. Then you run an editor and

Re: How to store some elements from a list into another

2017-06-13 Thread breamoreboy
On Monday, June 12, 2017 at 7:33:03 PM UTC+1, José Manuel Suárez Sierra wrote: > Hello, > I am stuck with a (perhaps) easy problem, I hope someone can help me: > > My problem is: > I have a list of lists like this one: > [[55, 56, 57, 58, 83, 84, 85, 86, 89, 90, 91, 92, 107, 108, 109, 110, 111,

Re: I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-07 Thread breamoreboy
On Saturday, May 6, 2017 at 8:33:57 PM UTC+1, Rahim Shamsy wrote: > Hi, > > Hope you are well. I am currently in the process of learning the basics of > programming in Python, and was just checking if I am in the right direction. > I have experience programming in C++ and Java, and want to

Re: I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-07 Thread breamoreboy
On Sunday, May 7, 2017 at 8:21:01 AM UTC+1, Shivangi Motwani wrote: > Hey! > > Learn Python The Hard Way is good I cannot recommend LPTHW after the author had this https://learnpythonthehardway.org/book/nopython3.html to say late last year. The best of the rebuttals is here

Re: Inconsistency between dict() and collections.OrderedDict() methods.

2017-04-29 Thread breamoreboy
On Sunday, April 30, 2017 at 12:23:19 AM UTC+1, Erik wrote: > On 29/04/17 23:40, Ned Batchelder wrote: > > For creating your own class that acts like > > a dict, you should derive from collections.abc.MutableMapping, which > > only requires implementing __getitem__, __setitem__, __delitem__, > >

Re: Inconsistency between dict() and collections.OrderedDict() methods.

2017-04-29 Thread breamoreboy
On Sunday, April 30, 2017 at 2:30:25 AM UTC+1, Erik wrote: > On 30/04/17 01:17, breamoreboy wrote: > > On Sunday, April 30, 2017 at 12:23:19 AM UTC+1, Erik wrote: > >> The other is that the documentation of collections.OrderedDict seems to > >> be lacking (it is talkin

Re: getting memory usage of varaibles

2017-05-02 Thread breamoreboy
On Tuesday, May 2, 2017 at 8:54:46 PM UTC+1, larry@gmail.com wrote: > I have a script that consumes more and more memory as it runs. It has > no globals and the large data structures go out of scope often so > should be garbage collected. I've looked at the most likely suspects > with

Re: Rosetta: Sequence of non-squares

2017-05-02 Thread breamoreboy
On Tuesday, May 2, 2017 at 12:15:02 PM UTC+1, Tim Golden wrote: > On 02/05/2017 11:18, Rhodri James wrote: > > On 02/05/17 08:20, Mark Summerfield via Python-list wrote: > >> > >> (The posts are already filtered out of the official comp.lang.python > >> list, but they can't do this for the Google

Re: How to install Python package from source on Windows

2017-05-31 Thread breamoreboy
> > -Original Message- > > From: Python-list > > Sent: Tuesday, May 30, 2017 5:06 PM > > To: python-list > > Subject: Re: How to install Python package from source on Windows > > > > On Tuesday, May 30, 2017 at 11:32:46 PM UTC+1, Deborah Swanson wrote: > > > I really don't get it how all

Re: Lies in education [was Re: The "loop and a half"]

2017-10-05 Thread breamoreboy
On Thursday, October 5, 2017 at 4:22:26 AM UTC+1, Steve D'Aprano wrote: > On Thu, 5 Oct 2017 01:21 pm, Stefan Ram wrote: > > >>- Germany was the aggressor in World War 2; > >>- well, Germany and Japan; > >>- *surely* it must be Germany, Italy and Japan; > > > > This listing style reminds me of

Re: Finding Old Posts on Python

2017-10-08 Thread breamoreboy
On Sunday, October 8, 2017 at 12:42:19 AM UTC+1, Cai Gengyang wrote: > Hello, > > Does anyone know of a way to find all my old posts about Python ? Thanks a > lot! > > GengYang Make a site specific search for your name here https://mail.python.org/pipermail/python-list/ -- Kindest regards.

Re: The "loop and a half"

2017-10-04 Thread breamoreboy
On Wednesday, October 4, 2017 at 9:34:09 AM UTC+1, alister wrote: > On Wed, 04 Oct 2017 20:16:29 +1300, Gregory Ewing wrote: > > > Steve D'Aprano wrote: > >> On Wed, 4 Oct 2017 01:40 pm, Chris Angelico wrote: > >> > >>>You know, you don't HAVE to economize on letters. It's okay to call > >>>your

Re: why does memory consumption keep growing?

2017-10-05 Thread breamoreboy
On Thursday, October 5, 2017 at 10:07:05 PM UTC+1, Fetchinson . wrote: > Hi folks, > > I have a rather simple program which cycles through a bunch of files, > does some operation on them, and then quits. There are 500 files > involved and each operation takes about 5-10 MB of memory. As you'll >

Re: Introducing the "for" loop

2017-10-05 Thread breamoreboy
On Friday, October 6, 2017 at 2:05:58 AM UTC+1, Irv Kalb wrote: > > The range function is discussed after that. > FWIW range isn't a function in Python 3. From https://docs.python.org/3/library/functions.html#func-range "Rather than being a function, range is actually an immutable sequence

Re: OT: MPC-HC project ending? [Re: Lies in education [was Re: The "loop and a half"]]

2017-10-12 Thread breamoreboy
On Thursday, October 12, 2017 at 12:33:09 PM UTC+1, Chris Angelico wrote: > On Thu, Oct 12, 2017 at 8:12 PM, Thomas Jollans wrote: > > On 2017-10-12 02:51, Chris Angelico wrote: > >> If it wants new life, it's probably going to need a Linux version, > >> because that's where a lot of developers

Re: how to replace maltipal char from string and substitute new char

2017-10-12 Thread breamoreboy
On Thursday, October 12, 2017 at 10:46:03 AM UTC+1, Iranna Mathapati wrote: > Hi Team, > > > How to replace multipal char from string and substitute with new char with > one line code > > Ex: > > str = "9.0(3)X7(2) " ===> 9.0.3.X7.2 > > need to replace occurrence of '(',')' with

Re: Using Python 2

2017-09-08 Thread breamoreboy
On Friday, September 8, 2017 at 5:19:36 PM UTC+1, Steve D'Aprano wrote: > On Sat, 9 Sep 2017 12:41 am, Chris Angelico wrote: > > >> I ran 2to3 on some code that worked under 2.6.6. and 3.6.2. 2to3 broke it > >> for both versions and it was a fairly trivial script. > > > > Show the code that it

Re: Using Python 2 (was: Design: method in class or general function?)

2017-09-08 Thread breamoreboy
On Friday, September 8, 2017 at 11:12:50 AM UTC+1, Leam Hall wrote: > > I've read comments about Python 3 moving from the Zen of Python. I'm a > "plain and simple" person myself. Complexity to support what CompSci > folks want, which was used to describe some of the Python 3 changes, > doesn't

Re: Please improve these comprehensions (was meaning of [ ])

2017-09-04 Thread breamoreboy
On Monday, September 4, 2017 at 9:14:24 PM UTC+1, Ben Bacarisse wrote: > Rustom Mody writes: > > > Here is some code I (tried) to write in class the other day > > > > The basic problem is of generating combinations > > > Now thats neat as far as it goes but combinations

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-10 Thread breamoreboy
On Sunday, September 10, 2017 at 6:07:00 AM UTC+1, Ben Finney wrote: > Gene Heskett writes: > > > On Saturday 09 September 2017 21:48:44 Chris Angelico wrote: > > > > > The Python Secret Underground emphatically does not exist. > > > > Humm. here all this time I thought you were a charter member.

Re: A question on modification of a list via a function invocation

2017-09-06 Thread breamoreboy
On Wednesday, September 6, 2017 at 1:12:22 PM UTC+1, Rustom Mody wrote: > On Wednesday, September 6, 2017 at 5:08:20 PM UTC+5:30, Steve D'Aprano wrote: > > On Wed, 6 Sep 2017 07:13 pm, Rustom Mody wrote: > > > > > > > Can you explain what "id" and "is" without talking of memory? > > > > Yes. >

Re: merits of Lisp vs Python

2017-09-30 Thread breamoreboy
On Saturday, September 30, 2017 at 9:03:32 PM UTC+1, Stephan Houben wrote: > Op 2017-09-27, Robert L. schreef : > > (sequence-fold + 0 #(2 3 4)) > > ===> > > 9 > > > > In Python? > > >>> sum([2, 3, 4]) > 9 Dow you have to keep replying to this out and out racist, as

Re: newb question about @property

2017-10-01 Thread breamoreboy
On Sunday, October 1, 2017 at 6:47:34 PM UTC+1, MRAB wrote: > On 2017-10-01 02:52, Stefan Ram wrote: > > MRAB writes: > >>raise ValueError("Temperature below -273 is not possible") > > > >-273.15 > > > I think you've trimmed a little too much. In my reply I was only copying > what someone

Re: Pyhton

2017-09-27 Thread breamoreboy
On Wednesday, September 27, 2017 at 3:10:30 PM UTC+1, darwi...@gmail.com wrote: > Whats the reason that python is growing fast? It would be growing faster but it is only the second best language in the world. Please see https://mail.python.org/pipermail/python-list/2002-November/141486.html

Re: requests.{get,post} timeout

2017-08-24 Thread breamoreboy
On Thursday, August 24, 2017 at 5:02:12 PM UTC+1, Chris Angelico wrote: > > (Caveat: I have no idea how this works on Windows. I do expect, > though, that it will abort the connection without terminating the > process, just like it does on Unix.) > > ChrisA There was a big thread "cross

Re: A question on modification of a list via a function invocation

2017-08-19 Thread breamoreboy
On Saturday, August 19, 2017 at 11:59:41 AM UTC+1, Steve D'Aprano wrote: > Consider that in my family, one of our most precious heirlooms is the axe of > my > great-great-great grandfather, which we have passed down from eldest son to > eldest son for generations. > > The axe is now almost 200

Re: A question on modification of a list via a function invocation

2017-09-04 Thread breamoreboy
On Monday, September 4, 2017 at 3:20:22 AM UTC+1, Chris Angelico wrote: > On Mon, Sep 4, 2017 at 12:05 PM, Steve D'Aprano wrote: > > On Mon, 4 Sep 2017 04:15 am, Stephan Houben wrote: > > > >> Needless to say, according to the definition in Plotkin's paper, Python > >> is "call-by-value". > > > >

Re: Easier way to do this?

2017-10-04 Thread breamoreboy
On Wednesday, October 4, 2017 at 8:29:26 PM UTC+1, 20/20 Lab wrote: > Looking for advice for what looks to me like clumsy code. > > I have a large csv (effectively garbage) dump.  I have to pull out sales > information per employee and count them by price range. I've got my code > working, but

Re: Lies in education [was Re: The "loop and a half"]

2017-10-11 Thread breamoreboy
On Wednesday, October 11, 2017 at 4:47:43 PM UTC+1, bartc wrote: > On 11/10/2017 15:52, wrote: > > On Wednesday, October 11, 2017 at 3:14:51 PM UTC+1, bartc wrote: > >> On 11/10/2017 14:16, Marko Rauhamaa wrote: > >> > >>> Python and C don't try to protect you. In return, you get syntactic > >>>

Re: Lies in education [was Re: The "loop and a half"]

2017-10-11 Thread breamoreboy
On Wednesday, October 11, 2017 at 3:14:51 PM UTC+1, bartc wrote: > On 11/10/2017 14:16, Marko Rauhamaa wrote: > > > Python and C don't try to protect you. In return, you get syntactic > > convenience that probably enhances the quality of your programs. > > Python, maybe. C syntax isn't as

Re: Windows - py363 crashes with "vonLöwis.py"

2017-11-15 Thread breamoreboy
On Wednesday, November 15, 2017 at 8:53:44 AM UTC, wxjm...@gmail.com wrote: > Sorry, to have to say it. > > Have a nice day. Do you mean it segfaults or simply provides a traceback? If the latter is your environment set correctly? -- https://mail.python.org/mailman/listinfo/python-list

Re: nospam ** infinity?

2017-11-28 Thread breamoreboy
On Tuesday, November 28, 2017 at 1:14:51 AM UTC, Skip Montanaro wrote: > > I'm 99.5% certain it's not gate_news. > > A funny thing. All messages I have looked at so far with the "nospam" > thing have a Message-ID from binkp.net. (They are also all Usenet > posts.) For example: > > Newsgroups:

Re: nospam ** infinity?

2017-11-27 Thread breamoreboy
On Monday, November 27, 2017 at 1:19:38 AM UTC, Chris Angelico wrote: > On Mon, Nov 27, 2017 at 12:14 PM, Skip Montanaro wrote: > >> There seems to be a gateway loop of some sort going on. > >> I'm seeing multiple versions of the same posts in > >> comp.lang.python with different numbers of

Re: Benefits of unicode identifiers (was: Allow additional separator in identifiers)

2017-11-24 Thread breamoreboy
On Thursday, November 23, 2017 at 6:50:29 PM UTC, Mikhail V wrote: > Chris A wrote: > > >> On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V wrote: > >> > >>> Chris A wrote: > >>> > >>> Fortunately for the world, you're not the one who decided which > >>> characters were permitted in Python identifiers.

Re: Benefits of unicode identifiers (was: Allow additional separator

2017-11-27 Thread breamoreboy
On Monday, November 27, 2017 at 10:08:06 PM UTC, wxjmfauth wrote: > Le lundi 27 novembre 2017 14:52:19 UTC+1, Rustom Mody a ÄCcritâ : > > On Monday, November 27, 2017 at 6:48:56 PM UTC+5:30, Rustom Mody wrote: > > > Having said that I should be honest to mention that I saw your post first > on > >

Re: why won't slicing lists raise IndexError?

2017-12-04 Thread breamoreboy
On Monday, December 4, 2017 at 7:10:01 PM UTC, Jason Maldonis wrote: > I was extending a `list` and am wondering why slicing lists will never > raise an IndexError, even if the `slice.stop` value if greater than the > list length. > > Quick example: > > my_list = [1, 2, 3] > my_list[:100] #

Let your code type-hint itself: introducing open source MonkeyType

2017-12-14 Thread breamoreboy
Seeing that type hinting is one of the big new features of Python I thought folks might find this https://engineering.instagram.com/let-your-code-type-hint-itself-introducing-open-source-monkeytype-a855c7284881 of interest. Kindest regards. Mark Lawrence. --

Re: Windows - py363 crashes with "vonLöwis.py"

2017-11-16 Thread breamoreboy
On Thursday, November 16, 2017 at 8:43:24 AM UTC, wxjm...@gmail.com wrote: > Le mercredi 15 novembre 2017 23:43:46 UTC+1, Terry Reedy a écrit : > > On 11/15/2017 6:58 AM, breamoreboy wrote: > > > On Wednesday, November 15, 2017 at 8:53:44 AM UTC, wxjm...@gmail.com > &g

Dropbox releases PyAnnotate -- auto-generate type annotations for mypy

2017-11-16 Thread breamoreboy
As type annotations seem to be taking off in a big way I thought that http://mypy-lang.blogspot.co.uk/2017/11/dropbox-releases-pyannotate-auto.html would be of interest, to some of you anyway. -- Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: replacing `else` with `then` in `for` and `try`

2017-11-02 Thread breamoreboy
On Wednesday, November 1, 2017 at 9:14:05 PM UTC, Alexey Muranov wrote: > Hello, > > what do you think about the idea of replacing "`else`" with "`then`" in > the contexts of `for` and `try`? > > It seems clear that it should be rather "then" than "else." Compare > also "try ... then ...

Re: How to use a regexp here

2017-12-04 Thread breamoreboy
On Monday, December 4, 2017 at 9:44:27 AM UTC, Cecil Westerhof wrote: > I have a script that was running perfectly for some time. It uses: > array = [elem for elem in output if 'CPU_TEMP' in elem] > > But because output has changed, I have to check for CPU_TEMP at the > beginning of the line.

Re: Python script

2017-12-07 Thread breamoreboy
On Thursday, December 7, 2017 at 2:06:46 PM UTC, prvn...@gmail.com wrote: > Hi All, > I am new to python need help to write a script in python > my requirement is :- > write a python script to print sentence from a txt file to another txt file > > Regards, > Praveen Read this

Re: why won't slicing lists raise IndexError?

2017-12-08 Thread breamoreboy
On Monday, December 4, 2017 at 7:10:01 PM UTC, Jason Maldonis wrote: > I was extending a `list` and am wondering why slicing lists will never > raise an IndexError, even if the `slice.stop` value if greater than the > list length. > > Quick example: > > my_list = [1, 2, 3] > my_list[:100] # does

Re: How to use a regexp here

2017-12-08 Thread breamoreboy
On Monday, December 4, 2017 at 9:44:27 AM UTC, Cecil Westerhof wrote: > I have a script that was running perfectly for some time. It uses: > array = [elem for elem in output if 'CPU_TEMP' in elem] > > But because output has changed, I have to check for CPU_TEMP at the > beginning of the line.

Copy-on-write friendly Python garbage collection

2017-12-31 Thread breamoreboy
An interesting write up on something that is incorporated into Python 3.7 https://engineering.instagram.com/copy-on-write-friendly-python-garbage-collection-ad6ed5233ddf -- Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list

Re: Goto (Posting On Python-List Prohibited)

2017-12-31 Thread breamoreboy
On Sunday, December 31, 2017 at 3:02:41 PM UTC, Ben Bacarisse wrote: > bartc writes: > > > On 31/12/2017 12:41, Chris Angelico wrote: > >> On Sun, Dec 31, 2017 at 11:33 PM, bartc wrote: > >>> On 30/12/2017 23:54, Chris Angelico wrote: > > > I've written

Re: Native object exposing buffer protocol

2018-01-05 Thread breamoreboy
On Saturday, January 6, 2018 at 12:02:18 AM UTC, Rob Gaddi wrote: > I'd like to create a native Python object that exposes the buffer > protocol. Basically, something with a ._data member which is a > bytearray that I can still readinto, make directly into a numpy array, etc. > > I can do it

Re: Python bug report

2017-12-23 Thread breamoreboy
On Friday, December 22, 2017 at 1:28:17 PM UTC, Ranya wrote: > Hi, > Am trying to use clr.AddReference and clr.AddReferenceToFile, but > python(2.7) keeps making this error: > > Traceback (most recent call last): > File "", line 1, in >

Re: co-ordianate transformation with astropy

2017-12-23 Thread breamoreboy
On Friday, December 22, 2017 at 9:36:29 PM UTC, hemanta phurailatpam wrote: > I want to do co-ordinate transformation from earth-frame to equatorial frame. > By entering date and time, I want to get RA(right ascension) and > Dec(declination) wrt to equatorial frame. How do I do it? It looks as

Re: plot map wit box axes

2017-12-24 Thread breamoreboy
On Friday, December 22, 2017 at 3:42:58 PM UTC, jorge@cptec.inpe.br wrote: > Hi, > > I use the PYTHON and IDL. In IDL I can plot a grid map like a this > figure (mapa.png). Please, I would like know how can I plot my figure > using PYTHON with the box around the figure. Like this that I

Re: Tips or strategies to understanding how CPython works under the hood

2018-01-09 Thread breamoreboy
On Tuesday, January 9, 2018 at 3:22:30 PM UTC, Robert O'Shea wrote: > Hey all, > > Been subscribed to this thread for a while but haven't contributed much. > One of my ultimate goals this year is to get under the hood of CPython and > get a decent understanding of mechanics Guido and the rest of

Re: Native object exposing buffer protocol

2018-01-08 Thread breamoreboy
On Saturday, January 6, 2018 at 12:02:18 AM UTC, Rob Gaddi wrote: > I'd like to create a native Python object that exposes the buffer > protocol. Basically, something with a ._data member which is a > bytearray that I can still readinto, make directly into a numpy array, etc. > > I can do it

<    1   2   3   >