[issue14545] html module should not be available in Python 3.1

2012-04-11 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The doc for the html module was added in 5633af590057 (see #2830) and it was previously undocumented even if it was importable. Moving the versionadded under html.escape sounds good to me. As a side note, it would be better to do try:

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2012-04-11 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: A minor detail of efficiency: _url_collapse_path_split is used only one place, from is_cgi. _url_collapse_path_split splits the path, and is_cgi now puts it back together. This seems inefficient. Would it not be better for

[issue14545] html module should not be available in Python 3.1

2012-04-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: html is a package. The html.parser module, which was already in 3.0, cannot be importable without a html package, so in all 3.x versions there was at least an empty html/__init__.py. That said, I have no objection to Ezio's suggestion.

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

2012-04-11 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- nosy: +haypo status: open - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14532 ___ ___

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

2012-04-11 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- status: - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14532 ___ ___

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

2012-04-11 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: if response == digest: can be replaced by: if sum(x^y for x, y in itertools.zip_longest(response, digest, fillvalue=256)) == 0: I hope that zip_longest() does not depend too much on response and digest. --

[issue8799] Hang in lib/test/test_threading.py

2012-04-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: A few comments: 1) with cv: make_an_item_available() + cv.notify() 2) one of the benefits of wait_for() is that it automates the tricky timekeeping needed if one wants an somewhat accurate timeout, you may want to

[issue14545] html module should not be available in Python 3.1

2012-04-11 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Ezio, I appreciate the suggestion/tip. Thanks. Regarding Georg's clarification that 'html is a package,' I don't know if that was intended to correct my comment, Ezio's comment, the docs, or all of the above. In any case, that point

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2012-04-11 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: I note that there is no test for tail_part == '.'. I suggest adding a couple, such as the following which I added to my local copy for testing of the next item: '/a/b/.': ('/a/b', ''),

[issue14545] html module should not be available in Python 3.1

2012-04-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The comment that html was a package was not meant as a correction, but as an explanation why it already exists previous to its status as an official module in 3.2. No correction to packageis needed. --

[issue8799] Hang in lib/test/test_threading.py

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: A few comments: 1) with cv: make_an_item_available() + cv.notify() Did I forget this? Ow. 2) one of the benefits of wait_for() is that it automates the tricky timekeeping needed if one wants an somewhat accurate timeout,

[issue14387] Include\accu.h incompatible with Windows.h

2012-04-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f91ecbc8bafc by Kristján Valur Jónsson in branch '3.2': Issue #14387 : undefine 'small' so that it doesn't clash with Windows headers. http://hg.python.org/cpython/rev/f91ecbc8bafc --

[issue8799] Hang in lib/test/test_threading.py

2012-04-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: But, once again, the condition may not yet hold true is false. In our current implementation, yes. But it is intentionally left undefined in the specification of the condition variable protocol, for very good reasons. While I'm

[issue8799] Hang in lib/test/test_threading.py

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le mercredi 11 avril 2012 à 10:50 +, Kristján Valur Jónsson a écrit : But, once again, the condition may not yet hold true is false. In our current implementation, yes. But it is intentionally left undefined in the specification of the

[issue8536] Support new features of ZLIB 1.2.4

2012-04-11 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8536 ___ ___ Python-bugs-list

[issue1522400] irda socket support

2012-04-11 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1522400 ___ ___

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

2012-04-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: if response == digest: can be replaced by:    if sum(x^y for x, y in itertools.zip_longest(response, digest, fillvalue=256)) == 0: Yeah, sure, but is it useful at all? The digest changes at every connection attempt, so this should

[issue8799] Hang in lib/test/test_threading.py

2012-04-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: [...] Disagreed. Unit tests should definitely protect against the introduction of bugs (willingly or not). And unpredictable behaviour is usually considered a bug. If you think the condition variable specification should be

[issue8799] Hang in lib/test/test_threading.py

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le mercredi 11 avril 2012 à 11:32 +, Charles-François Natali a écrit : One can imagine, for example, that another implementation (or maybe CPython in a later version) exposes native condition variables on POSIX, instead of emulating them

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2012-04-11 Thread Yap Sok Ann
Yap Sok Ann sok...@gmail.com added the comment: On 64-bit Windows with Visual Studio 2008 Professional, I also need to apply vcvars4.diff to avoid getting the ValueError. Is this something to be expected? -- nosy: +sayap ___ Python tracker

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

2012-04-11 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: Rather than ensuring that f_tstate always points to the current frame, just remove it altogether. Patch attached -- nosy: +Mark.Shannon Added file: http://bugs.python.org/file25176/remove_f_tstate.patch

[issue14542] reverse() doesn't reverse sort correctly

2012-04-11 Thread Bill Jefferson
Bill Jefferson shagge...@yahoo.com added the comment: Eric. Thanks for answering, but I don't understand the difference between reversing a list and reversing it's current values. If I have a list containing elements: A, B, C, D and reverse the list's current values, I get: D, C, B, A,

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2012-04-11 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: According to PEP 384 (Defining a Stable ABI) the thread state object is opaque, so we should be free to add or remove fields. Nevertheless, I have added a new patch that simply moves the f_exc... fields from the frame object to the generator. It

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: According to PEP 384 (Defining a Stable ABI) the thread state object is opaque, so we should be free to add or remove fields. Mmh, be aware the stable ABI is only a restricted part of the official API. There are APIs which are not part of the

[issue14542] reverse() doesn't reverse sort correctly

2012-04-11 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Bill, list.reverse doesn't do any *sorting* at all; it merely *reverses* the list contents. x = [1, 3, 4, 2] x.reverse() x [2, 4, 3, 1] If you want to do a reverse sort, you can either first sort normally and then reverse the result,

[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I have a possible suggestion about how to resolve this issue: The SysLogHandler will not do BOM insertion unless the message is Unicode. If it is Unicode, it will add the attribute 'UTF8BOM' to the LogRecord, with the value u'\ufeff'. The

[issue14542] reverse() doesn't reverse sort correctly

2012-04-11 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Thanks, Mark. Indeed, my answer as written is meaningless. I meant it doesn't sort in reverse, it just reverses. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14542

[issue1522400] irda socket support

2012-04-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1522400 ___ ___ Python-bugs-list

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

2012-04-11 Thread Jon Oberheide
Jon Oberheide j...@oberheide.org added the comment: In fact, it'd probably be useful to have a time_independenct_comparison() helper function somewhere in general. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14532

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

2012-04-11 Thread Jon Oberheide
Jon Oberheide j...@oberheide.org added the comment: Ah yeah, I suppose it's not be exploitable in this case due to the challenge nonce. However, it might still be a good thing to fix for to set an example for other hmac module users (internal or external) that might not have the same

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

2012-04-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I don't see the point of obfuscating the code to avoid a vulnerability to which the code is not even vulnerable, just so that it can be used as example... There are *thousands* of ways to introduce security flaws, and the Python code

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

2012-04-11 Thread Jon Oberheide
Jon Oberheide j...@oberheide.org added the comment: You call it obfuscating, I call it security correctness and developer education. Tomayto, tomahto. ;-) Anywho, your call of course, feel free to close. -- ___ Python tracker rep...@bugs.python.org

[issue14546] lll.py can't handle multiple parameters correctly

2012-04-11 Thread Carton He
New submission from Carton He carto...@gmail.com: Space errors in calling of lll(arg) of main() cause it only applies to the last parameter instead of all parameters. Patch attached for Python 3.1 -- components: Demos and Tools files: lll.py.patch keywords: patch messages: 158036

[issue14546] lll.py can't handle multiple parameters correctly

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the patch. Do you have any interest in writing a test for this? Tests for tools go in Lib/test/test_tools.py. -- nosy: +r.david.murray stage: - test needed type: - behavior versions: +Python 3.2, Python 3.3 -Python

[issue14547] Python symlink to script behaves unexpectedly

2012-04-11 Thread Johannes Buchner
New submission from Johannes Buchner buchner.johan...@gmx.at: If I have a script foo/bar.py import baz and create a symlink to it, called barhere.py ln -s foo/bar.py barhere.py when I run it, it behaves unexpectedly, specifically it behaves differently than if I had copied it here. It

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

2012-04-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: You call it obfuscating, I call it security correctness and developer education. Tomayto, tomahto. ;-) Well, I'd be prompt to changing to a more robust digest check algorithm if the current one had a flaw, but AFAICT, it's not the

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

2012-04-11 Thread sbt
sbt shibt...@gmail.com added the comment: I think it would be reasonable to add a safe comparison function to hmac. Its documentation could explain briefly when it would be preferable to ==. -- ___ Python tracker rep...@bugs.python.org

[issue14542] reverse() doesn't reverse sort correctly

2012-04-11 Thread Bill Jefferson
Bill Jefferson shagge...@yahoo.com added the comment: Mark and Eric.. Wonderful! I got it now. I used x.sort(reverse=True) and x.sort(reverse=False) and it works just fine. Thanks for your help. Bill..   Regards from: William Jefferson Photography 514 Daniels St., #211 Raleigh, NC

[issue14341] sporadic (?) test_urllib2 failures

2012-04-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 751c7b81f6ee by Senthil Kumaran in branch 'default': use assertWarns instead of check_warnings - Issue14341 http://hg.python.org/cpython/rev/751c7b81f6ee -- nosy: +python-dev

[issue14341] sporadic (?) test_urllib2 failures

2012-04-11 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Hi Antoine, I saw that check_warnings was commonly used ( and perhaps I had used to earlier without any problems) and overlooked assertWarns. But I think, it is good to remove support.check_warnings dependency here and just use

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

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It would also be reasonable to add a comment to the code mentioning why this particular (security) comparison is *not* vulnerable to a timing attack, which would serve the education purpose if someone does look at the code. --

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

2012-04-11 Thread Jon Oberheide
Jon Oberheide j...@oberheide.org added the comment: One thing that could definitely be interesting is to look through the code base and example to see if a similar - but vulnerable - pattern is used, and fix such occurrences. Based on some quick greps, I didn't see many internal users of

[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-11 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: But why on earth would one want a BOM in UTF-8-encoded data? It is byte-order independent! -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14452

[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-11 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: It's used by some systems (Windows Notepad does this if you save as UTF8) to indicate that the byte stream *is* UTF8-encoded. It's not so much a BOM as a magic cookie. I can't speak for syslog, I'm afraid TJG -- nosy: +tim.golden

[issue14452] SysLogHandler sends invalid messages when using unicode

2012-04-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: But why on earth would one want a BOM in UTF-8-encoded data? It is byte-order independent! Lord only knows, but the RFC does call for it - msg157572 has an actual excerpt from RFC 5424. --

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

2012-04-11 Thread sbt
New submission from sbt shibt...@gmail.com: When running test_multiprocessing on Linux I occasionally see a stream of errors caused by ignored weakref callbacks: Exception AssertionError: AssertionError() in Finalize object, dead ignored These do not cause the unittests to fail. Finalizers

[issue14545] html module should not be available in Python 3.1

2012-04-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2776ccf003cc by Georg Brandl in branch '3.2': Closes #14545: make clearer what was added. http://hg.python.org/cpython/rev/2776ccf003cc New changeset f5f8a7fd881c by Georg Brandl in branch 'default': #14545: merge

[issue13903] New shared-keys dictionary implementation

2012-04-11 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: I don't really understand your objection to changing the method-cache size. As I said, I can remove the change, but that will cause the performance regression that Antoine noticed. -- ___ Python

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

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Disabling gc during fork seems to prevent the errors. Sounds reasonable to me. -- components: +Library (Lib) nosy: +neologix, pitrou type: - behavior versions: +Python 2.7, Python 3.2, Python 3.3

[issue14549] Recursive inclusion of packages

2012-04-11 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: For projects with more than a few packages, it is tedious to list all subpackages manually in setup.cfg. There was once a find_packages in distutils2.util (copied from distribute), but when we moved away from setup.py it was removed (I don’t

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

2012-04-11 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14548 ___ ___

[issue14549] Recursive inclusion of packages

2012-04-11 Thread Erik Bray
Erik Bray erik.m.b...@gmail.com added the comment: +1 for the wildcard syntax. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14549 ___ ___

[issue14549] Recursive inclusion of packages

2012-04-11 Thread Erik Bray
Erik Bray erik.m.b...@gmail.com added the comment: Potential downside: Say I have foo, foo.bar, and foo.tests. I want to install foo and foo.bar, but not foo.tests. Then I have to manually list all the packages I do want: packages = foo foo.bar That's fine, but one nice thing about

[issue14550] os.path.abspath() returns physical path, not logical path.

2012-04-11 Thread Craig Sawyer
New submission from Craig Sawyer csaw...@yumaed.org: we have os.path.abspath() and os.path.realpath(). the difference according to the documentation is realpath() returns the physical path (i.e. no symlinks in the path). while abspath() uses getcwd() but because of POSIX.1-2008 (IEEE Std

[issue14547] Python symlink to script behaves unexpectedly

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The content of a symbolic symlink is a symbolic reference to another location in the file system. If you had used a hard link it would certainly work as you expected. The behavior with respect to symbolic links ought to be documented

[issue14550] os.path.abspath() returns physical path, not logical path.

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: while abspath() uses getcwd() but because of POSIX.1-2008 (IEEE Std 1003.1-2008) says os.getcwd() returns without symbolic links as well, so os.path.abspath() == os.path.realpath() near as I can tell. Just because getcwd() doesn't contain any

[issue14549] Recursive inclusion of packages

2012-04-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: IMO the best behavior would be to always recurse and have an option to exclude specific submodules. When the Django devs want to package their code, they think about a Python package named django, docs and scripts, not about django,

[issue14550] os.path.abspath() returns physical path, not logical path.

2012-04-11 Thread Craig Sawyer
Craig Sawyer csaw...@yumaed.org added the comment: Antoine, I see your point about getcwd() not having symlinks, doesn't mean any path outside of getcwd() might have symlinks, and I agree this is true. I apologize. As for which one to choose, it should choose based on PWD (i.e. the current

[issue14550] os.path.abspath() should have an option to use PWD

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, reformulating the title a bit. -- components: +Library (Lib) -None title: os.path.abspath() returns physical path, not logical path. - os.path.abspath() should have an option to use PWD versions: -Python 2.6, Python 2.7, Python 3.1,

[issue8799] Hang in lib/test/test_threading.py

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, doc improved in 9d4109af8f3b. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8799 ___ ___

[issue14515] tempfile.TemporaryDirectory documented as returning object but returns name

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I misread the docs. They aren't wrong, but it is still the case that they don't mention that the directory name is what you get on entry to the context, which is what led to my confusion. Here's a patch. -- keywords: +patch

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

2012-04-11 Thread sbt
sbt shibt...@gmail.com added the comment: Patch to disable gc. -- keywords: +patch Added file: http://bugs.python.org/file25180/mp_disable_gc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14548

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-11 Thread sbt
sbt shibt...@gmail.com added the comment: The last patch did not work on Unix. Here is a new version where the reduction functions are automatically registered, so allow_connection_pickling() is redundant. -- Added file: http://bugs.python.org/file25181/mp_pickle_conn.patch

[issue14551] imp.load_source docs removed from python3 docs...is this correct?

2012-04-11 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: This was removed in 2cf7bb2bbfb8 along with a bunch of other functions. Yet in issue 13959 Brett mentions needing to implement it. I don't see any replacement for its functionality in importlib, so I would think it would be a

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2012-04-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c67efb8ffca4 by Senthil Kumaran in branch '2.7': Issue 10484 - Incorporate improvements to CGI module - Suggested by Glenn Linderman. Refactor code and tests http://hg.python.org/cpython/rev/c67efb8ffca4 New

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2012-04-11 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Hello Glenn, Your suggestions were valid. I have made those changes in the code. Thanks! I think, we can close this bug now and move over to others. Thanks, Senthil -- status: open - closed

[issue14508] gprof2html is broken

2012-04-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4d603d6782db by R David Murray in branch '3.2': #14508: make gprof2html script runnable under python3 http://hg.python.org/cpython/rev/4d603d6782db New changeset 73fba223c0a5 by R David Murray in branch 'default':

[issue14508] gprof2html is broken

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the patch. I don't think you ran the test though, since it didn't pass, and there was a mistake in your patch :) I had to change the test considerably, and only applied the test part on 3.3 since I used mock. --

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

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Shouldn't there be a try..finally, in case os.fork() fails? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14548 ___

[issue14551] imp.load_source docs removed from python3 docs...is this correct?

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, yes, I don't remember exactly why, but it seems they were deprecated (obsolete), so it sounds reasonable to un-document them. -- ___ Python tracker rep...@bugs.python.org

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

2012-04-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Closing, now that we've released finals. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1

[issue14551] imp.load_source docs removed from python3 docs...is this correct?

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, the text at the start of the section, that I didn't notice in the 2.7 docs, says they are obsolete and replaced by find_module and import_module. But load_source is much more convenient, so I for one am not going to remove my use

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

2012-04-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Given that this issue has affected a lot of security-sensitive third-party code (keyczar, openid providers, almost every python web service that implements secure cookies [1] or other HMAC-based REST API signatures), I do like

[issue8799] Hang in lib/test/test_threading.py

2012-04-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Ok, doc improved in 9d4109af8f3b. LGTM. Kristján, how about updating your patch to only fix the original problem you spotted (notify() called before wait()), then we can see the remaining parts? --

[issue14540] Crash in Modules/_ctypes/libffi/src/dlmalloc.c on ia64-hp-hpux11.31

2012-04-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I think it's bundled with our copy of libffi. i'm not familiar - at all - with libffi. But does it really need a bundled malloc() implementation? I'd be more than happy to use my own installation of libffi instead, but it seems

[issue14540] Crash in Modules/_ctypes/libffi/src/dlmalloc.c on ia64-hp-hpux11.31

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think it's bundled with our copy of libffi. i'm not familiar - at all - with libffi. But does it really need a bundled malloc() implementation? Well, the upstream libffi includes dlmalloc.c, so I guess it somehow needs it (perhaps only on

[issue14552] test module: remove repetition

2012-04-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- assignee: docs@python components: Documentation files: repetition.diff keywords: patch nosy: docs@python, tshepang priority: normal severity: normal status: open title: test module: remove repetition Added file:

[issue14553] http.server module: grammar fix

2012-04-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- assignee: docs@python components: Documentation files: grammar.diff keywords: patch nosy: docs@python, tshepang priority: normal severity: normal status: open title: http.server module: grammar fix versions: Python 3.2, Python 3.3

[issue11501] distutils.archive_util should handle absence of zlib module

2012-04-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Reopening for 2.7.4. -- assignee: tarek - eric.araujo resolution: fixed - stage: committed/rejected - commit review status: closed - open versions: +Python 2.7 ___ Python tracker

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

2012-04-11 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Hmm... I don't really like disabling GC, because it has a process-wide side effect, and hence isn't thread-safe: if another thread forks() or creates a subprocess right at the wrong time, it could end up with the GC disabled for good...

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

2012-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm... I don't really like disabling GC, because it has a process-wide side effect, and hence isn't thread-safe: if another thread forks() or creates a subprocess right at the wrong time, it could end up with the GC disabled for good...

[issue14554] test module: correction

2012-04-11 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: add missing '\n' -- assignee: docs@python components: Documentation messages: 158082 nosy: docs@python, tshepang priority: normal severity: normal status: open title: test module: correction versions: Python 2.7, Python 3.2,

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

2012-04-11 Thread Jon Oberheide
Jon Oberheide j...@oberheide.org added the comment: Will do! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14532 ___ ___ Python-bugs-list

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

2012-04-11 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: Python 3.3 supports the following clock identifiers: * CLOCK_REALTIME * CLOCK_MONOTONIC * CLOCK_MONOTONIC_RAW * CLOCK_HIGHRES * CLOCK_PROCESS_CPUTIME_ID * CLOCK_THREAD_CPUTIME_ID Linux has more clocks: * CLOCK_BOOTTIME *

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

2012-04-11 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Extract of FreeBSD manpage of clock_gettime: The clock_id argument can be one of the following values: CLOCK_REALTIME, CLOCK_REALTIME_PRECISE, CLOCK_REALTIME_FAST for time that increments as a wall clock should;

[issue14551] imp.load_source docs removed from python3 docs...is this correct?

2012-04-11 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Once importlib bootstrapping lands and I expose the rest of the API you can replace imp.load_source() w/ importlib.SourceFileLoader(name, path).load_module(name) and get the same result. -- ___

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

2012-04-11 Thread sbt
sbt shibt...@gmail.com 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 included changes to

[issue14554] test module: correction

2012-04-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I think a patch is missing :) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14554 ___

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

2012-04-11 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14555 ___ ___

[issue14553] http.server module: grammar fix

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks. -- nosy: +r.david.murray resolution: - fixed status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14553

[issue14553] http.server module: grammar fix

2012-04-11 Thread Roundup Robot
New submission from Roundup Robot devn...@psf.upfronthosting.co.za: New changeset ed5788424c34 by R David Murray in branch '3.2': #14553: fix word order. http://hg.python.org/cpython/rev/ed5788424c34 New changeset bd353f12c007 by R David Murray in branch 'default': Merge doc fixes #14553 and

[issue14552] test module: remove repetition

2012-04-11 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: 2.7 d60ef141e090 3.2 f25fb7e1d076 3.3 bd353f12c007 Thanks. -- nosy: +r.david.murray resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___ Python

[issue14540] Crash in Modules/_ctypes/libffi/src/dlmalloc.c on ia64-hp-hpux11.31

2012-04-11 Thread Paul A.
Paul A. p...@freeshell.org added the comment: Yes indeed, sorry for not answering that question the first time. The trace is complete, and is from python... although most of it is really in the shared lib rather than the executable. -- ___ Python

[issue14399] zipfile and creat/update comment

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Serhiy: this looks good. I get some test errors when I apply it on 2.7 though. Would you be interested in doing a 2.7 version as well? (Minor comment: the test method would be better as two test methods, and it would be nice to have a

[issue14399] zipfile and creat/update comment

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Serhiy: this looks good. I get some test errors when I apply it on 2.7 though. Would you be interested in doing a 2.7 version as well? (Minor comment: the test method would be better as two test methods, and it would be nice to have a

[issue14399] zipfile and creat/update comment

2012-04-11 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg158095 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14399 ___

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

2012-04-11 Thread Joel Lovinger
New submission from Joel Lovinger jlovin...@gmail.com: In Python 2.4.3 a Telnet.expect with timeout=0 would always make at least one call to Telnet.fill_rawq if a match couldn't be found and the connection was open. In Python 2.7.1/2.7.3 Telnet.expect with timeout=0 breaks before any call to

[issue14547] Python symlink to script behaves unexpectedly

2012-04-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Specifically, we end up calling os.realpath() (or the C level equivalent) when initialising __main__.__file__ and sys.path[0]. Agreed this behaviour should be documented (and tested!) explicitly. -- assignee: - docs@python

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

2012-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Can you point to the changes you think are at issue? That might help us track down why the change was made. This isn't necessarily a bug, but even if it isn't, the behavior should probably be explicitly documented. -- nosy:

[issue9175] ctypes doesn't build on hp-ux

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

  1   2   >