Re: If you were starting a project with XML datasource using python

2015-01-05 Thread flebber
> > >If you were starting a project, it relied on XML as its datasource what > >would you use and why? And have you used it or just speculating? > > > If I were starting a project, I'd argue furiously that XML is NOT > something that should be used for dynamic data storage (the original GRA

If you were starting a project with XML datasource using python

2015-01-05 Thread flebber
Hi I need some advice on managing data in the form of xml. I will have to repeatedly import a small xml file but with many complex attributes. If I want to retain data integrity and keep the import process simple and querying from the stored source simple what are my best options? There are se

Re: Help with map python 2

2015-01-05 Thread flebber
> In py2, map produces a list already. In any case, above is syntax error > without else clause. > > map(lambda x: x * -1 if x%2 else x, series) > > If you do not have a function already, a list comp is better. > > [(-1*k if k%2 else k) for k in range(2, N)] > > Change [] to () and you have

Re: Help with map python 2

2015-01-05 Thread flebber
> You could do what mathematicians do when they deal with alternating > signs: they raise -1 to the power of the index to get an appropriate > multiplier. > >>>> [ n * (-1) ** n for n in range(10) ] >[0, -1, 2, -3, 4, -5, 6, -7, 8, -9] >>>> > > Or you could do here what you attempt

Help with map python 2

2015-01-04 Thread flebber
In repsonse to this question: Write a program that prints the first 100 members of the sequence 2, -3, 4, -5, 6, -7, 8. This is my solution it works but ugly. series = range(2,100) # answer = [(x,(y* -1)) for x, y in series[::2]] # print(answer) answer = [] for item in series: if item % 2 !=

Engaging, powerful - video inspriration/learning - Your best selections

2014-11-09 Thread flebber
Not fans of videos hey(well python videos anyway) bugger. Sayth. -- https://mail.python.org/mailman/listinfo/python-list

Re: Leo 5.0 alpha 2 released

2014-11-08 Thread flebber
On Saturday, 8 November 2014 23:26:20 UTC+11, edre...@gmail.com wrote: > Leo 5.0a2 is now available at: > http://sourceforge.net/projects/leo/files/Leo/ > > Leo is a PIM, an IDE and an outliner. > Video tutorials: http://leoeditor.com/screencasts.html > Text tutorials: http://leoeditor.com/tutori

Engaging, powerful - video inspriration/learning - Your best selections

2014-11-08 Thread flebber
Morning Have you seen any python videos that were part of a series or that were from a conference that you found engaging and made a point click or solidify a concept or drive you to action to create something you wanted. That took an advanced topic or concept and made it clear as day to you.

Question about PANDAS

2014-10-19 Thread flebber
On Windows my advice would be to use the anaconda installer. Linux pip will work flawlessly. If you install anaconda full then you will have pandas as well as an ipython launcher installed. Sayth -- https://mail.python.org/mailman/listinfo/python-list

Re: ruby instance variable in python

2014-10-08 Thread flebber
The end result of a confusing sentence with no > > context is that I have no idea what you are trying to say. Could you try > > explaining again please? > > > Steven No problem my reply from phone at work a little confusing. So trying to determine what this does. def ins_var @ins_var ||

Re: ruby instance variable in python

2014-10-07 Thread flebber
I thought that it was a shortcut in ruby to negate the other option of providing another default . I don't greatly know ruby but took a guess after reading examples here https://blog.neowork.com/ruby-shortcuts -- https://mail.python.org/mailman/listinfo/python-list

Re: ruby instance variable in python

2014-10-07 Thread flebber
On Monday, 6 October 2014 21:07:24 UTC+11, roro codeath wrote: > in ruby: > > > module M > def ins_var > @ins_var ||= nil > end > > > def m > @ins_var = 'val' > end > > > def m2 > m > ins_var # => 'val' > end > end > > > in py: > > > # m.py > > > # how to def ins_var > > > def m: >  

Re: fixing an horrific formatted csv file.

2014-07-04 Thread flebber
On Friday, 4 July 2014 16:19:09 UTC+10, Gregory Ewing wrote: > flebber wrote: > > > so in my file I had on line 44 this trainer name. > > > > > > "Michael, Wayne & John Hawkes" > > > > > > and in line 95 this horse name. Inz&#

Re: fixing an horrific formatted csv file.

2014-07-04 Thread flebber
On Friday, 4 July 2014 14:12:15 UTC+10, flebber wrote: > I have taken the code and gone a little further, but I need to be able to > protect myself against commas and single quotes in names. > > > > How is it the best to do this? > > > > so in my file I ha

Re: fixing an horrific formatted csv file.

2014-07-03 Thread flebber
I have taken the code and gone a little further, but I need to be able to protect myself against commas and single quotes in names. How is it the best to do this? so in my file I had on line 44 this trainer name. "Michael, Wayne & John Hawkes" and in line 95 this horse name. Inz'n'out this t

Re: fixing an horrific formatted csv file.

2014-07-02 Thread flebber
> >>> TM = TX.Table_Maker (headings = > ('Meeting','Date','Race','Number','Name','Trainer','Location')) > >>> TM (race_table (your_csv_text)).write () Where do I find TX? Found this mention in the list, was it available in pip by any name? https://mail.python.org/pipermail/python-list/2014-Feb

Re: fixing an horrific formatted csv file.

2014-07-01 Thread flebber
That's a really cool solution. I understand why providing full solutions is frowned upon, because it doesn't assist in learning. Which is true, it's incredibly helpful in this case. The python cookbook is really good and what I was using as a start for dealing with csv. But it doesn't even go

fixing an horrific formatted csv file.

2014-07-01 Thread flebber
What I am trying to do is to reformat a csv file into something more usable. currently the file has no headers, multiple lines with varying columns that are not related. This is a sample Meeting,05/07/14,RHIL,Rosehill Gardens,Weights,TAB,+3m Entire Circuit, , Race,1,CIVIC STAKES,CIVIC,

Re: SQLAlchemy - web framework ?

2014-05-14 Thread flebber
One of the main parts that is tripping myself up is that I need to consistently import xml files into my database. Looking to find the best support and methodologies to do this, that is one of the reasons I am looking at SqlAlchemy. Sayth -- https://mail.python.org/mailman/listinfo/python-li

Re: SQLAlchemy - web framework ?

2014-05-12 Thread flebber
Roy.that is interesting that you can use mongoengine. Recent google results such as seem to assert there are a lot of inherent risk in swapping out components, though I may be misinterpreting it. http://www.slideshare.net/daikeren/tradeoffs-of-replacing-core-components Sayth -- https://mail.

SQLAlchemy - web framework ?

2014-05-12 Thread flebber
If I want to use SQLAlchemy as my ORM what would be the best option for a web framework? It appears the general advice regarding Django is to do it the Django way and use the django ORM and change it out for SQLAlchemy. That to me limited knowledge leaves flask, pyramid and turbogears 2. So if

Re: xmltodict - TypeError: list indices must be integers, not str

2014-05-10 Thread flebber
On Saturday, 10 May 2014 22:10:14 UTC+10, Peter Otten wrote: > flebber wrote: > > > > > I am using xmltodict. > > > > > > This is how I have accessed and loaded my file. > > > > > > import xmltodict > > > document

xmltodict - TypeError: list indices must be integers, not str

2014-05-10 Thread flebber
I am using xmltodict. This is how I have accessed and loaded my file. import xmltodict document = open("/home/sayth/Scripts/va_benefits/20140508GOSF0.xml", "r") read_doc = document.read() xml_doc = xmltodict.parse(read_doc) The start of the file I am trying to get data out of is. http://"; /

Re: golang OO removal, benefits. over python?

2014-03-10 Thread flebber
> Also, is there anything seriously lacking in Python, Java and C? > > > Marko >From their FAQ: Go was born out of frustration with existing languages and environments for systems programming. Programming had become too difficult and the choice of languages was partly to blame. One had to ch

golang OO removal, benefits. over python?

2014-03-09 Thread flebber
I was wondering if a better programmer than I could explain if the removal of OO features in golang really does offer an great benefit over python. An article I was reading ran through a brief overview of golang in respect of OO features http://areyoufuckingcoding.me/2012/07/25/object-desorient

Re: IDLE won't run after installing Python 3.3 in Windows

2014-02-20 Thread flebber
Well firstly being windows I assume that you did a restart after install. Python.org python doesn't come with the windows extensions which can be installed separately. On windows I use winpython is totally portable and can be installed as system version includes all extensions as well as Numpy

Re: Best practices to overcome python's dynamic data type nature

2014-02-14 Thread flebber
Here's a great resource http://www.anrdoezrs.net/click-7079286-11260198?url=http%3A%2F%2Fshop.oreilly.com%2Fproduct%2F0636920029533.do%3Fcmp%3Daf-code-book-product_cj_9781449367794_%7BPID%7D&cjsku=0636920029533 Sayth -- https://mail.python.org/mailman/listinfo/python-list

Re: zip list, variables

2013-11-20 Thread flebber
Thank you for the replies. Looking at the replies I am wondering which solution is more scalable. At the moment it is only 2 nested lists but what about 5, 10, 20 or more? Should I start looking into numpy to handle this or will list comprehension >>> [ [ x + y for x, y in zip(x,y) ] for x, y

zip list, variables

2013-11-20 Thread flebber
If c = map(sum, zip([1, 2, 3], [4, 5, 6])) c Out[7]: [5, 7, 9] why then can't I do this? a = ([1, 2], [3, 4]) b = ([5, 6], [7, 8]) c = map(sum, zip(a, b)) --- TypeError Traceback (most re

PyDev 3.0 Released

2013-11-07 Thread flebber
I see the main difference between Liclipes and Eclipse+Pydev being lightweight and Loclipse preconfigured to a degree. Moving forward what advantages would I get by buying Liclipes over Eclipse? Sayh -- https://mail.python.org/mailman/listinfo/python-list

Re: XML python to database

2013-11-01 Thread flebber
Yes I have done the lxml search and learnt how to open view and query the file. But what is the next step in the process? To get it so that I can reliably push XML files to my database repeatedly. Looking for a basic structure or example to use to guide me for first time. Sayth -- https://mail

XML python to database

2013-11-01 Thread flebber
Can anyone help me overcome a terminology and jargon barrier I am having in fully defining what tools to use to fulfil a process. I want to create a database 6 Related tables. Update information 1 or twice a week with data from an XML file that I will download, this data would update rows in 5

Re: Python IDE/Eclipse

2011-08-28 Thread flebber
On Aug 27, 6:34 pm, UncleLaz wrote: > On Aug 26, 5:18 pm, Dave Boland wrote: > > > > > > > > > > > I'm looking for a good IDE -- easy to setup, easy to use -- for Python. > >   Any suggestions? > > > I use Eclipse for other projects and have no problem with using it for > > Python, except that I

Re: learnpython.org - an online interactive Python tutorial

2011-04-23 Thread flebber
On Apr 23, 4:28 pm, Dennis Lee Bieber wrote: > On Fri, 22 Apr 2011 17:08:53 +1000, Chris Angelico > declaimed the following in gmane.comp.python.general: > > > I'm not so sure that all strings should autopromote to integer (or > > "numeric" generally). However, adding a string and a number _shoul

Re: Make Python "portable" by default! (Re: Python IDE/text-editor)

2011-04-18 Thread flebber
On Apr 18, 6:33 pm, Chris Angelico wrote: > On Mon, Apr 18, 2011 at 6:15 PM, Wolfgang Keller wrote: > > Which part of the word "installed" don't you understand while actually > > using it? >;-> > > I have various programs which I distribute in zip/tgz format, and also > as a self-extracting execu

Re: Python IDE/text-editor

2011-04-16 Thread flebber
On Apr 16, 11:07 pm, John Bokma wrote: > Jorgen Grahn writes: > > If you cannot stand non-tabbed interfaces, you probably can't stand > > other non-Windows-like features of these two, like their menu systems. > > Emacs just has a menu system. Although I rarely use it :-). One of the > things one

Re: Python IDE/text-editor

2011-04-16 Thread flebber
On Apr 16, 3:43 pm, Alec Taylor wrote: > Thanks, but non of the IDEs so far suggested have an embedded python > interpreter AND tabs... a few of the editors (such as Editra) have > really nice interfaces, however are missing the embedded > interpreter... emacs having the opposite problem, missing

Re: Free software versus software idea patents (was: Python benefits over Cobra)

2011-04-07 Thread flebber
On Apr 7, 7:17 pm, Chris Angelico wrote: > On Thu, Apr 7, 2011 at 5:39 PM, Steven D'Aprano > > wrote: > > Do you want to know who scares me? Google and Apple. Google, because > > they're turning software from something you run on your own computer to > > something you use on a distant server you

Re: How to use Python well?

2011-02-17 Thread flebber
On Feb 17, 11:43 am, Steven D'Aprano wrote: > On Thu, 17 Feb 2011 10:12:52 +1100, Ben Finney wrote: > > Terry Reedy writes: > > >> The most import thing is automated tests. > > > Steven D'Aprano writes: > > >> The most important thing is structured programming and modularization. > > > Steel-cag

Re: Call to Update All Tutorials to Python3.x Standards.

2011-02-14 Thread flebber
On Feb 14, 11:35 am, Cameron Simpson wrote: > On 13Feb2011 14:47, rantingrick wrote: > | On Feb 13, 4:30 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote: > > | > The official stance of the Python development team is that 2.7 and 3.x > | > will co-exist for a long, long time. Removing

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-05 Thread flebber
On Feb 5, 10:24 am, Stephen Hansen wrote: > On 2/4/11 3:01 PM, rantingrick wrote: > > >> Put your money where your mouth is. > > > ditto! > > I thought as much. > > My money is where my mouth is: but that is not IDLE, as I have no use > for it and no interest in it at all. The status quo with rega

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-04 Thread flebber
On Feb 3, 7:41 am, Corey Richardson wrote: > On 2/2/2011 2:44 PM, rantingrick wrote: > > Will you be forking IDLE and setting up some sort of tracker for > improvements? +1 for this. Enough talk ratingrick where is your feature and request tracker for your idle fork? How can people assist you i

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-03 Thread flebber
On Feb 1, 11:38 pm, rantingrick wrote: > On Feb 1, 4:20 am, flebber wrote: > > > Sorry Rick too boringtrying to get bored people to bite at your > > ultra lame post yawn... > > Well reality and truth both has a tendency to be boring. Why? Well > because

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-01 Thread flebber
On Feb 1, 4:39 am, rantingrick wrote: > IDLE: A cornicopia of mediocrity and obfuscation. > -- by Rick Johnson > > IDLE --which is the Python Integrated Development and Learning > Environment-- was once the apple of Guido's eye but has since > degenerated into madness many years ago and remains no

Re: Trying to decide between PHP and Python

2011-01-05 Thread flebber
On Jan 5, 6:48 pm, "Octavian Rasnita" wrote: > From: "Tomasz Rola" > > > On Tue, 4 Jan 2011, Dan M wrote: > > >> As to choice between Python and PHP, I would say learn anything but PHP. > >> Even Perl has fewer tentacles than PHP. > > > However, the quality of code depends heavily on who writes i

Re: User input masks - Access Style

2011-01-01 Thread flebber
On Jan 1, 11:13 am, Tim Harig wrote: > On 2010-12-31, flebber wrote: > > > On Dec 28 2010, 12:21 am, Adam Tauno Williams > > wrote: > >> On Sun, 2010-12-26 at 20:37 -0800, flebber wrote: > >> > Is there anyay to use input masks in python? Similar to the

Re: GUI Tools for Python 3.1

2010-12-31 Thread flebber
On Dec 26 2010, 8:41 pm, "Hans-Peter Jansen" wrote: > On Friday 24 December 2010, 03:58:15 Randy Given wrote: > > > Lots of stuff for 2.6 and 2.7 -- what GUI tools are there for 3.1? > > PyQt4 of course. > > http://www.riverbankcomputing.com > > Pete Pyside, Nokia have split with riverbank comput

Re: Python - NAWIT / Community

2010-12-31 Thread flebber
On Jan 1, 9:03 am, Fabio Zadrozny wrote: > > My question relates to community contribution. My concern arose when > > recently installing the pydev.org extensions in Eclipse. Now as far as > > my understanding goes the licensing on both is open source GPL. > > However Pydev became open source as p

Re: User input masks - Access Style

2010-12-31 Thread flebber
On Dec 28 2010, 12:21 am, Adam Tauno Williams wrote: > On Sun, 2010-12-26 at 20:37 -0800, flebber wrote: > > Is there anyay to use input masks in python? Similar to the function > > found in access where a users input is limited to a type, length and > > format. > > <

Re: User input masks - Access Style

2010-12-31 Thread flebber
On Dec 28 2010, 12:21 am, Adam Tauno Williams wrote: > On Sun, 2010-12-26 at 20:37 -0800, flebber wrote: > > Is there anyay to use input masks in python? Similar to the function > > found in access where a users input is limited to a type, length and > > format. > > <

Re: Tkinter: The good, the bad, and the ugly!

2010-12-31 Thread flebber
On Dec 31, 3:04 pm, Robert wrote: > On 2010-12-30 22:28:39 -0500, rantingrick said: > > >  On Dec 30, 8:41�pm, Robert wrote: > >> On 2010-12-30 19:46:24 -0500, rantingrick said: > >> Just to clarify...I like Python. I am learning it at the moment. > > > Glad to have you aboard Robert! > > Thank

Re: Python - NAWIT / Community

2010-12-28 Thread flebber
On Dec 28, 11:10 pm, flebber wrote: > On Dec 28, 10:37 pm, Adam Tauno Williams > wrote: > > > > > On Tue, 2010-12-28 at 03:24 -0800, flebber wrote: > > > On Dec 28, 10:16 pm, Adam Tauno Williams > > > wrote: > > > > On Tue, 2010-12-28 at 02:2

Re: Python - NAWIT / Community

2010-12-28 Thread flebber
On Dec 28, 10:37 pm, Adam Tauno Williams wrote: > On Tue, 2010-12-28 at 03:24 -0800, flebber wrote: > > On Dec 28, 10:16 pm, Adam Tauno Williams > > wrote: > > > On Tue, 2010-12-28 at 02:26 -0800, flebber wrote: > > > > Is pydev actively being developed

Re: Python - NAWIT / Community

2010-12-28 Thread flebber
On Dec 28, 10:24 pm, flebber wrote: > On Dec 28, 10:16 pm, Adam Tauno Williams > wrote: > > > > > On Tue, 2010-12-28 at 02:26 -0800, flebber wrote: > > > Can't help thinking they open sourced Pydev so they could bench it. > > > So?  That isn't u

Re: Python - NAWIT / Community

2010-12-28 Thread flebber
On Dec 28, 10:16 pm, Adam Tauno Williams wrote: > On Tue, 2010-12-28 at 02:26 -0800, flebber wrote: > > Can't help thinking they open sourced Pydev so they could bench it. > > So?  That isn't uncommon at all;  to Open Source when you've moved on. > > > I st

Python - NAWIT / Community

2010-12-28 Thread flebber
I just wanted to put out a question about IDE's but this is NAWIT - not another which ide thread. My question relates to community contribution. My concern arose when recently installing the pydev.org extensions in Eclipse. Now as far as my understanding goes the licensing on both is open source G

Re: Fw: Re: User input masks - Access Style

2010-12-27 Thread flebber
On Dec 27, 7:57 pm, linmq wrote: > > On 2010-12-27, flebber   wrote: > > >  > Is there anyay to use input masks in python? Similar to the function > >  > found in access where a users input is limited to a type, length and > >  > format. > > >  >

Re: User input masks - Access Style

2010-12-26 Thread flebber
On Dec 27, 6:01 pm, Tim Harig wrote: > On 2010-12-27, flebber wrote: > > > Is there anyay to use input masks in python? Similar to the function > > found in access where a users input is limited to a type, length and > > format. > > > So in my case I want to e

User input masks - Access Style

2010-12-26 Thread flebber
Is there anyay to use input masks in python? Similar to the function found in access where a users input is limited to a type, length and format. So in my case I want to ensure that numbers are saved in a basic format. 1) Currency so input limited to 000.00 eg 1.00, 2.50, 13.80 etc For sports tim

Re: Design Ideals Goals Python 3 - Forest for the trees

2010-12-25 Thread flebber
On Dec 26, 4:56 pm, Alice Bevan–McGregor wrote: > > I was interested in what the design goals/philosphy was of Python 3 > > from a birds eye view, forest for the trees approach. > > I think I can safely point to the Zen of Python[1] as many of the > points therein directly apply to the simplifiati

Design Ideals Goals Python 3 - Forest for the trees

2010-12-25 Thread flebber
Hi I was hoping someone could shed some (articles, links) in regards python 3 design ideals. I was searching guido's blog which has his overarching view of Python from an early development perspective http://python-history.blogspot.com/2009/01/pythons-design-philosophy.html . I was interested in

Re: Light on Dark screen for Spe or Pyscripter

2010-10-09 Thread flebber
On Oct 9, 3:54 pm, flebber wrote: > I was hoping someone knew how to setup pyscripter or Spe ide's with > light on dark windows. I start to have trouble reading the nomal dark > on light screens after any lengthy period. > > I have seen several screenshot showing emacs wi

Re: Crummy BS Script

2010-10-02 Thread flebber
On Oct 3, 4:15 pm, flebber wrote: > On Oct 3, 9:58 am, John Bokma wrote: > > > > > flebber writes: > > > On Oct 2, 4:24 pm, Steven D'Aprano > > cybersource.com.au> wrote: > > >> On Fri, 01 Oct 2010 21:05:09 -0700, flebber wrote: > > &

Re: Crummy BS Script

2010-10-02 Thread flebber
On Oct 3, 9:58 am, John Bokma wrote: > flebber writes: > > On Oct 2, 4:24 pm, Steven D'Aprano > cybersource.com.au> wrote: > >> On Fri, 01 Oct 2010 21:05:09 -0700, flebber wrote: > >> > On Oct 2, 9:27 am, MRAB wrote: > >> >> On 01/10/201

Re: Crummy BS Script

2010-10-02 Thread flebber
On Oct 2, 4:24 pm, Steven D'Aprano wrote: > On Fri, 01 Oct 2010 21:05:09 -0700, flebber wrote: > > On Oct 2, 9:27 am, MRAB wrote: > >> On 01/10/2010 23:29, Burton Samograd wrote:> > >> flebber  writes: > > >> >> But where is this saving the i

Re: Crummy BS Script

2010-10-01 Thread flebber
On Oct 2, 9:27 am, MRAB wrote: > On 01/10/2010 23:29, Burton Samograd wrote:> flebber   > writes: > > >> But where is this saving the imported file and under what name? > > > Looks like samples.csv: > > >> f = open('samples.csv', 'w')

Crummy BS Script

2010-10-01 Thread flebber
I have a simple question regarding the Beuatiful soup crummy script. The last line is f.write('%s, %s, %s, %s, %s \n' % (i, t[0], t[1], t[2], t[3])), But where is this saving the imported file and under what name? #!/usr/bin/env python # ogm-sampples.py # Author: Matt Mayes # March 11, 2008 """ --

Re: Errors with PyPdf

2010-09-27 Thread flebber
On Sep 27, 2:46 pm, Dave Angel wrote: > On 2:59 PM, flebber wrote: > > > > > Traceback (most recent call last): > >    File "C:/Python26/Pdfread", line 16, in > >      open('x.txt', 'w').write(content) > > NameError: name &#x

Re: Errors with PyPdf

2010-09-26 Thread flebber
On Sep 27, 12:49 pm, MRAB wrote: > On 27/09/2010 01:39, flebber wrote: > > > > > On Sep 27, 9:38 am, "w.g.sned...@gmail.com" > > wrote: > >> On Sep 26, 7:10 pm, flebber  wrote: > > >>> I was trying to use Pypdf following a recipe from th

Re: Errors with PyPdf

2010-09-26 Thread flebber
On Sep 27, 12:08 pm, flebber wrote: > On Sep 27, 10:39 am, flebber wrote: > > > > > On Sep 27, 9:38 am, "w.g.sned...@gmail.com" > > wrote: > > > > On Sep 26, 7:10 pm, flebber wrote: > > > > > I was trying to use Pypdf following a re

Re: Errors with PyPdf

2010-09-26 Thread flebber
On Sep 27, 10:39 am, flebber wrote: > On Sep 27, 9:38 am, "w.g.sned...@gmail.com" > wrote: > > > > > On Sep 26, 7:10 pm, flebber wrote: > > > > I was trying to use Pypdf following a recipe from the Activestate > > > cookbooks. However I canno

Re: Errors with PyPdf

2010-09-26 Thread flebber
On Sep 27, 9:38 am, "w.g.sned...@gmail.com" wrote: > On Sep 26, 7:10 pm, flebber wrote: > > > I was trying to use Pypdf following a recipe from the Activestate > > cookbooks. However I cannot get it too work. Unsure if it is me or it > > is beacuse sets are dep

Errors with PyPdf

2010-09-26 Thread flebber
I was trying to use Pypdf following a recipe from the Activestate cookbooks. However I cannot get it too work. Unsure if it is me or it is beacuse sets are deprecated. I have placed a pdf in my C:\ drive. it is called "Components-of-Dot- NET.pdf" You could use anything I was just testing with it.

Re: Python Macros's Not the Power in OOo they should be ?

2010-09-22 Thread flebber
On Sep 23, 10:41 am, flebber wrote: > I have recently been looking at openoffice because I saw it had > support to use python Macro's. I thought this would provide OOo with a > great advantage a fully powerful high level language as compared to > VBA in Excel. > > I hav

Python Macros's Not the Power in OOo they should be ?

2010-09-22 Thread flebber
I have recently been looking at openoffice because I saw it had support to use python Macro's. I thought this would provide OOo with a great advantage a fully powerful high level language as compared to VBA in Excel. I have found few docs on the subject. http://wiki.services.openoffice.org/wiki/Py

Re: Python XML and tables using math

2010-08-16 Thread flebber
On Aug 16, 4:00 pm, Stefan Behnel wrote: > flebber, 16.08.2010 05:30: > > > I am looking at a project that will import and modify an XML file and > > then export it to a table. Currently a flat file table system should > > be fine. > > > I want to export the mo

Python XML and tables using math

2010-08-15 Thread flebber
I am looking at a project that will import and modify an XML file and then export it to a table. Currently a flat file table system should be fine. I want to export the modified data to the table and then perform a handful of maths(largely simple statistical functions) to the data and then print o

Re: Hello

2010-07-10 Thread flebber
On Jul 10, 8:49 pm, Dani Valverde wrote: > geremy condra wrote: > > On Fri, Jul 9, 2010 at 1:08 PM, Dani Valverde > > wrote: > > >> Sorry, I forgot to mention that I am using Linux. In fact, my first test > >> have been with gedit. Is there any way to directly run the Python code into > >> the c

Re: Frameworks

2009-10-19 Thread flebber
On Oct 20, 3:31 am, Massimo Di Pierro wrote: > Hello, > > Just to clarify. I did not make any statement about "web2py is   > superior to SQLAlchemy" since that is somewhat subjective. > SQLALchemy for example does a much better job at accessing legacy   > databases. web2py is more limited in that

Re: Frameworks

2009-10-19 Thread flebber
On Oct 20, 12:32 am, "Diez B. Roggisch" wrote: > > web2py is interesting the author appears to be implying(I could be > > misunderstanding this) that the web2py db ORM is equal to if not > > superior to SQLAlchemy - From > >http://www.web2py.com/AlterEgo/default/show/150 > > I don't read that out

Re: Frameworks

2009-10-19 Thread flebber
On Oct 19, 10:51 pm, flebber wrote: > On Oct 19, 7:40 pm, Javier Santana wrote: > > > > > junohttp://github.com/breily/juno > > > it's very easy, uses sqlalchemy as ORM and jinja2 (others can be used > > if you want) for templates. > > > On Mon

Re: Frameworks

2009-10-19 Thread flebber
On Oct 19, 7:40 pm, Javier Santana wrote: > junohttp://github.com/breily/juno > > it's very easy, uses sqlalchemy as ORM and jinja2 (others can be used > if you want) for templates. > > On Mon, Oct 19, 2009 at 10:24 AM, Bruno Desthuilliers > > wrote: > > flebbe

Re: Frameworks

2009-10-18 Thread flebber
On Oct 19, 10:01 am, flebber wrote: > Hi > > I have been searching through the vast array of python > frameworkshttp://wiki.python.org/moin/WebFrameworksand its quite astounding > the > choice available. > > I am looking at using a web framework for my personal projec

Frameworks

2009-10-18 Thread flebber
Hi I have been searching through the vast array of python frameworks http://wiki.python.org/moin/WebFrameworks and its quite astounding the choice available. I am looking at using a web framework for my personal project which isn't actually aimed at developing a website as such. However I deduce

Re: Delete all list entries of length unknown

2009-10-05 Thread flebber
On Oct 5, 3:05 pm, "Mark Tolonen" wrote: > "Chris Rebert" wrote in message > > news:50697b2c0910042047i1cf2c1a3mc388bc74bab95...@mail.gmail.com... > > > Tuples are immutable (i.e. they cannot be modified after creation) and > > are created using parentheses. > > Slight correction: tuples are crea

Delete all list entries of length unknown

2009-10-04 Thread flebber
Hi Can someone clear up how I can remove all entries of a list when I am unsure how many entries there will be. I have been using sandbox to play essentially I am creating two lists a and b I then want to add a to b and remove all b entries. This will loop and b will receive new entries add it to

Re: ActivePython 3.1.1.2 vs Python 3.1.1 for OSX?

2009-10-01 Thread flebber
On Oct 1, 11:28 am, srid wrote: > On Sep 30, 4:51 pm, Robert Hicks wrote: > > > I am just curious which I should use. I am going to start learning > > Python soon. Are they comparable and I just do a "eenie meenie minie > > moe"? > > ActivePython is essentially same as the installers from python.

Re: Re: Re: Date using input

2009-09-24 Thread flebber . crue
ng 101/09/2009 or similar error. So that the __/__/ was adhered to. I will go back to the start get the basics happening and then figure out a way to catch errors with format and correctness. Thanks On Sep 25, 2009 3:57am, Dave Angel da...@ieee.org> wrote: > flebber wrote: >

Re: Re: Date using input

2009-09-24 Thread flebber . crue
happening and then figure out a way to catch errors with format and correctness. Thanks On Sep 25, 2009 3:57am, Dave Angel wrote: flebber wrote: On Sep 24, 11:10 pm, flebber flebber.c...@gmail.com> wrote: On Sep 24, 10:58 pm, Dave Angel da...@ieee.org> wrote: fle

Re: Date using input

2009-09-24 Thread flebber
On Sep 24, 11:10 pm, flebber wrote: > On Sep 24, 10:58 pm, Dave Angel wrote: > > > > > flebber.c...@gmail.com wrote: > > > I am using python 2.6.2, I haven't updated to 3.0 yet. No I have no > > > class or instructor, I am learning this myself. I have Het

Re: Date using input

2009-09-24 Thread flebber
On Sep 24, 10:58 pm, Dave Angel wrote: > flebber.c...@gmail.com wrote: > > I am using python 2.6.2, I haven't updated to 3.0 yet. No I have no > > class or instructor, I am learning this myself. I have Hetlands book > > "Beginning Python Novice to Professional and online documentation > > books so

Re: Re: Date using input

2009-09-24 Thread flebber . crue
dual Block totals and Sum Total #Arranged in descending Sum Total. #Prompt are there any more events? Yes return to start #Apphend all additional events to same day file seperated by blank line. On Sep 24, 2009 9:59pm, Dave Angel wrote: flebber wrote: Sorry to ask a simple question but I a

Date using input

2009-09-24 Thread flebber
Sorry to ask a simple question but I am a little confused how to combine the input function and the date time module. Simply at the start of the program I want to prompt the user to enter the date, desirably in the format dd/mm/year. However I want to make sure that python understands the time for

Re: Number Sequencing, Grouping and Filtering

2009-03-10 Thread flebber
On Mar 10, 9:07 pm, Chris Rebert wrote: > On Tue, Mar 10, 2009 at 3:00 AM, flebber wrote: > > On Mar 10, 8:54 pm, flebber wrote: > >> Hi > > >> I was hoping someone would be able to point me in the direction of > >> some good documentation regarding sequ

Re: Number Sequencing, Grouping and Filtering

2009-03-10 Thread flebber
On Mar 10, 8:54 pm, flebber wrote: > Hi > > I was hoping someone would be able to point me in the direction of > some good documentation regarding sequencing, grouping and filtering > and in which order they should be done. > > As a small example it is easy to create the ran

Number Sequencing, Grouping and Filtering

2009-03-10 Thread flebber
Hi I was hoping someone would be able to point me in the direction of some good documentation regarding sequencing, grouping and filtering and in which order they should be done. As a small example it is easy to create the range of numbers 1 to 20. But if I wanted to group all possible combinatio

Re: read xml file from compressed file using gzip

2007-06-10 Thread flebber
On Jun 10, 7:43 pm, John Machin <[EMAIL PROTECTED]> wrote: > On 10/06/2007 3:06 PM, flebber wrote: > > > > > On Jun 10, 3:45 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: > >> flebber wrote: > >>> I was working at creating a simple program that

Re: read xml file from compressed file using gzip

2007-06-09 Thread flebber
On Jun 10, 3:45 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: > flebber wrote: > > I was working at creating a simple program that would read the content > > of a playlist file( in this case *.k3b") and write it out . the > > compressed "*.k3b" file has

Gzip - gunzip using zlib

2007-06-08 Thread flebber
Hi Can anyone show me a working example of how to use gzip to decompress a file. I have read the docs at python.org and had many goes at it but just can't get it to work. Cheers flebber -- http://mail.python.org/mailman/listinfo/python-list

Re: read xml file from compressed file using gzip

2007-06-08 Thread flebber
On Jun 8, 9:45 pm, flebber <[EMAIL PROTECTED]> wrote: > On Jun 8, 3:31 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > > flebber wrote: > > > I was working at creating a simple program that would read the content > > > of a playlist file( i

  1   2   >