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
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 "
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
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
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
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
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
Patrick Maupin added the comment:
Example
>>> text = 'test1/1.jp2'
>>> text.rstrip('.2jp')
'test1/1'
--
___
Py
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
Patrick Maupin added the comment:
OK, thanks.
--
___
Python tracker
<http://bugs.python.org/issue24426>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Patrick Westerhoff :
--
nosy: +poke
___
Python tracker
<http://bugs.python.org/issue24651>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
Patrick Lehmann added the comment:
I signed the CLA.
--
___
Python tracker
<http://bugs.python.org/issue28710>
___
___
Python-bugs-list mailing list
Unsub
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
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&
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
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
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
>&
Changes by Michael Patrick O'Keefe <[EMAIL PROTECTED]>:
Removed file: http://bugs.python.org/file10853/pystone_patch.txt
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
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
Changes by Michael Patrick O'Keefe <[EMAIL PROTECTED]>:
--
nosy: +mokeefe
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1276>
___
Changes by Michael Patrick O'Keefe <[EMAIL PROTECTED]>:
Removed file: http://bugs.python.org/file10854/pystone.py.patch
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
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
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.
Changes by Michael Patrick O'Keefe <[EMAIL PROTECTED]>:
Added file: http://bugs.python.org/file10866/pystone_err.py
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
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
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
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
Andrews Patrick Rocha Medina <[EMAIL PROTECTED]> added the comment:
I'm working on removing symtable/_symtable
--
nosy: +andrewsmedina
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.
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://
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
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
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
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
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.
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
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
Changes by Patrick van der Leer :
--
nosy: +Patrick van der Leer
___
Python tracker
<http://bugs.python.org/issue5672>
___
___
Python-bugs-list mailing list
Unsub
201 - 252 of 252 matches
Mail list logo