Re: pystl

2016-08-16 Thread Steven D'Aprano
On Wednesday 17 August 2016 16:36, Poul Riis wrote: > Can someone deliver a minimal, fully working example with the pystl module, > https://pypi.python.org/pypi/pystl/ > > The only example code mentioned is the following: > > with PySTL(‘stl_test.stl’) as stl: > stl.add_triangle( (0.0, 0.0,

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Steven D'Aprano
On Wednesday 17 August 2016 06:59, Lawrence D’Oliveiro wrote: > On Wednesday, August 17, 2016 at 6:46:22 AM UTC+12, alister wrote: >> I don't think I am missing anything by not bothering with them YMMV > > Here > > are s

pystl

2016-08-16 Thread Poul Riis
Can someone deliver a minimal, fully working example with the pystl module, https://pypi.python.org/pypi/pystl/ The only example code mentioned is the following: with PySTL(‘stl_test.stl’) as stl: stl.add_triangle( (0.0, 0.0, 0.5), (0.0, 1.0, 0.0), (1.0, 1.0, 0.5) ) but no matter what 'impo

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Steven D'Aprano
On Wednesday 17 August 2016 04:46, alister wrote: > > squared_plus_one_list = map(lambda x: x**2 + 1, some_list) > > probably the cleanest example I have seen so far, & I still cant see the > point Hmmm. Well, let's have a look at some analogies with other kinds of values. Out of each pair of e

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Lawrence D’Oliveiro
On Wednesday, August 17, 2016 at 6:46:22 AM UTC+12, alister wrote: > I don't think I am missing anything by not bothering with them YMMV Here are some examples of that varying mileage. -- https://mail.python.org/mailma

SQLObject 3.1.0

2016-08-16 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.1.0, the first stable release of branch 3.1 of SQLObject. What's new in SQLObject === Features * Add UuidCol. * Add JsonbCol. Only for PostgreSQL. Requires psycopg2 >= 2.5.4 and PostgreSQL >= 9.2. * Add JSONCol, a univer

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread alister
On Mon, 15 Aug 2016 11:35:07 -0700, sohcahtoa82 wrote: > On Monday, August 15, 2016 at 8:07:32 AM UTC-7, alister wrote: >> On Mon, 15 Aug 2016 07:00:47 -0700, Sickfit92 wrote: >> >> > 1. How long did it take you guys to master the language or, let me >> > put it this way to completely get the han

Check required modules using autotools

2016-08-16 Thread Rudra Banerjee
Hi, I am compiling a python3 project using gnu-autotools. This is my configure.ac file (Please ignore the recursive Makefile, I have not managed to make the non-recursive one). AC_INIT([mkbib], [0.1],[],[mkbib]) AM_INIT_AUTOMAKE([1.9.6 dist-bzip2 subdir-objects]) AM_PATH_PYTHON([3.0]) dnl AX_PYTH

Re: docs on pythonhosted.org not updating with new version?

2016-08-16 Thread Irmen de Jong
On 16-8-2016 0:11, Irmen de Jong wrote: > Hi, > as I've always done for a new release I've uploaded new versions of my > package's > documentation files, but they are not showing up on Pythonhosted.org - the > previous > version is still there. > > Is there something wrong with the update mechan

Re: mentor training python Romania with certification

2016-08-16 Thread tommy yama
Check it out. It is pretty basic material,though! https://www.python.org Go for it. On Tue, Aug 16, 2016 at 11:14 PM, blue wrote: > Hi. > > I'm from Romania. > I need to update my skils under python. > I need to find one mentor ( class, training ) to obtain one certified > under python lang

mentor training python Romania with certification

2016-08-16 Thread blue
Hi. I'm from Romania. I need to update my skils under python. I need to find one mentor ( class, training ) to obtain one certified under python language. Cătălin George Feștilă -- https://mail.python.org/mailman/listinfo/python-list

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Paul Rudin
Lawrence D’Oliveiro writes: > On Tuesday, August 16, 2016 at 6:26:01 PM UTC+12, Paul Rudin wrote: >> sohcahtoa82 writes: >>> squared_plus_one_list = map(lambda x: x**2 + 1, some_list) >> >> I realise that this is about understanding lambda, but it's worth noting >> in passing that we tend to wri

Pyjs

2016-08-16 Thread Uri Even-Chen
Hi, Anybody used Pyjs? I have an error message: C:\Uri\Projects\pyjs\examples\helloworld>pyjsbuild Hello.py failed to create process. I want to create a new web app which will receive 2 inputs - a positive integer (default=2) and a number of digits (default=500), calculate the square root of t

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Marko Rauhamaa
Chris Angelico : > most of the point of map() is to make use of an existing function: > > # Instead of > lengths = (len(x) for x in items) > # Use > lengths = map(len, items) Both methods are available and I have used each of them, but the former is probably always preferable. Marko -- https:/

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Chris Angelico
On Tue, Aug 16, 2016 at 5:18 PM, Ian Kelly wrote: > Also, unless the mapped function is already defined (and preferably > built-in), a generator expression or list comprehension is usually more > readable and avoids the significant overhead of repeatedly calling a Python > function. Don't know wh

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Jussi Piitulainen
Lawrence D’Oliveiro writes: > On Tuesday, August 16, 2016 at 6:53:24 PM UTC+12, Jussi Piitulainen wrote: >> Lawrence D’Oliveiro writes: >> >>> Why could this difference be important? >> >> Different comprehensions (pun!) and performance characteristics. > > A potential difference in memory usage

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Christian Gollwitzer
Am 15.08.16 um 16:00 schrieb Sickfit92: 1. How long did it take you guys to master the language or, let me put it this way to completely get the hang and start writing code? You never learn a language completely. I'm using Python for 3 years, getting started was a matter of one or two days. Bu

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Lawrence D’Oliveiro
On Tuesday, August 16, 2016 at 7:19:01 PM UTC+12, Ian wrote: > On Aug 16, 2016 12:36 AM, "Lawrence D’Oliveiro" wrote: > > The difference being that the “map” function takes an iterable and returns > an iterator. > > In Python 3, yes. However, assigning the result to the name > "squared_plus_one_li

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Lawrence D’Oliveiro
On Tuesday, August 16, 2016 at 6:53:24 PM UTC+12, Jussi Piitulainen wrote: > Lawrence D’Oliveiro writes: > >> Why could this difference be important? > > Different comprehensions (pun!) and performance characteristics. A potential difference in memory usage. When could this be important? Conside

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Lawrence D’Oliveiro
On Tuesday, August 16, 2016 at 7:22:42 PM UTC+12, Ian wrote: > On Aug 16, 2016 12:57 AM, "Lawrence D’Oliveiro" wrote: > > But perhaps this limitation wasn’t intentional, just an inherent > consequence of the fact that Python’s significant-whitespace rules only > apply to statements, not expression

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Marko Rauhamaa
Steven D'Aprano : > E.g. out of the following: > > [len(x)+1 for x in sequence] > > list(map(lambda x: len(x) + 1, sequence)) > > the first will probably be faster as well as easier to read and write. It's mostly about idioms. Comprehensions belong to Python's core idioms, lambdas don't.

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Ian Kelly
On Aug 16, 2016 12:57 AM, "Lawrence D’Oliveiro" wrote: I see. I thought I saw a mention somewhere else that Python lambdas were designed to be less functional than full def-style functions. But perhaps this limitation wasn’t intentional, just an inherent consequence of the fact that Python’s si

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Ian Kelly
On Aug 16, 2016 12:36 AM, "Lawrence D’Oliveiro" wrote: On Tuesday, August 16, 2016 at 6:26:01 PM UTC+12, Paul Rudin wrote: > sohcahtoa82 writes: >> squared_plus_one_list = map(lambda x: x**2 + 1, some_list) > > I realise that this is about understanding lambda, but it's worth noting > in passing

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Steven D'Aprano
On Tuesday 16 August 2016 16:28, Lawrence D’Oliveiro wrote: > On Tuesday, August 16, 2016 at 6:26:01 PM UTC+12, Paul Rudin wrote: >> sohcahtoa82 writes: >>> squared_plus_one_list = map(lambda x: x**2 + 1, some_list) >> >> I realise that this is about understanding lambda, but it's worth noting >>

Re: I am new to python. I have a few questions coming from an armature!

2016-08-16 Thread Jussi Piitulainen
Lawrence D’Oliveiro writes: > On Tuesday, August 16, 2016 at 6:26:01 PM UTC+12, Paul Rudin wrote: >> sohcahtoa82 writes: >>> squared_plus_one_list = map(lambda x: x**2 + 1, some_list) >> >> I realise that this is about understanding lambda, but it's worth noting >> in passing that we tend to writ