[issue17746] test_shutil.TestWhich.test_non_matching_mode fails when running as root

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which skips test_non_matching_mode when run as root (for early skip in discovery stage and for more appropriate for this case report) and when run on OS or FS which doesn't support read-only files (should cover all other cases). -- c

[issue5124] IDLE - pasting text doesn't delete selection

2013-05-25 Thread Ned Deily
Ned Deily added the comment: X11-based Tk follows general X11 practice with regard to text pasting. See http://wiki.tcl.tk/3771 for some background. Old school X11 users expect pasting to work that way. This is yet another instance where Tk attempts to conform to the platform it is running

[issue18061] m68k Python 3.3 test results

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > >Do you run tests as root? > Yes. Well, this is issue17746. > >Is m68k big-endian? > Yes: ILP32 big-endian, 2-byte aligned. Please open a new issue for str.find bug. -- dependencies: +m68k FPU precision issue, m68k struct alignment issue vs. PyEx

[issue18059] Add multibyte encoding support to pyexpat

2013-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18059] Add multibyte encoding support to pyexpat

2013-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file30368/expat_encodings.py ___ Python tracker ___ ___ Python-bugs-list ma

[issue18059] Add multibyte encoding support to pyexpat

2013-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file30373/pyexpat_multibyte_encodings.patch ___ Python tracker ___ ___ Pyth

[issue18059] Add multibyte encoding support to pyexpat

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated. Fixed an error in the encodings generator and added additional compatibility check for 8-bit encodings in PyUnknownEncodingHandler(). Feel free to bikesheed the encodings generator. -- Added file: http://bugs.python.org/file30378/pyexp

[issue5124] IDLE - pasting text doesn't delete selection

2013-05-25 Thread Todd Rovito
Todd Rovito added the comment: "What is standard in other linex and mac apps?" -On Mac OS X 10.8.3 TextEdit I get the replacement behavior -On Linux CentOS 6.4 gedit I get the replacement behavior -On IDLE under the latest 3.4 pull I get the replacement behavior with Max OS X 10.8.3 -On IDLE und

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: The latter is probably better (it should just need a slight tweak to the wording in the docs and docstring) -- ___ Python tracker ___

[issue5124] IDLE - pasting text doesn't delete selection

2013-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Win7, I get the replacement behavior. I get the same in Notepad and Firefox, so this may be standard Windows behavior. What is standard in other linex and mac apps? If the tk difference is a standard platform difference, I might think we should leave it alo

[issue12641] Remove -mno-cygwin from distutils

2013-05-25 Thread Renato Silva
Renato Silva added the comment: > In context it should be clear that the statement "in gcc 4.x it > produces an error preventing build" refers to Cygwin's gcc and not > MinGW's. Which gcc are you referring to? If it refers to Cygwin only, sorry then. However, didn't folks said in MinGW thread

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Roger, sorry, I did not read your message completely. When I open from the console intepreter, I also get the traceback; same behavior. -- ___ Python tracker _

[issue6871] decimal.py: more format issues

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: If I'm reading this correctly only issue 2 is outstanding. Opinions please gentlemen. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue18064] IDLE: add current directory to open_module

2013-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Code also suggests that this function should be elsewhere, such as in iobinding. This should be in the same place as regular open, wherever that is, since it is an alternative open. Document should be upgraded a bit: "Load module opens Python-coded modules on

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Brett, you misunderstood somethings. I want to apply now to 3.3 and 3.4. This is the right time now that 3.2 final maintenance is out. (In any case, we are no longer patching it. 2.7 gets improvements on a 'reasonable best effort' basis.) It is also clearer an

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Could we have a patch review please. Also note that #5905 has been closed. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue5664] 2to3 wont convert Cookie.Cookie properly

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: I'm assuming msg98615 is correct so this can be closed. -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue7803] setup hangs on disk space requirements

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: In 12 years of installing Python on Windows I've never seen this problem. Unless others have seen this and/or it's reproducible I'd suggest this is closed. -- nosy: +BreamoreBoy ___ Python tracker

[issue7776] httplib.py: ._tunnel() broken

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Cameron could you provide a patch for this? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bu

[issue5124] IDLE - pasting text doesn't delete selection

2013-05-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: +BreamoreBoy, roger.serwy, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue18047] Descriptors get invoked in old-style objects and classes

2013-05-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: One commit already so presumably not too much effort needed to close this one. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Éric Araujo
Éric Araujo added the comment: About future-proofing: do we want to document that the token is an opaque integer (as is done now) or just an opaque object that supports equality comparisons? -- nosy: +eric.araujo ___ Python tracker

[issue967161] pty.spawn() enhancements

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: So #2489 broke at least one buildbot and this has to stay open for an enhancement request. Frankly it all confuses the hell out of me, could someone please explain in words of one syllable or less, thanks. -- nosy: +BreamoreBoy ___

[issue923697] SAX2 'property_encoding' feature not supported

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: This is still an issue so the sax handler module property_encoding attribute be set to what URL? -- ___ Python tracker ___

[issue17658] pythonw.exe crashes on opening IDLE

2013-05-25 Thread Roger Serwy
Roger Serwy added the comment: s/it's/its -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17658] pythonw.exe crashes on opening IDLE

2013-05-25 Thread Roger Serwy
Roger Serwy added the comment: I'm closing this issue due since it's root problem is a misconfigured environment variable. -- resolution: -> works for me status: pending -> closed ___ Python tracker _

[issue877121] configure detects incorrect compiler optimization

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Who is best placed to backport the fix? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue821862] ftplib: Strict RFC 959 (telnet in command channel)

2013-05-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 2.7, Python 3.3, Python 3.4 -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python

[issue814253] Grouprefs in lookbehind assertions

2013-05-25 Thread Matthew Barnett
Matthew Barnett added the comment: Issue #2636 resulted in the regex module, which supports variable-length look-behinds. I don't know how much work it would take even to put a limited fixed-length look-behind fix for this into the re module, so I'm afraid the issue must remain open. ---

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: The reason I switched from suggesting an attribute/property to a module level function is because we don't really support properties for process global state. That's why sys has so many getters in it - to make them properties, you would have to add a class objec

[issue814253] Grouprefs in lookbehind assertions

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed as a result of work done via #2636 or must it remain open? -- ___ Python tracker ___

[issue7940] re.finditer and re.findall should support negative end positions

2013-05-25 Thread Matthew Barnett
Matthew Barnett added the comment: I've attached a patch. -- keywords: +patch Added file: http://bugs.python.org/file30377/issue7940.patch ___ Python tracker ___ _

[issue766910] fix one or two bugs in trace.py

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Just a gentle bump. -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue749722] isinstance and weakref proxies.

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Good to see that people are really interested in this :( -- ___ Python tracker ___ ___ Python-bugs-l

[issue706406] fix bug #685846: raw_input defers signals

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Bump this as IIRC other issues discussing SIGINT handling have been processed recently. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Roger Serwy
Roger Serwy added the comment: @Brett, I agree that IDLE should not be using deprecated modules. I don't know all the ins and outs of the import machinery of Python, so I'll defer to your expertise in that area. :-) @Terry, I have never used this IDLE feature before, so I don't know all it's

[issue17314] Stop using imp.find_module() in multiprocessing

2013-05-25 Thread Richard Oudkerk
Richard Oudkerk added the comment: The unit tests pass with the patch already (if we don't delete the "import imp" line). What attributes will be set by init_module_attrs()? -- ___ Python tracker

[issue706263] print raises exception when no console available

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Is it really worth leaving this open? There's no consensus after ten years and it only impacts on Python 2.7. Mark Hammond made his view plain in msg15198, which is supported by the fact that a type has yet to be allocated. -- ___

[issue18065] set __path__ = [] for frozen packages

2013-05-25 Thread Brett Cannon
New submission from Brett Cannon: If you import the frozen __phello__ package, you will notice that __phello__.__path__ == ['__phello__']. While that seems innocuous, that could potentially lead to incorrect results if there just so happens to be a directory named __phello__ which contains a f

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-25 Thread Eli Bendersky
Eli Bendersky added the comment: Ethan, just a reminder to write that documentation... It's basically a stripped down version of PEP 435 (leave all the philosophy and history out), with a few concrete "reference" sections explaining the API precisely. -- _

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Brett Cannon
Brett Cannon added the comment: If you would prefer to keep using imp in IDLE to make management across versions easier I'm fine with that, just understand my goal is to deprecate imp in Python 3.4 (but won't remove it until Python 4 so people can write Python 2/3 compatible code, much like yo

[issue17314] Stop using imp.find_module() in multiprocessing

2013-05-25 Thread Brett Cannon
Brett Cannon added the comment: Catching the AttributeError is in case a loader is used that doesn't define init_module_attrs(). Since it will be new to Python 3.4 I can't guarantee that it will exist (in case someone doesn't subclass the proper ABC). -- __

[issue18062] m68k FPU precision issue

2013-05-25 Thread mirabilos
mirabilos added the comment: Stefan Krah dixit: >> fixing this in general would allow keeping the FPUCW on i387 unchanged too. > >Actually dtoa.c (which is used on i387) explicitly requires to change >the control word. Right. By fixing the “older” code, i386 is not required to change the FPUCW

[issue18062] m68k FPU precision issue

2013-05-25 Thread mirabilos
mirabilos added the comment: mirabilos dixit: >mirabilos added the comment: >Yes, that’s precisely what’s not working on the most widespread >emulator, at the very least. (I have working code for that, in >three(!) variants, but it just ignores those requests to change >precision.) Here’s the

[issue18061] m68k Python 3.3 test results

2013-05-25 Thread mirabilos
mirabilos added the comment: Serhiy Storchaka dixit: >About test_shutil failure. What filesystem are used? /dev/root on / type ext3 (rw,noatime,errors=remount-ro,user_xattr,acl,barrier=1,nodelalloc,data=ordered) >Do you run tests as root? Yes. >Is m68k big-endian? Yes: ILP32 big-endian, 2-

[issue18062] m68k FPU precision issue

2013-05-25 Thread Stefan Krah
Stefan Krah added the comment: I forgot to comment on this: > fixing this in general would allow keeping the FPUCW on i387 unchanged too. Actually dtoa.c (which is used on i387) explicitly requires to change the control word. Looking at the test results, it seems to me that a couple of tests

[issue18061] m68k Python 3.3 test results

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is m68k big-endian? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: 2.7 doesn't have the C struct fields which were mistakingly sized in test_sys. -- ___ Python tracker ___ ___

[issue18059] Add multibyte encoding support to pyexpat

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is still simple enough. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 2.7? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18059] Add multibyte encoding support to pyexpat

2013-05-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Then you should also remove the "Make it as simple as possible" comment :-/ -- ___ Python tracker ___

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Roger, please see Bretts opening message.) Brett, thanks for asking. We prefer to keep active codebases in sync as much as possible. Since new import stuff is not in 2.7, we will have to skip that. In EditorWindow.py, the patch deletes the _find_module functio

[issue18061] m68k Python 3.3 test results

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: About test_shutil failure. What filesystem are used? Do you run tests as root? -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be done now :) -- components: -Interpreter Core resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior versions: +Python 3.3 ___ Python tracker

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset c20b701c66fc by Antoine Pitrou in branch '3.3': Issue #18063: fix some struct specifications in the tests for sys.getsizeof(). http://hg.python.org/cpython/rev/c20b701c66fc New changeset 5c4ca109af1c by Antoine Pitrou in branch 'default': Issue #180

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread mirabilos
mirabilos added the comment: Okay, then I’ll ignore those for now. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you. This is just a bug in the test suite, so it's fine to fix it. -- ___ Python tracker ___ _

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread mirabilos
mirabilos added the comment: Include/unicodeobject.h has the same problem; its “state” member currently allocates 8 bit, which is only padded up to 16 bit. asciifields = "nnbP" makes that work too; result attached as after-patch-2.txt Will just changing the testsuite to match reality be enough

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread mirabilos
mirabilos added the comment: Sure (attached). -- Added file: http://bugs.python.org/file30374/after-patch-1.txt ___ Python tracker ___ ___

[issue16580] Add examples to int.to_bytes and int.from_bytes

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't call it the examples. Here is the examples: >>> (1234).to_bytes(2, 'big') b'\x04\xd2' >>> (1234).to_bytes(2, 'little') b'\xd2\x04' >>> (-1234).to_bytes(2, 'big', signed=True) b'\xfb.' >>> int.from_bytes(b'\xde\xad\xbe\xef', 'big') 3735928559 >>> int.fr

[issue18064] IDLE: add current directory to open_module

2013-05-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +Stop using imp in IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue18064] IDLE: add current directory to open_module

2013-05-25 Thread Terry J. Reedy
New submission from Terry J. Reedy: The point of File / Open Module is to look at the source for a module that has been, could be, or will be imported. The problem is that open_module is executed in the idle process while imports are executed in the user process, with the current directory pre

[issue18059] Add multibyte encoding support to pyexpat

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which implements first way. Yes, looks as followed encodings could not be supported at all: euc-kr, gb18030, iso2022-kr, utf-7, cp037, cp424, cp500, cp864, cp875, cp1026, cp1140, utf_32, utf_32_be, utf_32_le. -- keywords: +patch Adde

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, can you try applying the following patch: diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -703,13 +703,13 @@ class SizeofTest(unittest.TestCase): class C(object): pass check(

[issue18062] m68k FPU precision issue

2013-05-25 Thread mirabilos
mirabilos added the comment: > > We do not want to change it to 64-bit because it’s not supported > > in all environments. > Does this also apply to changing the precision temporarily? Yes, that’s precisely what’s not working on the most widespread emulator, at the very least. (I have working

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread mirabilos
mirabilos added the comment: >>> struct.calcsize("PPnP5Pb") 37 >>> struct.calcsize("PPnP5Pi") 40 >>> struct.calcsize("PPnP5Pb0P") 38 >>> struct.calcsize("PPnP5Pi0P") 40 I already offered to re-run tests in verbose mode “on request” if needed, but the results.txt I attached to issue18061 contain

[issue18062] m68k FPU precision issue

2013-05-25 Thread Stefan Krah
Stefan Krah added the comment: > We do not want to change it to 64-bit because it’s not supported in all > environments. Does this also apply to changing the precision temporarily? Because that is what happens for other platforms, see Include/pyport.h: HAVE_PY_SET_53BIT_PRECISION _PY_SET_53BI

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suppose it's in SizeofTest specifically (in the future, please quote more detailed test information; you can get it by replaying a test in verbose mode, e.g. "./python -m test -v test_sys"). Can you post the output of: >>> struct.calcsize("PPnP5Pb") >>> st

[issue17936] O(n**2) behaviour when adding/removing classes

2013-05-25 Thread Guido van Rossum
Guido van Rossum added the comment: I can't think of a use for the order of __subclasses__ so no objection here. — Sent from Mailbox for iPad On Sat, May 25, 2013 at 6:16 AM, Antoine Pitrou wrote: > Antoine Pitrou added the comment: > Note that making tp_subclasses a dict makes the __subclasse

[issue16580] Add examples to int.to_bytes and int.from_bytes

2013-05-25 Thread W. Owen Parry
W. Owen Parry added the comment: Patch adding examples + tests for equivalence. Comments appreciated. In particular, I'm not sure that the from_bytes example is simple enough to be useful: def from_bytes(bytes, byteorder, signed=False): if byteorder == 'little': little_ordered = li

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread mirabilos
mirabilos added the comment: Yes, that's in test_sys. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > ② This one is pretty severe: AssertionError: 42 != 44 : wrong size for > : got 42, expected 44 What is the context? test_sys? -- nosy: +pitrou ___ Python tracker __

[issue18061] m68k Python 3.3 test results

2013-05-25 Thread mirabilos
mirabilos added the comment: OK sure; I put the two I identified already into issue18062 and issue18063; we can then retry here after those get fixed (I’ll just resend results from a patched tree then). -- ___ Python tracker

[issue18063] m68k struct alignment issue vs. PyException_HEAD

2013-05-25 Thread mirabilos
New submission from mirabilos: Hi, splitting off issue18061 by request of pitrou: struct alignment issue: PyException_HEAD misses explicit alignment instruction; uses invalid (non-portable) alignment assumptions. ABI change on m68k. See issue18061 for details. -- components: Interpre

[issue18062] m68k FPU precision issue

2013-05-25 Thread mirabilos
New submission from mirabilos: Hi, splitting off issue18061 by request of pitrou: FPU precision issue: MC68881 FPU, similar to Intel 80387, uses 80-bit precision internally. We do not want to change it to 64-bit because it’s not supported in all environments. Can probably be reproduced on i38

[issue18061] m68k Python 3.3 test results

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Could you a separate bug entry for each class of issues? It will make things more manageable. -- ___ Python tracker ___ ___

[issue18061] m68k Python 3.3 test results

2013-05-25 Thread mirabilos
New submission from mirabilos: Hi! As a followup to http://bugs.python.org/issue17237 I took the tree of Python 3.3.1 I had compiled already, with the patch that was eventually committed for issue17237, and ran the testsuite. Since I used configure flags to get it compiled quickly, it probabl

[issue18040] SIGINT catching regression on windows in 2.7

2013-05-25 Thread Tim Golden
Tim Golden added the comment: My initial reaction is that, whether the 2.7 behaviour is faulty or not, I can't reproduce the "correct" behaviour on any version of Windows going back to 2.4. Take the attached Python file issue18040.py and run "c:\pythonxx\python.exe -i issue18040.py" for any ve

[issue18059] Add multibyte encoding support to pyexpat

2013-05-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I guess GB18030 can't be supported at all? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This doesn't make any sense. Once you've exposed an API that gives > out a value for this, you can't change the implementation in a way > that doesn't involve handing out a value... in which case you can just > as easily set it as an attribute. Because it may

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Phillip J. Eby
Phillip J. Eby added the comment: All that being said, I took out some time to get actual numbers, and found my original guesstimate of overhead was incorrect; it's only 3 times slower, not "orders of magnitude". ;-) And even on a relatively old machine, that 3 times slower amounts to an extra

[issue18060] Updating _fields_ of a derived struct type yields a bad cif

2013-05-25 Thread Lauri Alanko
New submission from Lauri Alanko: In Modules/_ctypes/stgdict.c:567 there is a suspicious line: stgdict->length = len; /* ADD ffi_ofs? */ That is, the length field of the stgdict is set to the number of fields in the immediate Structure class, and the number of fields in the parent cla

[issue17314] Stop using imp.find_module() in multiprocessing

2013-05-25 Thread Richard Oudkerk
Richard Oudkerk added the comment: Looks good to me. (Any particular reason for ignoring AttributeError?) -- ___ Python tracker ___ _

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Phillip J. Eby
Phillip J. Eby added the comment: Antoine Pitrou added the comment: > -1. Exposing a function allows to modify the underlying implementation > without breaking any API. This doesn't make any sense. Once you've exposed an API that gives out a value for this, you can't change the implementation i

[issue18059] Add multibyte encoding support to pyexpat

2013-05-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It is possible to add the support of most multibyte encodings to pyexpat. There are several ways to do this: 1. Generate maps with a special script and add generated file to repository. After adding or updating a multibyte encoding this file should be rege

[issue17545] os.listdir and os.path.join inconsistent on empty path

2013-05-25 Thread W. Owen Parry
W. Owen Parry added the comment: Patch as described above. Comments appreciated. -- keywords: +patch Added file: http://bugs.python.org/file30367/issue17545.patch ___ Python tracker

[issue672115] Assignment to __bases__ of direct object subclasses

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Has any work been done on typeobject.c to render this obsolete? Failing that are there any souls brave enough to take on typeobject.c? -- nosy: +BreamoreBoy ___ Python tracker __

[issue592703] HTTPS does not handle pipelined requests

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Bump. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: Trading correctness for speed is almost never a good idea. If people are worried about speed to that level, they can either bypass the public API and access the private attribute directly (after profiling their application to ensure the cache validity checks are

[issue639266] Tkinter sliently discards all backgrond Tcl errors

2013-05-25 Thread Mark Lawrence
Changes by Mark Lawrence : -- title: Tkinter sliently discards all Tcl errors -> Tkinter sliently discards all backgrond Tcl errors ___ Python tracker ___ _

[issue648658] xmlrpc can't do proxied HTTP

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Could someone take a look at this while investigating other xmlrpc issues e.g. #7727. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Please expose this as an attribute of the class or module, not as a > function. A function is orders of magnitude slower than attribute > access, and the entire point of exposing this is to allow caches to be > invalidated. -1. Exposing a function allows to m

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Phillip J. Eby
Phillip J. Eby added the comment: Please expose this as an attribute of the class or module, not as a function. A function is orders of magnitude slower than attribute access, and the entire point of exposing this is to allow caches to be invalidated. In order to be useful for cache invalidat

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9828c438889 by Łukasz Langa in branch 'default': Mention issue #16832 in Misc/NEWS http://hg.python.org/cpython/rev/d9828c438889 -- ___ Python tracker ___

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5b17d5ca2ff1 by Łukasz Langa in branch 'default': Fix #16832 - expose cache validity checking support in ABCMeta http://hg.python.org/cpython/rev/5b17d5ca2ff1 -- nosy: +python-dev ___ Python tracker

[issue7757] sys.path is incorrect when prefix is ""

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: There's so much detail provided that I think this should be easy for someone who understands C code. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Łukasz Langa
Łukasz Langa added the comment: Review the patch, please. Committing in 10... 9... 8... -- ___ Python tracker ___ ___ Python-bugs-list

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Łukasz Langa
Changes by Łukasz Langa : -- keywords: +patch Added file: http://bugs.python.org/file30366/issue16832.diff ___ Python tracker ___ ___

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > 1. Some of the cached entries may never be accessed again, so > recalculating them will be a waste > 2. The object graph may change again before they're next accessed, so > recalculating any entries at all will be waste Yup, hence the "cost/benefit compromise"

  1   2   >