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
--
https://m
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 faste
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 reservation['Instan
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 cale
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
> parame
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:
>
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
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]
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 fil
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
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',
> )
>
> r
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):
> p.insert(i,(p1[i],p2[i
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 perso
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
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', 'd
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
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))
> > for value in valu
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 do
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
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 th
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 VPN.
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 int
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 S
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
>
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
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
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
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.
Y
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 sit
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 operat
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 r
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 h
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 m
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 = 'e
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 b
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
>
&
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 mes
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;
On Tuesday, October 16, 2012 6:41:29 AM UTC+2, David Hutto wrote:
> On Tue, Oct 16, 2012 at 12:27 AM, 老爷 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
>
> > system setting, doi
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 L
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 con
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 p
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 !
>
>
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
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 sc
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
>
> me
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:
>
> >>
>
> >>
>
> > Learned my lesson today. Don't assume
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.
>
>
>
> &
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
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
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_mo
On Jan 24, 6:22 pm, T H 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:
>
> functionName
On Dec 6, 8:13 pm, John Ladasky 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 since. I'm n
On Nov 15, 1:04 pm, Roark 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 the output of
On Nov 5, 9:11 pm, Travis Parks 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 the "potential"
On Jul 26, 6:53 am, Bevan Jenkins 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 sqlalchemy.
>
> Th
On Jul 13, 10:22 pm, Neil Berg 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 of data. The
On Jul 13, 10:22 pm, Neil Berg 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 of data. The
On Jun 2, 11:54 am, loial 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 problem, some bi-d
On Feb 4, 3:43 am, Martin De Kauwe 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 c++ practice!).
On 29 nov, 00:20, Nobody 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:
> > sum(abs((i-j)/(i
On 11 sep, 20:15, _wolf 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 the code
> fromhttp
On 17 jun, 21:11, Bradley Hintze 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 HTML form and pass it to
On 14 jun, 17:55, Thales wrote:
> On 14 jun, 11:01, Marco Nawijn wrote:
>
>
>
>
>
> > On 14 jun, 13:19, Thales wrote:
>
> > > Good morning,
>
> > > I need to convert some files from .doc to .pdf. I've googled it a
> > > littl
On 14 jun, 13:19, Thales 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 using the w
On Jun 10, 2:39 am, james_027 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, just as
for
ex
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 =
&g
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 t
On Jan 5, 8:58 pm, Phlip 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 way to
On Sep 25, 1:08 pm, Chris Withers 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: error while l
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 C++
On Jan 5, 10:57 am, Sandro Tosi 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 points-of-view will
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/
Th
exported to FEA packages.
Another possibility is www.salome-platform.org which is build on top
of OpenCascade. It has
a nice Python interface which makes the learning curve probably 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
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. Th
forwarding each call in the Application 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
76 matches
Mail list logo