[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
New submission from James Morgan jmorg1...@gmail.com: Hi, For some reason I have recently lost the ability to open IDLE for python 2.6.2. I was able to open it for 2.5 without issue. I reinstalled 2.6.2 several times, removed 2.5, tried 2.6.5 instead, still cannot load IDLE. I can load the

[issue8723] IDLE won't start import os error

2010-05-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why do you think this is a bug in Python? It rather sounds like you misconfigured your system somehow. Without access to the system, it is difficult to guess what the misconfiguration might be, though. -- nosy: +loewis

[issue8720] undo findsource regression/change

2010-05-15 Thread holger krekel
holger krekel holger.kre...@gmail.com added the comment: Thanks for helping with this! Attached is a patch that adds a keyword check=True to getsourcefile so that findsource can defer existence-checking until after cache lookup. Eventually, findsource will still raise an IOError if it can't

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan jmorg1...@gmail.com added the comment: Thanks for the reply. I have used idle before on this system without issue, and since 2.5 worked I figured there was some difference between 2.5 and 2.6 which was causing the issue. I have found since that the issue is likely not with idle

[issue7640] buffered io seek() buggy

2010-05-15 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Hello I advocate the inclusion of this patch to the 2.6 maintenance branch, because currently the io module in this branch (which is still the most recent 2.X version released) is simply broken. People using it will certainly

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: New patch (factorial3.patch) addressing all of Alexander's points except the one about including Python source somewhere. I also expanded the lookup table to 20 entries on LP64 systems. -- Added file:

[issue8723] IDLE won't start import os error

2010-05-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I am new to this help system Please understand that this is not a help system at all. Instead, it is a bug tracker: a way for people to contribute to Python, by reporting bugs or contributing code. For help, please contact one of the Python

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I can't pinpoint the exact causes for each individual test failure. I assumed that they are caused by threading/signal issues, because the tests pass when Python is compiled --without-threads. But here's a list of possible culprits

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The FreeBSD-6.4-RELEASE-i386 buildbot has similar libpthread issues. This is just in: == FAIL: test_send_signal (test.test_subprocess.POSIXProcessTestCase)

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: And the same patch, but with a (deliberately simple) pure Python version of the algorithm in test_math.py. -- Added file: http://bugs.python.org/file17352/factorial4.patch ___ Python tracker

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan jmorg1...@gmail.com added the comment: Sorry, I guess I misunderstood the function as I saw some issues which appeared similar in style to my own. Never mind this then I will seek help elsewhere. Thankyou. -- ___ Python tracker

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
Changes by James Morgan jmorg1...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8723 ___ ___ Python-bugs-list

[issue8724] bind_and_activate parameter is missed from directive

2010-05-15 Thread INADA Naoki
New submission from INADA Naoki songofaca...@gmail.com: http://docs.python.org/dev/library/simplexmlrpcserver.html#SimpleXMLRPCServer.SimpleXMLRPCServer bind_and_activate parameter is described but not defined in directive. -- messages: 105803 nosy: naoki priority: normal severity:

[issue8724] bind_and_activate parameter is missed from directive

2010-05-15 Thread INADA Naoki
Changes by INADA Naoki songofaca...@gmail.com: -- assignee: - d...@python components: +Documentation nosy: +d...@python versions: +Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8724

[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: I introduced initfsencoding() in #8610 to ensure that Py_FileSystemEncoding is not more NULL. In the discussion, Marc Lemburg noticed that falling back the UTF-8 on nl_langinfo(CODESET) error is a bad idea: ASCII is better (I

[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited the last patch (fall back to UTF-8): r81190 (3.x), blocked in 3.1 (r81191). I opened a new issue for the UTF-8/ASCII fallback: #8725, because the ASCII fallback is a different issue. -- resolution: - fixed

[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- dependencies: +Create PyUnicode_EncodeFSDefault() function, Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX) nosy: +Arfrever, lemburg, loewis, pitrou ___

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Sat, May 15, 2010 at 6:32 AM, Mark Dickinson rep...@bugs.python.org wrote: New patch (factorial3.patch) addressing all of Alexander's points except the one about including Python source somewhere. Thanks for making

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It's a matter of taste, but I was taught that C allows trailing commas in initializers specifically for the cases like this to avoid using a leading comma. Unfortunately, I think C89 doesn't allow for this, and there are tracker issues

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah; Alexander's right: I was misremembering. An extra comma in an *enum* list isn't allowed (cf. issue 5889); an extra comma in an array initializer is. I'll rewrite that bit. -- ___ Python

[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: bootstrap failure on Windows: import did use default error handler, it uses surrogateescape error handler, but PyUnicode_EncodeString() doesn't have codec fast-path for MBCS+surrogateescape. I enabled shortcuts in

[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: PyUnicode_AsEncodedString() contains a special path for the file system encoding. I don't think that it is still needed, but I don't know how to check that. /* During bootstrap, we may need to find the encodings

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: There is one place in the notes still referring to factorial_part_product. -- nosy: +Alexander.Belopolsky ___ Python tracker rep...@bugs.python.org

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: The comment for bit_length is missing a space or two: Objects/longobject.c.Someday -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8692

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: There is one place in the notes still referring to factorial_part_product. Hmm. I can't find it. Can you be more specific? I'll fix the spaces before 'Someday'. -- ___ Python tracker

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Sorry for terseness. Sending it from my phone. The line was in factorial4.patch: + * The factorial_partial_product function computes the product of all odd j in Hmm. I can't find it. Can you be more specific?

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Okay, thanks. I'm still not seeing what's wrong with this, though (sorry for being slow :( ) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8692

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: s/partial_product/odd_part/ It looks like you made this change in some places but not all. On May 15, 2010, at 11:16 AM, Mark Dickinson rep...@bugs.python.org wrote: Mark Dickinson dicki...@gmail.com added the comment:

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: But factorial_partial_product and factorial_odd_part both exist: the former is just computing the product of all odd integers in the given interval, while the latter computes the odd part of factorial(n). I've double checked the comments

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Sorry I didn't realize that ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8692 ___

[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited as r81194 (py3k), blocked in 3.1 (r81195). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8715

[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: PyUnicode_AsEncodedString() contains a special path for the file system encoding. I don't think that it is still needed, but I don't know how to check that. = read msg105810 -- ___

[issue8708] OpenID blunder

2010-05-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Since Martin seemed to fix this, closing the issue. -- nosy: +brett.cannon resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8708

[issue7640] buffered io seek() buggy

2010-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r81203. Thank you, Pascal! -- resolution: - fixed stage: - committed/rejected status: open - closed versions: -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue8685] set(range(100000)).difference(set()) is slow

2010-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The current patch gives much smaller benefits than the originally posted benchmarks, although they are still substantial: $ ./python -m timeit -s a = set(range(10)); sd = a.difference; b = set(range(1000)) sd(b) - before: 5.56 msec per loop

[issue8726] test_capi failure

2010-05-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: [...] test_capi test test_capi failed -- Traceback (most recent call last): File /home/antoine/py3k/__svn__/Lib/test/test_capi.py, line 49, in test_no_FatalError_infinite_loop b'Fatal Python error:' AssertionError: b'' != b'Fatal Python

[issue8727] test_import failure

2010-05-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: [...] test_import Warning -- sys.path was modified by test_import test test_import failed -- Traceback (most recent call last): File /home/antoine/py3k/__svn__/Lib/test/test_import.py, line 167, in test_module_with_large_stack

[issue8726] test_capi failure

2010-05-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +jyasskin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8726 ___ ___ Python-bugs-list mailing

[issue8726] test_capi failure

2010-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It turns out that the test segfaults: $ ./python -E -bb -c import _testcapi; _testcapi.crash_no_current_thread() Erreur de segmentation (core dumped) And here is the backtrace: Program terminated with signal 11, Segmentation fault. #0

[issue8665] make pycremoval fails

2010-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm trying a fix in r81209. If the buildbots don't complain I'll close the issue. -- assignee: barry - pitrou stage: needs patch - committed/rejected status: open - pending ___ Python tracker

[issue8726] test_capi failure

2010-05-15 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: Ah, darn. Any thoughts on what do to? Shall I make the test conditional on a pydebug build, or just remove it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8726

[issue8727] test_import failure

2010-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This can be narrowed down to the following test sequence: $ ./python -E -m test.regrtest test_heapq test_import test_heapq test_import Warning -- sys.path was modified by test_import test test_import failed -- Traceback (most recent call last):

[issue8726] test_capi failure

2010-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Your test could call PyThreadState_Get() explicitly, before calling PyErr_SetString() (which should then never get executed). -- ___ Python tracker rep...@bugs.python.org

[issue8728] 2.7 regression in httplib.py: AttributeError: 'NoneType' object has no attribute 'makefile'

2010-05-15 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: On Linux, with Python 2.7 trunk (built on May 13th) [...] File /home/apy/as/pypm-trunk/eggs/httplib2-0.6.0-py2.7.egg/httplib2/__init__.py, line 1129, in request (response, content) = self._request(conn, authority, uri,

[issue6645] multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found

2010-05-15 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Looks like this has been fixed, at least on Python trunk (2.7). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6645 ___

[issue8729] The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping

2010-05-15 Thread Daniel Stutzbach
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping, to give the other type a chance at the comparison. Right now it simply returns false. The comparison methods on the other

[issue8727] test_import failure

2010-05-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: THe sys.path modification warning is a red herring; the test simply was not cleaning up after itself properly. That little bit is fixed in r81214. Don't know about the cause of the actual failure yet. --

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-05-15 Thread Nir Aides
Changes by Nir Aides n...@winpdb.org: Removed file: http://bugs.python.org/file17330/bfs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-05-15 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: Updated bfs.patch to patch cleanly updated py3k branch. Use: $ patch -p1 bfs.patch -- Added file: http://bugs.python.org/file17356/bfs.patch ___ Python tracker rep...@bugs.python.org

[issue8727] test_import failure

2010-05-15 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I found the cause of the failure. When Barry implemented PEP 3147, he made PyPycLoader.bytecode_path() operate as if the only possible bytecode file one would want is the __cached__ one. That obviously is not accurate in the face of source-less

[issue8727] test_import failure

2010-05-15 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: normal - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8727 ___ ___

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The gentoo-3.x buildbot also shows the threading problems again: test test_subprocess failed -- Traceback (most recent call last): File /home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/test_subprocess.py, line 770, in

[issue858809] Use directories from configure rather than hardcoded

2010-05-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: tarek - skrah nosy: +merwok, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue858809 ___

[issue858809] Use directories from configure rather than hardcoded

2010-05-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (Fixing Roundup form bug) -- assignee: skrah - tarek nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue858809 ___

[issue858809] Use directories from configure rather than hardcoded

2010-05-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue858809 ___ ___ Python-bugs-list mailing list

[issue3686] PKG-INFO file should differentiate between authors and maintainers

2010-05-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3686 ___ ___ Python-bugs-list mailing

[issue4007] make clean fails to delete .a and .so.X.Y files

2010-05-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Note: Using find -delete avoids the extra process spawning for rm. However, if the -f option is really necessary, we’ll have to use rm. Someone has an idea about the imperfect regex/glob pattern? -- nosy: +merwok

[issue4508] distutils compiler not handling spaces in path to output/src files

2010-05-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: tarek - sjoerd components: +Distutils2 -Distutils nosy: +merwok, sjoerd versions: +Python 2.5, Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4508

[issue4508] distutils compiler not handling spaces in path to output/src files

2010-05-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (Fixing damn HTML form changing select values, really sorry) -- assignee: sjoerd - tarek nosy: -sjoerd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4508

[issue4508] distutils compiler not handling spaces in path to output/src files

2010-05-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4508 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4007] make clean fails to delete .a and .so.X.Y files

2010-05-15 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Note: Using find -delete avoids the extra process spawning for rm. The -delete expression isn't universally available. For example, it is not present on Solaris. Better just to stick with the reliable rm. Skip --

[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Version 2: - #8715 has been commited: patch PyUnicode_EncodeFSDefault() - fix the documentation according the changes -- Added file: http://bugs.python.org/file17357/fsencoding_ascii-2.patch

[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file17353/fsencoding_ascii.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8725 ___

[issue8513] subprocess: support bytes program name (POSIX)

2010-05-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: New patch fixing this issue: - os.get_exec_path() type now depends on the OS: str on Windows, bytes on Unix - os.get_exec_path(None) uses os.environ on Windows, os.environb on Unix - os.get_exec_path(env) uses 'PATH' or b'PATH'

[issue8640] subprocess: canonicalize env to bytes on Unix (Python3)

2010-05-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: pitou Why wouldn't you give byte variables in env too? Ok, attached patch canonicalize env keys and values to bytes. If a variable is defined twice (str name, bytes name), a ValueError is raised. The patch depends on #8513: it

[issue8640] subprocess: canonicalize env to bytes on Unix (Python3)

2010-05-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Python 3.1 accepts duplicate variables (str name, bytes name). It creates the two variables is a random order: subprocess.call(['env'], env={'xx': 'str', b'xx': 'bytes'}) xx=str xx=bytes 0 subprocess.call(['env'], env={'xxx':

[issue8729] The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping

2010-05-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: A test would be good. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8729 ___

[issue8728] 2.7 regression in httplib.py: AttributeError: 'NoneType' object has no attribute 'makefile'

2010-05-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Can you provide a small code example that will reproduce the problem? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8728

[issue8550] Expose SSL contexts

2010-05-15 Thread Heikki Toivonen
Heikki Toivonen hjtoi-bugzi...@comcast.net added the comment: Since SSLv2 is insecure, could you at least add a warning for that protocol? I think there was a separate issue for removing it altogether, but could a warning be added here? The documentation should mention that

[issue8729] The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping

2010-05-15 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Will do, sometime this week. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8729 ___