Re: Need help compiling Python-devel

2016-07-05 Thread TM
This option is not straight forward. There are too many dependencies.
Easier in Linux not so easy in AIX.

Is it possible to copy the python executable (ie the code below)?
# cp -p python python-devel

Thanks,
Tony



On Tue, Jul 5, 2016 at 12:12 PM, Dieter Maurer <die...@handshake.de> wrote:

> TM wrote at 2016-7-5 11:42 -0400:
> Please stay on the mailin list (where others, too, can help you).
>
> >Thanks for the response. The reason for my install of python was, so I
> >could compile samba from source.
> >
> >If what you say is true then why do I get the error below when I try to
> >compile samba.
> >
> >Checking for custom code
> >   : *Could not find the python development headers*
> >/usr/local/samba-4.4.4/wscript:106: error: the configuration failed (see
> >'/usr/local/samba-4.4.4/bin/config.log')
>
> Likely, because it looks at a different place than you where your
> locally compiled Python has placed it.
>
>
> Likely, the easiest thing to do is installing the package
> "python-dev" (or "python-devel" or similarly named) with you
> operating system packageing tool.
>
>
>
> --
> Dieter
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Need help compiling Python-devel

2016-07-04 Thread TM
Hi,

I have successfully compiled Python-2.7.12 on AIX 6.1 TL09, using steps
below. However I need the python-devel library/headers. How do I compile
Python, so that I can use this?

# ./configure --with-gcc="gcc" --with-cxx="gcc" --disable-ipv6
# make

Any help is greatly appreciated.

Thanks,
Tony
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Feedback wanted on programming introduction (Python in Windows)

2009-10-28 Thread tm
On 28 Okt., 07:52, Alf P. Steinbach al...@start.no wrote:
 [Cross-posted comp.programming and comp.lang.python]

Looking at your topic '(Python in Windows)', without taking a
glimpse at your actual introduction, I have the following to say:
I think it is not a good idea to teach programming with a focus
on a specific operating system. Programming should IMHO be taught
without reference to an operating system. Otherwise you just teach
how to write unportable programs.

 Hi.

 I may finally have found the perfect language for a practically oriented
 introductory book on programming, namely Python.

What is considered 'perfect' depends on the point of view. Languages
have assets and drawbacks and I don't even use the term 'perfect'
for my own language. :-) There is always room to improve. Some of
the features I consider important are discussed here:

  http://seed7.sourceforge.net/faq.htm

 C++ was way too complex for the novice, JScript and C# suffered from too
 fast-changing specifications and runtime environment, Java, well, nothing
 particularly wrong but it's sort of too large and unwieldy and inefficient.

While many people consider Java inefficient they do so in comparison
to C/C++. I doubt that Java is inefficient compared to most
interpreted languages.

 I don't know whether this will ever become an actual book. I hope so!

 But since I don't know much Python -- I'm *learning* Python as I write

Normally I prefer books written by people who already know the
stuff they are writing about. I would consider that it is not a good
selling argument when a book was written to *learn* a language. :-)

Greetings Thomas Mertes

Seed7 Homepage:  http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Feedback wanted on programming introduction (Python in Windows)

2009-10-28 Thread tm
On 28 Okt., 09:58, Alf P. Steinbach al...@start.no wrote:
 * tm:

  On 28 Okt., 07:52, Alf P. Steinbach al...@start.no wrote:
  [Cross-posted comp.programming and comp.lang.python]

  Looking at your topic '(Python in Windows)', without taking a
  glimpse at your actual introduction, I have the following to say:
  I think it is not a good idea to teach programming with a focus
  on a specific operating system. Programming should IMHO be taught
  without reference to an operating system. Otherwise you just teach
  how to write unportable programs.

 I think you're trolling a little. :-)

No, I just saw too much stuff which pretends to teach something, but
instead promotes an operating system. Contrary to many people I do
not believe that something is automatically better when it runs
under windows and when 'win' is part of the name.

 Without reference to an OS you can't address any of the issues that a beginner
 has to grapple with, including most importantly tool usage, without which it's
 not even possible to get started, but also, very importantly, a file system.

IMHO a beginner needs to use an editor and an interpreter or
compiler. How to copy and remove files and directories is helpful
also.

 Learning programming without tools and without using files (or only using the
 common denominator for file systems in OSes X, Y and Z) is sort of vacuous...

I did not consider to teach programming without tools and without
using files. The common denominator for file systems is IMHO enough
to teach programming to beginners. Do you consider access control
lists, mount points and symbolic links essential for the programs
taught after 'hello world'?

 In addition there's the motivational factor.

 Doing only academic examples, utilizing only a language's more or less 
 portable
 functionality, is very de-motivational, while the opposite is motivational.

You obviously think that unportable programming is needed to
motivate people. This is IMHO far from true. There are many portable
programs which are motivational. I cannot provide portable Python
examples but examples of portable Seed7 programs can be found here:

  http://seed7.sourceforge.net/scrshots/index.htm

  Hi.

  I may finally have found the perfect language for a practically oriented
  introductory book on programming, namely Python.

  What is considered 'perfect' depends on the point of view. Languages
  have assets and drawbacks and I don't even use the term 'perfect'
  for my own language. :-) There is always room to improve. Some of
  the features I consider important are discussed here:

   http://seed7.sourceforge.net/faq.htm

  C++ was way too complex for the novice, JScript and C# suffered from too
  fast-changing specifications and runtime environment, Java, well, nothing
  particularly wrong but it's sort of too large and unwieldy and inefficient.

  While many people consider Java inefficient they do so in comparison
  to C/C++. I doubt that Java is inefficient compared to most
  interpreted languages.

  I don't know whether this will ever become an actual book. I hope so!

  But since I don't know much Python -- I'm *learning* Python as I write

  Normally I prefer books written by people who already know the
  stuff they are writing about. I would consider that it is not a good
  selling argument when a book was written to *learn* a language. :-)

 Yes, it would be silly to write a book or whatever about Python. This text is
 primarily about programming, at the novice level, not about the Python 
 language.
 The programming language is only a vehicle.

 However, as a vehicle the language needs to be suited for transport of the
 novice. :-)

 And it seems that Python is very well suited for that.

I can think of several reasons why some people would not see it this
way.

  Seed7 Homepage:  http://seed7.sourceforge.net

 I'm not familiar with Seed, sorry.

Maybe you take the opportunity and look at it now. :-)

Greetings Thomas Mertes

Seed7 Homepage:  http://seed7.sourceforge.net
Seed7 - The extensible programming language: User defined statements
and operators, abstract data types, templates without special
syntax, OO with interfaces and multiple dispatch, statically typed,
interpreted or compiled, portable, runs under linux/unix/windows.
-- 
http://mail.python.org/mailman/listinfo/python-list


why?

2005-11-26 Thread teimu . tm
ive been using python for about two years now, and cant think of an
instance where i would need that functionality. Dictionaries arent
supposed to be ordered...they provide object associations, and simply
that. Whatever your trying to do in pythonTMTOWTDI

-- 
http://mail.python.org/mailman/listinfo/python-list