Re: Python boilerplate

2016-03-20 Thread Fernando Felix do Nascimento Junior
@all I released version 1.0.0 with a tiny glossary and explanation of each file in the boilerplate. @Chris I made the boilerplate with intent that everyone can understand, download and use quickly. So, I didn't put extra dependence like cookiecutter (that depends jinja, that depends markupsaf

Python boilerplate

2016-03-19 Thread Fernando Felix do Nascimento Junior
A simple boilerplate for those who don't know the structure of a project. https://goo.gl/lJRvS6 ## Features * Build and distribute with setuptools * Check code style with flake8 * Make and run tests with pytest * Run tests on every Python version with tox * Code coverage with coverage.py ## Str

Re: "x == None" vs "x is None"

2016-01-19 Thread fernando junior
> I have seen at several places "x == None" and "x is None" within > if-statements. > What is the difference? > Which term should I prefer and why? > > > -- > Ullrich Horlacher Server und Virtualisierung > Rechenzentrum IZUS/TIK E-Mail: horlac...@tik.uni-stuttgart.de > Uni

Observer pattern implementation in Python based on jQuery

2016-01-14 Thread fernando junior
Hi, I made an observer/pubsub pattern implementation in Python based on jQuery. It's available in https://github.com/fernandojunior/python-pattern-observer. Take a look! :) Fernando Felix https://br.linkedin.com/in/fernandofnjr -- https://mail.python.org/mailman/listinfo/python-list

Re: Python GUI?

2013-09-13 Thread Joe Junior
On 13 September 2013 16:37, wrote: > I disagree with you. It's not hard, and I apologise if its ever sounded that > way, but it is the fun part for me. I love spending hours(days even) > debugging. > > Well, thanks all for depressing me. Time to give up programming and find > something else to

Re: Python GUI?

2013-09-13 Thread Joe Junior
On 13 September 2013 15:39, John Gordon wrote: > In <76784bad-cd6d-48f9-b358-54afb2784...@googlegroups.com> > eamonn...@gmail.com writes: > >> they're making programming easier... by not coding as much. Oh well, >> guess coding is dead :( > > Pressing keys on a keyboard was never the hard part of

Re: better and user friendly IDE recommended?

2013-09-12 Thread Joe Junior
On 12 September 2013 13:00, Veritatem Ignotam wrote: > Is this thread going to evolve into your classic vim vs. emacs, sweet! Who doesn't love those? ;-) On 09/12/2013 11:47 AM, Paul Rudin wrote: > > Joshua Landau writes: > >> If the time learning a set of tools is enough to make the choice >>

Re: user interfaces python3.x

2013-09-02 Thread Joe Junior
On 2 September 2013 14:30, Joel Goldstick wrote: > On Mon, Sep 2, 2013 at 1:16 PM, Joe Junior wrote: >> On 2 September 2013 14:00, Paul Rice wrote: >>> >>> I know that most of my time will be writing . I dont think i specified very >>> well what im asking.

Re: user interfaces python3.x

2013-09-02 Thread Joe Junior
On 2 September 2013 14:00, Paul Rice wrote: > > I know that most of my time will be writing . I dont think i specified very > well what im asking. > What i mean by proper interface is a interface like for an app or something, > let me give u an example; > Say i have made a phonebook just for thi

Re: Interface and duck typing woes

2013-08-29 Thread Joe Junior
On 29 August 2013 10:07, Chris Angelico wrote: > Hmm. l don't know of any good articles off-hand. But what I'm talking > about is simply developing the skill of reading exceptions, plus a few > simple things like knowing where it's appropriate to catch-and-log; > sometimes, what that means is actu

Re: Interface and duck typing woes

2013-08-29 Thread Joe Junior
Well, the main reason for me asking this question here was because of the Java/C#/Whatever developer in me craving for an Interface for the container's items, and I noticed that I'm not alone in this. But I was actually expecting the "We're all consenting adults, here", I guess I just needed the co

Interface and duck typing woes

2013-08-28 Thread Joe Junior
While designing a simple library, I found myself asking a philosophical question: to check or not to check the parameter's interface? I think that, considering it is Python, the usual answer would be "no", but here is the situation that got me thinking: class Flock: def __init__(self):

Re: Class hierarchy problem

2013-08-06 Thread Joe Junior
On Tue, Aug 6, 2013 at 12:36 PM, BrJohan wrote: > On 06/08/2013 16:02, Chris Angelico wrote: > >>> My classhierarchy is like a multilevel tree where each non-leaf node >>> (class) >>> is given knowledge about its nearest subclasses and their 'capacities'. >>> >>> So, my idea is to let the 'upper'

Re: delineating by comma where commas inside quotation marks don't count

2007-10-26 Thread Junior
"Dan Bishop" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Oct 24, 8:56 pm, "Junior" <[EMAIL PROTECTED]> wrote: >> I want to open a text file for reading and delineate it by comma. I also >> want any data >> surrounded by

delineating by comma where commas inside quotation marks don't count

2007-10-24 Thread Junior
I want to open a text file for reading and delineate it by comma. I also want any data surrounded by quotation marks that has a comma in it, not to count the commas inside the quotation marks if the file testfile.txt contains the following; 5,Tuesday,"May is a spring month",Father's Day 1,Satu