[Python-Dev] Re: Switching to Discourse

2022-12-11 Thread Cameron Simpson
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 https

[Python-Dev] Re: Switching to Discourse

2022-12-11 Thread Cameron Simpson
ng 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.org/ Mes

[Python-Dev] Re: Switching to Discourse

2022-12-10 Thread Cameron Simpson
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-dev@python.org To unsubscribe send

[Python-Dev] Re: Switching to Discourse

2022-12-09 Thread Cameron Simpson
e 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.python.org/ Messag

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

2022-11-07 Thread Cameron Simpson
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 yet). Cheers, Cameron Simpson

[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: Switching to Discourse

2022-09-26 Thread Cameron Simpson
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...@python.org

[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-07-21 Thread Cameron Simpson
f 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" settings seem reasonably versatile to me on the face of it. Cheer

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

[Python-Dev] Re: Switching to Discourse

2022-07-20 Thread Cameron Simpson
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 https://mail.python.org/mail

[Python-Dev] Re: Switching to Discourse

2022-07-20 Thread Cameron Simpson
the 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-15 Thread Cameron Simpson
t-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.python.org/

[Python-Dev] Re: Starting a new thread

2022-05-12 Thread Cameron Simpson
(), 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 to consider

[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', 1, 2] <-- False >> >>Right. Also, the me

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

2021-11-08 Thread Cameron Simpson
That isn't exactly parallel to flags. What if "SomeFlag.nothing < SomeFlag.something" meant a subset test? Would we need "in" at all? Or is "<" out of the picture because FLags, or at least IntFlags, might do numeric-like stuff with "<"? Cheers, Cameron

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

2021-06-03 Thread Cameron Simpson
g _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 loading of modules (i.e. only from wh

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

[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
eptionGroups 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 unsubscribe send an ema

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

2021-02-28 Thread Cameron Simpson
ainers, 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.org To unsubscribe send an email to python-dev-

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

2021-02-27 Thread Cameron Simpson
roup 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/mailman3/lists/python

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

2021-02-27 Thread Cameron Simpson
(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 mai

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

2021-02-26 Thread Cameron Simpson
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 a phrase like

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

2020-11-17 Thread Cameron Simpson
arlier 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 send an email to python-de

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

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

[Python-Dev] Re: [python-committers] Thank you Larry Hastings!

2020-10-06 Thread Cameron Simpson
On 05Oct2020 22:14, Tal Einat wrote: >You have my thanks as well, Larry. And mine. - 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/mailm

[Python-Dev] Re: docs: I'd like new features to references their PEPs

2020-09-15 Thread Cameron Simpson
On 14Sep2020 18:17, Terry Reedy wrote: >On 9/14/2020 5:25 AM, Cameron Simpson wrote: >>On 14Sep2020 01:16, Ned Deily wrote: >>>>I'll make some PRs. How to submit? Here, or a BPO or something? >>> >>>My suggestion would be to open one BPO issue for &quo

[Python-Dev] Re: docs: I'd like new features to references their PEPs

2020-09-14 Thread Cameron Simpson
On 14Sep2020 18:17, Terry Reedy wrote: >On 9/14/2020 5:25 AM, Cameron Simpson wrote: >>On 14Sep2020 01:16, Ned Deily wrote: >>>My suggestion would be to open one BPO issue for "adding PEP >>>references to documentation" and then creating PRs as needed

[Python-Dev] Re: docs: I'd like new features to references their PEPs

2020-09-14 Thread Cameron Simpson
the devguide has the details including for the inline markup role :pep:. > >https://devguide.python.org/documenting/#rest-inline-markup Thanks Ned. - Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an em

[Python-Dev] Re: docs: I'd like new features to references their PEPs

2020-09-13 Thread Cameron Simpson
On 13Sep2020 20:51, Guido van Rossum wrote: >On Sun, Sep 13, 2020 at 8:12 PM Cameron Simpson wrote: >> As a concrete example, for __length_hint__ and operator.length_hint, >> I >> wish that in addition to saying "New in version 3.4", it also said >> &quo

[Python-Dev] docs: I'd like new features to references their PEPs

2020-09-13 Thread Cameron Simpson
also said "specified by PEP424 [link]", since I had to go find that with a search engine to understand the rationale. Would PRs with such patches be welcome? Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsub

[Python-Dev] Re: Map errno==ETIME to TimeoutError

2020-05-24 Thread Cameron Simpson
, I'd like to know how this might affect try/except setups, particularly ones like the above which expect to catch a class of error and differentiate amongst them. I am not against the issue suggest though. Cheers, Cameron Simpson On 24May2020 14:59, Gregory P. Smith wrote: Sounds like a n

[Python-Dev] for Glenn Linderman Re: Re: Improvement to SimpleNamespace

2020-05-07 Thread Cameron Simpson
to have a personal dislike for me, and I'm fearing something similar may be at play for you. Again, my apologies to other list members. Thanks, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python

[Python-Dev] Re: PoC: Subinterpreters 4x faster than sequential execution or threads on CPU-bound workaround

2020-05-06 Thread Cameron Simpson
space. 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/ Message archived at https://mail.python.org

[Python-Dev] Re: Improvement to SimpleNamespace

2020-04-15 Thread Cameron Simpson
On 14Apr2020 23:08, Glenn Linderman wrote: On 4/14/2020 10:09 PM, Cameron Simpson wrote: Like many others, I recently implemented one of these __getattr__+__getitem__ SimpleNamespaces.  I'm hacking on some mappings which map dotted-names to values.  So the natural implementation is dicts

[Python-Dev] Re: Improvement to SimpleNamespace

2020-04-14 Thread Cameron Simpson
ule seems... clunky. 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/ Message archived at https://mail.pytho

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

2020-03-25 Thread Cameron Simpson
y the lexical length of their regexp, not their config file order of appearance. That way lies (and, indeeed, lay) madness. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.or

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

2020-03-25 Thread Cameron Simpson
erate my huge -1 on "trim" because it will confuse every PHP user who comes to us from the dark side. Over there "trim" means what our "strip" means. I've got (differing) opinions about the others, but "trim" is a big one to me. Cheers, Cameron Simp

[Python-Dev] Re: Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-03-25 Thread Cameron Simpson
On 26Mar2020 00:35, Serhiy Storchaka wrote: 26.03.20 00:08, Cameron Simpson пише: I think a more "Python normal" module might have multiple enum classes, maybe with overlapping names. Do you have any examples of more "Python normal" modules? Unfortunately no becaus

[Python-Dev] Re: Enum._convert should change __repr__ and/or __str__ to use module name instead of class name

2020-03-25 Thread Cameron Simpson
odule name back from __str__ I'd be underwhelmed. I think I'd at least like the behaviour switchable in some way. Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https:

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

2020-03-23 Thread Cameron Simpson
. It is the only way for the caller to have a predictable policy. As a diversion, _are_ there use cases where an empty affix is useful or reasonable or likely? Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send

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

2020-03-22 Thread Cameron Simpson
are quite different, which is the basis of my personal dislike of reusing the word "strip". Just extending "strip()" with a funky new affix mode would be even worse, since it can _still_ be misleading if the caller omited the special mode. Cheers, Cameron Simpson __

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

2020-03-21 Thread Cameron Simpson
carded, and it is clearly different from "strip". Please, NO. "trim" is a VERY well known PHP function, and does what our strip does. I've very against this (otherwise fine) word for this reason. I still prefer "cut",

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

2020-03-21 Thread Cameron Simpson
On 21Mar2020 14:40, Eric V. Smith wrote: On 3/21/2020 2:09 PM, Steven D'Aprano wrote: If you want to know whether a prefix/suffix was removed, there's a more reliable way than identity and a cheaper way than O(N) equality. Just compare the length of the string before and after. If the lengths

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

2020-03-21 Thread Cameron Simpson
rning the same reference as one is given seems nearly the easiest thing a function can ever do. 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.

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

2020-03-21 Thread Cameron Simpson
removed. Aye. 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/ Message archived at https://mail.pyth

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

2020-03-20 Thread Cameron Simpson
rning 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/ Message archived at https://mail.

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

2019-10-30 Thread Cameron Simpson
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: 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 ou

[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: Is "%zd" format is portable now?

2019-08-01 Thread Cameron Simpson
onversion, 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

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

2019-05-26 Thread Cameron Simpson
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

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 mounted

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

2019-04-01 Thread Cameron Simpson
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://mail.python.o

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

2019-03-29 Thread Cameron Simpson
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] 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

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

2019-03-24 Thread Cameron Simpson
-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.org/mailman

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

2019-03-23 Thread Cameron Simpson
he 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 ___ Pyth

Re: [Python-Dev] Accessing mailing list archives

2018-07-31 Thread Cameron Simpson
" 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] assignment expressions: an alternative proposal

2018-04-24 Thread Cameron Simpson
write code 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 <c...@c

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

2017-11-09 Thread Cameron Simpson
in the usual case but (often subtly) breaks in some unusual case can be hard 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 situati

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

2016-01-07 Thread Cameron Simpson
tes objects and a preprimed 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 <c...@zip.com.au> ___ Pytho

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 greg.ew...@canterbury.ac.nz 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

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

2015-08-10 Thread Cameron Simpson
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 c...@zip.com.au People shouldn't be allowed to build overpasses ... - Dianne I know what's best

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

2015-05-12 Thread Cameron Simpson
not sure you need a Sender: (though it wouldn't hurt), given that the From: is already a system like address (report@) and not a forged From: eg Terry Reedy tjre...@udel.edu as a mailing list would do. Cheers, Cameron Simpson c...@zip.com.au On Tue, May 12, 2015 at 06:08:30PM -0400, Terry Reedy

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

2015-03-23 Thread Cameron Simpson
, too. Cheers, Cameron Simpson c...@zip.com.au The mind reigns, but does not govern. - Paul Valery ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman

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

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

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

2015-03-19 Thread Cameron Simpson
. Having a walled off core admin python as well seems very prudent. Cheers, Cameron Simpson c...@zip.com.au 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 those who like to show how clever

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

2015-02-13 Thread Cameron Simpson
, this is to be expected. Cheers, Cameron Simpson c...@zip.com.au 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 Unsubscribe: https://mail.python.org

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

2015-02-04 Thread Cameron Simpson
as before and see what it says (configure, make, etc) Cheers, Cameron Simpson c...@zip.com.au ___ 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

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

2014-12-02 Thread Cameron Simpson
to. 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 c...@zip.com.au

Re: [Python-Dev] Improvements for Pathlib

2014-11-08 Thread Cameron Simpson
. Changing it can easily have unwanted (and invisible until breakage becomes glaring) side effects. -1 on this element from me I'm afraid. Cheers, Cameron Simpson c...@zip.com.au I couldn't think of anything else to do with it, so I put it on the web

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

2014-09-26 Thread Cameron Simpson
to this vulnerability is a bash-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 c...@zip.com.au Follow! But! Follow only if ye be men

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

2014-09-25 Thread Cameron Simpson
, Python's subprocess has 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 c...@zip.com.au Death is life's way of telling you

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

2014-09-25 Thread Cameron Simpson
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, Cameron Simpson c...@zip.com.au Rebel without a clue, Born

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 tsea...@palladion.com 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

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

2014-09-02 Thread Cameron Simpson
. Cheers, Cameron Simpson c...@zip.com.au Life IS pain, highness... anyone who tries to tell you different is trying to sell you something. - Wesley, The_Princess_Bride ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo

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

2014-09-02 Thread Cameron Simpson
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 c...@zip.com.au Maintainer's Motto: If we can't fix it, it ain't broke. ___ Python-Dev mailing list

Re: [Python-Dev] Bytes path support

2014-08-21 Thread Cameron Simpson
On 21Aug2014 09:20, Antoine Pitrou anto...@python.org 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

Re: [Python-Dev] Bytes path support

2014-08-20 Thread Cameron Simpson
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 fanboy.) Cheers, Cameron Simpson c...@zip.com.au God is real, unless declared integer. - Johan Montald, jo...@ingres.com

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

2014-07-15 Thread Cameron Simpson
. Cheers, Cameron Simpson c...@zip.com.au Our job is to make the questions so painful that the only way to make the pain go away is by thinking.- Fred Friendly ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo

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

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

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

2014-04-20 Thread Cameron Simpson
into the python 3 mapping interface. Cheers, Cameron Simpson c...@zip.com.au ___ 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

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

2014-04-20 Thread Cameron Simpson
On 20Apr2014 20:12, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Sun, Apr 20, 2014 at 8:01 PM, Cameron Simpson c...@zip.com.au 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

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

2014-03-10 Thread Cameron Simpson
, -- Cameron Simpson c...@zip.com.au 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 next year's model. - Andrew S. Tanenbaum ___ Python-Dev mailing list Python

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 ncogh...@gmail.com wrote: On 23 February 2014 13:47, Cameron Simpson c...@zip.com.au wrote: On 22Feb2014 17:56, Ethan Furman et...@stoneleaf.us wrote: Please let me know if anything else needs tweaking. [...] This area of programming is characterized

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

2014-02-23 Thread Cameron Simpson
? Curious. Cheers, -- Cameron Simpson c...@zip.com.au 16 October. I also asked Anthea how many mature oaks she thought it would have taken to build a top-of-the-line ship in Nelson's day. She guessed ten. The astonishing answer (from Brewer's) is about 3,500 - 900 acres of oak forest. She said, I

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

2014-02-23 Thread Cameron Simpson
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 Simpson c...@zip.com.au We had the experience

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

2014-02-22 Thread Cameron Simpson
be blatant. Otherwise I think the PEP is clear and reasonable. Cheers, -- Cameron Simpson c...@zip.com.au 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. - 1837 copy of Johnson's

Re: [Python-Dev] News from asyncio

2014-02-02 Thread Cameron Simpson
computation is trivial. Just a thought, -- Cameron Simpson c...@zip.com.au Artificial intelligence won't make a micrometer out of a monkeywrench. - Rick Gordon ri...@crl.com ___ Python-Dev mailing list Python-Dev@python.org https

Re: [Python-Dev] PEP 460 reboot

2014-01-16 Thread Cameron Simpson
it. Cheers, -- Cameron Simpson c...@zip.com.au Motorcycles are like peanuts... who can stop at just one? - Zebee Johnstone ze...@zip.com.au aus.motorcycles Poser Permit #1 ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman

Re: [Python-Dev] PEP 460 reboot

2014-01-14 Thread Cameron Simpson
? appropriate as the underlying storage for a sound sample or image file. Virtual subclass ASCIIStructuredBytes Possible alternate title: Common use case: bytes containing text sequences, especially ASCII Cheers, -- Cameron

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

2014-01-12 Thread Cameron Simpson
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 c...@zip.com.au You can blip it twice to clear the bore, But blip it thrice, and you've sinned once

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 juraj.su...@gmail.com wrote: On Sat, Jan 11, 2014 at 5:14 AM, Cameron Simpson c...@zip.com.au wrote: data = b' '.join( bytify( [ 10, 0, obj, binary_image_data, ... ] ) ) Thanks for the suggestion! The problem with bytify is that some items might require

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

2014-01-10 Thread Cameron Simpson
facilities might suit your needs. Cheers, -- Cameron Simpson c...@zip.com.au We tend to overestimate the short-term impact of technological change and underestimate its long-term impact. - Amara's Law ___ Python-Dev mailing list Python-Dev

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

2013-12-03 Thread Cameron Simpson
On 03Dec2013 08:25, Guido van Rossum gu...@python.org 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 c...@zip.com.au manual, n.: A unit of documentation. There are always three or more

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

2013-11-14 Thread Cameron Simpson
; primarily 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 c...@zip.com.au There is this special biologist word we use for 'stable

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

2013-11-14 Thread Cameron Simpson
, 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'd know there had been a failure. Cheers, -- Cameron Simpson c

Re: [Python-Dev] __objclass__ documentation

2013-10-13 Thread Cameron Simpson
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 c...@zip.com.au Trust the computer... the computer is your friend. - Richard Dominelli domi...@panix.com

  1   2   3   >