[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread James Henstridge
Changes by James Henstridge : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread James Henstridge
James Henstridge added the comment: Benjamin: if you are after a use case for this feature, see https://code.djangoproject.com/ticket/15901 In Django, there are multiple database backends, each of which currently catch the adapter's DatabaseError and reraise it as Django's DatabaseError so t

[issue14187] add "function annotation" entry to Glossary

2012-05-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: The third paragraph should be dropped. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue14785] Add sys._debugmallocstats()

2012-05-11 Thread Dave Malcolm
New submission from Dave Malcolm : I'm attaching a patch which generalizes the at-exit PYTHONMALLOCSTATS memory usage report, so that it's available in a regular build and can be triggered from Python, by calling: sys._debugmallocstats() This can be useful when debugging memory usage issues

[issue14187] add "function annotation" entry to Glossary

2012-05-11 Thread Éric Araujo
Éric Araujo added the comment: Thanks, LGTM. -- title: add "annotation" entry to Glossary -> add "function annotation" entry to Glossary ___ Python tracker ___

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2012-05-11 Thread stefan brunthaler
stefan brunthaler added the comment: So I took a close look to what the performance problem was. Many of the benchmarks used by the perf.py py3k benchmarks use function calls for which there are no optimized derivatives available. In this case the function trying to do the quickening (aptly c

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-11 Thread Ned Deily
Ned Deily added the comment: A patch would be great. I don't have a strong opinion about the issue one way or another. I suppose it would simplify things for Python 3 users if the clipboard results were returned properly in the default case when no 'type' argument is passed to clipboard_get

[issue14419] Faster ascii decoding

2012-05-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- dependencies: -Amazingly faster UTF-8 decoding superseder: -> Amazingly faster UTF-8 decoding ___ Python tracker ___

[issue14419] Faster ascii decoding

2012-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Okay, thank you! -- dependencies: +Amazingly faster UTF-8 decoding resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue14187] add "annotation" entry to Glossary

2012-05-11 Thread Chris Rebert
Chris Rebert added the comment: Here's an actual patch. -- keywords: +patch Added file: http://bugs.python.org/file25544/func_annotation.patch ___ Python tracker ___ ___

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2012-05-11 Thread stefan brunthaler
Changes by stefan brunthaler : Added file: http://bugs.python.org/file25543/20120510-vanilla-perf.txt ___ Python tracker ___ ___ Python-bugs-l

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2012-05-11 Thread stefan brunthaler
Changes by stefan brunthaler : Added file: http://bugs.python.org/file25542/20120511-inca-perf.txt ___ Python tracker <http://bugs.python.org/issue14757> ___ ___ Pytho

[issue14757] INCA: Inline Caching meets Quickening in Python 3.3

2012-05-11 Thread stefan brunthaler
stefan brunthaler added the comment: This is the updated patch file that fixes the performance issues measurable using the official perf.py py3k test suite. -- Added file: http://bugs.python.org/file25541/20120511-inca.patch ___ Python tracker

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-11 Thread Thomas Kluyver
Thomas Kluyver added the comment: Thanks, Ned. Does it seem like a good idea to test the windowing system like that, and default to UTF8_STRING if it's x11? So far, I've not found any case on X where STRING works but UTF8_STRING doesn't. If it seems reasonable, I'm happy to have a go at maki

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-11 Thread Ned Deily
Ned Deily added the comment: Most likely the best way to determine the windowing system is to use the "tk windowingsystem" command (http://www.tcl.tk/man/tcl8.5/TkCmd/tk.htm#M10), so something like this: root = tkinter.Tk() root.call(('tk', 'windowingsystem')) As documented, the call

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are definitely platform differences. As I noted, the original example works fine on Windows. However >>> root.clipboard_get(type='STRING') 'abc€' >>> root.clipboard_get(type='UTF8_STRING') Traceback (most recent call last): File "", line 1, in roo

[issue4111] Add Systemtap/DTrace probes

2012-05-11 Thread Dave Malcolm
Dave Malcolm added the comment: Issue #13405 covers DTrace; I've taken the liberty of also opening issue #14776 to cover SystemTap. I hope that once one of these is in the tree it will be easier to get the other one in. -- ___ Python tracker

[issue14776] Add SystemTap static markers

2012-05-11 Thread Dave Malcolm
Changes by Dave Malcolm : Added file: http://bugs.python.org/file25540/devguide-systemtap-2012-05-11-001.patch ___ Python tracker ___ ___ Pyt

[issue14776] Add SystemTap static markers

2012-05-11 Thread Dave Malcolm
Dave Malcolm added the comment: Thanks Eric, Antoine and Mark. I'm attaching two new patches: a replacement patch for cpython, and a new patch for the devguide I've moved the docs to the dev guide, starting a new "Debugging and Instrumentation" section there. Changes to the cpython patch:

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +Yury.Selivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14625] Faster utf-32 decoder

2012-05-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Unicode nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue14624] Faster utf-16 decoder

2012-05-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Unicode nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue14738] Amazingly faster UTF-8 decoding

2012-05-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Martin for review, which has allowed me to make a quality patch, and for promotion of further research. Thanks Antoine for review, benchmarks, commit, and for the original optimization, which served as the basis for my patch. --

[issue14784] Re-importing _warnings changes warnings.filters

2012-05-11 Thread Brett Cannon
New submission from Brett Cannon : If you run test.test_warnings it reports that warnings.filters changed. If you comment out the import of c_warnings in that module, the warning goes away (this happens with running on tests). It looks like _PyWarnings_Init() itself doesn't trigger a reprocess

[issue14419] Faster ascii decoding

2012-05-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since the patch commited as part of new UTF-8 decoder, this issue can be closed (issue14738). -- ___ Python tracker ___

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-11 Thread Thomas Kluyver
Thomas Kluyver added the comment: OK, after a quick bit of reading, I see why I'm confused: the clipboard actually works by requesting the text from the source program, so where you copy it from makes a difference. In my case, copying from firefox gives 'abc\\u20ac', and copying from Geany gi

[issue14625] Faster utf-32 decoder

2012-05-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25538/decode_utf32_b_2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue14625] Faster utf-32 decoder

2012-05-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patches updated to stylistic conformity of the UTF-8 decoder. Patch B is significantly accelerated for aligned input data (i. e. almost always), especially for natural order. The UTF-32 decoder can now be faster than ASCII decoder! May be it is time to

[issue14624] Faster utf-16 decoder

2012-05-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch updated to stylistic conformity of the UTF-8 decoder. The decoding of the UCS2 non-surrogate characters a little speed up (+15%). -- Added file: http://bugs.python.org/file25536/decode_utf16_3.patch ___

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-11 Thread Ned Deily
Ned Deily added the comment: As is often the case with Tcl/Tk issues, there are platform differences. On OS X, with the two native Tcl/Tk implementations (Aqua Cocoa and Aqua Carbon), the examples work appear to work as is *and* type "UTF8_STRING" does not exist. The less commonly used X11

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-11 Thread Thomas Kluyver
Thomas Kluyver added the comment: On this computer, I see this from Tcl: $ wish % clipboard get abc\u20ac But here Python's following suit: >>> root.clipboard_get() 'abc\\u20ac' Which is odd, because as far as I know, my two computers run the same OS (Ubuntu 12.04) in the same configuration

[issue13959] Re-implement parts of imp in pure Python

2012-05-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 626d5c6fbd95 by Brett Cannon in branch 'default': Issue #13959: Have http://hg.python.org/cpython/rev/626d5c6fbd95 -- ___ Python tracker _

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue can be reproduced by pure Tcl/Tk: $ wish % clipboard get abc? % clipboard get -type STRING abc? % clipboard get -type UTF8_STRING abc€ Use `root.clipboard_get(type='UTF8_STRING')` in Python. I don't know whether it should just be documented (UTF8

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread James Oakley
James Oakley added the comment: Something like this perhaps? --- a/Lib/urllib/request.py Fri May 11 13:11:02 2012 -0400 +++ b/Lib/urllib/request.py Fri May 11 11:03:02 2012 -0700 @@ -135,16 +135,19 @@ _opener = None def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread George-Cristian Bîrzan
George-Cristian Bîrzan added the comment: I have a patch, with tests, but no Internet on my computer so going out, will post it when I get back/my Internet comes back -- ___ Python tracker ___

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread George-Cristian Bîrzan
George-Cristian Bîrzan added the comment: I posted on python dev that this would slow exception checking considerably so that is a concern. As for possible bugs, this has been working in the 2 branch for a while now, so I don't think that is the biggest issue. As for possible use cases, writi

[issue13959] Re-implement parts of imp in pure Python

2012-05-11 Thread Brett Cannon
Brett Cannon added the comment: Yes. And the [:] copies the list so I don't accidentally mutate in-place (did that once already, so now I'm just being paranoid; I doubt I need it hardly anywhere I don't do +=). As for using SOURCE_SUFFIXES[0], I'm done following the ported code. I really do

[issue14783] Update int() docstring from manual

2012-05-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- assignee: -> docs@python components: +Documentation nosy: +docs@python, tshepang ___ Python tracker ___

[issue13959] Re-implement parts of imp in pure Python

2012-05-11 Thread Eric Snow
Eric Snow added the comment: Question on this one: @@ -126,7 +131,7 @@ def load_compiled(name, pathname, file=N # XXX deprecate def load_package(name, path): if os.path.isdir(path): -extensions = _bootstrap._SOURCE_SUFFIXES + [_bootstrap._BYTECODE_SUFFIX] +extensions =

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Basically, someone needs to produce a patch and we can go from there. -- ___ Python tracker ___

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What about a patch to handle a directory store passed through the > ca_certs parameter? As it stands now, it's impossible to load the > distribution-supplied cert store on openSUSE. I'm afraid it would still be a new feature, unsuitable for a bugfix release.

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > perhaps it could just work in a simple, consistent way? That would be best obviously. But as Benjamin explained it's quite delicate to make it work while avoiding pitfalls where code involved in exception checking may itself fail with arbitrary errors - say

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread James Oakley
James Oakley added the comment: Fair enough. What about a patch to handle a directory store passed through the ca_certs parameter? As it stands now, it's impossible to load the distribution-supplied cert store on openSUSE. -- ___ Python tracker

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread andrew cooke
Changes by andrew cooke : -- nosy: -acooke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread andrew cooke
andrew cooke added the comment: perhaps it could just work in a simple, consistent way? in my original report i wondered whether there was a significant performance hit. but so far the objections against fixing this seem to be (1) a lawyer could be convinced the current behaviour is consiste

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps ABCMeta could raise a UserWarning when creating an Exception subclass? -- nosy: +pitrou ___ Python tracker ___

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think being able to catch exception with ABCs is esssentially useless. The originally stated "usecase" can be simply solved by putting classes into a tuple and putting that in the except clause. In general, the whole abc machinary causes lots of code whi

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-11 Thread Skip Montanaro
Skip Montanaro added the comment: > Skip: I used the nosy field autocomplete which is based on the experts file > in the devguide; I can mark you "retired" in that file so that your name does > not show up in autocomplete (but humans will still know that you might be > contacted when all else

[issue13959] Re-implement parts of imp in pure Python

2012-05-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset b81ddaf0db47 by Brett Cannon in branch 'default': Issue #13959: Deprecate imp.get_suffixes() for new attributes on http://hg.python.org/cpython/rev/b81ddaf0db47 -- ___ Python tracker

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson type: behavior -> enhancement versions: -Python 3.2 ___ Python tracker ___ __

[issue14732] PEP 3121 Refactoring applied to _csv module

2012-05-11 Thread Éric Araujo
Éric Araujo added the comment: Skip: I used the nosy field autocomplete which is based on the experts file in the devguide; I can mark you "retired" in that file so that your name does not show up in autocomplete (but humans will still know that you might be contacted when all else fails, unl

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> needs patch versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread Éric Araujo
Éric Araujo added the comment: Sorry, by our policy this change is a new feature and cannot go into stable versions. -- nosy: +eric.araujo versions: +Python 3.3 ___ Python tracker

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread James Oakley
James Oakley added the comment: load_verify_locations() is not available in Python 2.x. It was added in 3.x. Also, there is no way to load a directory-based certificate store at all in Python 2.x, which is why the bug was opened. -- ___ Python trac

[issue14781] Default to year 1 in strptime if year 0 has been specified

2012-05-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue14782] Tab-completion of classes displays opening paren

2012-05-11 Thread Éric Araujo
Éric Araujo added the comment: This annoys me too, for all callable objects actually (e.g. I type "help(someprefix" then Tab then I have to delete the "(" before typing ")" and Enter), but I think it was a deliberate change. I may have the original bug report open in a browser tab at home, I

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.3, Win 7, Idle >>> root.clipboard_get() 'abc€' after cut from here -- nosy: +terry.reedy ___ Python tracker ___ _

[issue14782] Tab-completion of callables displays opening paren

2012-05-11 Thread Éric Araujo
Changes by Éric Araujo : -- title: Tab-completion of classes displays opening paren -> Tab-completion of callables displays opening paren ___ Python tracker ___

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Guido van Rossum
Guido van Rossum added the comment: I agree it's a bug and should be fixed. It's too confusing that there would be two slightly different interpretations of isinstance/issubclass where the isinstance() and issubclass() would be using the extended interpretation but the except clause would us

[issue14728] trace function not set, causing some Pdb commands to fail

2012-05-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since this pdb issue is a continuation of #13183 and repeals a part of that issue's patch, I nosy'ed the contributors to that issue. -- nosy: +georg.brandl, loewis, neologix, orsenthil, terry.reedy stage: -> patch review _

[issue14783] Update int() docstring from manual

2012-05-11 Thread Terry J. Reedy
New submission from Terry J. Reedy : int.__doc__ starts "int(x[, base]) -> integer". That is not exactly correct as x is not required and base is only allowed if x is a string. The 3.3 manual fixes both problems with "int([number | string[, base]])" I actually think the rest of the docstring m

[issue14764] importlib.test.benchmark broken

2012-05-11 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14764] importlib.test.benchmark broken

2012-05-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset e1d0535372d0 by Brett Cannon in branch 'default': Issue #14764: Update importlib.test.benchmark to work in a world where http://hg.python.org/cpython/rev/e1d0535372d0 -- nosy: +python-dev ___ Python trac

[issue14776] Add SystemTap static markers

2012-05-11 Thread Mark Wielaard
Mark Wielaard added the comment: Just a comment that newer [eu]-readelf -n will provide a nicer view of the sdt ELF notes. You might want to suggest that in the documentation. e.g. $ eu-readelf -n /usr/lib64/libpython2.7.so Note section [ 1] '.note.gnu.build-id' of 36 bytes at offset 0x190:

[issue14776] Add SystemTap static markers

2012-05-11 Thread Mark Wielaard
Changes by Mark Wielaard : -- nosy: +mjw ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue14779] test_buffer fails on OS X universal 64-/32-bit builds

2012-05-11 Thread Stefan Krah
Stefan Krah added the comment: The tests for arrays with suboffsets literally need sizeof(void *). I don't think C guarantees SIZEOF_VOID_P == SIZEOF_SIZE_T. If HAVE_SSIZE_T is defined in pyport.h, AFAICS no such check is made. Of course these concerns may be entirely theoretical. :)

[issue14782] Tabcompletion of classes with static methods and __call__ has extra bracket

2012-05-11 Thread w.pettersson
New submission from w.pettersson : With tab completion enabled via rlcompleter and readline, tab-completion will assume anything that is callable (by callable(val)) is going to be called. For example, the below code defines a class "CCC" that is callable and has a static function. However, typ

[issue14781] Default to year 1 in strptime if year 0 has been specified

2012-05-11 Thread Hynek Schlawack
Hynek Schlawack added the comment: I have to correct myself: It's _not_ what C's strptime does. C's strptime returns via "struct tm" which saves only "years since 1900" in the "tm_year" field. -- ___ Python tracker

[issue14781] Default to year 1 in strptime if year 0 has been specified

2012-05-11 Thread Hynek Schlawack
Hynek Schlawack added the comment: Well, that's what C's strptime does. But that would be a feature request (if it works as documented, it's no bug). :) I've transformed this issue accordingly. But as a feature request, it won't go into 2.7 unless I'm missing something. -- nosy: +bel

[issue14588] PEP 3115 compliant dynamic class creation

2012-05-11 Thread Éric Araujo
Éric Araujo added the comment: Implementing in pure Python seems to have a lot of pros and no con to me. -- ___ Python tracker ___ __

[issue14772] Return destination values in some shutil functions

2012-05-11 Thread Éric Araujo
Éric Araujo added the comment: In distutils, both copy_file and copy_tree return the destination path(s), which is needed by many commands. In packaging there is code to compute and return those paths, as shutil functions return None; I’d love to remove that code. The bug I was thinking abo

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread Éric Araujo
Changes by Éric Araujo : -- title: ABC registration of Exceptions -> Catching virtual subclasses in except clauses versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ _

[issue14781] strptime fails for year 0

2012-05-11 Thread Matthias Meyer
Matthias Meyer added the comment: but ISO 8601 specifies year 0 to be identical with 1 BC. Shouldn't it default to that, then? -- ___ Python tracker ___ ___

[issue14781] strptime fails for year 0

2012-05-11 Thread Hynek Schlawack
Hynek Schlawack added the comment: Hello Matthias, %Y for strptime is defined as: "Year with century as a decimal number [0001,] (strptime), […]" so it works as specified. And actually that's correct as there was no year zero (http://en.wikipedia.org/wiki/0_(year)). :) -- nosy:

[issue14779] test_buffer fails on OS X universal 64-/32-bit builds

2012-05-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, no need to ever use SIZEOF_VOID_P. sys.maxsize should always tell you whether the build is 32-bit or 64-bit. -- nosy: +mark.dickinson, pitrou ___ Python tracker ___

[issue14781] strptime fails for year 0

2012-05-11 Thread Matthias Meyer
New submission from Matthias Meyer : Hi folks, What I did: import time time.strptime('-10-03T15:35:05Z','%Y-%m-%dT%H:%M:%SZ') What I expected: time.struct_time(tm_year=0, tm_mon=10, tm_mday=3, tm_hour=15, tm_min=35, tm_sec=5, tm_wday=2, tm_yday=276, tm_isdst=-1) What I got: Traceback (mos

[issue14743] on terminating, Pdb debugs itself

2012-05-11 Thread Xavier de Gaye
Xavier de Gaye added the comment: The previous patch only fixed the problem when the debugger is started from its main function. Uploaded new patch pdb_botframe_default_3.patch that fixes pdb.main and the pdb.run* function. This patch also corrects pdb.runcall(): in the following session, the 3

[issue14779] test_buffer fails on OS X universal 64-/32-bit builds

2012-05-11 Thread Stefan Krah
Stefan Krah added the comment: The sysconfig docs say: "configuration variables relevant for the current platform" If get_config_var('SIZEOF_VOID_P') is meaningless for universal builds, then IMO it should return None. None would then mean either "not found" or "irrelevant". -- __