[issue5928] Missing space after period in xmlrpc library documentation

2009-05-04 Thread Jonathan Hayward
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

[issue5238] ssl makefile never closes socket

2009-05-08 Thread Jonathan Hayward
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

[issue5238] ssl makefile never closes socket

2009-05-11 Thread Jonathan Hayward
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

[issue6023] Search does not intelligently handle module.function queries on docs.python.org

2009-05-14 Thread Jonathan Hayward
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

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-07-13 Thread Jonathan Halcrow
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

[issue28847] dumbdbm should not commit if

2016-11-30 Thread Jonathan Ng
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

[issue28847] dumbdbm should not commit if in read mode

2016-11-30 Thread Jonathan Ng
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

[issue28847] dumbdbm should not commit if in read mode

2016-12-01 Thread Jonathan Ng
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

[issue28847] dumbdbm should not commit if in read mode

2016-12-01 Thread Jonathan Ng
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

[issue29175] Documentation for File objects missing

2017-01-06 Thread Jonathan Roach
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'

[issue29175] Tutorial links to file object methods are broken.

2017-01-06 Thread Jonathan Roach
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

[issue29375] httplib: wrong Host header when connecting to IPv6 link-local address

2017-01-25 Thread Jonathan Guthrie
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

[issue29375] httplib: wrong Host header when connecting to IPv6 link-local address

2017-01-26 Thread Jonathan Guthrie
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

[issue23448] urllib2 needs to remove scope from IPv6 address when creating Host header

2017-01-26 Thread Jonathan Guthrie
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

[issue27131] Unit test random shuffle

2016-06-13 Thread Jonathan Kross
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

[issue25652] collections.UserString.__rmod__() raises NameError

2016-07-10 Thread Jonathan Goble
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

[issue27131] Unit test random shuffle

2016-07-11 Thread Jonathan Kross
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> ___ ___

[issue18304] ElementTree -- provide a way to ignore namespace in tags and seaches

2016-07-27 Thread jonathan miller
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

[issue27131] Unit test random shuffle

2016-07-28 Thread Jonathan Kross
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> ___ ___

[issue1045893] warning '"_POSIX_C_SOURCE" redefined' when include Python.h

2013-05-10 Thread Jonathan Wakely
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

[issue22839] Incorrect link to statistics in tracemalloc documentation

2014-11-10 Thread Jonathan Sharpe
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

[issue23149] Typo in PEP-0008 - "this PEP do not"

2015-01-02 Thread Jonathan Sharpe
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

[issue23379] Incorrect links within PEPs

2015-02-02 Thread Jonathan Sharpe
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

[issue24291] wsgiref.handlers.SimpleHandler truncates large output blobs

2015-05-26 Thread Jonathan Kamens
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

[issue24292] wsgiref.simple_server.WSGIRequestHandler doesn't log request timeouts

2015-05-26 Thread Jonathan Kamens
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: %

[issue24536] os.pipe() should return a structsequence (or namedtuple.)

2015-06-30 Thread Jonathan Slenders
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

[issue24536] os.pipe() should return a structsequence (or namedtuple.)

2015-06-30 Thread Jonathan Slenders
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

[issue25652] collections.UserString.__rmod__() raises NameError

2015-11-17 Thread Jonathan Goble
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

[issue25652] collections.UserString.__rmod__() raises NameError

2015-11-17 Thread Jonathan Goble
Jonathan Goble added the comment: c06b2480766d appears to be the offending changeset. -- ___ Python tracker <http://bugs.python.org/issue25652> ___ ___ Python-bug

[issue26313] ssl.py _load_windows_store_certs fails if windows cert store is empty

2016-02-08 Thread Jonathan Kamens
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

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-02-10 Thread Jonathan Goble
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

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-02-17 Thread Jonathan Goble
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

[issue26336] Expose regex bytecode as attribute of compiled pattern object

2016-02-20 Thread Jonathan Goble
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

[issue25652] collections.UserString.__rmod__() raises NameError

2016-03-05 Thread Jonathan Goble
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

[issue25251] Unknown MS Compiler version 1900

2016-03-21 Thread Jonathan Hanba
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

[issue26821] array module "minimum size in bytes" table is wrong for int/long

2016-04-21 Thread Jonathan Booth
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.

[issue26821] array module "minimum size in bytes" table is wrong for int/long

2016-04-21 Thread Jonathan Booth
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

[issue27100] Attempting to use class with both __enter__ & __exit__ undefined yields __exit__ attribute error

2016-05-23 Thread Jonathan Ellington
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

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-17 Thread Jonathan Sharpe
Changes by Jonathan Sharpe : -- assignee: -> docs@python components: +Documentation nosy: +docs@python, jonrsharpe ___ Python tracker <http://bugs.python.org/issu

[issue23987] docs about containers membership testing wrong for broken objects

2015-04-17 Thread Jonathan Sharpe
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. -- __

[issue28527] Hack in `genericpath.commonprefix()` crashes if `m` argument is not indexable

2016-10-25 Thread Jonathan Hogg
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

[issue28527] Hack in `genericpath.commonprefix()` crashes if `m` argument is not indexable

2016-10-25 Thread Jonathan Hogg
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

[issue35417] Double parenthesis in print function running 2to3 in already correct call

2018-12-05 Thread Jonathan Alush-Aben
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

[issue27535] Memory leaks when opening tons of files

2017-11-21 Thread Jonathan Bastien-Filiatrault
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

[issue27535] Memory leaks when opening tons of files

2017-11-21 Thread 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

[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

2017-11-21 Thread Jonathan Bastien-Filiatrault
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

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread Jonathan G. Underwood
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

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread Jonathan G. Underwood
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

[issue9037] Add explanation as to how to raise a custom exception in the extending python intermezzo on exceptions

2010-06-20 Thread Jonathan G. Underwood
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

<    1   2   3   4