Re: [Python-Dev] Remaining decisions on PEP 471 -- os.scandir()

2014-07-15 Thread Cameron Simpson
e; they are a failure of ergonomic design. Leaving off a flag should usually be like setting it to False. A missing flag is an "off" flag. For these reasons (and others I have not yet thought through:-) I am voting for a: followlinks=False optional parameter. If you want to fol

Re: [Python-Dev] Bytes path support

2014-08-20 Thread Cameron Simpson
cares to pay attention. It is a workable situation. Oh, and I reject Nick's characterisation of POSIX as "broken". It's perfectly internally consistent. It just doesn't match what he wants. (Indeed, what I want, and I'm a long time UNIX f

Re: [Python-Dev] Bytes path support

2014-08-21 Thread Cameron Simpson
On 21Aug2014 09:20, Antoine Pitrou wrote: Le 21/08/2014 00:52, Cameron Simpson a écrit : The "bytes in some arbitrary encoding where at least the slash character (and maybe a couple others) is ascii compatible" notion is completely bogus. There's only one special byte, the

Re: [Python-Dev] Sad status of Python 3.x buildbots

2014-09-02 Thread Cameron Simpson
ss to this old OS. As a negative data point, my GF runs Snow Leopard by choice and will not upgrade that machine; we've both got Mavericks laptops and there are major regressions in the UI and OS behaviour (Apple UI and apps, not Python). I would imagine she's not alone in resistin

Re: [Python-Dev] Sad status of Python 3.x buildbots

2014-09-02 Thread Cameron Simpson
al horror and the answer is "Are you crazy? Zero! Z-E-R-O!!" And of course most want to write code, not sysadm. I do both. Happy to help in a small way if wanted. Cheers, Cameron Simpson Maintainer's Motto: If we can't fix it, it ain't broke. __

Re: [Python-Dev] Critical bash vulnerability CVE-2014-6271 may affect Python on *n*x and OSX

2014-09-25 Thread Cameron Simpson
its `shell` argument default to False. However, `os.system` invokes the shell implicitly and is therefore a possible attack vector. Only if /bin/sh is bash :-) Not always the case, fortunately. Cheers, Cameron Simpson Death is life's way of telling you you've be

Re: [Python-Dev] Critical bash vulnerability CVE-2014-6271 may affect Python on *n*x and OSX

2014-09-25 Thread Cameron Simpson
outside your system deliver bash-exploit strings to bash scripts. Your cable/adsl modem? Probably an embedded Linux box, possibly using bash, and certainly a dhcp client of the ISP. Better still, for many people that same comprimisable modem is the DHCP _server_ for their home LAN... Cheers, C

Re: [Python-Dev] Critical bash vulnerability CVE-2014-6271 may affect Python on *n*x and OSX

2014-09-25 Thread Cameron Simpson
On 25Sep2014 21:30, Tres Seaver wrote: On 09/25/2014 08:59 PM, Cameron Simpson wrote: Your cable/adsl modem? Probably an embedded Linux box, possibly using bash, and certainly a dhcp client of the ISP. Better still, for many people that same comprimisable modem is the DHCP _server_ for their

Re: [Python-Dev] Critical bash vulnerability CVE-2014-6271 may affect Python on *n*x and OSX

2014-09-26 Thread Cameron Simpson
ism. IIRC you could export functions in ksh. Or maybe only aliases. But that implies most POSIX shells may support it. I've never seen the point myself; it is not a feature I've ever needed. Cheers, Cameron Simpson Follow! But! Follow only if ye be men of valor, for the entran

Re: [Python-Dev] Improvements for Pathlib

2014-11-08 Thread Cameron Simpson
have unwanted (and invisible until breakage becomes glaring) side effects. -1 on this element from me I'm afraid. Cheers, Cameron Simpson I couldn't think of anything else to do with it, so I put it on the web. ___ Python-Dev mailing list

Re: [Python-Dev] WebM MIME type in mimetypes module

2014-12-02 Thread Cameron Simpson
And there are definitely some .webm files on some websites I support. Can't say if they're more common in terms of hard data though. But if most browsers expect them, arguably we should recognise their existence. Usual disclaimer: I am not a python-dev. Cheers, Cameron Simpson The nice t

Re: [Python-Dev] Hi, I am new to this board and have a question

2015-02-04 Thread Cameron Simpson
urce as before and see what it says (configure, make, etc) Cheers, Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 471 (scandir): Add a new DirEntry.inode() method?

2015-02-13 Thread Cameron Simpson
des within the directory's filesystem, this is to be expected. Cheers, Cameron Simpson Uh, this is only temporary...unless it works. - Red Green ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Un

Re: [Python-Dev] Use ptyhon -s as default shbang for system python executables/daemons

2015-03-19 Thread Cameron Simpson
e supplier's repositories. Having a walled off "core" admin python as well seems very prudent. Cheers, Cameron Simpson conclude that this language as a tool is an open invitation for clever tricks; and while exactly this may be the explanation for some of its appeal, /viz./ to tho

Re: [Python-Dev] Use ptyhon -s as default shbang for system python executables/daemons

2015-03-22 Thread Cameron Simpson
as a data point, this cropped up on the Fedora list yesterday: I broke Yum (by messing with Python libs) http://www.spinics.net/linux/fedora/fedora-users/msg458069.html TL;DR: OP used pip on his system python. Yum broke. Probably hampered his attempts to repair, too. Cheers, Cameron Simpson

Re: [Python-Dev] Use ptyhon -s as default shbang for system python executables/daemons

2015-03-23 Thread Cameron Simpson
ught a non-standalone venv arranged sys.path to fall back to the source interpreter. Clearly I have not paid attention. Cheers, Cameron Simpson Yes, sometimes Perl looks like line-noise to the uninitiated, but to the seasoned Perl programmer, it looks like checksummed line-noise with a missi

Re: [Python-Dev] Tracker reviews look like spam

2015-05-12 Thread Cameron Simpson
you need a Sender: (though it wouldn't hurt), given that the From: is already a "system" like address (""Terry Reedy " as a mailing list would do. Cheers, Cameron Simpson On Tue, May 12, 2015 at 06:08:30PM -0400, Terry Reedy wrote: Gmail dumps patch review email in

Re: [Python-Dev] The current dict is not an "OrderedDict"

2017-11-09 Thread Cameron Simpson
d to debug, because (a) recognising the salient error situation may be hard to do and (b) reasoning about the failure is difficult when the language semantics are not what you thought they were. I think the two situations are not as parallel as you think. Cheers, Cameron Simpson (formerly

Re: [Python-Dev] assignment expressions: an alternative proposal

2018-04-24 Thread Cameron Simpson
e like that but I've certainly seen it advocated. I think the rationale was that it places the comparison value foremost in one's mind, versus the name being tested. I'm not persuaded, but it is another subjective situation. Cheers, Cameron Simpson

Re: [Python-Dev] PEP 498 f-string: please remove the special case for spaces

2015-08-10 Thread Cameron Simpson
ffs and other product failures in video form. While a phonetic play on the name "YouTube", the abbreviation also colloquially means just what you think it might. I can just imagine reciting one of these new strings out loud... Cheers, Cameron Simpson People shouldn't be allow

Re: [Python-Dev] PEP 498 f-string: please remove the special case for spaces

2015-08-11 Thread Cameron Simpson
On 11Aug2015 18:07, Greg Ewing wrote: Cameron Simpson wrote: To illustrate, there's a consumer rights TV snow here with a segment called "F.U. Tube", where members of the public describe ripoffs and other product failures in video form. While a phonetic play on the name

Re: [Python-Dev] bitwise operations for bytes and bytearray

2016-01-07 Thread Cameron Simpson
ed source of crypto bytes, yield encrypted versions of the bytes objects. ''' for bs in byteses: cbs = crypto_source.next_bytes(len(bs)) yield bs ^ cbs Cheers, Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.or

Re: [Python-Dev] unicode Exception messages in py2.7

2013-11-14 Thread Cameron Simpson
imarily security in the older RHEL streams). So of course the Python dates to the time of the release. I install a current Python 2.7 into /usr/local on many RHEL boxes and target that for custom code. -- Cameron Simpson There is this special biologist word we use for 'stable'. It is

Re: [Python-Dev] unicode Exception messages in py2.7

2013-11-14 Thread Cameron Simpson
exception escapes to the outside for reporting, if the reporting raises an exception (especially an "expectable" one like unicode coding/decoding errors), the reporting should have at least a layer of "ouch, report failed, try something uglier but more conservative". At least you

Re: [Python-Dev] Running the unit test as root/administrator

2013-12-03 Thread Cameron Simpson
On 03Dec2013 08:25, Guido van Rossum wrote: > I would be rather worried about some accidental Trojen running that way. Or even just a badly framed clean-up-temp-files step. -- Cameron Simpson manual, n.: A unit of documentation. There are always three or more on a given item. One is on

Re: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

2014-01-10 Thread Cameron Simpson
, bytes): yield thing else: yield str(thing).encode('ascii') Then one's embedding in PDF might become, more readably: data = b' '.join( bytify( [ 10, 0, obj, binary_image_data, ... ] ) ) Of course, bytify might be augmented with whatever encoding fac

Re: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

2014-01-11 Thread Cameron Simpson
On 11Jan2014 13:15, Juraj Sukop wrote: > On Sat, Jan 11, 2014 at 5:14 AM, Cameron Simpson wrote: > > data = b' '.join( bytify( [ 10, 0, obj, binary_image_data, ... ] ) ) > > Thanks for the suggestion! The problem with "bytify" is that some items > might r

Re: [Python-Dev] Trying to focus the whole bytes/str formatting discussion

2014-01-12 Thread Cameron Simpson
#x27;t even need a special mode, but have it raise a ValueError if the (default) encoding is None when an encoding became needed. Just my 2c on Brett's EIBTI vs PBP divide. I'll try to stay off this thread now and bikeshed only in the others... -- Cameron Simpson You can blip

Re: [Python-Dev] PEP 460 reboot

2014-01-14 Thread Cameron Simpson
CIIStructuredBytes > > ==== Possible alternate title: Common use case: bytes containing text sequences, especially ASCII Cheers, -- Cameron Simpson I think... Therefore I ride. I ride... Therefore I am. - Mark Pope

Re: [Python-Dev] PEP 460 reboot

2014-01-16 Thread Cameron Simpson
ms. Morally, this is the same as mojibake. Therefore I am firmly in the "fail loudly" camp: if the format string doesn't behave as you naively expected it to, find out early while you can easily fix it. Cheers, -- Cameron Simpson Motorcycles are like peanuts... who can sto

Re: [Python-Dev] News from asyncio

2014-02-02 Thread Cameron Simpson
hat the above computation is trivial. Just a thought, -- Cameron Simpson Artificial intelligence won't make a micrometer out of a monkeywrench. - Rick Gordon ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.o

Re: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2

2014-02-22 Thread Cameron Simpson
ssume ASCII. The PEP should be blatant. Otherwise I think the PEP is clear and reasonable. Cheers, -- Cameron Simpson ASCII n s. [from the greek] Those people who, at certain times of the year, have no shadow at noon; such are the inhabitatants of the torrid zone. - 183

Re: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2

2014-02-23 Thread Cameron Simpson
On 23Feb2014 16:31, Nick Coghlan wrote: > On 23 February 2014 13:47, Cameron Simpson wrote: > > On 22Feb2014 17:56, Ethan Furman wrote: > >> Please let me know if anything else needs tweaking. > >> [...] > >> This area of programming is characterized by a m

Re: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2

2014-02-23 Thread Cameron Simpson
a byte. > (You forgot "/U" representation (it's an antislah, but I don't > see the key on my Mac keyboard?).) My Mac has one above the "return" key. Um, non-English locale? Curious. Cheers, -- Cameron Simpson 16 October. I also asked Anthea how many

Re: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 2

2014-02-23 Thread Cameron Simpson
inary log. The classic example that comes to mind is syslog packets. I agree %a invites data mangling. One would hope it doesn't see use in wire protocols, only in debugging scenarios. Regrettably, syslog is such a binary logging protocol, purportedly for "text". Cheers, -- Cameron

Re: [Python-Dev] Python 4: don't remove anything, don't break backward compatibility

2014-03-10 Thread Cameron Simpson
ustification. But conversely, I'm dead against bringing forward version 4.0 just to break the expectation of breakage. Cheers, -- Cameron Simpson The nice thing about standards is that you have so many to choose from; furthermore, if you do not like any of them, you can just wait for nex

Re: [Python-Dev] PEP 469: Restoring the iterkeys/values/items() methods

2014-04-20 Thread Cameron Simpson
ython 3 mapping interface. Cheers, Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 469: Restoring the iterkeys/values/items() methods

2014-04-20 Thread Cameron Simpson
On 20Apr2014 20:12, Devin Jeanpierre wrote: On Sun, Apr 20, 2014 at 8:01 PM, Cameron Simpson wrote: Me too. I'm against iteritems and friends coming back. I've been burned in the past with the burden of writing a mapping class with the many methods such a thing must support; both i

Re: [Python-Dev] Where is our official policy of what platforms we do support?

2014-05-14 Thread Cameron Simpson
n whatever special mode/code is wanted. More context on the example patch that triggered this query? Just 2c, Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Accessing mailing list archives

2018-07-31 Thread Cameron Simpson
header. (Separate messages on "From " of course, just don't grab email addresses from it.) Cheers, Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Remove tempfile.mktemp()

2019-03-23 Thread Cameron Simpson
ser (yes the game may already be overin that case for other reasons). However, I wanted to make the point that the security issue isn't around creation but use - trusting the mktemp pathname to be the same state as it was earlier. Cheers, Cameron Simpson

Re: [Python-Dev] BDFL-Delegate appointments for several PEPs

2019-03-24 Thread Cameron Simpson
m the -m module itself, I don't think there should be any other direct effect on circular imports. Did you have a specific scenario in mind? Cheers, Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.o

Re: [Python-Dev] BDFL-Delegate appointments for several PEPs

2019-03-24 Thread Cameron Simpson
On 24Mar2019 23:22, Terry Reedy wrote: On 3/24/2019 10:01 PM, Terry Reedy wrote: On 3/24/2019 7:00 PM, Cameron Simpson wrote: Did you have a specific scenario in mind? I was thinking about IDLE and its tangled web of circular inports, but I am now convinced that this change will not affect

Re: [Python-Dev] BDFL-Delegate appointments for several PEPs

2019-03-25 Thread Cameron Simpson
On 25Mar2019 03:52, Terry Reedy wrote: On 3/25/2019 12:27 AM, Cameron Simpson wrote: I was thinking about IDLE and its tangled web of circular inports, but I am now convinced that this change will not affect it.  Indeed, idlelib/pyshell.py already implements idea of the proposal, ending with

Re: [Python-Dev] Strange umask(?)/st_mode issue

2019-03-29 Thread Cameron Simpson
x27;t show, if it is erratic (can't see why it would be though). Cheers, Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Strange umask(?)/st_mode issue

2019-04-01 Thread Cameron Simpson
the local directory containing the test tar file? If that works then you don't need any nasty privileged sudo use (which will just break on platforms without sudo anyway). Cheers, Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.org https:

Re: [Python-Dev] Strange umask(?)/st_mode issue

2019-04-01 Thread Cameron Simpson
On 01Apr2019 15:44, Steve Dower wrote: On 01Apr2019 1535, Cameron Simpson wrote: On 01Apr2019 09:12, Steve Dower wrote: On 30Mar2019 1130, Gregory P. Smith wrote: I wouldn't expect it to be the case in a CI environment but I believe a umask can be overridden if the filesystem is mo

Re: [Python-Dev] Overloading comparison operator for lists

2019-05-26 Thread Cameron Simpson
be part of the MRO of a subclass). Cheers, Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Re: Is "%zd" format is portable now?

2019-08-01 Thread Cameron Simpson
, indicates that the argument is of a signed type equivalent in size to a size_t. I know this is only one data point of many. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le

[Python-Dev] Re: Why does "except Ex as x" not restore the previous value of x?

2020-11-17 Thread Cameron Simpson
Type "help", "copyright", "credits" or "license" for more information. >>> def f(x): ... try: ... 1/0 ... except Exception as x: ... pass ... return x ... >>> f(3) Traceback

[Python-Dev] Re: Why does "except Ex as x" not restore the previous value of x?

2020-11-17 Thread Cameron Simpson
ckets) while shadows an earlier variable, and on exiting the scrope the common "err" variable is False again, indicating no error. Really irritating. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe s

[Python-Dev] Re: Which thing is "Development Mode"

2021-02-26 Thread Cameron Simpson
namespace where names need to be different to avoid conflicts such as package names or DNS domain names, but similar scenarios ("I'm doing development") applied to different aspects of a Python environment. Of course it is natural to use

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-02-27 Thread Cameron Simpson
ented to raise >[Base]ExceptionGroup (such as a future variant of asyncio.gather()), you >don't have to care about it. [...] that's why I am proposing to change the PEP >so that your >code will remain safe. That would be welcome to me, too. Cheers, Cameron Simpson

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-02-27 Thread Cameron Simpson
y ExceptionGroup would remain with the unhandled errors, and it might perhaps be reraised then. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/m

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-02-28 Thread Cameron Simpson
the opinion that ExceptionGroups should look like containers, be iterable, be truthy/falsey based on empty/nonempty and that .split and .subgroup should return empty subgroups instead of None. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-02-28 Thread Cameron Simpson
7;t see why ExceptionGroups should be any different. I certainly do not want ExceptionGroup([AttributeError]) conflated with AttributeError. That fills me with horror. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscr

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-02-28 Thread Cameron Simpson
On 28Feb2021 23:56, Irit Katriel wrote: >If you go long, I go longer :) :-) >On Sun, Feb 28, 2021 at 10:51 PM Cameron Simpson wrote: >> On 28Feb2021 10:40, Irit Katriel wrote: >> >split() and subgroup() take care to preserve the correct metadata on >> >all >

[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021-02-28 Thread Cameron Simpson
On 28Feb2021 20:05, Guido van Rossum wrote: >I'm trying to shorten this again... > >On Sun, Feb 28, 2021 at 5:54 PM Cameron Simpson wrote: >> Let's turn this on its head: >> - what specific harm comes from giving EGs container truthiness for >> size >&g

[Python-Dev] Re: change of behaviour for '.' in sys.path between 3.10.0a7 and 3.10.0b1

2021-06-03 Thread Cameron Simpson
our - I don't oppose being _able_ to put "." in sys.path (though I think a concrete absolute path is a saner choice). So for Bernat and Larry: not systems where "." doesn't mean the working directory, but definitely in situations where you want a more secure lo

Re: [Python-Dev] Semantics of __int__(), __index__()

2013-04-03 Thread Cameron Simpson
, and yet not act like an int in all ways. If I go int(x), I personally want a real int out the end of it. -- Cameron Simpson Q: What's the difference between a psychotic and a neurotic? A: A psychotic doesn't believe that 2 + 2 = 4. A neurotic knows it's true, but

Re: [Python-Dev] relative import circular problem

2013-04-04 Thread Cameron Simpson
y as phrased in the import). | Another would be | to always require an 'as' clause in this case, so that you | would have to write' |import .foo as foo And a big +1 for this. Cheers, -- Cameron Simpson The Force. It surrounds us; It enfolds us; It gets us dates on Sa

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Cameron Simpson
icy), and pathlib which offers some facilities related to that kind of thing. But a mismatch between what you actually need to do and what pathlib offers. Fixing your problem isn't necessarily a bugfix for pathlib. I think we need to know the wider context. Cheers, -- Cameron Simpson I had a *bad*

Re: [Python-Dev] casefolding in pathlib (PEP 428)

2013-04-11 Thread Cameron Simpson
On 11Apr2013 16:23, Guido van Rossum wrote: | On Thu, Apr 11, 2013 at 4:09 PM, Cameron Simpson wrote: | > On 11Apr2013 14:11, Guido van Rossum wrote: | > | Some of my Dropbox colleagues just drew my attention to the occurrence | > | of case folding in pathlib.py. Basically, case fold

Re: [Python-Dev] enum discussion: can someone please summarize open issues?

2013-04-28 Thread Cameron Simpson
On 28Apr2013 19:46, Ethan Furman wrote: | int, float, and bool all have object constructors that take the | given string and return a matching instance; int /may/ return a | pre-existing instance, bool /will/ return a pre-existing instance. I think Guido's already pointed out this: >>> bool('F

Re: [Python-Dev] stat module in C -- what to do with stat.py?

2013-06-21 Thread Cameron Simpson
roken on this platform) exposing only the portable stuff. At least you can detect "I don't know what to do" rather than ploughing on mistakenly. -- Cameron Simpson Ignorance is preferable to error; and he is less remote from the truth wh

Re: [Python-Dev] stat module in C -- what to do with stat.py?

2013-06-21 Thread Cameron Simpson
n of the common stuff. - The implementation cost is low; the ref implementation already exists! Getting rid of it seems mad. Pruning/fixing/adapting the nonportable bits might be good. Christian Heimes' test patch would make that much easier to identify. So, -1 on removal of stat.py. Cheers, -

Re: [Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets

2013-07-04 Thread Cameron Simpson
after the call. This is not addressed. Cheers, -- Cameron Simpson Time is nature's way of keeping everything from happening at once. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Uns

Re: [Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets

2013-07-04 Thread Cameron Simpson
f close-on-exec on the fds in the parent could in principle comprimise the exec in the child if done too soon If you decide state should get restored, the implementation gets a bit fiddlier to detect the exec() in the child. I can't speak for what might be required on non-UNIX. Cheers,

Re: [Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets

2013-07-05 Thread Cameron Simpson
On 05Jul2013 08:24, Victor Stinner wrote: | 2013/7/5 Cameron Simpson : | > You might want to make clear that the "blocking" parameter refers | > only to the file creation calls (eg socket.socket) and not to the | > file descriptor itself, and is not to be confused with the

Re: [Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets

2013-07-05 Thread Cameron Simpson
On 05Jul2013 19:03, Victor Stinner wrote: | 2013/7/5 Cameron Simpson : | > | Both set O_NONBLOCK flag (UNIX) | > | > Oh, how embarassing. | | You said that the PEP is not cristal clear. Do you have a suggestion | to make it more clear? | | Should I mention that the close-on-exe

Re: [Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets

2013-07-06 Thread Cameron Simpson
On 06Jul2013 14:43, Victor Stinner wrote: | 2013/7/6 Cameron Simpson : | > Yes. Please forget I mentioned fork(); it is only relevant if you | > were offering some facility to undo the addition of cloexec to a | > Popen passed file descriptor. Which you are not. | | Oh... gotc

Re: [Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets

2013-07-06 Thread Cameron Simpson
s, serial devices, ... And you can set it on anything. Just because some things don't block anyway isn't really a counter argument. Cheers, -- Cameron Simpson Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. -

Re: [Python-Dev] PEP 446: Add new parameters to configure the inherance of files and for non-blocking sockets

2013-07-12 Thread Cameron Simpson
PEP? | http://www.python.org/dev/peps/pep-0446/ | (will be updated in a few minutes) I'm happy with it. Thank you, -- Cameron Simpson ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Tweaking PEP 8 guidelines for use of leading underscores

2013-07-14 Thread Cameron Simpson
tent in the "modules" section of the Python doco as undocumented? That is what I would presume; I'd expect the code to be littered with docstrings anyway, but the module as a whole is not presented in the documentation and so should be private and not relied upon. Cheers, -- Came

Re: [Python-Dev] Inherance of file descriptor and handles on Windows (PEP 446)

2013-07-24 Thread Cameron Simpson
On 25Jul2013 00:35, Antoine Pitrou wrote: | On Wed, 24 Jul 2013 15:25:50 -0700 | Guido van Rossum wrote: | > >> To reduce the need for 3rd party subprocess creation code, we should | > >> have better daemon creation code in the stdlib -- I wrote some damn | > >> robust code for this purpose in my

Re: [Python-Dev] Daemon creation code in the standard library (was: Inherance of file descriptor and handles on Windows (PEP 446))

2013-07-25 Thread Cameron Simpson
daemons have a umask of 0 to be utterly bogus, because almost all library code relies on the umask to set default security policy for initial file permissions. Prone to rant on this at length if required... Cheers, -- Cameron Simpson Cordless hoses have been around for quite some ti

Re: [Python-Dev] Revert #12085 fix for __del__ attribute error message

2013-09-25 Thread Cameron Simpson
. It doesn't say it outright, but as an outsider that is definitely what I would at first infer. So: a small +0.1 for "Cannot propagate exception..." And: a big +2 for "Exception in __del__ caught and not propagated:". Cheers, -- Cameron Simpso

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-12 Thread Cameron Simpson
g from the root languages, versus a native speaker basing things entirely on memory. Cheers, -- Cameron Simpson The engine purrs beneath me with a purpose, ready for the pleasure of my hand upon the throttle. - Peter Smith ___ Python-Dev mailing list Pyt

Re: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

2013-10-12 Thread Cameron Simpson
is somewhat evocative though clearly not perfect for everyone, and move on? Cheers, -- Cameron Simpson Once a Junior Programmer interrupted a Great Guru of the Sun to ask a Question of no importance. The Great Guru replied in words which the Junior Programmer did not understand. The Junior Pr

Re: [Python-Dev] __objclass__ documentation

2013-10-12 Thread Cameron Simpson
thon.org/issue16938 I'd make this two sentences. Just turn the semicolon into a full stop, and commence "This is useful when". I had trouble with the end. How about: or it is not in __class__.__dict__ Do I misunderstand? Cheers, -- Cameron Simpson Trust the computer... the co

[Python-Dev] Re: containment and the empty container

2021-11-08 Thread Cameron Simpson
uot; notion here. I was going to digress about "<" vs "in". For sets, "<" means subset and "in" means "element in set". That isn't exactly parallel to flags. What if "SomeFlag.nothing < SomeFlag.something" meant a subset t

[Python-Dev] Re: containment and the empty container

2021-11-08 Thread Cameron Simpson
On 08Nov2021 23:32, MRAB wrote: >On 2021-11-08 22:10, Cameron Simpson wrote: >>>{} in {1:'a', 'b':2] <-- TypeError because of hashability >>>set() in {1, 2, 'a', 'b'} <-- ditto >>>[] in ['a', 'b

[Python-Dev] Re: Starting a new thread

2022-05-12 Thread Cameron Simpson
bg(), the chosen queuing system ... or whatever other queuing system you might be using. The idea here is to make it easy to submit a function to any of several things rather than decorating the function itself to submit to a now-hardwired thing. Just things t

[Python-Dev] Re: Switching to Discourse

2022-07-15 Thread Cameron Simpson
result-after-this-function-is-called-like-this/14680/15 but have not got to submitting a bug report. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.p

[Python-Dev] Re: Switching to Discourse

2022-07-20 Thread Cameron Simpson
e email mode in Discourse. It works quite well. For me, both python-dev and the PDO posts land in my "python" local folder. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-d

[Python-Dev] Re: Switching to Discourse

2022-07-20 Thread Cameron Simpson
nces` - they're bogus - they can be fixed (I'll submit a bug report, someone told me how to do that...) Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org htt

[Python-Dev] Re: Switching to Discourse

2022-07-21 Thread Cameron Simpson
On 21Jul2022 13:25, Stephen J. Turnbull wrote: >Cameron Simpson writes: > > Discourse does not do `In-Reply-To:` very well at all. Here's some > > headers from the _second_ post in the "Core dev sprint this year" > > thread: > > > > Message-ID

[Python-Dev] Re: Switching to Discourse

2022-07-21 Thread Cameron Simpson
y option is to be subscribed to a firehose of stuff I don't >care about, I'm going to disable mailing list mode and if python-dev dies, I'll >pretty much quit following Python's development. As mentioned, mailing list mode seems to be the firehose. The other "Emails&qu

[Python-Dev] Re: Switching to Discourse

2022-07-21 Thread Cameron Simpson
On 21Jul2022 17:46, Christopher Barker wrote: >OT: >Does anyone else find it very odd to call a communication system >“discord”? I think it is a refreshing level of honesty about what live chat is like. As in "discordant". Chee

[Python-Dev] Re: Switching to Discourse

2022-09-26 Thread Cameron Simpson
ourse should now be working correctly. This is the good work of Martin Brennan: https://meta.discourse.org/u/martin Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@pytho

[Python-Dev] Re: Switching to Discourse

2022-09-27 Thread Cameron Simpson
would have been a flat nontopologically ordered grouping a few days ago. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-d

[Python-Dev] Re: [CVE-2022-37454] SHA3 vulnerability and upcoming Python patches for 3.7 - 3.10

2022-11-07 Thread Cameron Simpson
ll be choosing to mmap a file and calling .update() on the mapping in one go. That said, that's (a) niche and (b) not even written yet. I think I'd still agree that this might be a nonurgent fix (haven't read the CVE properly y

[Python-Dev] Re: Switching to Discourse

2022-12-09 Thread Cameron Simpson
l folder. Same for the matplotlib forum etc. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.pyt

[Python-Dev] Re: Switching to Discourse

2022-12-10 Thread Cameron Simpson
ort: copying the Discourse stuff to mailman could be done by subscribing the mailman list to the Discourse forum. Letting _nonDiscourse_ users reply or post to Discourse is not trivial. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-de

[Python-Dev] Re: Switching to Discourse

2022-12-11 Thread Cameron Simpson
on the mailing list do not get seen by the Discourse users. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.

[Python-Dev] Re: Switching to Discourse

2022-12-11 Thread Cameron Simpson
meone posts a screenshot (which we actively discourage for code snippets) and occasional other rare situations. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org

[Python-Dev] Re: python3 -bb and hash collisions

2019-09-12 Thread Cameron Simpson
On 10Sep2019 10:42, Daniel Holth wrote: [...] I stopped using Python 3 after learning about str(bytes) by finding it in my corrupted database. [...] Could you outline how this happened to you? Cheers, Cameron Simpson ___ Python-Dev mailing list

[Python-Dev] Re: python3 -bb and hash collisions

2019-09-13 Thread Cameron Simpson
On 13Sep2019 09:31, Matt Billenstein wrote: On Fri, Sep 13, 2019 at 08:37:26AM +1000, Cameron Simpson wrote: On 10Sep2019 10:42, Daniel Holth wrote: [...] > I stopped using Python 3 after learning about str(bytes) by finding it > in > my corrupted database. [...] Could you outline

[Python-Dev] Re: small improvement idea for the CSV module

2019-10-30 Thread Cameron Simpson
ht just need to find them. I know I've written such a thing for myself: https://pypi.org/project/cs.csvutils/ I entirely agree this would be easier to find and use in the stdlib. And mine is probably overfeatured and underclean for use in the stdlib. Cheers, Cameron Simpson

[Python-Dev] Re: PEP 616 -- String methods to remove prefixes and suffixes

2020-03-20 Thread Cameron Simpson
xplicitly in favour of returning self if unchanged. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Mess

  1   2   3   >