[Tutor] "Object designer" applications - are there any?

2011-08-05 Thread Flynn, Stephen (L & P - IT)
I'm about to embark on a project in Python (primarily in order to learn the language and equally importantly, to make my life easier at work). I'm an IBM MVS Operations Analyst by trade by recently I've been spending more and more time working on Data Migrations; legacy systems in VSAM files, AD

Re: [Tutor] "Object designer" applications - are there any?

2011-08-05 Thread Christian Witts
On 2011/08/05 01:01 PM, Flynn, Stephen (L & P - IT) wrote: It struck me that if I write a "read in Sybase DDL and spit out Oracle DDL" routine and so forth, I'd get a lot of reuse out of it. However, I've not done much OOP at all and consequently, my object design skills are somewhat non-exis

Re: [Tutor] "Object designer" applications - are there any?

2011-08-05 Thread Flynn, Stephen (L & P - IT)
I'll certainly give it a look-see - thanks Christian I'm going to end up writing converters anyway, as at some point I'm going to be given (for example) a COBOL copybook for a file and have to translate that into an Oracle table version (actually I already have tools to do this, but if I'm goin

Re: [Tutor] "Object designer" applications - are there any?

2011-08-05 Thread Alan Gauld
On 05/08/11 12:01, Flynn, Stephen (L & P - IT) wrote: Anyway, nearly all of this work, at some point, involves me reading a Data Dictionary > for the source system and converting it to an Oracle table definition. More often than not this DDL is in text form and I convert it to Oracle DDL su

Re: [Tutor] "Object designer" applications - are there any?

2011-08-05 Thread python
Stephen, You might check out the SQL management tools from Embarcadero. They may provide some of the conversion capabilities you are looking for. And they generate beautiful documentation. Perhaps you could wrap the features of this product with Python scripts to acheive your goals? Malcolm

Re: [Tutor] "Object designer" applications - are there any?

2011-08-05 Thread Flynn, Stephen (L & P - IT)
> > However, I've not done much OOP at all > > I'm not sure you need OOP for this. As you say a "routine" ie a function > might be all you need along with some data structures - probably > dictionaries to define the translations needed. I suspect you're correct Alan, but as I'm using this an a le

Re: [Tutor] "Object designer" applications - are there any?

2011-08-05 Thread Robert Sjöblom
> It struck me that if I write a "read in Sybase DDL and spit out Oracle DDL" > routine and so forth, I'd get a lot of reuse out of it. However, I've not > done much OOP at all and consequently, my object design skills are somewhat > non-existent. Whilst I have a rough idea of what my properties

Re: [Tutor] "Object designer" applications - are there any?

2011-08-05 Thread ALAN GAULD
> > I'm not sure you need OOP for this. > I suspect you're correct Alan, but as I'm using this an a learning > exercise for the language it seemed too good an opportunity to miss That's fine so long as we understand why you are going down the OOP route. > can relate a table to an "object" in

[Tutor] Python loop isn't working

2011-08-05 Thread Susana Iraiis Delgado Rodriguez
Hello list! I have a python script which works with other libraries in order to create maps. The script looks for an extension in a specific directory and with mapnik makes the thumbnails. The module works fine from Python command line and Pyton IDLE, but I need this program to run from MS-DOS, whe

Re: [Tutor] Python loop isn't working

2011-08-05 Thread Emile van Sebille
On 8/5/2011 9:14 AM Susana Iraiis Delgado Rodriguez said... Hello list! I have a python script which works with other libraries in order to create maps. The script looks for an extension in a specific directory and with mapnik makes the thumbnails. The module works fine from Python command line

[Tutor] Re : Python loop isn't working

2011-08-05 Thread kliat...@gmail.com
Can you try to split it into fonctions Because it is hard to read it. Envoyé depuis mon HTC - Reply message - De : "Susana Iraiis Delgado Rodriguez" Pour : Objet : [Tutor] Python loop isn't working Date : ven., août 5, 2011 18:14 Hello list! I have a python script which works with othe

Re: [Tutor] Python loop isn't working

2011-08-05 Thread Alan Gauld
On 05/08/11 17:14, Susana Iraiis Delgado Rodriguez wrote: The module works fine from Python command line and Pyton IDLE, but I need this program to run from MS-DOS, when I added the try statement it started to fail. Module runs but doesn't do what I need. Console shows: C:\Python26>shp2png.py C

[Tutor] Converting from a single module to a package

2011-08-05 Thread Tim Johnson
I'm been coding in python now for close to 10 years. one of the modules that I have composed for re-use has gotten pretty big: It is implemented as import tlib as std I am thinking about 'downsizing' this module and breaking it up into smaller components, thus a package. And I would like to do

Re: [Tutor] Indexing a list with nested tuples

2011-08-05 Thread Christopher King
On Tue, Aug 2, 2011 at 10:44 PM, Alexander Quest wrote: > > have [0] to indicate that I want to go to the second value within that > first item, which is the > point value > Actually [0] is the first element. I would go with [1]. ___ Tutor maillist - Tu

Re: [Tutor] Converting from a single module to a package

2011-08-05 Thread Christopher King
To make a package, you make a folder named what you want to name the package, for example: virus_toolkit. Then you make a file in it called __init__.py. This is what you import if you import the virus_toolkit. You usually put documentation and general functions in this I believe (I'm not 100% sure

Re: [Tutor] [Python-ideas] multiple intro statements [was: combine for/with statement]

2011-08-05 Thread Christopher King
I give +0. I'm sure that it could come in use somewhere, as long as it isn't used everywhere. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Converting from a single module to a package

2011-08-05 Thread Tim Johnson
* Christopher King [110805 12:03]: > To make a package, you make a folder named what you want to name the > package, for example: virus_toolkit. Then you make a file in it called > __init__.py. This is what you import if you import the virus_toolkit. You > usually put documentation and general fun

Re: [Tutor] Indexing a list with nested tuples

2011-08-05 Thread Alexander Quest
My bad- meant to say [1]. Thanks. -Alexander On Fri, Aug 5, 2011 at 12:36 PM, Christopher King wrote: > > > On Tue, Aug 2, 2011 at 10:44 PM, Alexander Quest wrote: >> >> have [0] to indicate that I want to go to the second value within that >> first item, which is the >> point value >> > Actuall

Re: [Tutor] Converting from a single module to a package

2011-08-05 Thread Emile van Sebille
On 8/5/2011 4:22 PM Tim Johnson said... * Christopher King [110805 12:03]: To make a package, you make a folder named what you want to name the package, for example: virus_toolkit. Then you make a file in it called __init__.py. This is what you import if you import the virus_toolkit. You usuall

Re: [Tutor] Converting from a single module to a package

2011-08-05 Thread Tim Johnson
* Emile van Sebille [110805 15:51]: > On 8/5/2011 4:22 PM Tim Johnson said... > >* Christopher King [110805 12:03]: > >>To make a package, you make a folder named what you want to name the > >>package, for example: virus_toolkit. Then you make a file in it called > >>__init__.py. This is what you