Re: advice on debugging a segfault

2021-01-18 Thread Robin Becker
esses up the refcount for True, but this refcount issue is for some tuple object, so may possibly be a different problem. Steve .. thanks for all the advice and apologies for the noise. It turns out that Victor Stinner's recommendation in the dev list was the solution as I don't s

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

advice on debugging a segfault

2021-01-17 Thread Robin Becker
I have a segfault in the 3.10 alpha 4 when running the reportlab document generation; all the other tests seem to have worked. I would like to ask experts here how to approach getting the location of the problem. I run recent archlinux. Below is the output of a test run with -Xdev -Xtracemalloc

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
ility, 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 that specializes in software licenses and class action

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

Advice on law firm

2018-10-17 Thread Ryan Johnson
Anyone know a good US based law firm that specializes in software licenses and class action suits? Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Looking for advice

2018-04-20 Thread Chris Angelico
, so you have some idea of what it can do. As your requirements grow, you'll eventually outgrow SQLite, and the most obvious next step is Postgres; you'll do well to at least have a nodding familiarity with it, so you can decide when to move up. Also, since you're asking for advic

Re: Looking for advice

2018-04-20 Thread Rob Gaddi
On 04/20/2018 10:28 AM, 20/20 Lab wrote: Going to write my first python program that uses a database. Going to store 50-100 rows with 5-10 columns.  Which database / module would you advise me to use?  It's basically going to be processing order status emails for the sales staff.  Producing a w

Re: Looking for advice

2018-04-20 Thread Joel Goldstick
On Fri, Apr 20, 2018 at 1:28 PM, 20/20 Lab wrote: > Going to write my first python program that uses a database. Going to store > 50-100 rows with 5-10 columns. Which database / module would you advise me > to use? It's basically going to be processing order status emails for the > sales staff.

Looking for advice

2018-04-20 Thread 20/20 Lab
Going to write my first python program that uses a database. Going to store 50-100 rows with 5-10 columns.  Which database / module would you advise me to use?  It's basically going to be processing order status emails for the sales staff.  Producing a webpage (2-3 times daily, as updates arriv

Advice on where to define dependency injection providers

2018-01-31 Thread Victor Porton
I define ExecutionContext in xmlboiler.core.execution_context module. ExecutionContext is meant to contain a common "environment" suitable for different kinds of tasks. Currently ExecutionContext contains a logger and a translator of messages: class ExecutionContext(object): def __init__(se

advice for inventory software

2017-11-30 Thread Brian J. Oney via Python-list
sources. For now, I imagine a simple flask app capturing the input and feeding it into an SQL database. Certainly, someone has had the opportunity to something similar if not identical. I would be particularly greatful for advice on design and work already done. For those interested, I have

Re: Creating a python client for an external service advice

2017-09-14 Thread dieter
ivan77 writes: > I would like to create a Python module/client library for a data > visualization service that I use (and will be using more) as my first larger > contribution to open source Python. What kind of service is this "data visualization service"? Is it a library, destined to be linke

Creating a python client for an external service advice

2017-09-13 Thread ivan77
Hi All, I would like to create a Python module/client library for a data visualization service that I use (and will be using more) as my first larger contribution to open source Python. I have not come across any best practices for this, and am wondering whether there are some resources that y

seeking advice about strategic-game ai

2017-09-05 Thread namenobodywants
i plan to try writing an ai for a strategic game, and i've pretty much narrowed the candidates down to either checkers or reversi. i would prefer to tackle the easier game, so can anybody tell me which one is easier to program decently? (or maybe i'm missing a good candidate - basically all i

Re: Need advice on writing better test cases.

2017-08-28 Thread Anubhav Yadav
> A good way to learn unit testing and regression testing is to download > the Python source code and read the test suites. It’s a fantastic idea. I will also have a good understanding of the internals of the standard library and at I can learn more about testing. Any specific module that you

Re: Need advice on writing better test cases.

2017-08-28 Thread Steven D'Aprano
On Mon, 28 Aug 2017 01:55:25 +0530, Anubhav Yadav wrote: > Can you suggest me the right python testing frameworks that I should be > using? Right now I am using unittest to write test cases and manual > if/else statements to run the functional test cases. A good way to learn unit testing and reg

Re: Need advice on writing better test cases.

2017-08-28 Thread Anubhav Yadav
> If you have a function and you want to assert *that function's* > behaviour, you can avoid external dependencies during the test run by > providing fake resources. These can be mocks (e.g. with ‘unittest.mock’) > or other fake resources that are going to behave exactly how you want, > for the pu

Re: Need advice on writing better test cases.

2017-08-28 Thread Anubhav Yadav
> On 28-Aug-2017, at 04:35, Ben Finney wrote: > > Anubhav Yadav writes: > >> I want to write more test cases, specially that rely on database >> insertions and reads and file IO. > > Thanks for taking seriously the importance of test cases for your code! > > One important thing to recognise

Re: Need advice on writing better test cases.

2017-08-27 Thread Ben Finney
Anubhav Yadav writes: > I want to write more test cases, specially that rely on database > insertions and reads and file IO. Thanks for taking seriously the importance of test cases for your code! One important thing to recognise is that a unit test is only one type of test. It tests one unit o

Need advice on writing better test cases.

2017-08-27 Thread Anubhav Yadav
Hello, I am a (self-learned) python developer and I write a lot of python code everyday. I try to do as much unit testing as possible. But I want to be better at it, I want to write more test cases, specially that rely on database insertions and reads and file IO. Here are my use-cases for test

Any advice on getting Pyscripter installed & working with Python on Windows 10 computer ?

2017-08-15 Thread TKS
> > > Hi there, > > I am trying to assist my daughter with a school IT task to install Python > & Pyscripter on a Windows 10 notebook. (64 bit system) > > It seems no version of Pyscripter will work - it fails to complete the > installation & ends with an error ("Python could not be properly > init

Re: Need some advice please

2017-07-30 Thread Rick Johnson
On Saturday, July 29, 2017 at 10:24:20 PM UTC-5, MRAB wrote: > What is the difference between (1) and (4)? Case in point. ;-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Need some advice please

2017-07-29 Thread MRAB
On 2017-07-29 17:59, Rick Johnson wrote: On Saturday, July 29, 2017 at 4:59:26 AM UTC-5, Steve D'Aprano wrote: On Sat, 29 Jul 2017 06:34 pm, Kryptxy wrote: > Would it get me around legal issues, that is making this > tool completely legal? Do you think we are lawyers? We're not. Even if we we

Re: Need some advice please

2017-07-29 Thread Rick Johnson
On Saturday, July 29, 2017 at 4:59:26 AM UTC-5, Steve D'Aprano wrote: > On Sat, 29 Jul 2017 06:34 pm, Kryptxy wrote: > > > Would it get me around legal issues, that is making this > > tool completely legal? > > Do you think we are lawyers? We're not. Even if we were, > we're not lawyers who are ex

Re: Need some advice please

2017-07-29 Thread Steve D'Aprano
On Sat, 29 Jul 2017 06:34 pm, Kryptxy wrote: > Would it get me around legal issues, that is making this tool completely > legal? Do you think we are lawyers? We're not. Even if we were, we're not lawyers who are expert on the legal system of every country in the world. What country's laws are y

Need some advice please

2017-07-29 Thread Kryptxy via Python-list
etely legal? I could really use sone advice here. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

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 > para

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

Advice on optimizing a Python data driven rules engine

2016-08-11 Thread Malcolm Greene
iated method which gets called based on rule name. 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 value. But

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

Advice on Python build tools

2016-04-12 Thread Sayth Renshaw
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 invoke. My requirements, simply i want to learn and build a simple

Windows - Embedded Python in C++: ImportError: DLL load failed. Python expert advice needed.

2016-01-27 Thread ftpronk
I've been busy porting a Linux code to Windows, and originally decided to go for the mingw-w64 toolchain set, with gcc-4.8 and win32 threading model. I'm embedding Python in C++ code, and I need to be able to import specific modules, like PySide, to eventually embed an IPython qtconsole in a C++

Re: Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Chris Angelico
On Mon, Nov 9, 2015 at 3:00 PM, Sayth Renshaw wrote: > This is an exert > > DevKit Overview > The DevKit is a toolkit that makes it easy to build and use native C/C++ > extensions such as RDiscount and RedCloth for Ruby on Windows. > > Because on Windows with python libraries like lxml will fail

Re: Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Sayth Renshaw
This is an exert DevKit Overview The DevKit is a toolkit that makes it easy to build and use native C/C++ extensions such as RDiscount and RedCloth for Ruby on Windows. Because on Windows with python libraries like lxml will fail with a vcvarsall error based on different c++ compilers. Sayth

Re: Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Chris Angelico
On Mon, Nov 9, 2015 at 11:33 AM, Sayth Renshaw wrote: > I was wondering if there is a reason that we on windows with python do not > have a version of Ruby devkit for python. > Many of us here don't use Ruby. Can you elaborate on what "devkit" does, please? ChrisA -- https://mail.python.org/ma

Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Sayth Renshaw
Hi I was wondering if there is a reason that we on windows with python do not have a version of Ruby devkit for python. Is it just for historical reason of life before pip became the package manager and released with python? I can't find the actual post in SO it came off this discussion http

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
In a message of Sun, 30 Aug 2015 10:34:18 -0700, kbtyo writes: >@Laura - thank you. I observed this earlier. Please see my reply to Ben and >MRAB for the most up to date status. For the more general problem of 'how do I parse my XML' download and use this package. https://pypi.python.org/pypi/x

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread kbtyo
On Sunday, August 30, 2015 at 1:16:12 PM UTC-4, MRAB wrote: > On 2015-08-30 17:31, kbtyo wrote: > > On Saturday, August 29, 2015 at 10:50:18 PM UTC-4, MRAB wrote: > >> On 2015-08-30 03:05, kbtyo wrote: > >> > I am using Jupyter Notebook and Python 3.4. I have a data structure in > >> > the format,

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
When you get TypeError: unhashable type: 'dict' it almost always means that you are trying to use a dict as a key for a different dict. Python 2.7.10 (default, Jul 1 2015, 10:54:53) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> d={1:'one', 2:'t

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread MRAB
On 2015-08-30 17:31, kbtyo wrote: On Saturday, August 29, 2015 at 10:50:18 PM UTC-4, MRAB wrote: On 2015-08-30 03:05, kbtyo wrote: > I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): > > [{'AccountNumber': N, > 'Amount': '0', > 'Answer': '12:00:00

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread kbtyo
On Saturday, August 29, 2015 at 11:04:53 PM UTC-4, Ben Finney wrote: > kbtyo writes: > > > I am using Jupyter Notebook and Python 3.4. > > Thank you for saying so! It is not always required, but when it matters, > this information is important to state up front. > > > I have a data structure in

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread kbtyo
On Saturday, August 29, 2015 at 10:50:18 PM UTC-4, MRAB wrote: > On 2015-08-30 03:05, kbtyo wrote: > > I am using Jupyter Notebook and Python 3.4. I have a data structure in the > > format, (type list): > > > > [{'AccountNumber': N, > > 'Amount': '0', > > 'Answer': '12:00:00 PM', > >'ID': No

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-29 Thread Ben Finney
kbtyo writes: > I am using Jupyter Notebook and Python 3.4. Thank you for saying so! It is not always required, but when it matters, this information is important to state up front. > I have a data structure in the format, (type list): > > [{'AccountNumber': N, > 'Amount': '0', > 'Answer': '12

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-29 Thread MRAB
On 2015-08-30 03:05, kbtyo wrote: I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): [{'AccountNumber': N, 'Amount': '0', 'Answer': '12:00:00 PM', 'ID': None, 'Type': 'WriteLetters', 'Amount': '10', {'AccountNumber': Y, 'Amount':

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-29 Thread Mark Lawrence
On 30/08/2015 03:05, kbtyo wrote: I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): [{'AccountNumber': N, 'Amount': '0', 'Answer': '12:00:00 PM', 'ID': None, 'Type': 'WriteLetters', 'Amount': '10', {'AccountNumber': Y, 'Amount':

TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-29 Thread kbtyo
I am using Jupyter Notebook and Python 3.4. I have a data structure in the format, (type list): [{'AccountNumber': N, 'Amount': '0', 'Answer': '12:00:00 PM', 'ID': None, 'Type': 'WriteLetters', 'Amount': '10', {'AccountNumber': Y, 'Amount': '0', 'Answer': ' 12:00:00 PM',

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Chris Angelico
On Wed, Apr 15, 2015 at 12:14 AM, Steven D'Aprano wrote: > On Tue, 14 Apr 2015 11:45 pm, Chris Angelico wrote: > >> On Tue, Apr 14, 2015 at 11:08 PM, Steven D'Aprano >> wrote: >>> On Tue, 14 Apr 2015 05:58 pm, Fabien wrote: >>> On 14.04.2015 06:05, Chris Angelico wrote: > Not sure what y

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Steven D'Aprano
On Tue, 14 Apr 2015 11:45 pm, Chris Angelico wrote: > On Tue, Apr 14, 2015 at 11:08 PM, Steven D'Aprano > wrote: >> On Tue, 14 Apr 2015 05:58 pm, Fabien wrote: >> >>> On 14.04.2015 06:05, Chris Angelico wrote: Not sure what you mean, here. Any given file will be written by exactly one p

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Chris Angelico
On Tue, Apr 14, 2015 at 11:08 PM, Steven D'Aprano wrote: > On Tue, 14 Apr 2015 05:58 pm, Fabien wrote: > >> On 14.04.2015 06:05, Chris Angelico wrote: >>> Not sure what you mean, here. Any given file will be written by >>> exactly one process? No possible problem. Multiprocessing within one >>> ap

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Steven D'Aprano
On Tue, 14 Apr 2015 05:58 pm, Fabien wrote: > On 14.04.2015 06:05, Chris Angelico wrote: >> Not sure what you mean, here. Any given file will be written by >> exactly one process? No possible problem. Multiprocessing within one >> application doesn't change that. > > yes that's what I meant. Than

Re: Pickle based workflow - looking for advice

2015-04-14 Thread Fabien
On 14.04.2015 06:05, Chris Angelico wrote: Not sure what you mean, here. Any given file will be written by exactly one process? No possible problem. Multiprocessing within one application doesn't change that. yes that's what I meant. Thanks! -- https://mail.python.org/mailman/listinfo/python-li

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Chris Angelico
On Tue, Apr 14, 2015 at 3:35 AM, Fabien wrote: > With multiprocessing, do I have to care about processes writing > simultaneously in *different* files? I guess the OS takes good care of this > stuff but I'm not an expert. Not sure what you mean, here. Any given file will be written by exactly one

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Fabien
On 13.04.2015 19:08, Peter Otten wrote: How about a file-based workflow? Write distinct scripts, e. g. a2b.py that reads from *.a and writes to *.b and so on. Then use a plain old makefile to define the dependencies. Whether .a uses pickle, .b uses json, and .z uses csv is but an implementatio

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Fabien
On 13.04.2015 17:45, Devin Jeanpierre wrote: On Mon, Apr 13, 2015 at 10:58 AM, Fabien wrote: >Now, to my questions: >1. Does that seem reasonable? A big issue is the use of pickle, which is: * Often suboptimal performance wise (e.g. you can't load only subsets of the data) * Makes forwards/ba

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Fabien
On 13.04.2015 18:25, Dave Angel wrote: On 04/13/2015 10:58 AM, Fabien wrote: Folks, A comment. Pickle is a method of creating persistent data, most commonly used to preserve data between runs. A database is another method. Although either one can also be used with multiprocessing, you seem

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Peter Otten
Fabien wrote: > I am writing a quite extensive piece of scientific software. Its > workflow is quite easy to explain. The tool realizes series of > operations on watersheds (such as mapping data on it, geostatistics and > more). There are thousands of independent watersheds of different size, > an

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Dave Angel
On 04/13/2015 10:58 AM, Fabien wrote: Folks, A comment. Pickle is a method of creating persistent data, most commonly used to preserve data between runs. A database is another method. Although either one can also be used with multiprocessing, you seem to be worrying more about the mechan

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Robin Becker
for what it's worth I believe that marshal is a faster method for storing simple python objects. So if your information can be stored using simple python things eg strings, floats, integers, lists and dicts then storage using marshal is faster than pickle/cpickle. If you want to persist the obje

Re: Pickle based workflow - looking for advice

2015-04-13 Thread Devin Jeanpierre
On Mon, Apr 13, 2015 at 10:58 AM, Fabien wrote: > Now, to my questions: > 1. Does that seem reasonable? A big issue is the use of pickle, which is: * Often suboptimal performance wise (e.g. you can't load only subsets of the data) * Makes forwards/backwards compatibility very difficult * Can mak

Pickle based workflow - looking for advice

2015-04-13 Thread Fabien
Folks, I am writing a quite extensive piece of scientific software. Its workflow is quite easy to explain. The tool realizes series of operations on watersheds (such as mapping data on it, geostatistics and more). There are thousands of independent watersheds of different size, and the size d

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Rustom Mody
On Saturday, April 4, 2015 at 1:52:20 AM UTC+5:30, Dave Angel wrote: > On 04/03/2015 08:50 AM, Saran A wrote: > > On Friday, April 3, 2015 at 8:05:14 AM UTC-4, Dave Angel wrote: > >> On 04/02/2015 07:43 PM, Saran A wrote: > > > > I addressed most of the issues. I do admit that, as a novice, I feel

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Cameron Simpson
On 03Apr2015 16:21, Dave Angel wrote: On 04/03/2015 08:50 AM, Saran A wrote: On Friday, April 3, 2015 at 8:05:14 AM UTC-4, Dave Angel wrote: On 04/02/2015 07:43 PM, Saran A wrote: os.mkdir('Success') As you correctly stated: What do you do the second time through this function, when

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Dave Angel
On 04/03/2015 08:50 AM, Saran A wrote: On Friday, April 3, 2015 at 8:05:14 AM UTC-4, Dave Angel wrote: On 04/02/2015 07:43 PM, Saran A wrote: I addressed most of the issues. I do admit that, as a novice, I feel beholden to the computer - hence the over-engineering. Should be quite the oppo

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Saran A
On Friday, April 3, 2015 at 6:46:21 AM UTC-4, Peter Otten wrote: > Saran A wrote: > > > I debugged and rewrote everything. Here is the full version. Feel free to > > tear this apart. The homework assignment is not due until tomorrow, so I > > am currently also experimenting with pyinotify as well.

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Saran A
On Friday, April 3, 2015 at 8:05:14 AM UTC-4, Dave Angel wrote: > On 04/02/2015 07:43 PM, Saran A wrote: > > > > > I debugged and rewrote everything. Here is the full version. Feel free to > > tear this apart. The homework assignment is not due until tomorrow, so I am > > currently also expe

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Dave Angel
On 04/02/2015 07:43 PM, Saran A wrote: I debugged and rewrote everything. Here is the full version. Feel free to tear this apart. The homework assignment is not due until tomorrow, so I am currently also experimenting with pyinotify as well. I do have questions regarding how to make this

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-03 Thread Peter Otten
Saran A wrote: > I debugged and rewrote everything. Here is the full version. Feel free to > tear this apart. The homework assignment is not due until tomorrow, so I > am currently also experimenting with pyinotify as well. Saran, try to make a realistic assessment of your capability. Your "debu

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-02 Thread Saran A
On Thursday, April 2, 2015 at 5:11:20 PM UTC-4, Dave Angel wrote: > On 04/02/2015 09:06 AM, Saran A wrote: > > > > > Thanks for your help on this homework assignment. I started from scratch > > last night. I have added some comments that will perhaps help clarify my > > intentions and my thought

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-02 Thread Dave Angel
On 04/02/2015 09:06 AM, Saran A wrote: Thanks for your help on this homework assignment. I started from scratch last night. I have added some comments that will perhaps help clarify my intentions and my thought process. Thanks again. from __future__ import print_function I'll just randomly

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-02 Thread Saran A
On Wednesday, April 1, 2015 at 7:52:27 PM UTC-4, Dave Angel wrote: > On 04/01/2015 09:43 AM, Saran A wrote: > > On Tuesday, March 31, 2015 at 9:19:37 AM UTC-4, Dave Angel wrote: > >> On 03/31/2015 07:00 AM, Saran A wrote: > >> > >> > @DaveA: This is a homework assignment. Is it possible that

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-01 Thread Dave Angel
On 04/01/2015 09:43 AM, Saran A wrote: On Tuesday, March 31, 2015 at 9:19:37 AM UTC-4, Dave Angel wrote: On 03/31/2015 07:00 AM, Saran A wrote: > @DaveA: This is a homework assignment. Is it possible that you could provide me with some snippets or guidance on where to place your suggesti

Re: Addendum to Strategy/ Advice for How to Best Attack this Problem?

2015-04-01 Thread Saran A
On Sunday, March 29, 2015 at 8:33:43 AM UTC-4, Peter Otten wrote: > Saran Ahluwalia wrote: > > > On Sunday, March 29, 2015 at 7:33:04 AM UTC-4, Saran Ahluwalia wrote: > >> Below are the function's requirements. I am torn between using the OS > >> module or some other quick and dirty module. In add

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-04-01 Thread Saran A
On Tuesday, March 31, 2015 at 9:19:37 AM UTC-4, Dave Angel wrote: > On 03/31/2015 07:00 AM, Saran A wrote: > > > @DaveA: This is a homework assignment. Is it possible that you > could provide me with some snippets or guidance on where to place your > suggestions (for your TO DOs 2,3,4,5)?

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-03-31 Thread Dave Angel
On 03/31/2015 07:00 AM, Saran A wrote: > @DaveA: This is a homework assignment. Is it possible that you could provide me with some snippets or guidance on where to place your suggestions (for your TO DOs 2,3,4,5)? > On Monday, March 30, 2015 at 2:36:02 PM UTC-4, Dave Angel wrote: I

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-03-31 Thread Saran A
On Monday, March 30, 2015 at 2:36:02 PM UTC-4, Dave Angel wrote: > On 03/30/2015 12:45 PM, Saran A wrote: > > On Sunday, March 29, 2015 at 10:04:45 PM UTC-4, Chris Angelico wrote: > >> On Mon, Mar 30, 2015 at 12:08 PM, Paul Rubin > >> wrote: > >>> Saran Ahluwalia writes: > cross-platform...

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-03-30 Thread Dave Angel
On 03/30/2015 12:45 PM, Saran A wrote: On Sunday, March 29, 2015 at 10:04:45 PM UTC-4, Chris Angelico wrote: On Mon, Mar 30, 2015 at 12:08 PM, Paul Rubin wrote: Saran Ahluwalia writes: cross-platform... * Monitors a folder for files that are dropped throughout the day I don't see a cross-p

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-03-30 Thread Saran A
On Sunday, March 29, 2015 at 10:04:45 PM UTC-4, Chris Angelico wrote: > On Mon, Mar 30, 2015 at 12:08 PM, Paul Rubin wrote: > > Saran Ahluwalia writes: > >> cross-platform... > >> * Monitors a folder for files that are dropped throughout the day > > > > I don't see a cross-platform way to do that

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-03-29 Thread Chris Angelico
On Mon, Mar 30, 2015 at 12:08 PM, Paul Rubin wrote: > Saran Ahluwalia writes: >> cross-platform... >> * Monitors a folder for files that are dropped throughout the day > > I don't see a cross-platform way to do that other than by waking up and > scanning the folder every so often (once a minute,

Re: Strategy/ Advice for How to Best Attack this Problem?

2015-03-29 Thread Paul Rubin
Saran Ahluwalia writes: > cross-platform... > * Monitors a folder for files that are dropped throughout the day I don't see a cross-platform way to do that other than by waking up and scanning the folder every so often (once a minute, say). The Linux way is with inotify and there's a Python modu

Re: Addendum to Strategy/ Advice for How to Best Attack this Problem?

2015-03-29 Thread Dave Angel
On 03/29/2015 07:37 AM, Saran Ahluwalia wrote: On Sunday, March 29, 2015 at 7:33:04 AM UTC-4, Saran Ahluwalia wrote: Below are the function's requirements. I am torn between using the OS module or some other quick and dirty module. In addition, my ideal assumption that this could be cross-plat

Re: Addendum to Strategy/ Advice for How to Best Attack this Problem?

2015-03-29 Thread Saran A
Thank you for the feedback - I have only been programming for 8 months now and am fairly new to best practice and what is considered acceptable in public forums. I appreciate the feedback on how to best address this problem. On Sunday, March 29, 2015 at 8:33:43 AM UTC-4, Peter Otten wrote: > Sa

Re: Addendum to Strategy/ Advice for How to Best Attack this Problem?

2015-03-29 Thread Peter Otten
Saran Ahluwalia wrote: > On Sunday, March 29, 2015 at 7:33:04 AM UTC-4, Saran Ahluwalia wrote: >> Below are the function's requirements. I am torn between using the OS >> module or some other quick and dirty module. In addition, my ideal >> assumption that this could be cross-platform. "Records" r

Addendum to Strategy/ Advice for How to Best Attack this Problem?

2015-03-29 Thread Saran Ahluwalia
On Sunday, March 29, 2015 at 7:33:04 AM UTC-4, Saran Ahluwalia wrote: > Below are the function's requirements. I am torn between using the OS module > or some other quick and dirty module. In addition, my ideal assumption that > this could be cross-platform. "Records" refers to contents in a file

Strategy/ Advice for How to Best Attack this Problem?

2015-03-29 Thread Saran Ahluwalia
Below are the function's requirements. I am torn between using the OS module or some other quick and dirty module. In addition, my ideal assumption that this could be cross-platform. "Records" refers to contents in a file. What are some suggestions from the Pythonistas? * Monitors a folder for

Bodybuilding Helpful Advice

2015-01-19 Thread nedraskeating
eme-review/ -- View this message in context: http://python.6.x6.nabble.com/Bodybuilding-Helpful-Advice-tp5083763.html Sent from the Python - python-list mailing list archive at Nabble.com. -- https://mail.python.org/mailman/listinfo/python-list

Advice needed - Choosing appropriate GUI (IDE) and Data Visualization software (3D also)

2014-12-19 Thread Ivan Evstegneev
beginners. Of cause, if there any other frameworks that worth to consider, and seems more suitable for beginners, I would be glad to hear for your advice. Here I need most of your help: 2. The interactive "middle window", unfortunately I have no idea what is a suitable software for su

Re: Asyncio problem, looking for advice.

2014-11-28 Thread Akira Li
x27;s not listed as such in the > docs. Is it just that it's preferred to use other methods instead of > using Task() directly, or am I missing something? asyncio is a provisional API [3], it may change without notice (though it shouldn't without a reason). From asyncio docs [4]:

Re: Asyncio problem, looking for advice.

2014-11-28 Thread Benjamin Risher
a question or two though, if you don't mind. You said Task() is deprecated, but it's not listed as such in the docs. Is it just that it's preferred to use other methods instead of using Task() directly, or am I missing something? Also, just so I can wrap my head around things,

Re: Asyncio problem, looking for advice.

2014-11-28 Thread Akira Li
Benjamin Risher writes: > Hello all, > > I'm working on a project to learn asyncio and network programming. What I'm > trying to do is forward a connection from myself to another machine. Kind of > like an asynchronous python implementation of fpipe. > > In a nutshell: > > 1 --> start a serve

Asyncio problem, looking for advice.

2014-11-27 Thread Benjamin Risher
Hello all, I'm working on a project to learn asyncio and network programming. What I'm trying to do is forward a connection from myself to another machine. Kind of like an asynchronous python implementation of fpipe. In a nutshell: 1 --> start a server listening on localhost 2 --> connect

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 f

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 ev

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 every

  1   2   3   4   5   6   7   8   9   10   >