Change by Eric V. Smith :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
This looks like a problem with jupyter, possibly related to the permission
error. Have you tried a jupyter forum for help?
--
nosy: +eric.smith
___
Python tracker
<https://bugs.python.org/issue41
Eric V. Smith added the comment:
I'm not convinced. Isn't the real problem that exc_value is a str, and you're
just hiding that problem now?
--
___
Python tracker
<https://bugs.pyt
Change by Eric V. Smith :
--
resolution: -> not a bug
___
Python tracker
<https://bugs.python.org/issue41693>
___
___
Python-bugs-list mailing list
Unsubscrib
Eric V. Smith added the comment:
For the case of returning a list of non-tuples, all of my code assumes bytes,
so I think changing the docs to say bytes is good. "bytes-like" might be
overkill. Unfortunately, I don't know enough to say what encoding is returned:
I ju
Eric V. Smith added the comment:
[Adjusted title so that it displays correctly when not logged in. The text
within less-than and greater-than was being dropped, probably because some
piece of code didn't want to display unknown tags.]
--
nosy: +eric.smith
title: SQLite re
Eric V. Smith added the comment:
Among others, see:
issue 41649
issue 31961
In general, I think the consensus is that the caller should convert each
argument to a string. It's not subprocess's job to convert each parameter to a
string.
--
nosy: +
Change by Eric V. Smith :
--
components: +Documentation -IDLE, Windows
___
Python tracker
<https://bugs.python.org/issue41774>
___
___
Python-bugs-list mailin
Eric V. Smith added the comment:
You should not mutate a list while iterating over it.
See, for example
https://stackoverflow.com/questions/6260089/strange-result-when-removing-item-from-a-list
I couldn't find a place where this is mentioned in the python list docs. If
it's not
Eric V. Smith added the comment:
Removing Windows and IDLE devs from nosy list, since this isn't related to
either of those areas.
--
nosy: -paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
___
Python tracker
<https://bugs.py
Eric V. Smith added the comment:
I believe what testzip is doing is validating the structural integrity of the
file, which appears can be tested without decrypting the contents.
Although it is odd that if you don't call setpassword, even with the wrong
password, testzip will ra
Eric V. Smith added the comment:
I think that's a good change. It makes it clear when reading the source that
the print statement at the end of the loop is only executed for odd numbers.
Sure, you know this if you execute the code, or if you know how python for
loops and continue work
Eric V. Smith added the comment:
New changeset d09bead93990eed26ecb8fcd02a8a3f6e8fa73b7 by Miss Islington (bot)
in branch '3.8':
bpo-41778: Change a punctuation on documentation. (GH-9) (GH-22230)
https://github.com/python/cpython/commit/d09bead93990eed26ecb8fcd02a8a3
Eric V. Smith added the comment:
New changeset b3d11abcbc0fcf794f9be29aa78bb3d100a54960 by Emmanuel Arias in
branch '3.9':
[3.9] bpo-41778: Change a punctuation on documentation. (GH-9) (GH-22232)
https://github.com/python/cpython/commit/b3d11abcbc0fcf794f9be29aa78bb3
Change by Eric V. Smith :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
The bug tracker is not the correct place to request help on using Python. You
might try the python-list mailing list. You can find information on it at
https://mail.python.org/mailman/listinfo/python-list. Or you might wait until
someone answers your Stack
Eric V. Smith added the comment:
Since an f-string just evaluates to a regular string at the call site, before
any logging code is invoked, there's nothing for the logging code to do. As far
as it's concerned, it just gets a regular string.
--
nosy: +
Eric V. Smith added the comment:
Vinay raises a good point about performance that's well worth being aware of,
especially with expensive objects (as he says). But since f-strings are much
faster than other formatting (and especially .format()), there's a tradeoff. If
I have someth
Eric V. Smith added the comment:
The normal way for something like this to be added to the stdlib would first be
for a version on PyPI to be widely used. Then it would be evaluated for
suitability for inclusion in the stdlib.
Having it first on PyPI would flesh out the API and use cases
Eric V. Smith added the comment:
Yeah, I don't want to give any false hope on getting such a class accepted to
the stdlib. It's not super likely to be accepted unless there's a more
compelling motivation on why it needs to be in the stdlib and n
Eric V. Smith added the comment:
New changeset 7bcc6456ad4704da9b287c8045768fa53961adc5 by Neeraj Samtani in
branch 'master':
bpo-41776: Revise example of "continue" in the tutorial documentation (GH-22234)
https://github.com/python/cpython/commit/7bcc6456ad4704da9b28
Eric V. Smith added the comment:
New changeset 0cc037f8a72c283bf64d1968e34cbdc22b0e3010 by Miss Islington (bot)
in branch '3.9':
bpo-41776: Revise example of "continue" in the tutorial documentation
(GH-22234) (GH-22255)
https://github.com/p
Eric V. Smith added the comment:
New changeset a0da90720d5330c53b8083272374ede1c7a1e33a by Miss Islington (bot)
in branch '3.8':
bpo-41776: Revise example of "continue" in the tutorial documentation
(GH-22234) (GH-22256)
https://github.com/p
Change by Eric V. Smith :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
This looks like an issue with splunklib, which is not distributed with python.
I'm not sure if it's the same splunklib, but you might try
https://github.com/IntegralDefense/splunklib
--
nosy: +
Change by Eric V. Smith :
--
status: open -> pending
___
Python tracker
<https://bugs.python.org/issue41799>
___
___
Python-bugs-list mailing list
Unsubscrib
Eric V. Smith added the comment:
It's not clear what bug you're describing, or how it relates to Python. Can you
provide more information, and show what behavior your seeing, and what behavior
you're expecting?
--
nosy: +eric.smith
___
Change by Eric V. Smith :
--
status: open -> pending
___
Python tracker
<https://bugs.python.org/issue41803>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Eric V. Smith :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
Simplified:
>>> import ipaddress
>>> print(ipaddress.ip_address('172.16.254.00').version)
4
So your concern is that you think '172.16.254.00' (or equivalently,
'172.16.254.0') shouldn't be treated as a vali
Eric V. Smith added the comment:
Please do not include screen shots in bug reports. They've unfriendly to people
who use screen readers or other accessibility software. Instead, please copy
and paste (or retype, if needed) the text into the comment section.
> '172.16.25
Eric V. Smith added the comment:
Given that RFC 790 uses 000 as an octet (thanks Serhiy), I think the bug here,
if there is one, is in the other validator that you're using. Without a
standard saying not to accept 00 or 000, I think we won't make any c
Eric V. Smith added the comment:
Does anyone know why types.EllipsisType was removed to begin with? I just want
to make sure we're not repeating some mistake of the past.
--
nosy: +eric.smith
___
Python tracker
<https://bugs.python.org/is
Eric V. Smith added the comment:
Please provide the output you see and the output you expect.
And it would be better if you could just post the code into the comment window.
I, for one, cannot run your .ipynb file.
--
nosy: +eric.smith
___
Python
Eric V. Smith added the comment:
I'm going to close this, for two reasons:
- RFC 790 uses 000 in examples, do I think ipaddress is doing the correct thing
already.
- We'd be unlikely to change this in any event, for fear of breaking existing,
working code.
@anudeepballa07: if y
Eric V. Smith added the comment:
The first point should have been "RFC 790 uses 000 in examples, so I think
ipaddress is doing the correct thing already."
--
___
Python tracker
<https://bugs.python.o
Eric V. Smith added the comment:
Thanks for doing the research, Bas! It sounds like adding back in NoneType,
NotImplementedType, and EllipsisType is appropriate, then.
+1
The commit should have a comment about the reason: for type checkers which
can't use type(Ellipsis), etc. I
Eric V. Smith added the comment:
Your example is too complex to work through in my head, but I suspect this is
the issue you're seeing:
https://docs.python.org/3/faq/programming.html#why-did-changing-list-y-also-change-list-x
In any event, this is almost certainly not a bug in Python
Eric V. Smith added the comment:
This seems like a Django specific error, in which case this isn't the correct
bug tracker to report the problem.
Can you reproduce a problem with just straight Python, without using Django?
--
nosy: +eric.
Eric V. Smith added the comment:
My understanding is that Windows doesn't tell you which DLL is missing. I think
the best we could do is append something to the error message saying "or one
its dependencies".
--
components: +Windows
nosy: +eric.smith, paul.moo
Eric V. Smith added the comment:
No problem. Good luck!
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Eric V. Smith :
--
status: open -> pending
___
Python tracker
<https://bugs.python.org/issue41827>
___
___
Python-bugs-list mailing list
Unsubscrib
Eric V. Smith added the comment:
Thanks, Serhiy. That's a better section than I found.
I'm going to close this. @jeetshahj12375: If you can show that this is a bug in
python, please re-open this issue.
--
resolution: -> not a bug
stage: -> resolved
status
Eric V. Smith added the comment:
It would be helpful if you can:
- simplify the example
- attach the simplified code to this issue
- show how the code runs with no errors, and how you invoke it
- show how you invoke the code when it does have errors
Please do no attach images: they are not
Change by Eric V. Smith :
--
status: open -> pending
___
Python tracker
<https://bugs.python.org/issue41838>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Eric V. Smith :
--
resolution: -> third party
stage: -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.or
Change by Eric V. Smith :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
If you can provide the information requested, please reopen this issue. In the
meantime, I’m closing it.
--
resolution: -> rejected
stage: -> resolved
status: pending -> closed
___
Python tracke
Eric V. Smith added the comment:
f-strings are indeed evaluated when the value of the string is needed. Your
example is equivalent to:
>>> re.sub(r'([a-z]+)', fr"\112345", 'something')
'J345'
As always with regexes, you need to be careful
Change by Eric V. Smith :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue41885>
___
___
Eric V. Smith added the comment:
I assume that ElementTree doesn't support mutation while iterating.
However, the docs at
https://docs.python.org/3/library/xml.etree.elementtree.html#modifying-an-xml-file
show removing an item while iterating. It probably only works because the
child
Eric V. Smith added the comment:
I think the only action here is to improve the documentation. That example is
especially problematic.
--
___
Python tracker
<https://bugs.python.org/issue41
Eric V. Smith added the comment:
Ah, good point. I agree the example should make that clear. And I think a note
in .remove() about using it while iterating would be a good idea, too.
--
___
Python tracker
<https://bugs.python.org/issue41
Eric V. Smith added the comment:
The example is iterating over the list returned by root.findall(), but removing
from a different data structure in root, so it won't have a problem.
--
___
Python tracker
<https://bugs.python.org/is
Change by Eric V. Smith :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
type: -> behavior
___
Python tracker
<https://bugs.python
Eric V. Smith added the comment:
As you've seen, the example is correct. I made the same mistake earlier today.
For others: see also #41891 for a suggestion to improve the documentation.
As was pointed out in that issue, it's generally true in Python that you should
not mutate
Eric V. Smith added the comment:
I can't say how ElementTree works without more checking, but this solution
cannot work in general. Given a pointer to an object that's in a list, how
would you get to the next item? Say the parent list-like object has a C array
of pointers to the
Change by Eric V. Smith :
--
nosy: +eric.smith
___
Python tracker
<https://bugs.python.org/issue41905>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Eric V. Smith :
--
nosy: +eric.smith
___
Python tracker
<https://bugs.python.org/issue41907>
___
___
Python-bugs-list mailing list
Unsubscribe:
Eric V. Smith added the comment:
Isn't this just:
(project_path / "main.py").exists()
?
I don't think .has would be any more efficient.
--
nosy: +eric.smith
___
Python tracker
<https://bug
Eric V. Smith added the comment:
>From the test.regrtest help:
-j PROCESSES, --multiprocess PROCESSES
run PROCESSES processes at once
So, if you want to run 4 processes in parallel:
./python -m test.regrtest -j4
--
nosy: +eric.sm
Eric V. Smith added the comment:
You could try setting EXTRATESTOPTS, although I haven't tried it.
This question is probably better asked on python-list or StackOverflow.
--
___
Python tracker
<https://bugs.python.org/is
Change by Eric V. Smith :
--
resolution: -> rejected
___
Python tracker
<https://bugs.python.org/issue41934>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Eric V. Smith :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
type: -> behavior
___
Python tracker
<https://bugs.python
Eric V. Smith added the comment:
For what it's worth, here's how f-strings with the "=" feature work:
I remember the char* pointer where the expression starts, then I parse the
expression into an AST, then I note the char* pointer where the expression
ended. The text bet
Eric V. Smith added the comment:
It's true that f-string expressions can't contain newlines.
f-strings are definitely easier, because the tokenizer has already tokenized
the string from the input, so I'm just remembering pointers inside the
tokenized string.
I was thinking
Change by Eric V. Smith :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
Closing as third party.
--
nosy: +eric.smith
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
There's a PEP for this: PEP 394. If you want to change this, I suggest
discussing it on the python-dev mailing list. If that leads to changes in the
PEP, this issue can be re-opened.
Personally I don't see this change happening until there are
Eric V. Smith added the comment:
Agreed that this isn't likely to change.
If you have a concrete proposal for how the language parsing rules would change
in order to support this, you should post it to the python-ideas mailing list.
If that discussion results in a consensus, then we c
Eric V. Smith added the comment:
Re: backporting
A quick test shows this feature is not in 3.8. We can't add new features to
3.8, so I'd say "no, it doesn't need to be backported".
--
___
Python tracker
<https:
Eric V. Smith added the comment:
At this point, it's a documentation-only issue. This new feature isn't
documented.
It might be less confusing to close this issue and open a new one. I'll do that
shortly.
--
versions: +Python 3.10
___
New submission from Eric V. Smith :
This feature was added in issue 32820, but was never documented.
--
assignee: docs@python
components: Documentation
keywords: easy, newcomer friendly
messages: 378812
nosy: docs@python, eric.smith
priority: normal
severity: normal
stage: needs patch
Eric V. Smith added the comment:
I've created issue 42061 for the documentation. Hopefully marking that issue as
easy and newcomer friendly will attract some attention.
Thanks ewosborne and Serhiy for adding this feature, and everyone for their
input.
--
resolution: -> fix
Eric V. Smith added the comment:
It sounds like your solution is macOS only, where as Python needs to be cross
platform.
Further, I assume there are good reasons that it's implemented the way it is.
Perhaps there was no alternative when it was initially developed? And we're
cons
Eric V. Smith added the comment:
This was proposed in issue 41310.
--
nosy: +eric.smith
___
Python tracker
<https://bugs.python.org/issue42081>
___
___
Pytho
Eric V. Smith added the comment:
Can you tell us what the expected behavior is?
>From the strftime docs: "The full set of format codes supported varies across
>platforms, because Python calls the platform C library’s strftime() function,
>and platform variations are common. T
Eric V. Smith added the comment:
New changeset c7437e2c0216e05fbf17bf96294cb20954e36e48 by Batuhan Taskaya in
branch 'master':
bpo-41747: Ensure all dataclass methods uses their parents' qualname (GH-22155)
https://github.com/python/cpython/commit/c7437e2c0216e05fbf17bf962
Eric V. Smith added the comment:
Thanks for the PR!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
Just some notes to consider before work starts on this in earnest:
We need to decide what sort of changes we'll accept, if any. For at least the
first round of this, I'm okay with "absolutely no change will be acceptable".
For example,
Eric V. Smith added the comment:
You've rebound "int" to a string. I think the error message is correct.
Here's a simpler case:
>>> int = ''
>>> int
''
>>> int()
Traceback (most recent call last):
File "", line 1,
Eric V. Smith added the comment:
I should point out that this is the same as doing:
>>> ''()
:1: SyntaxWarning: 'str' object is not callable; perhaps you missed a
comma?
Traceback (most recent call last):
File "", line 1, in
TypeError: '
Eric V. Smith added the comment:
Unfortunately there's not much that can be done about this. The code that
writes that error message only knows about objects, which don't have names,
only types and values.
--
___
Python track
Eric V. Smith added the comment:
This isn't a bug. It's due to the base 2 representation of floating point
numbers. See for example: See
https://docs.python.org/3/tutorial/floatingpoint.html
It's possible, depending on your use case, you might want to use the decimal
modul
Eric V. Smith added the comment:
Thanks for double-checking the other languages, Steven.
--
___
Python tracker
<https://bugs.python.org/issue42148>
___
___
Pytho
Eric V. Smith added the comment:
What does locale.localeconv() return?
>>> locale.localeconv()
{'int_curr_symbol': '', 'currency_symbol': '', 'mon_decimal_point': '',
'mon_thousands_sep': '', 'mon_
Eric V. Smith added the comment:
p_cs_precedes == 1 means "the currency_symbol or int_curr_symbol strings should
precede the value of a monetary amount", per
https://www.gnu.org/software/libc/manual/html_node/Currency-Symbol.html (I
couldn't find a more authoritative sour
Eric V. Smith added the comment:
And just to show that python is doing the right thing, if the locale is set up
correctly, I'll show the following hack:
>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'en_US')
'en_US'
>>> locale.curr
Eric V. Smith added the comment:
To answer the question:
> "can anyone explain why "pickle.loads(np.float64(0.34104))" prints "True"
You can use pickletools.dis:
>>> bytes(np.float64(0.34104))
b'\x88.\xa8o\x99\xd3\xd5?'
>>> picklet
Eric V. Smith added the comment:
I explained this in https://bugs.python.org/issue42165#msg379755
This is not a bug in python, it's a bug in your code. You should not expect to
unpickle something that wasn't created by pickling it.
--
nosy: +eric.smith
resolution: -&
Eric V. Smith added the comment:
Or stated differently: if you pass random byte strings to pickle.loads(),
sometimes it might succeed and produce a random object because you've managed
to create a valid pickle. But most often it will
Change by Eric V. Smith :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42156>
___
___
Eric V. Smith added the comment:
Thanks for the contribution, @John-Ted!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
The line number has been fixed in python 3.9:
File "...\foo.py", line 5
(**kwargs)
^
SyntaxError: f-string: invalid syntax
The error message should improve when we move parsing of f-strings into the
parser. I doubt we'd put in t
Change by Eric V. Smith :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Eric V. Smith added the comment:
PEP 594 hasn't been accepted yet.
--
nosy: +eric.smith
___
Python tracker
<https://bugs.python.org/issue42265>
___
___
Eric V. Smith added the comment:
I don't think we should backport them. It's definitely a new feature, and our
policy is no new features in micro versions.
--
___
Python tracker
<https://bugs.python.o
New submission from Eric V. Smith :
I resisted adding the ability to set __slots__ in the first version of
dataclasses, since it requires that instead of modifying an existing class, an
entirely new class is returned.
But I think this feature would be useful enough that I'm now willi
Eric V. Smith added the comment:
The bug tracker isn't the appropriate place to ask for help.
Your problem is most likely with your code, or possibly with the server you're
talking to. But you haven't provided us any way of knowing which.
I suggest you ask for help on
Change by Eric V. Smith :
--
nosy: +eric.smith
___
Python tracker
<https://bugs.python.org/issue42278>
___
___
Python-bugs-list mailing list
Unsubscribe:
1201 - 1300 of 2699 matches
Mail list logo