Re: 3D visualizations in Python

2019-03-13 Thread marco . nawijn
On Tuesday, March 12, 2019 at 11:54:22 PM UTC+1, Jakub Bista wrote: > Hello. I want to do 3D visualization in Python. Which framework do you > recommend me for creating such a Interface? I would recommend the VTK library (https://vtk.org/). It has excellent Python bindings. Marco --

Re: subprocess : AttributeError: 'Popen' object has no attribute 'read'

2019-01-04 Thread marco . nawijn
On Thursday, January 3, 2019 at 9:40:43 PM UTC+1, Chris Angelico wrote: > On Fri, Jan 4, 2019 at 7:37 AM Mohan Mohta wrote: > > I am no expert in python but I found grep is lot faster in than the methods > > of reading files from python point me to direction if you know of > > anything

Re: Python-remove duplicate output

2018-11-22 Thread marco . nawijn
On Thursday, November 22, 2018 at 12:10:28 AM UTC+1, drvuc...@gmail.com wrote: > How to remove duplicate lines and store output into one ine > >reservations = ec.describe_instances().get('Reservations', []) > >for reservation in reservations: > for instance in

Re: question on the 'calendar' function

2018-11-21 Thread marco . nawijn
On Tuesday, November 20, 2018 at 7:53:06 PM UTC+1, o1bigtenor wrote: > On Tue, Nov 20, 2018 at 11:50 AM Schachner, Joseph > wrote: > > > > It's possible I don't understand the question. The calendar functions are > > NOT limited to this year or any limited range. > > > > Example: > > import

Re: Is there are good DRY fix for this painful design pattern?

2018-02-26 Thread marco . nawijn
On Monday, February 26, 2018 at 3:44:14 PM UTC+1, Steven D'Aprano wrote: > I have a class with a large number of parameters (about ten) assigned in > `__init__`. The class then has a number of methods which accept > *optional* arguments with the same names as the constructor/initialiser >

Re: Dynamically replacing an objects __class__; is it safe?

2017-03-15 Thread marco . nawijn
On Wednesday, March 15, 2017 at 11:33:56 AM UTC+1, Peter Otten wrote: > marco.naw...@colosso.nl wrote: > > > Dear All, > > > > Summary of the question: > > Is it generally safe to dynamically change an objects class; if not > > under which conditions can it be considered safe. > > > > Context:

Dynamically replacing an objects __class__; is it safe?

2017-03-15 Thread marco . nawijn
Dear All, Summary of the question: Is it generally safe to dynamically change an objects class; if not under which conditions can it be considered safe. Context: Given the code below, I have no direct control over Base and M1. M1 is a instantiated by 'calling' the read-only property of Base. I

Re: best way to read a huge ascii file.

2016-11-29 Thread marco . nawijn
On Tuesday, November 29, 2016 at 3:18:29 PM UTC+1, Heli wrote: > Hi all, > > Let me update my question, I have an ascii file(7G) which has around 100M > lines. I read this file using : > > f=np.loadtxt(os.path.join(dir,myfile),delimiter=None,skiprows=0) > > x=f[:,1] > y=f[:,2] > z=f[:,3]

Re: data interpolation

2016-11-04 Thread marco . nawijn
On Thursday, November 3, 2016 at 11:08:34 AM UTC+1, Heli wrote: > Hi, > > I have a question about data interpolation using python. I have a big ascii > file containg data in the following format and around 200M points. > > id, xcoordinate, ycoordinate, zcoordinate > > then I have a second

Re: get the sum of differences between integers in a list

2016-09-21 Thread marco . nawijn
On Wednesday, September 21, 2016 at 4:14:10 PM UTC+2, Daiyue Weng wrote: > Hi, first of all, let me rephase the problem. > > For an arbitrary list of integers (the integers in the list are not > necessary to be sequential), e.g. [1,2,3,6,8,9,10,11,13], > > if a set of consecutive integers having

Re: passing dictionay as argument

2016-06-13 Thread marco . nawijn
On Monday, June 13, 2016 at 12:54:45 PM UTC+2, Arshpreet Singh wrote: > I have to pass dictionary as function argument for following code: > > > import authorize > > authorize.Configuration.configure( > authorize.Environment.TEST, > 'api_login_id', > 'api_transaction_key', > ) > >

Re: More list building

2016-05-12 Thread marco . nawijn
On Wednesday, May 11, 2016 at 7:22:09 PM UTC+2, DFS wrote: > Have: > p1 = ['Now', 'the', 'for', 'good'] > p2 = ['is', 'time', 'all', 'men'] > > want > [('Now','is','the','time'), ('for','all','good','men')] > > This works: > > p = [] > for i in xrange(0,len(p1),2): >

Re: Phyton

2016-03-06 Thread marco . nawijn
On Sunday, March 6, 2016 at 6:10:22 PM UTC+1, Mark Lawrence wrote: > On 06/03/2016 15:28, marco.naw...@colosso.nl wrote: > > On Sunday, March 6, 2016 at 3:16:19 PM UTC+1, Diego ... wrote: > >> Hello! I have a question in an exercise that says : Write an expression to > >> determine whether a

Re: Phyton

2016-03-06 Thread marco . nawijn
On Sunday, March 6, 2016 at 3:16:19 PM UTC+1, Diego ... wrote: > Hello! I have a question in an exercise that says : Write an expression to > determine whether a person should or should not pay tax . Consider paying tax > people whose salary is greater than R $ 1,200.00 > > I do not know how to

Re: Cycling through iterables diagonally

2016-02-26 Thread marco . nawijn
On Friday, February 26, 2016 at 8:44:38 AM UTC+1, Pablo Lucena wrote: > Hello, > > I am trying to accomplish the following: > > Say I have a group of 4 lists as follows: > > l1 = ['a1', 'a2', 'a3', 'a4'] > l2 = ['b1', 'b2', 'b3', 'b4'] > l3 = ['c1', 'c2', 'c3', 'c4'] > l4 = ['d1', 'd2', 'd3',

Re: [newbie] how to create log files

2016-02-09 Thread marco . nawijn
Hello Jens, Are you aware of Python's own logging facility? It is quite powerful and flexible. Python 2: https://docs.python.org/2/library/logging.html Python 3: https://docs.python.org/3/library/logging.html Marco -- https://mail.python.org/mailman/listinfo/python-list

Re: Using tuple as parameter to a function

2015-11-09 Thread marco . nawijn
On Monday, November 9, 2015 at 2:58:21 PM UTC+1, Chris Angelico wrote: > On Tue, Nov 10, 2015 at 12:40 AM, Cecil Westerhof wrote: > > I was thinking about something like: > > values = (( 1, 100), ( 2, 100), ( 5, 100), > >10, 100), (20, 100), (40, 100)) > >

Re: Python PNG Viewer(Browser Based)

2015-11-03 Thread marco . nawijn
On Tuesday, November 3, 2015 at 12:55:09 PM UTC+1, Arshpreet Singh wrote: > Hello Everyone, > > I am looking for Browser-based PNG file viewer written in > Python.(Flask framework preferably) > > Following project(Flask-Based) provides many things(File manager as > well as file viewer) but it

Re: Python, convert an integer into an index?

2015-09-23 Thread marco . nawijn
On Wednesday, September 23, 2015 at 1:27:51 AM UTC+2, MRAB wrote: > On 2015-09-22 23:21, Laura Creighton wrote: > > In a message of Tue, 22 Sep 2015 14:43:55 -0700, Chris Roberts writes: > >> > >> > >>(How do I make it into an index? ) > >>Preferably something fairly easy to understand as I am new

Re: Packaging and deployment of standalone Python applications?

2015-09-15 Thread marco . nawijn
On Monday, September 14, 2015 at 8:58:51 AM UTC+2, Kristian Rink wrote: > Folks; > > coming from a server-sided Java background, I'm recently exploring frameworks > such as cherrypy or webpy for building RESTful services, which is quite a > breeze and a pretty pleasant experience; however one

Re: From logging to files to a better solution: syslog, Sentry, Logstash, ....

2015-09-11 Thread marco . nawijn
On Friday, September 11, 2015 at 9:22:42 AM UTC+2, Thomas Güttler wrote: > Am Donnerstag, 10. September 2015 08:42:47 UTC+2 schrieb dieter: > > Thomas Güttler writes: > > > ... > > > Why we are unhappy with logging to files: > > > > > > - filtering: We don't want to get INFO messages over the

Re: Most Pythonic way to store (small) configuration

2015-08-04 Thread marco . nawijn
On Sunday, August 2, 2015 at 12:14:51 PM UTC+2, Cecil Westerhof wrote: There are a lot of ways to store configuration information: - conf file - xml file - database - json file - and possible a lot of other ways I want to write a Python program to display cleaned log files. I do not

Re: How to import a function from another module...

2015-08-04 Thread marco . nawijn
On Tuesday, August 4, 2015 at 3:11:41 PM UTC+2, Dwight GoldWinde wrote: Thank you, Steven. I am a newbie with Python? so I really want to learn how to do it the easy way. Yes, could you tell me how to put the py.file that contains the function in the Python search path??? BIG SMILE...

Re: Most Pythonic way to store (small) configuration

2015-08-04 Thread marco . nawijn
On Tuesday, August 4, 2015 at 7:06:33 PM UTC+2, Irmen de Jong wrote: On 4-8-2015 16:53, marco.naw...@colosso.nl wrote: Why not use Python files itself as configuration files? It could create a security risk if the config files are user-editable. (it will make it easy to inject code into

Re: Creating a reliable sandboxed Python environment

2015-05-26 Thread marco . nawijn
On Tuesday, May 26, 2015 at 4:24:32 AM UTC+2, davi...@gmail.com wrote: I am writing a web service that accepts Python programs as input, runs the provided program with some profiling hooks, and returns various information about the program's runtime behavior. To do this in a safe manner, I

Re: Could not find any downloads that satisfy the requirement novaclient

2015-04-08 Thread marco . nawijn
On Tuesday, April 7, 2015 at 9:55:58 PM UTC+2, kurt_...@symantec40.com wrote: Hi- While trying to install an OpenStack client on Mac OSX, I get the following: SymMacToolkit-C02N4H9DG3QD:/ kurt_heiss$ sudo pip install novaclient Password: The directory '/Users/kurt_heiss/Library/Logs/pip'

Re: A question about how plot from matplotlib works

2015-02-19 Thread marco . nawijn
On Thursday, February 19, 2015 at 11:47:53 AM UTC+1, ast wrote: Hello import numpy as np import matplotlib.pyplot as plt x = np.arange(10) y = x**2 x array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) y array([ 0, 1, 4, 9, 16, 25, 36, 49, 64, 81]) plt.plot(x,y) [matplotlib.lines.Line2D

Re: operator module functions

2014-10-08 Thread marco . nawijn
For me it makes sense. operator.add should be used in a global context (I don't know how to express it otherwise). So you provide it with the two values that you want to add. The .__add__ variants are bound to a particular instance and you provide it with a single value that you want to add.

Re: Recommended hosting

2014-10-03 Thread marco . nawijn
On Thursday, October 2, 2014 3:30:38 PM UTC+2, writeson wrote: Hi all, I'd like to build a web site for myself, essentially a vanity web site to show off whatever web development skills I have, and perhaps do some blogging. I'm a Python developer, so I'd like to develop the site with

Re: dict to boolean expression, how to?

2014-08-01 Thread marco . nawijn
Hi, Are you aware of the Python operator module? It provides function equivalents of all (most?) python operator. So instead of a==b, you can state operator.eq(a,b). As a result, you can loop over the key/value pairs in the dict and built your logic with the operator.eq, operator.and_, and

Re: Standard library Help

2014-07-11 Thread marco . nawijn
On Friday, July 11, 2014 10:32:32 AM UTC+2, Nicholas Cannon wrote: Hey i would like to know alot more about the standard library and all of its functions and so on and i know it is huge and i would basically like to learn only the useful stuff that i could use and all of those features. i

Re: how can i get body values?

2014-07-11 Thread marco . nawijn
On Friday, July 11, 2014 11:37:17 AM UTC+2, Frank Liou wrote: how can i get body values use variable to Separate catch? https://lh3.googleusercontent.com/-6Ywp4GukuCM/U7-vhF0nzuI/Bv4/Ovcr1O2FScs/s1600/321.jpg i want to catch name and key values now i use request.data

Re: Python While loop Takes too much time.

2014-06-30 Thread marco . nawijn
On Monday, June 30, 2014 1:32:23 PM UTC+2, Jaydeep Patil wrote: I have did excel automation using python. In my code I am creating python dictionaries for different three columns data at a time.There are are many rows above 4000. Lets have look in below function. Why it is taking too much

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Marco Nawijn
On Saturday, October 12, 2013 10:56:27 AM UTC+2, reuben...@gmail.com wrote: I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b = 'filled' c = 'empty' d = 'empty' e = 'filled' f = 'empty' g =

Re: Printing a text over an image

2012-11-15 Thread Marco Nawijn
On Wednesday, November 7, 2012 5:52:36 PM UTC+1, Martha Morrigan wrote: Hi guys, Using python, wxpython and sqlite in a windows system, Im trying to print some certificates/diplomas/cards with a image at background with the name of person/text over it. I know the basic steps

Re: What's the tidy/elegant way to protect this against null/empty parameters?

2012-10-16 Thread Marco Nawijn
On Monday, October 15, 2012 1:33:02 PM UTC+2, (unknown) wrote: I want to fix an error in some code I have installed, however I don't really want to just bodge it. The function producing the error is:- def get_text(self, idx): # override ! node =

Re: Accessing variables in __init__.py

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 10:48:17 AM UTC+2, Gaudha wrote: my_package/ __init__.py my_module1.py my_module2.py variables.py I want to define common variables in __init__.py and use the namespace in my_module1.py or my_module2.py. Defining it is not a problem. How

Re: Providing a Python wrapper to a C++ type.

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 10:11:52 AM UTC+2, aaron.l...@gmail.com wrote: Hi, I have a C++ module where I have a defined, working type. How would I make a wrapper for this type to be able to be used in Python? I am familiar(-ish) with the C-API for functions but I can't see

Re: Is there a way to create kernel log messages via Python?

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 5:43:28 AM UTC+2, J wrote: Hi... I have a bit of code that does the following: uses the syslog module to inject a LOG_INFO message into the syslog on my linux machine runs a suspend/resume cycle uses the syslog module to inkect a LOG_INFO

Re: Which book is the best?

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 6:41:29 AM UTC+2, David Hutto wrote: On Tue, Oct 16, 2012 at 12:27 AM, 老爷 yujian4newsgr...@gmail.com wrote: I have strong c++ development experience. But now I want to study the python to do some windows setting task, such as editing file, changing the

Re: numpy - 2D matrix/array - initialization like in Matlab...

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 12:43:09 AM UTC+2, someone wrote: On 10/15/2012 11:26 PM, MRAB wrote: On 2012-10-15 22:09, someone wrote: See this: == In [5]: Dx = numpy.matrix('1 0 0; 0 0.5 -0.5; 0 -0.5 1.5') In

Re: Python on Windows

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 1:29:23 PM UTC+2, graham wrote: Downloaded and installed Python 2.7.3 for windows (an XP machine). Entered the Python interactive interpreter/command line and typed the following: import feedparser and I get the error message No module

Re: Providing a Python wrapper to a C++ type.

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 1:39:44 PM UTC+2, Stefan Behnel wrote: Marco Nawijn, 16.10.2012 12:17: On Tuesday, October 16, 2012 10:11:52 AM UTC+2, aaron.l...@gmail.com wrote: I have a C++ module where I have a defined, working type. How would I make a wrapper for this type to be able

Re: python CAD libraries?

2012-09-11 Thread Marco Nawijn
On Monday, September 10, 2012 11:10:55 PM UTC+2, Jayden wrote: Are there any python CAD libraries that can (1) build simple 3D primitives solids such as spheres, cylinders and so on (2) perform bool operations on 3D solids (3) better if it has some transformations such has scaling,

Re: pythonOCC examples doesn't work?

2012-09-11 Thread Marco Nawijn
On Wednesday, September 12, 2012 6:02:14 AM UTC+2, Jayden wrote: I installed (1) pythonxy2.7.2.3 (with python2.7) and (2) pythonOCC-0.5-all-in-one.win32.py26 on windows 7 64 bit computer. I try run pythonOCC examples in its example folder, such as the helloworld.py and got

Re: Looking for an IPC solution

2012-08-31 Thread Marco Nawijn
On Friday, August 31, 2012 9:22:00 PM UTC+2, Laszlo Nagy wrote: There are just so many IPC modules out there. I'm looking for a solution for developing a new a multi-tier application. The core application will be running on a single computer, so the IPC should be using shared memory

Re: Beginners question

2012-08-30 Thread Marco Nawijn
On Thursday, August 30, 2012 1:54:08 PM UTC+2, (unknown) wrote: Hello I'm slowly teaching myself python so apologies if this is a dumb question. but something has confused me with the os.stat() function: s = os.stat(.) print s posix.stat_result(st_mode=16877,

Re: class object's attribute is also the instance's attribute?

2012-08-30 Thread Marco Nawijn
On Thursday, August 30, 2012 12:55:25 PM UTC+2, 陈伟 wrote: when i write code like this: class A(object): d = 'it is a doc.' t = A() print t.__class__.d print t.d the output is same. so it means class object's attribute is also the

Re: Beginners question

2012-08-30 Thread Marco Nawijn
On Thursday, August 30, 2012 3:15:03 PM UTC+2, Ulrich Eckhardt wrote: Am 30.08.2012 13:54, schrieb boltar2003@boltar.world: s = os.stat(.) print s posix.stat_result(st_mode=16877, st_ino=2278764L, st_dev=2053L, st_nlink=2, st_u id=1000, st_gid=100, st_size=4096L,

Re: class object's attribute is also the instance's attribute?

2012-08-30 Thread Marco Nawijn
On Thursday, August 30, 2012 3:25:52 PM UTC+2, Hans Mulder wrote: On 30/08/12 14:34:51, Marco Nawijn wrote: Note that if you change 'd' it will change for all instances! That depends on how you change it. bobj = A() bobj.d 'my attribute' A.d = 'oops

Re: class object's attribute is also the instance's attribute?

2012-08-30 Thread Marco Nawijn
On Thursday, August 30, 2012 4:30:59 PM UTC+2, Dave Angel wrote: On 08/30/2012 10:11 AM, Marco Nawijn wrote: On Thursday, August 30, 2012 3:25:52 PM UTC+2, Hans Mulder wrote: snip Learned my lesson today. Don't assume you know something. Test it first ;). I have done quite some

Re: dynamically creating classes from text

2012-01-24 Thread Marco Nawijn
On Jan 24, 6:22 pm, T H turian9...@gmail.com wrote: I’m new to python, sorry if my question is a bit naive, I was wondering if it is possible to parse some text (ie. from a text file or say html) and then dynamically create a class? for example lets say the contents of the text file is:    

Re: Multiprocessing bug, is my editor (SciTE) impeding my progress?

2011-12-06 Thread Marco Nawijn
On Dec 6, 8:13 pm, John Ladasky lada...@my-deja.com wrote: Hi, folks, Back in 2002, I got back into programming after a nine-year hiatus.  I needed a new programming language, was guided to Python 2.2, and was off to the races.  I chose the SciTE program editor, and I have been using it ever

Re: Execute a command on remote machine in python

2011-11-15 Thread Marco Nawijn
On Nov 15, 1:04 pm, Roark suha...@gmail.com wrote: Hi, I am first time trying my hands on python scripting and would need some guidance from the experts on my problem. I want to execute a windows command within python script from a client machine on a remote target server, and would want

Re: Python ORMs Supporting POPOs and Substituting Layers in Django

2011-11-05 Thread Marco Nawijn
On Nov 5, 9:11 pm, Travis Parks jehugalea...@gmail.com wrote: Hello: A new guy showed up at work a few weeks ago and has started talking about replacing a 6 month old project, written in ASP.NET MVC, with an open source solution that can handle massive scaling. I think his primary concern is

Re: Tree structure

2011-07-26 Thread Marco Nawijn
On Jul 26, 6:53 am, Bevan Jenkins beva...@gmail.com wrote: Hello, I am trying to create a tree structure for use with a PyQt QTreeView. But first I need to get my head around how to create the tree structure.  I have a dictionary (for testing purposes) but I will later use a table via

Re: losing-end-of-row values when manipulating CSV input

2011-07-13 Thread Marco Nawijn
On Jul 13, 10:22 pm, Neil Berg nb...@atmos.ucla.edu wrote: Hello all, I am having an issue with my attempts to accurately filter some data from a CSV file I am importing.  I have attached both a sample of the CSV data and my script.   The attached CSV file contains two rows and 27 columns

Re: losing-end-of-row values when manipulating CSV input

2011-07-13 Thread Marco Nawijn
On Jul 13, 10:22 pm, Neil Berg nb...@atmos.ucla.edu wrote: Hello all, I am having an issue with my attempts to accurately filter some data from a CSV file I am importing.  I have attached both a sample of the CSV data and my script.   The attached CSV file contains two rows and 27 columns

Re: Passing array from java to python

2011-06-03 Thread Marco Nawijn
On Jun 2, 11:54 am, loial jldunn2...@gmail.com wrote: I need to pass some sort of array or hashmap from Java and read the data in a python script (which will be called by the java class). Is there any neater way  to do this other than just passing strings? I recently had to deal with the same

Re: code structure advise for a model

2011-02-04 Thread Marco Nawijn
On Feb 4, 3:43 am, Martin De Kauwe mdeka...@gmail.com wrote: Hi, I am translating some c++ code to python and just wanted to ask some advise on structure. The original has everything declared globally and nothing passed via function (I assume, but don't know, that this isn't just standard

Re: Comparing floats

2010-11-29 Thread Marco Nawijn
On 29 nov, 00:20, Nobody nob...@nowhere.com wrote: On Sat, 27 Nov 2010 18:23:48 -0500, Terry Reedy wrote: Therefore, to implement this multiplication operation I need to have a way to verify that the float tuples C and D are equal. I might try the average relative difference:

Re: fast kdtree tree implementation for python 3?

2010-09-11 Thread Marco Nawijn
On 11 sep, 20:15, _wolf wolfgang.l...@gmail.com wrote: does anyone have a suggestion for a ready-to-go, fast kdtree implementation for python 3.1 and up, for nearest-neighbor searches? i used to use the one from numpy/scipy, but find it a pain to install for python 3. also, i'm trying to wrap

Re: Processing HTML form

2010-06-17 Thread Marco Nawijn
On 17 jun, 21:11, Bradley Hintze bradle...@aggiemail.usu.edu wrote: Hi, I am a newbie to anything web related, I know a bit  of HTML though. I've been programing in python for a year or so so I know the language at an intermediate level. I am wondering if its possible to get info from an

Re: Convert .doc to .pdf

2010-06-14 Thread Marco Nawijn
On 14 jun, 13:19, Thales thales@gmail.com wrote: Good morning, I need to convert some files from .doc to .pdf. I've googled it a little bit and all the solutions I've found used the OpenOffice API, but I can't use it. Anybody knows a library that I can use to do it? Thanks What about

Re: Convert .doc to .pdf

2010-06-14 Thread Marco Nawijn
On 14 jun, 17:55, Thales thales@gmail.com wrote: On 14 jun, 11:01, Marco Nawijn naw...@gmail.com wrote: On 14 jun, 13:19, Thales thales@gmail.com wrote: Good morning, I need to convert some files from .doc to .pdf. I've googled it a little bit and all the solutions I've

Re: using reverse in list of tuples

2010-06-10 Thread Marco Nawijn
On Jun 10, 2:39 am, james_027 cai.hai...@gmail.com wrote: hi, I am trying to reverse the order of my list of tuples and its is returning a None to me. Is the reverse() function not allow on list containing tuples? Thanks, James As the others already mentioned list.reverse() is in-place,

Re: Microsoft Office Word and Python (Win XP)

2010-01-09 Thread Marco Nawijn
On Jan 9, 4:12 pm, 3lvss0...@gmail.com 3lvss0...@gmail.com wrote: Hi. Im very new with python. I have got some answer on my issue to use interop or COM ''plugins'' to access MS Word through python but i don't even know what those two ''plugins'' are so I cannot use them. What I want to do is

Re: Microsoft Office Word and Python (Win XP)

2010-01-09 Thread Marco Nawijn
On Jan 9, 8:18 pm, 3lvss0...@gmail.com 3lvss0...@gmail.com wrote: Marco Nawijn: I have had installed pywin32 already. The three lines that you mentoined don't do this I checked at my own computer and it works fine. also what did you mean with doc = app.Documents.Open(c:\\example.doc). Which

Re: please help shrink this each_with_index() implementation

2010-01-05 Thread Marco Nawijn
On Jan 5, 8:58 pm, Phlip phlip2...@gmail.com wrote: Hypo Nt: def each_with_index(seq):     index = 0     result = []     for item in seq:       result.append([item, index])       index += 1     return result My Pythonic sequencing skills are obviously feeble. Can anything think of a

Re: problems trying to build python 2.6 as a shared library

2009-09-25 Thread Marco Nawijn
On Sep 25, 1:08 pm, Chris Withers ch...@simplistix.co.uk wrote: Hi All, I'm trying to build Python 2.6 as a shared library, so I did:    ./configure --enable-shared    make    make altinstall No obvious signs of failure, but when I try and use the resulting python, I get: python2.6:

Another form of dynamic import

2009-03-25 Thread Marco Nawijn
Hello, In short I would like to know if somebody knows if it is possible to re-execute a statement that raised an exception? I will explain the reason by providing a small introduction on why this might be nice in my case and some example code. I am using the python bindings to a *very* large

Re: What would you like to see in a book about Matplotlib?

2009-01-06 Thread Marco Nawijn
On Jan 5, 10:57 am, Sandro Tosi matrixh...@gmail.com wrote: Hello and Happy 2009! I received the interesting proposal to author a book on Matplotlib, the powerful 2D plotting library for Python. While preparing the arguments list, I'd like to hear even your opinion, because different

Re: Display the results of a query to an html table

2008-08-19 Thread Marco Nawijn
On Aug 19, 4:35 pm, Amie [EMAIL PROTECTED] wrote: Hi, how do you display the results of an sql query and display it onto the html form or html table Thanks Hello, You might want to take a look at: sqlobject http://www.sqlobject.org/ or sqlalchemy http://www.sqlalchemy.org/ These

Re: easy 3D graphics for rendering geometry?

2007-11-08 Thread Marco Nawijn
a little more acceptable. A downside is that, I think there are no Windows binaries yet. Regards, Marco Nawijn -- http://mail.python.org/mailman/listinfo/python-list

Code design problem

2007-08-29 Thread Marco Nawijn
class looks a little bit redundant and I would like to get rid of it. Does anyone have any comments or suggestions? Can metaclass programming come to rescue? Kind regards, Marco Nawijn -- http://mail.python.org/mailman/listinfo/python-list

Re: Code design problem

2007-08-29 Thread Marco Nawijn
On Aug 29, 3:03 pm, Marshall T. Vandegrift [EMAIL PROTECTED] wrote: Marco Nawijn [EMAIL PROTECTED] writes: The problem I face is that the implementation of the application class is completely different for the local and remote case. The local case is a straightforward implemenation using