ors technically don't allow the programmer to do
something they couldn't before, but are now are used everywhere, a key
feature of many applications and modules.
Magical-ly, y'rs,
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
s kinda like greylisting to me. I'm pretty sure that's one of the tool
in the mail.python.org chain.
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
I can't explain the delays, but will note that the gate-news program on the
server runs every 5 minutes via cron. There are multiple moving parts in
the overall system. You'll probably get a more useful answer from
postmas...@python.org.
Skip
--
https://mail.python.org/mailman/listinfo/python
r me was always Usenet posters who used
fake email addresses.)
Skip
--
https://mail.python.org/mailman/listinfo/python-list
ng.python traverse the gateway and show up on this list,
then alt.test won't help.
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
thon has normal reference counting, but also has a cyclic garbage
collector. Here's plenty of detail about how it works:
https://devguide.python.org/internals/garbage-collector/index.html
Skip
--
https://mail.python.org/mailman/listinfo/python-list
> I downloaded Python 3.11.5, and there was nothing in the “Scripts” file,
> and there was no Pip. I would like to know why.
>
Can't help with the empty/missing Scripts folder. Does running
python -m ensurepip
get you a working pip? Which you should then run as
python -m pip
echanism.
>
It won't magically be available via pip unless someone steps up to maintain
it as a PyPI package
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
ing that from 3.13 onward.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
You could create a git repo with just nntplib and generate a package on
PyPI, then use that when running a version of Python which lacks nntplib.
Skip
On Wed, Apr 26, 2023, 8:42 PM Retrograde wrote:
> I used to use a script that relied on nntplib, which is currently still
> ava
uot;antigravity",
but those are now old (both introduced before 2010). When was the last time
a clever easter egg was introduced or an April Fool's Day joke played?
¯\_(ツ)_/¯
Skip
--
https://mail.python.org/mailman/listinfo/python-list
There's a link at the bottom of each message to the list info pager. Follow
the directions on that page to unsubscribe.
Skip
On Wed, Mar 8, 2023, 5:38 PM Thomas Gregg wrote:
> Is there any way to be removed from this list?
> Thank you, Tom
>
> On Wed, Mar 8, 2023 at 3:51 PM Sk
> Hello, I'm working with an employer that is looking to hire someone in
> (Edinburgh or London) that can administer on-prem and vmware
> platforms.
>
James,
If you haven't already, please post to the Phone Jobs Board:
https://www.python.org/jobs/
Skip
>
--
https://mail.pyt
Dang auto-correct... Should read
... double quotes around "strings" and single quotes around 'c'haracters ...
On Sun, Feb 26, 2023, 6:28 PM Skip Montanaro
wrote:
> is there any reason to prefer"over' ?
>>
>
> Not really. As an old C programme
raw strings where they
would simplify the display.)
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
ing the transfer
to the top of the virtual machine loop. That would (I think) avoid checks
related to GIL release and thread switches.
I don't guarantee that's what's going on, and even if I'm correct, I don't
think you can rely on it.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
to be about the
same length as a typical email message, certainly the same order of
magnitude. Also, note that I call it once in the setup to eliminate the
initial training of the ConllExtractor instance. I don't know if ~100us
qualifies as long running or not.
I'll keep messing with it.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
is
consuming huge amounts of CPU. Does threading.Lock.acquire() sleep
anywhere? I didn't see anything obvious poking around in the C code
which implements this stuff. I'm no expert though, so could easily
have missed something.
Thx,
Skip
--
https://mail.python.org/mailman/listinfo/python-list
venv/now 3.10.7-1+focal1 amd64 [installed,local]
Off the top of my head, I can't recall if it's LTS or not. If you want to
go beyond 3.10.6, it should be possible. As Grant indicated though,
upgrading packages on an Ubuntu system (of any flavor) is the province of
the Ubuntu community.
Skip
--
oid/
I'd be interested to see what else turns up.
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
uot;)
args = parser.parse_args(["--help", "--version"])
Which option is processed depends on their order on the command line. I
don't believe it's possible to run the script and see them both processed.
That's probably a secondary consideration though. My script is working well
enough in this regard now.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
iously, "--help" is a pretty bad search term.
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
idn't occur to me. I looked briefly at the
code for argparse to see how it handled --help. The added argument
seemed normal, so gave up, figuring there was some special handling of
that option.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
something like nargs='*', but that would push off
detection of the presence of the positional arg to the application.
Shouldn't I be able to tell argparse I'm going to process --verbose, then
exit?
Thx,
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Dang autocorrect. Subject first word was supposed to be "f-strings" not
"ref-strings." Sorry about that.
S
On Fri, Oct 7, 2022, 10:45 AM Skip Montanaro
wrote:
>
>
> On Fri, Oct 7, 2022 at 9:42 AM Andreas Ames
> wrote:
>
>> 1. The culprit was me. As laz
ere was some discussion about whether and how to efficiently
admit f-strings to the logging package. I'm guessing that's not gone
anywhere (yet).
Skip
--
https://mail.python.org/mailman/listinfo/python-list
was particularly amused,
as my son is in dev ops, writes Python from time-to-time, and my grandson
is 13. I could definitely see the pattern in the story transferring over to
Chris and Carmine.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
ecified. That would give the implementer (likely Tim Peters much of the
time) the freedom to do whatever worked best for performance or simplicity
of implementation.
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
> Do you know of a library that resolves schedules like every Wednesday
> at 3:00pm to absolute time, that is return the datetime of the next
> occurrence?
Take a look at the `rrule` module in the `dateutil` package:
https://dateutil.readthedocs.io/en/stable/rrule.html
Skip
to be terribly
Python-centric. Consequently, "import this" is probably not going to work.
I have decided to go ahead and use my first name in lower case Courier as
the core piece of the downtube graphic:
skip
That's not too informative (other than its relationship to moi), and I have
room for pro
on to
a much wider community, like numpy, returns a bunch more:
https://www.libhunt.com/r/numpy
Skip
--
https://mail.python.org/mailman/listinfo/python-list
certainly a haven for some undetected vulnerabilities. Knowing which
packages have been audited — at least in a cursory fashion — could be used
as a further criterion to use when deciding which packages to consider
using on a project.
So, does something already exist (pointers appreciated)? Th
o further agony
<https://github.com/smontanaro/python-bits/blob/master/src/watch.py> with
the keyboard and mouse.
Skip
(*) man systemd-sleep contains this admonition:
Note that scripts or binaries dropped in /lib/systemd/system-sleep/ are
intended for local use only and *should be considered hacks*. If
ap
> I don't know in Python, but maybe you can create a script that writes
> on a named pipe and read it from Python?
> https://askubuntu.com/questions/226278/run-script-on-wakeup
Thanks, that gives me something to munch on.
--
https://mail.python.org/mailman/listinfo/python-list
on a new MacBook one of these days). I suppose bonus
points for something which works on Windows, but that's not a platform
I actually care about.
Thx,
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Change by Skip Montanaro :
--
nosy: -skip.montanaro
___
Python tracker
<https://bugs.python.org/issue27546>
___
___
Python-bugs-list mailing list
Unsubscribe:
Skip Montanaro added the comment:
See also (perhaps)
https://bugs.python.org/issue47190
--
nosy: +skip.montanaro
___
Python tracker
<https://bugs.python.org/issue27
Skip Montanaro added the comment:
That's fine. My brief search didn't turn up
https://bugs.python.org/issue27546
I'm happy to close this.
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.p
Change by Skip Montanaro :
--
keywords: +patch
pull_requests: +30355
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/32293
___
Python tracker
<https://bugs.python.org/issu
New submission from Skip Montanaro :
After looking around and asking, it appears there is no built-in integration of
the tkinter and asyncio event loops. That would seem to be a good thing, at
least as an example. I wrote a simple hello world which creates an AsyncTk
class and uses asyncio
watching
So, Tk+asyncio turns out to be fairly easy to do, at least for simple stuff.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
; as the target window did the
trick.
Thanks,
Skip
--
https://mail.python.org/mailman/listinfo/python-list
s going on), but
I will keep messing around.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
ux-gnu/xfce4/xfconf/xfconfd
...
I kind of assume xfce4 is the session manager sort of thing, while
xfwm4 is the actual window manager.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
manager(s) I used at the
time (probably twm or fvwm). Now I use fvwm4 and can't find squat
online about configuration files. I do have a ~/.config/xfce4/xfwm4/
directory, but it is completely empty.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
> So you might tell your window manager to keep that window on the main
workspace.
Thanks. I'd forgotten about the possibility of doing this sort of thing in
the window manager config. That would certainly be fine in this case. (It's
been ages since I messed with this sort of thing.)
S
examples in the library doc or on the wider net which demonstrate control
of this particular window manager interaction. (I don't care about Windows
or Mac, at least for the time being.)
Thx,
Skip
--
https://mail.python.org/mailman/listinfo/python-list
est of your (untested) code
to find calls to missing functions or methods.
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
solutions
out in the wild, but this seems like something which might best be
addressed in either the asyncio or tkinter documentation, or better yet,
implemented in one or the other.
Skip Montanaro
--
https://mail.python.org/mailman/listinfo/python-list
guess if it has to be, then it has to
be.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
port 443 (which seems to work okay). Is there some magic
incantation to get it to just talk HTTP on port 80, or will I need to spin
up two instances? (The non-root config works fine - plain old HTTP over
port 8080.)
Thx,
Skip
--
https://mail.python.org/mailman/listinfo/python-list
n would occur on the way
out.
I think another way I might have saved myself was if I was using a modern
IDE where I might have gotten some hints hovering over the method call.
But, I'm an End user. I'm sure there is some add-on package I could
install, but I haven't looked.
Skip
--
https://mail.pyt
Cameron> Try decode=True.
Skip> :dopeslap: Thanks. Never been all that consistent reading documentation.
The more I think about it, the more I think maybe my lack of
documentation reading wasn't all that unreasonable. The content
transfer encoding and charset are properties of the m
>
> From the docs:
>
> get_payload(i=None, decode=False)
...
Try decode=True.
:dopeslap: Thanks. Never been all that consistent reading documentation.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
E parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
Am I expecting too much from the email package when munching on crufty
20+yo archived email messages?
Thx,
Skip
--
https://mail.python.org/mailman/listinfo/python-list
on:
https://web.archive.org/web/2020145627/http://effbot.org/
Probably worth a bookmark in your browser.
Rest easy /F ...
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Is the proliferation of packaging formats in Python as nutzo as this author
believes?
https://drewdevault.com/2021/11/16/Python-stop-screwing-distros-over.html
Asking because I've never been in the business of releasing "retail" Python
applications or packages.
Skip
--
https://mail.
Skip Montanaro added the comment:
Further question... All the discussion has been on the writer side of the csv
module. Is there any reason that using QUOTE_STRINGS or QUOTE_NOTNULL should
have an effect when reading? For example, should this line on input
"",,1,'a'
produce
Skip Montanaro added the comment:
Note to @samwyse and @krypten: I updated the patches and created a pull request
on GitHub, but I have no way of knowing if at least krypten has signed a CLA
for Python. Since you're the author of the original patches, we need to verify
that you have
Change by Skip Montanaro :
--
pull_requests: +27722
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/29469
___
Python tracker
<https://bugs.python.org/issu
Skip Montanaro added the comment:
Thanks, I get that. My issue is with the apparent mismatch between the English
meaning of "find leaks" and "fail env changed." It seems to me that the help
message(s) for one or both of those options is probably incorrect and
New submission from Skip Montanaro :
Just preparing to make a refleaks test run, so I ran:
./python -m test --help
The output related to refleaks seemed suspicious:
...
Special runs:
-l, --findleaks deprecated alias to --fail-env-changed
...
--fail-env-changedif a test file
Skip Montanaro added the comment:
Took me a while to notice the -i flag to regrtest.py. I think that solves my
particular problem, so I will close this. Is there a place to see how 'make
test' is run on the buildbots?
--
stage: -> resolved
status: open ->
New submission from Skip Montanaro :
I find that test_multiprocessing_spawn frequently hangs. Hitting Ctl-C then
rerunning "make test" generally works. Still, this behavior makes it
problematic to run testing unattended. I don't think I have an unusual
environment (XUbuntu 20.04,
Skip Montanaro added the comment:
CCbench was mentioned recently in the discussion about Sam Gross's nogil branch:
https://mail.python.org/archives/list/python-...@python.org/message/WRT7F2RHHCQ3N2TYEDC6JSIJ4T2ZM6F7/
I'm not convinced that deleting it is a no-brainer. Maybe if it landed
Skip Montanaro added the comment:
I'll be the wet blanket here and say -1. This doesn't seem at all necessary. 81
occurrences in ~3.5k PyPI packages? That's a hardly overwhelming endorsement.
To top it off, since this can't be backported to 3.10 and earlier, it creates a
needless (trivial
New submission from Skip Montanaro :
At the top of Tools/ccbench/ccbench.py is this comment dating from 2010
(probably in the initial version):
# This file should be kept compatible with both Python 2.6 and Python >= 3.0.
Is there still a need for 2.6 compatibility in what is essentia
Woo hoo! It's installed. The ultimate error was a missing turbojpeg.h
file. Thank goodness for the apt-file command. I was able to track
that down to the libturbojpeg0-dev package, install that, and after a
bit more fussing around now have jpegdupes installed.
Thanks for the help,
Skip
--
https
arning messages, but colorizing might have been
suppressed by stderr being fed into a pipe, or by distutils tossing it out.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
ightforward dedupe program, but need something which can
compare just the data chunk of JPEGs, ignoring the metadata. This program
apparently does that. Is like to avoid reinventing that wheel.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
m kind of stuck. Maybe I need to install Python 3.3 and try that? Any
other ideas?
Thx,
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Skip Montanaro added the comment:
Update version - too late for anything older than 3.11.
--
versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue23
conflicts. Is
there some way to do this totally within the git infrastructure?
Thx,
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Skip Montanaro added the comment:
Unfortunately, I'm currently not able to build Python 3.8, 3.9 or 3.10 and get
a non-failing test_gdb. I'll mess around a bit more, but I'm skeptical I'll
find something simple. (I wonder if something changed in GDB which is causing
the failure
Skip Montanaro added the comment:
I routinely build with -O0 and have been getting test_gdb failures building the
3.10 branch. I tried adding -g3 to my configure flags:
nice ./configure OPT="-O0 -g3 -Wall" --with-pydebug --with-trace-refs
but test_gdb still fails. Output atta
Skip Montanaro added the comment:
Here's a NEWS entry.
--
Added file:
https://bugs.python.org/file50132/2021-06-29-07-27-08.bpo-43625.ZlAxhp.rst
___
Python tracker
<https://bugs.python.org/issue43
Skip Montanaro added the comment:
Here is a change to the has_header documentation and an extra test case
documenting the behavior when the sample contains strings. I'm not sure about
the wording of the doc change, perhaps you can tweak it? Seems kind of clumsy
to me. If it seems okay
Skip Montanaro added the comment:
I retract my comment about fixed length strings in the non-numeric case. There
are clearly test cases (which I probably wrote, considering the values) where
the sample as a header but the values are of varying length. Misread of the
code on my part. I have
Skip Montanaro added the comment:
Thanks @andrei.avk. You are right, only the complex test is required.
I suppose it's okay to commit this, but reviewing the full code of the
has_header method leaves me thinking this is just putting lipstick on a pig. If
I read the code correctly
Skip Montanaro added the comment:
Ugh... s/QUOTE_NONNULL/QUOTE_NOTNULL/
Not, Non, None... Perl would treat them all the same, right?
--
___
Python tracker
<https://bugs.python.org/issue23
Skip Montanaro added the comment:
Missed tweaking a couple settings.
--
resolution: rejected ->
stage: resolved -> needs patch
versions: +Python 3.11 -Python 3.8
___
Python tracker
<https://bugs.python.org/i
Skip Montanaro added the comment:
Okay, I'll reopen this, at least for the discussion of QUOTE_NONNULL.
@erdnaxeli please given an example of how PostgreSQL distinguishes between the
empty string and None cases. Is it a quoted empty string vs an empty field? If
so, modifying @samwyse's
things came together pretty quickly, due in large
part, I think, to its more sane API.
YMMV, but you're more than welcome to steal code from Polly.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Skip Montanaro added the comment:
Perhaps I should point out that this doesn't matter to me. I just noticed the
old name. I can't claim anything is broken that I need.
--
___
Python tracker
<https://bugs.python.org/issue44
idn't use an assembler
either. We just wrote raw opcodes and their arguments on paper. This was in
the late 70s.)
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
to Mailman 3.
I'm sure Mark Sapiro and other Mailman maintainers would like to keep
moving away from Mailman 2. If the gateway (easier anonymity) and
Mailman 3 (maybe better list archives) are of interest to you, you
might check in with the Mailman dev list and see what would be
involved in porting the
Change by Skip Montanaro :
--
keywords: +patch
pull_requests: +24612
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25949
___
Python tracker
<https://bugs.python.org/issu
New submission from Skip Montanaro :
When the interpreter is compiled with computed goto support, the TARGET macro
is defined like this:
#define TARGET(op) op: TARGET_##op
If computed gotos are disabled, the implementation is simpler:
#define TARGET(op) op
I'm finding it useful to use those
New submission from Skip Montanaro :
Should these references to "master" be changed to "main"?
% git co 3.10
Switched to branch '3.10'
Your branch is up to date with 'origin/3.10'.
% egrep master .azure-pipelines/*
.azure-pipelines/ci.yml:trigger: ['master', '3.10', '3.9',
ering for people thinking about whether or not to
disconnect the two. (I have no opinion on that subject. Clearly others
do.)
Skip
--
https://mail.python.org/mailman/listinfo/python-list
org. Posts gated from
comp.lang.python to the mailing list only get passed through
SpamBayes. All other elements of the tool chain occur ahead of the
gateway.
If we are using two different definitions of "moderation" I think it
is important to be clear what we mean.
Skip
--
https://mail.p
Skip Montanaro added the comment:
>
> Skip: By the way, I'm curious, why do you use --with-trace-refs?
>
I'm still horsing around with register opcodes and got in the habit of
building with pydebug and trace refs enabled.
--
___
Pytho
I think it will work as you expect.)
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Skip Montanaro added the comment:
I should revise that comment. The xxlimited and xxlimited_35 modules fail to
build. That seems suboptimal, but perhaps is to be expected. Perhaps it would
be better that compiling them not be attempted with configuring
--with-trace-refs
Skip Montanaro added the comment:
The latest commit seems to break the build if configured --with-trace-refs.
--
nosy: +skip.montanaro
___
Python tracker
<https://bugs.python.org/issue41
that I wouldn't use a batch formatter to conform
to some other conventions, then wind up having a mixed set of
conventions after my next edit. I presume vim and all IDEs worth their
salt also do a suitable job of formatting code on-the-fly.
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Change by Skip Montanaro :
--
title: What are the requirements for a test_sunry-testable script in
Tools/scripts? -> What are the requirements for a test_sundry-testable script
in Tools/scripts?
___
Python tracker
<https://bugs.pyth
Skip Montanaro added the comment:
I assume the OP is referring to this sort of usage:
>>> sniffer = csv.Sniffer()
>>> raw = open("mixed.csv").read()
>>> sniffer.has_header(raw)
False
*sigh*
I really wish the Sniffer class had never been added to the
New submission from Skip Montanaro :
In my fork of python/cpython I recently created a simple script to help me with
my work (I am messing around in the internals and sometimes get blindsided by
opcode changes). I stuck the script in Tools/script which caused
test_tools.test_sundry to hang
very well in the "PEP".
>
> Well, it seems to be written with an idea that a reader is already
> familiar with the benefits of register-based VMs. As a fresh reader, I
> tried to point out that fact. I also happen to be familiar with those
> benefits, and the fact that "on
1 - 100 of 2821 matches
Mail list logo