Barry A. Warsaw added the comment:
On Oct 20, 2021, at 11:31, Brett Cannon wrote:
>
>> +1 on a proxy (with read-only attrs) for everything but __name__, __file__,
>> and __path__ (which can all be different than the spec).
>
> I'm -1 on a proxy as that doesn't simplify
Barry A. Warsaw added the comment:
On Oct 20, 2021, at 11:38, Eric Snow wrote:
>
> Regardless, I expect the primary reason __package__ is writable is
> because modules have never had any read-only attrs.
So historical accident mostly.
> The more important question
Barry A. Warsaw added the comment:
Does this mean that CWD could be in a directory that you couldn't chdir() back
into?
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue45
Barry A. Warsaw added the comment:
On Oct 20, 2021, at 11:27, Brett Cannon wrote:
>
>> That should probably be a separate issue/PR in either case.
>
> https://bugs.python.org/issue38782 and I was trying to rope you into doing
> the work.
Ha! You should have
Change by Barry A. Warsaw :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Barry A. Warsaw :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue38782>
___
___
Python-bugs-list mailing list
Unsubscribe:
Barry A. Warsaw added the comment:
New changeset 876fc7fcec9a79a11546b7588d3683a5ccb4d31c by Barry Warsaw in
branch 'main':
bpo-35673: Add a public alias for namespace package __loader__ attribute
(#29049)
https://github.com/python/cpython/commit/876fc7fcec9a79a11546b7588d3683a5ccb4d31c
Change by Barry A. Warsaw :
--
nosy: +brett.cannon, eric.snow
___
Python tracker
<https://bugs.python.org/issue45540>
___
___
Python-bugs-list mailing list
Unsub
New submission from Barry A. Warsaw :
TL;DR module.__spec__.parent is read-only but module.__package__ is r/w despite
documentation that implies that these two attributes should be identical, and
various issues that focus on migrating from direct module attributes to
ModuleSpec attributes
Change by Barry A. Warsaw :
--
pull_requests: +27351
pull_request: https://github.com/python/cpython/pull/29085
___
Python tracker
<https://bugs.python.org/issue42
Barry A. Warsaw added the comment:
Woot! I finally figured out the problem and how to fix it. It has nothing to
do with Python and everything to do with AT They run a service called DNS
Error Assist, quoting:
"Sometimes we enter a wrong search word, or a wrong web address, or
Change by Barry A. Warsaw :
--
keywords: +patch
pull_requests: +27347
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/29078
___
Python tracker
<https://bugs.python.org/issu
Barry A. Warsaw added the comment:
I don't know. What benefit would be gained? That should probably be a
separate issue/PR in either case.
--
___
Python tracker
<https://bugs.python.org/issue35
Barry A. Warsaw added the comment:
I can see why Ethan might be overwhelmed by reverting this change. I tried to
merge in his branch but failed, so I'm chucking that work and will try again.
--
___
Python tracker
<https://bugs.python.
Barry A. Warsaw added the comment:
Since the documentation problem reported here has since been fixed, and really
all that's left is to expose NamespaceLoader publicly and register it with the
abc, this is technically a new feature so it can't be backported. Thus,
targeting only 3.11
Barry A. Warsaw added the comment:
First crack at a PR for this issue.
--
keywords: +needs review -patch
___
Python tracker
<https://bugs.python.org/issue35
Change by Barry A. Warsaw :
--
keywords: +patch
pull_requests: +27320
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29049
___
Python tracker
<https://bugs.python.org/issu
Change by Barry A. Warsaw :
--
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7, Python
3.8
___
Python tracker
<https://bugs.python.org/issue35
Barry A. Warsaw added the comment:
I'm going to take a look at this during the Python core sprint.
--
assignee: -> barry
___
Python tracker
<https://bugs.python.org/issu
Barry A. Warsaw added the comment:
This doesn't seem right, given that PEP 663 has not been approved by the SC yet:
3.9.7 (default, Oct 13 2021, 06:45:31)
[Clang 13.0.0 (clang-1300.0.29.3)]
ABC.a ABC.b ABC.c ABC.a
|main=|@presto[~/projects/python/cpython:1058]% python3.10 /tmp/foo.py
Barry A. Warsaw added the comment:
Weird. PR 28655 is merged on GH, but still shows open on this bpo ticket.
--
___
Python tracker
<https://bugs.python.org/issue21
Change by Barry A. Warsaw :
--
nosy: -barry
___
Python tracker
<https://bugs.python.org/issue37722>
___
___
Python-bugs-list mailing list
Unsubscribe:
Barry A. Warsaw added the comment:
FWIW, Greg's test case does not fail for me with 6a533a4238
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue45
such a code snippet?
> I am very curious to see if someone has a solution to my problem.
By the way there is a great PyQt mailing list that you might like to join.
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Lots of knowledgeable PyQt developers hang out on that list.
Barry
>
> Regards
> Mohsen
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
> On 1 Oct 2021, at 10:58, Shaozhong SHI wrote:
>
> Hi, Barry,
>
> In cases of automating checking, validation and producing reports in the
> context of data quality control and giving specific feedback to production
> teams, regex is perhaps the only way.
>
>
> On 30 Sep 2021, at 19:35, dn via Python-list wrote:
>
> On 01/10/2021 06.16, Barry Scott wrote:
>>
>>
>>> On 30 Sep 2021, at 12:29, Shaozhong SHI wrote:
>>>
>>> Dear All,
>>>
>>> I am trying to look for a definitive gu
> On 30 Sep 2021, at 12:29, Shaozhong SHI wrote:
>
> Dear All,
>
> I am trying to look for a definitive guide for Regex in Python.
> Can anyone help?
Have you read the python docs for the re module?
Barry
>
> Regards,
>
> David
> --
> https://mai
Change by Barry A. Warsaw :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue45324>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Barry A. Warsaw :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue45020>
___
___
Python-bugs-list mailing list
Unsubscribe:
Barry A. Warsaw added the comment:
On Sep 16, 2021, at 00:36, STINNER Victor wrote:
>
> The commit title is wrong, the default "big" not sys.byteorder:
>
>int.to_bytes(length=1, byteorder='big', *, signed=False)
>int.from_bytes(bytes, byteorder='big
Change by Barry A. Warsaw :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Barry A. Warsaw added the comment:
New changeset 07e737d002cdbf0bfee53248a652a86c9f93f02b by Barry Warsaw in
branch 'main':
bpo-45155 : Default arguments for int.to_bytes(length=1,
byteorder=sys.byteorder) (#28265)
https://github.com/python/cpython/commit
Barry A. Warsaw added the comment:
This bug made my day! :-D
--
___
Python tracker
<https://bugs.python.org/issue45202>
___
___
Python-bugs-list mailin
Barry A. Warsaw added the comment:
"big" by default
--
___
Python tracker
<https://bugs.python.org/issue45155>
___
___
Python-bugs-list mailing
Barry A. Warsaw added the comment:
On Sep 13, 2021, at 22:12, Vedran Čačić wrote:
>
>
> Vedran Čačić added the comment:
>
> I'd say yes. Of course, one way to ascertain that would be to conduct a valid
> pool. ;-)
People can always comment otherwise in th
Barry A. Warsaw added the comment:
On Sep 13, 2021, at 13:39, Vedran Čačić wrote:
>
> The poll is invalid, since the option that most people want is deliberately
> not offered.
*Is* there an option that most people want?
--
___
Pytho
Barry A. Warsaw added the comment:
On Sep 13, 2021, at 13:38, STINNER Victor wrote:
> It seems like your proposal is mostly guided by: convert an int to a byte
> (bytes string of length 1). IMO this case is special enough to justify the
> usage of a different function.
Barry A. Warsaw added the comment:
> I'd probably say "In the face of ambiguity, refuse the temptation to guess".
>
> As there's disagreement about the 'correct' default, make it None and require
> either "big" or "little" if length > 1 (the defa
Barry A. Warsaw added the comment:
I created a Discourse poll:
https://discuss.python.org/t/what-should-be-the-default-value-for-int-to-bytes-byteorder/10616
--
___
Python tracker
<https://bugs.python.org/issue45
Barry A. Warsaw added the comment:
That’s okay, Brandt’s improved sys.byteorder is fastest .
% ./python.exe -m timeit -r11 -s 'x=3452452454524' 'x.to_bytes(10, "little")'
200 loops, best of 11: 94.6 nsec per loop
% ./python.exe -m timeit -r11 -s 'x=3452452454524' 'x.to_byte
Barry A. Warsaw added the comment:
Petr Viktorin added the comment:
>
> Exactly, a platform-dependent default is a bad idea. A default allows using
> the function without the code author & reviewer even being *aware* that there
> is a choice, and that is dangerous.
I’m not
Barry A. Warsaw added the comment:
On Sep 10, 2021, at 04:06, STINNER Victor wrote:
>
> If the intent is to create a bytes string of length 1, I'm not sure that
> "re-using" this existing API for that is a good idea.
Why not? It seems an obvious and
Barry A. Warsaw added the comment:
Just to point out, struct module also uses “native” (i.e. system) byte order by
default. Any choice other than that for to_bytes() seems both arbitrary and
inconsistent.
> On Sep 10, 2021, at 00:48, Petr Viktorin wrote:
>
> Exactly, a platform-
Barry A. Warsaw added the comment:
For the common case where you’re using all defaults, it won’t matter.
byteorder doesn’t matter when length=1.
> On Sep 9, 2021, at 18:12, Raymond Hettinger wrote:
>
>
> Raymond Hettinger added the comment:
>
> Perhaps instead
Barry A. Warsaw added the comment:
> Ah, signed=False by default, so (128).to_bytes() will work. But I still worry
> that it can provoke writing more errorprone code.
Can you elaborate on that? Obviously no existing code will change behavior. I
really don’t expect people to write
Change by Barry A. Warsaw :
--
keywords: +patch
pull_requests: +26685
pull_request: https://github.com/python/cpython/pull/28265
___
Python tracker
<https://bugs.python.org/issue45
New submission from Barry A. Warsaw :
In the PEP 467 discussion, I proposed being able to use
>>> (65).to_bytes()
b'A'
IOW, adding default arguments for the `length` and `byteorder` arguments to
`int.to_bytes()`
https://mail.python.org/archives/list/python-...@python.or
gt;> The differences you cite should have thrown up issues every year.
>> I must see if I can find my old log books...
>>
>
> ISTR that the USA changes were the same as the EU until a few years ago.
I recall that DST changes have been at least 1 week different between th
n python 2 and
>> 3, they did).
>>
>> Any thoughts?
>
> Usually, you use 5 well known log levels: "DEBUG", "INFO", "WARNING",
> "ERROR" and "CRITICAL".
> No need to provide a special function listing those levels.
The big problem with >>> is that it means a third level quote in email clients.
So when people cut-n-paste REPL output it’s formatted badly by email clients.
A prompt that avoided that issue would be nice.
>>> print(“this is not a quoted reply”)
Barry
>
> rofl
> --
&
while instead of for but in code review that will get
queried.
Barry
> --
> https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
ker unless they can make a cert that signs the dns name.
And that means they hacked the CA which is a big problem.
Barry
>
> Elijah
> --
> or a clever infosec name now forgotten
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
> On 22 Aug 2021, at 12:03, Chris Angelico wrote:
>
> On Sun, Aug 22, 2021 at 8:30 PM Barry Scott <mailto:ba...@barrys-emacs.org>> wrote:
>>
>>
>>
>> On 22 Aug 2021, at 10:37, Chris Angelico wrote:
>>
>> When it comes to security, on
t on windows.
And then only if you have the right MSVC tools installed.
Most interesting extensions have dependencies only other software.
Which means that you need to know how to build all the dependencies as well.
For something as complex as PyQt5 you need to be a developer with reasonable
experience to buil
in PKI is revocation. The gold standard is for a web site to use
OCSP stapling.
But that is rare sadly. And because of issues with revocation lists, (privacy,
latency, need to
fail open on failiure, DoD vector, etc) this is where the paranoid should look.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
> On 17 Aug 2021, at 19:25, Chris Angelico wrote:
>
> On Wed, Aug 18, 2021 at 4:16 AM Barry Scott wrote:
>> Oh and if you have the freedom avoid Basic Auth as its not secure at all.
>>
>
> That's usually irrelevant, since the alternative is most likely t
say that only allowed
value is
utf-8 and you most have the unicode Normalization Form C ("NFC").
Oh and if you have the freedom avoid Basic Auth as its not secure at all.
> Robin Becker
Barry
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, 16 August 2021 16:13:47 BST Dan Stromberg wrote:
> Hi folks.
>
> I'm working on a large codebase that has at least one cyclic import.
>
> In case I end up needing to eliminate the cyclic imports, is there any sort
> of tool that will generate an import graph and output Just the
ne with a deeper
understanding will
explain how you do this. I would guess use eval.
This is a known problem and there are core devs that are working on
improvements.
But it will be at leas python 3.11 before there is a possible improvement.
Barry
>
> Thanks,
> -- Lukas
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
> On 19 Jul 2021, at 18:43, Bischoop wrote:
>
>
> Will Python delevopment apps for Android OS getting easier?
> So far best option is Kivy which is not liked by many developers,
> another option is PyQT5, which finally gets some support but there still
> are some buts..
> Tkinter, some
Barry A. Warsaw added the comment:
Thanks Ned. Seems you might be right. I thought I'd done a clean test, but in
any event, I just pulled 3.10 head and verified that it's producing 100%
coverage. Thanks all for the fix!
--
resolution: -> fixed
status: open ->
Barry A. Warsaw added the comment:
I just retested my test case (see the coveragepy link below) with Python 3.10
git head and coveragepy git head, and I'm still seeing the misses only in
Python 3.10:
-- coverage: platform darwin, python 3.10.0-beta-4 ---
Name
Barry A. Warsaw added the comment:
Pablo, this is triggered by my bug report here:
https://github.com/nedbat/coveragepy/issues/1187
I tested this again today with the 3.10 git head and still got the coverage
misses. Happy to try any other combinations
Barry A. Warsaw added the comment:
Jason, I think the question you raise re: accelerated deprecation, is probably
a RM or SC question. I'll nosy in Pablo and see if he has a strong opinion.
--
nosy: +pablogsal
___
Python tracker
<ht
Change by Barry A. Warsaw :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Barry A. Warsaw added the comment:
New changeset 7223ce3b3f50ec8a825e317437ea0359b6ad6856 by Miss Islington (bot)
in branch '3.10':
bpo-44613: Make importlib.metadata non-provisional (GH-27101) (#27106)
https://github.com/python/cpython/commit/7223ce3b3f50ec8a825e317437ea0359b6ad6856
Barry A. Warsaw added the comment:
New changeset f6954cdfc50060a54318fb2aea4d80408381243a by Barry Warsaw in
branch 'main':
bpo-44613: Make importlib.metadata non-provisional (#27101)
https://github.com/python/cpython/commit/f6954cdfc50060a54318fb2aea4d80408381243a
Change by Barry A. Warsaw :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue44616>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Barry A. Warsaw :
--
keywords: +patch
pull_requests: +25649
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27101
___
Python tracker
<https://bugs.python.org/issu
New submission from Barry A. Warsaw :
As discussed with Jason, importlib.metadata will be made non-provisional in
3.10. I have a PR in the works for this.
--
assignee: barry
components: Documentation
messages: 397344
nosy: barry, jaraco
priority: normal
severity: normal
status: open
Change by Barry A. Warsaw :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue33025>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Barry A. Warsaw :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue43945>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Barry A. Warsaw :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue44246>
___
___
Python-bugs-list mailing list
Unsubscribe:
Barry A. Warsaw added the comment:
New changeset 8488b85c6397fe58f17fc00e047044c959ac0b04 by Barry Warsaw in
branch 'main':
bpo-44498: Issue a deprecation warning on asynchat, asyncore and smtpd import
(#26882)
https://github.com/python/cpython/commit
00\xdc\x87\x14\xb7'
>
> So the shorter cheat program might now be:
The data is smaller, but at the cost of the code that knows how to decompress
it.
I'd expect that by using compression you have increased memory use as this
amount of data is far smaller than code to decompress it.
Barry
--
Change by Barry A. Warsaw :
--
pull_requests: +25459
pull_request: https://github.com/python/cpython/pull/26882
___
Python tracker
<https://bugs.python.org/issue44
Barry A. Warsaw added the comment:
+1 for removal
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue44498>
___
___
Python-bugs-list mailin
Also you report requires any developer to write a program from you notes to
reproduce the problem.
Attach a program that shows the problem would help.
Better yet diagnose the problem after you reproduce it with a fix in a PR.
Barry
> On 18 Jun 2021, at 06:07, Alexander Neilson wr
> On 16 Jun 2021, at 21:46, Arak Rachael wrote:
>
> On Wednesday, 16 June 2021 at 22:08:31 UTC+2, Chris Angelico wrote:
>>> On Thu, Jun 17, 2021 at 6:06 AM Arak Rachael wrote:
>>>
>>> Hi guys,
>>>
>>> I have an image from google maps to say and I need to check if it has road
>>>
ment.
> I have the latest version (3.9.5) and there definitely seems to be
> something going on at your end.
Details please: Which OS which version of Python etc.
What does crashes mean exactly?
Was it PyCharm that crashes or python that crashes?
Barry
>
> Any ideas?
>
>
> On 2 Jun 2021, at 18:18, Luke wrote:
>
> When i wrote a program, i tried to open it but it struggles to open.
I'm guessing you are a Windows user.
Does this help? https://docs.python.org/3/faq/windows.html
<https://docs.python.org/3/faq/windows.html>
Barry
--
https://
se of getter functions allows a property's value to be calculated.
The use of setting functions allows a property change to update the state an
object.
The python property mechanism allows the getting and setter to be hidden from
the API as that the user of the object can see the proper
for more details.
And https://www.mattlayman.com/blog/2015/i18n/ looks useful as well.
Then you can use use the I18N gettext tools to make a .pot and .po files.
Barry
>
> --
> Antoon Pardon.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
Change by Barry A. Warsaw :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue40280>
___
___
Python-bugs-list mailing list
Unsubscribe:
e summit, but, ah, might as well put the community two-cents in
> now, hey?
>
> I, for one, feel like this is obvious.
I think the python ideas list is a better place to have this discussion.
Barry
>
> --
> Jason C. McDonald (CodeMouse92)
> Author | Speaker | Hack
Anilyka Barry added the comment:
I'd forgotten that I did that. Looking back on it, this is indeed not a good
change. Since there hasn't been any traction on in for 5 years, I think it's
safe to say it's not something people want.
--
resolution: -> rejected
stage: patch rev
indows 10
> machine, so it would be nice if I have something that works on both.
In this case trying to develop the code on Windows will make your life very
hard.
Are you using Windows because you do not have easy access to Centos 7?
If so why not run Centos 7 in a VM on your Windows machine as yo
ou can prove that py.ini is ignored by using PYLAUNCH_DEBUG but I think its
that you
do not have the config in the py.ini that does what you want.
As an example is here is the output I see:
C:\Users\barry>set PYLAUNCH_DEBUG=1
C:\Users\barry>py.exe -3
launcher build: 32bit
launcher e
indows\py.exe?
What happens if you try running c:\windows\py.exe -0?
Barry
--
https://mail.python.org/mailman/listinfo/python-list
nning:
py -0
The entry with an * at the end is the default.
On windows 10 your personal py.ini is in %localappdata%\py.ini
do you have one?
type %localappdata%\py.ini
If not you might want to create one that sets things up as you need them
configured.
Here is what I have on my wi
true. OTOH, mkdir's easy to debug if it hangs around.
Only the fcntl method is robust. Your suggestion with mkdir is not
reliable in practice. If you need a lock in the sh env then there are
standard patterns using the flock command. See the man page
for examples.
Barry
>
> Cheers,
> Cameron Simpson
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
users to apply operation to
>-g GROUP, --group GROUP
> group to apply operation to
>
> However, the options -o, -u, and -g are required, not optional.
You could use positional args like this:
grocli check user,user group
Barry
>
> The documen
s will the lock be granted.
You can then do the possible long running task.
When a second copy of the program runs from cron it will get the
EWOULDBLOCK error and you can just exit.
Barry
>
> support.py contains:
>
Change by Barry A. Warsaw :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue43817>
___
___
Python-bugs-list mailing list
Unsubscribe:
Barry A. Warsaw added the comment:
@jaraco beat me to it. PRs approved!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Barry A. Warsaw added the comment:
I'd still like to. I'm also happy to review any PRs if someone beats me to it.
--
___
Python tracker
<https://bugs.python.org/issue37
that a forceful constraint whilst running would crash the container?
>
> How else could one approach it?
>
I was responding to the assertion that adding swap to the system would impact
other containers.
The solution I have used is to set service/container resource limits to ensure
they work as expected.
I was not suggestion this a fix for the memory leak.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
ance.
Assuming this a modern linux then you should have control groups that allow you
to set limits on memory and swap for each container.
Are you running with systemd?
Barry
> --
> https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.org/mailman/listinfo/python-list
ted it on a clean VM and that's not what happens, but maybe for
> some people? I dunno
I think it is as simple as the python installer does not have the string
“setup” in the name.
I raise a bpo that is getting worked to change this hopefully for 3.10 maybe
3.11.
Barry
> --
> http
> On 3 Mar 2021, at 18:41, Chris Angelico wrote:
>
> On Thu, Mar 4, 2021 at 5:25 AM Barry Scott <mailto:ba...@barrys-emacs.org>> wrote:
>>
>>
>>
>>> On 3 Mar 2021, at 17:35, David Lowry-Duda wrote:
>>>
>>>>
301 - 400 of 3394 matches
Mail list logo