Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Terry Reedy
On 2/18/2019 3:35 PM, Marcin G wrote: Hmm. From looking at your full log (THANK YOU for posting that, btw - so many people don't), it looks like an issue with certificate checking. Might be a bug in the test itself. Does the same thing happen with a more recent Python build? It could be a weirdne

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 7:55 AM Grant Edwards wrote: > > On 2019-02-18, Chris Angelico wrote: > > > Hmm. From looking at your full log (THANK YOU for posting that, btw - > > so many people don't), it looks like an issue with certificate > > checking. Might be a bug in the test itself. Does the sa

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Grant Edwards
On 2019-02-18, Chris Angelico wrote: > Hmm. From looking at your full log (THANK YOU for posting that, btw - > so many people don't), it looks like an issue with certificate > checking. Might be a bug in the test itself. Does the same thing > happen with a more recent Python build? It could be a

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 7:36 AM Marcin G wrote: > > Hmm. From looking at your full log (THANK YOU for posting that, btw - > so many people don't), it looks like an issue with certificate > checking. Might be a bug in the test itself. Does the same thing > happen with a more recent Python build? It

RE: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Marcin G
Hmm. From looking at your full log (THANK YOU for posting that, btw - so many people don't), it looks like an issue with certificate checking. Might be a bug in the test itself. Does the same thing happen with a more recent Python build? It could be a weirdness with specific versions of OpenSSL. H

Re: Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Chris Angelico
On Tue, Feb 19, 2019 at 5:23 AM Marcin G wrote: > > My boss wants my code to run on Python 3.5, so I thought I'd install 3.5 to > be able to ascertain this. > > But Linux Mint 19 ships with Python 3.6 and python.org only provides source > code for 3.5.6

Trying to compile Python 3.5 on Linux Mint 19, getting compiler warnings and failing tests

2019-02-18 Thread Marcin G
My boss wants my code to run on Python 3.5, so I thought I'd install 3.5 to be able to ascertain this. But Linux Mint 19 ships with Python 3.6 and python.org only provides source code for 3.5.6. So I thought I'd try compiling 3.5.6 myself.

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-29 Thread Serhiy Storchaka
26.11.17 21:46, wojtek.m...@gmail.com пише: On Sunday, November 26, 2017 at 1:00:19 AM UTC+1, Terry Reedy wrote: You must be trying to compile 2.7. There may be Linux distributions that compile this way. You're right, I need 2.7. Any hint which distro has got these settings? UCS-2 is used b

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-29 Thread Matt Wheeler
On Sun, 26 Nov 2017, 19:46 , wrote: > On Sunday, November 26, 2017 at 1:00:19 AM UTC+1, Terry Reedy wrote: > I have to fix a bug in my C extension that appears only in UCS-2 python > (i.e. Windows). I can reboot to Windows and debug there, but it's pain > in a neck for various reasons. > In my o

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-27 Thread nospam . nospam . nospam . Rustom Mody
Mody) On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > Hi, my goal is to obtain an interpreter that internally > > uses UCS-2. Such a simple code should print 65535: > > > > import sys > > print sys.maxunicode

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-27 Thread wojtek mula
On Sunday, November 26, 2017 at 1:00:19 AM UTC+1, Terry Reedy wrote: > You must be trying to compile 2.7. There may be Linux distributions > that compile this way. You're right, I need 2.7. Any hint which distro has got these settings? > If you want to seriously work with unicode, many recommend

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . nospam . Rustom Mody
On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > Hi, my goal is to obtain an interpreter that internally > > uses UCS-2. Such a simple code should print 65535: > > > > import sys > > print sys.maxunicode > > >

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . nospam . Ned Batchelder
On 11/25/17 5:05 PM, wojtek.m...@gmail.com wrote: > Hi, my goal is to obtain an interpreter that internally > uses UCS-2. Such a simple code should print 65535: > >import sys >print sys.maxunicode > > This is enabled in Windows, but I want the same in Linux. > What options have I pass to th

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . nospam . Terry Reedy
On 11/25/2017 5:12 PM, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wrote: >> Hi, my goal is to obtain an interpreter that internally >> uses UCS-2. Such a simple code should print 65535: >> >>import sys >>print sys.maxunicode >> >> This is enabled in Windows, but I want the s

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . nospam . Chris Angelico
may be Linux distributions that > compile this way. If you want to use, or ever encounter, non-BMP chars, > using surrogate pairs is problematical. By my reading of the official UCS-2 > docs, Python's old 16-bit unicode implementation is not fully compliant. > Others have claimed th

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread wxjmfauth
Le dimanche 26 novembre 2017 05:53:55 UTC+1, Rustom Mody a ÄCcritâ : > On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > > Hi, my goal is to obtain an interpreter that internally > > > uses UCS-2. Such a simple co

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . nospam . Chris Angelico
On Sun, Nov 26, 2017 at 9:05 AM, wrote: > Hi, my goal is to obtain an interpreter that internally > uses UCS-2. Such a simple code should print 65535: > > import sys > print sys.maxunicode > > This is enabled in Windows, but I want the same in Linux. > What options have I pass to the configur

Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread wojtek mula
Hi, my goal is to obtain an interpreter that internally uses UCS-2. Such a simple code should print 65535: import sys print sys.maxunicode This is enabled in Windows, but I want the same in Linux. What options have I pass to the configure script? w. -- https://mail.python.org/mailman/listi

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread wojtek . mula
On Sunday, November 26, 2017 at 1:00:19 AM UTC+1, Terry Reedy wrote: > You must be trying to compile 2.7. There may be Linux distributions > that compile this way. You're right, I need 2.7. Any hint which distro has got these settings? > If you want to seriously work with unicode, many recommen

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread wxjmfauth
Le dimanche 26 novembre 2017 05:53:55 UTC+1, Rustom Mody a ÄCcritâ : > On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > > Hi, my goal is to obtain an interpreter that internally > > > uses UCS-2. Such a simple co

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Serhiy Storchaka
26.11.17 01:59, Terry Reedy D¿D,ÑêDµ: > On 11/25/2017 5:12 PM, Chris Angelico wrote: >> On Sun, Nov 26, 2017 at 9:05 AM,â wrote: >>> Hi, my goal is to obtain an interpreter that internally >>> uses UCS-2. Such a simple code should print 65535: >>> >>> â â import sys >>> â â print sys.maxunicode

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Chris Angelico
On Sun, Nov 26, 2017 at 3:53 PM, Rustom Mody wrote: > On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: >> On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: >> > Hi, my goal is to obtain an interpreter that internally >> > uses UCS-2. Such a simple code should print 655

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Rustom Mody
On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > Hi, my goal is to obtain an interpreter that internally > > uses UCS-2. Such a simple code should print 65535: > > > > import sys > > print sys.maxunicode > > >

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Ned Batchelder
On 11/25/17 5:05 PM, wojtek.m...@gmail.com wrote: > Hi, my goal is to obtain an interpreter that internally > uses UCS-2. Such a simple code should print 65535: > >import sys >print sys.maxunicode > > This is enabled in Windows, but I want the same in Linux. > What options have I pass to th

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Chris Angelico
may be Linux distributions that > compile this way. If you want to use, or ever encounter, non-BMP chars, > using surrogate pairs is problematical. By my reading of the official UCS-2 > docs, Python's old 16-bit unicode implementation is not fully compliant. > Others have claimed th

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Terry Reedy
On 11/25/2017 5:12 PM, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wrote: >> Hi, my goal is to obtain an interpreter that internally >> uses UCS-2. Such a simple code should print 65535: >> >>import sys >>print sys.maxunicode >> >> This is enabled in Windows, but I want the s

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread nospam . Chris Angelico
On Sun, Nov 26, 2017 at 9:05 AM, wrote: > Hi, my goal is to obtain an interpreter that internally > uses UCS-2. Such a simple code should print 65535: > > import sys > print sys.maxunicode > > This is enabled in Windows, but I want the same in Linux. > What options have I pass to the configur

Compile Python 3 interpreter to force 2-byte unicode

2017-11-26 Thread wojtek mula
Hi, my goal is to obtain an interpreter that internally uses UCS-2. Such a simple code should print 65535: import sys print sys.maxunicode This is enabled in Windows, but I want the same in Linux. What options have I pass to the configure script? w. -- https://mail.python.org/mailman/listi

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-25 Thread Serhiy Storchaka
26.11.17 01:59, Terry Reedy пише: On 11/25/2017 5:12 PM, Chris Angelico wrote: On Sun, Nov 26, 2017 at 9:05 AM,  wrote: Hi, my goal is to obtain an interpreter that internally uses UCS-2. Such a simple code should print 65535:    import sys    print sys.maxunicode This is enabled in Windows,

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-25 Thread Chris Angelico
On Sun, Nov 26, 2017 at 3:53 PM, Rustom Mody wrote: > On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: >> On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: >> > Hi, my goal is to obtain an interpreter that internally >> > uses UCS-2. Such a simple code should print 655

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-25 Thread Rustom Mody
On Sunday, November 26, 2017 at 3:43:29 AM UTC+5:30, Chris Angelico wrote: > On Sun, Nov 26, 2017 at 9:05 AM, wojtek.mula wrote: > > Hi, my goal is to obtain an interpreter that internally > > uses UCS-2. Such a simple code should print 65535: > > > > import sys > > print sys.maxunicode > > >

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-25 Thread Ned Batchelder
On 11/25/17 5:05 PM, wojtek.m...@gmail.com wrote: Hi, my goal is to obtain an interpreter that internally uses UCS-2. Such a simple code should print 65535: import sys print sys.maxunicode This is enabled in Windows, but I want the same in Linux. What options have I pass to the configure

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-25 Thread Chris Angelico
may be Linux distributions that > compile this way. If you want to use, or ever encounter, non-BMP chars, > using surrogate pairs is problematical. By my reading of the official UCS-2 > docs, Python's old 16-bit unicode implementation is not fully compliant. > Others have claimed th

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-25 Thread Terry Reedy
On 11/25/2017 5:12 PM, Chris Angelico wrote: On Sun, Nov 26, 2017 at 9:05 AM, wrote: Hi, my goal is to obtain an interpreter that internally uses UCS-2. Such a simple code should print 65535: import sys print sys.maxunicode This is enabled in Windows, but I want the same in Linux. What

Re: Compile Python 3 interpreter to force 2-byte unicode

2017-11-25 Thread Chris Angelico
On Sun, Nov 26, 2017 at 9:05 AM, wrote: > Hi, my goal is to obtain an interpreter that internally > uses UCS-2. Such a simple code should print 65535: > > import sys > print sys.maxunicode > > This is enabled in Windows, but I want the same in Linux. > What options have I pass to the configur

Compile Python 3 interpreter to force 2-byte unicode

2017-11-25 Thread wojtek . mula
Hi, my goal is to obtain an interpreter that internally uses UCS-2. Such a simple code should print 65535: import sys print sys.maxunicode This is enabled in Windows, but I want the same in Linux. What options have I pass to the configure script? w. -- https://mail.python.org/mailman/listin

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread stephen . boulet
On Friday, January 9, 2015 at 8:58:59 AM UTC-6, stephen...@gmail.com wrote: > I've installed Microsoft Visual Studio 10.0. Here are the steps I've been > taking. > > My python version is Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, > 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32. > > (Sorry

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread Mark Lawrence
On 09/01/2015 22:14, stephen.bou...@gmail.com wrote: This page helped me sort everything out: http://www.falatic.com/index.php/120/a-guide-to-building-python-2-x-and-3-x-extensions-for-windows. That's good to know both for you and me but in future could you please quote some context, thanks

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread stephen . boulet
This page helped me sort everything out: http://www.falatic.com/index.php/120/a-guide-to-building-python-2-x-and-3-x-extensions-for-windows. -- https://mail.python.org/mailman/listinfo/python-list

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread Chris Angelico
On Sat, Jan 10, 2015 at 2:23 AM, Mark Lawrence wrote: > I'll admit to being a little annoyed that scandir says it supports Python 3 > but only provides a 2.7 exe on pypi. If you can wait for 3.5, you might find it in the standard library. PEP 471 was accepted, and I believe that means scandir wil

Re: Help configuring visual studio to compile python extensions

2015-01-09 Thread Mark Lawrence
On 09/01/2015 14:58, stephen.bou...@gmail.com wrote: I've installed Microsoft Visual Studio 10.0. Here are the steps I've been taking. My python version is Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32. (Sorry for the long output.) cd "c:\Pro

Help configuring visual studio to compile python extensions

2015-01-09 Thread stephen . boulet
I've installed Microsoft Visual Studio 10.0. Here are the steps I've been taking. My python version is Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32. (Sorry for the long output.) >cd "c:\Program Files (x86)\Microsoft Visual Studio 10.0"\vc >vcva

Re: compile python 3.3 with bz2 support

2014-10-05 Thread ignat99
sudo apt-get install libbz2-dev Python-3.4.1$ ./configure --with-pydebug --with-bz2 --prefix=/usr && make -j2 On Saturday, 22 December 2012 17:06:51 UTC+1, Benjamin Kaplan wrote: > On Dec 21, 2012 1:31 AM, "Isml" <7606...@qq.com> wrote: > > > > > &g

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-04 Thread Steven D'Aprano
to create a compiler that can compile Python code >> to machinecode? > > The main issue is that python has dynamic typing. The type of object > that is referenced by a particular name can vary, and there's no way (in > general) to know at compile time what the type of object

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-04 Thread Benjamin Kaplan
On Mar 4, 2013 3:02 PM, "CM" wrote: > > > > The main issue is that python has dynamic typing. The type of object > > that is referenced by a particular name can vary, and there's no way > > (in general) to know at compile time what the type of object "foo" is. > > > > That makes generating object

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-04 Thread Chris Angelico
On Tue, Mar 5, 2013 at 9:55 AM, CM wrote: > >> The main issue is that python has dynamic typing. The type of object >> that is referenced by a particular name can vary, and there's no way >> (in general) to know at compile time what the type of object "foo" is. >> >> That makes generating object

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-04 Thread Terry Reedy
On 3/4/2013 5:55 PM, CM wrote: Could you help me understand this better? For example, if you have this line in the Python program: foo = 'some text' bar = {'apple':'fruit'} If the interpreter can determine at runtime that foo is a string and bar is a dict, why can't the compiler figure that o

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-04 Thread 88888 Dihedral
On Tuesday, March 5, 2013 6:55:06 AM UTC+8, CM wrote: > > The main issue is that python has dynamic typing.  The type of object > > > that is referenced by a particular name can vary, and there's no way > > > (in general) to know at compile time what the type of object "foo" is. > > > > > > Tha

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-04 Thread CM
> The main issue is that python has dynamic typing.  The type of object > that is referenced by a particular name can vary, and there's no way > (in general) to know at compile time what the type of object "foo" is. > > That makes generating object code to manipulate "foo" very difficult. Could y

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-04 Thread Grant Edwards
On 2013-02-28, kramer65 wrote: > I'm using Python for a while now and I love it. There is just one > thing I cannot understand. There are compilers for languages like C > and C++. why is it impossible to create a compiler that can compile > Python code to machinecode? The m

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-03-01 Thread Steven D'Aprano
On Fri, 01 Mar 2013 08:48:34 +0100, Stefan Behnel wrote: > Steven D'Aprano, 01.03.2013 04:47: >> On Thu, 28 Feb 2013 22:03:09 +0100, Stefan Behnel wrote: >> >>> The most widely used static Python compiler is Cython >> >> Cython is not a Python compiler. Cython code will not run in a vanilla >> P

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Stefan Behnel
Steven D'Aprano, 01.03.2013 04:47: > On Thu, 28 Feb 2013 22:03:09 +0100, Stefan Behnel wrote: > >> The most widely used static Python compiler is Cython > > Cython is not a Python compiler. Cython code will not run in a vanilla > Python implementation. It has different keywords and syntax, e.g.:

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread 88888 Dihedral
kramer65於 2013年3月1日星期五UTC+8上午4時25分07秒寫道: > Hello, > > > > I'm using Python for a while now and I love it. There is just one thing I > cannot understand. There are compilers for languages like C and C++. why is > it impossible to create a compiler that can compile Pyt

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread alex23
On Mar 1, 6:25 am, kramer65 wrote: > There are compilers for languages like C and C++. why > is it impossible to create a compiler that can compile > Python code to machinecode? This is a nice site list a lot of current approaches to that subject: http://compilers.pydata.org/

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread alex23
On Mar 1, 1:47 pm, Steven D'Aprano wrote: > Cython is not a Python compiler. Cython code will not run in a vanilla > Python implementation. It has different keywords and syntax, e.g.: > > cdef inline int func(double num): >     ... > > which gives SyntaxError in a Python compiler. Cython has had

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Steven D'Aprano
On Thu, 28 Feb 2013 12:25:07 -0800, kramer65 wrote: > Hello, > > I'm using Python for a while now and I love it. There is just one thing > I cannot understand. There are compilers for languages like C and C++. > why is it impossible to create a compiler that can comp

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Steven D'Aprano
On Thu, 28 Feb 2013 22:03:09 +0100, Stefan Behnel wrote: > The most widely used static Python compiler is Cython Cython is not a Python compiler. Cython code will not run in a vanilla Python implementation. It has different keywords and syntax, e.g.: cdef inline int func(double num): ...

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Steven D'Aprano
On Thu, 28 Feb 2013 15:50:00 -0500, Matty Sarro wrote: > Python is an interpreted language, not a compiled language. Actually, *languages* are neither interpreted nor compiled. A language is an abstract description of behaviour and syntax. Whether something is interpreted or compiled or a mixtu

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Nobody
On Thu, 28 Feb 2013 12:25:07 -0800, kramer65 wrote: > I'm using Python for a while now and I love it. There is just one thing > I cannot understand. There are compilers for languages like C and C++. > why is it impossible to create a compiler that can compile Python code > to m

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Terry Reedy
The subject line is wrong. There are multiple compilers. Someone just listed some of them today in another post. On 2/28/2013 3:50 PM, Matty Sarro wrote: Python is an interpreted language, not a compiled language. A language is just a language. Implementations are implementations*. That asid

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Jonas Geiregat
On do, feb 28, 2013 at 12:25:07pm -0800, kramer65 wrote: > Hello, > > I'm using Python for a while now and I love it. There is just one thing I > cannot understand. There are compilers for languages like C and C++. why is > it impossible to create a compiler that can co

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Modulok
> I'm using Python for a while now and I love it. There is just one thing I > cannot understand. There are compilers for languages like C and C++. why is > it impossible to create a compiler that can compile Python code to > machinecode? Not exactly what you describe, but hav

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Dave Angel
On 02/28/2013 03:25 PM, kramer65 wrote: Hello, I'm using Python for a while now and I love it. There is just one thing I cannot understand. There are compilers for languages like C and C++. why is it impossible to create a compiler that can compile Python code to machinecode? My reasoni

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Stefan Behnel
Stefan Behnel, 28.02.2013 22:03: > there are also a couple of projects that do > dynamic runtime compilation, most notably PyPy and Numba. Oh, and HotPy, I keep forgetting about that. > You may want to take a look at the Python implementations page, > specifically the list of Python compilers: >

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Chris Angelico
On Fri, Mar 1, 2013 at 7:50 AM, Matty Sarro wrote: > C (your example) was intended for very low level programming, things like > operating systems, device drivers, networking stacks, where the speed of a > compiled executable and direct access to hardware was a necessity. That's > what Dennis Ritc

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Stefan Behnel
kramer65, 28.02.2013 21:25: > I'm using Python for a while now and I love it. There is just one thing > I cannot understand. There are compilers for languages like C and C++. > why is it impossible to create a compiler that can compile Python code > to machinecode? All projec

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Matty Sarro
Python for a while now and I love it. There is just one thing I > cannot understand. There are compilers for languages like C and C++. why is > it impossible to create a compiler that can compile Python code to > machinecode? > > My reasoning is as follows: > When GCC compiles a prog

Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread kramer65
Hello, I'm using Python for a while now and I love it. There is just one thing I cannot understand. There are compilers for languages like C and C++. why is it impossible to create a compiler that can compile Python code to machinecode? My reasoning is as follows: When GCC compiles a pr

?????? compile python 3.3 with bz2 support

2012-12-23 Thread Isml
-- ??: "Isml"<76069...@qq.com>; : 2012??12??24??(??????) ????11:21 ??: "Benjamin Kaplan"; "Python List"; : ?? compile python 3.3 with bz2 support Thanks for your reply.According to your advice, I tried ag

?????? compile python 3.3 with bz2 support

2012-12-23 Thread Isml
? -- ??: "Benjamin Kaplan"; : 2012??12??23??(??) 0:06 ??: "Python List"; : Re: compile python 3.3 with bz2 support On Dec 21, 2012 1:31 AM, "Isml" <76069...@qq.com> wrote: > > hi, everyone: >

Re: compile python 3.3 with bz2 support

2012-12-22 Thread Benjamin Kaplan
On Dec 21, 2012 1:31 AM, "Isml" <76069...@qq.com> wrote: > > hi, everyone: > I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to do that. Here is how I do it: > 1. download bzip2 and compile it(make、make -f Makefile_libbz2_so、make install)

Re: compile python 3.3 with bz2 support

2012-12-22 Thread Miki Tebeka
On Thursday, December 20, 2012 10:27:54 PM UTC-8, Isml wrote: >     I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to > do that. Here is how I do it: >     1. download bzip2 and compile it(make、make -f Makefile_libbz2_so、make > install) Why can't you use

Re: compile python 3.3 with bz2 support on RedHat 5.5

2012-12-21 Thread Chris Angelico
On Fri, Dec 21, 2012 at 5:35 PM, Isml <76069...@qq.com> wrote: > By the way, RedHat 5.5 has a built-in python 2.4.3. Would it be a problem? You may want to consider using 'make altinstall' rather than 'make install'. That way, you don't stomp all over the system Python (so system scripts that expe

Re: compile python 3.3 with bz2 support on RedHat 5.5

2012-12-21 Thread Ramchandra Apte
On Friday, 21 December 2012 12:05:57 UTC+5:30, Isml wrote: > hi, everyone: >     I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to > do that. Here is how I do it: >     1、download bzip2 and compile it(make、make -f Makefile_libbz2_so、make > install) >    

compile python 3.3 with bz2 support on RedHat 5.5

2012-12-20 Thread Isml
hi, everyone: I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to do that. Here is how I do it: 1??download bzip2 and compile it(make??make -f Makefile_libbz2_so??make install) 2??chang to python 3.3 source directory : ./configure --with-bz2=/usr/local/include

compile python 3.3 with bz2 support

2012-12-20 Thread Isml
hi, everyone: I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to do that. Here is how I do it: 1. download bzip2 and compile it(make??make -f Makefile_libbz2_so??make install) 2.chang to python 3.3 source directory : ./configure --with-bz2=/usr/local/include

Unable to compile Python 2.7.3 in Cygwin

2012-09-11 Thread Yves S. Garret
Hi, I'm trying to compile Python in Cygwin, with little luck. I've posted the ugliness in this link. Thoughts? http://bin.cakephp.org/view/176472400 -- http://mail.python.org/mailman/listinfo/python-list

Re: Compile python code into a dll

2012-09-11 Thread Dwight Hutto
Also, and sometimes google does kind of fail you, but straight from your question, I just type in this section of what you wrote: 'Python code that I would like to compile into a dll' Yours comes up as well within that search,but so do quite a few others related to it. > > -- Best Regards, Da

Re: Compile python code into a dll

2012-09-11 Thread Rolf Wester
Thank you all for your help. I'm going to try Cython. Regards Rolf On 10/09/12 14:15, Rolf Wester wrote: Hi, I have Python code that I would like to compile into a dll (I have to deliver a C/C++ callable dll and I don't want to reimpelement the Python code in C/C++). It's not for extending Py

Re: Compile python code into a dll

2012-09-10 Thread Terry Reedy
On 9/10/2012 8:15 AM, Rolf Wester wrote: I have Python code that I would like to compile into a dll (I have to deliver a C/C++ callable dll and I don't want to reimpelement the Python code in C/C++). It's not for extending Python but I want to call the Python functions and classes from C/C++. It

Re: Compile python code into a dll

2012-09-10 Thread Miki Tebeka
> I have Python code that I would like to compile into a dll (I have to See http://docs.python.org/extending/embedding.html. You can pack your code in a zip file and load it from the DLL entry point (something like what py2exe does). See also the Freeze tool - http://wiki.python.org/moin/Freeze

Re: Compile python code into a dll

2012-09-10 Thread Ramchandra Apte
On Monday, 10 September 2012 17:45:11 UTC+5:30, Rolf Wester wrote: > Hi, > > > > I have Python code that I would like to compile into a dll (I have to > > deliver a C/C++ callable dll and I don't want to reimpelement the Python > > code in C/C++). It's not for extending Python but I want to

Compile python code into a dll

2012-09-10 Thread Rolf Wester
Hi, I have Python code that I would like to compile into a dll (I have to deliver a C/C++ callable dll and I don't want to reimpelement the Python code in C/C++). It's not for extending Python but I want to call the Python functions and classes from C/C++. It's more like extending C/C++ with

Re: Where is the lastest step by step guide to compile Python into an executable?

2012-06-08 Thread Chris Angelico
On Sat, Jun 9, 2012 at 3:41 AM, Prasad, Ramit wrote: >> > Where is the lastest step by step guide to compile Python into an >> executable? >> >> Google. > > I think you mean the Internet as Google is just an index. > Unless you are referring to Google's ca

RE: Where is the lastest step by step guide to compile Python into an executable?

2012-06-08 Thread Prasad, Ramit
> > Where is the lastest step by step guide to compile Python into an > executable? > > > > Regards. > > > > David > > > > > > > > > > Google. I think you mean the Internet as Google is just an index. Unless you are referrin

Re: Where is the lastest step by step guide to compile Python into an executable?

2012-06-07 Thread Mark Lawrence
On 07/06/2012 11:05, David Shi wrote: Hi, folks. Where is the lastest step by step guide to compile Python into an executable? Regards. David Google. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Where is the lastest step by step guide to compile Python into an executable?

2012-06-07 Thread David Shi
Hi, folks. Where is the lastest step by step guide to compile Python into an executable? Regards. David -- http://mail.python.org/mailman/listinfo/python-list

Re: Where is the latest step by step guide to use Jython to compile Python into Java?

2012-06-04 Thread Stefan Behnel
Narayanaswamy, Mohan, 04.06.2012 16:56: > Python is dynanmic programming (but strongly typed), java is > static-typed language. Currently it is not possible to convert python > into java, since python types are dynamically identified, not identified > during compilation. That's not entirely true.

Re: Where is the latest step by step guide to use Jython to compile Python into Java?

2012-06-04 Thread Stefan Behnel
David Shi, 04.06.2012 16:36: > Where is the latest step by step guide to use Jython to compile Python into > Java? I don't think there is such a thing, simply because Jython does not compile Python into Java. > I found that it was very confusing by reading not updated text. It

Where is the latest step by step guide to use Jython to compile Python into Java?

2012-06-04 Thread David Shi
Hello, Where is the latest step by step guide to use Jython to compile Python into Java? I found that it was very confusing by reading not updated text. Please help. Regards. David -- http://mail.python.org/mailman/listinfo/python-list

Re: // compile python core //

2011-06-25 Thread Corey Richardson
Excerpts from victor lucio's message of Sun Jun 26 02:01:27 -0400 2011: > Hi > > I would like to know how to compile the python core. > I am going to remove some modules of it to have a thin python. > > Where could I find further information about it? > I'm guessing you're going to want to go t

// compile python core //

2011-06-25 Thread victor lucio
Hi I would like to know how to compile the python core. I am going to remove some modules of it to have a thin python. Where could I find further information about it? I would be grateful for your suggestions Waldemar -- http://mail.python.org/mailman/listinfo/python-list

Re: Compile python executable only for package deployment on Linux

2010-07-20 Thread King
Hi Stefan, Well, the idea is similar to package tools like pyinstaller or cx_freeze. There approach is slightly different then what I intend to do here. You have to pass the name of the script to python executable("python main.py") in order to execute it. What I mean here is to create python exec

Re: Compile python executable only for package deployment on Linux

2010-07-20 Thread Stefan Behnel
King, 20.07.2010 18:45: I have created a simple tool(python script) that creates a self sufficient package ready for deployment. Current implementation is based on shell scripting to set environment for the app and finally execute "python main.py". I am planning to convert "main.py" into an exec

Compile python executable only for package deployment on Linux

2010-07-20 Thread King
Hi, I have created a simple tool(python script) that creates a self sufficient package ready for deployment. Current implementation is based on shell scripting to set environment for the app and finally execute "python main.py". I am planning to convert "main.py" into an executable. The plan is t

Re: unable to compile Python 2.6.4 on AIX using gcc

2009-11-04 Thread chuck
ersions of python on that machine. I would appreciate any help. Do I need to set the exec_prefix as well? Thanks. Mark Dickinson wrote: On Nov 3, 10:40 pm, chuck wrote: Hello -- I am trying to compile Python 2.6.4 on a Power 5 PC with AIX 5.3. Here are the settings: Take a look at: http:/

Re: unable to compile Python 2.6.4 on AIX using gcc

2009-11-04 Thread Mark Dickinson
On Nov 3, 10:40 pm, chuck wrote: > Hello -- I am trying to compile Python 2.6.4 on a Power 5 PC with AIX > 5.3.  Here are the settings: > > export OBJECT_MODE=64 > export AR="ar -X64" > export MAKE=/usr/bin/gmake > export CC="gcc" > export CFLAGS="

unable to compile Python 2.6.4 on AIX using gcc

2009-11-03 Thread chuck
Hello -- I am trying to compile Python 2.6.4 on a Power 5 PC with AIX 5.3. Here are the settings: export OBJECT_MODE=64 export AR="ar -X64" export MAKE=/usr/bin/gmake export CC="gcc" export CFLAGS="-maix64 -O2 -g -mcpu=power5" export LDFLAGS="-L/usr/lib64 -L/

Re: I am trying to compile python 2.6.2 on my Mac

2009-07-28 Thread Tommy Nordgren
On Jul 26, 2009, at 10:37 AM, Chris Rebert wrote: On Sun, Jul 26, 2009 at 1:12 AM, Jessica R Smith wrote: Hello, I am trying to compile Python 2.6.2 on my Mac which has os/x 10.5.7 I downloaded python 2.6.2 from here: - http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tar.bz2 I unpacked

Re: I am trying to compile python 2.6.2 on my Mac

2009-07-26 Thread Diez B. Roggisch
Jessica Smith schrieb: Chris thanks!! other members: I read this: - http://chrismiles.livejournal.com/25648.html I did this: - install mac ports - port install readline - vi setup.py def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list

  1   2   >