STINNER Victor victor.stin...@gmail.com added the comment:
+def time_independent_equals(a, b):
+if len(a) != len(b):
+return False
This is not time independent. Is it an issue?
+if type(a[0]) is int:
It's better to write isinstance(a, bytes). You should raise a
TypeError if a
Otto Kekäläinen o...@seravo.fi added the comment:
As a note to comments msg60038-msg60040, for anybody like me who ended up here
after Googling around on how to do wordwrap in Python:
The function textwrap in Python is for single strings/paragraphs only, and it
does not work as wordwrap
Otto Kekäläinen o...@seravo.fi added the comment:
In previous comment: (eg. Wordwrap in Python) - (wordwrap() in PHP)
Some examples of how this function works on text blocks:
Original text:
--
*Maksaako riippuvuus yksittäisestä ohjelmistoyritykstä Helsingille vuosittain
3,4 miljoonaa euroa?*
Gregory P. Smith g...@krypto.org added the comment:
Your three step approach makes sense... But it _is_ still technically a new API
though in that the UTF8BOM placeholder for LogRecord's is being introduced.
What would the behavior be when run on an older version without support for
that
Georg Brandl ge...@python.org added the comment:
ISTM that meta / is neither valid HTML nor valid XHTML.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14538
___
New submission from Mitchell Blank Jr m-pyt...@bodyfour.com:
In the diff between 2.7.2 and 2.7.3, we see:
--- Python-2.7.2/PCbuild/pythoncore.vcproj 2011-06-11 08:46:27.0
-0700
+++ Python-2.7.3/PCbuild/pythoncore.vcproj 2012-04-09 16:07:35.0
-0700
@@ -1835,6 +1835,10
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file25187/correction.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14554
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here's a patch.
--
keywords: +patch
stage: test needed - patch review
Added file: http://bugs.python.org/file25188/issue14538.diff
___
Python tracker rep...@bugs.python.org
David Lam d...@dlam.me added the comment:
Wow, cool! Thanks for the update.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12537
___
___
Charles-François Natali neolo...@free.fr added the comment:
That's a problem indeed. Perhaps we need a global fork lock shared
between subprocess and multiprocessing?
I did an atfork patch which included a (recursive) fork lock. See
http://bugs.python.org/review/6721/show
The patch
New submission from Андрей Р lans...@gmail.com:
Issue can be found only in 2.7, in 2.6.6 it works
System:
Linux strix 3.2.14-1-ARCH x86_64
Python information:
Python 2.7.2 (default, Jan 31 2012, 13:19:49) [GCC 4.6.2 20120120
(prerelease)] on linux2
Snippet to reproduce error:
# -*-
Андрей Р lans...@gmail.com added the comment:
# -*- encoding: utf-8 -*-
import urllib2
request = urllib2.Request('http://google.com', u'Контент'.encode(utf-8),
{'Content-Type': 'text/plain; charset=utf-8'})
urllib2.urlopen(request).read()
--
___
Changes by Андрей Р lans...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14560
___
___
Python-bugs-list
Андрей Р lans...@gmail.com added the comment:
Sorry. My fault
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14560
___
___
Python-bugs-list
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
What would the behavior be when run on an older version without support for
that placeholder be?
Then it would fail when the format string contained e.g. %(UTF8BOM)s and there
was no corresponding attribute in the LogRecord - but that's
Nick spaun2002mob...@gmail.com added the comment:
I faced with the issue on my own PC. For a Russian version of WinOS default PC
name is ИВАН-ПК (C8 C2 C0 CD 2D CF CA in hex) and it returns from gethostbyaddr
(CRT) exactly in this form (encoded with system locale cp1251 not UTF8). So
when the
New submission from Ian Delaney del...@iinet.com.au:
Testing test suite of pyth-2.7.
Re-running failed tests in verbose mode
Re-running test 'test_mhlib' in verbose mode
test_basic (test.test_mhlib.MhlibTests) ... ok
test_listfolders (test.test_mhlib.MhlibTests) ... FAIL
It seems to be pinned
Changes by Senthil Kumaran sent...@uthcode.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14560
___
___
Python-bugs-list
Charles-François Natali neolo...@free.fr added the comment:
Hello Adi,
Thanks for your patch.
Just a detail:
if platform == 'hp-ux11':
lib_dirs += ['/usr/lib/hpux64', '/usr/lib/hpux32']
Wouldn't it be more robust as:
if platform.startswith('hp-ux'):
Adi Roiban a...@roiban.ro added the comment:
Hi,
startswith('hp-ux') should also work as in real world it should be synonym with
hp-ux11 ... see my reasoning below
I used 'hp-ux11' since this was the system I have access to and can test and I
was not brave enought to assume that the patch
Mendez goatsofmen...@users.sourceforge.net added the comment:
I've tested the released 2.7.3 and this works fine so there must just have been
some oddity with the packaging of sqlite in rc2.
--
___
Python tracker rep...@bugs.python.org
Benjamin Peterson benja...@python.org added the comment:
Great!
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14412
___
New submission from Anrs Hu anders.x...@gmail.com:
If HTTP URL response's Transfer-Encoding is 'Chunked', then the
urllib2.urlopen(URL).readline() will block until there're enough 8192 bytes,
even though the first chunk is just a line.
Every chunks should be processed as soon as posible, so
Senthil Kumaran sent...@uthcode.com added the comment:
I am trying to this test this to determine the fault.
--
assignee: - orsenthil
nosy: +orsenthil
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Ah, so there are actually two timeouts of interest. One is time out if there
is no more data for X seconds, and the other is time out if there is no match
for X seconds. It used to do the former, now it does the latter.
I think you
New submission from aliles aaron.i...@gmail.com:
Python 3.2 will exit with a segmentation fault if a byte string is used as a
field name in a subclass of ctypes.Structure.
Python 3.2.2 (default, Dec 18 2011, 18:56:20)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)] on
Serhiy Storchaka storch...@gmail.com added the comment:
Thank you, the TypeError test helped me find the error. Here is the
corrected patch.
For 2.7 it was necessary to turn the ZipFile in the new-style class.
--
Added file: http://bugs.python.org/file25190/fix_zipfile_comment_4.patch
Jon Oberheide j...@oberheide.org added the comment:
This is not time independent. Is it an issue?
You're correct, the length check does leak the length of the expected digest as
a performance enhancement (otherwise, your comparison runtime is bounded by the
length of the attackers input).
Jim Jewett jimjjew...@gmail.com added the comment:
-1 on that particular patch.
tagname /
(with only whitespace between / and ) strikes me as obviously intending to
close the tag, and a reasonably common error.
I can't think of any reason to support nested meta tags while not supporting
Antoine Pitrou pit...@free.fr added the comment:
You could rewrite:
result |= x ^ y
as:
result |= (x != y)
Of course, this assumes that the != operator is constant-time for 1-element
strings.
--
nosy: +pitrou
___
Python tracker
Jim Jewett jimjjew...@gmail.com added the comment:
This issue is also marked for (bugfix-only) 2.7 and 3.2.
Unless there is a specification somewhere (or at least an editor's draft), I
can't really see any particular parse as a bugfix. Was the goal just to make
the parse finish, as opposed
Jon Oberheide j...@oberheide.org added the comment:
You could rewrite:
result |= x ^ y
as:
result |= (x != y)
You could, but it's best not to introduce any conditional branching based if at
all possible. For reference, see:
sbt shibt...@gmail.com added the comment:
Why not just
def time_independent_equals(a, b):
return len(a) == len(b) and sum(x != y for x, y in zip(a, b)) == 0
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14532
Changes by Jesús Cea Avión j...@jcea.es:
Removed file: http://bugs.python.org/file24281/5458412752d5.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Changes by Jesús Cea Avión j...@jcea.es:
Removed file: http://bugs.python.org/file24283/f86bb02fd8f4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file25192/aa2dcffa267f.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file25193/1e4d2c51b2d9.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Serhiy Storchaka storch...@gmail.com added the comment:
Cooking recipe for Otto:
def wrap_paragraphs(text, width=70, **kwargs):
return [line for para in text.splitlines() for line in textwrap.wrap(para,
width, **kwargs)]
--
nosy: +storchaka
___
R. David Murray rdmur...@bitdance.com added the comment:
Thanks.
We've had trouble in the past with a conversion to new style class breaking
people's code. People are less likely to be subclassing ZipFile, though, so it
is probably OK.
--
___
Jesús Cea Avión j...@jcea.es added the comment:
Published diff from stock 2.7.3.
Cleanups and simplifications.
Marc, could you possible compile under MacOS X both 2.7 and 3.3 branches, both
in 32 and 64 bits?.
The tags are:
dtrace-issue13405 - 3.3a2+
dtrace-issue13405_2.7 - 2.7.3
Let
Tom Bachmann e_mc...@web.de added the comment:
Hello,
[this is my first bug report, so I'm sorry if I'm not adhering to some
conventions]
in what versions of python is this supposed to be fixed? Consider:
% python
Python 2.7.2+ (default, Nov 30 2011, 19:22:03)
[GCC 4.6.2] on linux2
Type
Changes by Philippe Devalkeneer phil.le.bienheur...@gmail.com:
--
nosy: +flupke
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6717
___
___
Jesús Cea Avión j...@jcea.es added the comment:
PHP 5.4.0 added DTRACE support:
http://fr2.php.net/ChangeLog-5.php
The python window for 3.3 closes mid june. Let's do not miss it this time :-).
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka storch...@gmail.com added the comment:
To be consistent, this patch should remove the references to
http://www.w3.org/TR/html5/tokenization.html#tag-open-state and
http://www.w3.org/TR/html5/tokenization.html#tag-open-state as irrelevant.
--
nosy: +storchaka
R. David Murray rdmur...@bitdance.com added the comment:
It is fixed in Python3. Apparently Raymond was wrong about it having been
fixed earlier (or perhaps he was referring to the unicode being removed from
the pydoc __credits__ string).
--
nosy: +r.david.murray
Tom Bachmann e_mc...@web.de added the comment:
I see. Thank you.
On 12.04.2012 16:08, R. David Murray wrote:
R. David Murrayrdmur...@bitdance.com added the comment:
It is fixed in Python3. Apparently Raymond was wrong about it having been
fixed earlier (or perhaps he was referring to
R. David Murray rdmur...@bitdance.com added the comment:
Yes, after considerable discussion those of working on this stuff decided that
the goal should be that the parser be able to complete parsing, without error,
anything the typical browsers can parse (which means, pretty much anything,
Changes by Yury Selivanov yseliva...@gmail.com:
--
nosy: +Yury.Selivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13903
___
___
Antoine Pitrou pit...@free.fr added the comment:
Yes, this is all by design. The interpreter *has* to stop: either it stops in a
controlled way (the fatal error) or the stack is blown and it crashes. If you
think the fatal error (basically a C abort() call) should be replaced with
another way
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14432
___
___
Python-bugs-list
Dino Viehland di...@microsoft.com added the comment:
Antoine: If you're looking at my test.py then my expectation is that this
doesn't crash because a RuntimeError should be raised when the maximum
recursion limit is hit, and then the trace handler should be uninstalled
because it leaks an
Antoine Pitrou pit...@free.fr added the comment:
Antoine: If you're looking at my test.py then my expectation is that
this doesn't crash because a RuntimeError should be raised when the
maximum recursion limit is hit, and then the trace handler should be
uninstalled because it leaks an
Hynek Schlawack h...@ox.cx added the comment:
Ok, so I’ve added a function `copyxattr()` and `copy2()` tries to copy all
possible namespaces.
Tests pass on Linux and Mac OS X.
--
keywords: +patch
Added file: http://bugs.python.org/file25194/xattr.diff
Dino Viehland di...@microsoft.com added the comment:
It's catching the exception when it invokes x, but the recursion enforcement
should happen at a method prolog, including at the invocation of g. Therefore
if we're at or beyond the recursion limit when invoking the trace handler the
limits
Antoine Pitrou pit...@free.fr added the comment:
It's catching the exception when it invokes x, but the recursion
enforcement should happen at a method prolog, including at the
invocation of g. Therefore if we're at or beyond the recursion limit
when invoking the trace handler the limits
Antoine Pitrou pit...@free.fr added the comment:
FYI this isn't actually causing any problems for me, I just ran into it
while doing IronPython development and was surprised to be able to
crash the interpreter w/ pure Python code, and my crash looked awfully
similar to this bug.
I agree
Dino Viehland di...@microsoft.com added the comment:
Maybe there just needs to be a max that it will bump it up?
FYI this isn't actually causing any problems for me, I just ran into it while
doing IronPython development and was surprised to be able to crash the
interpreter w/ pure Python
Charles-François Natali neolo...@free.fr added the comment:
Adi, since you have access to an HP-UX box, could you test the attached patch
(chown_hpux.diff)?
Also, if you're interested, you could search for other isues HP-UX-specific to
see if you can help.
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 807f331f973d by Charles-François Natali in branch '3.2':
Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban.
http://hg.python.org/cpython/rev/807f331f973d
New changeset 9481e801ae7c by Charles-François
New submission from Peng Yu pengyu...@gmail.com:
I get the following error when I run the following command. I think that help
may use something that don't work well with pipe. Could anybody take a look?
~/linux/bin/xplat/src/pymisc/pyhelp/main$ ( echo 'import os'; echo 'help(os)';
)| python
Adi Roiban a...@roiban.ro added the comment:
Hi,
Not sure what codebase was used for the patch.
I have manually patched the test on 2.5.6 and the test_posix tests passed.
Thanks!
Adi
--
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
Committed, thanks!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14557
Dino Viehland di...@microsoft.com added the comment:
One thought might be to do a recursion check (and maybe for multiple frames)
when entering a try rather than incrementing the recursion limit to allow the
handlers to run.
That would cause the exception to be more likely taken before you
New submission from Glenn Linderman v+pyt...@g.nevcal.com:
I notice a deficiency in is_cgi: there is no documentation requiring
cgi_directories to be a single part, only that the initial value happens to be
a list of two directories, each of which have only a single part or level. The
sbt shibt...@gmail.com added the comment:
Alternative patch which records pid when Finalize object is created. The
callback does nothing if recorded pid does not match os.getpid().
--
Added file: http://bugs.python.org/file25195/mp_finalize_pid.patch
Changes by Glenn Linderman v+pyt...@g.nevcal.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14565
___
___
Python-bugs-list
Charles-François Natali neolo...@free.fr added the comment:
Hello,
this is not a forum to get help with Python, but to report bugs.
In your case, the problem is simply that since help(os) prints more than 10
lines, head exits, and python gets EPIPE when writing to the pipe (which is
normal
Joel Lovinger jlovin...@gmail.com added the comment:
2.4 behavior, time out if there is no more data for X seconds, only worked as
expected in the case of timeout=0. Any other timeout could result in indefinite
extension and needed fixing.
2.7 behavior, time out if there is no match for X
New submission from Glenn Linderman v+pyt...@g.nevcal.com:
While is_cgi carefully normalizes the path using _url_collapse_path, if it
returns True, then run_cgi is called... which sort of starts out using the
cgi_info created by is_cgi, but then compares and searches using the original
Glenn Linderman v+pyt...@g.nevcal.com added the comment:
Happily, this can be cured by overriding and replacing is_cgi, but it shouldn't
be necessary to do so.
--
components: +Library (Lib)
type: - behavior
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
Antoine Pitrou pit...@free.fr added the comment:
But what if Finalize is used to cleanup a resource that gets duplicated in
children, like a file descriptor?
See e.g. forking.py, line 137 (in Popen.__init__())
or heap.py, line 244 (BufferWrapper.__init__()).
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Nick, which version of Python are you using? And which function are you running
exactly?
It seems that a4fd3dc74299 fixed the issue, this was included with 3.2.
--
___
Python tracker
New submission from Glenn Linderman v+pyt...@g.nevcal.com:
A URL potentially consists of four parts: path, PATH_INFO, anchor,
QUERY_STRING. The syntax is roughly:
/path/parts/cgi-script/path/info/parts#anchor?query-string
where # and ? characters play key roles.
is_cgi not-so-cleverly
STINNER Victor victor.stin...@gmail.com added the comment:
more_clock_ids.patch: add more clock identifiers. Don't add the following
clocks: CLOCK_BOOTTIME_ALARM, CLOCK_REALTIME_ALARM, CLOCK_UPTIME_FAST,
CLOCK_UPTIME_PRECISE, CLOCK_MONOTONIC_PRECISE, CLOCK_REALTIME_PRECISE.
The documentation
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +sbt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11750
___
___
Python-bugs-list mailing list
Serhiy Storchaka storch...@gmail.com added the comment:
I apologize for misplaced sarcasm. After more careful reading of the source
code, I found out that the patch really meets the specifications and the
behavior of all tested me browsers. Despite its awkward appearance, the patch
fixes a
Robin Schreiber robin.schrei...@me.com added the comment:
Apparently this issue has not been dealt with for quite some time now. As a
prospective GSoC student, I still need to submit a patch to pass final
screening and I thought, that the needed patch here would be quite suitable for
a
Jon Oberheide j...@oberheide.org added the comment:
Here's a v2 patch. Changes include checking the input types via isinstance,
test cases to exercise the type checking, and a note documenting the leak of
the input length.
--
Added file:
New submission from Adi Roiban a...@roiban.ro:
Hi,
Sorry for bothering you.
In my initial report, I did not added /usr/local/lib paths , since I was
thinking that Python should only work with the default library location.
Now I see that /usr/local is added just at the beginning of module
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14568
___
___
Jason R. Coombs jar...@jaraco.com added the comment:
For posterity, here's the release notes that we had drafted on the pirate pad:
Note: This patch release of Python may have compatibility implications for
environments utilizing the third-party virtualenv. For more detail see XXX.
[the note
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This is a duplicate of issue12764, which was already fixed for 3.2.2 (in
September 2011)
Which version of python are you using exactly?
What does import platform; platform.python_revision() return?
--
nosy: +amaury.forgeotdarc
New submission from Jim Jewett jimjjew...@gmail.com:
The C linkage is guarded by WITH_THREAD. The 'extern C {' and '}'
declarations should be in effect regardless of threading.
Note that the bug can only be triggered by compiling without threads, but with
a C++ compiler; this is obscure
Nick spaun2002mob...@gmail.com added the comment:
Originally I tried 3.2.2 (32bit), but I've just checked 3.2.3 and got the same.
A code for reproduce is simple:
from socket import gethostbyaddr
a = gethostbyaddr('127.0.0.1')
leads to:
Traceback (most recent call last):
File
Jim Jewett jimjjew...@gmail.com added the comment:
http://hg.python.org/cpython/file/0f114b855824/Python/pystate.c#l25
#ifdef WITH_THREAD
#include pythread.h
static PyThread_type_lock head_mutex = NULL; /* Protects interp-tstate_head */
#define HEAD_INIT() (void)(head_mutex || (head_mutex =
Dave Malcolm dmalc...@redhat.com added the comment:
The originally attached patch is no good for the the 2.* branch, as it appears
that _testcapimodule.c will not become ssize_t safe in Python 2.*; see e.g.:
http://hg.python.org/cpython/rev/3ecddf168f1f
Am attaching a revised patch that I'm
STINNER Victor victor.stin...@gmail.com added the comment:
a4fd3dc74299 only fixed socket.gethostname(), not socket.gethostbyaddr().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9377
___
Changes by Adi Roiban a...@roiban.ro:
--
nosy: +adiroiban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12991
___
___
Python-bugs-list mailing
Changes by Adi Roiban a...@roiban.ro:
--
nosy: +adiroiban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1572968
___
___
Python-bugs-list mailing
Changes by Adi Roiban a...@roiban.ro:
--
nosy: +adiroiban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9123
___
___
Python-bugs-list mailing list
Adi Roiban a...@roiban.ro added the comment:
I am not sure how the search works, but for example I was not able to reach
http://bugs.python.org/issue5895 while searching for hpux or hp-ux using the
internal search.
Also I was not able to find any aix or solaris bug.
In case you bump over an
sbt shibt...@gmail.com added the comment:
But what if Finalize is used to cleanup a resource that gets
duplicated in children, like a file descriptor?
See e.g. forking.py, line 137 (in Popen.__init__())
or heap.py, line 244 (BufferWrapper.__init__()).
This was how Finalize objects already
R. David Murray rdmur...@bitdance.com added the comment:
Search is currently not returning all matching issues, unfortunately. You
might get a few more hits by searching for hpux in the title field via advanced
search.
--
nosy: +r.david.murray
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ac0ec1f31b0a by R David Murray in branch '2.7':
#14399: zipfile now correctly handles comments added to empty zipfiles.
http://hg.python.org/cpython/rev/ac0ec1f31b0a
New changeset 4186f20d9fa4 by R David Murray in
R. David Murray rdmur...@bitdance.com added the comment:
Thanks, Serhiy.
I made one small change, using 'with self.assertEqual' in the TypeError test.
You might want to check that out, it is a useful technique.
Oh, and I removed the type check from the 2.7 patch. You can use a unicode
aliles aaron.i...@gmail.com added the comment:
Should I build a version from the tip of the 3.2 or default branch on
hg.python.org?
This version is Python 3.2.2 built using homebrew. The revision is being
reported as an empty string.
Python 3.2.2 (default, Dec 18 2011, 18:56:20)
[GCC 4.2.1
Ezio Melotti ezio.melo...@gmail.com added the comment:
Attached a new patch with a few more tests and a simplification of the attrfind
regex.
But it allows the passage of an invalid code in strict mode.
HTMLParser is following the HTML5 specs, and doesn't do validation, so there's
no
Changes by Brett Cannon br...@python.org:
--
assignee: brian.curtin - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1559549
___
___
STINNER Victor victor.stin...@gmail.com added the comment:
Patch version 7:
- Add time.perf_counter() and time.process_time()
- Replace accuracy key with precision in time.get_clock_info() result
--
Added file: http://bugs.python.org/file25201/pep418-7.patch
STINNER Victor victor.stin...@gmail.com added the comment:
perf_counter_process_time.patch: replace time.clock if windows else time.time
with time.perf_counter, and getrusage/clock with time.process_time.
pybench and timeit now use time.perf_counter() by default. profile uses
1 - 100 of 110 matches
Mail list logo