[issue18054] Add more exception related assertions to unittest

2013-05-25 Thread Nick Coghlan
New submission from Nick Coghlan: When creating the error handling tests for the new ipaddress module, one of the things I added was an assertCleanError method on the test cases [1]. This is a wrapper around assertRaisesRegex which ensures that either no exception context is set, or if there

[issue12641] Remove -mno-cygwin from distutils

2013-05-25 Thread Roumen Petrov
Roumen Petrov added the comment: Oscar Benjamin wrote: [SNIP]The option was only ever meaningful in cygwin's gcc 3.x and was always an error in 4.x. May be . It seems to me flag was removed in GCC 4.5 . -- ___ Python tracker

[issue12641] Remove -mno-cygwin from distutils

2013-05-25 Thread Seppo Yli-Olli
Seppo Yli-Olli added the comment: Since Renata's ERRATA was unclear to whether or not this was *actually* removed (please point to a changeset if the option was removed): If the option is no longer required by Pidgin and that was the original reason to have it in the first, there's really no

[issue18032] set methods should specify whether they consume iterators lazily

2013-05-25 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18032 ___ ___ Python-bugs-list

[issue18033] Example for Profile Module shows incorrect method

2013-05-25 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18033 ___ ___ Python-bugs-list

[issue18035] telnetlib incorrectly assumes that select.error has an errno attribute

2013-05-25 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18035 ___ ___ Python-bugs-list

[issue18036] How do I create a .pyc file? FAQ entry is out of date

2013-05-25 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18036 ___ ___ Python-bugs-list

[issue18043] No mention of `match.regs` in `re` documentation

2013-05-25 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18043 ___ ___ Python-bugs-list

[issue18042] Provide enum.unique class decorator

2013-05-25 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18042 ___ ___ Python-bugs-list

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

2013-05-25 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18047 ___ ___ Python-bugs-list

[issue12641] Remove -mno-cygwin from distutils

2013-05-25 Thread Seppo Yli-Olli
Seppo Yli-Olli added the comment: ERRATA Misunderstood the meaning of ERRATA, please ignore my last post. Roumen Petrov wrote: Where is written that compiler is gcc ? Yes this is current distutils code but please review my set of patches I kinda like the using --target-help for finding out

[issue18046] Simplify and clarify logging internals

2013-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5629bf4c6bba by Vinay Sajip in branch 'default': Closes #18046: Simplified logging internals relating to levels and their names. Thanks to Alex Gaynor for the patch. http://hg.python.org/cpython/rev/5629bf4c6bba -- nosy: +python-dev

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

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is another approach to make tp_subclasses a dict, rather than a list. I'll let you benchmark and choose whichever you prefer :) -- nosy: +gvanrossum, rhettinger Added file: http://bugs.python.org/file30364/subclasses_dict.patch

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-05-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: critical - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17997 ___ ___

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

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: One question: I saw you clearing exceptions in the tp_clear() function, isn't it better to use PyErr_PrintUnraisable()? You're right, that would be better. I was just being lazy. -- ___ Python tracker

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

2013-05-25 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Looks good, I'll give it a spin. This is probably smarter then trying to do tricks with lists. One question: I saw you clearing exceptions in the tp_clear() function, isn't it better to use PyErr_PrintUnraisable()? Is there a guideline to when to

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: As for partial writes, I'm not sure if it's backwards compatible to turn them on by default, but it might be nice if the option were exposed. Partial writes may have less benefit in Python than in C since we'd have to reallocate and copy a string instead of

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2013-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 60310223d075 by Antoine Pitrou in branch 'default': Issue #8240: Set the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag on SSL sockets. http://hg.python.org/cpython/rev/60310223d075 -- nosy: +python-dev ___

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I should have fixed the original issue. If you want to see an option to enable partial writes, please open a separate issue. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed

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

2013-05-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) stage: test needed - needs patch versions: +Python 3.4 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7940

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2013-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7b47fb30169 by Eli Bendersky in branch '3.3': Issue #13612: handle unknown encodings without a buffer overflow. http://hg.python.org/cpython/rev/f7b47fb30169 New changeset 47e719b11c46 by Eli Bendersky in branch 'default': Issue #13612: handle

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2013-05-25 Thread Eli Bendersky
Eli Bendersky added the comment: A few notes: 1. If by C API version you mean PyExpat_CAPI_MAGIC, I'm not sure what difference that makes. It has never been updated and it's also being used only in _elementtree. Since the latter is statically compiled against pyexpat, I don't see a reason to

[issue12641] Remove -mno-cygwin from distutils

2013-05-25 Thread Oscar Benjamin
Oscar Benjamin added the comment: On 25 May 2013 04:43, Renato Silva rep...@bugs.python.org wrote: Renato Silva added the comment: Hi Oscar! Sorry, I just meant to correct this information: in gcc 4.x it produces an error preventing build. Even if it doesn't do anything useful, still GCC

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

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that making tp_subclasses a dict makes the __subclasses__ return order undefined. I don't think I've ever seen __subclasses__ actually used, so I'm not convinced it's a problem, but perhaps it's worth floating the idea on python-dev. --

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests were duplicated. There is no Misc/NEWS entry. I think a buffer overflow is critical enough for backporting. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13612

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2013-05-25 Thread Eli Bendersky
Eli Bendersky added the comment: Oh, I didn't notice that your patches had duplication in the tests. Fixed now. I'll wait to see what unfolds for the Misc/NEWS discussion on python-committers. -- ___ Python tracker rep...@bugs.python.org

[issue12641] Remove -mno-cygwin from distutils

2013-05-25 Thread Roumen Petrov
Roumen Petrov added the comment: Oscar, 10x for info I know how to find information for this particular case . So you last post just confrim what I wrote before two years ( 2011-08-03 http://bugs.python.org/issue12641#msg141614 ) Go ahead and just remove flag. Roumen --

[issue1747670] Limiting data copy in xmlrpclib

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you have any benchmarks? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1747670 ___

[issue11084] Serialization of decimal.Decimal to XML-RPC

2013-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11084 ___ ___

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Łukasz Langa
Łukasz Langa added the comment: This will be useful for PEP 443. From Nick's comment on python-dev (http://mail.python.org/pipermail/python-dev/2013-May/126535.html): Given the global nature of the cache invalidation, it may be better as a module level abc.get_cache_token() function.

[issue18053] Add checks for Misc/NEWS in make patchcheck

2013-05-25 Thread Brett Cannon
Brett Cannon added the comment: There isn't really a maintainer. I originally wrote it to help out new developers, but no one owns it. We just let people submit fixes they find useful and add them. -- components: +Demos and Tools versions: -Python 2.7, Python 3.1, Python 3.2, Python

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Rather than exposing the cache token (which looks like an implementation detail), you may allow third-party code to register a handler which will be called when an ABC's registrations are modified: def abc_handler(abc): Called when the concrete class

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2013-05-25 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1054041 ___ ___ Python-bugs-list mailing list

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

2013-05-25 Thread Brett Cannon
Brett Cannon added the comment: So I think I have come up with a way to expose a new method that makes this use-case doable and in a sane manner. Richard, let me know what you think so that I know that this makes sense before I commit myself to the new method (init_module_attrs()):: ---

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Brett Cannon
New submission from Brett Cannon: As part of issue #14797 I'm trying to remove all uses of imp.find_module/load_module since the API is so bad in the face of importers. See the attached patch to replace the one use in IDLE. It should actually be more accepting of alternative importers than

[issue14797] Deprecate imp.find_module()/load_module()

2013-05-25 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- dependencies: +Stop using imp in IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14797 ___ ___

[issue18020] html.escape 10x slower than cgi.escape

2013-05-25 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18020 ___ ___ Python-bugs-list mailing list

[issue18056] Document importlib._bootstrap.NamespaceLoader

2013-05-25 Thread Brett Cannon
New submission from Brett Cannon: Is there a reason NamespaceLoader is undocumented? -- assignee: barry components: Documentation keywords: 3.3regression messages: 189969 nosy: barry, brett.cannon, eric.smith priority: normal severity: normal stage: needs patch status: open title:

[issue18057] Register NamespaceLoader with importlib.abc.Loader

2013-05-25 Thread Brett Cannon
New submission from Brett Cannon: EOM -- assignee: brett.cannon components: Library (Lib) messages: 189970 nosy: barry, brett.cannon, eric.smith priority: normal severity: normal stage: needs patch status: open title: Register NamespaceLoader with importlib.abc.Loader type: behavior

[issue7727] xmlrpc library returns string which contain null ( \x00 )

2013-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7727 ___ ___ Python-bugs-list

[issue18058] Define is_package for NamespaceLoader

2013-05-25 Thread Brett Cannon
New submission from Brett Cannon: Is there a reason that is_package() is not defined for NamespaceLoader? If it's just an oversight then adding it would let -m would work with namespace packages. The other abstract methods on InspectLoader can also be implemented or raise ImportError as

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: And when I say originally I mean after I saw how ABCs already implemented this capability :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16832 ___

[issue18055] Stop using imp in IDLE

2013-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +kbk, roger.serwy, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18055 ___

[issue7760] ctypes: use_errno=True does not work

2013-05-25 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: use_errno=True does not work - ctypes: use_errno=True does not work ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7760 ___

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I thought about that originally, but there's only ever one object graph for the process, and as soon as you break any one edge in that graph you pretty much invalidate anything based on caching traversal results. Ah, I was forgetting that a ABC registration

[issue17934] Add a frame method to clear expensive details

2013-05-25 Thread STINNER Victor
STINNER Victor added the comment: I may be safer to initialize f-f_executing to 1 at the creation of the frame, and only change its value to 0 when the execution is done. (The name of the attribute may also be changed.) I don't know if it is possible, but a frame should not be cleared just

[issue16832] Expose cache validity checking support in ABCMeta

2013-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, but that's the other trick: we *don't know* if we need to recalculate our whole cache when the object graph changes. 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

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

[issue16832] Expose cache validity checking support in ABCMeta

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

[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 rep...@bugs.python.org http://bugs.python.org/issue16832 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue7757

[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

[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 rep...@bugs.python.org

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue648658

[issue639266] Tkinter sliently discards all backgrond Tcl errors

2013-05-25 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- title: Tkinter sliently discards all Tcl errors - Tkinter sliently discards all backgrond Tcl errors ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue639266

[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

[issue592703] HTTPS does not handle pipelined requests

2013-05-25 Thread Mark Lawrence
Mark Lawrence added the comment: Bump. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue592703 ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue17545

[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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue17314 ___

[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

[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

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

[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 rep...@bugs.python.org http://bugs.python.org/issue18059 ___

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18061 ___

[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

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

[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 rep...@bugs.python.org

[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 class 'BaseException': got 42, expected 44 What is the context? test_sys? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue18063 ___ ___ Python-bugs-list mailing list

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

[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 rep...@bugs.python.org wrote: Antoine Pitrou added the comment: Note that making tp_subclasses a dict

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

[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

[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 contains them for test_sys

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

[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

[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

[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

[issue18064] IDLE: add current directory to open_module

2013-05-25 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- dependencies: +Stop using imp in IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18064 ___ ___

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18063 ___

[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 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 rep...@bugs.python.org http://bugs.python.org/issue18063 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue18063 ___ ___

[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

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue18061

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue18059 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue18063 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org http://bugs.python.org/issue18059 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org http://bugs.python.org/issue18063 ___

[issue18061] m68k Python 3.3 test results

2013-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is m68k big-endian? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18061 ___ ___ Python-bugs-list mailing

  1   2   >