New submission from Jonathan Eunice:
textwrap.dedent contains a bit of code that appears logical at first blush, but
in fact can never execute under any input conditions.
Not only are the lines "dead code," they are the only thing (i.e. only
non-debugging lines) now standing in
Changes by Jonathan Eunice :
--
pull_requests: +2128
___
Python tracker
<http://bugs.python.org/issue30603>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jonathan Eunice :
--
pull_requests: +2126
___
Python tracker
<http://bugs.python.org/issue30620>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jonathan Eunice :
--
pull_requests: +2127
___
Python tracker
<http://bugs.python.org/issue30591>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Fine added the comment:
I mention this issue, and related pages, in
[Python-ideas] dict literal allows duplicate keys
https://mail.python.org/pipermail/python-ideas/2019-March/055717.html
It arises from a discussion of PEP 584 -- Add + and - operators to the built-in
dict class
Jonathan Fine added the comment:
I mention this issue, and related pages, in
[Python-ideas] dict literal allows duplicate keys
https://mail.python.org/pipermail/python-ideas/2019-March/055717.html
It arises from a discussion of PEP 584 -- Add + and - operators to the built-in
dict class
Jonathan Fine added the comment:
This is was closed and tagged as resolved in 2012. The status has not been
changed since then.
Using dict(a=1, ...) provides a workaround, but only when the keys are valid as
variable names. The general workaround is something like
helper([
(1
New submission from Jonathan Horn :
I encountered a problem with replacing the 'Subject' header of an email. After
serializing it again, the utf8 encoding was wrong. It seems to be occurring
when folding the internal header objects.
Example:
>> email.policy.default.fold
Change by Jonathan Springer :
--
nosy: +springermac
___
Python tracker
<https://bugs.python.org/issue33042>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jonathan Huot :
Executing python modules with -m can lead to weird sys.argv parsing.
"Argument parsing" section at
https://docs.python.org/3.8/tutorial/interpreter.html#argument-passing mention :
- When -m module is used, sys.argv[0] is set to the full name of t
Jonathan Abdo added the comment:
Issue also effects 3.5
--
nosy: +jabdo
versions: +Python 3.5
Added file: https://bugs.python.org/file47187/2to3bugpython.png
___
Python tracker
<https://bugs.python.org/issue31
Jonathan Abdo added the comment:
Gotcha, sorry about that. Active uses 3.5, so I guess I would take it up
with them?
On Oct 3, 2017 2:27 PM, "R. David Murray" wrote:
>
> R. David Murray added the comment:
>
> 3.5 is in security-fix-only mode, and we use versions to ind
Jonathan Abdo added the comment:
Inserting (with 12 spaces)
if not output_dir:
output_dir = "./"
at lines 83 and 84 works as a temporary workaround. `StdoutRefactoringTool` is
not receiving an `output_dir` from `option`, which seems to only be an i
Jonathan Schoonhoven added the comment:
Is there anything I can do to help get this into the codebase and out issue
purgatory? We're not that far off from the 10 year anniversary of this issue.
--
nosy: +Jonathan Schoonhoven
___
Python tr
Jonathan Watt added the comment:
Using image/x-ms-bmp because that's all that IE7 supports makes no sense.
Chrome doesn't support image/x-ms-bmp (it only supports the official IANA type
image/bmp), so if the concern is over browser support then it's clear that
Chrome (the b
Jonathan Watt added the comment:
I should note that while Chrome will refuse to open an image/x-ms-bmp file
directly, when loaded as an image embedded in a document (e.g. via HTML's
) then Chrome doesn't care what MIME type it has. It will sniff the image
stream and detect from it
Jonathan Watt added the comment:
> If image/bmp is now[*] the official IANA type
You can find image/bmp here:
https://www.iana.org/assignments/media-types/media-types.xhtml#image
--
___
Python tracker
<https://bugs.python.org/issu
Jonathan Watt added the comment:
I'm unfamiliar with the Python contribution procedures. If it's simply a case
of cloning from github.com and putting up a PR then I can do that. I'm
overloaded currently though, so if it's more involved than that it may take me
a while
New submission from Jonathan Underwood :
With the current logic in Objects/bytesobject.c in the function
bytes_compare_eq it can be the case that zero length bytes object object
created in an extension module like this:
val = PyBytes_FromStringAndSize (NULL, 20);
Py_SIZE(val) = 0;
won
Jonathan Underwood added the comment:
https://github.com/python/cpython/pull/5021
--
___
Python tracker
<https://bugs.python.org/issue32431>
___
___
Python-bug
Change by Jonathan Underwood :
--
keywords: +patch
pull_requests: +4911
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32431>
___
_
Jonathan Underwood added the comment:
Py_SIZE is actually precisely specified and documented[1] as it stands; I don't
think a change there is needed. The usage I outlined is in line with that
documentation, and many other uses of that macro in the cpython sources.
The documentation i
Jonathan Underwood added the comment:
Actually the commentary at the top of bytesobject.c for
PyBytes_FromStringAndSize says:
"... If `str' is NULL then PyBytes_FromStringAndSize() will allocate `size+1'
bytes (setting the last byte to the null terminating character)... "
New submission from Jonathan Lynch :
When a server reaps a keep-alive session it sends a FIN packet to the client.
Normally, requests handles this fine and rebuilds the session on the next
request. However, there is an edge case involving network latency that is not
properly handled:
If
Jonathan Lynch added the comment:
Ah, I'm sorry! I'll open the report over there, closing this.
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs
New submission from Jonathan Fine :
The title says it all.
faq/design: PEP 572 adds assignment expressions
https://docs.python.org/3.8/faq/design.html#why-can-t-i-use-an-assignment-in-an-expression
[Can't use] this C idiom:
while (line = readline(f)) {
// do something with line
}
Change by Jonathan Fine :
--
nosy: +jfine2358
___
Python tracker
<https://bugs.python.org/issue25461>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Fine added the comment:
My mistake. But not mine only.
According to https://www.python.org/dev/peps/pep-0572/ the PEP is
Python-Version: 3.8
I took this to mean that it had been implemented in Python 3.8. Reading the PEP
more closely, it also says Status: Accepted.
According to
Jonathan Fine added the comment:
First, I'm delighted that the current docs are in fact correct regarding
assignment expressions. (I should have said this earlier.)
I'm happy to wait for the implementation to land. (And if you like, I'm willing
to help with the documentation.
Jonathan Fine added the comment:
I'm sorry. I apologise. I'm being a bit stupid. Everything is fine. Nothing to
do.
In case you care, here's the situation. Python 3.8 is in development, and not
yet released. Somehow, I'd got it into my mind that it had already been
r
New submission from Jonathan Fine :
The docs contain a very useful page https://docs.python.org/3.5/glossary.html.
However, the search feature does not index the glossary.
Thus, the search https://docs.python.org/3.5/search.html?q=iterable does not
produce the helpful glossary entry
Jonathan Fine added the comment:
Good discovery. The glossary uses the RST glossary directive.
https://github.com/python/cpython/blob/master/Doc/glossary.rst
The Sphinx docs have a glossary, which is indexed by its search.
http://www.sphinx-doc.org/en/master/search.html?q=domain
So maybe
Jonathan Fine added the comment:
You're right! Thank you. However, there's still a problem. A user searches for
a technical term, and the carefully written glossary entry defining it does not
appear.
For my search term (iterable), there was a single entry with a link to the
Glo
Jonathan Fine added the comment:
Thank you for this, Ammar. Proof of concept solution is good progress. I'm well
impressed. The screen shots convince me that it's well worth doing.
For me, the one thing that's missing is a link just above the glossary item.
Something
New submission from Jonathan Hadida :
This submission follows a post on StackOverflow:
https://stackoverflow.com/q/51878397/472610
I have reproduced the unexpected behaviour with multiple python versions,
either with a Homebrew install, or using Anaconda/Miniconda. Note that comments
to the
Jonathan Hadida added the comment:
Thank you for your quick reply.
How can this be expected behaviour? Could I please kindly ask you to point to
an documented explanation, specifically for why the folder is PREpended to
sys.path (put before), instead of being APpended (put after).
The fact
Jonathan Hadida added the comment:
Thanks again for your reply, I really appreciate your time.
Every language I know has reserved keywords, and a restricted syntax. Nothing
to complain about there. Banning the use of tabs (PEP8) is pretty odd; but
restricting file-names is just a whole new
Jonathan Hadida added the comment:
With regards to "This has nothing to do with absolute imports at all.", I would
like to point out that the "import math" statement that I am complaining about
IS WITHIN THE NUMPY MODULE. So it seems very related to this bug.
New submission from Jonathan Fine :
See https://docs.python.org/3.6/library/functions.html#eval
This says the following won't happen. But it does.
Python 3.6.2 (default, Jul 29 2017, 00:00:00)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or &quo
Jonathan Fine added the comment:
Summary: There's my problem, and others. I'm willing to provide a patch, if
supported.
There's a gotcha here. I fell into it. The docs for eval state
===
eval(expression, globals=None, locals=None)
The arguments are a string and optional glo
Jonathan Fine added the comment:
OK. I'll do as you say. I've just signed the CLA.
--
___
Python tracker
<https://bugs.python.org/issue34431>
___
___
New submission from Jonathan Fine :
Interactive code examples need the prompt to be stripped, before
copy-and-paste. This is explained in
https://docs.python.org/3/tutorial/introduction.html
But this page does not tell us about the [>>>] prompt-toggle at top of each
interactive cod
New submission from Jonathan Fine :
As subject. Background information in #34451.
See https://docs.python.org/fr/3/tutorial/introduction.html
The hover help text for the [>>>] is in English, not French. Korean and
Japanese documentation has the same problem.
--
assignee: do
Jonathan Fine added the comment:
Thank you. I've raised
"The help text for [>>>] toggle always in English"
https://github.com/python/python-docs-theme/issues/23
--
___
Python tracker
<https:/
New submission from Jonathan Fine :
The identifiers True, False, None and __debug__ are keywords in the language.
For example
>>> __debug__ = __debug__
SyntaxError: assignment to keyword
1. The page constants.html incorrectly says then are in the built-in namespace.
Some of them w
Jonathan Fine added the comment:
I'm happy to work on improving the text here. I'm new to contributing to
Python. I'm being mentored to work on #34431.
Once I'm done with that, I'll be better placed to contributed to this issue.
--
_
Change by Jonathan Gossage :
--
pull_requests: +9101
stage: test needed -> patch review
___
Python tracker
<https://bugs.python.org/issue6686>
___
___
Python-
Jonathan Gossage added the comment:
The other thing to consider which also supports option 2 is that
xml.parsers.expat provides an interface to the Expat parser which is easier to
use and more complete than the Sax parser implementation and is the
implementation likely to be used by anyone
Jonathan Gossage added the comment:
This test case demonstrates that the issue still exists in 3.8. The fix is
relatively simple but I am unsure whether it is worthwhile as the original
comments on the quality and usability of SAX2DOM are spot on. My recommendation
would be to mark it as
Change by Jonathan Gossage :
--
keywords: +patch
pull_requests: +9272
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue9453>
___
___
Py
New submission from Jonathan Gossage :
While working on issues bpo-6686 and bpo-9371 I realized that the solution to
both involved the use of Sax lexical handlers. Unfortunately, the Python SAX
parser does not expose these handlers to the end user, however, support is
available in
Change by Jonathan Gossage :
--
components: +XML
___
Python tracker
<https://bugs.python.org/issue35018>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jonathan Gossage :
--
pull_requests: +9632
___
Python tracker
<https://bugs.python.org/issue6686>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jonathan Gossage :
--
keywords: +patch
pull_requests: +9631
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue35018>
___
_
Change by Jonathan Gossage :
--
pull_requests: +9633
___
Python tracker
<https://bugs.python.org/issue9731>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jonathan Gossage :
--
pull_requests: +9635
___
Python tracker
<https://bugs.python.org/issue9371>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jonathan Eldridge:
With the following directory structure:
computer$ ls
foo/
computer$ ls foo/
bar/ foo_file.txt
computer$ ls foo/bar/
bar_file.txt
Running:
os.path.relpath('foo/bar/bar_file.txt', 'foo/foo_file.txt')
R
Changes by Jonathan Eldridge :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue18389>
___
___
Python-bugs-list mailing list
Unsubscri
Jonathan Eldridge added the comment:
Seems like you could also narrow the case where the incorrect behavior occurs
for files without an extension by doing a os.path.isfile check as well--that
will only return True for cases where the file exists, but then relpath could
work correctly for all
Jonathan Eldridge added the comment:
At the very least, the documentation should be updated to explain this.
--
___
Python tracker
<http://bugs.python.org/issue18
New submission from Jonathan Frere:
The logging module documentation is probably best accompanied by the source
that it is meant to be documenting. Could a link to either the package
directory (http://hg.python.org/cpython/file/2.7/Lib/logging/) or the
__init__.py file in that directory
Jonathan Frere added the comment:
Well, if all the modules could link back to source code, that would be ideal,
it's just the logging happens to be the one that I keep coming back to.
Encouraging users to read the source will hopefully help people understand the
modules they
Jonathan Paugh added the comment:
I am dubious as to the use of this: I think resolving partial args is one of
the best thing since invented since sliced bread.
However, it's a good project to get my feet wet, so I'll take it on. I should
have a patch later today--I'm workin
Jonathan Paugh added the comment:
I created a patch that exibhts the requested behavior. I added tests, and
updated the documentation. I ran the test-suite against a build of Python
3.3.0a3+, and all tests check out.
This changes the public API of argparse.ArgumentParser and of its
Changes by Jonathan Paugh :
--
nosy: +jpaugh
___
Python tracker
<http://bugs.python.org/issue14905>
___
___
Python-bugs-list mailing list
Unsubscribe:
jonathan ferretti added the comment:
Added note to timeit function briefly explaining how to avoid it the issue and
the cause
--
keywords: +patch
nosy: +jonathan.ferretti
type: enhancement -> behavior
Added file: http://bugs.python.org/file34823/timeit.pa
New submission from Jonathan Hosmer:
When disabled_module_list contains all the module names that are not built by
Modules/Setup.dist, self.extensions in setup.py will be an empty list and when
build_extensions tries to determine the max length of all extension names it
raises a ValueError
Changes by Jonathan Hosmer :
--
keywords: +patch
Added file: http://bugs.python.org/file28076/Python-2.6.8-setup.py.patch
___
Python tracker
<http://bugs.python.org/issue16
Jonathan Hosmer added the comment:
setup.py patch for 2.7.3
--
Added file: http://bugs.python.org/file28077/Python-2.7.3-setup.py.patch
___
Python tracker
<http://bugs.python.org/issue16
Jonathan Hosmer added the comment:
setup.py patch for 3.0.1
--
Added file: http://bugs.python.org/file28078/Python-3.0.1-setup.py.patch
___
Python tracker
<http://bugs.python.org/issue16
Jonathan Hosmer added the comment:
setup.py patch for 3.1.5
--
Added file: http://bugs.python.org/file28079/Python-3.1.5-setup.py.patch
___
Python tracker
<http://bugs.python.org/issue16
Jonathan Hosmer added the comment:
setup.py patch for 3.3.0
--
Added file: http://bugs.python.org/file28081/Python-3.3.0-setup.py.patch
___
Python tracker
<http://bugs.python.org/issue16
Jonathan Hosmer added the comment:
setup.py patch for 3.2.3
--
Added file: http://bugs.python.org/file28080/Python-3.2.3-setup.py.patch
___
Python tracker
<http://bugs.python.org/issue16
New submission from Jonathan Kotta:
enumerate() is a "consuming_call", as defined in fixer_util.py, because it
takes an iterable (not necessarily a collection). Therefore whenever we have
something like enumerate(zip(...)), we don't need to replace it with
enumerate(list(zip
Jonathan McDougall added the comment:
The latest patch does not allow changing the default behaviour of
aborting the process, which is for me a problem. I am both embedding
and extending python using Boost.Python, but scripting is optional. In
case python fails to initialize, I want to disable
Jonathan McDougall added the comment:
While trying to come up with a patch, I'm starting to realize the number
of modifications needed to make this work. Py_FatalError() is called all
over the place assuming that it never returns. The scope of this feature
is enormous.
I'm wondering
New submission from Jonathan Livni:
These lines of Python (2.7):
y = float(x)
gives the error:
TypeError: float() argument must be a string or a number.
In various cases such as:
x = [0]
x = None
x = SomeClass()
In addition to the information given in the error message
Jonathan Dowland added the comment:
Hi, sorry for the long silence on this issue. I've had a few things going on.
Anyway, I didn't want to forget all about this; I've been working on it in two
phases. Phase 1 adds delete methods; Phase 2 handles non-existent mailboxes.
Please f
Jonathan Dowland added the comment:
another test
--
Added file:
http://bugs.python.org/file35893/0003-test-for-deletion-of-sub-folders.patch
___
Python tracker
<http://bugs.python.org/issue20
Jonathan Dowland added the comment:
patch adding tests
--
Added file:
http://bugs.python.org/file35892/0002-add-tests-for-deleting-Maildir-and-singleFileMailbox.patch
___
Python tracker
<http://bugs.python.org/issue20
New submission from Jonathan Stewmon:
Writing to sys.stdout on OS X can fail with IOError: [Errno 4] Interrupted
system call.
I have observed this while trying to write to sys.stdout when SIGCHLD is
received. The script below consistently reproduces the problem with python
2.7.2 on OS X
Jonathan Stewmon added the comment:
Sorry, I had a typo in the original report - I am actually using Python 2.7.7
installed with homebrew.
The script crashes for me on the first iteration every time using iTerm as my
terminal. I just tried it in Terminal, and it doesn't crash.
Maybe
Jonathan Dowland added the comment:
Hi David, whilst writing my patch I've tried to keep an open mind as to users
of the methods, but I do have my own purpose in the back of my mind, and that's
an archive mail tool which I would like to delete mail folders if, after
performing
Changes by Jonathan Dowland :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue20328>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Jonathan Dowland:
It would be great if the 'mailbox' library supported a 'remove' or 'delete'
operation for the mailbox itself as part of its abstract interface. It does
support removing messages, and the sub-classes for Maildir, MH etc. suppor
Jonathan Dowland added the comment:
Hi David, thanks for replying!
On Tue, Jan 21, 2014 at 03:08:04PM +, R. David Murray wrote:
> Conceptually the problem with this is that if you use the object to
> delete the folder, you now have an object with no folder...that is, an
> inval
Jonathan Dowland added the comment:
Hi,
On Fri, Jan 31, 2014 at 03:03:09PM +, R. David Murray wrote:
> I think your arguments are good ones. So, if you want to propose a
> patch that defines some semantics for delete (and possibly address the
> maildir folder delete similarly
New submission from Jonathan Epstein:
All 3 of these regex's should match, but in practice only m2 does. Found deep
in the bowels of debugging a larger problem.
import re
mainProjectsPath = '/groups/larvalolympiad/larvalolympiad/Projects/'
m1 = re.match('larvalolympi
Jonathan Epstein added the comment:
Sorry, this was dumb. Thanks for your patience.
On Fri, Feb 28, 2014 at 2:23 PM, Eric V. Smith wrote:
>
> Eric V. Smith added the comment:
>
> re.match requires a match at the beginning of the string. From the docs:
> "If zero or mo
New submission from Jonathan Windle :
Example Code:
import re
re.findall(r"(?![a-z0-9])0(?![a-z0-9])", "a0a 0 0 b0b")
The above code returns an empty list. I expect to get ['0', '0'] returned.
If I remove "(?![a-z0-9])" from the beginning o
New submission from Jonathan Beard :
the mac binary download link for python 2.6.4 is broken:
http://python.org/ftp/python/2.6.4/python-2.6.4-macosx.dmg
--
components: Installation
messages: 94708
nosy: beard
severity: normal
status: open
title: mac binary download link for 2.6.4 broken
Jonathan Beard added the comment:
Link still broken? see screenshot
http://www.python.org/ftp/python/2.6.4/python-2.6.4-macosx.dmg
--
status: closed -> open
Added file: http://bugs.python.org/file15233/python mac binary url 404.png
___
Pyt
Jonathan Beard added the comment:
Included screenshot of page which has the bad url:
http://www.python.org/download/
--
Added file: http://bugs.python.org/file15234/download page.png
___
Python tracker
<http://bugs.python.org/issue7
Jonathan Beard added the comment:
might have been upstream cache. works for me now. thanks!
--
___
Python tracker
<http://bugs.python.org/issue7243>
___
___
Pytho
Jonathan Lange added the comment:
On Mon, Apr 6, 2009 at 10:06 AM, Robert Collins
wrote:
> On Sun, 2009-04-05 at 23:57 +, Michael Foord wrote:
>> Michael Foord added the comment:
>>
>> My apologies - the jml code on launchpad runs clean ups before
Jonathan Lange added the comment:
On Mon, Apr 6, 2009 at 2:16 PM, Kumar McMillan wrote:
>
> Kumar McMillan added the comment:
>
> I like this patch. However, a nice-to-have would be that _doCleanups()
> prints a traceback from function(*args, **kwargs) (if there is one) the
Jonathan Lange added the comment:
FWIW, I kind of like the tests here:
http://bazaar.launchpad.net/~jml/testtools/trunk/annotate/head%3A/testtools/tests/test_testtools.py#L221
--
___
Python tracker
<http://bugs.python.org/issue5
New submission from Jonathan Ellis :
The docs say that "If a class defines __repr__() but not __str__(), then
__repr__() is also used when an “informal” string representation of
instances of that class is required."
but, repr is ignored:
>>> class E(Exception):
...
Changes by Jonathan Ellis :
--
versions: +Python 3.0
___
Python tracker
<http://bugs.python.org/issue5882>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jonathan Hayward :
On http://docs.python.org/library/xmlrpclib.html , 21.23.1, at the end
of ServerProxy.system.methodSignature(name):
If no signature is defined for the method, a non-array value is
returned. In Python this means that the type of the returned value will
be
201 - 300 of 349 matches
Mail list logo