Re: advice on debugging a segfault

2021-01-18 Thread Robin Becker
On 17/01/2021 21:35, Stestagg wrote: I would normally agree, except... This is a refcount issue (I was able to reproduce the problem, gbd shows a free error ) And I wouldn't recommend DGBing a refcount issue as a beginner to debugging. The other mailing list identified a PIL bug that messes up

Re: advice on debugging a segfault

2021-01-17 Thread Stestagg
I would normally agree, except... This is a refcount issue (I was able to reproduce the problem, gbd shows a free error ) And I wouldn't recommend DGBing a refcount issue as a beginner to debugging. The other mailing list identified a PIL bug that messes up the refcount for True, but this refcou

Re: advice on debugging a segfault

2021-01-17 Thread Barry
Run python under gdb and when the segv happens use the gdb bt command to get a stack trace. Also if gdb says that it needs debug symbols install you will need to do that. Otherwise the not will not contain symbols. Barry > On 17 Jan 2021, at 19:58, Robin Becker wrote: > > I have a segfault i

Re: Advice on law firm

2018-10-18 Thread Prahallad Achar
if NO-ANS: print (" Its Python forum ") elif ANS: print (" Personal mail to Mr.Ryan") else: print (" Ryan kindly use the appropriate forum to discuss your topic") On Thu, Oct 18, 2018 at 5:27 AM Ryan Johnson wrote: > Anyone know a good US based law firm that specializes in software

Re: Advice on law firm

2018-10-18 Thread Gary Herron
This is a Python related forum, but your question has nothing to do with Python.  While you might get an answer here, I'm sure you could find a better place to post your question. On 10/17/2018 07:36 PM, rj.amdphr...@gmail.com wrote: Correction: specializing in warranty of merchantability, so

RE: Advice on law firm

2018-10-17 Thread Ryan Johnson
Correction: specializing in warranty of merchantability, software licenses, and possibly class action suits. Sent from Mail for Windows 10 From: Ryan Johnson Sent: Wednesday, October 17, 2018 9:26 PM To: python-list@python.org Subject: Advice on law firm Anyone know a good US based law firm tha

Re: Advice on optimizing a Python data driven rules engine

2016-08-11 Thread Chris Angelico
On Fri, Aug 12, 2016 at 12:56 AM, Malcolm Greene wrote: > Looking for some advice on how to optimize the BOILERPLATE portions of > the following type of code. There's an awful lot of dot dereferencing > going on. One thought was to pass in the values being dereferenced as > parameters and return v

Re: Advice on optimizing a Python data driven rules engine

2016-08-11 Thread Michael Selik
On Thu, Aug 11, 2016 at 10:57 AM Malcolm Greene wrote: > Background: I'm building a rules engine for transforming rows of data > being returned by csv DictReader, eg. each row of data is a dict of column > name to value mappings. My rules are a list of rule objects whose > attributes get referen

Re: Advice on Python build tools

2016-04-14 Thread Sayth Renshaw
Thanks for the tips. Doit does look interesting. Regarding template plugins with Nikola the plugins would be only for python template alternatives such as mako. Mainly i find the whitespace and readability of Jade/pug far more pythonic than all tge brackets {% %} yes its a minor thing but so

Re: Advice on Python build tools

2016-04-13 Thread Chris Warrick
On 12 April 2016 at 11:48, Sayth Renshaw wrote: > Hi > > Looking at the wiki list of build tools > https://wiki.python.org/moin/ConfigurationAndBuildTools > > Has anyone much experience in build tools as i have no preference or > experience to lean on. > > Off descriptions only i would choose inv

Re: Advice on Python build tools

2016-04-12 Thread Rustom Mody
On Tuesday, April 12, 2016 at 4:41:15 PM UTC+5:30, Ben Finney wrote: > Sayth Renshaw writes: > > > Looking at the wiki list of build tools > > https://wiki.python.org/moin/ConfigurationAndBuildTools > > > > Has anyone much experience in build tools as i have no preference or > > experience to lea

Re: Advice on Python build tools

2016-04-12 Thread Ben Finney
Sayth Renshaw writes: > Looking at the wiki list of build tools > https://wiki.python.org/moin/ConfigurationAndBuildTools > > Has anyone much experience in build tools as i have no preference or > experience to lean on. I'm quite fine with GNU Make, so haven't really tried a lot of others. I am

Re: Advice on Python build tools

2016-04-12 Thread Sayth Renshaw
On Tuesday, 12 April 2016 19:48:43 UTC+10, Sayth Renshaw wrote: > Hi > > Looking at the wiki list of build tools > https://wiki.python.org/moin/ConfigurationAndBuildTools > > Has anyone much experience in build tools as i have no preference or > experience to lean on. > > Off descriptions only

Re: Advice

2014-11-12 Thread Joel Goldstick
On Tue, Nov 11, 2014 at 11:53 AM, Mary-Frances McNamee < maryfrances.mcna...@epas-ltd.com> wrote: > To whom it may concern, > > > > I am currently working on a bit of coding for a raspberry pi, I was > wondering maybe I could get some advice? I want my program to run for a > certain time, for exa

Re: Advice

2014-11-11 Thread Rob Gaddi
On Tue, 11 Nov 2014 16:53:18 + Mary-Frances McNamee wrote: > To whom it may concern, > > I am currently working on a bit of coding for a raspberry pi, I was wondering > maybe I could get some advice? I want my program to run for a certain time, > for example 7am-2.30am everyday. Is this po

Re: Advice

2014-11-11 Thread Ian Kelly
On Tue, Nov 11, 2014 at 9:53 AM, Mary-Frances McNamee < maryfrances.mcna...@epas-ltd.com> wrote: > > I am currently working on a bit of coding for a raspberry pi, I was wondering maybe I could get some advice? I want my program to run for a certain time, for example 7am-2.30am everyday. Is this pos

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-23 Thread Aseem Bansal
I know that there are many online ways to do what I am trying to do but this was something I wanted to make. I have learnt Python myself and wanted to learn a way to make apps in Python. GUI development in Python has given a lot of headache while trying to find an appropriate framework with th

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-23 Thread Aseem Bansal
The project is not a browser but a app for managing the bookmarks. Only managing by categories. A replacement for the bookmarks made in webbrowser. I wanted to make bookmarks easier to use. Hierarchical structure of bookmarks gives a lot of problems. I wanted to solve that for my use. On Friday

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-23 Thread Ian Kelly
On Thu, May 22, 2014 at 1:49 PM, Mark H Harris wrote: > On 5/22/14 1:54 PM, Aseem Bansal wrote: >> >> I am working on a hobby project - a Bookmarker{snip} > > > hi, no django is not really the correct tool-set. Django is for server-side > content management That's a common misconception. Django

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread Ethan Furman
On 05/22/2014 11:54 AM, Aseem Bansal wrote: I am working on a hobby project - a Bookmarker https://github.com/anshbansal/Bookmarker. Take a look at delicio.us -- it seems to be a similar type of experience. -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread John Gordon
In Ian Kelly writes: > > My web browser works just fine with links such as this: > > > > foo.html > It works if the document that contains the link is also opened from > the local filesystem, but browsers will refuse to follow the link if > it was served over http. Aha! I didn't know that.

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread Ian Kelly
On Thu, May 22, 2014 at 1:28 PM, John Gordon wrote: > In <6a3c5b20-bce5-4c95-b27f-3840e9cc7...@googlegroups.com> Aseem Bansal > writes: > >> But I hit a snag today that webbrowser's won't allow client to open >> hyperlinks with file protocol. I have both offline and online bookmarks >> so that w

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread Mark H Harris
On 5/22/14 1:54 PM, Aseem Bansal wrote: I am working on a hobby project - a Bookmarker{snip} hi, no django is not really the correct tool-set. Django is for server-side content management, but who knows, you might come up with a great hack (I don't want to discourage you). But, a straight p

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread John Gordon
In <6a3c5b20-bce5-4c95-b27f-3840e9cc7...@googlegroups.com> Aseem Bansal writes: > But I hit a snag today that webbrowser's won't allow client to open > hyperlinks with file protocol. I have both offline and online bookmarks > so that was a problem for me. What do you mean by saying "webbrowser'

Re: advice on sub-classing multiprocessing.Process and multiprocessing.BaseManager

2014-03-25 Thread Chris Angelico
On Wed, Mar 26, 2014 at 12:34 AM, wrote: > Monkey-patching multiprocessing.Process seems more fragile than subclassing > it. It turned out that multiprocessing.pool.Pool was also very easy to > subclass. But cleanly subclassing the Managers in multiprocessing.managers > look much harder. I'

Re: advice on sub-classing multiprocessing.Process and multiprocessing.BaseManager

2014-03-25 Thread matt . newville
ChrisA - >> I wasn't really asking "is multiprocessing appropriate?" but whether >> there was a cleaner way to subclass multiprocessing.BaseManager() to >> use a subclass of Process(). I can believe the answer is No, but >> thought I'd ask. > > I've never subclassed BaseManager like this. It m

Re: advice on sub-classing multiprocessing.Process and multiprocessing.BaseManager

2014-03-24 Thread Chris Angelico
On Tue, Mar 25, 2014 at 2:27 PM, wrote: > Thanks for the reply. I find that appreciation is greatly (perhaps > infinitely) delayed whenever I reply "X is probably not what you want to do" > without further explanation to a question of "can I get some advice on how to > do X?". So, I do thank

Re: advice on sub-classing multiprocessing.Process and multiprocessing.BaseManager

2014-03-24 Thread matt . newville
On Monday, March 24, 2014 7:19:56 PM UTC-5, Chris Angelico wrote: > On Tue, Mar 25, 2014 at 7:24 AM, Matt Newville > > > I'm maintaining a python interface to a C library for a distributed > > control system (EPICS, sort of a SCADA system) that does a large > > amount of relatively light-weight ne

Re: advice on sub-classing multiprocessing.Process and multiprocessing.BaseManager

2014-03-24 Thread Chris Angelico
On Tue, Mar 25, 2014 at 7:24 AM, Matt Newville wrote: > I'm maintaining a python interface to a C library for a distributed > control system (EPICS, sort of a SCADA system) that does a large > amount of relatively light-weight network I/O. In order to keep many > connections open and responsive,

Re: Advice needed for Python packaging - can't find required library during installation

2014-02-04 Thread thebiggestbangtheory
Thank you very much! :-) On Monday, February 3, 2014 11:30:00 PM UTC-8, dieter wrote: > thebiggestbangthe...@gmail.com writes: > > > > > I am trying to package up a very simple python app. In my setup.py file I > > have a couple of lines that include the following: > > > > > > from setuptool

Re: Advice needed for Python packaging - can't find required library during installation

2014-02-03 Thread dieter
thebiggestbangthe...@gmail.com writes: > I am trying to package up a very simple python app. In my setup.py file I > have a couple of lines that include the following: > > from setuptools import setup > > setup( > name='ban', > version='0.1', > packages=['ban',], >

Re: Advice regarding multiprocessing module

2013-03-11 Thread Oscar Benjamin
On 11 March 2013 14:57, Abhinav M Kulkarni wrote: > Hi Jean, > > Below is the code where I am creating multiple processes: > > if __name__ == '__main__': > # List all files in the games directory > files = list_sgf_files() > > # Read board configurations > (intermediateBoards, fina

Re: Advice regarding multiprocessing module

2013-03-11 Thread Abhinav M Kulkarni
Hi Jean, Below is the code where I am creating multiple processes: if __name__ == '__main__': # List all files in the games directory files = list_sgf_files() # Read board configurations (intermediateBoards, finalizedBoards) = read_boards(files) # Initialize parameters

Re: Advice regarding multiprocessing module

2013-03-11 Thread Dave Angel
On 03/11/2013 01:57 AM, Abhinav M Kulkarni wrote: * My laptop has quad-core Intel i5 processor, so I thought using multiprocessing module I can parallelize my code (basically calculate gradient in parallel on multiple cores simultaneously). * As a result I end up creating a

Re: Advice regarding multiprocessing module

2013-03-11 Thread Jean-Michel Pichavant
- Original Message - > Dear all, > I need some advice regarding use of the multiprocessing module. > Following is the scenario: > * I am running gradient descent to estimate parameters of a pairwise > grid CRF (or a grid based graphical model). There are 106 data > points. Each data po

Re: advice, python for binary to xml

2013-02-01 Thread 88888 Dihedral
noydb於 2013年1月31日星期四UTC+8下午9時33分48秒寫道: > I'm looking for knowlegde about how best to go about converting a binary file > (from a GPS unit) to GPX/XML. I am completely clueless on this, so any > start-from-the-beginning info would be greatly appreciated! I'm guessing the > level of effort will

Re: advice, python for binary to xml

2013-01-31 Thread noydb
:-) yeah... -- http://mail.python.org/mailman/listinfo/python-list

Re: advice, python for binary to xml

2013-01-31 Thread Maarten
On Thursday, January 31, 2013 4:05:43 PM UTC+1, noydb wrote: > > I assume that you've looked into GPSBabel? http://www.gpsbabel.org/ > > Yes, I have. Was hoping to use it, but client is very resistent to adding > such things to their system - python is desireable. So what GPSbabel does is > wh

Re: advice, python for binary to xml

2013-01-31 Thread noydb
On Thursday, January 31, 2013 8:41:34 AM UTC-5, Maarten wrote: > On Thursday, January 31, 2013 2:33:48 PM UTC+1, noydb wrote: > > > I'm looking for knowlegde about how best to go about converting a binary > > file (from a GPS unit) to GPX/XML. I am completely clueless on this, so > > any start-

Re: advice, python for binary to xml

2013-01-31 Thread Maarten
On Thursday, January 31, 2013 2:33:48 PM UTC+1, noydb wrote: > I'm looking for knowlegde about how best to go about converting a binary file > (from a GPS unit) to GPX/XML. I am completely clueless on this, so any > start-from-the-beginning info would be greatly appreciated! I'm guessing the >

Re: Advice on how to get started with 2D-plotting ?

2011-09-07 Thread Fred Pacquier
Wow, what an impressive turnout ! Thanks a lot, rantingrick, CM and Herbert, for the fast answers, useful tips and especially the sample code ! Beats starting from a blank page, with a big stick, and will certainly set me on my way much faster... networkx does seem a bit over the top for my si

Re: Advice on how to get started with 2D-plotting ?

2011-09-07 Thread Weinhandl Herbert
Am 06.09.2011 20:27, schrieb Fred Pacquier: Hi, I'm a Python long-timer, but I've never had to use tools like Matplotlib& others before. Now, for my work, I would need to learn the basics fast, for a one-time quick-n-dirty job. This involves a graphic comparison of RFC1918 IP subnets allocatio

Re: Advice on how to get started with 2D-plotting ?

2011-09-06 Thread CM
> Now, for my work, I would need to learn the basics fast, for a one-time > quick-n-dirty job. > > This involves a graphic comparison of RFC1918 IP subnets allocation across > several networks. > > The idea is to draw parallel lines, with segments (subnets) coloured green, > yellow or red depending

Re: Advice on how to get started with 2D-plotting ?

2011-09-06 Thread CM
On Sep 6, 2:27 pm, Fred Pacquier wrote: > Hi, > > I'm a Python long-timer, but I've never had to use tools like Matplotlib & > others before. > > Now, for my work, I would need to learn the basics fast, for a one-time > quick-n-dirty job. > > This involves a graphic comparison of RFC1918 IP subnet

Re: Advice on how to get started with 2D-plotting ?

2011-09-06 Thread rantingrick
On Sep 6, 1:27 pm, Fred Pacquier wrote: > I'm a Python long-timer, but I've never had to use tools like Matplotlib & > others before. > > Now, for my work, I would need to learn the basics fast, for a one-time > quick-n-dirty job. ## ## START SCRIPT ## ## # # Easy_

Re: Advice requested on class design

2010-04-28 Thread Walter Wefft
Alan Ristow wrote: I would like to have three classes, ClassA, ClassB, and ClassC, that are essentially the same, the only difference being that each class has a different range of valid values for its properties. Thus, the obvious solution is to create a base class, then subclass from that a

Re: Advice requested on class design

2010-04-28 Thread Jean-Michel Pichavant
- "Alan Ristow" wrote: > Hi all, > > I am relatively new to Python, though not to programming in general, and > using Python 2.6. I have a design problem that I cannot quite decide how to > handle and I am hoping for some advice. > > I would like to have three classes, ClassA, ClassB,

Re: Advice Criticism on Python App

2010-03-26 Thread Tim Roberts
Steven D'Aprano wrote: >On Wed, 24 Mar 2010 21:14:23 -0700, Tim Roberts wrote: > >> Jimbo wrote: >>> >>>class stock: >>>code = "" >>>purchasePrice= 0 >>>purchaseQuantity = 0 >>>price= [] # list of recent prices >>>recentBid= [] # list of

Re: Advice Criticism on Python App

2010-03-25 Thread Bruno Desthuilliers
Steven D'Aprano a écrit : On Wed, 24 Mar 2010 21:14:23 -0700, Tim Roberts wrote: Jimbo wrote: class stock: code = "" purchasePrice= 0 purchaseQuantity = 0 price= [] # list of recent prices recentBid= [] # list of recent bids for stock

Re: Advice needed on parallel processing in python

2010-03-25 Thread bobicanprogram
On Mar 24, 1:13 pm, Jon Clements wrote: > On 24 Mar, 15:27, Glazner wrote: > > > > > Hi! > > > I need to replace an app that does number crunching over a local > > network. > > it have about 50 computers as slaves > > each computer needs to run COM that will do the "job" > > right now the system

Re: Advice Criticism on Python App

2010-03-24 Thread Steven D'Aprano
On Wed, 24 Mar 2010 21:14:23 -0700, Tim Roberts wrote: > Jimbo wrote: >> >>class stock: >>code = "" >>purchasePrice= 0 >>purchaseQuantity = 0 >>price= [] # list of recent prices >>recentBid= [] # list of recent bids for stock >>recent

Re: Advice Criticism on Python App

2010-03-24 Thread Tim Roberts
Jimbo wrote: > >class stock: >code = "" >purchasePrice= 0 >purchaseQuantity = 0 >price= [] # list of recent prices >recentBid= [] # list of recent bids for stock >recentOffer = [] # list of recent offers for stock >stockVol

Re: Advice needed on parallel processing in python

2010-03-24 Thread Shashwat Anand
have you checked hadoop ? On Wed, Mar 24, 2010 at 11:43 PM, Jon Clements wrote: > On 24 Mar, 15:27, Glazner wrote: > > Hi! > > > > I need to replace an app that does number crunching over a local > > network. > > it have about 50 computers as slaves > > each computer needs to run COM that will d

Re: Advice needed on parallel processing in python

2010-03-24 Thread Jon Clements
On 24 Mar, 15:27, Glazner wrote: > Hi! > > I need to replace an app that does number crunching over a local > network. > it have about 50 computers as slaves > each computer needs to run COM that will do the "job" > right now the system uses MFC threads and DCOM to distribute the load. > > as i sa

Re: Advice Criticism on Python App

2010-03-23 Thread MRAB
Jimbo wrote: I have made a Python App(really script) that will check a stocks current values from a website & save that data to a SQLite 3 database. I am looking for any suggestions & criticisms on what I should do better or anything at all but mainly in these areas: [QUOTE] - Correct Python Lay

Re: Advice Criticism on Python App

2010-03-23 Thread Chris Rebert
On Tue, Mar 23, 2010 at 5:05 PM, Jimbo wrote: > I have made a Python App(really script) that will check a stocks > current values from a website & save that data to a SQLite 3 database. > > I am looking for any suggestions & criticisms on what I should do > better or anything at all but mainly in

Re: advice needed for lazy evaluation mechanism

2009-11-12 Thread Steven D'Aprano
On Thu, 12 Nov 2009 08:53:57 +0100, Dieter Maurer wrote: > Steven D'Aprano writes on 10 Nov > 2009 19:11:07 GMT: >> ... >> > So I am trying to restructure it using lazy evaluation. >> >> Oh great, avoiding confusion with something even more confusing. > > Lazy evaluation may be confusing if it

Re: advice needed for lazy evaluation mechanism

2009-11-11 Thread Dieter Maurer
Steven D'Aprano writes on 10 Nov 2009 19:11:07 GMT: > ... > > So I am trying to restructure it using lazy evaluation. > > Oh great, avoiding confusion with something even more confusing. Lazy evaluation may be confusing if it is misused. But, it may be very clear and powerful if used appropriat

Re: advice needed for lazy evaluation mechanism

2009-11-10 Thread Steven D'Aprano
On Sun, 08 Nov 2009 14:41:27 -0800, markolopa wrote: > Hi, > > Could you please give me some advice on the piece of code I am writing? > > My system has several possible outputs, some of them are not always > needed. I started to get confused with the code flow conditions needed > to avoid doing

Re: advice needed for lazy evaluation mechanism

2009-11-09 Thread markolopa
On Nov 9, 1:34 am, MRAB wrote: > markolopa wrote: > > Hi again, > > > I put a copy of the message and the tarball of the code here (because > > of the problem of line breaks): > > >http://python-advocacy.wikidot.com/comp-lang-python-question > > Here's a slightly different approach: A clean and e

Re: advice needed for lazy evaluation mechanism

2009-11-08 Thread MRAB
markolopa wrote: Hi again, I put a copy of the message and the tarball of the code here (because of the problem of line breaks): http://python-advocacy.wikidot.com/comp-lang-python-question Here's a slightly different approach: repository.py = class Repository(object): def __

Re: advice needed for lazy evaluation mechanism

2009-11-08 Thread markolopa
Hi again, I put a copy of the message and the tarball of the code here (because of the problem of line breaks): http://python-advocacy.wikidot.com/comp-lang-python-question Thanks! Marko -- http://mail.python.org/mailman/listinfo/python-list

Re: Advice for a replacement for plone.

2008-10-02 Thread Dmitry S. Makovey
disclaimer: I'm not affiliated with any company selling Plone services ;) I also have nothing against Django and such. Ken Seehart wrote: > I want a new python based CMS. ... One that won't keep me up all night > > > I've been fooling around with zope and plone, and I like plone for some

Re: Advice for a replacement for plone.

2008-09-30 Thread Nick Craig-Wood
Ken Seehart <[EMAIL PROTECTED]> wrote: > I want a new python based CMS. ... One that won't keep me up all night > > I've been fooling around with zope and plone, and I like plone for some > things, such as a repository for online project documentation. However > for general-purpose we

Re: Advice on the style to use in imports

2008-08-30 Thread Bruno Desthuilliers
Marco Bizzarri a écrit : Hi all. I read the PEP8 and the "importing Python Modules" article. However, I'm still a little confused on what should the general rules for importing modules. I'm showing what I used in my current project, and will accept your advices on how I should change them. The

Re: Advice on the style to use in imports

2008-08-30 Thread Marco Bizzarri
On Sat, Aug 30, 2008 at 4:53 PM, Eric Wertman <[EMAIL PROTECTED]> wrote: >> I read the PEP8 and the "importing Python Modules" article. However, >> I'm still a little confused on what should the general rules for >> importing modules. >> >> I'm showing what I used in my current project, and will ac

Re: Advice on the style to use in imports

2008-08-30 Thread Marco Bizzarri
Hi bearophile On Sat, Aug 30, 2008 at 4:04 PM, <[EMAIL PROTECTED]> wrote: > > from somemodule import somename > > is often acceptable IHMO, but there are some things to consider: > - you and the person that reads your code have to remember where > somename comes from. So you can do it for well

Re: Advice on the style to use in imports

2008-08-30 Thread Eric Wertman
> I read the PEP8 and the "importing Python Modules" article. However, > I'm still a little confused on what should the general rules for > importing modules. > > I'm showing what I used in my current project, and will accept your > advices on how I should change them. > import module > > and then

Re: Advice on the style to use in imports

2008-08-30 Thread bearophileHUGS
Marco Bizzarri: > I'm just confused because PEP8 seems to suggest that the from module > import Class style is acceptable; is there a big "if you know what are > doing" before, which I'm unable to see? from somemodule import somename is often acceptable IHMO, but there are some things to consider

Re: Advice on the style to use in imports

2008-08-30 Thread Marco Bizzarri
On Sat, Aug 30, 2008 at 2:20 PM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > importing objects instead of the module (namespace) they live in can cause > all sorts of aliasing and dependency issues. avoid unless you know exactly > what you're doing. > > > Thanks Fredrik; I understand that is th

Re: Advice on the style to use in imports

2008-08-30 Thread Fredrik Lundh
Marco Bizzarri wrote: I'm showing what I used in my current project, and will accept your advices on how I should change them. The style is consistently the following: from package.subpackge.module import MyClass Is this an accepted way to write imports? According to what I understood in arti

Re: Advice for a python newbie on parsing whois records?

2008-06-11 Thread Phillip B Oldham
On Jun 10, 8:21 pm, Miki <[EMAIL PROTECTED]> wrote: > Hello, > > > Hi. I'm stretching my boundaries in programming with a little python > > shell-script which is going to loop through a list of domain names, > > grab the whois record, parse it, and put the results into a csv. > > > I've got the res

Re: Advice for a python newbie on parsing whois records?

2008-06-10 Thread Miki
Hello, > Hi. I'm stretching my boundaries in programming with a little python > shell-script which is going to loop through a list of domain names, > grab the whois record, parse it, and put the results into a csv. > > I've got the results coming back fine, but since I have *no* > experience with

Re: Advice for a python newbie on parsing whois records?

2008-06-10 Thread Lie
On Jun 10, 9:47 pm, Phillip B Oldham <[EMAIL PROTECTED]> wrote: > Hi. I'm stretching my boundaries in programming with a little python > shell-script which is going to loop through a list of domain names, > grab the whois record, parse it, and put the results into a csv. > > I've got the results co

Re: Advice from senior Members

2008-05-23 Thread Nick Craig-Wood
flit <[EMAIL PROTECTED]> wrote: > I am looking for some experience from the senior members. > Now I am doing a simple desktop application, this application will > have 3 main functions: > > 1- Read information about the desktop system; > 2- Interact with the user; > 3- Send information to a

Re: Advice from senior Members

2008-05-23 Thread Mike Driscoll
On May 23, 8:02 am, flit <[EMAIL PROTECTED]> wrote: > Hello All, > > I am looking for some experience from the senior members. > Now I am doing a simple desktop application, this application will > have 3 main functions: > > 1- Read information about the desktop system; > 2- Interact with the user;

Re: Advice on tools/technologies/books, etc.

2008-04-12 Thread Nathan Duran
On Apr 12, 2008, at 6:55 PM, [EMAIL PROTECTED] wrote: > Will it be possible for me to put together an async site > with only python? Nope. Not until some browser embeds a Python interpreter in it anyway. Your primary choices are JavaScript and Flash. -- http://mail.python.org/mailman/listi

Re: Advice on tools/technologies/books, etc.

2008-04-12 Thread Brian
I would definitely recommend Django as a framework - though the choice of framework wouldn't really affect your use of AJAX. And using AJAX actually doesn't require learning a whole lot of javascript stuff - using something like the Prototype JS library (prototypejs.org) takes care of all the deta

Re: Advice for editing xml file using ElementTree and wxPython

2007-12-09 Thread Rick Muller
On Dec 8, 11:57 pm, Waldemar Osuch <[EMAIL PROTECTED]> wrote: > On Dec 8, 8:35 pm, Rick Muller <[EMAIL PROTECTED]> wrote: > > > > > I'm a computational chemist who frequently dabbles in Python. A > > collaborator sent me a huge XML file that at one point was evidently > > modified by a now defunct

Re: Advice for editing xml file using ElementTree and wxPython

2007-12-08 Thread Waldemar Osuch
On Dec 8, 8:35 pm, Rick Muller <[EMAIL PROTECTED]> wrote: > I'm a computational chemist who frequently dabbles in Python. A > collaborator sent me a huge XML file that at one point was evidently > modified by a now defunct java application. A sample of this file > looks something like: > > > T

Re: Advice for editing xml file using ElementTree and wxPython

2007-12-08 Thread Steve Howell
--- Rick Muller <[EMAIL PROTECTED]> wrote: > If I want to do this, it seems like I need to keep a > connection > between the gui element and the original value in > the elementtree, so > I can update it. But I'm having a hard time > visualizing exactly how > this works. Can someone help me out he

Re: Advice on long running processes

2007-10-11 Thread commander_coder
Thank you to folks for the replies. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Advice on long running processes

2007-10-11 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > Hello, > > I write a lot of CGI scripts, in Python of course. Now I need to > convert some to long-running processes. I'm having trouble finding > resources about the best practices to do that. > > I've found a lot of email discussions that say something like, "You

Re: Advice on long running processes

2007-10-11 Thread Bruno Barberi Gnecco
Roy Smith wrote: > [EMAIL PROTECTED] wrote: > > >>Hello, >> >>I write a lot of CGI scripts, in Python of course. Now I need to >>convert some to long-running processes. I'm having trouble finding >>resources about the best practices to do that. >> >>I've found a lot of email discussions that sa

Re: Advice on long running processes

2007-10-11 Thread Roy Smith
[EMAIL PROTECTED] wrote: > Hello, > > I write a lot of CGI scripts, in Python of course. Now I need to > convert some to long-running processes. I'm having trouble finding > resources about the best practices to do that. > > I've found a lot of email discussions that say something like, "You >

Re: advice about `correct' use of decorator

2007-09-03 Thread Gregor Horvath
Gerardo Herzig schrieb: > > @is_logued_in > def change_pass(): >bla >bla > > And so on for all the other functions who needs that the user is still > loged in. > > where obviosly the is_logued_in() function will determine if the dude is > still loged in, and THEN execute change_pass().

Re: advice about `correct' use of decorator

2007-09-03 Thread Ricardo Aráoz
Gabriel Genellina wrote: > En Wed, 29 Aug 2007 07:32:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]> > escribi�: > >> On 8/24/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >>> En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]> >>> escribi�: >>> def check_user_logged_in

Re: advice about `correct' use of decorator

2007-09-02 Thread Gabriel Genellina
En Wed, 29 Aug 2007 07:32:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]> escribi�: > On 8/24/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >> En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]> >> escribi�: >> >> > def check_user_logged_in(func): >> > def f(*args, **kwa

Re: advice about `correct' use of decorator

2007-09-01 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Gerardo Herzig wrote: > @is_logued_in > def change_pass(): > bla > bla > > And so on for all the other functions who needs that the user is still > loged in. My suspicion is that most of the methods in your session object (with the obvious exception of the

Re: advice about `correct' use of decorator

2007-08-29 Thread BJörn Lindqvist
On 8/24/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]> > escribi�: > > > def check_user_logged_in(func): > > def f(*args, **kwargs): > > if global_state.the_user.is_logged_in: > > return func(*args,

Re: advice about `correct' use of decorator

2007-08-23 Thread Gabriel Genellina
En Thu, 23 Aug 2007 09:20:21 -0300, BJörn Lindqvist <[EMAIL PROTECTED]> escribi�: > On 8/22/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: >> On 22 ago, 10:00, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: >> > As I said, you can accomplish the exact same thing by calling a >> > function from w

Re: advice about `correct' use of decorator

2007-08-23 Thread Gerardo Herzig
BJörn Lindqvist wrote: >On 8/22/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > >>On 22 ago, 10:00, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: >> >> >>>As I said, you can accomplish the exact same thing by calling a >>>function from within the function that requires the user to be log

Re: advice about `correct' use of decorator

2007-08-23 Thread BJörn Lindqvist
On 8/22/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > On 22 ago, 10:00, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: > > As I said, you can accomplish the exact same thing by calling a > > function from within the function that requires the user to be logged > > in. > > > > def change_pass():

Re: advice about `correct' use of decorator

2007-08-22 Thread Bruno Desthuilliers
Gerardo Herzig a écrit : > Steven Bethard wrote: > >> Gerardo Herzig wrote: >> >> >>> Hi all. I guess i have a conceptual question: >>> Im planing using a quite simple decorator to be used as a conditional >>> for the execution of the function. (snip) >>> >>> Something in my mind tells me that

Re: advice about `correct' use of decorator

2007-08-22 Thread Gabriel Genellina
On 22 ago, 10:00, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: > On 8/17/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote: > > > BJörn Lindqvist wrote: > > >def is_logued_in(): > > >if not user.is_logged_in(): > > >raise NotLoggedInError > > > >It costs you one more line, but reduces comple

Re: advice about `correct' use of decorator

2007-08-22 Thread BJörn Lindqvist
On 8/17/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote: > BJörn Lindqvist wrote: > >def is_logued_in(): > >if not user.is_logged_in(): > >raise NotLoggedInError > > > >It costs you one more line, but reduces complexity. And if you are > >worried about that extra line you can put it in a f

Re: advice about `correct' use of decorator

2007-08-17 Thread Steve Holden
Gerardo Herzig wrote: [...] > As far as i know (by the way, AFAK is the shortcut? [...] That's "AFAIK", AFAIK :-) regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden -

Re: advice about `correct' use of decorator

2007-08-17 Thread Gerardo Herzig
BJörn Lindqvist wrote: >On 8/16/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote: > > >>@is_logued_in >>def change_pass(): >>bla >>bla >> >>And so on for all the other functions who needs that the user is still >>loged in. >> >>where obviosly the is_logued_in() function will determine if the

Re: advice about `correct' use of decorator

2007-08-17 Thread Gerardo Herzig
Laszlo Nagy wrote: > >>> >>> Are you developing a website or a GUI program? >>> >>> >> It will be used in a web development. It is an important point? > > Yes, I think. Unless you use AJAX. :-) Most web sites work this way: > > user clicks -> request to server -> process on server -> response > >

Re: advice about `correct' use of decorator

2007-08-17 Thread BJörn Lindqvist
On 8/16/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote: > @is_logued_in > def change_pass(): > bla > bla > > And so on for all the other functions who needs that the user is still > loged in. > > where obviosly the is_logued_in() function will determine if the dude is > still loged in, and TH

  1   2   3   >