Re: Help with code = Extract numerical value to variable

2009-10-22 Thread rurpy
On Oct 22, 11:27 am, Steve wrote: > I have some data that I'm performing some analysis on. > How do I grab the numerical value if it's present and ignore > otherwise. So in the following example > I would have assign the following values to my var > 16 > 20 > 2 > 7 > 0 > > In Field6 > Sample Strin

Re: a splitting headache

2009-10-22 Thread rurpy
On 10/22/2009 07:17 AM, David C. Ullrich wrote: > On Wed, 21 Oct 2009 14:43:48 -0700 (PDT), Mensanator > wrote: > >>On Oct 21, 2:46 pm, David C Ullrich wrote: >>> On Tue, 20 Oct 2009 15:22:55 -0700, Mensanator wrote: >>> > On Oct 20, 1:51 pm, David C Ullrich wrote: >>> >> On Thu, 15 Oct 2009 18:

Re: a splitting headache

2009-10-22 Thread rurpy
On 10/22/2009 06:32 AM, David C. Ullrich wrote: > On Wed, 21 Oct 2009 22:47:24 -0700 (PDT), Carl Banks > wrote: > >>On Oct 21, 12:46 pm, David C Ullrich wrote: >>> On Tue, 20 Oct 2009 15:22:55 -0700, Mensanator wrote: >>> > On Oct 20, 1:51 pm, David C Ullrich wrote: >>> > I'm not saying either b

Re: a simple unicode question

2009-10-22 Thread rurpy
On 10/22/2009 03:23 AM, Gabriel Genellina wrote: > En Wed, 21 Oct 2009 15:14:32 -0300, escribió: > >> On Oct 21, 4:59 am, Bruno Desthuilliers > 42.desthuilli...@websiteburo.invalid> wrote: >>> beSTEfar a écrit : >>> (snip) >>> > When parsing strings, use Regular Expressions. >>> >>> And now you h

Re: Help with code = Extract numerical value to variable

2009-10-22 Thread rurpy
Sorry, I still don't understand. I gather you don't literally want a "0" output for every line that does not contain a number since then your output would be, 0, 0, 16, 20, ... (I'm assuming you want to ignore the "6" in "In Field6") which does not match your sample output. Do you mean, for every

Re: Help with code = Extract numerical value to variable

2009-10-23 Thread rurpy
On 10/23/2009 05:16 AM, Dave Angel wrote: > Steve wrote: >> Sorry I'm not being clear >> >> Input** >> sold: 16 >> sold: 20 >> sold: 2 >> sold: 0 >> sold: >> 7 >> 0 >> >> sold >> null >> >> Output >> 16 >> 20 >> 2 >> 0 >> 0 >> 7 >> 0 >> 0 >> 0 >> 0 > > Since you're looking for onl

Re: python web service or Apache?

2009-10-26 Thread rurpy
On 10/26/2009 08:00 AM, Peng Yu wrote: > On Sun, Oct 25, 2009 at 11:09 PM, Simon Forman wrote: >> On Sun, Oct 25, 2009 at 4:47 PM, Peng Yu wrote: >>> Although, python can be used to provide web service. The following >>> webpage also mentioned, "Apache the best and most widely used web >>> server

Re: loop through each line in a text file

2010-02-26 Thread rurpy
On Feb 26, 2:21 pm, qtrimble wrote: > On Feb 26, 4:14 pm, OdarR wrote: > > > > below is just a sample.  There are well over 500,000 lines that need > > > processed. > > > > wer1999001 > > >       31.2234      82.2367 > > >       37.9535      82.3456 > > > wer1999002 > > >       31.2234      82.2

Re: building a dict

2010-03-13 Thread rurpy
On Mar 13, 8:28 am, Patrick Maupin wrote: > On Mar 13, 9:05 am, vsoler wrote: > > > Say that "m" is a tuple of 2-tuples > > > m=(('as',3), ('ab',5), (None, 1), ('as',None), ('as',6)) > > > and I need to build a "d" dict where each key has an associated list > > whose first element is the count, a

Re: building a dict

2010-03-13 Thread rurpy
On Mar 13, 9:13 am, ru...@yahoo.com wrote: > On Mar 13, 8:28 am, Patrick Maupin wrote: > > > > > On Mar 13, 9:05 am, vsoler wrote: > > > > Say that "m" is a tuple of 2-tuples > > > > m=(('as',3), ('ab',5), (None, 1), ('as',None), ('as',6)) > > > > and I need to build a "d" dict where each key has

Re: building a dict

2010-03-13 Thread rurpy
On Mar 13, 9:26 am, ru...@yahoo.com wrote: > That should be: > d = {} > for item in m:     key = item[0];  value = item[1] >     if key is None or value is None: continue >     if key not in dict: >         d[key] = [1, value] >     else: >         d[key][0] += 1 >         d[key][1] += value Tha

Re: building a dict

2010-03-13 Thread rurpy
On Mar 13, 2:42 pm, vsoler wrote: > By the way, I suppose I am the OP. Since I am not an native English > speaking person, I do not know what it stands for. Perhaps you can > tell me. OP means Original Poster (the person who started the discussion) or sometimes Original Post, depending on contex

Re: regex: multiple matching for one string

2009-07-22 Thread rurpy
On Jul 22, 7:45 pm, "scriptlear...@gmail.com" wrote: > For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I > will like to take out the values (valuea, valueb, and valuec). How do > I do that in Python? The group method will only return the matched > part. Thanks. > > p = re.compi

Re: regex: multiple matching for one string

2009-07-23 Thread rurpy
Nick Dumas wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Agreed. Two string.split()s, first at the semi-colon and then at the > equal sign, will yield you your value, without having to fool around > with regexes. > > On 7/23/2009 9:23 AM, Mark Lawrence wrote: >> scriptlear...@gmail.c

Re: regex: multiple matching for one string

2009-07-24 Thread rurpy
Scott David Daniels wrote: > ru...@yahoo.com wrote: >> Nick Dumas wrote: >>> On 7/23/2009 9:23 AM, Mark Lawrence wrote: scriptlear...@gmail.com wrote: > For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I > will like to take out the values (valuea, valueb, and valuec).

Re: Help with Regex for domain names

2009-07-30 Thread rurpy
On Jul 30, 9:56 am, MRAB wrote: > Feyo wrote: > > I'm trying to figure out how to write efficiently write a regex for > > domain names with a particular top level domain. Let's say, I want to > > grab all domain names with country codes .us, .au, and .de. > > > I could create three different regex

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-10 Thread rurpy
On Aug 9, 10:02 pm, David Lyon wrote: ... > Before you do that, you should clearly work out in your own mind > how you think things need to improve. It's not good enough just > saying this or that is bad without having specific ideas on what > needs to change. ''' He did. Did you read, for examp

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-11 Thread rurpy
On 08/11/2009 01:47 AM, Antoine Pitrou wrote: > r gmail.com> writes: >> On Aug 9, 11:02 pm, David Lyon wrote: >>> Since you're talking about documentation, which is a part of python, >>> don't you think you should be discussing it on python-dev ? >> Yea, them's be a friendly bunch to noob ideas

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-11 Thread rurpy
On 08/11/2009 11:53 AM, Steven D'Aprano wrote: > On Tue, 11 Aug 2009 07:57:28 -0700, rurpy wrote: > >> On 08/11/2009 01:47 AM, Antoine Pitrou wrote: >>> r gmail.com> writes: >>>> On Aug 9, 11:02 pm, David Lyon wrote: >>>>> Since you&#

Re: Python docs disappointing - group effort to hire writers?

2009-08-11 Thread rurpy
On Aug 11, 2:46 pm, Mark Lawrence wrote: > r wrote: > > Ah Ha! the docs are broken and i was right all along! Are the good > > folks at Python dev rolling a new installer as we speak, or we must > > wait for new version? > > As I pointed out a few minutes ago thicko, the new version has been > ava

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-11 Thread rurpy
On Aug 11, 4:08 pm, Paul Boddie wrote: > On 11 Aug, 23:50, ru...@yahoo.com wrote: > > However, were the Python docs site to provide a wiki, along > > with a mechanism to migrate suggestions developed on the wiki > > into the docs, it might well be a viable (and easier because of > > the wysiwyg ef

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-12 Thread rurpy
On 08/12/2009 01:58 AM, Steven D'Aprano wrote: > On Tue, 11 Aug 2009 14:50:51 -0700, rurpy wrote: > >>>> The issue tracker is fine for many things, but the process it provides >>>> is equivalent to peep-hole optimization. How does one submit a >>>&g

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-13 Thread rurpy
On 08/12/2009 12:27 PM, Raymond Hettinger wrote: > On Aug 12, 3:32 am, Paul Boddie wrote: >> Maybe the problem is that although everyone welcomes contributions and >> changes (or says that they do), the mechanisms remain largely beyond >> criticism. > > FWIW, I support the idea the regular docs in

Re: Splitting on '^' ?

2009-08-14 Thread rurpy
On Aug 14, 2:23 pm, kj wrote: > Sometimes I want to split a string into lines, preserving the > end-of-line markers.  In Perl this is really easy to do, by splitting > on the beginning-of-line anchor: > >   @lines = split /^/, $string; > > But I can't figure out how to do the same thing with Pytho

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-17 Thread rurpy
On 08/13/2009 08:46 AM, Paul Boddie wrote: > On 13 Aug, 16:05, ru...@yahoo.com wrote: >> All the above not withstanding, I too think a wiki is worth >> trying. But without doing a lot more than just "setting up >> a wiki", I sadly believe even a python.org supported wiki >> is doomed to failure. >

Re: Python for professsional Windows GUI apps?

2009-08-24 Thread rurpy
On 08/24/2009 06:08 AM, Gilles Ganault wrote: > I was wondering if some people in this ng use Python and some GUI > toolkit (PyWin32, wxWidgets, QT, etc.) to build professional > applications, and if yes, what it's like, the pros and cons, etc. > > I'm especially concerned about the lack of c

break unichr instead of fix ord?

2009-08-25 Thread rurpy
In Python 2.5 on Windows I could do [*1]: # Create a unicode character outside of the BMP. >>> a = u'\U00010040' # On Windows it is represented as a surogate pair. >>> len(a) 2 >>> a[0],a[1] (u'\ud800', u'\udc40') # Create the same character with the unichr() function. >>> a =

Re: break unichr instead of fix ord?

2009-08-26 Thread rurpy
On 08/26/2009 03:10 PM, "Martin v. Löwis" wrote: >> >> In Python 2.5 on Windows I could do [*1]: >> >> >> >>>>> a = unichr (65600) >> >>>>> a[0],a[1] >> >>(u'\ud800', u'\udc40') > > > > I can't reproduce that. My copy of Python on Windows gives > > > > Traceback (most recent call las

Re: break unichr instead of fix ord?

2009-08-26 Thread rurpy
On Aug 25, 9:53 pm, "Mark Tolonen" wrote: > wrote in message > > news:2ad21a79-4a6c-42a7-8923-beb304bb5...@v20g2000yqm.googlegroups.com... > > > > > In Python 2.5 on Windows I could do [*1]: > > >  # Create a unicode character outside of the BMP. > >  >>> a = u'\U00010040' > > >  # On Windows it

Re: break unichr instead of fix ord?

2009-08-26 Thread rurpy
On Aug 26, 2:05 am, Vlastimil Brom wrote: >[...] > Hi, > I'm not sure about the exact reasons for this behaviour on narrow > builds either (maybe the consistency of the input/ output data to > exactly one character?). > > However, if I need these functions for higher unicode planes, the > followin

Re: break unichr instead of fix ord?

2009-08-26 Thread rurpy
On 08/26/2009 08:52 PM, Steven D'Aprano wrote: > On Wed, 26 Aug 2009 16:27:33 -0700, rurpy wrote: > >> But regardless, the significant question is, what is the reason for >> having ord() (and unichr) not work for surrogate pairs and thus not >> usable with a large

Re: break unichr instead of fix ord?

2009-08-27 Thread rurpy
On 08/26/2009 11:51 PM, "Martin v. Löwis" wrote: >[...] >> But regardless, the significant question is, what is >> the reason for having ord() (and unichr) not work for >> surrogate pairs and thus not usable with a large number >> of unicode characters that Python otherwise supports? > >

Re: break unichr instead of fix ord?

2009-08-29 Thread rurpy
On 08/28/2009 02:12 AM, "Martin v. Löwis" wrote: [I reordered the quotes from your previous post to try and get the responses in a more coherent order. No intent to take anything out of context...] >> Nothing else in the PEP seems remotely relevant. [to providing justification for the behavior

Re: break unichr instead of fix ord?

2009-08-29 Thread rurpy
On 08/29/2009 12:06 PM, Steven D'Aprano wrote: [...] >> The reasons for the current behavior so far: >> >> 1. >>> What you propose would break the property "unichr(i) always returns a >>> string of length one, if it returns anything at all". >> >> Yes. And i don't see the problem with that.

Re: break unichr instead of fix ord?

2009-08-29 Thread rurpy
On 08/29/2009 01:43 PM, Vlastimil Brom wrote: > > 2009/8/29: >> >> On 08/28/2009 02:12 AM, "Martin v. Löwis" wrote: >> >> >> >> So far, it seems not and that unichr/ord >> >> is a poster child for "purity beats practicality". >> >> -- >> >> http://mail.python.org/mailman/listinfo/python-list >

Re: map

2009-08-30 Thread rurpy
On 08/30/2009 10:55 PM, elsa wrote: > i have a question about the built in map function. Here 'tis: > > say I have a list, myList. Now say I have a function with more than > one argument: > > myFunc(a, b='None') > > now, say I want to map myFunc onto myList, with always the same > argument for b, b

Re: An assessment of the Unicode standard

2009-09-14 Thread rurpy
On Sep 14, 6:06 am, Christopher Culver wrote: > Robin Becker writes: > > well allegedly, "the medium is the message" so we also need to take > > account of language in addition to the meaning of communications. I > > don't believe all languages are equivalent in the meanings that they > > can enc

Re: Why indentation is use to denote block of code?

2009-09-14 Thread rurpy
On 09/13/2009 10:43 PM, TerryP wrote: > On Sep 13, 10:12 pm, Peng Yu wrote: >> Hi, >> >> I want to understand why python use indentation to denote block of >> code. What are the advantages of it? Is there a style in python to >> denote a block of code the same as that of C++ (with '{}')? >> >> One

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, nor an attack on a person.

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 t

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 > wrote: >> On 11/08/2017 11:29 AM, Chris Angelico wrote: >>> [...] >>> Please, Jon, accept that we were not deliberately trying >>> to put you dow

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 >>> wrote: >>>> On 11/08/2017 11:29 AM, Chris Angelico wrote:

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: 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 p

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: 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. S

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 > 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 ubuntu > > 14.04). The

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 in

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

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 started, you need s

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 l

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 someth

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 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'

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 "p

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 ques

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 ret

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 fun, is Python pass by

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 completely understand

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" -- >>> it's

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 intere

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 a white board and the onl

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 > wrote: > > Why, oh why, do the python.org front page and other pages that offer > > a Windows download not say a word about it not run

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 > wrote: >> I dont recall seeing anyone posting asking why they could not get >> Python to install on Windows 95 recently. I only read this group >> intermittent

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 welcom

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 wrote: > > >> How do I make a regular expression that returns t

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

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 us

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 (http://www.five-ten-sg.com/libp

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: 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.

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 no

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 h

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 the

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 > 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 are making a category

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 > &g

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: > > - Ho

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

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 probl

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 an improvement. > > > >

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. T

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 isn

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 technology, a blatant example of agei

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 writes: > >> A couple weeks ago a frequent poster here (Steve D'Aprano >> ) called another participant an "ugly >> american" [*1]. > > He gave no explicit reference, and so I can see w

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 >>>> ) called another participant a

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-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 wrote: >> I have nothing personal against Steven. He called someone out >> for being bigoted, then repeated the exact same offense himself. > > The charge has b

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 wrote: >> On 04/18/2017 08:19 AM, Chris Angelico wrote: >>> On Wed, Apr 19, 2017 at 12:01 AM, Rurpy via >>> Python-list wrote: >>>> I have nothing p

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 +0000, 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

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 *was accused of* violating >>> it, and then fou

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 *was accused of* violating >>> it, and then fo

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 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 a choosable behavior?

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. Car

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 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". > > I expressed absolutely no

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 Bar

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 it,

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: 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

<    1   2   3   4   5   6   >