New submission from Jonathan Hayward :
Under http://docs.python.org/library/xmlrpclib.html , 21.23.1:
ServerProxy.system.methodSignature(name)ΒΆ
This method takes one parameter, the name of a method implemented by the
XML-RPC server.It
There should be a space before the second sentence in this
Jonathan Hayward added the comment:
Is there a workaround to close a TLS socket and its underlying socket?
I was making something to use https for a simple operation, and it the
browser acted as if the socket never closed. If I followed the close of
the ssl socket by a close of the underlying
Jonathan Hayward added the comment:
Constantine Sapuntzakis wrote:
> import ssl
>
> # Work around python bug #5328
> def SSLSocket_makefile_fixed(self, mode='r', bufsize=-1):
> from socket import _fileobject
>
> self._makefile_refs += 1
> retu
New submission from Jonathan Hayward :
The search function on docs.python.org does not intelligently search the
library for a query in the form "module.function". For instance, in
searching for information on (say) socket.bind(), neither a search query
of "socket.bind()" nor
Jonathan Halcrow added the comment:
The most recent version on pypi (20100709) seems to be missing _regex_core from
py_modules in setup.py. Currently import regex fails, unable to locate
_regex_core.
--
nosy: +jhalcrow
___
Python tracker
<h
Changes by Jonathan Ng :
--
nosy: Jonathan Ng
priority: normal
severity: normal
status: open
title: dumbdbm should not commit if
type: behavior
___
Python tracker
<http://bugs.python.org/issue28
New submission from Jonathan Ng:
Or at the very least, if there is an OSError in _update, an error should be
raised instead of ignoring this error.
In the current state of the code, if there was an OSError while reading the
dirfile, the dirfile would be overwritten with a blank file when it
Jonathan Ng added the comment:
I'm not sure how to create an OSError.
But perhaps something like this:
'''
from dbm import dumb
import os
db = dumb.open('temp', flag='n')
db['foo'] = 'bar'
db.close()
db = dumb.open('tem
Jonathan Ng added the comment:
#1 makes sense to be backported.
On Thu, Dec 1, 2016 at 8:41 PM, Serhiy Storchaka
wrote:
>
> Serhiy Storchaka added the comment:
>
> This example is too artificial.
>
> But there is a real issue: opening read-only files in read mode. Current
New submission from Jonathan Roach:
The file documentation (as seen in python.org) went missing in 3.3. In 2.7.13
it can be found in 'The Python Standard Library' as section '5.9 File Objects',
between '5.8 Mapping Types' and '5.10 memory view type'
Jonathan Roach added the comment:
OK, I understand that the older versions aren't going to be revised - that
makes sense.
I think part of the reason I submitted this is the reader's path from the
open() documentation to the most relevant part of the io documentation (the
interfac
New submission from Jonathan Guthrie:
This is related to issue 5111.
An IPv6 link-local address must include a scope specifier as part of the
address passed to the HTTPConnection or HTTPSConnection constructor, that scope
specifier is not being stripped from the address passed in the HTTP 1.1
Jonathan Guthrie added the comment:
Yes, it is more closely related to Issue 23448. My search for related issues
apparently wasn't exhaustive enough.
--
___
Python tracker
<http://bugs.python.org/is
Jonathan Guthrie added the comment:
Michael Sweet's draft RFC requiring that the scope should be included in the
Host line expired in May 2014 and I can't find where it ever went anywhere.
Does anyone have any updated information?
--
nosy: +Jonat
Jonathan Kross added the comment:
Just checking in on this patch. Any chance of getting it applied within the
next few days?
--
___
Python tracker
<http://bugs.python.org/issue27
Jonathan Goble added the comment:
Code analysis, if it can even be called that. I was simply looking through the
source of the collections module one day out of curiosity (mainly to see how
various things in it were implemented) and this bug jumped out at me as I was
reading the code. I do
Jonathan Kross added the comment:
Just giving this one a bump to see if it can be applied soon.
--
___
Python tracker
<http://bugs.python.org/issue27131>
___
___
jonathan miller added the comment:
A flexible and pretty simple way opf loosening up handling namespaces would be
to OPTIONALLY change what is done at parse time:
1. Don't handle xmlns declarations specially. Leave them as normal
attributes, and the Element.attrib would have a normal
Jonathan Kross added the comment:
Just giving this one a bump to see if it can be applied soon.
--
___
Python tracker
<http://bugs.python.org/issue27131>
___
___
Jonathan Wakely added the comment:
Insisting on including Python.h first is just broken.
GNU libc's /usr/include/features.h will override it anyway when _GNU_SOURCE is
defined:
# undef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE200809L
# undef _XOPEN_SOURCE
# define _XOPEN_SOURCE 70
New submission from Jonathan Sharpe:
The link to "statistics" in the documentation for
tracemalloc.Snapshot.compare_to
(https://docs.python.org/3/library/tracemalloc.html#tracemalloc.Snapshot.compare_to)
should be to the statistics method
(https://docs.python.org/3/library/tracem
Changes by Jonathan Sharpe :
--
assignee: docs@python
components: Documentation
files: fix_pep8_typo.patch
keywords: patch
nosy: docs@python, jonrsharpe
priority: normal
severity: normal
status: open
title: Typo in PEP-0008 - "this PEP do not"
type: enhancement
Added
New submission from Jonathan Sharpe:
For example, the link to PEP-340 in PEP-343 points to
https://www.python.org/dev/peps/pep-0343/pep-0340.html rather than
https://www.python.org/dev/peps/pep-0340/ and the link to PEP-288 from PEP-340
points to https://www.python.org/dev/peps/pep-0340/pep
New submission from Jonathan Kamens:
The _write method of wsgiref.handlers.SimpleHandler reads as follows:
def _write(self,data):
self.stdout.write(data)
The problem here is that calling write() on a socket is not actually guaranteed
to write all of the data in the buffer. If the
New submission from Jonathan Kamens:
http.BaseHTTPRequestHandler logs request timeouts. In handle_one_request():
except socket.timeout as e:
#a read or a write timed out. Discard this connection
self.log_error("Request timed out: %
New submission from Jonathan Slenders:
As discussed on python-ideas, os.pipe should return a structsequence instead of
a plain tuple.
To be decided is the naming for the read and write end.
Personally, I'm in favour of using readfd/writefd.
> our_pipe = pipe()
> os.write(our_p
Jonathan Slenders added the comment:
Niki Spahiev made a valid argument saying that the following code is common:
if not hasattr(src, 'read'): src = open(src)
This will break if we name it 'read'/'write' lik
New submission from Jonathan Goble:
In an instance of collections.UserString, any call to the __rmod__() method
will raise NameError, due to the undefined "args" name in the method.
--
components: Library (Lib)
messages: 254830
nosy: Jonathan Goble, rhettinger
priority: norma
Jonathan Goble added the comment:
c06b2480766d appears to be the offending changeset.
--
___
Python tracker
<http://bugs.python.org/issue25652>
___
___
Python-bug
New submission from Jonathan Kamens:
In ssl.py:
def _load_windows_store_certs(self, storename, purpose):
certs = bytearray()
for cert, encoding, trust in enum_certificates(storename):
# CA certs are never PKCS#7 encoded
New submission from Jonathan Goble:
Once a regular expression is compiled with `obj = re.compile()`, it would be
nice to have access to the raw bytecode, probably as `obj.code` or
`obj.bytecode`, so it can be explored programmatically. Currently, regex
bytecode is only stored in a C struct
Jonathan Goble added the comment:
It would indeed be marked as a CPython implementation detail, and with no
guarantee of backward compatibility. Others (well, at least one other) have
suggested the same on python-ideas. So a simple note in the accompanying
documentation would suffice
Jonathan Goble added the comment:
Noting for the record that, as I had brought up on python-ideas [1], in
addition to simply exposing the raw code, it would be nice to have a public
constructor for the compiled pattern type and a 'dis'-like module for support.
The former wo
Jonathan Goble added the comment:
*ping* Can this be reviewed? It's a simple fix to a problem that happens
consistently, and it would be nice to get it into the next bugfix release.
--
versions: +Python 3.6
___
Python tracker
Jonathan Hanba added the comment:
I just ran across this bug in Python 3.5.1 while trying to build pycrypto using
MinGW. I patched the cygwincompiler.py with the attached patch.diff file, and
that got me part of the way there.
With the additions made by patch.diff, the MinGW linker then
New submission from Jonathan Booth:
https://docs.python.org/3.5/library/array.html describes the 'I' and 'i'
typecodes as being minimum-size in bytes of 2. The interpreter disagrees:
>>> import array
>>> a = array.array('i')
>>> a.
Jonathan Booth added the comment:
Ugly -- if I know I'm dealing with 4-byte data, I can't just specify 'I' or 'L'
because it'll be wrong on some platform? Maybe the bug is really the module's
design. Seems I need to look elsewhere for other reasons (arr
New submission from Jonathan Ellington:
Attempting to use class that has both __exit__() and __enter__() undefined as a
context manager yields an AttributeError referring to __exit__:
>>> class A():
... pass
...
>>> with A():
... pass
...
Traceback (most recent
Changes by Jonathan Sharpe :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python, jonrsharpe
___
Python tracker
<http://bugs.python.org/issu
Jonathan Sharpe added the comment:
I don't think it's as simple as linking to the hashable definition. The
"equivalent expression" is simply wrong for dict/set/frozenset, as those types
check hash equality, not identity.
--
__
New submission from Jonathan Hogg:
If `genericpath.commonprefix()` is called with a non-indexable argument, then
the check for passing in a list of lists/tuples will raise an exception due to
the `m[0]` test.
--
components: Library (Lib)
messages: 279386
nosy: jonathanhogg
priority
Jonathan Hogg added the comment:
While I agree that the documentation specifies that this function takes a list,
the previous version did not require a list, just any object that is iterable.
Unfortunately, this change is causing a break in real code (`xon.sh` in this
case, which appears to
New submission from Jonathan Alush-Aben :
If 2to3 is run on a file with the following contents:
a="string"
print ("%s" % a)
The output is:
a="string"
print (("%s" % a))
Although it was already a valid call to print in python3.
--
comp
Jonathan Bastien-Filiatrault added the comment:
We just got hit by this. We had one specific case where files with unique names
were not being closed and Python was leaking a lot of memory over a few days.
--
nosy: +Jonathan Bastien-Filiatrault
Jonathan Bastien-Filiatrault added the comment:
@vstinner Yes, from what I saw, the leak was from the registry / deduplication
logic.
--
___
Python tracker
<https://bugs.python.org/issue27
Jonathan Bastien-Filiatrault added the comment:
> But it will still "leak" when you display ResourceWarning warnings with an
> action different than "always". In this case, IMHO the root issue is more the
> code which doesn't close the resource, than Pytho
Jonathan G. Underwood added the comment:
Seeing a very similar problem - very high memory useage during byte compilation.
Consider the very simple code in a file:
```
def test_huge():
try:
huge = b'\0' * 0x1 # this allocates 4GB of memory!
except M
Jonathan G. Underwood added the comment:
Thanks to both Serhiy Storchaka and David Murray - indeed you're both correct,
and that is the issue in 21074, and the workaround from there of declaring a
variable for that size fixes the pr
New submission from Jonathan G. Underwood :
In the documentation section on Extending Python with C or C++ there is an
Intermezzo on Errors and Exceptions which shows how to create a custom
exception in an extension module. I was just following these instructions for
the first time and got to
301 - 349 of 349 matches
Mail list logo