[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Patrick Welche
Patrick Welche added the comment: No, I don't think you should close this, as you haven't explained what it is that you won't do. I think that a sensible plan is to introduce a configure flag whose effect is to not install the files which cause the conflict. You set the def

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Patrick Welche
Patrick Welche added the comment: To quote the README: Installing multiple versions ... For example, if you want to install Python 2.6, 2.7 and 3.4 with 2.7 being the primary version, you would execute "make install" in your 2.7 build directory and "

[issue24426] re.split performance degraded significantly by capturing group

2015-06-10 Thread Patrick Maupin
New submission from Patrick Maupin: The addition of a capturing group in a re.split() pattern, e.g. using '(\n)' instead of '\n', causes a factor of 10 performance degradation. I use re.split a() lot, but never noticed the issue before. It was extremely noticeable on 10

[issue24426] re.split performance degraded significantly by capturing group

2015-06-10 Thread Patrick Maupin
Patrick Maupin added the comment: 1) I have obviously oversimplified my test case, to the point where a developer thinks I'm silly enough to reach for the regex module just to split on a linefeed. 2) '\n(?<=(\n))' -- yes, of course, any casual user of the re module would

[issue24426] re.split performance degraded significantly by capturing group

2015-06-10 Thread Patrick Maupin
Patrick Maupin added the comment: Just to be perfectly clear, this is no exaggeration: My original file was slightly over 5GB. I have approximately 1050 bad strings in it, averaging around 11 characters per string. If I split it without capturing those 1050 strings, it takes 3.7 seconds. If

[issue24426] re.split performance degraded significantly by capturing group

2015-06-11 Thread Patrick Maupin
Patrick Maupin added the comment: Thank you for the quick response, Serhiy. I had started investigating and come to the conclusion that it was a problem with the compiler rather than the C engine. Interestingly, my next step was going to be to use names for the compiler constants, and then

[issue24445] rstrip strips what it doesn't have to

2015-06-13 Thread Patrick Maupin
Patrick Maupin added the comment: I think you misunderstand rstrip -- it works from the right, and checks to see if the right-most character is in the string you have given it. As long as it is, then it will remove the character and loop -- nosy: +Patrick Maupin

[issue24445] rstrip strips what it doesn't have to

2015-06-13 Thread Patrick Maupin
Patrick Maupin added the comment: Example >>> text = 'test1/1.jp2' >>> text.rstrip('.2jp') 'test1/1' -- ___ Py

[issue24426] re.split performance degraded significantly by capturing group

2015-06-13 Thread Patrick Maupin
Patrick Maupin added the comment: > (stuff about cPython) No, I was curious about whether somebody maintained pure-Python fixes (e.g. to the re parser and compiler). Those could be in a regular package that fixed some corner cases such as the capture group you just applied a patch

[issue24426] re.split performance degraded significantly by capturing group

2015-06-13 Thread Patrick Maupin
Patrick Maupin added the comment: OK, thanks. -- ___ Python tracker <http://bugs.python.org/issue24426> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24651] Mock.assert* API is in user namespace

2015-07-21 Thread Patrick Westerhoff
Changes by Patrick Westerhoff : -- nosy: +poke ___ Python tracker <http://bugs.python.org/issue24651> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-01 Thread Patrick Maupin
New submission from Patrick Maupin: PEP 8 recommends absolute imports over relative imports, and section 5.4.2 of the import documentation says that an import will cause a binding to be placed in the imported module's parent's namespace. However, since (with all current Python vers

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Patrick Maupin
Patrick Maupin added the comment: The PEP 8 recommendation to "use absolute imports" is completely, totally, unambiguously meaningless absent the expectation that packages refer to parts of themselves. And it works, too! (For a single level of package.) As soon as packages are ne

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-03 Thread Patrick Maupin
Patrick Maupin added the comment: I'm a big fan of stitching things together at the top myself -- maybe that's partly an unconscious reaction to this very issue. But I'm not sanguine about how easy it is to express this practice in the docs. This issue arose in the context of

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-05 Thread Patrick Maupin
Patrick Maupin added the comment: concurrent/futures/__init__.py may be a better example than 2to3 for this issue. It's relatively new code, it's part of the standard library, it's fairly small and self-contained, and it doesn't follow the promulgated standard. If it'

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-05 Thread Patrick Maupin
Patrick Maupin added the comment: I don't think anything is wrong with that code. But PEP 8 prescribes a way of doing something that often won't work (which is unusual for PEP 8), with no discussion of this fact. > I think the key thing to take away from this whole discussion i

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-05 Thread Patrick Maupin
Patrick Maupin added the comment: You are correct that I have conflated two issues, but they are not orthogonal -- if you choose to use relative imports, you will never encounter this issue, because your imports will all be of the 'from ... import' form. (And, as you point out, the

[issue26533] logging.config does not allow disable_existing_loggers=True

2016-03-14 Thread Patrick Egan
Patrick Egan added the comment: Used proposed method to solve this bug and implemented the extra kwarg disable_existing_loggers to the listen() parameters. -- keywords: +patch nosy: +chillydev Added file: http://bugs.python.org/file42168/Issue#26533.patch

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Patrick Miller
New submission from Patrick Miller: There is a reference counting error in PyFloat_AsDouble. When the function calls the nb_float conversion, if the method does not return an actual float object, an exception is set, but the object is not collected. --- Objects/floatobject.c 2014-10-08

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Patrick Miller
Patrick Miller added the comment: Here's a simple recreator... It returns a 100-meg string instead of a float. The memory is leaked each time through the loop -- Added file: http://bugs.python.org/file38343/recreate.tar ___ Python tracker

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Patrick Miller
Patrick Miller added the comment: Shout out to amaury for a much simpler recreator :-) Checked to see if the int conversion suffered the same problem... it does not as it is structured somewhat differently. Note that it DOES do the proper DECREF (missing in PyFloat_AsDouble). result

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-05 Thread Patrick Miller
Patrick Miller added the comment: This is also in the 2.7.x branch. Same patch. -- ___ Python tracker <http://bugs.python.org/issue23590> ___ ___ Python-bug

[issue28710] Sphinx incompatible markup in configparser.ConfigParser.

2016-11-15 Thread Patrick Lehmann
New submission from Patrick Lehmann: Why does e.g. configparser.ConfigParser contain doc strings with Sphinx incompatible markup? The markup starts with back-tick, but ends with a single quote. Example: https://github.com/python/cpython/blob/master/Lib/configparser.py?ts=2#L26 Sphinx writes

[issue28710] Sphinx incompatible markup in configparser.ConfigParser.

2016-11-16 Thread Patrick Lehmann
Patrick Lehmann added the comment: How can I supply a fix? I have a branch with lots of fixes. https://github.com/Paebbels/cpython/tree/paebbels/issue-28710?ts=2 Why don't you accept pull requests via GitHub? Kind regards Pa

[issue28710] Sphinx incompatible markup in configparser.ConfigParser.

2016-11-16 Thread Patrick Lehmann
Patrick Lehmann added the comment: Here is the patch file created with: PS> git diff > docstring_markup.patch This patchfile effects all files with this markup in the CPython repository. Kind regards Patrick -- keywords: +patch Added file: http://bugs.python.org/fil

[issue28710] Sphinx incompatible markup in configparser.ConfigParser.

2016-11-18 Thread Patrick Lehmann
Patrick Lehmann added the comment: Hello, I used this regexp on all files: -- match pattern: `([A-Za-z0-9_]+)' replace pattern ``\1`` -- I assumed that only identifiers where quoted in such way. I think my editor

[issue28710] Sphinx incompatible markup in configparser.ConfigParser.

2016-11-18 Thread Patrick Lehmann
Patrick Lehmann added the comment: I signed the CLA. -- ___ Python tracker <http://bugs.python.org/issue28710> ___ ___ Python-bugs-list mailing list Unsub

[issue28710] Sphinx incompatible markup in configparser.ConfigParser.

2016-11-20 Thread Patrick Lehmann
Patrick Lehmann added the comment: I also found some docstrings using double back-tick plus double single quotes. For example: ``x.y = v'' in builtins.py in function setattr(...). -- ___ Python tracker <http://bugs.python.o

[issue13702] relative symlinks in tarfile.extract broken

2012-01-03 Thread Patrick von Reth
New submission from Patrick von Reth : when extracting http://www.openssl.org/source/openssl-1.0.0d.tar.gz with python3.2 on windows 7 extraction fails with File "C:\python32\lib\tarfile.py", line 2175, in extract set_attrs=set_attrs) File "C:\python32\lib\tarfile.py&

[issue13702] relative symlinks in tarfile.extract broken (windows)

2012-01-03 Thread Patrick von Reth
Changes by Patrick von Reth : -- title: relative symlinks in tarfile.extract broken -> relative symlinks in tarfile.extract broken (windows) ___ Python tracker <http://bugs.python.org/issu

[issue13702] relative symlinks in tarfile.extract broken (windows)

2012-01-05 Thread Patrick von Reth
Patrick von Reth added the comment: to ignore the bug I also tried dereference=True, but it looks like python3 is ignoring it for extraction. Is this the normal behavior or just another bug? -- ___ Python tracker <http://bugs.python.org/issue13

[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-08 Thread Michael Patrick O'Keefe
New submission from Michael Patrick O'Keefe <[EMAIL PROTECTED]>: The following call results in a ZeroDivisionError in python 2.5.2 and python 3.0 alpha 3 (I presume this is also an issue for Python 2.6 but I can't explicitly confirm): >>> from test import pystone >&

[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-08 Thread Michael Patrick O'Keefe
Changes by Michael Patrick O'Keefe <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10853/pystone_patch.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-08 Thread Michael Patrick O'Keefe
Michael Patrick O'Keefe <[EMAIL PROTECTED]> added the comment: I'm resubmitting the patch -- I think this one's a little bit better than my first attempt. I only change the value of loops / benchtime -- keywords: +patch Added file: http://bugs.python.org/file1

[issue1276] LookupError: unknown encoding: X-MAC-JAPANESE

2008-07-08 Thread Michael Patrick O'Keefe
Changes by Michael Patrick O'Keefe <[EMAIL PROTECTED]>: -- nosy: +mokeefe ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1276> ___

[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-08 Thread Michael Patrick O'Keefe
Changes by Michael Patrick O'Keefe <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10854/pystone.py.patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-08 Thread Michael Patrick O'Keefe
Michael Patrick O'Keefe <[EMAIL PROTECTED]> added the comment: After a more careful study of the documentation on how to make (proper) patches, I'm submitting the patches again. This patches against the 2.6 trunk and py3k branch (R64812). I compiled both 2.6 and py3k and co

[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-08 Thread Michael Patrick O'Keefe
Changes by Michael Patrick O'Keefe <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10865/pystone_1_trunk.diff ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-08 Thread Michael Patrick O'Keefe
Changes by Michael Patrick O'Keefe <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10866/pystone_err.py ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue1346874] httplib simply ignores CONTINUE

2016-03-22 Thread Patrick J McNerthney
Patrick J McNerthney added the comment: I believe this is actually a bug, because it causes the posting of messages whose length is greater then the Apache HTTPD SSLRenegBufferSize setting to fail, whereas other http clients that first wait to receive the 100 response before sending the body

[issue1346874] httplib simply ignores CONTINUE

2016-04-03 Thread Patrick J McNerthney
Patrick J McNerthney added the comment: Martin, My understanding of the intention of the "Expect: 100-continue" header would address being able to receive an error response that is determined solely from the http request headers sent. So I do think that that would be the prop

[issue1346874] httplib simply ignores CONTINUE

2016-04-03 Thread Patrick J McNerthney
Patrick J McNerthney added the comment: "(though I don’t understand why Apache doesn’t renegotiate while the request body is being sent)" Apache does attempt to do this, but HttpsConnection is immediately sending the body of the request as fast as the socket will allow, which fi

[issue2775] Implement PEP 3108

2008-05-10 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment: I'm working on removing symtable/_symtable -- nosy: +andrewsmedina __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2775] Implement PEP 3108

2008-05-10 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment: I add deprecated warnings symtable/_symtable in python 2.6 Added file: http://bugs.python.org/file10273/deprecated_symtable_on_py26.patch __ Tracker <[EMAIL PROTECTED]> <http://

[issue2775] Implement PEP 3108

2008-05-10 Thread Andrews Patrick Rocha Medina
Changes by Andrews Patrick Rocha Medina <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10273/deprecated_symtable_on_py26.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2775] Implement PEP 3108

2008-05-10 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment: The files Python/compile.c and Python/pythonrun.c depends of the _symtable (Python/symtable.c and Include/symtable.h). What I do for remove _symtable in py3k? __ Tracker <[EMAIL

[issue2775] Implement PEP 3108

2008-05-11 Thread Andrews Patrick Rocha Medina
Changes by Andrews Patrick Rocha Medina <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10292/symtable_removed_on_py3k.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2775] Implement PEP 3108

2008-05-11 Thread Andrews Patrick Rocha Medina
Changes by Andrews Patrick Rocha Medina <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10294/deprecated_symtable_on_py26.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2775] Implement PEP 3108

2008-05-11 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment: I'm working on creating html package with HTMLParser and htmlentitydefs __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2775] Implement PEP 3108

2008-05-11 Thread Andrews Patrick Rocha Medina
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment: For to remove the htmllib on Python 3000 is need to removed these files: Lib/htmllib.py Lib/test_htmllib.py And apply this patch Added file: http://bugs.python.org/file10297/htmllib_removed_on_py3

[issue36207] robotsparser deny all with some rules

2020-06-22 Thread Patrick Valibus 410 Gone
Patrick Valibus 410 Gone added the comment: Bonjour, nous n'avons pas réussi à le faire fonctionner. Nous l'avons utilisé dans le cadre d'un test seo car nous essayons e reproduire des alternatives à scrappy. Par exemple le robots devrait bine crawler la page de notre agence s

[issue5672] Implement a way to change the python process name

2017-04-03 Thread Patrick van der Leer
Changes by Patrick van der Leer : -- nosy: +Patrick van der Leer ___ Python tracker <http://bugs.python.org/issue5672> ___ ___ Python-bugs-list mailing list Unsub

<    1   2   3