[issue9272] CGIHTTPServer poisons os.environ

2010-07-20 Thread anatoly techtonik
anatoly techtonik added the comment: The test is hard to write. The server is launched in a separate thread. Any ideas how to check os.environ there? -- ___ Python tracker ___ _

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception.

2010-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: On windows, I can only import nt, not posix, ce, os2. >>> import posix Traceback (most recent call last): File "", line 1, in import posix ImportError: No module named posix >>> import nt >>> dir(nt) ['F_OK', 'O_APPEND', 'O_BINARY', 'O_CREAT', 'O_EXCL', '

[issue5817] Right-click behavior from Windows Explorer

2010-07-20 Thread Michael Kopinsky
Changes by Michael Kopinsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5817] Right-click behavior from Windows Explorer

2010-07-20 Thread Tal Einat
Tal Einat added the comment: That makes sense. I think this issue can be closed. For future reference, the original feature request has a benefit beyond not having a shell window open for every editor window. Opening different files in the same instance of IDLE allows running them in the same

[issue9319] segfault when searching modules with help()

2010-07-20 Thread Ron Adam
New submission from Ron Adam : help('modules spam') causes segfault. When pydoc tries goes though the files it does the following in the ModuleScanner class. (minimal example) >>> for importer, modname, ispkg in pkgutil.walk_packages(): ... if modname == 'test.badsyntax_pep3120': ...

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Ray.Allen
Ray.Allen added the comment: Alexander: > When a is mutable, a += b updates it in-place, so there is no ambiguity: the > type of a cannot change. When you do a + b, there is no reason to treat a as > more deserving than b when selecting the type of the result Does this means "a += b" is not

[issue9318] Py3k compilation on old MSVC

2010-07-20 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Hello. Attached patch is needed to compile on MSVC6. I'm appriciated if this patch is accepted. -- components: Build files: py3k_compile_on_old_compiler.patch keywords: patch messages: 111007 nosy: ocean-city priority: normal severity: normal stage

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a proof-of-concept patch, issue9317.diff, which fixes the file name problem at the expense of more spurious modules: $ ./python.exe -m trace -c -s traceme.py lines cov% module (path) 7 100% codecs (Lib/codecs.py) 10 1

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception.

2010-07-20 Thread Ray.Allen
Ray.Allen added the comment: I update my patch with improved doc string of posix_mkdir. By the way, after I search in the source, I could not find the "nt", "os2", "ce" modules, I guess these modules only exist in python source at one time, maybe very earlier releases, but not now. -

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Jul 21, 2010 at 12:13 AM, Eli Bendersky wrote: .. > I'm investigating further, but this may very well be caused by different > behavior > of `f_code.co_filename` between Python 2 and 3. I am afraid I am a step ahead of you. The culprit is

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Eli Bendersky
Eli Bendersky added the comment: trace.py uses settrace to do its heavy lifting. In the "local trace" function for counting, localtrace_count: def localtrace_count(self, frame, why, arg): if why == "line": filename = frame.f_code.co_filename lineno = frame.f

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Comparison of count files produced by 2.7 and 3.x suggests that the problem is in finding the source file for the module: >>> pickle.load(open('x', 'rb')) ({('', 2): 2, ('', 1): 4, ('', 8): 20, .. >>> pickle.load(open('y', 'rb')) ({('traceme.py', 1): 2,

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is another problem: with no file x in cwd, $ ./python.exe -m trace -c -f x traceme.py Skipping counts file 'x': [Errno 2] No such file or directory: 'x' This one seems to exist in both 2.7 and 3.x. Creating empty counts file helps. -- __

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Jul 20, 2010 at 11:28 PM, Eli Bendersky wrote: > The problem indeed seems to be deeper. > .. or shallower. :-) -- ___ Python tracker ___

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-07-20 Thread Mark Lawrence
Mark Lawrence added the comment: Patched test_minidom and ran it test failed. Went to patch minidom.py and it appears up to date, so no idea why the test failed, can someone please take a look as it's 04:30 BST, thanks. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.2 ___

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Eli Bendersky
Eli Bendersky added the comment: I didn't hit refresh before posting so didn't see your message, Alexander. The problem indeed seems to be deeper. -- ___ Python tracker ___

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Eli Bendersky
Eli Bendersky added the comment: Even the following simple test file: -- import pickle data = {'a' : [1, 2, 3], 'b': 5} ps = pickle.dumps(data) newdata = pickle.loads(ps) print(newdata) -- When traced generates an empty trace file for the pickle module,

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Does the trace module even work in 3.x? I created attached trivial traceme.py file. With python 2.7, I get $ python2 -m trace -c -s traceme.py lines cov% module (path) 1 100% threading (Lib/threading.py) 6 100% traceme (tracem

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception.

2010-07-20 Thread Ray.Allen
Ray.Allen added the comment: Thanks for conclusion! I'll try to check and improve my patch. -- ___ Python tracker ___ ___ Python-bugs-

[issue5117] os.path.relpath problem with root directory

2010-07-20 Thread Mark Lawrence
Mark Lawrence added the comment: msg90061 refers to #5799 which is closed, fixed. Will the attached patch need reworking as a result of the #5799 change? -- nosy: +BreamoreBoy ___ Python tracker _

[issue5804] Add an 'offset' argument to zlib.decompress

2010-07-20 Thread Mark Lawrence
Mark Lawrence added the comment: This has been reviewed see msg87550, can we get this into 3.2? -- nosy: +BreamoreBoy stage: patch review -> commit review versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker

[issue5572] distutils ignores the LIBS configure env var

2010-07-20 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1253] IDLE - Percolator overhaul

2010-07-20 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +tjreedy -gvanrossum versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list

[issue1675] Race condition in os.makedirs

2010-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Isaac, thank you for the report and patch. With more attention, this might have been tweaked and applied a couple of years ago. We are trying to get better at timely responses. -- ___ Python tracker

[issue9299] os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception.

2010-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Discussion has continued on pydev thread "mkdir -p in python". Some suggested a new function. Others questioned the details of the new behavior. Guido prefers the flag approach and imitation of mkdir -p. "-1 on a new function (despite the constant-argument gu

[issue1675] Race condition in os.makedirs

2010-07-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> os.mkdir() and os.makedirs() add a keyword argument to suppress "File exists" exception. ___ Python tracker __

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +eli.bendersky, tjreedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue9317] Incorrect coverage file from trace test_pickle.py

2010-07-20 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : I am running the following command $ python -m trace -C pickle-trace.d -c -m Lib/test/test_pickle.py and getting attached file, pickle.cover, in the pickle-trace.d directory. This does not look right. From the very beginning, module level statements

[issue9316] typos in zipimport docstrings

2010-07-20 Thread Brian Curtin
Brian Curtin added the comment: Thanks for the patch. Fixed in r83007 through r83010. -- assignee: -> brian.curtin components: +Documentation, Extension Modules nosy: +brian.curtin resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior versions: +

[issue9311] os.access can return bogus values when run as superuser

2010-07-20 Thread Garrett Cooper
Garrett Cooper added the comment: My initial analysis was incorrect after talking with the bash(1) folks. test(1) is doing things wrong too: case FILEX: /* XXX work around eaccess(2) false positives for superuser */ if (eaccess(nm, X_OK) != 0)

[issue9311] os.access can return bogus values when run as superuser

2010-07-20 Thread Garrett Cooper
Garrett Cooper added the comment: My initial analysis was incorrect after talking with the bash(1) folks. test(1) is doing things wrong too: case FILEX: /* XXX work around eaccess(2) false positives for superuser */ if (eaccess(nm, X_OK) != 0)

[issue9311] os.access can return bogus values when run as superuser

2010-07-20 Thread R. David Murray
R. David Murray added the comment: Hmm. The document you quoted said that eaccess doesn't necessarily get this right everywhere either, but it sounds like it would at least fix the problem on FreeBSD...but at the price of no longer being a simple wrapper around access. I'm not sure what I t

[issue5817] Right-click behavior from Windows Explorer

2010-07-20 Thread Michael Kopinsky
Michael Kopinsky added the comment: I haven't really done any active Python development in a while. When I reported this back in April 2009 I was presumably using whatever was current then (2.6.x, I guess), but haven't tested it since. If you tell me that in newer versions it is corrected, I

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-07-20 Thread R. David Murray
R. David Murray added the comment: Until 2.6.6 is released bug fixes can still be backported to 2.6 but it is at the committer's option. Most likely this one won't be. -- ___ Python tracker __

[issue9316] typos in zipimport docstrings

2010-07-20 Thread Ryan Kelly
New submission from Ryan Kelly : zipimporter methods is_package, get_code and get_source have in the their docstring "Raise ZipImportError is the module couldn't be found". The attached patch fixes the typo to "if the module couldn't be found". -- files: zipimport_docstring_typo.patch

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-07-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7171] Add inet_ntop and inet_pton support for Windows

2010-07-20 Thread Greg Hazel
Greg Hazel added the comment: In addition, inet_ntop and inet_pton can be implemented on Windows platforms prior to Vista using WSAAddressToStringA and WSAStringToAddressA. -- ___ Python tracker __

[issue6698] IDLE no longer opens only an edit window when configured to do so

2010-07-20 Thread Tal Einat
Tal Einat added the comment: I agree on this. Unfortunately that change in r71126 wasn't commented on or documented in any way. -- nosy: +taleinat ___ Python tracker ___ ___

[issue5817] Right-click behavior from Windows Explorer

2010-07-20 Thread Tal Einat
Tal Einat added the comment: I'm quite sure that issue has already been addressed. Specifically r71126 made it so that running IDLE with -e always opens just an editor window. "Edit with IDLE" runs IDLE with -e. With which version of Python do you see this happening, Michael? -- ___

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-20 Thread Greg Brockman
Greg Brockman added the comment: At first glance, looks like there are a number of sites where you don't change the blocking calls to non-blocking calls (e.g. get()). Almost all of the get()s have the potential to be called when there is no possibility for them to terminate. I might recomme

[issue6216] Raise Unicode KEEPALIVE_SIZE_LIMIT from 9 to 32?

2010-07-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I did not forget. I omitted because there were no benchmarks to > mention. I admit that silence is sometimes difficult to interpret and > that I should have said so. Do you see that incrementing the limit > could have negative effects that need to be justified

[issue6216] Raise Unicode KEEPALIVE_SIZE_LIMIT from 9 to 32?

2010-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I did not forget. I omitted because there were no benchmarks to mention. I admit that silence is sometimes difficult to interpret and that I should have said so. Do you see that incrementing the limit could have negative effects that need to be justified? Jus

[issue5673] Add timeout option to subprocess.Popen

2010-07-20 Thread Reid Kleckner
Reid Kleckner added the comment: Uh oh, that was one of the fixes I made when I tested it on Windows. I may have failed to pick up those changes when I ported to py3k. I'll check it out tonight. -- ___ Python tracker

[issue9141] Allow objects to decide if they can be collected by GC

2010-07-20 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Yes, I see your point. Even if more expensive than strictly necessary, the cost should be swamped by other existing costs. -- ___ Python tracker ___

[issue5673] Add timeout option to subprocess.Popen

2010-07-20 Thread Brian Curtin
Brian Curtin added the comment: You forgot "self." on at least lines 1042 and 1044 in Lib/subprocess.py -- multiple test failures occur on Windows 7 due to a NameError for the global stdout_thread not being defined. It seems "self." would also be needed on 1049 and 1053, but beyond adding tho

[issue9141] Allow objects to decide if they can be collected by GC

2010-07-20 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Removed file: http://bugs.python.org/file17925/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9141] Allow objects to decide if they can be collected by GC

2010-07-20 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I agree that this is not the _optimal_ solution, and that when you are collecting stuff, say a list of many items, it will cause X indirect calls to all of the things in the list. My counterargument is, however, that all those items will, if collected

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-20 Thread Éric Araujo
Éric Araujo added the comment: I believe there are no commits on trunk. Affected branches are py3k and release{27,31}-maint IIUC. -- nosy: +merwok ___ Python tracker ___ ___

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Hmm, I'm still not entirely sure that += shouldn't disallow this as well, just because of the inconsistency. I understand the reasoning now, but it feels like maybe it should be an implementation detail, and it should just be disallowed (refuse to guess). -

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I thought it was common to requalify a bug report into a doc bug. That's upto you and OP. My rule of thumb is if the title reads as either code or doc bug, it's ok to reclassify. If not, it is better to open a separate issue. -- __

[issue1771] Remove cmp parameter to list.sort() and builtin.sorted()

2010-07-20 Thread METAL XXX
METAL XXX added the comment: Shame on me, after a long time I realized the problem referenced in my old post (http://bugs.python.org/msg102019) was actually topological sorting. It can't be done by Python's sort(), which doesn't support partial order. Trying to use cmp parameter is completely

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the explanation of pending, I thought the mysterious Roundup/browser bug had changed the status in my back. Searching for __iadd__ gave me only library/collections; library/stdtypes says very little. I thought it was common to requalify a bug report

[issue9282] Bug in --listfuncs option of trace.py

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed with a minor change to meet 80-character line limit. See r82997 (r82999 for 3.1). -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue4832] idle filename extension

2010-07-20 Thread Guilherme Polo
Guilherme Polo added the comment: Sorry but this is just bikeshedding, whoever commits can make this change or if it had been committed without this "improvement" then anyone could adjust without needing a new issue. -- ___ Python tracker

[issue9278] rename 2to3 & pydoc to 2to3.py & pydoc.py

2010-07-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Ah, so the python.org installers do have the .py extension for these scripts. Only ActivePython doesn't. Perhaps msilib (something that we don't use) does the rename. Sorry for the confusion. -- ___ Python trac

[issue4832] idle filename extension

2010-07-20 Thread Brian Curtin
Brian Curtin added the comment: I would forget about slicing or using startswith. "win32" is the platform name for Python on Windows whether or not it's 64-bit (see PC/pyconfig.h), so I'd just check """sys.platform == 'win32'""" -- nosy: +brian.curtin

[issue9310] Intermittent failures in test_logging

2010-07-20 Thread Vinay Sajip
Vinay Sajip added the comment: Whoops, sorry I missed this. Backport checked into release26-maint (r83000). -- assignee: -> vinay.sajip resolution: -> fixed status: open -> closed ___ Python tracker _

[issue4832] idle filename extension

2010-07-20 Thread Tal Einat
Tal Einat added the comment: On Windows, I can't think of any common reason to want to save a file edited in IDLE without the .py extension. On the other hand, accidentally forgetting the .py extension is annoying, and users have come to expect a default extension being added by applications

[issue9222] IDLE: Fix open/saveas 'Files of type' choices

2010-07-20 Thread Tal Einat
Tal Einat added the comment: You're right Terry, my bad, I got the issues mixed up. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > why the pending status? To me this is a way to say "I will close this next time I look unless someone will change my mind." "pending" has a nice property that it will change to "open" once someone adds a comment. This is exactly what I wanted in thi

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Éric Araujo
Changes by Éric Araujo : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Éric Araujo
Éric Araujo added the comment: Alexander, why the pending status? Dirkjan, do you think this is a doc bug? -- status: pending -> open ___ Python tracker ___

[issue8927] Handle version conflicts in dependencies

2010-07-20 Thread Éric Araujo
Changes by Éric Araujo : -- title: Cannot handle complex requirement resolution -> Handle version conflicts in dependencies ___ Python tracker ___ ___

[issue8927] Cannot handle complex requirement resolution

2010-07-20 Thread Éric Araujo
Éric Araujo added the comment: Josip has written a depgraph module at the beginning of this GSoC. It is now in the main distutils2 repository. The documentation Josip wrote can be seen at http://distutils2.notmyidea.org/depgraph.html I haven’t had time to see how the module handles the proble

[issue9282] Bug in --listfuncs option of trace.py

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is clearly an artifact of porting to 3.x. In 2.x the code was calls = self.calledfuncs.keys() calls.sort() for filename, modulename, funcname in calls: which was translated to for filename, modulenam

[issue5817] Right-click behavior from Windows Explorer

2010-07-20 Thread Michael Kopinsky
Michael Kopinsky added the comment: The thing that bugged me when I created the ticket is that since IDLE uses two windows for every instance, that means that if you open three files, you'll have six windows open. I was bugged by constantly switching to the wrong window, etc. -- ___

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky resolution: -> rejected stage: -> committed/rejected status: open -> pending ___ Python tracker ___ ___

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Hmm, that's pretty subtle. I guess I understand, at least. -- ___ Python tracker ___ ___ Python-bug

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that immutable types are consistent: >>> x = tuple('abc') >>> x += 'def' Traceback (most recent call last): File "", line 1, in TypeError: can only concatenate tuple (not "str") to tuple >>> x + 'def' Traceback (most recent call last): File "",

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- type: -> feature request versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I don't understand is why a += b is different from a + b > in this respect. When a is mutable, a += b updates it in-place, so there is no ambiguity: the type of a cannot change. When you do a + b, there is no reason to treat a as more deserving than

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Should the changes be applied to any branches other than trunk and py3k? release31-maint. -- ___ Python tracker ___ _

[issue6216] Raise Unicode KEEPALIVE_SIZE_LIMIT from 9 to 32?

2010-07-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: You forgot "2) show impact on a couple of benchmarks of his choice", which is arguably the most important. -- versions: -Python 3.1 ___ Python tracker ___

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Sure, but: >>> a = ['a', 'b', 'c'] >>> a += 'def' >>> a ['a', 'b', 'c', 'd', 'e', 'f'] I think either way is fine (I'm probably on the side of refusing to guess), but what I don't understand is why a += b is different from a + b in this respect. --

[issue9246] os.getcwd() hardcodes max path len

2010-07-20 Thread Stefan Krah
Stefan Krah added the comment: Closed issue 6817 as a duplicate of this one. There are some patches in that issue. -- nosy: +boya ___ Python tracker ___ _

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > In other words, if iadd can deal with it, why can't add? Should ['a', 'b', 'c'] + 'def' return ['a, 'b', 'c', 'd' , 'e', 'f'] or 'abcdef'? "In the face of ambiguity, refuse the temptation to guess." -- nosy: +belopolsky _

[issue6817] char buffer in function posix_getcwdu should not be fix length

2010-07-20 Thread Stefan Krah
Stefan Krah added the comment: I'm marking this as a duplicate of issue 9246. It's better to change py3k and 2.7 in sync. The patches here will not be lost. -- components: +Extension Modules nosy: +skrah resolution: -> duplicate stage: -> committed/rejected status: open -> closed supe

[issue9296] json module skipkeys handling changed exception types in 2.7

2010-07-20 Thread Doug Hellmann
Doug Hellmann added the comment: Ray, thanks for the patches. Antoine, I appreciate the review. I'll try to get these checked in to svn in the next day or two. I see that this ticket is tagged as related to versions 2.7, 3.1, and 3.2. Should the changes be applied to any branches other t

[issue6976] getcwd hangs and leaks mem on Solaris <= 9 in very long file name case

2010-07-20 Thread Stefan Krah
Stefan Krah added the comment: This has just been fixed in issue 9185. -- nosy: +skrah resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> os.getcwd causes infinite loop on solaris ___ Python tracker

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-07-20 Thread John J Lee
John J Lee added the comment: Hmm, I never tested with Python 3, though I assume the forward-port was straightforward. The patch was created against (2.x) trunk, so indeed it should be committed there also. Deselecting 2.6 since I assume no more maintenance backports will be made to 2.6 asi

[issue9311] os.access can return bogus values when run as superuser

2010-07-20 Thread Garrett Cooper
Garrett Cooper added the comment: Well, bash screws up in this dept: $ ls -l typescript -rw-r--r-- 1 gcooper gcooper 37875 Jul 12 22:19 typescript $ sudo sh -c 'test -x typescript; echo $?' 1 $ sudo bash -c 'test -x typescript; echo $?' 0 $ csh %if (-x typescript) then if? echo "executable"

[issue9222] IDLE: Fix open/saveas 'Files of type' choices

2010-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, I agree with your comment, but I believe it applies to #4832 and should be moved there. The patch here fixes (and only fixes) an obvious bug in the filetypes list. -- ___ Python tracker

[issue6251] c++ extension module implementation guide/example in extending/embedding documentation

2010-07-20 Thread Mark Lawrence
Changes by Mark Lawrence : -- assignee: georg.brandl -> d...@python nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mail

[issue6610] Subprocess descriptor debacle

2010-07-20 Thread Mark Lawrence
Mark Lawrence added the comment: The patch is small, is there any solid reason for not committing it? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue8254] write a configure command

2010-07-20 Thread Éric Araujo
Éric Araujo added the comment: configure is not config. As I understand it, the config command aimed to be something like ./configure in autotools, thus usable in combination with build and install. configure is different: it is meant to be run once to create a configure.cache file which save

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: for any *iterable*! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4555] Smelly exports (global symbols in python not prefixed with Py or _Py)

2010-07-20 Thread Dave Malcolm
Dave Malcolm added the comment: Patch to py3k which adds the "_Py" prefix to the four listed symbols. With this, the output from "make smelly" is clean (odorless, perhaps?). However, adding _Py does seem to go against this comment in Include/asdl.h: /* It would be nice if the code generated by

[issue9314] inconsistent result when concatenating list with iterators

2010-07-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This actually works for any iterator: >>> l = [] >>> l += 'abc' >>> l ['a', 'b', 'c'] -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue8258] Multiple Python Interpreter Memory Leak

2010-07-20 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +brian.curtin, tim.golden stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7825] test_threadsignals leaks references

2010-07-20 Thread Mark Lawrence
Mark Lawrence added the comment: Has the underlying code been fixed or could we still use the patch to test_threadsignals? -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue8254] write a configure command

2010-07-20 Thread Jeremy Kloth
Jeremy Kloth added the comment: How would the build or install command get the options in this case: python setup.py configure --prefix=$HOME build install Remember that commands can be chained (and that commands can run other commands). I would like to be able to do (and can do right now):

[issue4555] Smelly exports (global symbols in python not prefixed with Py or _Py)

2010-07-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- title: Smelly exports -> Smelly exports (global symbols in python not prefixed with Py or _Py) ___ Python tracker ___ ___

[issue4555] Smelly exports

2010-07-20 Thread Dave Malcolm
Dave Malcolm added the comment: py3k is much cleaner than python 2, due to the change in the module API. Here's "make smelly"'s output on a recent py3k checkout: nm -p libpython3.2.a | \ sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \ _add_one_to_index_C _add_one_to_i

[issue9282] Bug in --listfuncs option of trace.py

2010-07-20 Thread Eli Bendersky
Eli Bendersky added the comment: I've opened issue 9315 to address the lack of unit tests for trace.py I think that this should be committed regardless, since it fixes a serious bug in the module. Adding unit tests can take time, and is less critical. -- _

[issue9315] The trace module lacks unit tests

2010-07-20 Thread Eli Bendersky
New submission from Eli Bendersky : Brought up in issue 9282: unit tests should be added for the trace module. Minor naming problem: Lib/test/test_trace.py is currently employed for testing the sys.settrace method. Suggestion: name the unit tests of the trace module test_trace_module.py -

[issue8254] write a configure command

2010-07-20 Thread Éric Araujo
Éric Araujo added the comment: > why not define the options only on the `configure` command? This is what Tarek told me and what I thought I said two messages earlier. > On that note, how does the B/I commands get the options defined by > `configure`? See http://bitbucket.org/Merwok/distuti

[issue7464] circular reference in HTTPResponse by urllib2

2010-07-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Lets just investigate the circular reference part here for this ticket. -- assignee: -> orsenthil versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker

[issue8254] write a configure command

2010-07-20 Thread Éric Araujo
Éric Araujo added the comment: Adding message from jkloth removed by error (remove/reply confusion): for #1 instead of importing `build`/`install` commands for their options, why not define the options only on the `configure` command? The B/I commands could just "lookup" their needed options

[issue8254] write a configure command

2010-07-20 Thread Éric Araujo
Changes by Éric Araujo : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/optio

[issue8254] write a configure command

2010-07-20 Thread Jeremy Kloth
Jeremy Kloth added the comment: for #1 instead of importing `build`/`install` commands for their options, why not define the options only on the `configure` command? The B/I commands could just "lookup" their needed options from the configure command. On that note, how does the B/I commands

  1   2   >