[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread STINNER Victor
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

[issue1859] textwrap doesn't linebreak on \n

2012-04-12 Thread Otto Kekäläinen
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

[issue1859] textwrap doesn't linebreak on \n

2012-04-12 Thread Otto Kekäläinen
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?*

[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-12 Thread Gregory P. Smith
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

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Georg Brandl
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 ___

[issue14559] (2.7.3 Regression) PC\8.0 directory can no longer be used to build on windows

2012-04-12 Thread Mitchell Blank Jr
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

[issue14554] test module: correction

2012-04-12 Thread Tshepang Lekhonkhobe
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 ___

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Ezio Melotti
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

[issue12537] mailbox's _become_message is very fragile

2012-04-12 Thread David Lam
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 ___ ___

[issue14548] garbage collection just after multiprocessing's fork causes exceptions

2012-04-12 Thread Charles-François Natali
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

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
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: # -*-

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
Андрей Р 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() -- ___

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
Changes by Андрей Р lans...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14560 ___ ___ Python-bugs-list

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Андрей Р
Андрей Р lans...@gmail.com added the comment: Sorry. My fault -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14560 ___ ___ Python-bugs-list

[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-12 Thread Vinay Sajip
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2012-04-12 Thread Nick
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

[issue14561] python-2.7.2-r3 suffers test failure at test_mhlib

2012-04-12 Thread Ian Delaney
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

[issue14560] urllib2 cannot make POST with utf-8 content

2012-04-12 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14560 ___ ___ Python-bugs-list

[issue14557] HP-UX libraries not included

2012-04-12 Thread Charles-François Natali
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'):

[issue14557] HP-UX libraries not included

2012-04-12 Thread Adi Roiban
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

[issue14412] Sqlite Integer Fields

2012-04-12 Thread Mendez
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

[issue14412] Sqlite Integer Fields

2012-04-12 Thread Benjamin Peterson
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 ___

[issue14562] urllib2 maybe blocks too long

2012-04-12 Thread Anrs Hu
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

[issue14562] urllib2 maybe blocks too long

2012-04-12 Thread Senthil Kumaran
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

[issue14556] telnetlib Telnet.expect fails with timeout=0

2012-04-12 Thread R. David Murray
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

[issue14563] Segmentation fault on ctypes.Structure subclass with byte string field names

2012-04-12 Thread aliles
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

[issue14399] zipfile and creat/update comment

2012-04-12 Thread Serhiy Storchaka
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

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Jon Oberheide
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).

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Jim Jewett
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

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Antoine Pitrou
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

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Jim Jewett
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

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Jon Oberheide
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:

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread sbt
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

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
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 ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
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 ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
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 ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
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 ___

[issue1859] textwrap doesn't linebreak on \n

2012-04-12 Thread Serhiy Storchaka
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 ___

[issue14399] zipfile and creat/update comment

2012-04-12 Thread R. David Murray
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. -- ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
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

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-12 Thread Tom Bachmann
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

[issue6717] Some problem with recursion handling

2012-04-12 Thread Philippe Devalkeneer
Changes by Philippe Devalkeneer phil.le.bienheur...@gmail.com: -- nosy: +flupke ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6717 ___ ___

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
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

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Serhiy Storchaka
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

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-12 Thread R. David Murray
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

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-12 Thread Tom Bachmann
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

[issue14538] HTMLParser: parsing error

2012-04-12 Thread R. David Murray
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,

[issue13903] New shared-keys dictionary implementation

2012-04-12 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +Yury.Selivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___

[issue6717] Some problem with recursion handling

2012-04-12 Thread Antoine Pitrou
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

[issue14432] Bug in generator if the generator in created in a C thread

2012-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14432 ___ ___ Python-bugs-list

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
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

[issue6717] Some problem with recursion handling

2012-04-12 Thread Antoine Pitrou
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

[issue14082] shutil doesn't copy extended attributes

2012-04-12 Thread Hynek Schlawack
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

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
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

[issue6717] Some problem with recursion handling

2012-04-12 Thread Antoine Pitrou
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

[issue6717] Some problem with recursion handling

2012-04-12 Thread Antoine Pitrou
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

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
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

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2012-04-12 Thread Charles-François Natali
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. --

[issue14557] HP-UX libraries not included

2012-04-12 Thread Roundup Robot
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

[issue14564] Error running: ( echo 'import os'; echo 'help(os)'; )| python |head

2012-04-12 Thread Peng Yu
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

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2012-04-12 Thread Adi Roiban
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

[issue14557] HP-UX libraries not included

2012-04-12 Thread Charles-François Natali
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

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
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

[issue14565] is_cgi doesn't function as documented for cgi_directories

2012-04-12 Thread Glenn Linderman
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

[issue14548] garbage collection just after multiprocessing's fork causes exceptions

2012-04-12 Thread sbt
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

[issue14565] is_cgi doesn't function as documented for cgi_directories

2012-04-12 Thread Glenn Linderman
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

[issue14564] Error running: ( echo 'import os'; echo 'help(os)'; )| python |head

2012-04-12 Thread Charles-François Natali
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

[issue14556] telnetlib Telnet.expect fails with timeout=0

2012-04-12 Thread Joel Lovinger
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

[issue14566] run_cgi reverts to using unnormalized path

2012-04-12 Thread Glenn Linderman
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

[issue14565] is_cgi doesn't function as documented for cgi_directories

2012-04-12 Thread Glenn Linderman
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

[issue14548] garbage collection just after multiprocessing's fork causes exceptions

2012-04-12 Thread Antoine Pitrou
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__()). --

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2012-04-12 Thread Amaury Forgeot d'Arc
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

[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-12 Thread Glenn Linderman
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

[issue14555] clock_gettime/settime/getres: Add more clock identifiers

2012-04-12 Thread STINNER Victor
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

[issue11750] Mutualize win32 functions

2012-04-12 Thread Antoine Pitrou
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

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Serhiy Storchaka
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

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2012-04-12 Thread Robin Schreiber
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

[issue14532] multiprocessing module performs a time-dependent hmac comparison

2012-04-12 Thread Jon Oberheide
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:

[issue14568] HP-UX local libraries not included

2012-04-12 Thread Adi Roiban
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

[issue14568] HP-UX local libraries not included

2012-04-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14568 ___ ___

[issue14444] Virtualenv not portable from Python 2.7.2 to 2.7.3 (os.urandom missing)

2012-04-12 Thread Jason R. Coombs
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

[issue14563] Segmentation fault on ctypes.Structure subclass with byte string field names

2012-04-12 Thread Amaury Forgeot d'Arc
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

[issue14569] pystate.c #ifdef ordering problem

2012-04-12 Thread Jim Jewett
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2012-04-12 Thread Nick
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

[issue14569] pystate.c #ifdef ordering problem

2012-04-12 Thread Jim Jewett
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 =

[issue9960] test_structmembers fails on s390x (bigendian 64-bit): int/Py_ssize_t issue

2012-04-12 Thread Dave Malcolm
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2012-04-12 Thread STINNER Victor
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 ___

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2012-04-12 Thread Adi Roiban
Changes by Adi Roiban a...@roiban.ro: -- nosy: +adiroiban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12991 ___ ___ Python-bugs-list mailing

[issue1572968] release GIL while doing I/O operations in the mmap module

2012-04-12 Thread Adi Roiban
Changes by Adi Roiban a...@roiban.ro: -- nosy: +adiroiban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1572968 ___ ___ Python-bugs-list mailing

[issue9123] insecure os.urandom on VMS

2012-04-12 Thread Adi Roiban
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

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2012-04-12 Thread Adi Roiban
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

[issue14548] garbage collection just after multiprocessing's fork causes exceptions

2012-04-12 Thread sbt
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

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2012-04-12 Thread R. David Murray
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 ___

[issue14399] zipfile and creat/update comment

2012-04-12 Thread Roundup Robot
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

[issue14399] zipfile and creat/update comment

2012-04-12 Thread R. David Murray
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

[issue14563] Segmentation fault on ctypes.Structure subclass with byte string field names

2012-04-12 Thread aliles
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

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Ezio Melotti
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

[issue1559549] ImportError needs attributes for module and file name

2012-04-12 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: brian.curtin - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___

[issue14428] Implementation of the PEP 418

2012-04-12 Thread STINNER Victor
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

[issue14428] Implementation of the PEP 418

2012-04-12 Thread STINNER Victor
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   2   >