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

2018-05-31 Thread Grant Edwards
int 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.edwardsYow! You were s'posed

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

Re: Usenet Gateway

2018-05-24 Thread Grant Edwards
On 2018-05-24, Michael Torrie <torr...@gmail.com> 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

Re: Usenet Gateway

2018-05-23 Thread Grant Edwards
mparison to NNTP when there are more than a few messages per day per group. -- Grant Edwards grant.b.edwardsYow! ... I have read the at INSTRUCTIONS ... gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Usenet Gateway (was: Spam levels.)

2018-05-23 Thread Grant Edwards
s of mailing lists (I let gmane do that). -- Grant Edwards grant.b.edwardsYow! I have many CHARTS at and DIAGRAMS.. gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Spam levels.

2018-05-22 Thread Grant Edwards
t;real" Usenet, but it's pretty difficult to glean the the signal from the noise created by people with broken MUAs and/or NNTP clients. It's actually pretty impressive it all works as well as it does... In any case, ignoring all postings from Google Groups is recommended. -- Grant Edwards

Tkinter and root vs. Wayland

2018-05-22 Thread Grant Edwards
or whatnot? Can Python multiprocessing be used in this way? -- Grant Edwards grant.b.edwardsYow! If our behavior is at strict, we do not need fun! gmail.com -- https://mail.python.org

Re: Spam levels.

2018-05-22 Thread Grant Edwards
On 2018-05-22, Peter J. Holzer <hjp-pyt...@hjp.at> wrote: > On 2018-05-21 15:42:28 +0000, Grant Edwards wrote: >> I switched from Usenet to Gmane mainly because references headers are >> bit more consistent on Gmane, so threading works somewhat better. > > This is

Re: best way to remove leading zeros from a tuple like string

2018-05-22 Thread Grant Edwards
mpared to simply trying out the regex in a > Python console? Doesn't everybody have an executable file in their home directory named "testit.py" which is continually morphed to test different Python features? -- Grant Edwards grant

Re: Spam levels.

2018-05-21 Thread Grant Edwards
consistent on Gmane, so threading works somewhat better. [Regardless of whether I'm using Usenet or Gmane, I have slrn configured to plonk all posts made from google.groups.] -- Grant Edwards grant.b.edwardsYow! My nose feels like a

Re: syntax oddities

2018-05-18 Thread Grant Edwards
you > asked or give you enough instructions to actually get the job done that > they want you to do. And most people seem to believe that if they read more that the first two sentences of any e-mail it might trigger the apocolypse or give their cat scabies or something else dreadful.

Re: Python - requests - forms - web scraping - how to deal with multi stage forms

2018-05-17 Thread Grant Edwards
On 2018-05-17, kret...@gmail.com <kret...@gmail.com> wrote: > https://stackoverflow.com/questions/50383210/python-requests-how-to-post-few-stages-forms Your point? -- Grant Edwards grant.b.edwardsYow! I had panca

Re: syntax oddities

2018-05-17 Thread Grant Edwards
May 2018 05:25:44 +0400, Abdur-Rahmaan Janhangeer wrote: >> And one such popular issue is how top-posting is evil. -- Grant Edwards grant.b.edwardsYow! Catsup and Mustard all at over the place! It's the

Re: seeking deeper (language theory) reason behind Python design choice

2018-05-16 Thread Grant Edwards
C >> >> About one and a half decades. > > That would still be plural decades. So would zero. ;) The only plural in English implies is that the quantity is not 1. It does _not_ imply the quantity is greater than 1. -- Grant Edwards

Re: Read data from .msg all files

2018-05-15 Thread Grant Edwards
On 2018-05-15, mahesh d <mahesh.tec...@gmail.com> wrote: > import glob _Please_ stop creating new threads for this question. I think this is the fifth thread you've started for what appears to be a single question. -- Grant Edwards grant.b.edwardsYow! Like I a

Re: Leading 0's syntax error in datetime.date module (Python 3.6)

2018-05-11 Thread Grant Edwards
that some of those computers didn't run Windows. Of course not, everything ran Linux back in the good old days. -- Grant Edwards grant.b.edwardsYow! PIZZA!! at gmail.com -- http

Re: Leading 0's syntax error in datetime.date module (Python 3.6)

2018-05-11 Thread Grant Edwards
y listings and machine documentation generally used octal for the same reason: the 16-bit instruction word was internally divided into a number of 3-bit fields. -- Grant Edwards grant.b.edwardsYow! Now that I have my at "APPLE", I comprehend COST gmail.comACCOUNTING!! -- https://mail.python.org/mailman/listinfo/python-list

Re: Leading 0's syntax error in datetime.date module (Python 3.6)

2018-05-11 Thread Grant Edwards
ll use those instructions when the size of the object being read is 8 bits. -- Grant Edwards grant.b.edwardsYow! An INK-LING? Sure -- at TAKE one!! Did you BUY any gmail.comCOMMUNIST UNIFORMS?

Re: Leading 0's syntax error in datetime.date module (Python 3.6)

2018-05-10 Thread Grant Edwards
name, 644); // second parameter is actually 420 base 10 Aaargh. That's awful. I didn't think it was possible for my opinion of PHP to get any lower. I was wrong. -- Grant Edwards grant.b.edwardsYow! I wonder if I could at

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread Grant Edwards
ap(fn,0,prot=mmap.PROT_READ) i = mm.find(bytes(sys.argv[2],encoding='UTF-8')) print(i) The above code works for me, but I don't know how perfomance compares with other methods. I think the mmap() signature is slightly different on Windows. -- Grant Edwards grant.b.edwardsYow! Not SENSU

Re: Most pythonic way to implement byte stuffing algorithm

2018-04-17 Thread Grant Edwards
Yow, that's ugly -- I don't think I'd be able to tell you what it actually does without actually running it. If speed is that important, I might just write a function in C and call it with ctypes. :) -- Grant Edwards grant.b.edwardsYow! HAIR TONICS, please!!

Re: [OT] multicore/cpu history

2018-04-11 Thread Grant Edwards
a modern multi-core CPU. -- Grant Edwards grant.b.edwardsYow! All of life is a blur at of Republicans and meat! gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: want to export some of the packets from a big pacp file to another file.

2018-04-05 Thread Grant Edwards
evelopment/LibpcapFileFormat You should be able to use ctypes to directly access the winpcap library if you want to: https://www.winpcap.org/ -- Grant Edwards grant.b.edwardsYow! ! Up ahead! It's a at DONUT HUT!!

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Grant Edwards
On 2018-03-31, Etienne Robillard wrote: > Are you trolling? Do you understand that a modern mobile device > typically require a Internet subscription and an additional subscription > for the smart phone? Huh? What is "an internet subscription"? Why would you need two of

Re: (unknown)

2018-03-27 Thread Grant Edwards
On 2018-03-27, kevon harris wrote: > Unable to pull up IDLE after downloading Python 3.6.4 Ah. What happens when you push down instead of pull up? > Sent from Mail for Windows 10 Sent from mutt for Gentoo Linux -- https://mail.python.org/mailman/listinfo/python-list

Re: Entering a very large number

2018-03-25 Thread Grant Edwards
On 2018-03-25, bartc wrote: > On 25/03/2018 02:47, Steven D'Aprano wrote: > >> The Original Poster (OP) is concerned about saving, what, a tenth of a >> microsecond in total? Hardly seems worth the effort, especially if you're >> going to end up with something even slower. > >

Re: Putting Unicode characters in JSON

2018-03-23 Thread Grant Edwards
to either justify X or just ingore the subthreads about Y and Z. Except sometimes the answer _is_ that you really don't want to do X, and probably should do Y or Z. -- Grant Edwards grant.b.edwardsYow! Oh my GOD -- the

Re: Putting Unicode characters in JSON

2018-03-23 Thread Grant Edwards
administrator wont change things without orders from his boss, who won't order changes without because there's no budget for that. OK, perhaps it's not a _good_ reason by your metrics, but reasons like that are what you find in the real world. -- Grant Edwards grant.b

Re: [OT] Re: Style Q: Instance variables defined outside of __init__

2018-03-20 Thread Grant Edwards
On 2018-03-20, Tom Evans via Python-list <python-list@python.org> wrote: > On Tue, Mar 20, 2018 at 5:25 PM, Grant Edwards ><grant.b.edwa...@gmail.com> wrote: >> On 2018-03-20, Neil Cerutti <ne...@norwich.edu> wrote: >> >>> My automotive c

Re: Style Q: Instance variables defined outside of __init__

2018-03-20 Thread Grant Edwards
TM that cars with manual transmissions are much more likely to be RWD than are automatics. -- Grant Edwards grant.b.edwardsYow! Inside, I'm already at SOBBING! gmail.com -- https://mai

Re: Style Q: Instance variables defined outside of __init__

2018-03-20 Thread Grant Edwards
On 2018-03-20, Alister via Python-list <python-list@python.org> wrote: > but why would a functional programmer be programming an OOP class? Part of a 12-step recovery plan? ;) -- Grant Edwards grant.b.edwardsYow! Hello

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Grant Edwards
On 2018-03-01, Dennis Lee Bieber wrote: > The bandwidth normally used for voice grade telephone traffic is closer > to 6kHz (say 300Hz to 6.3kHz) Wow, that's pretty high -- where was that? Back when I was designing telephony electronics in US in the late 80's, POTS

Re: Detection of ultrasonic side channels in mobile devices with Python?

2018-02-28 Thread Grant Edwards
ys? > > Definitely tinfoil hat material here; expertise is completely immaterial. I miss Ludwig Plutonium. :/ -- Grant Edwards grant.b.edwardsYow! Nipples, dimples, at knuckles, NICKLES, gm

Re: help me ?

2018-02-27 Thread Grant Edwards
n that's so obscure and "clever" that it technically meets the stated requirement but is so far from what the instructor wanted that they don't get credit for it (and there's no way the student will be able explain how it works to the instructor). -- Grant Edwards grant.b.edwa

Re: Implicit conversion to str in str.join method?

2018-02-26 Thread Grant Edwards
sentation? Yes, that's an awful idea. PHP pulls stunts like that behind your back, and it's a huge source of bugs. -- Grant Edwards grant.b.edwardsYow! Let's all show human at CONCERN for REVERAND MOON's

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-20 Thread Grant Edwards
would > care whether he or she was running Python 2 or Python 3. Any ordinary Pythonista to deals with raw data "bytes" cares a great deal. There are major differences between the Py2 and Py3 in that area, and they're a royal PITA to deal with. -- Grant Edwards grant.

Re: Gmane seems to be gone

2018-02-18 Thread Grant Edwards
On 2018-02-18, Michelle Konzack <linux4miche...@tamay-dogan.net> wrote: > Am 2018-02-18 hackte Grant Edwards in die Tasten: > >> Does anybody have any idea what it would take to set up a private NNTP >> server that served articles from a dozen or so IMAP mailboxes? > &g

Re: Gmane seems to be gone

2018-02-18 Thread Grant Edwards
On 2018-02-18, Dennis Lee Bieber <wlfr...@ix.netcom.com> wrote: > On Sun, 18 Feb 2018 17:26:54 +0000 (UTC), Grant Edwards ><invalid@invalid.invalid> declaimed the following: > >> >>It was Yomura who picked up the archive and continued the gateway >>service a

Re: Gmane seems to be gone

2018-02-18 Thread Grant Edwards
On 2018-02-18, Grant Edwards <invalid@invalid.invalid> wrote: > On 2018-02-18, Chris Green <c...@isbd.net> wrote: >> Grant Edwards <invalid@invalid.invalid> wrote: >>> I've been dreading this moment for a couple years: it looks like >>> gmane.org is go

Re: Gmane seems to be gone

2018-02-18 Thread Grant Edwards
On 2018-02-18, Chris Green <c...@isbd.net> wrote: > Grant Edwards <invalid@invalid.invalid> wrote: >> I've been dreading this moment for a couple years: it looks like >> gmane.org is gone. The original operator/maintainer gave up a couple >> years ago and pulled

Gmane seems to be gone

2018-02-17 Thread Grant Edwards
I've been dreading this moment for a couple years: it looks like gmane.org is gone. The original operator/maintainer gave up a couple years ago and pulled the plug. Somebody else took over at that point. The Web UI was never revived, but the basic NNTP<->mailing-list gateway continue to work --

Re: How to work on a package

2018-02-08 Thread Grant Edwards
On 2018-02-07, Rob Gaddi <rgaddi@highlandtechnology.invalid> wrote: > On 02/07/2018 03:17 PM, Grant Edwards wrote: > >> How do you work on a package that must remain installed and usable the >> whole time you're working on it? >> >> IOW, only specific test apps

Re: How to work on a package

2018-02-07 Thread Grant Edwards
How do you work on a package that must remain installed and usable the whole time you're working on it? IOW, only specific test apps or apps run in a specific directory should get the "in-progress" foo module when they do an "import foo". -- Grant Edwards

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-02 Thread Grant Edwards
ane.org" which has quite a good search (in my view). 1) Gmane's search sucked. [Using Google to search the Gmane site worked fairly well.] 2) Gmane's search and webui has been absent for years. -- Grant Edwards grant.b.edwardsYow! ... If I had heart

Re: Trace back error just trying to run a simple import of requests

2018-02-02 Thread Grant Edwards
On 2018-02-01, MRAB <pyt...@mrabarnett.plus.com> wrote: > On 2018-02-01 22:32, Grant Edwards wrote: >> On 2018-02-01, William Sewell <william.sew...@wgu.edu> wrote: >> >>> My python script which I run daily just blew up. So, I went into >>> python

Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread Grant Edwards
w...@wgu.edu > > [WGU]<https://timetrade.com/app/wgu-mentoring/workflows/WGU100/schedule/?locationId=course_mentoring=CM=005a00CBjHbAAL> > > More about WGU in Fast Company, CNN, NPR, NBC Nightly News, Money, The > Atlantic, TIME, etc.<http://www.wgu.edu/>

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Grant Edwards
chable archive (I don't know, I've never used it). For me, google groups is nothing but a source of spam. -- Grant Edwards grant.b.edwardsYow! Let's send the at Russians defective gmail.com

Re: [OT] Dutch Reach [was Re: Where has the practice of sending screen shots as source code come from?]

2018-01-30 Thread Grant Edwards
he curb rather than the street. That may be mitigated by the high percentage of cars in US cities that have no passengers. -- Grant Edwards grant.b.edwardsYow! Hello. Just walk at along and try NOT to think

Re: [OT] Text as digitization [was Re: Where has the practice of sending screen shots as source code come from?]

2018-01-30 Thread Grant Edwards
o be fair, many of them do (struggle to actually program, that is). Spend any time at all reading PHP forums and you'll despair for humanity. Not only are they trying to build airports and radios out of bamboo and twine, they don't even know how to split cane or tie a knot. --

Re: [OT] Dutch Reach [was Re: Where has the practice of sending screen shots as source code come from?]

2018-01-30 Thread Grant Edwards
el parking lane" and the curb[*], in which case it's the passenger side doors that are used to catch bicycles rather than the driver's side doors. [*] This seems to be increasingly common here in the Minneapolis / St. Paul area -- Grant Edwards

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Grant Edwards
d it in a small cooler, and kept the TV volume low. Really. -- Grant Edwards grant.b.edwardsYow! The FALAFEL SANDWICH at lands on my HEAD and I gmail.combecome a VEGETARIAN ... -- h

Re: Where has the practice of sending screen shots as source code come from?

2018-01-28 Thread Grant Edwards
On 2018-01-28, Skip Montanaro wrote: > I've noticed it as well. I suspect it's from the Windows universe where > it's common to snip a bit of the screen which isn't pure text when asking > about some problematic GUI thing which is causing problems. It's definitely a

Re: Compression of random binary data (Posting On Python-List Prohibited)

2018-01-28 Thread Grant Edwards
On 2018-01-28, pendrysamm...@gmail.com wrote: > I have it in my head, just need someone to write the program for me, > I know nothing about data compression or binary data other than 1s > and 0s and that you can not take 2 number without a possible value > more or less

Re: error from Popen only when run from cron

2018-01-27 Thread Grant Edwards
On 2018-01-27, Larry Martell wrote: > I have a script that does this: > > subprocess.Popen(['service', 'some_service', 'status'], > stdout=subprocess.PIPE, stderr=subprocess.STDOUT) > > When I run it from the command line it works fine. When I run it from > cron I get: >

Re: How to use asyncore with SSL?

2018-01-20 Thread Grant Edwards
On 2018-01-20, Marko Rauhamaa <ma...@pacujo.net> wrote: > Grant Edwards <grant.b.edwa...@gmail.com>: [...] >> I won't argue with that. I think that non-blocking ssl-wrapped >> sockets _should_ have the same select/poll/send/recv API/semantics >> that normal socket

Re: How to use asyncore with SSL?

2018-01-20 Thread Grant Edwards
On 2018-01-20, Marko Rauhamaa <ma...@pacujo.net> wrote: > Grant Edwards <grant.b.edwa...@gmail.com>: > >> Asyncore seems to be based on fundamental assumptions that aren't true >> for non-blocking ssl sockets. > > Pot calling kettle black. > > OpenSSL i

Re: How to use asyncore with SSL?

2018-01-20 Thread Grant Edwards
On 2018-01-18, Grant Edwards <grant.b.edwa...@gmail.com> wrote: [regarding secure-smtpd -- a module based on smtpd and asyncore] > That makes the SSL support pretty much useless. > > I'm trying to fix that, but I can't find any information or > documentation about using

Re: How to use asyncore with SSL?

2018-01-19 Thread Grant Edwards
On 2018-01-19, Marko Rauhamaa <ma...@pacujo.net> wrote: > Grant Edwards <grant.b.edwa...@gmail.com>: > >> I've been trying to use the secure smtpd module from >> https://github.com/bcoe/secure-smtpd, but the SSL support seems to be >> fundamentally broken. [.

Re: Where are the moderators?

2018-01-19 Thread Grant Edwards
gmane's mail<->nntp service seems to be working. There are some "groups" where I've noticed that posting works, but traffic in the other direction mail->nntp is intermittent. -- Grant Edwards grant.b.edwardsYow! Did something bad

How to use asyncore with SSL?

2018-01-18 Thread Grant Edwards
to a simpler smtp server library that supports SSL would be great. The use of asyncore and multiprocessing process pools by this module is _way_ overkill for my needs and results in something that 1) doesn't work, and 2) can't be debugged. -- Grant Edwards grant.b.edwardsYow

Re: Spectre/Meltdown bug affecting Python ?

2018-01-06 Thread Grant Edwards
ike Google's "retpoline" should help: https://support.google.com/faqs/answer/7625886 Though I think I understand what the retpoline _is_, I don't really understand enough about the Spectre vulnerability say much else. -- Grant Edwards grant.b.edward

Re: Spectre/Meltdown bug affecting Python ?

2018-01-06 Thread Grant Edwards
to know if Python can mitigate hardware-specific > timing attacks. For CPython, probably not. Anything that Cpython tried to do could be trivially defeated by using something like ctypes to make calls to arbitrary machine code that was written to a file

Re: has sourceforge exposed the dirty little secret ?

2018-01-05 Thread Grant Edwards
and fix something. -- Grant Edwards grant.b.edwardsYow! ! I'm in a very at clever and adorable INSANE gmail.comASYLUM!! -- https://mail.python.org/mailman/listinfo/python-list

Re: Python goto

2017-12-29 Thread Grant Edwards
ok kindly on anybody who used it on project I ended up working on... -- Grant Edwards grant.b.edwardsYow! My Aunt MAUREEN was a at military advisor to IKE & gmail.comTINA TURNER!!

Re: Please tell me how to execute python file in Ubuntu by double

2017-12-15 Thread Grant Edwards
> >> I believe MacOSX also has the ability to store a file type as >> metadata, but it doesn't seem to be used much. > > They are still supported (-ish) by OS X, but have been superseded by Uniform > Type Identifiers. Where are the UTIs stored? Do OS X filesystems sti

Re: we want python software

2017-12-06 Thread Grant Edwards
get it yourself. -) >>> >> Well, at least try to be helpful: >> https://www.python.org/downloads/ > > This is LMGIFY. > If they say they are tech students - they should know how to work with Google. Yea, I've always been baffled by requests like that.

I guess I'd better plonk anything From: nospam.*

2017-11-27 Thread Grant Edwards
At least the phase delay through the feedback loop appears to be many hours. That should postpone disaster for a few days... -- Grant Edwards grant.b.edwardsYow! I'm sitting on my at SPEED QUEEN ... To me

Re: Artificial creating of [Lists], is it possible? the best way...

2017-11-17 Thread Grant Edwards
", "copyright", "credits" or "license" for more information. >>> x = [[] for i in 1,2,3,4] >>> x [[], [], [], []] >>> y = [[]] * 4 >>> y [[], [], [], []] >>> x[0].append(1) >>>

Re: converting numbers into words

2017-11-09 Thread Grant Edwards
the 70's... -- Grant Edwards grant.b.edwardsYow! Are we laid back yet? at gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Ideas about how software should behave

2017-11-07 Thread Grant Edwards
e you start messing with ctypes like this, all language > guarantees are out the window. In FORTRAN, the only language gurantees were 1) When running your program, you'd almost, but not always, get all of your cards back. 2) The probability (P) of finding an available IB

Re: Ideas about how software should behave

2017-11-07 Thread Grant Edwards
aguely remember being able to do that in some implementations of FORTRAN yonks ago: subroutine foo(i) i = 3 end subroutine func [...] foo(2) write(*,*) 2 output would be: 3 -- Grant Edwards grant.b.edwardsYow! If I pull this SWITCH at I'll be RITA HAYWORTH!! gmail.comOr a SCIENTOLOGIST! -- https://mail.python.org/mailman/listinfo/python-list

Re: Easiest way to access C module in Python

2017-11-06 Thread Grant Edwards
On 2017-11-06, John Pote wrote: > I have successfully used Python to perform unit and integration tests in > the past and I'd like to do the same for some C modules I'm working with > at work. There seem to be a number of ways of doing this but being busy > at work

Re: Thread safety issue (I think) with defaultdict

2017-11-03 Thread Grant Edwards
at you're doing and probably doesn't work well if you're a stack-overflow, cargo-cult, cut-and-paste programmer. But then again, what does? -- Grant Edwards grant.b.edwardsYow! Maybe I should have at asked for my Neutron Bomb

Re: String changing size on failure?

2017-11-01 Thread Grant Edwards
l to those or the original string, so it can share them. > > That explains why b is larger than a to begin with No, that size difference is due to the additional bytes required for the internal representation of the string. > but it doesn't explain why float(b) is changing the size of b.

Re: right list for SIGABRT python binary question ?

2017-11-01 Thread Grant Edwards
umb question: the actual address that gets corrupted >>varies from run to run (it may be the same "place" in the > > Since the process virtual memory space should be the same on each run Not with modern OS kernels: https://en.wikipedia.org/wiki/Address_space_layout_randomiza

Re: Just a quick question about main()

2017-10-27 Thread Grant Edwards
UI one, it's often far easier and faster to also include a main() for deveopment and testing of the functions provided to the GUI. -- Grant Edwards grant.b.edwardsYow! ONE LIFE TO LIVE for at ALL MY CHILDREN in ANOTHER

Re: how to read in the newsreader

2017-10-16 Thread Grant Edwards
On 2017-10-16, Paul Moore <p.f.mo...@gmail.com> wrote: > On 16 October 2017 at 15:41, Grant Edwards <grant.b.edwa...@gmail.com> wrote: >> On 2017-10-16, Terry Reedy <tjre...@udel.edu> wrote: >>> On 10/15/2017 10:50 PM, Andrew Z wrote: >>>> Gents

Re: how to read in the newsreader

2017-10-16 Thread Grant Edwards
t isn't carried on gmane, I don't bother with it. -- Grant Edwards grant.b.edwardsYow! Were these parsnips at CORRECTLY MARINATED in gmail.comTACO SAUCE? -- https://mail.python.org/mailman/listinfo/python-list

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

2017-10-13 Thread Grant Edwards
On 2017-10-14, Gregory Ewing wrote: > >> I doubt that either process is in widespread usage any longer as >> most manufacturers no incorporate a way to update the firmware of a >> device > > Magnetic core technology died out long before that, due to > inability to

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

2017-10-13 Thread Grant Edwards
her. There USED to be a difference, and everyone's > acknowledged this - PHP built up some inertia - but there's now no > real reason for it other than "it's popular, therefore people use it". Well, it's said that suffering builds character... What they don't tell you is what sort

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

2017-10-12 Thread Grant Edwards
On 2017-10-13, Stefan Ram <r...@zedat.fu-berlin.de> wrote: > Grant Edwards <grant.b.edwa...@gmail.com> writes: There is no such >>thing as a "byte" in C. > > ยป3.6 > > 1 byte > > addressable unit of data storage large enough to h

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

2017-10-12 Thread Grant Edwards
On 2017-10-12, Steve D'Aprano <steve+pyt...@pearwood.info> wrote: > On Fri, 13 Oct 2017 02:06 am, Grant Edwards wrote: > >> It sure was an education the first I wrote C code for >> a machine where >> >> 1 == sizeof char == sizeof int == sizeof long == sizeof

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

2017-10-12 Thread Grant Edwards
On 2017-10-12, Rhodri James <rho...@kynesim.co.uk> wrote: > On 12/10/17 16:06, Grant Edwards wrote: >> On 2017-10-12, Steve D'Aprano <steve+pyt...@pearwood.info> wrote: >>> On Thu, 12 Oct 2017 04:41 pm, Grant Edwards wrote: >>> >>>>> Even t

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

2017-10-12 Thread Grant Edwards
On 2017-10-12, Marko Rauhamaa <ma...@pacujo.net> wrote: > Grant Edwards <grant.b.edwa...@gmail.com>: > >> Using const with strings in C with amateurish libraries is a headache >> because _some_people_ will write their declarations so as to require >> pointers to

Re: Want to write a python code for sending and receiving frames over wifi/wlan0 using python

2017-10-12 Thread Grant Edwards
nt years, colleagues who do work with Windows have had to convert all of our applicatoins which used to use raw packets to use UDP instead. I'm told that recent windows versions have made raw packet access from userspace (even by admin apps) virtually impossible. -- G

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

2017-10-12 Thread Grant Edwards
On 2017-10-12, Steve D'Aprano <steve+pyt...@pearwood.info> wrote: > On Thu, 12 Oct 2017 04:41 pm, Grant Edwards wrote: > > >>> Even two >>> different C compilers could return different values. >> >> Nope. If sizeof char is not 1, then it's not C. &

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

2017-10-12 Thread Grant Edwards
implement the strstr(3) > prototype. Somebody must be lying through their teeth. That's indeed a problem. Personally, I would just use two prototypes: char *strcstr(const char *s, char *s); const char *cstrstr(const char *s, const char *s); Whether you want to invoke some linker-script magi

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

2017-10-12 Thread Grant Edwards
t qualifiers in C. Using const with strings in C with amateurish libraries is a headache because _some_people_ will write their declarations so as to require pointers to mutable strings even when they have no intention of mutating them. Those people should be hunted down and slapped with a

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

2017-10-11 Thread Grant Edwards
On 2017-10-12, Steve D'Aprano wrote: > I don't think anyone should expect that platform specific details like the > size of a char should be precisely the same between C and C++. I don't knwo about that. > Even two > different C compilers could return different

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

2017-10-11 Thread Grant Edwards
On 2017-10-11, Gregory Ewing wrote: > Neil Cerutti wrote: >> I dig >> const qualifiers, even though I'm comletely fine with their >> absence from Python. > > Out of curiosity, do you have any insights into why you > like them in C++, if you don't miss them in Python?

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

2017-10-11 Thread Grant Edwards
On 2017-10-11, Chris Angelico wrote: > But since it's the lowest-end sites that have traditionally driven > that demand for PHP, there's a general tendency for low-grade > programmers to gravitate to it, so there's a lot of really REALLY bad > code out there. And there are a

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

2017-10-11 Thread Grant Edwards
h stones in the world... >>>> >>> PHP seems (seemed?) popular for laying out web pages. Are their vastly >>> superior options? >> Python? Superior syntax for sure > > I believe that. What accounts for the popularity of PHP then? I ask myself that ev

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

2017-10-11 Thread Grant Edwards
On 2017-10-11, Bill <bill_nos...@whoknows.net> wrote: > Grant Edwards wrote: >> On 2017-10-11, Bill <bill_nos...@whoknows.net> wrote: >> >> >>> [...] I'm not here to "cast stones", I like Python. I just think >>> that you shouldn't

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

2017-10-11 Thread Grant Edwards
(usually not as bad as the > example), crop up often enough to be a nuisance. The easiest way to make stuff like that readable is to unroll them into a sequence of typedefs. But, a lot of people never really learn how to do that... -- Grant Edwards grant.b.edwardsYow

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

2017-10-11 Thread Grant Edwards
On 2017-10-11, Bill <bill_nos...@whoknows.net> wrote: > [...] I'm not here to "cast stones", I like Python. I just think > that you shouldn't cast stones at C/C++. Not while PHP exists. There aren't enough stones in the world... -- Grant Edwards gran

Re: Is there a way to globally set the print function separator?

2017-10-09 Thread Grant Edwards
ith a new name: def myprint(*args, **kw): print(*args, sep='', **kw) Redefining builtins is just going get you sworn at down the road a bit. If not by yourself, then by somebody else... -- Grant Edwards grant.b.edwardsYow! Used staples are good

Re: The "loop and a half"

2017-10-09 Thread Grant Edwards
+--+ > | Wayland | > | compositor | > +-+ > > > Which will get rid of the network transparency altogether. For all practial purposes, X11 network transparancy has been gone for years: it only works for apps that nobody cares about. I still use it occasionally

Re: The "loop and a half"

2017-10-09 Thread Grant Edwards
On 2017-10-09, Marko Rauhamaa <ma...@pacujo.net> wrote: > Grant Edwards <grant.b.edwa...@gmail.com>: > >> On 2017-10-09, alister via Python-list <python-list@python.org> wrote: >> >>> or if you want the luxury of a GUI editor simply ssh to the remot

Re: The "loop and a half"

2017-10-09 Thread Grant Edwards
longer usable via X forwarding at sub-gigabit network speeds. The toolkit designers have botched things up so that even the most trivial operation requires hundreds of round-trips between server and client. -- Grant Edwards grant.b.edwards

Re: The "loop and a half"

2017-10-09 Thread Grant Edwards
On 2017-10-09, Gregory Ewing <greg.ew...@canterbury.ac.nz> wrote: > Grant Edwards wrote: >> Which took it from RSX-11. Or probably more specifically from >> FILES-11. I woldn't be surprised if the enineers at DEC got it from >> somewhere else before that. >

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