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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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 again
now, 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
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
>> "s
;, it 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 uns
nyway, 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:
Sound
seems 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
ll in the one memory 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
htt
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 dic
ath through the JSON
module 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 archiv
rule system, which prioritised rules by 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 unsubscrib
reiterate 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,
Ca
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
module 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...@py
g.
That surprises me too. I expect the first matching affix to be used. 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
mind they 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
cut off and discarded, 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 pref
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
/is-not b" as overly prescriptive;
returning 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 pyt
e the length of the string before and after. If the lengths are
the same, nothing was 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.py
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
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
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
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
, 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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
__
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
#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
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
, 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
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
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
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
1 - 100 of 273 matches
Mail list logo