Re: Usenet Gateway

2018-05-24 Thread Grant Edwards
On 2018-05-24, Michael Torrie wrote: > On 05/23/2018 12:03 PM, Grant Edwards wrote: >> But IMO email pales in comparison to NNTP when there are more than a >> few messages per day per group. > > This is not my experience at all. I used to use Usenet back in the day, >

Re: why do I get syntax error on if : break

2018-05-26 Thread Grant Edwards
On 2018-05-25, asa32s...@gmail.com wrote: > here is the code, i keep getting an error, "break outside loop". You get the "break outside loop" error because you're using the break statement when you are not inside a loop. > if it is false just exit function You use the 'return' statement to exi

Re: Why exception from os.path.exists()?

2018-05-31 Thread Grant Edwards
name. You might as well have passed a floating point number or a dict. > Although I wouldn't consider this as anything even remotely like a > significant issue... Agreed, but the thread will continue for months and generate hundreds of followup. -- Grant Edwards grant.b.edward

Re: Why exception from os.path.exists()?

2018-06-01 Thread Grant Edwards
elevant. Python allows floating point numbers, so it is possible to express this question in python: os.path.exists(3.14159). Is the fact that the underlying OS/filesystem can't identify files via a floating point number relevent? Should it return False or raise ValueError? -- Grant

Re: Why exception from os.path.exists()?

2018-06-01 Thread Grant Edwards
On 2018-06-01, Steven D'Aprano wrote: > But since "\0" is the correct type (a string), and the fact that it > happens to be illegal on POSIX is a platform-dependent detail of no more > importance than the fact that "?" is illegal on Windows, it should be > treated as any other platform-depende

Re: Why exception from os.path.exists()?

2018-06-01 Thread Grant Edwards
On 2018-06-01, Steven D'Aprano wrote: > On Thu, 31 May 2018 17:43:28 +0000, Grant Edwards wrote: > >> Except on the platform in quetion filenames _don't_ contain an embedded >> \0. What was passed was _not_ a path/filename. > > "/wibble/rubbish/nobo

Re: Fwd: QUERY

2018-06-02 Thread Grant Edwards
On 2018-06-02, S Srihari wrote: > I AM UNABLE TO INSTALL PYTHON. > KINDLY HELP ME. You're not doing it wrong. To fix this, do it right instead. -- https://mail.python.org/mailman/listinfo/python-list

Re: Why exception from os.path.exists()?

2018-06-04 Thread Grant Edwards
I've never heard of anybody actually _using_ it, but it allowed some US government purchasing droid to check the "Posix Compliant" box on an acquisition checklist back in the 90's. -- Grant Edwards grant.b.edwardsYow! But they went to MARS

Re: Attachments

2018-06-05 Thread Grant Edwards
ir alias for their archive of python-list@python.org messages. Gmane is unaware of comp.lang.python. -- Grant Edwards grant.b.edwardsYow! I just remembered at something about a TOAD! gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python web server weirdness

2018-06-07 Thread Grant Edwards
our home directory? https://docs.python.org/3/library/http.server.html If the request was mapped to a directory, the directory is checked for a file named index.html or index.htm (in that order). If found, the file’s contents are returned; -- Grant Edwards grant.b.edwards

Re: Python web server weirdness

2018-06-07 Thread Grant Edwards
I expected was a directory listing of my current directory. > > What I got was Livejournal's front page. That's very odd. What I get is the message below: $ python3.5 -m http.server 8000 Serving HTTP on 0.0.0.0 port 8000 ... -- Grant Edwards grant.b.edwardsYow! I

Re: Posting warning message

2018-06-12 Thread Grant Edwards
er. That depends. If you're posting via NNTP, and your NNTP server supports CANCEL messages, and the posting hasn't been passed on to any peers yet, then you _can_ delete it. But, I'd bet cash money those conditions are not true for T Berger. -- Grant Edwards g

Re: Filters

2018-06-12 Thread Grant Edwards
On 2018-06-12, pyotr filipivich wrote: > It is Google. They will decide what is evil. and not do that. They've found it simpler to just declare than anything they do is, by definition, therefore not evil. -- Grant Edwards grant.b.edwardsYow! There's

Re: Posting warning message

2018-06-13 Thread Grant Edwards
you want whatever user interface you're using to send postings to hold onto them for 15 minutes to allow you a second chance to edit them, then you need to talk to whoever maintains the user interface that you use to send messages to the Usetnet group or mailing list. -- Grant Edwards

Re: Understanding memory location of Python variables

2018-06-16 Thread Grant Edwards
On 2018-06-16, ip.b...@gmail.com wrote: > I'm intrigued by the output of the following code, which was totally > contrary to my expectations. Can someone tell me what is happening? > myName = "Kevin" id(myName) > 47406848 id(myName[0]) > 36308576 id(myName[1]) > 2476000 What'

Re: Why an object changes its "address" between adjacent calls?

2018-06-18 Thread Grant Edwards
'TkDefaultFont') > > >>> > > The "address" of the Font object 'TkDefaultFont' changes, why? What makes you think it's the same object the second time and not a new object? -- Grant Edwards grant.b.edwardsYow! Make me look like at LINDA RONSTADT again!! gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-18 Thread Grant Edwards
ment changed the spec on a diode > from Schottky to conventional would be folk etymology? Or why Gene > being unsure of his spelling would? What does any of this have to do > with etymology, folk or genuine? I was wondering the same thing... -- Grant Edwards grant.b.edwar

Re: syntax difference

2018-06-19 Thread Grant Edwards
magining that Rick has a point, really, no. Many of us plonked Rick ages ago. Now we only see his posts when people followup and quote him. -- Grant Edwards grant.b.edwardsYow! ... If I had heart at

Re: syntax difference

2018-06-20 Thread Grant Edwards
esn't apply when one invokes Hitler/Nazis for the purpose of stopping the thread... -- Grant Edwards grant.b.edwardsYow! I joined scientology at at a garage sale!! gmail.com -- https:/

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-25 Thread Grant Edwards
with those two ways, Tim invented his own. > > https://bugs.python.org/issue3364 Brilliant! I don't know how I missed that. I'm not sure which would be more impressive: that Tim thought up the joke as described, or that it was made up ex post facto. Either one is brilliant. -- Gran

Re: Static variables [was Re: syntax difference]

2018-06-25 Thread Grant Edwards
Binding a name to a function is no different than binding it to an integer, list, string, or dict. Don't the global vs. local cost vs. benefit calculations apply equally well to function objects as they do to those other sorts of objects? -- Grant Edwards

Re: syntax difference

2018-06-25 Thread Grant Edwards
d input as text. What language are you bashing now? ;) -- Grant Edwards grant.b.edwardsYow! ANN JILLIAN'S HAIR at makes LONI ANDERSON'S gmail.com

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Grant Edwards
From: Grant Edwards On 2018-06-25, Steven D'Aprano wrote: > And the specific line you reference is *especially* a joke, one which > flies past nearly everyone's head: > > There should be one-- and preferably only one --obvious way to do it. > > Notice the dashes?

Re: configparser v/s file variables

2018-06-27 Thread Grant Edwards
Using configparser is far, far safer. -- Grant Edwards grant.b.edwardsYow! Psychoanalysis?? at I thought this was a nude gmail.comrap session!!! -- https://mail.python.org/mailman/li

Re: configparser v/s file variables

2018-06-27 Thread Grant Edwards
I would agree that > configparser is, if not safer, easier. And it doesn't require that the end user have any knowlege of Python syntax or sematics. -- Grant Edwards grant.b.edwardsYow! ... I want FORTY-TWO at TRYNEL

Re: configparser v/s file variables

2018-06-28 Thread Grant Edwards
red among multiple users, or has tricked somebody into including something from an untrusted source in an include file. Or there could be users who don't know what they're doing and unwittingly type something harmful into a config file: bad_command = os.system("rm -rf ~/*"

[OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Grant Edwards
0 has a built-in POTS modem, but it's never been used.] -- Grant Edwards grant.b.edwardsYow! Vote for ME -- I'm at well-tapered, half-cocked, gmail.com

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Grant Edwards
On 2018-06-28, Jim Lee wrote: > > > On 06/28/18 07:34, Grant Edwards wrote: >> OK, I've got to ask... >> >> Why are there still BBSes? >> >> Who even has a modem these days? [OK, I'll admit my 11 year old >> Thinkpad T500 has a built-in POT

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread Grant Edwards
On 2018-06-30, Gregory Ewing wrote: > Dan Stromberg wrote: >> On Thu, Jun 28, 2018 at 10:30 PM, Marko Rauhamaa wrote: >> >>>Well, the same security issue can be demonstrated without SO_REUSEADDR: >>> >>>The security issue can be real but is not directly related with >>>SO_REUSEADDR. >> >> Yes, i

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Grant Edwards
On 2018-07-02, Steven D'Aprano wrote: > In the long run, why do we always fear people coming from other > languages? Tribalism and fear of outsiders was bred into H. sapiens (and ancestors) millions of years ago? -- Grant Edwards grant.b.edwardsYow! My Aunt

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Grant Edwards
On 2018-07-02, T Berger wrote: > Is there any way to set posts to appear chronologically in tree > view? http://slrn.sourceforge.net/docs/slrn-manual.html -- Grant Edwards grant.b.edwardsYow! Now we can become at alco

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Grant Edwards
On 2018-07-02, Gene Heskett wrote: > On Monday 02 July 2018 17:17:21 Grant Edwards wrote: > >> On 2018-07-02, T Berger wrote: >> > Is there any way to set posts to appear chronologically in tree >> > view? >> >> http://slrn.sourceforge.net/docs/sl

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Grant Edwards
On 2018-07-03, Dan Stromberg wrote: > I used to write useful programs that ran in 256 bytes of RAM. Me too. Less than 10 years ago. In a real product. That's still shipping. -- Grant Edwards grant.b.edwardsYow! Are you menta

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-03 Thread Grant Edwards
ertheless, the later socket object cannot unilaterally take over a > socket using SO_REUSEADDR. The earlier socket object must have set the > same option previously. On what OS? In my experience, that's not true on Linux or BSD Unix. -- Grant Edwards

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-03 Thread Grant Edwards
On 2018-07-03, Grant Edwards wrote: > On 2018-07-01, Marko Rauhamaa wrote: >> Gregory Ewing : >> >>> I don't see how the address-reuse timeout can be a security measure, >>> because the process trying to take over the address can easily >

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-03 Thread Grant Edwards
On 2018-07-03, Grant Edwards wrote: > On 2018-07-03, Grant Edwards wrote: >> On 2018-07-01, Marko Rauhamaa wrote: >>> Gregory Ewing : >>> >>>> I don't see how the address-reuse timeout can be a security measure, >>>> because the process tr

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Grant Edwards
On 2018-07-03, Steven D'Aprano wrote: > On Tue, 03 Jul 2018 14:24:26 +0000, Grant Edwards wrote: >> On 2018-07-03, Dan Stromberg wrote: >> >>> I used to write useful programs that ran in 256 bytes of RAM. >> >> Me too. >> >> Less than

Re: about main()

2018-07-06 Thread Grant Edwards
On 2018-07-05, Jim Lee wrote: > Take a village of people. They live mostly on wild berries. It's completely orthogonal to your point of course, but I thought villages happened precisely because people had stopped living off wild stuff and had adopted organized agriculture... -- Grant

Re: about main()

2018-07-06 Thread Grant Edwards
teach anything in school anymore? Tanning leather for > instance involves a long soaking in strong tea, and doesn't name the > brand or genus of the tea, the important part was the tannic acid > content. IIRC, oack leaves/chips work well also. -- Grant Edwards grant.b.

Re: about main()

2018-07-06 Thread Grant Edwards
On 2018-07-06, Jim Lee wrote: > > Pedantics again. Didn't even get the point before tearing apart the > *analogy* rather than the *point itself*. Jim Lee, this is the Internet. Intenet, this is Jim Lee. :) -- Grant Edwards grant.b.edwardsYow! I&#x

Re: about main()

2018-07-06 Thread Grant Edwards
On 2018-07-06, Jim Lee wrote: > On 07/06/18 11:25, Grant Edwards wrote: >> On 2018-07-06, Jim Lee wrote: >> >>> Pedantics again. Didn't even get the point before tearing apart the >>> *analogy* rather than the *point itself*. >> Jim Lee, this is

Re: Users banned

2018-07-16 Thread Grant Edwards
e way or another. I'm sure many of us have been guilty of one or both at some time or another. I think the level of "persistence" is the key. -- Grant Edwards grant.b.edwardsYow! I represent a at sa

Re: Cult-like behaviour [was Re: Kindness]

2018-07-16 Thread Grant Edwards
't look like it's been intentionally obfuscated. -- Grant Edwards grant.b.edwardsYow! I represent a at sardine!! gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Bit twiddling homework

2018-07-20 Thread Grant Edwards
common use where an ADD is faster than an OR unless somebody shows me the processor spec sheet. -- Grant Edwards grant.b.edwardsYow! These PRESERVES should at be FORCE-FED to PENTAGON gmail.com

Re: [OT] Bit twiddling homework

2018-07-20 Thread Grant Edwards
On 2018-07-20, Chris Angelico wrote: > On Sat, Jul 21, 2018 at 1:14 AM, Grant Edwards > wrote: >> On 2018-07-20, Dennis Lee Bieber wrote: >> >>> While I suspect Python isn't micro-optimizing, take into account >>> that most processors do have an "

Re: Writing bytes to stdout reverses the bytes

2018-08-19 Thread Grant Edwards
On 2018-08-20, Steven D'Aprano wrote: > When I write bytes to stdout, why are they reversed? > > [steve@ando ~]$ python2.7 -c "print('\xfd\x84\x04\x08')" | hexdump > 000 84fd 0804 000a > 005 They aren't. You're being fooled by the default output format of hexdump. By default, it displa

Re: Writing bytes to stdout reverses the bytes

2018-08-19 Thread Grant Edwards
On 2018-08-20, Steven D'Aprano wrote: > On Mon, 20 Aug 2018 00:31:35 +, Steven D'Aprano wrote: > >> When I write bytes to stdout, why are they reversed? > > Answer: they aren't, use hexdump -C. One might think that dumping out bytes in the correct order ought to be the default format for hexd

Re: Writing bytes to stdout reverses the bytes

2018-08-19 Thread Grant Edwards
On 2018-08-20, Chris Angelico wrote: > On Mon, Aug 20, 2018 at 11:12 AM, Grant Edwards > wrote: >> On 2018-08-20, Steven D'Aprano wrote: >>> On Mon, 20 Aug 2018 00:31:35 +, Steven D'Aprano wrote: >>> >>>> When I write bytes to stdout, why

Re: Writing bytes to stdout reverses the bytes

2018-08-19 Thread Grant Edwards
On 2018-08-20, Ben Bacarisse wrote: > Grant Edwards writes: > >> On 2018-08-20, Steven D'Aprano wrote: >>> On Mon, 20 Aug 2018 00:31:35 +, Steven D'Aprano wrote: >>> >>>> When I write bytes to stdout, why are they reversed? >>> &

Re: Writing bytes to stdout reverses the bytes

2018-08-20 Thread Grant Edwards
On 2018-08-20, Chris Angelico wrote: > On Mon, Aug 20, 2018 at 12:01 PM, Grant Edwards >> What do you mean "run it as hd"? >> [... Calling via 'hd' alias makes no difference ...] > Your system is different from mine, then. No doubt. :) > rosuav@sikorsky

Re: Question about floating point

2018-08-28 Thread Grant Edwards
etween what you see in base-10 and the real values in base-2 _is_always_exact_. 2. The _operations_ (multiplicaton/division/addition/subtraction) _are_not_always_exact_. Even if you start with values that map exactly from base-10 to base-2 (some do) doing operations on them may not produce an exact result. -- Grant Edwards grant.b.edwardsYow! Spreading peanut at butter reminds me of gmail.comopera!! I wonder why? -- https://mail.python.org/mailman/listinfo/python-list

Re: Shall I worry about python2/3 compatibility when using library?

2018-08-31 Thread Grant Edwards
ort of thing is less work in Python 2. -- Grant Edwards grant.b.edwardsYow! Wait ... is this a FUN at THING or the END of LIFE in gmail.comPetticoat Junction?? -- https://mail.python.org/m

Re: Verifying the integrity/lineage of a file

2018-09-04 Thread Grant Edwards
he set of people who write software without intending to use it is pretty small... -- Grant Edwards grant.b.edwardsYow! ... the MYSTERIANS are at in here with my CORDUROY gmail.comSOAP D

Re: Verifying the integrity/lineage of a file

2018-09-05 Thread Grant Edwards
he set of people who write software without intending to use it is pretty small... -- Grant Edwards grant.b.edwardsYow! ... the MYSTERIANS are at in here with my CORDUROY gmail.comSOAP D

Re: About how to connect python 3.7 with geany

2018-09-19 Thread Grant Edwards
On 2018-09-19, Singamaneni Saikiran wrote: > It was showing some error please help me with a reply to solve this. You need to make changes to it. HTH... -- Grant Edwards grant.b.edwardsYow! I'm ANN LANDERS!! at

cx_Freeze window app path question

2018-09-28 Thread Grant Edwards
en you run the .exe from that arbitrary location, is it guaranteed that it won't try to find/use python modules or libraries from outside that installed build directory tree? -- Grant Edwards grant.b.edwardsYow! As President I have at

Re: This thread is closed [an actual new thread]

2018-10-02 Thread Grant Edwards
, and frankly the statement Agreed. > "Continued considerate posts will be discarded" is outrageous. Agreed. > I have been unimpressed with the moderation team for some weeks now, but > this is just not acceptable. Agreed. -- Grant Edwards grant.b.edw

Re: Creating Win .exe file from *.py on Linux

2018-10-02 Thread Grant Edwards
On 2018-10-02, John Doe wrote: > Hello World > > Is it possible to create on Linux win .exe file from *.py file? Yes... if you run on Linux a VM instance that's running Windows? -- Grant Edwards grant.b.edwardsYow! Do you guys know we

Re: Python indentation (3 spaces)

2018-10-08 Thread Grant Edwards
aces (or vice versa) or - worse > - just some of them. It is safer to disallow tabs completely and > mandate a certain number of spaces per indentation level. Indeed. That's the only thing that actually works. -- Grant Edwards grant.b.edwardsYow! Being a BALD HERO

Re: how to replace line on particular line in file[no need to write it back whole file again]

2018-10-13 Thread Grant Edwards
On 2018-10-13, Dennis Lee Bieber wrote: > However -- my point was that those formats were supported natively at > the OS level, not some language utility library working on top of the basic > streams. > > A more recent (my age shows) example would be the features in DEC VMS > Record M

Re: Python indentation (3 spaces)

2018-10-13 Thread Grant Edwards
On 2018-10-13, Peter J. Holzer wrote: > >> For "just use tabs" to work, all of those tools would have to >> magically recognize that they're looking at Python source and adjust >> the tab size accordingly. That isn't going to happen. > > Well, no. The idea of "just use tabs" isn't have a differen

Re: Python indentation (3 spaces)

2018-10-14 Thread Grant Edwards
On 2018-10-14, Christian Gollwitzer wrote: > Am 14.10.18 um 02:45 schrieb Grant Edwards: >> On 2018-10-13, Peter J. Holzer wrote: >>> >>>> For "just use tabs" to work, all of those tools would have to >>>> magically recognize that they'

Re: Does this behavior have a better design pattern?

2018-11-08 Thread Grant Edwards
mean that the source code is easy to understand and reason about. I don't worry about "efficiency" unless testing shows that the simple, clear solution isn't efficient enough to meet requirements. -- Grant Edwards grant.b.ed

Re: [stdlib-sig] Can imaplib be improved?

2016-03-29 Thread Grant Edwards
s pretty nice to work with: https://pypi.python.org/pypi/IMAPClient https://bitbucket.org/mjs0/imapclient http://freshfoo.com/presentations/imapclient-intro/#/ Perhaps it (or something like it) could be added to the std library alongside the current imaplib. -- Grant Edwards

pygtk button right/middle click

2016-03-30 Thread Grant Edwards
on widget really incapable of handling left or middle mouse buttons or shift/ctrl/alt modifiers? -- Grant Edwards grant.b.edwardsYow! CHUBBY CHECKER just at had a CHICKEN SANDWICH in gmail.comdowntown DULUTH! -- https://mail.python.org/mailman/listinfo/python-list

Re: pygtk button right/middle click

2016-03-30 Thread Grant Edwards
On 2016-03-30, Chris Angelico wrote: > On Thu, Mar 31, 2016 at 2:36 AM, Grant Edwards > wrote: >> I'm trying to figure out how to get a pygtk button respond to >> somehting other than just a simple "left click". With a standard >> 3-button mouse, X11 prov

Re: pygtk button right/middle click

2016-03-30 Thread Grant Edwards
missing the clues required to use those two pieces. -- Grant Edwards grant.b.edwardsYow! My face is new, my at license is expired, and I'm gmail.comunder a doctor's care -

Re: pygtk button right/middle click

2016-03-30 Thread Grant Edwards
On 2016-03-30, Grant Edwards wrote: > On 2016-03-30, Wildman wrote: > >>> Is the gtk button widget really incapable of handling left or middle >>> mouse buttons or shift/ctrl/alt modifiers? >> >> This might help... >> >> http://faq.pygtk.org/index

Re: The next major Python version will be Python 8

2016-04-01 Thread Grant Edwards
new opinionated style, will require everyone to >> follow a single timezone: Europe/Amsterdam. > > Not bad but it would have to be Zulu (GMT) Nope, my vote is for TAI. It's even more opinionated. That whole making the time agree with the changing rotation of the Earth thing is just too wishy-washy. -- Grant Edwards grant.b.edwardsYow! ... I don't like FRANK at SINATRA or his CHILDREN. gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: one-element tuples

2016-04-11 Thread Grant Edwards
xpect instead? That's still unclear. I must admit this is one of the best trolls I've seen in a while... -- Grant Edwards grant.b.edwardsYow! GOOD-NIGHT, everybody at ... Now I have to go

Re: one-element tuples

2016-04-11 Thread Grant Edwards
f parsing non-Python data with eval(). And you problably shouldn't think of parsing Python data with eval() either -- but for different reasons: It's very difficult to use eval() safely. -- Grant Edwards grant.b.edwardsYow! I want you to MEMORIZE

Is threading better on Usenet or gmane?

2016-04-11 Thread Grant Edwards
oken if one reads the list on gmane? Everytime I decide to try to do a direct comparison, I can't find enough thread breaks to tell if there's a significant difference. -- Grant Edwards grant.b.edwardsYow! Somewhere in Tenafly,

Re: one-element tuples

2016-04-11 Thread Grant Edwards
On 2016-04-11, Fillmore wrote: > On 04/11/2016 10:10 AM, Grant Edwards wrote: > >>> What behaviour did you expect instead? That's still unclear. >> >> I must admit this is one of the best trolls I've seen in a while... > > shall I take it as a compliment

Re: Is threading better on Usenet or gmane?

2016-04-11 Thread Grant Edwards
ch includes gmane). I had read most of the thread on that change, but was still confused about exactly what was getting fixed. Thanks for clarifying it. -- Grant Edwards grant.b.edwardsYow! I'll eat ANYTHING at that&#x

Re: Is threading better on Usenet or gmane?

2016-04-11 Thread Grant Edwards
On 2016-04-11, Grant Edwards wrote: I just finished checking a very recent thread containing 67 articles by pointing slrn at news.panix.com for the Usenet version and at news.gmane.com for the mailing-list version. Both servers appeared to show the same set of 67 articles (that alone is pretty

Re: Is threading better on Usenet or gmane?

2016-04-11 Thread Grant Edwards
On 2016-04-11, Grant Edwards wrote: > On 2016-04-11, Grant Edwards wrote: > > I just finished checking a very recent thread containing 67 articles > by pointing slrn at news.panix.com for the Usenet version and at > news.gmane.com for the mailing-list version. [...] > On the

Re: Enum questions.

2016-04-13 Thread Grant Edwards
simply for storage rather than meaning. FWIW, as an old Pascal programmer, I too would have been surprised that an "enum" is not ordinal and doesn't support a next/prev and iteration. As an old C programmer, not so much. :) -- Grant Edwards grant.b.edwards

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Grant Edwards
On 2016-04-16, Dennis Lee Bieber wrote: > I still miss the Amiga -- in which one could /push/ a window to the > back of the stack while still retaining input focus! Made it nice for > transcribing stuff from a visible window to a text input region while it > was obscured. I do that all the time

Re: Moderation and slight change of (de facto) policy

2016-04-18 Thread Grant Edwards
client at news.gmane.org). If a mailing list doesn't allow to to disable delivery, then it's usually pretty trivial to set up a filter to toss all messages received from that list into /dev/null. -- Grant Edwards grant.b.edwardsYow! ... I want to perform

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Grant Edwards
just drawing pictures, pointing, and grunting? -- Grant Edwards grant.b.edwardsYow! What a COINCIDENCE! at I'm an authorized "SNOOTS gmail.comOF THE STARS" dealer!! -- http

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Grant Edwards
On 2016-04-19, Random832 wrote: > It does look like some attention may need to be given to gmane > (either to allow posts to continue to be submitted, or to notify > gmane that the list should be put in "Non-public (posting through > Gmane allowed for list members)" mode. While there is such a m

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Grant Edwards
On 2016-04-19, Chris Angelico wrote: > On Wed, Apr 20, 2016 at 6:50 AM, Ben Finney > wrote: >>> > On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: >>> > > And more generally that programmers sticking to text when rest of world >>> > > has moved on is rather backward: >> >> You haven't supported

Re: Scraping email to make invoice

2016-04-25 Thread Grant Edwards
parse it and get out the relevant information. Warning: don't use the basic imaplib. IMAP is a miserable protocol, and imap lib is too thin a wrapper. It'll make you bleed from the ears and wish you were dead. Use imapclient or imaplib2. I've used both (with Gmail's IMAP serve

Re: Writing different sections into a file

2016-04-25 Thread Grant Edwards
. Append data to each as desired and then write them out to a file when you're done. If that's not workable, explain why, and we can tell you what to try next (probably a stringio for each section, or a list of strings or byte-strings for each section, or temporary files). -- Grant Ed

Re: Scraping email to make invoice

2016-04-25 Thread Grant Edwards
On 2016-04-25, Michael Torrie wrote: > On 04/25/2016 08:39 AM, Grant Edwards wrote: >> Your normal gmail password is used for IMAP. > > Actually, no, unless you explicitly tell Google to allow "less-secure" > authentication. Otherwise you are required to set up a spe

Re: How to read from serial port?

2016-04-26 Thread Grant Edwards
y/stdtypes.html http://www.diveintopython3.net/strings.html http://pythoncentral.io/encoding-and-decoding-strings-in-python-3-x/ https://www.safaribooksonline.com/library/view/fluent-python/9781491946237/ch04.html -- Grant Edwards grant.b.edwardsYow! I haven't been married

Re: Why does pathlib not have is_readable() & things like that?

2016-04-28 Thread Grant Edwards
hen open the output file before you do the GET. Or just do os.access("directory/where/you/want/to/open/a/file",os.W_OK) -- Grant Edwards grant.b.edwardsYow! Jesus is my POSTMASTER at GENERAL ... gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: What should Python apps do when asked to show help?

2016-04-28 Thread Grant Edwards
stuff to stdout you can add whatever other options you like that run pagers, start up web browsers, or show mp4 movies on the wall without annoying grouchy old Unix users like me. ;) -- Grant Edwards grant.b.edwardsYow! FOOLED you! Absorb

Re: What should Python apps do when asked to show help?

2016-04-28 Thread Grant Edwards
On 2016-04-28, Random832 wrote: > > > On Thu, Apr 28, 2016, at 13:33, Grant Edwards wrote: >> As long as -? -h --help just write stuff to stdout you can add >> whatever other options you like that run pagers, start up web >> browsers, or show mp4 movies on the wall w

Best way to do subversion stuff

2016-04-28 Thread Grant Edwards
s approach fairly easy. It might be faster to write something special-purpose from scratch than to figure out the internals of PySvn and modify it to add the operations/options I want. Any recommendations? -- Grant Edwards grant.b.edwardsYow! Finally,

Re: What should Python apps do when asked to show help?

2016-04-28 Thread Grant Edwards
On 2016-04-28, Marko Rauhamaa wrote: > Grant Edwards : > >> On 2016-04-28, Random832 wrote: >>> One disadvantage is that you have to compose two forms of >>> documentation. >> >> Only if you want two forms of documentation. >> >> If you add a

Re: What should Python apps do when asked to show help?

2016-04-28 Thread Grant Edwards
On 2016-04-28, Random832 wrote: > On Thu, Apr 28, 2016, at 15:39, Grant Edwards wrote: >> That's fine. If you want two or three forms of documentation then you >> prepare two or three forms of documentation. >> >> Adding an option to run the default 'help&

Re: Why does pathlib not have is_readable() & things like that?

2016-04-29 Thread Grant Edwards
On 2016-04-29, eryk sun wrote: > On Fri, Apr 29, 2016 at 6:51 AM, Jussi Piitulainen > wrote: >> Adam Funk writes: >>> On 2016-04-28, Grant Edwards wrote: >> >>>> Or just do os.access("directory/where/you/want/to/open/a/file",os.W_OK) >>&g

Re: What should Python apps do when asked to show help?

2016-04-30 Thread Grant Edwards
On 2016-05-01, Random832 wrote: > On Sat, Apr 30, 2016, at 19:51, c...@zip.com.au wrote: >> _When_ they want a pager. > > Why would they need an environment variable at all in that case, rather > than explicitly invoking the pager by name? We don't want to use a PAGER variable to specify when we

Re: What should Python apps do when asked to show help?

2016-05-01 Thread Grant Edwards
On 2016-05-01, Chris Angelico wrote: > On Sun, May 1, 2016 at 3:24 PM, wrote: >> Yes, PAGER=cat would make "man" also not page, and likely almost everything. >> And yet I am unwilling to do so. Why? >> >> On reflection, my personal problems with this approach are twofold: >> >> - I want $PAGER t

Re: What should Python apps do when asked to show help?

2016-05-01 Thread Grant Edwards
On 2016-05-01, Marko Rauhamaa wrote: > Grant Edwards : > >> On 2016-05-01, Chris Angelico wrote: >>> Okay. How is an app supposed to know whether or not to use a pager? >> Command line option. >> >>> How do you expect them to mindread? >> Nope, jus

Re: What should Python apps do when asked to show help?

2016-05-01 Thread Grant Edwards
On 2016-05-01, Steven D'Aprano wrote: > On Mon, 2 May 2016 02:30 am, Grant Edwards wrote: > >>> In discussions like these, it would be important to draw from >>> precedents. Are there commands that have such an option? >> >> It's pretty rare.  

Re: What should Python apps do when asked to show help?

2016-05-02 Thread Grant Edwards
on this Mac in terminals. It is a > very nice to use UNIX in many regards. I include what you're doing under the category "Unix". When I talk about "OS X", I mean what my 84 year old mother is using. I assumed everybody thought that way. ;) -- Grant Edw

Re: Not x.islower() has different output than x.isupper() in list output...

2016-05-03 Thread Grant Edwards
medium-r-normal-*-18-120-*-*-*-90-iso10646-*) Expecting upper/lower operations to be 100% invertible is probably a ASCII-centric mindset that will falls over as soon as you start dealing with non-ASCII encodings. -- Grant Edwards grant.b.edwardsYow! Xerox your lunc

Re: After a year using Node.js, the prodigal son returns

2016-05-04 Thread Grant Edwards
n [Regarding Python] Its stood the test of time, has some great standards, libraries, its easy to debug and performs very well. Sure it has its worts. It even makes Beer! Talk about "batteries included"... -- Grant Edwards grant.b.edwards

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