Thorough Python 2.7.3 Windows Build Documentation?

2013-01-17 Thread Leonard, Arah
ll that cost me performance so that we can all get the most out of Python. Any and all help will be greatly appreciated. Thanks. Sincerely, Arah Leonard Arah Leonard Software Development Engineer Bruker AXS Inc. 5465 East Cheryl Parkway Madison, WI 53711 US Phone: +1 608-276-3812 Phone: +1 80

RE: Thorough Python 2.7.3 Windows Build Documentation?

2013-01-17 Thread Leonard, Arah
> I think the official binaries use the PGO build. Be sure to run all tests > thoroughly, we've had problems in with the PGO build in 3.3. Thanks Stefan. I hope that's not the case. PGO seems something of an anathema from well-documented builds. Unless I'm missing something, if PGO i

RE: Thorough Python 2.7.3 Windows Build Documentation?

2013-01-17 Thread Leonard, Arah
> I remember that some versions of Visual Studio silently completed the PGO > build without actually having PGO capabilities. :) > I think for VS 2008 at least "Professional" is needed, for VS 2010 "Ultimate". Well, that certainly sounds like Microsoft. Fortunately I'm using VS 2008 Profession

RE: Thorough Python 2.7.3 Windows Build Documentation?

2013-01-17 Thread Leonard, Arah
>Try dumping the build configuration parameters: > > >>> import pprint, sysconfig > >>> pprint.pprint(sysconfig.get_config_vars()) > >Then you can compare the existing version with yours. I would absolutely love to be able to do that and have it work. Most unfortunately that only works on *n

RE: Thorough Python 2.7.3 Windows Build Documentation?

2013-01-17 Thread Leonard, Arah
Hello Python programmers, Here's an update on my conundrum: When compiling and building CPython 2.7.3 for Win32 from source I see a 30% performance loss from the precompiled binaries in the Python 2.7.3 MSI. Everything that I do gets the same results. I've tried a standard release bu

RE: Thorough Python 2.7.3 Windows Build Documentation?

2013-01-21 Thread Leonard, Arah
Hello again Python programmers, Final update on my Python 2.7.3 build issues. After much insanity I finally used a process sniffer when running Python and tracked down that because of a path environment variable and the stupidity of Microsoft, Windows was loading another python27.dll r

RE: Slightly OT: What metro areas are best for a software development career?

2013-01-21 Thread Leonard, Arah
> I am looking for a position as a software development engineer. I'm > currently learning to develop Android apps > (http://www.jasonhsu.com/android-apps), and I use > Python for implementing Doppler Value Investing > (http://www.dopplervalueinvesting.com) and for developing Swift Linux > (ht

RE: Using filepath method to identify an .html page

2013-01-22 Thread Leonard, Arah
> Thank you but the number needs to be a 4-digit integer only, if its to be > stored in the database table correctly. Okay, I think we need to throw the flag on the field at this point. What you're asking for has gone into a realm where you clearly don't even appear to understand what you're a

RE: Converting a string to a number by using INT (no hash method)

2013-01-22 Thread Leonard, Arah
> I just need a way to CONVERT a string(absolute path) to a 4-digit unique > number with INT!!! That's all i want!! But i cannot make it work :( > > And the best part is that "that" number must be able to turn back into a path. > > This way i DON'T EVEN HAVE TO STORE THE ACTUAL HTML PAGE'S ABSOL

RE: Converting a string to a number by using INT (no hash method)

2013-01-22 Thread Leonard, Arah
> No need, to turn the number back to a path anymore, just the path to a > number, to identify the specific .html page > > Can this be done? Guaranteed to be unique? Not even remotely possible. Even with a lookup table approach (which defeats your purpose of not storing the path) with 4 digit

RE: Converting a string to a number by using INT (no hash method)

2013-01-22 Thread Leonard, Arah
> The perl code will produce the same hash for "abc.html" as for "bca.html" > That's probably one reason Leonard didn't try to transliterate the buggy code. > Actually, to give credit where it's due, it wasn't me. I just modified someone else's interesting solution in this thread and added t

RE: Failed to import a "pyd: File When python intepreter embed in C++ project

2013-01-23 Thread Leonard, Arah
> I create a pyd File named "testPyd" with boostPython,and then I import the > testPyd module into "test.py", it works perfect! > But when I embeded the python interpreter into my C++ project and run the > "test.py", it comes out a "ImportErr: no module named testPyd". > It has confused me for tw

RE: Using filepath method to identify an .html page

2013-01-23 Thread Leonard, Arah
> "his quote string is Cyrillic"? > > If you're referring to the "Τη Τρίτη, 22 Ιανουαρίου 2013 6:23:16 μ.μ. > UTC+2, ο χρήστης Leonard, Arah έγραψε", that's Greek. > Cyrillic or not, it's all Greek to me. ;) -- http://mail.python.org/mailman/listinfo/python-list

RE: Using filepath method to identify an .html page

2013-01-23 Thread Leonard, Arah
> = > my @i = split(//,$url); # put each letter in it's own bin > my $j=0; # Initailize our > my $k=1; # hashing increment values > my @m=(); # workspace > foreach my $n(@i){ >my $q=ord($n); # ASCII for character >$k += $j;

RE: The best, friendly and easy use Python Editor.

2013-01-24 Thread Leonard, Arah
> All true (especially the holy wars bit!). OP didn't (as far as I can see) > even say which OS he is using. Anyway, my suggestion is generally that people > use the editor with which they are already comfortable. > Sound advice. Most of the time I still use Visual Studio for editing Python b

RE: The best, friendly and easy use Python Editor.

2013-01-24 Thread Leonard, Arah
>> Sound advice. Most of the time I still use Visual Studio for editing >> Python because I also use it for C++, so it's just what I'm used to. >> No big deal, really. Whatever works is what works. It's just a text >> file after all. >> > > I assume you're using PyTools (http://pytools.code

RE: Dict comp help

2013-01-24 Thread Leonard, Arah
> Hi, > Slightly different take on an old problem, I have a list of dicts, I need to > build one dict from this based on two values from each dict in the list. Each > of the dicts in the list have similar key names, but values of course differ. > > > [{'a': 'xx', 'b': 'yy', 'c': 'zz'},  {'a': '

RE: The best, friendly and easy use Python Editor.

2013-01-25 Thread Leonard, Arah
>> >> It's just a text file after all. >> > > True indeed, let's not worry about trivial issues like indentation, mixing > tabs and spaces or whatever. Notepad anybody? :) > Hey, I didn't say Notepad was the *best* tool for the job, just that Python scripts are merely text files. Though, tha