John J Lee <[EMAIL PROTECTED]> added the comment:
This is fixed in trunk r61034 by issue #900744 . Please use that issue
for any discussion re whether this should be fixed in 2.5.
--
nosy: +jjlee
___
Python tracker <[EMAIL PROTECTE
John J Lee <[EMAIL PROTECTED]> added the comment:
urlopen() raises URLError, .read() may raise other errors. I don't
think that's a bug in itself, though no doubt:
1. The documentation of exceptions raised could and should be improved
2. The exceptions that can be raised
John J Lee <[EMAIL PROTECTED]> added the comment:
Can somebody close this? It's fixed on trunk in #900744 .
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pyt
New submission from John J Lee <[EMAIL PROTECTED]>:
The fix for #900744 tried to close the connection when a bad chunk
length was received. The comment inserted with that fix "close the
connection as protocol synchronisation is probably lost" is incorrect:
self.close() in _read_
John J Lee <[EMAIL PROTECTED]> added the comment:
The fix for this doesn't actually close the connection as the comment in
the fix claims -- I've raised #4492 to track that.
--
nosy: +jjlee
___
Python tracker <[EMAI
John J Lee <[EMAIL PROTECTED]> added the comment:
For the record, I think my worry in msg49366 was a non-issue: the only
time .readline() will return "" is when the connection has closed (so I
think the fix that eventually applied is correct).
__
John J Lee <[EMAIL PROTECTED]> added the comment:
Please close: this is already fixed on trunk and release25-maint
(r60747, issue #1966) (and on release26-maint, which was branched after
the fix).
--
nosy: +jjlee
___
Python tracker <[EMAIL
John J Lee <[EMAIL PROTECTED]> added the comment:
This bug was known before the release -- unfortunately the original
author of the patch didn't fix them in time. This and some other
unresolved issues listed are listed on #2451. "Somebody" should raise
bugs about the rest
Changes by John J Lee <[EMAIL PROTECTED]>:
--
nosy: +facundobatista
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4079>
___
__
New submission from John J Lee <[EMAIL PROTECTED]>:
As required by RFC 2616 section 3.2.2, for all HTTP requests sent by
urllib2, the path component of the URI should be normalized to "/"
before the Request-URI derived from it gets passed to httplib (or
something functionally eq
John J Lee <[EMAIL PROTECTED]> added the comment:
I've raised #4493 about the issue I raised in my previous comment.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
New submission from John J Lee <[EMAIL PROTECTED]>:
r54137 replaced a comment in urllib2.py with a misleading comment. The
comment now implies the .insort() in question achieves the goal
specified in the new comment. That's not true, which was the reason the
original comment was t
Changes by John J Lee <[EMAIL PROTECTED]>:
--
components: +Library (Lib)
nosy: +facundobatista
versions: +Python 2.7, Python 3.0
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
John J Lee <[EMAIL PROTECTED]> added the comment:
I think this was actually not a bug, and the fix should not have been
applied. I guess this comment is just "for the record", as the fix is
probably cruft that can't be removed now, since people will have started
relying
John J Lee added the comment:
Why?
___
Python tracker
<http://bugs.python.org/issue1660009>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/m
John J Lee added the comment:
This bug refers to urllib. Issue 1153027 refers to urllib2. It's the
same problem in each case, though.
--
nosy: +jjlee
___
Python tracker
<http://bugs.python.org/iss
John J Lee added the comment:
This bug refers to urllib2. Issue 918368 refers to urllib. It's the
same problem in each case, though.
___
Python tracker
<http://bugs.python.org/issu
John J Lee added the comment:
Mike's list is missing one more character, "%" itself. So, the
replacement should be:
quote(newurl, safe="%/:=&?~#+!$,;'@()*[]")
The replacement should be done in the .open() method, not
John J Lee added the comment:
A suitable test would be to derive a urllib.URLOpener subclass that has
an open_spam(url) method which records the URL. Then call
.open("spam://") in the test and verify that the URL has been quoted.
___
Python trac
John J Lee added the comment:
Uh, that should have beeen something like
.open("spam://example.com/%2E/") of course.
___
Python tracker
<http://bugs.python.or
John J Lee added the comment:
A patch for this bug is attached to issue1375011.
___
Python tracker
<http://bugs.python.org/issue1372650>
___
___
Python-bugs-list mailin
Changes by John J Lee :
--
nosy: -jjlee
___
Python tracker
<http://bugs.python.org/issue1172011>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John J Lee :
--
nosy: -jjlee
___
Python tracker
<http://bugs.python.org/issue991266>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Dimitri John Ledkov :
email module has recently got parse_message_id which is more strict now, then
before.
However, it's not programmed as defensively as expected. Given bogus
message-id, it crashes with unbound local variable, or like accessing a
non-existing
Dimitri John Ledkov added the comment:
Yes, issue38698 covers the UnboundLocalError,
but doesn't cover inside get_msg_id there is also this gem:
def get_msg_id(value):
msg_id = MsgID()
if value[0] in CFWS_LEADER:
It should test value before accessing value[0] like
New submission from John M. Boger :
In the documentation for sqlite3.executescript() in python 3.9+, the pseudoword
"transation" appears. I am reasonably sure "transaction" is meant, although it
could be "translation".
--
assignee: docs@python
comp
John-Mark Gurney added the comment:
Though this suggestion does work, I am not a fan of this solution.
The issue is that it separates the doc from the definition. This works well if
you have only a field fields in the class, But if you get 10-20+ fields, it
moves away the docs and makes it
John-Mark Gurney added the comment:
So, just looked at the patch, but it's missing the documentation part of it.
Also, yes, you can add the doc as another line, but now that's two lines (yes,
you can add semicolons to make it one line, but that might surprise some
people).
I
New submission from John Joseph Morelli :
I first noticed this and reported it on the W3 Schools Tutorial, the section
entitled "Add Two Numbers with User Input"
There were many behaviors that I did not understand, but for this bug report, I
will state that the input statements pr
New submission from John-Mark Gurney :
The documentation for Traversable.name says it is a method, not a property:
https://docs.python.org/3/library/importlib.html#importlib.abc.Traversable.name
The issue is that with Python 3.9.7 (default, Nov 1 2021, 11:26:33), using a
standard posix
New submission from John-Mark Gurney :
If I create a coro from an async iterator, then wait_for it w/ a timeout, but
shielded, so it won't get canceled, and then await upon it, it returns invalid
data.
See the attached test case.
The reason I do the following is to make sure that an
Change by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<https://bugs.python.org/issue12734>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by John Rey Osano :
--
components: +C API, Extension Modules, IO
type: performance -> enhancement
___
Python tracker
<https://bugs.python.org/issu
Dimitri John Ledkov added the comment:
Ubuntu 20.04+ compile OpenSSL with default security level set to 2, and further
customized security level 2 to prohibit TLS below v1.2 and DTLS below v1.2.
You can export custom openssl configuration that sets security level back to 1,
which is
Dimitri John Ledkov added the comment:
BTW.
It would be advisable for Python3 to start enforcing security level 2, and
prohibit DTLS v1.1 and lower by default too. By configuring openssl library on
the host with setting security level, and/or setting min versions (if openssl
on the host
New submission from John-Mark Gurney :
per: https://bugs.python.org/issue38401
There is not a way to document fields of a dataclass.
I propose that instead of making a language change, that an additional
parameter to the field be added in similar vein to property.
This currently works
John-Mark Gurney added the comment:
As I said, I expect it to work similar to how property works:
```
>>> class Foo:
... def getx(self):
... return 5
... x = property(getx, doc='document the x property')
...
>>> help(Foo)
Help on class Foo in module __main__
New submission from John 'Warthog9' Hawley:
doc-files should break files up into multiple lines, as per RPM expectation
when using %doc section of the RPM spec, it expects multiple files
to be listed each on their own line. Currently what gets passed in
is:
%doc file1 file2 fi
Changes by John 'Warthog9' Hawley :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue30924>
___
___
Python-bugs-list maili
New submission from John 'Warthog9' Hawley:
Duplicate doc-files functionality, to inject files into bdist_rpm
Enhancement to allow for files that are built outside of what's expected in
setup.py to be injected into the bdist files_rpm listing so they are included
in the resul
Dimitri John Ledkov added the comment:
Will this be backported to the 2.7 branch as well? Pretty please =)
--
nosy: +xnox
___
Python tracker
<https://bugs.python.org/issue34
New submission from Dimitri John Ledkov :
test.test_ssl.ThreadedTests.test_tls1_3 fails in 2.7 with AttributeError:
__exit__
When building python 2.7, update to 20180926 from the 2.7 branch, on Ubuntu
18.10 (cosmic) with OpenSSL 1.1.1 the test_ssl errors out like so
Dimitri John Ledkov added the comment:
Similar client sockets are used in that file, but they are wrapped in extra
`with closing(...) as s:`
Is closing() wrapper missing in this test case?
--
___
Python tracker
<https://bugs.python.
New submission from Dimitri John Ledkov :
self.assertEqual(default, ctx.options) in test_options fails with openssl 1.1.1
as it does not correctly account for OP_ENABLE_MIDDLEBOX_COMPAT. It is not
defined by the python2.7 ssl module either.
either ssl.OP_ENABLE_MIDDLEBOX_COMPAT needs to be
Change by Dimitri John Ledkov :
--
keywords: +patch
pull_requests: +9022
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34834>
___
_
New submission from Dimitri John Ledkov :
test_default_ecdh_curve fails, as ssl.OP_NO_TLSv1_3 is not set on the context.
and the test case can only work with non-tls1.3 connections.
this indicates that the pull request that sprinkled ssl.OP_NO_TLSv1_3
everywhere was not backported, taking
Change by Dimitri John Ledkov :
--
keywords: +patch
pull_requests: +9024
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34836>
___
_
New submission from John-Mark Bell:
In low-memory scenarios, the Python 2.7 interpreter may crash as a result of
failing to correctly check the return value from mmap in new_arena().
This changeset appears to be the point at which this issue was introduced:
http://hg.python.org/cpython/rev
John M Camara added the comment:
How about using a secure hash algorithm that's implemented in HW when
available. It doesn't eliminate the issue on systems that lack this support
but at least it limits the scope of the problem.
Of course some testing would need to be done to mak
John W. O'Brien added the comment:
For reference:
CPython code comments showing that this may be an anticipated problem:
http://hg.python.org/cpython/file/0830670a9d9d/Lib/test/support/__init__.py#l562
An example of another project that seems to have tackled this problem in the
way neo
John J Lee added the comment:
This issue is not a bug, and should be closed. It was discussed at
length many years ago (different bug tracker ticket), and resolved.
Since then the same issue seems to come up every year or so,
apparently raised by people who haven't checked the
John J Lee added the comment:
If you have a feature request, please open a separate ticket. This one
is about an alleged bug.
--
___
Python tracker
<http://bugs.python.org/issue1424
John P. Speno added the comment:
Hi. We encountered this issue on a Solaris 10 while building python 2.6.2.
There's a problem with reptrov's patch from 2009-01-04. The LDFLAGS in the
Makefile.pre.in patch need to be quoted also. Like so:
LDFLAGS='$(LDFLAGS)'
This allow
John P. Speno added the comment:
Furthermore, there's another bug in setup.py When extensions are built
and CPPFLAGS (or other arguments) has multiple arguments, the order of
the arguments are reversed. This is the wrong behavior. The specified
directories should be used in the given
New submission from John Van Praag :
My platform: Win XP.
Program fibo.py from the tutorial runs correctly in the interpreter.
When I run it from the command line I get the following error:
file "fibo.py" line 6
print(b, end=' ')
^
--
components: Wi
New submission from John Mark Schofield :
SUMMARY: When you attempt to start a thread, and you're unable to (you
get thread.error) it leaves a thread stuck in an "initial" state that
never exits. (threading.enumerate() shows the threads and lists their
status as "initial.&q
John J Lee added the comment:
To make sure I understood something Antoine said: By "per-request", I assume
you mean the same kind of thing as the current use of .redirect_dict -- the
multiple urllib2.Request instances that may result from a single request passed
by the use
John J Lee added the comment:
> Yes,it currently does not handle chained redirects via cache. I dont know
> RFC's stance on it. RFC does not say anything about 301 chained redirects
I don't see anything in the RFC that prevents us caching chained 301
redirections. Cac
New submission from John W. Shipman :
optparse's .parse_args() method has a 'values=...' keyword argument
that is documented as:
'object to store option arguments in (default: a new instance of
optparse.Values)'
There is no description of what types this
New submission from John Van Praag :
Platforms:
Windows Vista Ultimate 64 bit
Python v3.1.2
Goal is to read a tab-separated CSV file. Some records have garbage characters
in them.
The following code fragment works when the program is run in IDLE, but fails
when run from the Windows command
New submission from John Van Praag :
The declaration errors='replace' works from within IDLE but not at the Windows
command line. I am attaching a program and text file that demonstrate the
problem. The error shows up at the Windows command line as follows:
C:\Users\John\Docume
John Van Praag added the comment:
I just now resubmitted, with a text file and program demonstrating the
problem: Issue9126.
I am new to submitting Python bug reports and I would like to do it
right. I found I could only attach 1 file to the bug report. However, I
had two files: The text file
John Van Praag added the comment:
According to the documentation of the open function:
errors is an optional string that specifies how encoding and decoding
errors are to be handled–this cannot be used in binary mode. Pass
'strict' to raise a ValueError exception if there is an enco
John J Lee added the comment:
Suggest removing the comment that Terry refers to. That referenced MSIE code
doesn't have an automated test, I've no idea whether it still works on modern
Windows OSes, mechanize no longer supports use with urllib2, and I don't think
that
John J Lee added the comment:
This is a duplicate of issue3924
--
nosy: +jjlee
___
Python tracker
<http://bugs.python.org/issue8975>
___
___
Python-bugs-list m
John J Lee added the comment:
There is code in PyPI project mechanize that implements this feature. That
code is marked experimental though, due to lack of testing.
--
nosy: +jjlee
___
Python tracker
<http://bugs.python.org/issue2
John J Lee added the comment:
Is deprecation really necessary? lynx still uses that format. lynx doesn't
write the header that MozillaCookieJar insists on being present, but a trivial
subclass can read cookies files written by
John J Lee added the comment:
My patch should be applied.
--
___
Python tracker
<http://bugs.python.org/issue3704>
___
___
Python-bugs-list mailing list
Unsub
John J Lee added the comment:
Hmm, I never tested with Python 3, though I assume the forward-port was
straightforward. The patch was created against (2.x) trunk, so indeed it
should be committed there also.
Deselecting 2.6 since I assume no more maintenance backports will be made to
2.6
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue27187>
___
___
Python-bugs-list mailing list
Unsubscribe:
John Mark Vandenberg added the comment:
The revised text says __dunder__ should appear before any imports, however
__future__ imports must appear first for obvious reasons. Does this need to be
mentioned in the pep?
--
___
Python tracker
<h
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue27494>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by John Mark Vandenberg :
--
nosy: +jayvdb
___
Python tracker
<http://bugs.python.org/issue27364>
___
___
Python-bugs-list mailing list
Unsubscribe:
Dimitri John Ledkov added the comment:
> Removing a test when it doesn't pass is not the correct way to fix a test...
Whilst I agree, this is not what was done in http://bugs.python.org/issue14853
. There it was concluded that the test itself is bogus and tests essentially
New submission from Dimitri John Ledkov:
Building 3.4.2, running testsuite on linux,
test_uuid test_ifconfig_getnode fails as following:
[365/388] test_uuid
Warning -- sys.path was modified by test_site
test test_uuid failed -- Traceback (most recent call last):
File "/builddir/build/
Dimitri John Ledkov added the comment:
The source code matches 3.4.2 tarball exactly.
There is no arp_getnode test that I can see.
316@unittest.skipUnless(os.name == 'posix', 'requires Posix')
317def test_ifconfig_getnode(self):
318node = uuid._ifconfig_get
Dimitri John Ledkov added the comment:
I guess this is related to http://bugs.python.org/issue17293 however I get a
test-suite fail / exception there with 3.4.2 on Linux.
--
___
Python tracker
<http://bugs.python.org/issue23
Dimitri John Ledkov added the comment:
I'm getting socket.gaierror from test_ifconfig_getnode /
uuid._ifconfig_getnode() on python 3.4.2 on Linux, in a no network environment.
Thus i'd like to see these try:/excepts: to be ported back to 3.4 branch, if
they haven't been already
Dimitri John Ledkov added the comment:
Why not change them to parse os-release files as defined by
http://www.freedesktop.org/software/systemd/man/os-release.html
A lot of things use these functions to check what one is running on, despite
the problems, and do different things at install
Dimitri John Ledkov added the comment:
Note that things have changed in this space, since the issue was opened in 2007.
--
___
Python tracker
<http://bugs.python.org/issue1
John Laurence Poole added the comment:
I attempted to install on Windows Server 2008 R2 Service Pack 1 and had the
same problems. I thought it might be proxy since I'm behind a firewall, but
setting the usual values did not allow the program to overcome whatever it is
that PIP is h
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue24667>
___
___
Python-bugs-list mailing list
Unsub
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue19003>
___
___
Python-bugs-list mailing list
Unsub
New submission from John Michael Lafayette:
With a lot of languages, I can tell
that the type I am getting is an instance of the declared type I'm assigning it
to.
Example:
Cat c = Factory.make("cat"
Animal d = Factory.make("dog")
Python:
val c = Factory.make("ca
New submission from John Michael Lafayette:
I love the new type hint feature in Jetbrains IDE (PEP 0484). Now when my user
defined methods return a value, I can press (Crtl+space) and see the type of
that value and all its methods. Also, when I pass the wrong type in, I get a
warning.
Oddly
New submission from John Mark Vandenberg:
Introduced in the initial version of statistics was """" starting a docstring
https://hg.python.org/cpython/annotate/685e044bed5e/Lib/statistics.py#l380
Somewhere the fourth quote is dropped, as it doesnt appear in the docs:
https
John Mark Vandenberg added the comment:
The additional quotation mark is shown in help()
>>> help(statistics.median_grouped)
Help on function median_grouped in module statistics:
median_grouped(data, interval=1)
"Return the 50th percentile (median) of grouped c
John Mark Vandenberg added the comment:
Thank you for clarifying that.
Does that mean that this issue should not be assigned to docs@python and should
not have a Component of 'Documentation'?
--
___
Python tracker
<http://bugs.python.o
John Mark Vandenberg added the comment:
Not surprising also occurs on Python 3.2, 3.3, & 3.6.
I'm not sure whether fixes like this are suitable to be merged into 3.2/3.3.(is
there a document describing this?)
--
nosy: +John.Mark.Vandenberg
versions: +Python 3.2, Python 3.3, P
New submission from John Mark Vandenberg:
The following four modules re-import another module unnecessarily as it is
already imported in the global scope.
Lib/getpass.py : msvcrt
Lib/pickletools.py : sys
Lib/smtplib.py : sys
PC/testpy.py : os
In each case, the import being removed in the
Changes by John Mark Vandenberg :
--
nosy: +John.Mark.Vandenberg
___
Python tracker
<http://bugs.python.org/issue25486>
___
___
Python-bugs-list mailing list
Unsub
New submission from John Mark Vandenberg:
inspect.getdoc's helper _finddoc raises an AttributeError on encountering a
property, which is silently discarded.
>>> class Foo(object):
... @property
... def foo(self):
... """foobar."""
...
Changes by John Mark Vandenberg :
--
nosy: +serhiy.storchaka
___
Python tracker
<http://bugs.python.org/issue25503>
___
___
Python-bugs-list mailing list
Unsub
Changes by John Mark Vandenberg :
Added file: http://bugs.python.org/file40886/re-imports.diff
___
Python tracker
<http://bugs.python.org/issue25502>
___
___
Python-bug
New submission from John Mark Vandenberg:
All versions of Tools/freeze/checkextensions_win32.py have had an error due to
accessing 'modules.sourceFiles' instead of 'module.sourceFiles'.
https://hg.python.org/cpython/diff/8e9d5e5103f5/Tools/freeze/checkextensions_win32.
New submission from John Mark Vandenberg:
Tools/scripts/fixdiv.py 's `FileContext.truncate` has used `window` since it
was created, when it is supposed to use self.window.
https://hg.python.org/cpython/annotate/60f290a7eae8/Tools/scripts/fixdiv.py#l195
`truncate` is unused, so an altern
Changes by John Mark Vandenberg :
Added file: http://bugs.python.org/file40889/fixdiv-remove-truncate.diff
___
Python tracker
<http://bugs.python.org/issue25505>
___
___
New submission from John Mark Vandenberg:
test_pprint defined test_user_dict twice, once for UserDict, and the second for
UserList.
--
components: Library (Lib), Tests
files: test_pprint-fix.diff
keywords: patch
messages: 253663
nosy: John.Mark.Vandenberg, serhiy.storchaka
priority
John Mark Vandenberg added the comment:
Sorry; the first patch includes unrelated fixes.
--
Added file: http://bugs.python.org/file40892/test_pprint-fix.diff
___
Python tracker
<http://bugs.python.org/issue25
Changes by John Mark Vandenberg :
--
nosy: +serhiy.storchaka
___
Python tracker
<http://bugs.python.org/issue25505>
___
___
Python-bugs-list mailing list
Unsub
1101 - 1200 of 1249 matches
Mail list logo