[issue9258] Typos in docs for methods kqueue and kevent of module 'select'

2010-07-14 Thread Retro
New submission from Retro : Fix the docs for every selected Python version. They all have the same typos. The typos appear in the documentation of the 'select' module. These are the methods that need typo fixes: select.kqueue() (Only supported on BSD.) Returns a kernel queue object object ..

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

2010-07-14 Thread Ask Solem
Ask Solem added the comment: There's one more thing if exitcode is not None: cleaned = True if exitcode != 0 and not worker._termination_requested: abnormal.append((worker.pid, exitcode)) Instead of restarting crashed worker processes it will si

[issue9258] Typos in docs for methods kqueue and kevent of module 'select'

2010-07-14 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r82871. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue9258] Typos in docs for methods kqueue and kevent of module 'select'

2010-07-14 Thread Éric Araujo
Éric Araujo added the comment: Just for your information, there is no 3.3 version yet. This value is useful for bugs that won’t be fixed in 3.2 (a.k.a. the py3k trunk). -- nosy: +merwok ___ Python tracker

[issue9258] Typos in docs for methods kqueue and kevent of module 'select'

2010-07-14 Thread Georg Brandl
Georg Brandl added the comment: Ah yes, and please don't add me to the nosy list on doc issues. d...@python is enough. -- ___ Python tracker ___ ___

[issue9235] missing "import sys" in Tools/gdb/libpython.py

2010-07-14 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r82874. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 14 juillet 2010 à 01:45 +, Terry J. Reedy a écrit : > > 2. Add a parameter that defaults to using the heuristic but allows > turning it off. Perhaps better, but code that used the new API would > crash if run on 2.7.0 Yes, but this is an except

[issue9217] 2to3 crashes with some doctests

2010-07-14 Thread Tiago Antao
Tiago Antao added the comment: I've re-opened this bug because of the late examples that I've included that still crash. I can open a new bug if you prefer with the late examples (just tell me and I will open a new bug). This is somewhat important for us: In order to be able to release a Pyth

[issue5673] Add timeout option to subprocess.Popen

2010-07-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue9251] Test for the import lock

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > test_threaded_import is designed to check the import lock (and it does > at least to some degree - I changed runpy's handling of the import > lock because my original approach broke that test). Apparently, Lib/test/test_threaded_import only works if run direc

[issue7231] Windows installer does not add \Scripts folder to the path

2010-07-14 Thread sorin
sorin added the comment: Additional information that will enable the installer to update the path without requiring a relogin/restart: http://support.microsoft.com/kb/104011 -- ___ Python tracker _

[issue5842] Move test outside of urlparse module

2010-07-14 Thread Éric Araujo
Éric Araujo added the comment: Done in r82881 to 82883. Thanks orsenthil! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue5842] Move test outside of urlparse module

2010-07-14 Thread Éric Araujo
Éric Araujo added the comment: FTR, r82884 too for 2.6. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9251] Test for the import lock

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, here is a patch for test_threaded_import that makes it work for regrtest too. I've removed all global variables and converted it to unittest. -- keywords: +patch Added file: http://bugs.python.org/file17995/threadimp.patch

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Ariel Ben-Yehuda
New submission from Ariel Ben-Yehuda : Hello, I think there is a problem with Python 2.7: I installed it, and tried to compile GObject-Introspection 0.9.2. Here is the result: ... GISCAN GLib-2.0.gir Traceback (most recent call last): File "../tools/g-ir-scanner", line 36, in from gisc

[issue9251] Test for the import lock

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the fix in r82885 (3.2) and r82886 (3.1). The reliance on random still looks a bit quirky to me, but at least the test now does what it should do, and has a cleaned up coding style. I'm leaving this issue open, for the other test might be inter

[issue4932] Little improvement on urlparse module, urlparse function.

2010-07-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: I reviewed the patch and we may not go with it. - There is recent improvements in parsing and the patch does not go well with it, especially the clear_cache removal. Also there is a mistake in the patch: -scheme, url = url[:i].lower(), url[i+1:]

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7384] curses crash on FreeBSD

2010-07-14 Thread Stefan Krah
Stefan Krah added the comment: So you have garbage from stderr in readline_termcap_lib. Since that's useless anyway (no matter what locale is set), let's check the return value of os.system(). The attached patch skips readline linkage detection if ldd fails. In that case, linking will be done i

[issue6033] LOOKUP_METHOD and CALL_METHOD optimization

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: First, are these benchmark results jitted or non-jitted? Right now, non-jitted results are a stronger motivation for inclusion in main CPython, IMHO. Second, 2.7 won't receive any features / performance improvements anymore. It would be nice to have 3.2 (non

[issue6033] LOOKUP_METHOD and CALL_METHOD optimization

2010-07-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9244] multiprocessing.pool: Worker crashes if result can't be encoded

2010-07-14 Thread Ask Solem
Ask Solem added the comment: > To be clear, the errback change and the unpickleable result > change are actually orthogonal, right? Yes, it could be a separate issue. Jesse, do you think I should I open up a separate issue for this? > Why not add an error_callback for map_async as well? That'

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the report. Unfortunately, the 2.6 behavior was a bug, as I explained on #9220: Magic methods are looked up on the object’s class, not in the object’s __dict__. (Your test with class methods

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Ariel Ben-Yehuda
Ariel Ben-Yehuda added the comment: Bug or not bug, Python2.7 breaks Gobject-Introspection. -- status: closed -> open ___ Python tracker ___ _

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Éric Araujo
Éric Araujo added the comment: Please produce a test to prove that Python behaves in contradiction to the documentation. Otherwise I’m afraid it’s a GI bug, like in your tests :) -- ___ Python tracker

[issue9249] struct.pack and Long Integer datatype should be 4, but is 8 bytes

2010-07-14 Thread hannes reuter
hannes reuter added the comment: Dear Marc, Thanks for taking time to answer that question. I understand that this comes from the native formating i specified, >>> calcsize('L') 8 >>> calcsize(' wrote: > > Mark Dickinson added the comment: > > Please read the three sentences directly preceding

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Ariel Ben-Yehuda
Ariel Ben-Yehuda added the comment: My test on Class Methods was based on the GI Code that does not run on Python 2.7. -- ___ Python tracker ___

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Éric Araujo
Éric Araujo added the comment: I am afraid we have conflicting viewpoints. You are saying that upgrading Python broke code, and I agree it’s a bad thing. Usually such regression reports are accepted and fixed. In this case however, the code was already broken in the previous version, it was

[issue1448060] gettext.py breaks on plural-forms header (PATCH)

2010-07-14 Thread Mark Lawrence
Changes by Mark Lawrence : -- dependencies: -patch fixing #1448060 (gettext.py bug) ___ Python tracker ___ ___ Python-bugs-list mai

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Éric Araujo
Éric Araujo added the comment: Since Benjamin Peterson, release manager for 2.7, confirmed that the change was intentional, I’m closing again. To solve the bug in GI, you need to define a metaclass with those __enter__ and __exit__ methods, then use it as metaclass for LibtoolImporter. Please

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

2010-07-14 Thread Ask Solem
Ask Solem added the comment: Jesse wrote, > We can work around the shutdown issue (really, bug 9207) by > ignoring the exception such as shutdown.patch does, or passing in > references/adding references to the functions those methods need. Or (as > Brett suggested) converting them to class me

[issue1574217] isinstance swallows exceptions

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: Can we get this closed as the patch is in 2.6 already, just needs to be applied to the later versions. Or have I missed something? -- nosy: +BreamoreBoy versions: +Python 3.2 ___ Python tracker

[issue1574217] isinstance swallows exceptions

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't see it being applied. Tres Seaver above reports that issue1574217_dont_mask_errors.txt applies cleanly to 2.6 branch, which means that it has not been applied yet. Someone needs to check if the patch is current for 2.7 and py3k branches to mov

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

2010-07-14 Thread Jesse Noller
Jesse Noller added the comment: Passing the references seems to be a losing game; for _handle_workers - we only need 1 function (debug) - for others (say _join_exited_workers), we need references to reversed/range/len. A possible alternative is to make those threads non-daemon threads; but I

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-14 Thread Alex Rodriguez
Changes by Alex Rodriguez : -- nosy: +Alex.Rodriguez ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm going to experiment with embedding a minimal version of Tk in the installer, which would both fix this issue and ensure that we use a version of Tk that is better adjusted to OSX (which should remove some other issues) I want to do this during the europy

[issue9260] A finer grained import lock

2010-07-14 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is an implementation of the idea suggested in: http://mail.python.org/pipermail/python-dev/2003-February/033445.html The patch creates a dictionary of reentrant locks keyed by module full name. Trying to import a module or package will first get the loc

[issue9260] A finer grained import lock

2010-07-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file17998/implock.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9260] A finer grained import lock

2010-07-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file17999/implock.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9012] Separate compilation of time and datetime modules

2010-07-14 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9079] Make gettimeofday available in time module

2010-07-14 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2010-07-14 Thread Greg Brockman
Greg Brockman added the comment: Before I forget, looks like we also need to deal with the result from a worker being un-unpickleable: """ #!/usr/bin/env python import multiprocessing def foo(x): global bar def bar(x): pass return bar p = multiprocessing.Pool(1) p.apply(foo, [1]) """

[issue9260] A finer grained import lock

2010-07-14 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1574217] isinstance swallows exceptions

2010-07-14 Thread Tres Seaver
Tres Seaver added the comment: This bug exists in Python 2.6 and 3.1, which are still being maintained, AFAIK. -- versions: +Python 2.6, Python 3.1 ___ Python tracker ___

[issue1574217] isinstance swallows exceptions

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This looks like a borderline case between a bug and a feature request. If this is deemed to be a feature, it is not appropriate for 2.x or 3.1. In any case, I think the first step should be to consider this for py3k branch. -- ___

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-14 Thread Jan Killian
Jan Killian added the comment: * updated tests -- Added file: http://bugs.python.org/file18000/shutil_which_82778.patch ___ Python tracker ___ _

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-14 Thread Jan Killian
Changes by Jan Killian : Added file: http://bugs.python.org/file18001/which.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1574217] isinstance swallows exceptions

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have verified that the issue is present in py3k. The unit test portion of the patch applies cleanly in py3k an the added tests fail. The code portion applies with patch -l and fixes the issue. I'll upload a patch with fixed white space. --

[issue1574217] isinstance swallows exceptions

2010-07-14 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file18002/issue1574217.diff ___ Python tracker ___ ___ Python-bugs-list

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: As this is a small patch about which there is one statement from Martin that says "I believe the proposed patch is fine", there is only one query from Antoine, and because the issue discussed refers to problems with 32 and 64 bit sizes, could someone with the

[issue9251] Test for the import lock

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is another patch that also tests that calls to path hooks and meta_path entries are serialized. Again, they pass in normal conditions and fail when the import lock is disabled. -- Added file: http://bugs.python.org/file18003/threadimp2.patch ___

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Ariel Ben-Yehuda
Ariel Ben-Yehuda added the comment: Done it for myself. However, I am not a GI Maintainer - you should talk with them and send them this patch. -- ___ Python tracker ___ ___

[issue9261] include higher (../../) dirs fails

2010-07-14 Thread Dan OD
New submission from Dan OD : MANIFEST.in example: recursive-include ../../this *.that fails to include files with "warning: no files found matching '*.that' under directory '../../this'" and also include ../../this *.that fails with "warning: no files found matching '../../this'" - odd si

[issue1669539] Change (fix!) os.path.isabs() semantics on Win32

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: Nosy list changed as both have an interest in Windows issues. -- nosy: +BreamoreBoy, brian.curtin, tim.golden ___ Python tracker ___ _

[issue6033] LOOKUP_METHOD and CALL_METHOD optimization

2010-07-14 Thread Reid Kleckner
Reid Kleckner added the comment: Sorry, I was just posting it so Benjamin could see what this bought us. I'm not pushing to get this in CPython. The results are for JITed code. I forget what the interpreted results are. I think they are good for the microbenchmarks, but not as good for the

[issue5673] Add timeout option to subprocess.Popen

2010-07-14 Thread Brian Curtin
Brian Curtin added the comment: I'm looking into the TODO details right now, but the patch as-is didn't pass for me. The last line of test_communicate_timeout fails on Windows 7 with "pineapple\r\npear\r\n" not matching "pineapple\npear\n". Creating the Popen object with universal_newlines=1

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Responding to Antoine question, I don't understand how you would use a union here. Certainly you cannot define Py_dicthashcache_t as a union of long and Py_ssize_t because it will not be able to easily assign long or Py_ssize_t values to it. I don't th

[issue9262] IDLE: Use ttk.Notebook for tabbed windows

2010-07-14 Thread Terry J. Reedy
New submission from Terry J. Reedy : The addition of tabbed windows to web browsers was a great advance that is now standard. For Windows, it eliminated the crowding of the taskbar. I suspect it made switching easier on all systems. The addition of the same to IDLE would have similar benefits.

[issue9261] include higher (../../) dirs fails

2010-07-14 Thread Dan OD
Dan OD added the comment: Thinking about this - maybe including dirs above ./ is bad as it's not obvious where they should live in the sdist. My alternative would be to create links to ../../this in ./ but then distutils creates links rather than hard copies in sdist - is this something that

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On the second thought, this comment: - /* Cached hash code of me_key. Note that hash codes are C longs. -* We have to use Py_ssize_t instead because dict_popitem() abuses -* me_hash to hold a search finger. -*/ suggests tha

[issue9261] include higher (../../) dirs fails

2010-07-14 Thread Dan OD
Dan OD added the comment: Sorry for all the noise - this dynamic link thing seems to be fixed in 2.7 rendering this report 'closed' Dan -- status: open -> closed ___ Python tracker ___

[issue9262] IDLE: Use ttk.Notebook for tabbed windows

2010-07-14 Thread Guilherme Polo
Guilherme Polo added the comment: It is possible to create a tabbed window without ttk.Notebook. This is already being done in the configuration dialog. The real issue goes much beyond ttk.Notebook, check the patch "tabs_ttk_and_co.diff" at http://code.google.com/p/python-ttk/downloads/list f

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Please ignore my comment about set type. Sets don't have this issue. -- ___ Python tracker ___ ___

[issue1669539] Change (fix!) os.path.isabs() semantics on Win32

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

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Yet it looks like set has a bigger problem whenever sizeof(Py_ssize_t) > sizeof(long). setentry.hash is defined as long, but set_pop() stores a Py_ssize_t index in it. -- ___ Python tracker

[issue9262] IDLE: Use tabbed shell and edit windows

2010-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changed title to match new info. Tabs might also be used for any pop-up windows that would benefit from persistence. [JEdit does this, but being non-language-specific, it does not have a shell with error traceback.] -- title: IDLE: Use ttk.Notebook fo

[issue9262] IDLE: Use tabbed shell and edit windows

2010-07-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue9253] argparse: optional subparsers

2010-07-14 Thread Vincent Driessen
Vincent Driessen added the comment: Actually, this is a rather common concept. Broadly used tools like for example Git use this kind of subcommand handling. This command shows all remotes: git remote(i.e. is like git remote list) Showing/removing remotes is done using subsubcom

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a patch that uses a regular union of long and Py_ssize_t to store cached hash/index value in both set and dict entry. Using an anonymous union would simplify the patch and would reduce the likelihood of breaking extensions that access en

[issue1349732] urllib.urlencode provides two features in one param

2010-07-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: This was fixed as part of Issue8788. Closing this. -- resolution: -> duplicate stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker

[issue9249] struct.pack and Long Integer datatype should be 4, but is 8 bytes

2010-07-14 Thread Mark Dickinson
Mark Dickinson added the comment: > However, as my system is a little endian one(e.g. > sys.byteorder=little), whats the difference between native and little Native mode uses: native size, native byteorder and alignment that matches your platform Little endian: standard size, little-endian,

[issue3163] module struct support for ssize_t and size_t

2010-07-14 Thread Mark Dickinson
Mark Dickinson added the comment: Jean, if you're still around: Do you still have interest in pursuing this? -- ___ Python tracker ___ __

[issue5843] Possible normalization error in urlparse.urlunparse

2010-07-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Currently this claim will fail: >>> obj = urlparse.urlparse('http://a/b/c?') >>> urlparse.urlunparse(obj) 'http://a/b/c' >>> obj = urlparse.urlparse('http://a/b/c#') >>> urlparse.urlunparse(obj) 'http://a/b/c' If we move away from the current behavior, there

[issue3163] module struct support for ssize_t and size_t

2010-07-14 Thread Mark Dickinson
Changes by Mark Dickinson : -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-07-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: If this goes in, it can't go into bug fix releases, as it may break the ABI. -- versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker __

[issue9260] A finer grained import lock

2010-07-14 Thread Brett Cannon
Brett Cannon added the comment: So I say we don't worry about loaders being thread-safe. If __import__ handles the locking for a specific module then it will hold the lock on behalf of the loader. Now if someone decides to call load_module on their own, that's there business, but they should

[issue6853] system proxy not used for https (on windows)

2010-07-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r82890 and branches. Thanks Mark for bringing these issues out. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue9260] A finer grained import lock

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So I say we don't worry about loaders being thread-safe. If __import__ > handles the locking for a specific module then it will hold the lock > on behalf of the loader. Yes but what happens if two different modules are imported from two different threads, and

[issue6960] test_telnetlib gives spurious output

2010-07-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: No problems observed now. I randomized and ran the tests a couple of times. I don't know what the scenario was when this was observed, so I will let __ap__ close the issue. -- nosy: +orsenthil ___ Python tracker

[issue6960] test_telnetlib gives spurious output

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, let's say this was an exceptional failure. -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___

[issue9259] Python 2.7 breaks assigned __exit__s

2010-07-14 Thread Éric Araujo
Éric Araujo added the comment: Since you know the project, the bug and the fix, I think you’re in a better position than me to talk with them. -- ___ Python tracker ___

[issue7965] Problem with urlparse in Windows XP after a drag and drop

2010-07-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: The resultant url you get after doing a urlparse is not a Windows PATH, but url path component. So, when you use in relative manner by doing urljoin, you will see that the original will get constructed properly. So, there is really no a problem here. --

[issue9260] A finer grained import lock

2010-07-14 Thread Brett Cannon
Brett Cannon added the comment: On Wed, Jul 14, 2010 at 12:34, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > > So I say we don't worry about loaders being thread-safe. If __import__ > > handles the locking for a specific module then it will hold the lock > > on behalf of the

[issue9260] A finer grained import lock

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That's why I said we should supply a context decorator (or function) which > will handle the lock appropriately, taking the name of the module to import > as an argument so the locking is fine-grained. Ok, so what are you saying is that we can break compatibi

[issue5437] Singleton MemoryError can hold traceback data and locals indefinitely

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: Would someone please check out thie patch, it's mostly changes to C code that I'm not qualified to comment on. -- nosy: +BreamoreBoy ___ Python tracker

[issue9132] Documentation for comparing dictionaries is out of date

2010-07-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch was pretty good. Committed it in r82899 and r82900. Thanks Eli for the patch & Terry for the review. -- nosy: +orsenthil resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed

[issue9261] include higher (../../) dirs fails

2010-07-14 Thread Éric Araujo
Éric Araujo added the comment: Can you tell if the docs fail to mention that? If they do, please reopen this as a documentation bug (change title, select component Documentation, and set status to open). Thank you! -- nosy: +merwok ___ Python track

[issue7732] imp.find_module crashes Python if there exists a directory named "__init__.py"

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: Quote from ncoghlan on msg102699 "Florent's patch looks correct". Does anyone else wish to comment or can this be taken forward? -- nosy: +BreamoreBoy ___ Python tracker _

[issue1646068] Dict lookups fail if sizeof(Py_ssize_t) < sizeof(long)

2010-07-14 Thread Mark Dickinson
Mark Dickinson added the comment: The approach in Alexander's patch looks fine to me. +1 on applying this patch if someone can test it on a platform where sizeof(long) > sizeof(Py_ssize_t), and also verify that there are current test failures that are fixed by this patch. (If there are no s

[issue3163] module struct support for ssize_t and size_t

2010-07-14 Thread Jean Brouwers
Jean Brouwers added the comment: Yes I am and I will get back to you on this after check my (old) notes. /Jean On Wed, Jul 14, 2010 at 12:08 PM, Mark Dickinson wrote: > > Mark Dickinson added the comment: > > Jean, if you're still around: > > Do you still have interest in pursuing this? > >

[issue9260] A finer grained import lock

2010-07-14 Thread Brett Cannon
Brett Cannon added the comment: What I'm saying is that loaders are quite possibly not thread-safe already, so we don't need to do any special for them. If you look at PEP 302 you will notice not a single mention of loaders needing to care about the import lock because there is no mention of

[issue9260] A finer grained import lock

2010-07-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So changing the locking mechanism most likely won't break loaders > because they are not using the current import lock anyway and so > already have their own issues. Are you sure they aren't using it implicitly? In vanilla py3k, PyImport_ImportModuleLevel()

[issue731991] find correct socklen_t type

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed, I can't see anyone going to the trouble of porting a patch prepared for 2.3 over 7 years ago to 2.7 or 3.2? -- nosy: +BreamoreBoy ___ Python tracker _

[issue754016] urlparse goes wrong with IP:port without scheme

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: The patch will need to be reworked for the 2.7, 3.1 and 3.2 branches. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker __

[issue9260] A finer grained import lock

2010-07-14 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file18005/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue775321] plistlib error handling

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: If anything is to be done the patch needs updating. I'd be inclined to close this as "won't fix" unless someone can come up with a really compelling reason to implement it. -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 _

[issue9260] A finer grained import lock

2010-07-14 Thread Graham Dumpleton
Graham Dumpleton added the comment: How is this going to deal with cyclical imports where different threads could import at the same time different modules within that cycle? I need to look through the proposed patch and work out exactly what it does, but am concerned about whether this appro

[issue812369] module shutdown procedure based on GC

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: issue1545463 has been closed as "won't fix", so wouldn't implementing this patch kill two birds with one stone? -- nosy: +BreamoreBoy ___ Python tracker _

[issue839159] iterators broken for weak dicts

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: If this is to go forward the patch will need porting to 2.7, 3.1 and 3.2 -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker

  1   2   >