Re: Python Sanity Proposal: Type Hinting Solution

2015-01-23 Thread Rick Johnson
On Friday, January 23, 2015 at 3:13:12 PM UTC-6, Mario Figueiredo wrote: > In article <12d74fb6-f7d7-4ff0-88d3-6076a5dc7...@googlegroups.com>, > Sir Richard Johnson The First says... > > > > Injecting polarity into debates is dangerous, because, > > then we get off into the emotional weeds and a

Re: Python Sanity Proposal: Type Hinting Solution

2015-01-23 Thread Rick Johnson
On Friday, January 23, 2015 at 4:42:51 PM UTC-6, Mario Figueiredo wrote: > I'd rather it'd be a docstring parameter. > > - Decorators are transformation tools. Which type hints > are not. Valid point. > - keywords should be few and used only for language > features. Static analysis isn't and shou

Re: Python is DOOMED! Again!

2015-01-23 Thread Rick Johnson
On Thursday, January 22, 2015 at 10:23:48 PM UTC-6, Steven D'Aprano wrote: > Rick Johnson wrote: > > > The solution is move the type hinting syntax completely > > out of the source file and into another file -- think of > > it as a "Python Type Hinting Header

Re: Random ALL CAPS posts on this group

2015-01-23 Thread Rick Johnson
On Friday, January 23, 2015 at 6:05:02 AM UTC-6, Chris Angelico wrote: > It's definitely not "state vs non-state". Freedom of > expression should allow me to say anything I like in my > own home I also hereby declare that man should be free to ponder thoughts in his own mind, and sing in his own s

Re: Python Sanity Proposal: Type Hinting Solution

2015-01-24 Thread Rick Johnson
On Saturday, January 24, 2015 at 7:30:02 AM UTC-6, Steven D'Aprano wrote: > [...] It requires extra complexity to the parser, so that > decorators may be separated from the function by a hint: > > @decorate > "@typehint: (str, int) -> bool" > def myfunction(arg1, arg2): > > No doubt some people w

Re: Python is DOOMED! Again!

2015-01-24 Thread Rick Johnson
On Saturday, January 24, 2015 at 1:49:08 AM UTC-6, Steven D'Aprano wrote: > Rick Johnson wrote: > > [... snip absurdities...] > > > Duh! Do you think i just pulled stub files out my arse > > without giving all the other alternatives due consideration? > > Ac

Re: Python is DOOMED! Again!

2015-01-24 Thread Rick Johnson
On Saturday, January 24, 2015 at 5:56:02 PM UTC-6, Mark Lawrence wrote: > For at least the third time the PEP was written by three > people, one of whom was the BDFL. Why do you keep > insisting that "he" is wrong, surely it should be "they" ? TWO REASONS: (1) I don't know either of those peop

Re: apostrophe not considered with tkinter's wordstart and wordend

2015-01-24 Thread Rick Johnson
On Thursday, January 22, 2015 at 4:26:29 PM UTC-6, Christian Gollwitzer wrote: > Well, it turns out you actually can. We don't have Guido's > time machine, but still there is a configuration option in > Tk, albeit a very obscure one: you have to set the global > Tcl variables tcl_wordchars and tcl

Re: apostrophe not considered with tkinter's wordstart and wordend

2015-01-24 Thread Rick Johnson
On Saturday, January 24, 2015 at 9:17:57 PM UTC-6, ravas wrote: > We resolved it over at the comp.lang.tcl group. It turns > out what Christian suggested affects what is selected when > you double click a word. He later discovered a different > method for producing what I want. Below is my test cod

Re: Object destruction delayed on interactive prompt

2015-01-25 Thread Rick Johnson
__del__ is unreliable. But don't take my word, check out the doc. https://docs.python.org/3.2/reference/datamodel.html#object.__del__ -- https://mail.python.org/mailman/listinfo/python-list

Re: Python is DOOMED! Again!

2015-01-26 Thread Rick Johnson
On Monday, January 26, 2015 at 6:12:00 PM UTC-6, Steven D'Aprano wrote: > Stub files are a second-rate solution for the problem of > annotating functions where you are unable (or unwilling) > to annotate the source code directly. They suffer from > similar problems: > > - you have to manage the st

Re: Python simple Code

2015-01-26 Thread Rick Johnson
On Saturday, January 24, 2015 at 6:38:50 PM UTC-6, Denis McMahon wrote: > Observations: > > a) There is no need to import array, you are only using a list. I'm just pondering here... (and pinky, i'm looking at you!), but there "may" be a good excuse for "import array". I have a feeling it's mere

Re: Python is DOOMED! Again!

2015-01-29 Thread Rick Johnson
On Thursday, January 29, 2015 at 10:11:56 AM UTC-6, Steven D'Aprano wrote: > > But what are type declarations in statically typed > languages like C, Pascal, Haskell, etc.? They are used by > the compiler for static analysis. The same applies to type > declarations in dynamically typed languages li

Re: An object is an instance (or not)?

2015-01-29 Thread Rick Johnson
On Wednesday, January 28, 2015 at 4:01:41 AM UTC-6, Chris Angelico wrote: > On Wed, Jan 28, 2015 at 8:16 PM, Steven D'Aprano wrote: > > Or perhaps that should be a sad face smiley :-( How much > > time we would all save if academics and language > > designers would only stick to a single consistent

Re: dunder-docs (was Python is DOOMED! Again!)

2015-02-03 Thread Rick Johnson
On Tuesday, February 3, 2015 at 4:05:57 PM UTC-6, Ian wrote: > On Tue, Feb 3, 2015 at 10:40 AM, Steven D'Aprano wrote: > > AT LONG LAST THE LIGHT DAWNS! THE PENNY DROPS! > > Careful there, you're starting to sound like Ranting Rick. ;-) Ha! My meme's are far more c

Re: Import order question

2014-02-18 Thread Rick Johnson
On Monday, February 17, 2014 1:40:41 PM UTC-6, Ben Finney wrote: > Nagy László Zsolt ... writes: > > > Use modules to group your class definitions conceptually. There is > > > no need whatever to separate every class into a different module. > > If there is a consensus, and it is really desireable

Re: Bad Code Snippet of the Day

2014-02-18 Thread Rick Johnson
On Tuesday, February 18, 2014 10:47:15 AM UTC-6, Chris Angelico wrote: > I call this "Russian Exception Roulette". It came about because of > some discussions on python-ideas regarding the new PEP 463 and > exception handling. > try: > > exc = getattr(__builtins__,random.choice(list(filter(lam

Re: Import order question

2014-02-18 Thread Rick Johnson
On Tuesday, February 18, 2014 3:02:26 PM UTC-6, Chris Angelico wrote: > On Wed, Feb 19, 2014 at 7:41 AM, Rick Johnson wrote: > > # ui_main.py > > from ui_mod1 import * > > from ui_mod2 import * > > from ui_mod3 import * > > from ui_mod4 impor

Re: Import order question

2014-02-18 Thread Rick Johnson
On Tuesday, February 18, 2014 4:17:48 PM UTC-6, Tim Chase wrote: > On 2014-02-19 08:49, Chris Angelico wrote: > > At my last job, I had a single C++ file of roughly 5K lines, and > > it wasn't at all unmanageable. Probably wouldn't have been a > > problem to have another order of magnitude on that.

Re: Import order question

2014-02-18 Thread Rick Johnson
On Tuesday, February 18, 2014 5:28:21 PM UTC-6, Rotwang wrote: > I have music software that's a single 9K-line Python module, which I > edit using Notepad++ or gedit. If I wish to find e.g. the method "edit" > of class "sequence" I can type > class seqdef edit(https://mail.python.org/mailman

Re: Tuples and immutability

2014-03-11 Thread Rick Johnson
nt language designers would optimise the slower version. """But Rick, Python is an interpreted language and does not benefit from a compile stage.""" Even if the bytecode can't be optimized on the current run, it CAN be optimized by updating the .pyo file for fu

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-08 Thread Rick Johnson
On Tuesday, April 8, 2014 2:07:27 AM UTC-5, James Brewer wrote: > I'm sure there will be a substantial amount of arrogance > perceived from this question, but frankly I don't think > that I have anything to learn from my co-workers, which > saddens me because I really like to learn and I know that

Re: threading

2014-04-08 Thread Rick Johnson
A overview of the Py-Venactular used in this thread: by Professor Rick # Finny Said:# # "Threading is very difficult t

Re: threading

2014-04-09 Thread Rick Johnson
y Mr Cerutti's comment could be valid is if i argued that *ALL* pronouns are evil, and that is NOT my argument. MY ARGUMENT IS HIGHLY SPECIFIC! # Inquisitive Joe asks: # ###

Re: Why Python 3?

2014-04-19 Thread Rick Johnson
On Friday, April 18, 2014 10:28:05 PM UTC-5, Anthony Papillion wrote: > Hello Everyone, > So I've been working with Python for a while and I'm starting to take > on more and more serious projects with it. I've been reading a lot > about Python 2 vs Python 3 and the community kind of seems split on

Re: Python on a MacBook Pro (not my machine)

2013-10-28 Thread Rick Dooling
Just upgraded to Mavericks, the new OS X, Python is: Python 2.7.5 (default, Aug 25 2013, 00:04:04) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> (On Mountain Lion, it was 2.7.2. You can install Python

PyWart: Packages (oh how thou art lacking!)

2013-11-10 Thread Rick Johnson
The Pros of Python Packages: Python packages require no special syntax to declare which modules are members of the package. Instead, Python simply allows the programmer

PyWart: Python modules are not so "modular" after all!

2013-11-10 Thread Rick Johnson
The Pros of Python Modules: Python modules require no special syntax to create, nor do they induce extra indentation in your source code to maintain readability. Simply

Re: New user's initial thoughts / criticisms of Python

2013-11-10 Thread Rick Johnson
On Saturday, November 9, 2013 10:30:26 AM UTC-6, rusi wrote: > [...] > Well > > print ( {"mon":"mondays suck", > "tue":"at least it's not monday", > "wed":"humpday" > }.get(day_of_week,"its some other day") > ) > may be dense > Separate into named dictionary and its

Re: The narcissism of small code differences

2013-11-10 Thread Rick Johnson
On Saturday, November 9, 2013 6:42:04 AM UTC-6, Steven D'Aprano wrote: > Uses an example written in Ruby, but don't > let that put you off: Why would it? I write Ruby code all the time. Ruby code in and of itself does not bother me, what bothers me about Ruby is the ease at which a programmer can

Re: Creating a function for a directory

2013-11-11 Thread Rick Johnson
On Monday, November 11, 2013 4:26:46 PM UTC-6, Matt wrote: > So I want to take the file, "desktop/test.txt" and write > it to "desktop/newfolder/test.txt". I tried the below > script, and it gave me: "IOError: [Errno 2] No such file > or directory: 'desktop/%s.txt'". Any suggestions would be > gre

Re: Keypress Input

2015-07-15 Thread Rick Johnson
On Friday, June 19, 2015 at 12:20:14 AM UTC-5, Christian Gollwitzer wrote: > The nonsense starts here: > > [...snip code...] > > it seems you don't understand event based programming. Duh. No need to abuse the lad. > It waits for the user input and does the dispatching, i.e. > when a key is pr

Re: Noob in Python. Problem with fairly simple test case

2015-07-15 Thread Rick Johnson
On Wednesday, July 15, 2015 at 10:11:43 PM UTC-5, Chris Angelico wrote: > That's a neat trick, as long as you actually do have a console. Well if you don't have a console, another option is to use the dialogs of the "batteries included GUI" named Tkinter. from tkMessageBox import showinfo # Syn

Re: Keypress Input

2015-07-16 Thread Rick Johnson
On Wednesday, July 15, 2015 at 11:30:40 PM UTC-5, Michael Torrie wrote: > On 07/15/2015 07:03 PM, Rick Johnson wrote: > > > > I think you've missed the whole point of the OP's project. Obviously my reply was not only "too much to quote", but apparently, and

Re: Keypress Input

2015-07-16 Thread Rick Johnson
On Thursday, July 16, 2015 at 1:09:32 AM UTC-5, Terry Reedy wrote: > This really is a nice example. Your rationale for defining an app class > is the best I remember seeing. Well thank you Terry. Your many years of selfless altruistic offerings to this fine group are both inspiring and educatio

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Rick Johnson
On Wednesday, July 15, 2015 at 10:45:12 PM UTC-5, Chris Angelico wrote: > A GUI is another form of console. And a blindingly obvious association is another form of patronizing! What's next, are you going to tell us that a Volvo is a street-legal Scandinavian version of an armored personal carrier

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Rick Johnson
On Thursday, July 16, 2015 at 3:11:56 PM UTC-5, Chris Angelico wrote: > Where's the latest survey results? I think the numbers don't agree > with you any more. What? You think the handful of regulars on this list in any way shape or form somehow represents the multitude of *REAL* python programmer

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Rick Johnson
On Thursday, July 16, 2015 at 6:24:21 PM UTC-5, Chris Angelico wrote: Any attempt to translate downloads into *REAL* usage statistics is doomed to be unreliable. Chris, you're smarter than this! (1) for instance: Python2.x coders have been around long enough that they don't need to download as mu

Re: Noob in Python. Problem with fairly simple test case

2015-07-16 Thread Rick Johnson
On Thursday, July 16, 2015 at 9:44:56 PM UTC-5, Steven D'Aprano wrote: > [...] My take from all this is that overall, Python 3 > take-up is probably > around 10% of all Python users, All that rambling just to agree with me? My educated guess is a minimum of 75% still using Python2.x. But i'll take

Re: Noob in Python. Problem with fairly simple test case

2015-07-17 Thread Rick Johnson
On Friday, July 17, 2015 at 1:38:52 AM UTC-5, Steven D'Aprano wrote: > 75% or 90% is not a "vast majority". Vast majority implies more than 99%. > > But regardless of the precise meaning of "vast", if you want to dismiss one > in four people (25%) or one in ten (10%) as inconsequential, then you'v

Re: tkinter resize question

2015-07-17 Thread Rick Johnson
On Friday, July 17, 2015 at 2:52:56 PM UTC-5, Russell Owen wrote: > I'm not seeing it. If I try the following script I see > that resizing the widget does update frame.winfo_width() > and winfo_height. (I also see that the requested width and > height are ignored; you can omit those). I wonder if

Re: Noob in Python. Problem with fairly simple test case

2015-07-18 Thread Rick Johnson
forts. If you want to know why i rant so much, it's because i'm both saddened and angry that we waste our time on these petty battles. When, in fact, we could achieve greatness by working towards a common goal. Utopia&#

Re: Noob in Python. Problem with fairly simple test case

2015-07-18 Thread Rick Johnson
I suspect that Python 3 penetration is greater in > Asia. I would agree with that assessment, simply because of the Unicode factor. But i don't believe it's a "large audience". And don't get me wrong, i'm not wishing for the numbers to go one way or another. I just

Re: Should non-security 2.7 bugs be fixed?

2015-07-18 Thread Rick Johnson
On Saturday, July 18, 2015 at 6:37:41 PM UTC-5, Terry Reedy wrote: > If the vast majority of Python programmers are focused on > 2.7, why are volunteers to help fix 2.7 bugs so scarce? Because newer code is always more buggy than older code (when both get significant attention that is). There were

Re: Should non-security 2.7 bugs be fixed?

2015-07-18 Thread Rick Johnson
On Saturday, July 18, 2015 at 9:34:20 PM UTC-5, Devin Jeanpierre wrote: > It has even been implied that bugs in Python 2 are *good*, > because that might help with Python 3 adoption. So now we're implementing coercion, Microsoft style? What's next, paid subscriptions to superficial, and backwards

Re: Should non-security 2.7 bugs be fixed?

2015-07-18 Thread Rick Johnson
On Saturday, July 18, 2015 at 10:52:51 PM UTC-5, Rustom Mody wrote: > tl;dr: Not so much a complaint but a indicator that people > who could potentially contribute are being prevented from > entering EXACTLY! If this community fails, it won't be due to old members walking out of the back door, no,

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 12:54:34 AM UTC-5, dieter wrote: > From my point of view: if you want help with fixing bugs, > you must ensure that there is a high probability that > those contributions really find their way into the main > development lines. As I understand from other messages in > th

Re: Noob in Python. Problem with fairly simple test case

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 4:18:31 AM UTC-5, Laura Creighton wrote: > And, despite Norway not being part of the EU, Scandinavia > is still in Europe. This is a bit off topic: But i don't consider Scandinavia to be a part of the EU. Not anymore than i would consider America to be a part of the EU

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 12:55:06 PM UTC-5, Mark Lawrence wrote: > I don't think so, I know. If they want the patches that > badly and can't do it themselves they'll have to grin and > bear it, or do a bit of begging, or pay somebody to do it > for them. It's all about the effing money then?

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 1:44:25 PM UTC-5, bream...@gmail.com wrote: > No, it's simply that nobody can force volunteers to back > port something when they're just not interested in doing > the work, for whatever reason. Hence my statement above, > of which you have focused on the last eight wor

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 2:02:12 PM UTC-5, Ian wrote: > Poor analogy. Babies need others to change their diapers > for them because they're not capable of doing it for > themselves. Duh! That was the point of his analogy, Ian. *ALL* Python programmers need the patches. Whether or not they posse

Re: Integers with leading zeroes

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 3:19:01 AM UTC-5, Skybuck Flying wrote: > 14324 > 234545 > 345 > 534543 > > ^ Looks less good though in non-fixed-sized font. The obvious solution is to use a fixed width font. If you're inserting syntactical noise simply to maintain readability in variable widt

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 3:36:21 PM UTC-5, bream...@gmail.com wrote: > Wrong, not all programmers need the patches as a lot of > people couldn't care two hoots about 2.7. Well you should. Because apparently, you're incapable of recognizing that Py2 and Py3 are existentially joined at the hip!

Re: Need assistance

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 6:07:14 PM UTC-5, craig...@gmail.com wrote: > def main(): > name= input('Enter your full name: ') > split=name.split() > Full_name=split[2],split[0], split[1] > print(Full_name[2],',', Full_name[0], Full_name[1]) > > main() Sorry, but this code is

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 7:28:28 PM UTC-5, Mark Lawrence wrote: > Thank goodness for that as you make no sense at all. As > for this ivory tower nonsense, [...] Cecil, don't pay too much attention to Mark, he's a glory hound. He's like the Python community version of Cerberus -- you know, the

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 7:45:43 PM UTC-5, bream...@gmail.com wrote: > I have no negative perception of 2.7, it simply no longer > interests me, to repeat in the same way that it no longer > interests some core devs. Your apathy towards Py2 will not shield you from the collateral damage caused

Re: Should non-security 2.7 bugs be fixed?

2015-07-19 Thread Rick Johnson
On Sunday, July 19, 2015 at 8:26:52 PM UTC-5, bream...@gmail.com wrote: > On Monday, July 20, 2015 at 1:49:58 AM UTC+1, Rick Johnson wrote: > > On Sunday, July 19, 2015 at 7:28:28 PM UTC-5, Mark Lawrence wrote: > > Every time i defeat [MARK LAWRENCE], and drag him out > >

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Rick Johnson
On Sunday, July 19, 2015 at 9:17:11 PM UTC-5, Rustom Mody wrote: > List of python committers: > - > 11081 Guido van Rossum > [snip: long list] Thanks for posting this list of names. I had put in a pyFOIA request for this data a few years ago, but to my surprise, was flat

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Rick Johnson
y from a change in email provider is unreasonable, > and I believe that Rick should acknowledge that he over- > reacted. I'm not sure if i misinterpreted the puppetry, or not. I thought Mark was hiding behind the "bream" account, but i'm not so sure now. Weird things we

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Rick Johnson
On Monday, July 20, 2015 at 1:30:03 AM UTC-5, dieter wrote: > Experience like this (in another project) causes me to be > very reluctant to become a core contributor (in the sense > of actively fixing things in the core). You need a lot of > knowledge (coding conventions, test setup, change > work

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Rick Johnson
On Monday, July 20, 2015 at 1:47:00 AM UTC-5, dieter wrote: > Thinking of myself, I am not sure. Ensuring the quality of > a "distribution" goes far beyond a single bug fix. While I > usually are ready to share a bug fix I have found, I am > reluctant to get involved in the complete quality > ensur

Re: Should non-security 2.7 bugs be fixed?

2015-07-21 Thread Rick Johnson
On Tuesday, July 21, 2015 at 4:22:50 PM UTC-5, bream...@gmail.com wrote: > It was actually Rustom who posted inaccurate data as only > core-devs have commit rights. Well-well. We now find ourselves before the royal court of logic: If we are to take your statement as fact, then only two possibilit

Re: Should non-security 2.7 bugs be fixed?

2015-07-22 Thread Rick Johnson
On Wednesday, July 22, 2015 at 1:51:57 AM UTC-5, Terry Reedy wrote: > > Which is it? > > Mark is not a core dev [...] However His user name is > BreamoreBoy and his tracker email is the same breamore@ > address that recently upset you. Thank you for confirming my suspicion. You have always been h

Re: Should non-security 2.7 bugs be fixed?

2015-07-23 Thread Rick Johnson
On Wednesday, July 22, 2015 at 11:26:50 PM UTC-5, Jason Swails wrote: > I know my experiences don't hold true for everybody, but I > also don't think they are uncommon (I know several > colleagues that share many aspects of them).  And for me, > the *better* Python 2.7 becomes, and the longer it's

Re: OT Re: Math-embarrassment results in CS [was: Should non-security 2.7 bugs be fixed?]

2015-07-23 Thread Rick Johnson
On Thursday, July 23, 2015 at 7:08:10 PM UTC-5, Grant Edwards wrote: > You can always pick out the topologist at a conference: > he's the one trying to dunk his coffee cup in his > doughnut. > > [Hey, how often do you get to use a topology joke.] Don't sale yourself short Grant. You get extra bo

Re: OT Re: Math-embarrassment results in CS [was: Should non-security 2.7 bugs be fixed?]

2015-07-23 Thread Rick Johnson
On Thursday, July 23, 2015 at 9:03:15 PM UTC-5, Paul Rubin wrote: > Did you hear about the idiot topologist? He couldn't tell his butt from > a hole in the ground, but he *could* tell his butt from two holes in the > ground. This sounds more like a riddle than a joke. So in other words: the messa

Re: Gmail eats Python

2015-07-26 Thread Rick Johnson
On Saturday, July 25, 2015 at 11:35:02 AM UTC-5, Laura Creighton wrote: > How do you teach gmail not to reflow what it thinks of as > 'other people's quoted text'? My simple solution is to bulk replace ">>> " with "py> ". Also has the benefit of differentiating between languages when a proper "tag

Re: GvR Europython keynote described on lwn.net

2015-07-31 Thread Rick Johnson
On Friday, July 31, 2015 at 1:33:36 AM UTC-5, Paul Rubin wrote: > The Dropbox cluster runs a modified Python 2.7, he said, which > elicited audience laughter. "I said it, it is no secret", he said. Yep, even the BDFL is actively developing in 2.7! He's no fool. -- https://mail.python.org/mailman

Re: GvR Europython keynote described on lwn.net

2015-08-01 Thread Rick Johnson
On Saturday, August 1, 2015 at 12:45:45 AM UTC-5, Steven D'Aprano wrote: > > Yep, even the BDFL is actively developing in 2.7! He's no fool. > > Of course not. Dropbox pay him to work on their systems, > and he wants to keep his job. Thanks for confirming my point that Python3 is not worth devel

Re: GvR Europython keynote described on lwn.net

2015-08-02 Thread Rick Johnson
On Sunday, August 2, 2015 at 3:05:09 AM UTC-5, Steven D'Aprano wrote: > If Dropbox were using Python 1.5, would you conclude that > Python 2 was not worth developing in? No, if Dropbox were using py1.5, i would conclude that it was being managed by monkeys -- since Py1.5 existed before Dropbox w

Re: GvR Europython keynote described on lwn.net

2015-08-02 Thread Rick Johnson
On Sunday, August 2, 2015 at 6:25:37 PM UTC-5, Chris Angelico wrote: > Wind the clock back to 2012, when Guido was working for Google. > Dropbox wants him. Is he going to refuse the job unless they *first* > get onto Py3, or is he going to accept the job with a view to > migrating them? Well, i do

Re: Python 3 May Become Relevant Now

2015-08-02 Thread Rick Johnson
On Sunday, August 2, 2015 at 7:25:37 PM UTC-5, Mark Lawrence wrote: > rr should have a field day with this one [...] You must be nuts if you think i'm going to click that link for an article that was written today, Hahaha! Quote the relevant bits. -- https://mail.python.org/mailman/listinfo/pyt

Re: Python 3 May Become Relevant Now

2015-08-03 Thread Rick Johnson
On Sunday, August 2, 2015 at 9:45:51 PM UTC-5, Chris Angelico wrote: > How do you know it was written today, if you didn't click it? Because i possess skills you can hardly fathom. There are always loopholes; back doors; knot holes; key holes; cracks; crevices; tells; Freudian slips; little white

Installation Successful, but pythonw and idle doesn't function

2015-08-05 Thread Rick Smith
lling to try anything. I have NO idea of what to do next to install the python.org version on this Toshiba laptop. Please let me know. Thank you. Rick Smith -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP8 and 4 spaces

2014-07-04 Thread Rick Johnson
On Thursday, July 3, 2014 12:31:04 PM UTC-5, Tobiah wrote: > Coworker takes PEP8 as gospel and uses 4 spaces I'm saddened that every one of these little "tabs versus spaces" arguments revolve more around selfishness and less around an understanding of what a "tabs" and "spaces" actually *are*, be

Re: PEP8 and 4 spaces

2014-07-04 Thread Rick Johnson
[A continuation of my last reply...] Here is a recent situation that occurred to me that showcases the tendency of humans to carelessly bind illogical terms to common objects, thereby creating a inverse esoteric of ubiquitous illogic, in this case, the term: "flash-light". ===

Re: Why is it different from the example on the tutorial?

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 8:38:41 AM UTC-5, rxj...@gmail.com wrote: > When I get match result: > py>pattern='abcd' > py>prog = re.compile(pattern) > py>string='abcd' > py>result = prog.match(string) > py>result > <_sre.SRE_Match object at 0x6eda5e0> > py>result.group(0) > 'abcd' > > It looks li

Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout,

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 4:05:10 AM UTC-5, gintare wrote: > The correct code: > f=open(,'r', encoding='utf-8') > linef=f.readlines() > print(repr(linef)) Yes but do you understand why? And even if you DO understand why, you should explain the details because the neophytes are always watching!

Re: OT: Flashlights [was Re: PEP8 and 4 spaces]

2014-07-06 Thread Rick Johnson
On Saturday, July 5, 2014 5:15:32 AM UTC-5, Steven D'Aprano wrote: > (By the way, outside of the USA, flashlights in the rest > of the English- speaking world are usually called > "torches", so called because, like the old-fashioned > burning torch, they provide light.) Well Steven all i can hope

Re: Why is it different from the example on the tutorial?

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 9:34:44 AM UTC-5, Roy Smith wrote: > * You can print dict(foo), which just prints out the attributes the > object has. Looks like a typo there. I think you probably meant to say "dir(foo)" INTERACTIVE SESSIO

Re: Why is it different from the example on the tutorial?

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 10:03:48 AM UTC-5, rxj...@gmail.com wrote: > Thanks. I do not want to waste everyone's time. Oh NOW you tell us! I could be ranting about flashlights, but here i am wasting time with you again! > For a jump start, there are small errors making me > frustrating. Your help

Re: Question about metacharacter '*'

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 10:50:13 AM UTC-5, Devin Jeanpierre wrote: > In related news, the regexp I gave for numbers will match "1a". Well of course it matched, because your pattern defines "one or more consecutive digits". So it will match the "1" of "1a" and the "11" of "11a" likewise. As an asi

Re: Question about metacharacter '*'

2014-07-06 Thread Rick Johnson
[CONTINUED FROM LAST REPLY...] Likewise if your intent is to filter out any match strings which contain non-digits, then define the start and stop points of the pattern: # Match only if all are digits >>> re.match(r'\d\d*$', '111aaa222') # fails # Match only if all are digits and, # allow leadin

Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout,

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 11:14:26 AM UTC-5, Terry Reedy wrote: > On 7/6/2014 10:52 AM, Rick Johnson wrote: > > So the direct reason for failure is due to the fact that the > > "print()" function ONLY handles strings, not list objects. > >>> print(object()) >

Re: Question about metacharacter '*'

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 11:47:38 AM UTC-5, Roy Smith wrote: > Even better, r"\d+" > >>> re.search(r'(\d\d*)', '111aaa222').groups() > ('111',) > >>> re.search(r'(\d+)', '111aaa222').groups() > ('111',) Yes, good catch! I had failed to reduce your original pattern down to it's most fundamental aspe

Re: Question about metacharacter '*'

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 12:38:23 PM UTC-5, Rick Johnson wrote: > r'\s*#[^\n]' Well, there i go not testing again! r'\s*#[^\n]*' -- https://mail.python.org/mailman/listinfo/python-list

Re: How do you use `help` when write your code

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 11:36:23 AM UTC-5, Shiyao Ma wrote: > I often heard people mention use help(ob) as a way of > documentation look up. Personally I seldom/never do that. > My normal workflow is use ipython, obj? or obj?? for quick > look up or use docs.python.org for a detailed read. Do you >

Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout,

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 1:14:38 PM UTC-5, wxjm...@gmail.com wrote: > Le dimanche 6 juillet 2014 18:53:34 UTC+2, Rick Johnson a écrit : > [...] > > > Seems like she'd better do the decoding before printing > No > > > or am i wrong again? > Yes > > &

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Wednesday, May 28, 2014 3:15:45 PM UTC-5, Chris Angelico wrote: > On Thu, May 29, 2014 at 5:58 AM, Larry Martell wrote: > > No company that I work for is using python 3 - they just > > have too much of an investment in a python 2 code base > > to switch. I'm just saying. > And that's not a probl

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Wednesday, May 28, 2014 7:41:53 PM UTC-5, Terry Reedy wrote: > Claim: "Python 3 languishes in disuse." > Fact: in 2013, there were around 14 million downloads of > windows installers for each of 2.7.x and 3.3.x. 3.3 is > over twice as popular as 3.2 (to be expected). Terry, you cannot simply ta

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Monday, July 14, 2014 5:47:14 PM UTC-5, MRAB wrote: > Why it should "they" withdraw it (whatever that means)? > "They" are entitled to keep it public if they want to. I'm not suggesting they *must* withdraw Python, I'm only suggesting that IF they wish to *prevent* dissent or scrutiny, then the

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Monday, July 14, 2014 6:28:19 PM UTC-5, Chris Angelico wrote: > And I know what would happen if the USA weren't here. > People in other countries would have made similar > improvements to the world. Yes, i wholeheartedly agree with that statement. Is the USA the *ONLY* country to have ever lib

Re: Python 3 is killing Python

2014-07-14 Thread Rick Johnson
On Monday, July 14, 2014 9:11:47 PM UTC-5, Chris Angelico wrote: > I dunno. It's not like Great Britain, Australia, or New > Zealand did anything significant in either war, is it. Most of Europe occupied, London bombed into the stone age; things were looking grim Chris! Maybe you should read up on

Re: Python 3 is killing Python

2014-07-15 Thread Rick Johnson
On Tuesday, July 15, 2014 9:31:31 AM UTC-5, Chris Angelico wrote: > [...] That said, though, I would advise you to give 2to3 a > shot. You never know, it might do exactly what you need > right out-of-the-box and give you a 3.x-compatible > codebase in one hit. Ha! Are you so foolish as to believ

Re: Python 3 is killing Python

2014-07-15 Thread Rick Johnson
On Tuesday, July 15, 2014 1:53:27 PM UTC-5, Steven D'Aprano wrote: > No software developer is obliged to support their software > forever, especially if they are giving it away for free > [...] Nobody but nobody is supporting Python 1.1 any more, > no matter how many security holes it has. Of cou

Re: Python 3 is killing Python

2014-07-15 Thread Rick Johnson
On Tuesday, July 15, 2014 5:40:29 PM UTC-5, Abhiram R wrote: > [snip excessive quotations] > Aah. Understood. Apologies for the "noobishness" :) Noobishness can be tolerated for a "reasonable" time, especially when the "noob" actively seeks to improve his skills, as you are doing, so kudos to you

Re: Python 3 is killing Python

2014-07-16 Thread Rick Johnson
On Wednesday, July 16, 2014 9:27:56 AM UTC-5, Frank Millman wrote: > 2. Those adversely affected by the change are very vocal, > but we hear very little from those who have benefited from > it. This is to be expected - they are just getting on with > developing in Python3 and have no need to get i

Re: Python 3 is killing Python

2014-07-16 Thread Rick Johnson
On Wednesday, July 16, 2014 6:00:16 PM UTC-5, Mark Lawrence wrote: > I'm not aware of any mass exodus from core Python 3 to the > fork that has consistently proposed to give the world > Python 2.8. Do you know something that I don't? Well, currently at least, we don't even *need* a Python 2.8, no

Re: Python 3 is killing Python

2014-07-16 Thread Rick Johnson
On Wednesday, July 16, 2014 10:16:00 PM UTC-5, Steven D'Aprano wrote: > If they are "shopping" for a scripting language, that > means they don't have one yet. Which means their users > have no existing scripts that need to be ported from > Python 2 to 3. Whatever language is chosen, whether it is >

Re: Python 3 is killing Python

2014-07-16 Thread Rick Johnson
On Wednesday, July 16, 2014 10:18:56 PM UTC-5, Tim Roberts wrote: > Steven D'Aprano wrote: > >For what little it is worth, if any one country won World War Two, it was > >the USSR. > I don't think that's quite accurate. It is certainly true > that the USSR suffered vastly more casualties than any

<    3   4   5   6   7   8   9   10   11   12   >