[issue1724366] cPickle module doesn't work with universal line endings

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This does not look like a valid bug to me. OP does not show that pickle files are different on different systems, he mangles pickle file with unix2dos instead. This would certainly produce an invalid pickle because pickle format requires '\n' and no o

[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-14 Thread Jyrki Wahlstedt
Jyrki Wahlstedt added the comment: For some reason I unintentionally managed to change status, putting it back to pending. -- status: open -> pending ___ Python tracker ___

[issue1062277] Pickle breakage with reduction of recursive structures

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The issue is still present in py3k. Attaching an updated patch with tests only. Is this the same as issue998998? -- assignee: -> belopolsky nosy: +alexandre.vassalotti, belopolsky stage: -> needs patch versions: +Python 3.2 Added file: http:/

[issue616013] cPickle documentation incomplete

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I've just closed issue8738 as invalid and surely a document explaining the differences between cPickle and _pickle would save me a lot of effort. It will also help anyone porting from 2.x to 3.x. Alexandre, do you have any notes that you can share? --

[issue8738] cPickle dumps(tuple) != dumps(loads(dumps(tuple)))

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am speculating here while Alexandre probably knows the answer. The skip PUT on unreferenced objects optimization was probably removed because doing so makes _pickle module behave more like pickle and because pickletools now has optimize method which

[issue9265] Can't choose other shell in subprocess module. Includes fix.

2010-07-14 Thread Narnie Harshoe
Changes by Narnie Harshoe : -- title: Can choose other shell in subprocess module. Includes fix. -> Can't choose other shell in subprocess module. Includes fix. ___ Python tracker __

[issue8738] cPickle dumps(tuple) != dumps(loads(dumps(tuple)))

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: OK, the 2.7 behavior is explainable and correct. cPickle checks the reference count and does not generate PUT for objects that don't have references: >>> from pickletools import dis >>> from cPickle import dumps >>> dis(dumps(tuple([1]))) 0: (MA

[issue9265] Can choose other shell in subprocess module. Includes fix.

2010-07-14 Thread Narnie Harshoe
New submission from Narnie Harshoe : Popen from the subprocess module when called with shell=True and executable=/bin/bash still runs in the /bin/sh shell. The error has been found and corrected in the subprocess module and is as follows: change: lines 1018-1022 for python v 2.6

[issue8738] cPickle dumps(tuple) != dumps(loads(dumps(tuple)))

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There seems to be a bug somewhere in 2.x cPickle. Here is a somewhat simpler way to demonstrate the bug: the following code from pickletools import dis import cPickle t = 1L, # use long for easy 3.x comparison s1 = cPickle.dumps(t) s2 = cPickle.dumps(cP

[issue9264] trace.py documentation is incomplete

2010-07-14 Thread Eli Bendersky
New submission from Eli Bendersky : The documentation of the standard 'trace' module (Doc/library/trace.rst) is sorely lacking. Arguments are not explained, some key methods are not documented at all, and the CoverageResults class isn't documented. Usage of these appears in the example but lea

[issue998998] pickle bug - recursively memoizing class?

2010-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This looks like a duplicate of issue 1581183. The issue is still present in py3k, but only shows up in picklecycle.py when using pickle.py version. I am attaching picklecycle3.py which is py3k version of picklecycle.py using python pickler. --

[issue6960] test_telnetlib gives spurious output

2010-07-14 Thread Jack Diederich
Jack Diederich added the comment: r76133 (which came after this bug) fixed most test_telnetlib bugs by using mocks instead of trying to setup full-blown client/server TCP cases. -- ___ Python tracker _

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2010-07-14 Thread Dave Malcolm
New submission from Dave Malcolm : Modules/gcmodule.c contains various assertions which can fail due to reference counting errors elsewhere in either python, or an extension module. These can be difficult to track down. In the hope of maximizing the information from crash reports, the attache

[issue9260] A finer grained import lock

2010-07-14 Thread Brett Cannon
Brett Cannon added the comment: That's my point; loaders are using the lock implicitly so that's why we don't need to worry about the global import lock just for path hooks. It seems like you are suggesting using the global import lock purely for compatibility, and what I am saying is that lo

[issue887237] Machine integers

2010-07-14 Thread Mark Lawrence
Mark Lawrence added the comment: Perhaps people could review the latest patch in view of the following. 1) Quote from Mark Dickinson msg75815 "I think this would be valuable for rapid prototyping of an algorithm in Python before translating it into C. In particular, it might help with detecti

[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

[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 _

[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

[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 Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file18005/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing li

[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 __

[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 _

[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()

[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

[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? > >

[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

[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 _

[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

[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

[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

[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

[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

[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. --

[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 ___

[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 ___ ___

[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

[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

[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 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

[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 __

[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

[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
Mark Dickinson added the comment: Jean, if you're still around: Do you still have interest in pursuing this? -- ___ 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,

[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

[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

[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

[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:/

[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

[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

[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: Please ignore my comment about set type. Sets don't have this issue. -- ___ 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

[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 ___

[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: 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

[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.

[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

[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

[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

[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 ___ _

[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

[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 ___ ___

[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 ___

[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

[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

[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. --

[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

[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 ___ _

[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. -- ___

[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 ___

[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

[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]) """

[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

[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

[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

[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
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

[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

[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

[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

[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

[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

[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

[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

[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: 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

[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 ___

[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 É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

[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
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 É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

[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'

[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

[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

[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

[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

[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:]

[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

  1   2   >