Re: how to exit from a nested loop in python

2019-02-08 Thread Rurpy via Python-list
On Thursday, February 7, 2019 at 11:45:23 PM UTC-7, Kaka wrote: > for i in range(len(A.hp)): > > for j in range(len(run_parameters.bits_Mod)): > req_slots[j] = math.ceil((A.T[i]) > > for g in Temp[i]["Available_ranges"][j]: > for s in range(g[0], g[-1]): >

Re: Cannot pass a variable given from url to route's callback fucntion and redirect issue

2018-08-30 Thread Rurpy via Python-list
On Thursday, August 30, 2018 at 10:08:34 AM UTC-6, Νίκος Βέργος wrote: > I did try it with 'None' and as page='index.html' Flask return an error both > ways (while bottle framework does not) I think you are mistaken, making the change I suggested fixes the "TypeError: index() missing 1 required

Re: Cannot pass a variable given from url to route's callback fucntion and redirect issue

2018-08-30 Thread Rurpy via Python-list
On Wednesday, August 29, 2018 at 10:57:35 AM UTC-6, Νίκος Βέργος wrote: > Flask app.py > == > @app.route( '/' ) > @app.route( '/' ) > def index( page ): > > # use the variable form template for displaying > counter = ''' > > td> Αριθμός Επισκεπτών: >

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/09/2017 10:51 AM, Rhodri James wrote: > On 09/11/17 17:41, Michael Torrie wrote: >> On 11/09/2017 09:33 AM, Chris Angelico wrote: >>> On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list >>> <python-list@python.org> wrote: >>>>

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/09/2017 09:33 AM, Chris Angelico wrote: > On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list > <python-list@python.org> wrote: >> On 11/08/2017 11:29 AM, Chris Angelico wrote: >>> [...] >>> Please, Jon, accept that we were not deliberately trying &g

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/08/2017 11:29 AM, Chris Angelico wrote: > [...] > Please, Jon, accept that we were not deliberately trying > to put you down. Steve, if you can clearly state your position on this > (possibly worded in the form of an apology?), it would go a long way > to clearing this up. > ChrisA Are you

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/08/2017 08:18 PM, Ben Finney wrote: > Ned Batchelder writes: > [...] >> Second, now you want us to agree that calling someone arrogant isn't >> an attack? > > It's one thing to say “this idea is arrogant”, which is what Steve did. > That's not in any way personal,

Re: Syntax error for simple script

2017-06-26 Thread Rurpy via Python-list
On 06/26/2017 09:42 AM, Steve D'Aprano wrote: > On Tue, 27 Jun 2017 01:16 am, Ben S. wrote: > >> print mm + "/" + dd + "/" + + " " + hour + ":" + mi + ":" + ss >> ^ >> SyntaxError: Missing parentheses in call to 'print' >> >> Whats wrong? > > Did you read the error message? > > Missing

Re: Bigotry (you win, I give up)

2017-04-22 Thread Rurpy via Python-list
On 04/22/2017 05:17 AM, Rustom Mody wrote: > On Friday, April 21, 2017 at 2:38:08 PM UTC+5:30, Antoon Pardon wrote: >> Op 20-04-17 om 17:25 schreef Rustom Mody: >>> But more importantly thank you for your polite and consistent pointing out >>> to >>> Ben Finney that his religion-bashing signature

Re: Bigotry (you win, I give up)

2017-04-20 Thread Rurpy via Python-list
On 04/20/2017 01:46 PM, Ben Finney wrote: >[...] > I am not obliged to address every point of every post, and the absence > of comment on any particular point is not generally to be read as full > assent. Certainly anyone is free to choose to ignore bigotry on the list, because one agrees with

Re: Bigotry (you win, I give up)

2017-04-20 Thread Rurpy via Python-list
On 04/20/2017 09:25 AM, Rustom Mody wrote: >[...] > No one seems to have noticed who Rurpy is defending : Ranting Rick and Bart. > Sheesh! > A rhinocerous would have gossamer skin compared to these 'gentlemen' > Sheesh² ! You are mistaken. I am not defending Rick or Bart both of whom I am well

Re: Bigotry (you win, I give up)

2017-04-20 Thread Rurpy via Python-list
On 04/19/2017 08:27 PM, Ben Finney wrote: > Rurpy via Python-list <python-list@python.org> writes: > >> You and Chris refused to find any fault with the use of the two >> stereotypes under discussion one of which was "unable-to-learn old >> people&qu

Re: Bigotry and hate speech on the python mailing list

2017-04-20 Thread Rurpy via Python-list
On 04/17/2017 03:39 AM, Marko Rauhamaa wrote: >[...] I meant to respond to this earlier but forgot to. I'll respond to the following part now since there seems to be some confusion about my motives/intent. > In my experience, the bar for banning participants is pretty high, and > rightly so.

Re: Bigotry (you win, I give up)

2017-04-19 Thread Rurpy via Python-list
On 04/19/2017 01:56 PM, Ben Finney wrote: > Rurpy via Python-list <python-list@python.org> writes: > >> I don't think stupid black people or senile old people should be >> allowable because those are not choosable *behaviors*. But is >> unable-to-learn old people

Re: Bigotry (you win, I give up)

2017-04-19 Thread Rurpy via Python-list
On 04/18/2017 04:34 PM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 8:28 AM, Ben Finney > wrote: >> Chris Angelico writes: >> >>> The charge has been examined and dropped. Steven did not violate the >>> CoC. Please stop talking as if he has. He

Re: Bigotry and hate speech on the python mailing list

2017-04-19 Thread Rurpy via Python-list
On 04/18/2017 04:34 PM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 8:28 AM, Ben Finney > wrote: >> Chris Angelico writes: >> >>> The charge has been examined and dropped. Steven did not violate the >>> CoC. Please stop talking as if he has. He

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Rurpy via Python-list
On 04/18/2017 09:35 AM, Wildman via Python-list wrote: > On Tue, 18 Apr 2017 03:28:32 +, Rurpy wrote: >> On 04/17/2017 08:19 PM, Wildman via Python-list wrote: >>> [...] >>> Your words remind me of this: >>> >>> "The seriousness of the charge mandates that we investigate >>> this. Even though

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Rurpy via Python-list
On 04/18/2017 09:29 AM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 1:03 AM, Rurpy via > Python-list<python-list@python.org> wrote: >> On 04/18/2017 08:19 AM, Chris Angelico wrote: >>> On Wed, Apr 19, 2017 at 12:01 AM, Rurpy via >>> Python-list<pyt

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Rurpy via Python-list
On 04/18/2017 08:19 AM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 12:01 AM, Rurpy via > Python-list<python-list@python.org> wrote: >> I have nothing personal against Steven. He called someone out >> for being bigoted, then repeated the exact same offense himself.

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Rurpy via Python-list
On 04/18/2017 07:16 AM, Mario R. Osorio wrote: > Feels like this is something personal against Steven. You should > probably take this to court. I'd rather read Steven's insightful > answers and rants than you crying. None here is meant to sugar coat > anything, and if that is what you are looking

Re: Bigotry and hate speech on the python mailing list

2017-04-17 Thread Rurpy via Python-list
On 04/17/2017 08:19 PM, Wildman via Python-list wrote: > On Tue, 18 Apr 2017 08:23:34 +1000, Ben Finney wrote: >> Paul Rubin writes: >>> Rurpy writes: A couple weeks ago a frequent poster here (Steve D'Aprano )

Re: Bigotry and hate speech on the python mailing list

2017-04-17 Thread Rurpy via Python-list
On 04/17/2017 04:38 AM, Ben Finney wrote: > Rurpy via Python-list <python-list@python.org> writes: > >> A couple weeks ago a frequent poster here (Steve D'Aprano >> <steve+pyt...@pearwood.info>) called another participant an "ugly >> american" [*1]

Bigotry and hate speech on the python mailing list

2017-04-17 Thread Rurpy via Python-list
A couple weeks ago a frequent poster here (Steve D'Aprano ) called another participant an "ugly american" [*1]. This was followed just a couple weeks later with another post from Mr. D'Aprano attacking a participant as "an old man" who can't understand new

Re: Python and the need for speed

2017-04-14 Thread rurpy--- via Python-list
On 04/13/2017 08:13 PM, Steve D'Aprano wrote: > On Wed, 12 Apr 2017 07:56 pm, bart4...@gmail.com wrote: > [...] >> (** Although I find code full of class definitions, one-liners, decorators >> and all the other esoterics, incomprehensive. I'm sure I'm not the only >> one, so perhaps readability

Re: FYI: Removing posts with All Cap Authors

2017-03-04 Thread rurpy--- via Python-list
On Saturday, March 4, 2017 at 9:37:35 AM UTC-7, Wanderer wrote: > On Saturday, March 4, 2017 at 11:31:13 AM UTC-5, Chris Angelico wrote: > > On Sun, Mar 5, 2017 at 3:22 AM, Wanderer wrote: > > > I mostly just lurk and view the post titles to see if something > > > interesting is being discussed.

Re: Encapsulation in Python

2016-03-14 Thread rurpy--- via Python-list
On 03/14/2016 05:19 PM, Mark Lawrence wrote: > On 14/03/2016 22:40, BartC wrote: > > [...a polite and reasonable comment...] > > Drivel. Any establised member of this community, or any other > community for that matter, will always publish, unless, like the RUE, > they've got something to hide.

Re: Regular expressions

2015-11-06 Thread rurpy--- via Python-list
On 11/05/2015 01:18 AM, Christian Gollwitzer wrote: > Am 05.11.15 um 06:59 schrieb rurpy: >>> Can you call yourself a well-rounded programmer without at least >>> a basic understanding of some regex library? Well, probably not. >>> But that's part of the problem with regexes. They have, to some

Re: Regular expressions

2015-11-06 Thread rurpy--- via Python-list
On Thursday, November 5, 2015 at 8:12:22 AM UTC-7, Seymore4Head wrote: > On Thu, 05 Nov 2015 11:54:20 +1100, Steven D'Aprano > wrote: > >On Thu, 5 Nov 2015 10:02 am, Seymore4Head wrote: > >> So far the only use I have for regex is to replace slicing, but I > >> think it is

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On 11/04/2015 07:52 AM, Chris Angelico wrote: > On Thu, Nov 5, 2015 at 1:38 AM, rurpy wrote: >> I'm afraid you are making a category error but perhaps that's in >> part because I wasn't clear. I was not talking about computer >> science. I was talking about human beings learning about computers.

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On Wednesday, November 4, 2015 at 4:05:06 PM UTC-7, Seymore4Head wrote: >[...] > I am still here, but I have to admit I am not picking up too much. The "take away" I recommend is: the folks here are often way overly negative regarding regular expressions and that you not ignore them, but take

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On Wednesday, November 4, 2015 at 7:46:24 PM UTC-7, Chris Angelico wrote: > On Thu, Nov 5, 2015 at 11:24 AM, rurpy wrote: > The "take away" that I recommend is: Rurpy loves to argue in favour of > regular expressions, No, I don't love it, I quite dislike it. > but as you can see from the other

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On 11/04/2015 05:33 PM, Chris Angelico wrote: > On Thu, Nov 5, 2015 at 11:13 AM, rurpy--- via Python-list > <python-list@python.org> wrote: >> On 11/04/2015 07:52 AM, Chris Angelico wrote: >>> On Thu, Nov 5, 2015 at 1:38 AM, rurpy wrote: >>>> I'm afraid you

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On Wednesday, November 4, 2015 at 7:31:34 PM UTC-7, Steven D'Aprano wrote: > On Thu, 5 Nov 2015 11:13 am, rurpy wrote: > > > There would be far fewer computer languages, and they would be much > > more primitive if regular expressions (and the fundamental concepts > > that they express) did not

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On 11/04/2015 07:24 PM, Steven D'Aprano wrote: > On Thu, 5 Nov 2015 11:24 am, wrote: > >> You will find they are an indispensable tool, not just in Python >> programming but in many aspects of computer use. > > You will find them a useful tool, but not indispensable by any means. > > Hint: > > -

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On Wednesday, November 4, 2015 at 1:52:31 AM UTC-7, Steven D'Aprano wrote: > On Wednesday 04 November 2015 18:21, Christian Gollwitzer wrote: > > > What rurpy meant, was that regexes can surface to a computer user > > earlier than variables and branches; a user who does not go into the > > depth

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On 11/03/2015 08:48 PM, Steven D'Aprano wrote: > On Wednesday 04 November 2015 11:33, rurpy wrote: > >>> Not quite. Core language concepts like ifs, loops, functions, >>> variables, slicing, etc are the socket wrenches of the programmer's >>> toolbox. Regexs are like an electric impact socket

Re: Regular expressions

2015-11-03 Thread rurpy--- via Python-list
On 11/03/2015 12:15 AM, Steven D'Aprano wrote: > On Tue, 3 Nov 2015 03:23 pm, rurpy wrote: > >> Regular expressions should be learned by every programmer or by anyone >> who wants to use computers as a tool. They are a fundamental part of >> computer science and are used in all sorts of matching

Re: Regular expressions

2015-11-03 Thread rurpy--- via Python-list
On Monday, November 2, 2015 at 9:38:24 PM UTC-7, Michael Torrie wrote: > On 11/02/2015 09:23 PM, rurpy--- via Python-list wrote: > >> My completely unsolicited advice is that regular expressions shouldn't be > >> very high on the list of things to learn. They are very useful,

Re: Creating PST files using Python

2015-11-03 Thread rurpy--- via Python-list
On 11/03/2015 12:09 PM, Anthony Papillion wrote: > Does anyone know of a module that allows the wiring of Outlook PST > files using Python? I'm working on a project that will require me to > migrate 60gb of maildir mail (multiple accounts) to Outlook. I used libpst

Re: Creating PST files using Python

2015-11-03 Thread rurpy--- via Python-list
I should have checked the web site before posting, it appears that both libpst and libpff only read pst files, no write. Sorry for the noise. -- https://mail.python.org/mailman/listinfo/python-list

Re: installer user interface glitch ?

2015-11-02 Thread rurpy--- via Python-list
On Sunday, November 1, 2015 at 2:48:58 PM UTC-7, Laura Creighton wrote: > Actually, adding the XP - do not look here -- > message for several webpages has been on the pydotorg > todo list for more than a week now. > > Not sure why it hasn't happened. > > Thank you for the reminder. You're

Re: Regular expressions

2015-11-02 Thread rurpy--- via Python-list
On 11/02/2015 08:51 PM, Michael Torrie wrote: >[...] > Indeed, sometimes Jamie Zawinski's is often quite appropriate: > > Some people, when confronted with a problem, think "I know, I'll use > regular expressions." Now they have two problems. Or its sometimes heard paraphrase: Some people,

Re: Regular expressions

2015-11-02 Thread rurpy--- via Python-list
On Monday, November 2, 2015 at 8:58:45 PM UTC-7, Joel Goldstick wrote: > On Mon, Nov 2, 2015 at 10:17 PM, Seymore4Head > wrote: > > > On Mon, 2 Nov 2015 20:42:37 -0600, Tim Chase > > wrote: > > > > >On 2015-11-02 20:09, Seymore4Head

Re: installer user interface glitch ?

2015-11-01 Thread rurpy--- via Python-list
On Sunday, November 1, 2015 at 8:52:55 AM UTC-7, Chris Angelico wrote: > On Mon, Nov 2, 2015 at 2:43 AM, rurpy--- via Python-list > <python-list@python.org> wrote: > > Why, oh why, do the python.org front page and other pages that offer > > a Windows download not say a w

Re: installer user interface glitch ?

2015-11-01 Thread rurpy--- via Python-list
On 11/01/2015 03:06 AM, Chris Warrick wrote: > On 1 November 2015 at 09:23, t_ciorba--- via Python-list > wrote: >> >> hi, i am not sure what is wrong, but after launching the installer >> for windows XPsp3 python-3.5.0.exe i couldnt see what i have to >> select, it was

Re: installer user interface glitch ?

2015-11-01 Thread rurpy--- via Python-list
On 11/01/2015 09:43 AM, Chris Angelico wrote: > On Mon, Nov 2, 2015 at 3:24 AM, rurpy--- via Python-list > <python-list@python.org> wrote: >> I dont recall seeing anyone posting asking why they could not get >> Python to install on Windows 95 recently. I only read this

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-14 Thread rurpy--- via Python-list
On Monday, September 14, 2015 at 5:23:32 PM UTC-6, Laura Creighton wrote: >[...] > I don't know about the others, but I am finding this rather more > entertaining than another round of 'python -- does it have pointers' > in python-list. Could we please dispense with the gratuitous "what I'm

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread rurpy--- via Python-list
On 09/12/2015 08:42 PM, Ben Finney wrote: > Michael Torrie writes: >> On 09/12/2015 08:22 PM, Mark Lawrence wrote: >>> You appear to have the same level of knowledge of Python internals as >>> the RUE has of the Python 3.3+ FSR unicode implementation. Let's have >>> some

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread rurpy--- via Python-list
On 09/13/2015 06:50 AM, Steven D'Aprano wrote: > On Sun, 13 Sep 2015 04:45 am, ru...@yahoo.com wrote: >> On 09/12/2015 10:32 AM, Steven D'Aprano wrote: >>> On Sat, 12 Sep 2015 02:42 pm, Random832 wrote: >>> [...] >>> Computer science and IT is *dominated* by a single usage for "pointer" -- >>>

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread rurpy--- via Python-list
On Sunday, September 13, 2015 at 2:49:13 PM UTC-6, Ben Finney wrote: > Chris Angelico writes: > > > I think Ben's referring to taunting jmf, whom Mark called the "RUE" or > > "Resident Unicode Expert". There has been a long-standing antagonism > > between those two (which is

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 10:32 AM, Steven D'Aprano wrote: > On Sat, 12 Sep 2015 02:42 pm, Random832 wrote: >[...] > Computer science and IT is *dominated* by a single usage for "pointer" -- > it's an abstract memory address. The fundamental characteristics of > pointers are: Just upthread, you claimed

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
Picking a post to respond to, more or less at random... On Saturday, September 12, 2015 at 9:14:00 AM UTC-6, Rustom Mody wrote: > On Saturday, September 12, 2015 at 8:11:49 PM UTC+5:30, Laura Creighton wrote: > > In a message of Sat, 12 Sep 2015 05:46:35 -0700, Rustom Mody writes: > > >How about

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 04:14 PM, Emile van Sebille wrote: > On 9/12/2015 12:58 PM, rurpy--- via Python-list wrote: > >> The question is whether what "pointer" means in languages that use the >> word is*so* different than its meaning in the Python sense > > I can't

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 11:48 AM, Steven D'Aprano wrote: > On Sun, 13 Sep 2015 02:17 am, ru...@yahoo.com wrote: > [...] >> the model of Python I eventually >> developed is very much (I think, haven't read the whole thread) like >> Random832's. I think of boxes (objects) with slots containing "pointers" >>

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 06:02 PM, Ned Batchelder wrote: > On Saturday, September 12, 2015 at 7:15:18 PM UTC-4, Mark Lawrence wrote: > [...] > But in C, pointers mean more than that. You can perform arithmetic on > them, to access memory as a linearly addressed abstraction. Python has > nothing like this.

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On Saturday, September 12, 2015 at 6:25:39 PM UTC-6, ru...@yahoo.com wrote: > On 09/12/2015 05:39 PM, Rustom Mody wrote: > [...] > > which may be summarized as: > > 1. Steven (quoting Online dictionary): Pointer = Address > > 2. Steven: "Python has pointers" is ridiculous > > 3. Python docs: id

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 05:14 PM, Mark Lawrence wrote: > On 12/09/2015 23:34, rurpy--- via Python-list wrote: >> On 09/12/2015 04:14 PM, Emile van Sebille wrote: >>> On 9/12/2015 12:58 PM, rurpy--- via Python-list wrote: >>> >>>> The question is whether what &qu

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 05:39 PM, Rustom Mody wrote: > On Sunday, September 13, 2015 at 4:05:21 AM UTC+5:30, ru...@yahoo.com wrote: >> On 09/12/2015 04:14 PM, Emile van Sebille wrote: >>> On 9/12/2015 12:58 PM, rurpy--- via Python-list wrote: >>> >>>> The q

Re: Python handles globals badly.

2015-09-10 Thread rurpy--- via Python-list
On Thursday, September 10, 2015 at 6:18:39 AM UTC-6, Steven D'Aprano wrote: > On Thu, 10 Sep 2015 05:18 am, Chris Angelico wrote: > > On Thu, Sep 10, 2015 at 5:14 AM, Laura Creighton wrote: > >> In a message of Thu, 10 Sep 2015 05:00:22 +1000, Chris Angelico writes: > >>>To get

Re: no module named kivy import error in ubuntu 14.04

2015-08-17 Thread rurpy--- via Python-list
On 08/17/2015 01:52 AM, Laura Creighton wrote: In a message of Sun, 16 Aug 2015 22:05:29 -0700, rurpy--- via Python-list writes: So I eventually found the kivy docs on their website where they list prerequisite packages for installing kivy on ubuntu. I'll translate those to hopefully

Re: no module named kivy import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti katewinslet...@gmail.com wrote: I am new to linux. I tried various things in attempt to install kivy. I installed python 2.7.10 (I think python3 was already installed in

Re: no module named kivy import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 10:14:29 PM UTC-6, Laura Creighton wrote: In a message of Sun, 16 Aug 2015 20:19:49 -0700, rurpy--- via Python-list writes: On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: [...] use pip (maybe inside a virtualenv). It'll chug for a while