[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Charles-François Natali
Charles-François Natali added the comment: Alright, closing for good then. Andrew, if you want to get this fixed, you should report this to the autofs folks, because it's definitely not a Python bug. -- stage: -> committed/rejected status: open -> closed _

[issue14818] C implementation of ElementTree: Some functions should support keyword arguments

2012-05-17 Thread Markus
Markus added the comment: Applied the patch, but could not verify 'it works for me' as Element lacks the attrib keyword. -- ___ Python tracker ___ _

[issue14838] IDLE Will not load on reinstall

2012-05-17 Thread Cain
Cain added the comment: Running Windows 7. I get the following output when running the requested command: File "", line 1 python.exe Lib\idlelib\idle.py SyntaxError: invalid syntax -- ___ Python tracker ___

[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2012-05-17 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue13175] packaging uses wrong line endings in RECORD files on Windows

2012-05-17 Thread Éric Araujo
Éric Araujo added the comment: I should be able to run a VM to test and commit this soon. Keep faith! -- ___ Python tracker ___ ___

[issue14776] Add SystemTap static markers

2012-05-17 Thread Éric Araujo
Éric Araujo added the comment: > We currently have several locations for documentation: Don’t forget the wiki . It is much less curated than the other docs. > Though I don't want to block this feature on writing up a full guide to > debugging I started work on a debugging howto: #12913. Mayb

[issue14845] list() != []

2012-05-17 Thread Peter Norvig
Peter Norvig added the comment: I agree with R. David Murray -- if "correct" means following the PEP 289 semantics, then list(next(F) for _ in range(10)) should be the same as def __gen(exp): for _ in exp: yield next(F) list(__gen(iter(range(10 and indeed that is the case.

[issue14847] AttributeError: NoneType has no attribute 'utf_8_decode'

2012-05-17 Thread Jason R. Coombs
New submission from Jason R. Coombs : I have run into an issue where an attempt to call .decode('utf-8') on a Python string results in the error with the following traceback: File ... ''.decode('utf-8') File "env/lib/python2.6/encodings/utf_8.py", line 16, in decode return codecs.utf_8_

[issue11880] add a {dist-info} category to distutils2

2012-05-17 Thread Daniel Holth
Daniel Holth added the comment: branch updated with regression test (add an entry_points.txt to test_command_install_data.py) and get_distinfo_file() can get any file inside the .dist-info directory. -- ___ Python tracker

[issue14845] list() != []

2012-05-17 Thread R. David Murray
R. David Murray added the comment: I think the behavior is correct. next(x) is outside the for expression in the list comprehension, but 'list(x)' is an implicit 'for x in exp'. So I believe it is the doc that needs amplification. The PEP discussion is referring specifically to the leaking

[issue14838] IDLE Will not load on reinstall

2012-05-17 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue14846] Change in error when sys.path contains a nonexistent folder (importlib)

2012-05-17 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6721] Locks in python standard library should be sanitized on fork

2012-05-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: going forward with reinit_locks.diff makes sense. I've added comments to it in the code review link. It is "Patch Set 3" -- ___ Python tracker _

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree that the proposed solutions are hacks, and still propose to close this as "won't fix". I think this is a bug in Linux. mkdir("/net/prodigy/tmp") ought to trigger the mount, then fail with EEXIST. -- nosy: +loewis ___

[issue14846] Change in error when sys.path contains a nonexistent folder (importlib)

2012-05-17 Thread Eric Snow
Eric Snow added the comment: The caching mechanism is going to check for changes in the directory. So the recommendation is to clear the cache manually: The default finders used by import now utilize a cache of what is contained within a specific directory. If you create a Python source

[issue14846] Change in error when sys.path contains a nonexistent folder (importlib)

2012-05-17 Thread Eric Snow
Eric Snow added the comment: ...rather, the error caused by your example. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14846] Change in error when sys.path contains a nonexistent folder (importlib)

2012-05-17 Thread Thomas Kluyver
New submission from Thomas Kluyver : I've come across a difference from 3.2 to 3.3 while running the IPython test suite. It occurs when a directory on sys.path has been used for an import, then deleted without being removed from sys.path. Previous versions of Python ignore the nonexistent fold

[issue14842] Link to time.time() in the docs of time.localtime() is wrong

2012-05-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-l

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Hynek Schlawack
Hynek Schlawack added the comment: I sense a very easy fix: just do a stat() on the final path before we do anything (and quickly return if present). Moving current makedirs into a private _makedirs that gets called if the stat fails. I'm still feeling uneasy about that though. It _is_ a klud

[issue14845] list() != []

2012-05-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Interpreter Core -None nosy: +ezio.melotti stage: -> needs patch versions: +Python 3.3 ___ Python tracker ___ _

[issue14845] list() != []

2012-05-17 Thread Peter Norvig
New submission from Peter Norvig : PEP 289 says "the semantic definition of a list comprehension in Python 3.0 will be equivalent to list(). Here is a counterexample where they differ (tested in 3.2): def five(x): "Generator yields the object x five times." for _ in range(5):

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Zachary, you are brave/foolhardy to take this on;) I agree that the XXX comment should be removed. One possible resolution is to do just that, replacing it with nothing. I would note that the fuss over tuples versus lists comes from a time before iterators b

[issue2675] Curses terminal resize problems when Python is in interactive mode

2012-05-17 Thread poq
poq added the comment: Issue 3948 is almost certainly a duplicate. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue2675] Curses terminal resize problems when Python is in interactive mode

2012-05-17 Thread poq
poq added the comment: Just to confirm: curses SIGWINCH handling is still (2.7/3.2) broken after importing readline. Readline seems to set the LINES/COLUMNS environment vars, and this confuses curses, even if curses is imported after readline. Clearing the LINES/COLUMNS vars after import rea

[issue6721] Locks in python standard library should be sanitized on fork

2012-05-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should we go forward on this? -- assignee: gregory.p.smith -> stage: test needed -> patch review type: behavior -> enhancement versions: -Python 2.7, Python 3.2 ___ Python tracker

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Charles-François Natali
Charles-François Natali added the comment: Yes, creating the directories in a bottom-up way (i.e. '/net', '/net/prodigy', '/net/prodigy/foo') could maybe avoid this problem. But this is definietely an autofs bug, and there are probably many other places where such code might break. --

[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state

2012-05-17 Thread Eric V. Smith
Eric V. Smith added the comment: I understand about sys.modules. Maybe I'll create another context manager (say, sys_modules_state) that does the same for sys.modules. I can always stack them together. When loading pure-Python namespace packages, I want to make sure they get removed before t

[issue14844] netrc does not handle accentuated characters

2012-05-17 Thread Raphaël Droz
New submission from Raphaël Droz : Accentuated characters are not accepted in password. While it (unicode) was quickly talked about in issue557704 it appears that issue1170 aimed to solve this by making shlex unicode-compatible but it does not seem to be the case (at least with python 3.2 in th

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2012-05-17 Thread Jeff McNeil
Jeff McNeil added the comment: Yeah, that's a good point too. I still personally favor the transport encapsulation and related unit testing, but I think that's a call for someone with a snake icon next to their tracker name. Your English is just fine. =) -- _

[issue14843] support define_macros / undef_macros in setup.cfg

2012-05-17 Thread Daniel Holth
New submission from Daniel Holth : from build_ext.py: # XXX not honouring 'define_macros' or 'undef_macros' -- the # CCompiler API needs to change to accommodate this, and I # want to do one thing at a time! -- ___ Python trac

[issue14843] support define_macros / undef_macros in setup.cfg

2012-05-17 Thread Daniel Holth
Changes by Daniel Holth : -- assignee: eric.araujo components: Distutils2 nosy: alexis, dholth, eric.araujo, tarek priority: normal severity: normal status: open title: support define_macros / undef_macros in setup.cfg type: enhancement versions: Python 3.3 _

[issue14776] Add SystemTap static markers

2012-05-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think it could go into "python setup and usage" (http://docs.python.org/dev/using/index.html), but that seems target at first-time users; or perhaps a HOWTO (http://docs.python.org/dev/howto/index.html), but it might make it less visible. Or a "debug and i

[issue14776] Add SystemTap static markers

2012-05-17 Thread Dave Malcolm
Dave Malcolm added the comment: Thanks. I too am wondering where the documentation should go. We currently have several locations for documentation: (1) the man page (2) the "Doc" subdirectory aka docs.python.org (3) various text files in the source tree, such as Misc/SpecialBuilds.txt

[issue1635217] Warn against using requires/provides/obsoletes in setup.py

2012-05-17 Thread Éric Araujo
Éric Araujo added the comment: Right now the standard (i.e. official) way is Requires, which is unusable; the de facto standard (but not blessed by any PEP) is setuptools’ install_requires. The new standard is documented in d2 docs and there will be examples (http://bugs.python.org/issue1635

[issue14842] Link to time.time() in the docs of time.localtime() is wrong

2012-05-17 Thread Petri Lehtinen
New submission from Petri Lehtinen : The link currently points to the time module. It should point to the time.time() function. -- assignee: docs@python components: Documentation keywords: easy messages: 161010 nosy: docs@python, petri.lehtinen priority: normal severity: normal status:

[issue1635217] Warn against using requires/provides/obsoletes in setup.py

2012-05-17 Thread anatoly techtonik
anatoly techtonik added the comment: I am trying to get what's the proposed standard for users right now? How are you going to define dependencies in distutils2? -- ___ Python tracker __

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Andrew McNabb
Andrew McNabb added the comment: By the way, if my hunch about the difference in stat of '/net/prodigy' vs. '/net/prodigy/tmp' is correct, then this would explain why makedirs on deeper directories work. Specifically, one of the shallower stat calls would force the mount to complete before pr

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Andrew McNabb
Andrew McNabb added the comment: Hmm. Maybe there's a difference between doing stat('/net/prodigy') vs. stat('/net/prodigy/tmp'). Just a guess, but maybe the former can succeed before the mount completes, but the latter has to wait for the mount to complete. -- __

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Hynek Schlawack
Hynek Schlawack added the comment: My suspicion re the race condition is that a chdir waits for autofs to mount but mkdir doesn't. You could check that yourself if a chdir/sleep would help. -- ___ Python tracker

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I don't remember all the details right now, but it that test was passing with > my patch there must be something wrong somewhere (either in the patch, in the > test, or in our understanding of the standard). No, test correctly expects two U+FFFD. Current

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: > I probably poorly said. Past and current implementations raise > 'unexpected end of data' and not 'invalid continuation byte'. Test > expects 'invalid continuation byte'. I don't think it matters much either way. -- ___

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Hynek Schlawack
Hynek Schlawack added the comment: If I read it correctly, we _do_ a stat: stat("/net/prodigy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 mkdir("/net/prodigy/tmp", 0777) = -1 EACCES (Permission denied) ISTM that this is a different problem altogether, or am I missing something? I

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: > \xe0\x80 is not maximal subpart. Therefore, there must be two U+FFFD. OK, now I get what you mean. The valid range for continuation bytes that can follow E0 is A0-BF, not 80-BF as usual, so \x80 is not a valid continuation byte here. While working on the pa

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Changing from 'unexpected end of data' to 'invalid continuation byte' for > b'\xe0\x00' is fine with me, but this will be a (minor) deviation from 2.7, > 3.1, 3.2, and pypy (it could still be changed on all these except 3.1 though). I probably poorly said

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > This might be just because it first checks if there two more bytes before > checking if they are valid, but 'invalid continuation byte' works too. Yes, this implementation detail. It is much easier and faster. Whether it is necessary to change it? > Why n

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: Link to the discussion: https://groups.google.com/d/msg/python-ideas/P3lEYU9u0DU/H0gcuAAJvEgJ The actual discussion about tuples starts on https://groups.google.com/d/msg/python-ideas/P3lEYU9u0DU/JW2Lq3KYA4QJ and continues with the following posts. --

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I think that one U+FFFD is correct. The on;y error is a premature end of > data. I poorly expressed. I also think that there is only one decoding error, and not two. I think the test is wrong. -- ___ Python tra

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Andrew McNabb
Andrew McNabb added the comment: This isn't fixed. All of the examples I've given were with a 3.3.0 kernel. Doing a stat would be a fix. -- status: closed -> open ___ Python tracker __

[issue13849] Add tests for NUL checking in certain strs

2012-05-17 Thread Hynek Schlawack
Hynek Schlawack added the comment: > It appears that os.stat did not check for embedded nulls but just passed the > string to Windows. JFTR, we have fixed it for open() because it's a potential security problem. I have implemented a helper function for checking for NUL chars: _PyUnicode_HasN

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Hynek Schlawack
Hynek Schlawack added the comment: I agree, closing. Thank you for your valuable assistance Andrew! -- resolution: -> wont fix stage: needs patch -> status: open -> closed ___ Python tracker ___

[issue13031] small speed-up for tarfile.py when unzipping tarballs

2012-05-17 Thread Ross Lagerwall
Ross Lagerwall added the comment: Nice work, thanks! -- assignee: lars.gustaebel -> rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: Changing from 'unexpected end of data' to 'invalid continuation byte' for b'\xe0\x00' is fine with me, but this will be a (minor) deviation from 2.7, 3.1, 3.2, and pypy (it could still be changed on all these except 3.1 though). If you make any changes on the t

[issue13031] small speed-up for tarfile.py when unzipping tarballs

2012-05-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset c62fa6892424 by Ross Lagerwall in branch 'default': Issue #13031: Small speed-up for tarfile when unzipping tarfiles. http://hg.python.org/cpython/rev/c62fa6892424 -- nosy: +python-dev ___ Python tracker

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: > Tests fails, but I'm not sure that the tests are correct. > b'\xe0\x00' raises 'unexpected end of data' and not 'invalid > continuation byte'. This is terminological issue. This might be just because it first checks if there two more bytes before checking if

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Saul Spatz
Saul Spatz added the comment: >b'\xe0\x80'.decode('utf-8', 'replace') returns >one U+FFFD and not two. I >don't think that is right. I think that one U+FFFD is correct. The on;y error is a premature end of data. On Thu, May 17, 2012 at 12:31 PM, Serhiy Storchaka wrote: > > Serhiy Storchaka a

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The only issue left was about the number of U+FFFD generated with invalid > sequences in some cases. > My last patch has extensive tests for this, so you could try to apply it (or > copy the tests) and see if they all pass. Tests fails, but I'm not sure t

[issue14841] os.get_terminal_size() should check stdin as a fallback

2012-05-17 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : $ stty size | cat 46 157 $ python3.3 -c 'import os; print(os.get_terminal_size())' | cat Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument Redirection to `less` are often used. A proposed pat

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Zachary Ware
Zachary Ware added the comment: Perhaps an added line at the end, something like 'Of course, should you need an immutable list, tuples are quite handy for that, too.'? -- ___ Python tracker __

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread R. David Murray
R. David Murray added the comment: I don't think that the suggested text contradicts that. (Especially the wording "tends to".) So I think this might be a reasonable addition, but I can see that "some people" might get upset :) -- nosy: +r.david.murray _

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: I personally like your suggested text, but there have been some discussion on the topic (on python-ideas iirc) and some people think that it's ok to use tuples like immutable lists, rather than just structures with heterogeneous elements similar to C's structs.

[issue9260] A finer grained import lock

2012-05-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9260] A finer grained import lock

2012-05-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: patch review -> committed/rejected status: pending -> open ___ Python tracker ___ ___ Python-bugs

[issue9260] A finer grained import lock

2012-05-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have now pushed the patch. -- resolution: -> fixed status: open -> pending ___ Python tracker ___ ___

[issue9260] A finer grained import lock

2012-05-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9548] locale can be imported at startup but relies on too many library modules

2012-05-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue9260] A finer grained import lock

2012-05-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset edb9ce3a6c2e by Antoine Pitrou in branch 'default': Issue #9260: A finer-grained import lock. http://hg.python.org/cpython/rev/edb9ce3a6c2e -- nosy: +python-dev ___ Python tracker

[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-17 Thread Zachary Ware
New submission from Zachary Ware : I was looking through the documentation source files for things I might be able to fix, and stumbled across "XXX Add a bit on the difference between tuples and lists." in Doc\tutorial\datastructures.rst. So I took a stab at adding some prose to address that c

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: The original bug should be fixed already in 3.3 and there should be tests (unless they got removed/skipped after we changed unicode implementation). The only issue left was about the number of U+FFFD generated with invalid sequences in some cases. My last patch

[issue13849] Add tests for NUL checking in certain strs

2012-05-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10530] distutils2 should allow the installing of python files with invalid syntax

2012-05-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2012-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks like issue14738 fixes this bug for Python 3.3. >>> print(ascii(b"\xc2\x41\x42".decode('utf8', 'replace'))) '\ufffdAB' >>> print(ascii(b"\xf1ABCD".decode('utf8', 'replace'))) '\ufffdABCD' -- nosy: +storchaka

[issue14702] os.makedirs breaks under autofs directories

2012-05-17 Thread Charles-François Natali
Charles-François Natali added the comment: > I guess this is the magic in mkdir -p: > > mkdir("expert", 0755)                   = -1 EACCES (Permission denied) > chdir("expert")                         = 0 > mkdir("tmp", 0755)                      = -1 EEXIST (File exists) > > I'm not sure how I

[issue14818] C implementation of ElementTree: Some functions should support keyword arguments

2012-05-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- title: C implementation of ElementTree causes regressions -> C implementation of ElementTree: Some functions should support keyword arguments ___ Python tracker

[issue14839] xml.sax.make_parser() returns "No parsers found"

2012-05-17 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Your Python is missing pyexpat.so module, which is built only when expat library has been found. Check build log of Python to see why pyexpat.so is not available. (Maybe expat headers are not installed.) -- nosy: +Arfrever resolut

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-05-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state

2012-05-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14838] IDLE Will not load on reinstall

2012-05-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please run, from the command line, in the Python installation python.exe Lib\idlelib\idle.py and report any output you get. -- nosy: +loewis ___ Python tracker __

[issue14817] pkgutil.extend_path has no tests

2012-05-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14818] C implementation of ElementTree causes regressions

2012-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch adds support for keyword args to find, findtext, findall, and iterfind. iter and itertext don't seem to accept a namespace argument. The patch includes minimal tests. The name I used for the kwargs are the same of the Python version. The

[issue1635217] Warn against using requires/provides/obsoletes in setup.py

2012-05-17 Thread Éric Araujo
Éric Araujo added the comment: Again, the stdlib docs do not document third-party projects. Use the pip doc if you use pip. -- ___ Python tracker ___ ___

[issue14657] Avoid two importlib copies

2012-05-17 Thread Brett Cannon
Brett Cannon added the comment: Realized that any decorator or context manager that is created for swapping _frozen_importlib/importlib._bootstrap should also verify no module is left in sys.modules with a bad loader and that sys.path_importer_cache doesn't have a bad finder (I would say that

[issue14823] Simplify threading.Lock.acquire() description

2012-05-17 Thread Éric Araujo
Éric Araujo added the comment: I suspect the patch was made against the source files served by Sphinx with a txt extension. -- nosy: +eric.araujo ___ Python tracker ___ ___

[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state

2012-05-17 Thread Brett Cannon
Brett Cannon added the comment: sys.modules is tricky thanks to built-in modules not liking to be re-imported (and why import_state in importlib.test didn't reset it). If only one test fails because of my assumption, then I guess blanking them out really isn't as important as I thought. And i

[issue3931] codecs.charmap_build is untested and undocumented

2012-05-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue3931] codecs.charmap_build is untested and undocumented

2012-05-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1757118] utilize 2.5 try/except/finally in contextlib

2012-05-17 Thread Fyrn Jilot
Changes by Fyrn Jilot : Added file: http://bugs.python.org/file25625/1.html ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue14652] Better error messages for wsgiref validator failures

2012-05-17 Thread Sidney San Martín
Sidney San Martín added the comment: Thanks Jeff, I’m actually a relatively new Python developer and got the impression that it was best practice to always use a tuple for string formatting, for consistency. Here’s an updated patch which drops the tuples for those cases. -- Added fil

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2012-05-17 Thread Andrej A Antonov
Andrej A Antonov added the comment: Jeff McNeil (mcjeff)> I would think it might make more sense just to make the change to the Transport object. Since there's an argument for a transport on ServerProxy already, that seems more straightforward and keeps the network layer isolated. in theoret

[issue14823] Simplify threading.Lock.acquire() description

2012-05-17 Thread R. David Murray
R. David Murray added the comment: Instead I decided to go ahead and document the argument as True/False. That something else is accepted is a CPython implementation detail that shouldn't be depended on. By the way, I couldn't actually use your patch file, since it wasn't against the thread

[issue14823] Simplify threading.Lock.acquire() description

2012-05-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ab4128a by R David Murray in branch '3.2': #14823: Simplify threading.Lock.acquire argument discussion. http://hg.python.org/cpython/rev/6ab4128a New changeset b5e95bb79ba3 by R David Murray in branch 'default': #14823: Simplify threading.

[issue11880] add a {dist-info} category to distutils2

2012-05-17 Thread Daniel Holth
Changes by Daniel Holth : -- keywords: +patch Added file: http://bugs.python.org/file25623/50a0da981b7e.diff ___ Python tracker ___ __

[issue11880] add a {dist-info} category to distutils2

2012-05-17 Thread Daniel Holth
Daniel Holth added the comment: Fixed closure mistake in remote tip -- hgrepos: +126 ___ Python tracker ___ ___ Python-bugs-list mail

[issue12932] dircmp does not allow non-shallow comparisons

2012-05-17 Thread Lennart Regebro
Lennart Regebro added the comment: filecmp is still there in Python 3.3 Alpha 3. I can't find any reference to it being deprecated. -- nosy: +lregebro ___ Python tracker ___ __

[issue13210] Support Visual Studio 2010

2012-05-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: This is fun. the reason why linking is failing for some projects in x64 mode is: the SolutionDir (or maybe current dir) is implicitly part of the library search path. Therefore, when looking for python33_d.lib, it will find the one in PCbuild, and loo

[issue14838] IDLE Will not load on reinstall

2012-05-17 Thread Anthony Kong
Anthony Kong added the comment: Which os? windows or linux or osx? It actually sounds like a support question. You probably should take the question to the python newsgroup (https://groups.google.com/forum/?fromgroups#!forum/comp.lang.python). -- nosy: +Anthony.Kong ___

[issue13210] Support Visual Studio 2010

2012-05-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: > That sounds reasonable. So, can't we come up with a diff that does > both? The base revision sounds like a completely necessary piece of > info. I believe there is a bug report against Mercurial to include the base revision even in git-style diffs, not

[issue13210] Support Visual Studio 2010

2012-05-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I wish MS could come up with a property editor that could show you _only_ the properties that are non-default: 1) view all properties 2) view set and inherited non-defaults 3) view properties set here only. It would make debugging settings _so_ much ea

[issue13210] Support Visual Studio 2010

2012-05-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: That sounds reasonable. So, can't we come up with a diff that does both? The base revision sounds like a completely necessary piece of info. -- ___ Python tracker _

[issue13210] Support Visual Studio 2010

2012-05-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Is this wrong? (I'm still a relative Hg newbie) It's an ongoing discussion. Some people favor git diffs because it supports renaming and binaries, I prefer Mercurial diffs, because it includes the base revision number against the patch was made. --

[issue13210] Support Visual Studio 2010

2012-05-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Hi, I'll see what went wrong, I admit not trying 64 bit before creating the patch. Martin, I´m using MercurialHQ and exporting a patch. It is set up to use GIT format diffs, which I think is recommended in the Python developer FAQ. Is this wrong? (

  1   2   >