Re: [Python-Dev] Import Fails in setup.py On Android

2015-02-02 Thread Frank, Matthew I
There’s now (as of a couple days ago) a python mobile-sig (https://mail.python.org/mailman/listinfo/mobile-sig). While that group is much smaller than python-dev and probably not as knowledgeable about the Cpython source base, that’s where you’re going to find folks who have a vested interest

Re: [Python-Dev] Undefined dlopen When Building Module On Android

2015-01-24 Thread Frank, Matthew I
Android's dlopen() works slightly differently than the normal Unix dlopen() in at least two different ways. I haven't seen your particular problem, but that's probably because I'm cross-building CPython (building everything I need on a Linux machine, and then copying the install directory to th

[Python-Dev] Cross compiling Python (for Android)

2014-10-23 Thread Frank, Matthew I
This email is about my experience getting CPython (3.4.1) to cross-compile and run on x86 Android (4.4.2 with sdk 19 and ndk-r9). I know that Android is not a supported architecture (and I won't regale you with stories about the complete locale and mbstowcs support I had to borrow from FreeBSD to g

Re: [Python-Dev] Hashing proposal: 64-bit hash

2012-01-28 Thread Frank Sievertsen
b ram. H_dypmRNWgOxiaaG A_ceO8B4Q2eKfabi S_kpgdB3tUFJiaae H_dypmRNWgOxiaaG D_FYzdys3H8qbaba 0_pOwRq15h8vbabO S_kpgdB3tUFJiaae __mdKp1GvI_fcaaM 6_U3_B0pJT1UsaaW 4_1GnK9BmLj9naa5 __X7hMeAOpACdaaw B_7pm.T62SiLlaai I_HSdl0axd8tmaae T_Dv3LwayACpdaaO

Re: [Python-Dev] Hashing proposal: 64-bit hash

2012-01-27 Thread Frank Sievertsen
4-bit hash-collisions. But I managed to do so and created strings with a length of 16 (6-bit)-characters (a-z, A-Z, 0-9, _, .). Even 14 characters would have been enough. You need less than twice as many characters for the same effect as in the 32bit-world.

Re: [Python-Dev] Counting collisions for the win

2012-01-24 Thread Frank Sievertsen
? That's no problem, because the dict doesn't really free a slot, it replaces the values with a dummy-values. These places are later reused for new values or the whole dict is recreated and resized. Frank ___ Python-Dev mailing list

Re: [Python-Dev] Counting collisions for the win

2012-01-23 Thread Frank Sievertsen
key)] < HERE 22th try: slot[i= i * 5 + 1 + (perturb >>= 5)] This is also why there is no conversion needed. It's a per-key/per-lookup rule. Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/

Re: [Python-Dev] Counting collisions for the win

2012-01-23 Thread Frank Sievertsen
already_done_and_return_seed(&prefix, &suffix); . (and don't cache in this case) . It's ugly, but if I understand this correctly, the GIL will protect us against race-conditions, right? Hello, internals experts: Would this work or is there a better way to do this w

Re: [Python-Dev] Counting collisions for the win

2012-01-20 Thread Frank Sievertsen
ly difficult to write software to create 32bit-collisions. Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Counting collisions for the win

2012-01-20 Thread Frank Sievertsen
nds on my pc. What to do now? I think it's not smart to reduce the number of allowed collisions dramatically AND count all slot-collisions at the same time. Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/l

Re: [Python-Dev] Counting collisions for the win

2012-01-20 Thread Frank Sievertsen
No, that's not true. Whenever a collision happens, other bits are mixed in very fast. Frank Am 20.01.2012 13:08, schrieb Victor Stinner: I'm surprised we haven't seen bug reports about it from users of 64-bit Pythons long ago A Python dictionary only uses the lower bits of a

Re: [Python-Dev] Counting collisions for the win

2012-01-20 Thread Frank Sievertsen
. Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Status of the fix for the hash collision vulnerability

2012-01-13 Thread Frank Sievertsen
n't know an effective way to get the prefix either, (if the application doesn't leak full hash(X) values). Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Status of the fix for the hash collision vulnerability

2012-01-13 Thread Frank Sievertsen
sure it's possible to make this less than a second. In fact, since hash(X) == hash(Y) is independent of the suffix [ hash(X) ^ suffix == hash(Y) ^ suffix ], a lot of precomputation (from the tail) is possible. So the question is: How difficult is it to guess t

[Python-Dev] Cheeseshop (was Re: Distutils2 scripts)

2010-10-11 Thread Frank Lomax
May the Pythonistas defeat the Pythoneers! May the Pythoneers vanquish the Pythonistas! Long live the Cheeseshop! it's-very-runny-actual-ly y'rs, -frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Platform extension for distutils on other interpreters than CPython

2010-02-23 Thread Frank Wierzbicki
of this is to make distutils bail out in more reasonable > manner than a compilation error in case this module is not going to > work on anything but CPython. FWIW this would be helpful for Jython too. -Frank ___ Python-Dev mailing list Py

Re: [Python-Dev] Mercurial move?

2010-02-23 Thread Frank Wierzbicki
On Mon, Feb 22, 2010 at 6:12 PM, Guido van Rossum wrote: > In that case congrats on beating us to the punch! > > Let us know how it goes. Will, do, thanks! -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] Mercurial move?

2010-02-22 Thread Frank Wierzbicki
On Mon, Feb 22, 2010 at 5:45 PM, Frank Wierzbicki wrote: > An advantage of being at PyCon :) > > We *may* be able to get on mercurial very fast -- since all of the > interested parties are here. I'm going to get an svndump now -- the > downside to this is whatever anyone chec

[Python-Dev] Mercurial move?

2010-02-22 Thread Frank Wierzbicki
I'll let you know how it goes. -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] First draft of "sysconfig"

2009-12-23 Thread Frank Wierzbicki
idn't digg on how Jython organizes things yet, any hint would be > appreciated) Jython does not yet support user site-packages, but I think the above looks like a fine structure for us when we get to implementing it. -Frank ___ Python-Dev mailing

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-11 Thread Frank Wierzbicki
re is a property on java.lang.System called "java.compiler" it is often empty. -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-11 Thread Frank Wierzbicki
(but won't hold my breath) that Python becomes more associated with the abstract language in time. -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 370 and IronPython

2009-10-09 Thread Frank Wierzbicki
trunk:6849M, Oct 9 2009, 14:19:04) \n[Java HotSpot(TM) Client VM (Apple Inc.)]' -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations

2009-09-23 Thread Frank Wierzbicki
.g. import nt, > a general problem w/ our tests from the days before we always ran tests w/ > the CPython std lib present). > > If you run into any problems let me know and I'd be happy to fix it to make > them more compatible. Great, thanks! I'll

Re: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations

2009-09-23 Thread Frank Wierzbicki
d by all implementations, potentially living apart from CPython. I have volunteered to put together a PEP on the subject, with Jessie Noller and Brett Canon are helping me out. When I have something worth showing, I'll start the real PEP process. -Frank __

Re: [Python-Dev] operator precedence of __eq__, __ne__, etc, if both object have implementations

2009-09-22 Thread Frank Wierzbicki
omparisons w/ logging. We've talked about this before, but now I'm reminded again -- do you happen to have a pointer to these tests just in case someone might want to grab them :) ? -Frank ___ Python-Dev mailing list Python-Dev@python.org http://m

Re: [Python-Dev] 3to2 0.1 alpha 1 released

2009-08-27 Thread Frank Wierzbicki
On Wed, Aug 26, 2009 at 3:29 PM, Joe Amenta wrote: > Hello all, > > I have released the first alpha version of 3to2 after finishing it for my > Google Summer of Code 2009(tm) project. Wow, congratulations! -Frank ___ Python-Dev mailing lis

Re: [Python-Dev] Two laments about CPython's AST Nodes

2009-08-21 Thread Frank Wierzbicki
t; the corresponding checks when converting to the internal AST. Great, I may give it a try, but changing the AST impl for Jython 2.6 will probably be my short term answer. -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/m

Re: [Python-Dev] Two laments about CPython's AST Nodes

2009-08-20 Thread Frank Wierzbicki
O > (you can't simultaneously create all nodes in the tree and glue > them together, so you have to create the tree in steps - which means > that it will be intermittently incorrect). That is quite reasonable, I'll withdraw gripe #1

[Python-Dev] Two laments about CPython's AST Nodes

2009-08-19 Thread Frank Wierzbicki
attempt to implement these things in CPython if there is support :) -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Updating tests in branches

2009-08-16 Thread Frank Wierzbicki
On Sun, Aug 16, 2009 at 11:45 AM, Benjamin Peterson wrote: > 2009/8/16 Frank Wierzbicki : > Usually, unless the test is for a bug we are backporting, new tests > only go in the trunk and py3k. Thanks! I'll do that from now on. -Frank

[Python-Dev] Updating tests in branches

2009-08-16 Thread Frank Wierzbicki
I plan on updating the Python unit tests with tests from Jython that turn out to be generic Python tests. Should I be putting these tests into trunk and 3k or should I also put them into the 2.6 and 3.1 maintenance branches as well? Regards, -Frank

Re: [Python-Dev] Tweaking AST lineno and col_offset

2009-08-14 Thread Frank Wierzbicki
ok with the change being 2.7/3.2 only. -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Tweaking AST lineno and col_offset

2009-08-14 Thread Frank Wierzbicki
On Fri, Aug 14, 2009 at 3:41 PM, Frank Wierzbicki wrote: >> It's at the bottom of the test file. :) You can add a handwritten test >> above that, though. > Heh -- how did I miss that :) ? -- I'll resubmit the patch with tests. Resubmitted http://bugs.python.org/issu

Re: [Python-Dev] Tweaking AST lineno and col_offset

2009-08-14 Thread Frank Wierzbicki
On Fri, Aug 14, 2009 at 3:11 PM, Benjamin Peterson wrote: > 2009/8/14 Frank Wierzbicki : >> On Fri, Aug 14, 2009 at 12:16 PM, Benjamin Peterson >> wrote: >> >>>> I have a local patch that changes the CPython col_offset to match >>>> Jython's, but

Re: [Python-Dev] Tweaking AST lineno and col_offset

2009-08-14 Thread Frank Wierzbicki
ssue6704 BTW - I would have added a test to test_ast.py, but above the test data it notes: EVERYTHING BELOW IS GENERATED # and I couldn't find the tool used for the generation. Does anyone know where that is? -Frank ___ Python-Dev mai

[Python-Dev] Tweaking AST lineno and col_offset

2009-08-14 Thread Frank Wierzbicki
hon's results to match (one way or another, things will be much easier for me to test if they match). Also, would this be a change that would be considered a backwards incompatibility? In other words, would patches like this be allowed in 2.6/3.1 or only in 2.7/3.2. Regards, -Frank ___

Re: [Python-Dev] Draft PEP 385: Migrating from svn to Mercurial

2009-06-08 Thread Frank Wierzbicki
e that Martin should decide based on what is best for him). -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Draft PEP 385: Migrating from svn to Mercurial

2009-06-08 Thread Frank Wierzbicki
ories, separate "forests", something else? Also, Martin suggested we migrate to Python's svn and then go along for the svn->hg ride. Does that still make sense now that some planning has been done? -Frank ___ Python-Dev mailin

Re: [Python-Dev] Holding a Python Language Summit at PyCon

2008-12-10 Thread Frank Wierzbicki
g to worry about. =) I'd be > happy to do that session. Sounds good, and I'm still happy to do the other session even with all of the heckling :) -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] Holding a Python Language Summit at PyCon

2008-12-04 Thread Frank Wierzbicki
On Thu, Dec 4, 2008 at 3:16 PM, Brett Cannon <[EMAIL PROTECTED]> wrote: > On Thu, Dec 4, 2008 at 12:05, Frank Wierzbicki <[EMAIL PROTECTED]> wrote: >> On Wed, Dec 3, 2008 at 10:31 AM, A.M. Kuchling <[EMAIL PROTECTED]> wrote: >>> 14:00 - 15:30 >>> ==

Re: [Python-Dev] Holding a Python Language Summit at PyCon

2008-12-04 Thread Frank Wierzbicki
lans for 3.0? > > Champion needed. I would like to champion this one. -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] bug or a feature?

2008-06-12 Thread Frank Wierzbicki
e non-string keys in these dictionaries. -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Assignment to None

2008-06-12 Thread Frank Wierzbicki
ging this behavior would hurt backwards compatibility too much. Maybe I'll rethink it in our 3.0 timeframe. If a convention like a trailing underscore is adopted we might move to that in the move to 3.0. -Frank ___ Python-Dev mailing list Python-De

Re: [Python-Dev] Documentation for ability to execute zipfiles & directories

2008-05-18 Thread Frank Wierzbicki
ove > unsupported modules and add Jython-specific ones. Speaking for Jython, this would be extremely helpful for us. Once we get caught up, better docs will become one of our most important priorities I think. -Frank ___ Python-Dev mailing list Python

Re: [Python-Dev] Optimization of Python ASTs: How should we deal with constant values?

2008-05-18 Thread Frank Wierzbicki
;t be a huge problem for us when the time comes. -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Reserving an arg space for Jython

2008-04-12 Thread Frank Wierzbicki
both* -X and -J, is that okay with the other devs? -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Reserving an arg space for Jython

2008-04-12 Thread Frank Wierzbicki
eryone likes this I will change the patch for CPython accordingly. How is -X is reserved for non-standard arguments -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mai

Re: [Python-Dev] Reserving an arg space for Jython

2008-04-11 Thread Frank Wierzbicki
served for Jython". > > > > Do we want it to be Jython-specific, or should it be available to any > alternative VM? I don't know if the IronPython folks need anything for > .NET, but maybe they would like one? -X was suggested on Jython&#

Re: [Python-Dev] Reserving an arg space for Jython

2008-04-11 Thread Frank Wierzbicki
Patch is here: http://bugs.python.org/issue2617 -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Reserving an arg space for Jython

2008-04-11 Thread Frank Wierzbicki
x27;d love to dust off my C skills and upload a patch, I doubt I would cause harm in this area of Python :) -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org

[Python-Dev] Reserving an arg space for Jython

2008-04-11 Thread Frank Wierzbicki
future Python). So what do guys say? Can we hava -J? I don't think it is being used yet... -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/o

Re: [Python-Dev] Google Summer of Code 2007

2007-03-07 Thread Frank Wierzbicki
On 3/7/07, James Tauber <[EMAIL PROTECTED]> wrote: > I would *strongly* encourage the submission of some Jython projects > under the PSF umbrella. Great! I'll do my best to get some submitted. -Frank ___ Python-Dev mailing list Pyth

Re: [Python-Dev] Google Summer of Code 2007

2007-03-07 Thread Frank Wierzbicki
> particularly encourage python-devers to participate. Just to be sure -- Jython is under the umbrella of the PSF for the purposes of the SoC, right? Thanks, -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/list

Re: [Python-Dev] OT: World's oldest ritual discovered. Worshipped the python 70, 000 years ago

2006-12-02 Thread Frank Lomax
On Dec 2, 2006, at 8:02 AM, Georg Brandl wrote: > Surely it is. The PSU once used the time machine to travel to Ancient > Greece and gave the Delphi priestess her name, along with a schoolbook > about ancient histo The PSU does not, nor ever has existed. Any statement implying otherwise is fal

Re: [Python-Dev] Import semantics

2006-07-05 Thread Frank Wierzbicki
On 7/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Frank> That said, I still regard Samuele Pedroni as the ultimate > Frank> authority on Jython and give him pretty much full veto power. He > Frank> fortunately continues to watch the checkins and

Re: [Python-Dev] Import semantics

2006-07-05 Thread Frank Wierzbicki
On 7/5/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Hi Frank, > > Have you and/or the Jython community made up your mind about this? The > thread seems to have disappeared after you posted (or perhaps it > continued only on jython-dev, which I don't read?). The

Re: [Python-Dev] Import semantics

2006-07-05 Thread Frank Wierzbicki
subclassable "type", and figure out how to put a release together, which will be "real soon now" -- but really. Thanks, -Frank ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsub

[Python-Dev] Cleanup of test harness for Python

2006-06-30 Thread Frank Wierzbicki
should be excluded from Jython, but mainly to understand the future implementation of Python for which the tests provide the only real spec. Which of the current tests is closest to an "ideal" test, so I can use it as a model? Thanks, -Frank

Re: [Python-Dev] Import semantics

2006-06-25 Thread Frank Wierzbicki
ting the top level packages is enough to get a similar > > effect. > > > > This is unlikely to change for backward compatibility reasons, at least > > from my POV. > > IMO it should do this only if the imported module is really a Java > package. If it's a Python pack

Re: [Python-Dev] Jython and CPython

2006-01-05 Thread Frank Wierzbicki
on release. I'm quite sure that we can work something out so that Jython-specific portability code can reside in Jython only. Though whenever it is cleanly do-able, I'd like to be able to use the python libraries unchanged. It sounds like this is a case where it is

[Python-Dev] (no subject)

2005-11-24 Thread Frank
hi, test mail list :) 致 礼! Frank [EMAIL PROTECTED]   2005-11-25 ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

Re: [Python-Dev] AST branch is in?

2005-10-25 Thread Frank Wierzbicki
On 10/20/05, Neal Norwitz <[EMAIL PROTECTED]> wrote: The Grammar is (was at one point at least) shared between Jython andwould allow more tools to be able to share infrastructure.  The ideais to eventually be able to have [JP]ython output the same AST totools. Hello Python-dev, My name is