[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-12 Thread Gregory P. Smith
Gregory P. Smith 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 placeholder be? I'

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Georg Brandl
Georg Brandl added the comment: ISTM that "" is neither valid HTML nor valid XHTML. -- nosy: +georg.brandl ___ Python tracker ___ ___

[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 : 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 : -- keywords: +patch Added file: http://bugs.python.org/file25187/correction.diff ___ Python tracker ___

[issue14538] HTMLParser: parsing error

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

[issue12537] mailbox's _become_message is very fragile

2012-04-12 Thread David Lam
David Lam added the comment: Wow, cool! Thanks for the update. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

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

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

2012-04-12 Thread Андрей Р
New submission from Андрей Р : 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: # -*- encoding: utf-8 -*-

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

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

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

2012-04-12 Thread Андрей Р
Changes by Андрей Р : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2012-04-12 Thread Андрей Р
Андрей Р added the comment: Sorry. My fault -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-12 Thread Vinay Sajip
Vinay Sajip 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 true of any feature

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

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

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

2012-04-12 Thread Ian Delaney
New submission from Ian Delaney : 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 down to this one line

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

2012-04-12 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14557] HP-UX libraries not included

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

[issue14557] HP-UX libraries not included

2012-04-12 Thread Adi Roiban
Adi Roiban 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 will work on futu

[issue14412] Sqlite Integer Fields

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

[issue14412] Sqlite Integer Fields

2012-04-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Great! -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-b

[issue14562] urllib2 maybe blocks too long

2012-04-12 Thread Anrs Hu
New submission from Anrs Hu : 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 the readline() behavio

[issue14562] urllib2 maybe blocks too long

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

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

2012-04-12 Thread R. David Murray
R. David Murray 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 get the former by ca

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

2012-04-12 Thread aliles
New submission from aliles : 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 darwin Type "help", "copy

[issue14399] zipfile and creat/update comment

2012-04-12 Thread Serhiy Storchaka
Serhiy Storchaka 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 Added file: http://b

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

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

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Jim Jewett
Jim Jewett added the comment: -1 on that particular patch. (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 sloppy self-closing tags.

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

2012-04-12 Thread Antoine Pitrou
Antoine Pitrou 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 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 to stopping part way

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

2012-04-12 Thread Jon Oberheide
Jon Oberheide 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: http://rdist.root.org/2009/05/28/timing-attack-in-google-keycza

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

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

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file24281/5458412752d5.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file24283/f86bb02fd8f4.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file25192/aa2dcffa267f.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13405] Add DTrace probes

2012-04-12 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file25193/1e4d2c51b2d9.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1859] textwrap doesn't linebreak on "\n"

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

[issue14399] zipfile and creat/update comment

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

[issue13405] Add DTrace probes

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

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-12 Thread Tom Bachmann
Tom Bachmann 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 "help", "copyright

[issue6717] Some problem with recursion handling

2012-04-12 Thread Philippe Devalkeneer
Changes by Philippe Devalkeneer : -- nosy: +flupke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13405] Add DTrace probes

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

[issue14538] HTMLParser: parsing error

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

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-12 Thread Tom Bachmann
Tom Bachmann added the comment: I see. Thank you. On 12.04.2012 16:08, R. David Murray wrote: > > R. David Murray 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 >

[issue14538] HTMLParser: parsing error

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

[issue13903] New shared-keys dictionary implementation

2012-04-12 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +Yury.Selivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue6717] Some problem with recursion handling

2012-04-12 Thread Antoine Pitrou
Antoine Pitrou 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 of exiting, pl

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

2012-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
Dino Viehland 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 exception. And that's

[issue6717] Some problem with recursion handling

2012-04-12 Thread Antoine Pitrou
Antoine Pitrou 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 exception. I do

[issue14082] shutil doesn't copy extended attributes

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

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
Dino Viehland 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 should still be enf

[issue6717] Some problem with recursion handling

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

[issue6717] Some problem with recursion handling

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

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
Dino Viehland 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 code, and my crash loo

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

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

[issue14557] HP-UX libraries not included

2012-04-12 Thread Roundup Robot
Roundup Robot 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 Natali in branch 'default': Issu

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

2012-04-12 Thread Peng Yu
New submission from Peng Yu : 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 |head Help on module

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

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

[issue14557] HP-UX libraries not included

2012-04-12 Thread Charles-François Natali
Charles-François Natali added the comment: Committed, thanks! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue6717] Some problem with recursion handling

2012-04-12 Thread Dino Viehland
Dino Viehland 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 run the code which

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

2012-04-12 Thread Glenn Linderman
New submission from Glenn Linderman : 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 description of is_cgi, howev

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

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

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

2012-04-12 Thread Glenn Linderman
Changes by Glenn Linderman : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-04-12 Thread Charles-François Natali
Charles-François Natali 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 when there's no re

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

2012-04-12 Thread Joel Lovinger
Joel Lovinger 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 seconds" fixes timeo

[issue14566] run_cgi reverts to using unnormalized path

2012-04-12 Thread Glenn Linderman
New submission from Glenn Linderman : 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 self.path value instead. Th

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

2012-04-12 Thread Glenn Linderman
Glenn Linderman 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 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 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 : 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 passes the whole request to

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

2012-04-12 Thread STINNER Victor
STINNER Victor 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 should be improved :-/ -

[issue11750] Mutualize win32 functions

2012-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Serhiy Storchaka
Serhiy Storchaka 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 flaw of the original c

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

2012-04-12 Thread Robin Schreiber
Robin Schreiber 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 beginner. I plan to submit a

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

2012-04-12 Thread Jon Oberheide
Jon Oberheide 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: http://bugs.python.org/file25197/hmac-time-independent-v2.patch _

[issue14568] HP-UX local libraries not included

2012-04-12 Thread Adi Roiban
New submission from Adi Roiban : 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 building. The defa

[issue14568] HP-UX local libraries not included

2012-04-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 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 above is intended t

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

2012-04-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 : 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 enough that I don't fee

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

2012-04-12 Thread Nick
Nick 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 "C:\Users\user\test\test.py", line 13, in

[issue14569] pystate.c #ifdef ordering problem

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

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

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

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

2012-04-12 Thread STINNER Victor
STINNER Victor added the comment: a4fd3dc74299 only fixed socket.gethostname(), not socket.gethostbyaddr(). -- ___ Python tracker ___

[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 : -- nosy: +adiroiban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2012-04-12 Thread Adi Roiban
Changes by Adi Roiban : -- nosy: +adiroiban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9123] insecure os.urandom on VMS

2012-04-12 Thread Adi Roiban
Changes by Adi Roiban : -- nosy: +adiroiban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2012-04-12 Thread Adi Roiban
Adi Roiban 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 hpux, aix, sola

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

2012-04-12 Thread sbt
sbt 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 acted (or were

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

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

[issue14399] zipfile and creat/update comment

2012-04-12 Thread Roundup Robot
Roundup Robot 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 branch '3.2': #14399: zipfile now

[issue14399] zipfile and creat/update comment

2012-04-12 Thread R. David Murray
R. David Murray 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 string as long as it doesn

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

2012-04-12 Thread aliles
aliles 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 (Based on Apple Inc.

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Ezio Melotti
Ezio Melotti 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 strict mode (and the strict

[issue1559549] ImportError needs attributes for module and file name

2012-04-12 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brian.curtin -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue14428] Implementation of the PEP 418

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

[issue14428] Implementation of the PEP 418

2012-04-12 Thread STINNER Victor
STINNER Victor 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 time.proces_time() by default. pybench

[issue1559549] ImportError needs attributes for module and file name

2012-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6825fd9b00ed by Brett Cannon in branch 'default': Issue #1559549: Add 'name' and 'path' attributes to ImportError. http://hg.python.org/cpython/rev/6825fd9b00ed -- nosy: +python-dev ___ Python tracker <

[issue1559549] ImportError needs attributes for module and file name

2012-04-12 Thread Brett Cannon
Brett Cannon added the comment: Patch for the attributes is in (no use by import.c)! I'm going to do a separate commit for use by importlib and then fix pydoc in my bootstrap branch. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed

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

2012-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a6dc460ecb2 by Amaury Forgeot d'Arc in branch '2.7': Issue14559: Attempt to fix compilation with previous versions of the Microsoft Compiler. http://hg.python.org/cpython/rev/9a6dc460ecb2 New changeset 178acd78144b by Amaury Forgeot d'Arc in bran

  1   2   >