Re: Designing Plug-in Systems in Python

2006-05-08 Thread Jorge Godoy
one? Any pointers, suggestions, resources and > advice is welcome. I am liking to use setuptools and its entry points. With this, your program can check for a specific thing and load all modules that provides something like "myapp.plugins". Take a look at it. -- Jorge Godoy <[E

help with Linker dependencies missing went compiling mysql-python on Windows without VisualStudio

2006-05-08 Thread Jorge Vargas
Hi everyone I'm stuck at doing this and can't find the problem, maybe someone with more experience then I compiling python can help me out. I google around and found some old articles, from them the one that seems more accurate is http://www.vrplumber.com/programming/mstoolkit/of couse I had to di

Re: help with Linker dependencies missing went compiling mysql-python on Windows without VisualStudio

2006-05-10 Thread Jorge Vargas
noone here has try this??On 5/8/06, Jorge Vargas <[EMAIL PROTECTED]> wrote: Hi everyone I'm stuck at doing this and can't find the problem, maybe someone with more experience then I compiling python can help me out. I google around and found some old articles, from them the one

Re: Tabs versus Spaces in Source Code

2006-05-17 Thread Jorge Godoy
ly, I like using spaces, but I don't have problems with files using tabs... -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs versus Spaces in Source Code

2006-05-17 Thread Jorge Godoy
achates wrote: > Jorge Godoy wrote > >>Emacs guess what's used in the file and allows me to use tabs all the >>time, doing the correct thing... > > That sounds like useful behaviour. > > Maybe this is an area where modern editors might be able to save

Re: NEWB: how to convert a string to dict (dictionary)

2006-05-23 Thread Jorge Godoy
7;cv-i b.v^ y^-f', 'ketiv-qere': 'n', 'wordWTS': u'8'}" In [2]:type(a) Out[2]: In [3]:b = eval(a) In [4]:type(b) Out[4]: In [5]:b Out[5]:{'syllable': u'cv-i b.v^ y^-f', 'ketiv-qere': 'n', 'wordWTS': u'8'} Be seeing you, -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: Will Python on day replace MATLAB?????????????????????????????????????????????????????

2008-01-31 Thread Jorge Godoy
Danyelle Gragsone wrote: > Could you please use less question marks. This is not part of his Masters... :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it explicitly specified?

2008-02-03 Thread Jorge Godoy
mario ruggier wrote: > Is there any way to tell between whether a keyword arg has been explicitly > specified (to the same value as the default for it) or not... For example: > > def func(key=None): > do something with key > > But the following two usages give same results: > > func() > fun

Re: Python GUI toolkit

2008-02-03 Thread Jorge Godoy
Grant Edwards wrote: > On 2008-02-03, Dotan Cohen <[EMAIL PROTECTED]> wrote: > >> I would recommend Qt, as it is cross-platform and can look native on >> all systems. > > Qt doesn't look native on my system. I run XFCE, and "native" > is GTK. > >> Opera, KDE, GoogleEarth, Acrobat, and lots of o

Re: Python GUI toolkit

2008-02-03 Thread Jorge Godoy
[EMAIL PROTECTED] wrote: > what i meant was, i tried gtk, didnt like it, the main reason was that it > had a very bad gui appeal for me, i did try my hand at wx , and i would > have stuck with it, but then i saw the qt4 screenshot and couple of > examples of its code and i liked it, so i was wonde

Re: GUI definition for web and desktop

2008-02-03 Thread Jorge Godoy
Daniel Fetchinson wrote: > It's clear to me that the logic behind a web interface and a desktop > interface are two totally different things. I don't want a magic > method to convert an html/javascript based web app to a desktop app as > this is clearly impossible. But it is not impossible to emb

RE: Why not a Python compiler?

2008-02-06 Thread Jorge Godoy
Reedick, Andrew wrote: >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:python- >> [EMAIL PROTECTED] On Behalf Of Grant Edwards >> >> Nothing can travel faster than the speed of light >> _in_a_vacuum_. There are situtaitons where things can (and >> regularly do) travel faster tha

Re: Double underscores -- ugly?

2008-02-20 Thread Jorge Godoy
Ivan Illarionov wrote: > I would like to see something like %init or &init to be converted to > __init__ behind the scenes. And $something to be converted to > self.something. But, unfortunately, most Python people would consider > this ugly just because Perl uses too much syntactic sugar and anyt

is this data structure build-in or I'll have to write my own class?

2008-02-20 Thread Jorge Vargas
I need a data structure that will let me do: - attribute access (or index) - maintain the order (for iter and print) - be mutable. in case there isn't one. I was thinking having a base class like Bunch http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308 and on top of that keeping a list

Re: is this data structure build-in or I'll have to write my own class?

2008-02-20 Thread Jorge Vargas
2008/2/20 Jarek Zgoda <[EMAIL PROTECTED]>: > Jorge Vargas napisał(a): > > > - attribute access (or index) > > - maintain the order (for iter and print) > > - be mutable. > > These are all attributes of standard Python lists. probably I confused you with the &quo

Re: is this data structure build-in or I'll have to write my own class?

2008-02-20 Thread Jorge Vargas
) [(2, 2), (3, 2)] On Feb 20, 2008 7:50 AM, subeen <[EMAIL PROTECTED]> wrote: > I think you should go for 'dictionary' that is a built-in data > structure of Python. > > > regards, > Subeen > http://love-python.blogspot.com/ > > > On Feb 20, 7:32 pm, "

Re: is this data structure build-in or I'll have to write my own class?

2008-02-20 Thread Jorge Vargas
On Feb 20, 2008 8:15 AM, Larry Bates <[EMAIL PROTECTED]> wrote: > Jorge Vargas wrote: > > I need a data structure that will let me do: > > > > - attribute access (or index) > > - maintain the order (for iter and print) > > - be mutable. > > > > in

Re: How about adding rational fraction to Python?

2008-02-25 Thread Jorge Godoy
Paul Rubin wrote: > Carl Banks <[EMAIL PROTECTED]> writes: >> Try doing numerical integration sometime with rationals, and tell me >> how that works out. Try calculating compound interest and storing >> results for 1000 customers every month, and compare the size of your >> database before and af

Re: float / rounding question

2008-02-25 Thread Jorge Godoy
sabatier wrote: > On Feb 25, 10:44 am, [EMAIL PROTECTED] wrote: >> Hi I'm very much a beginner with Python. >> I want to write a function to convert celcius to fahrenheit like this >> one: >> >> def celciusToFahrenheit(tc): >> tf = (9/5)*tc+32 >> return tf >> >> I want the answer correct t

pprint, __repr__ and inheritance, how does it works?

2008-02-25 Thread Jorge Vargas
Hello list, I'm having a little bit of trouble making this all work together. I have a base class in which I want to define the __repr__ for all subclasses which in this case will be to output all the __dict__ atributes. Using [1] as reference I have come up with the following but it has 2 problem

Re: is this data structure build-in or I'll have to write my own class?

2008-02-27 Thread Jorge Vargas
On Wed, Feb 20, 2008 at 12:07 PM, thebjorn <[EMAIL PROTECTED]> wrote: > On Feb 20, 3:32 pm, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: > > > On Feb 20, 2008 8:15 AM, Larry Bates <[EMAIL PROTECTED]> wrote: > > > > > Jorge Vargas wrot

Re: is this data structure build-in or I'll have to write my own class?

2008-02-27 Thread Jorge Vargas
On Wed, Feb 20, 2008 at 7:34 PM, Carl Banks <[EMAIL PROTECTED]> wrote: > On Feb 20, 8:12 am, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: > > I need a data structure that will let me do: > > > > - attribute access (or index) > > - maintain

Re: is this data structure build-in or I'll have to write my own class?

2008-02-27 Thread Jorge Vargas
On Thu, Feb 21, 2008 at 2:52 AM, Robert Bossy <[EMAIL PROTECTED]> wrote: > mkPyVS wrote: > > This isn't so optimal but I think accomplishes what you desire to some > > extent... I *think* there is some hidden gem in inheriting from dict > > or an mapping type that is cleaner than what I've shown

Re: Logging to HTTP or File

2008-02-27 Thread Jorge Vargas
On Wed, Feb 27, 2008 at 4:16 AM, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> wrote: > > > > > Hello Chaps, > > > > I'm after some advice on the best way to handle a logging job. Essentially I > have data which I'm looking to log to a webservice, it would make good sense > I think to use somethi

Re: library

2008-02-27 Thread Jorge Vargas
On Tue, Feb 26, 2008 at 11:24 PM, Raj kumar <[EMAIL PROTECTED]> wrote: > > hi, > how to open python api documetation in linux machine? $ python import help(module|object|whatever) > i think there should be a way to open installed library as a HTML pages. > pydoc -p > Thanks in advance. > > > _

Re: Problem with the strip string method

2008-03-02 Thread Jorge Godoy
Colin J. Williams wrote: > Return a copy of the string with the > leading and trailing characters removed. > Only the last two examples below behave > as expected. They all looks OK to me. > [Dbg]>>> 'ab$%\n\rcd'.strip('%') > 'ab$%\n\rcd' No "%" at the beginning or end o

Re: Returning values from function to Python shell/IPython

2008-03-09 Thread Jorge Vargas
On Sun, Mar 9, 2008 at 9:56 AM, Karlo Lozovina <[EMAIL PROTECTED]> wrote: > Hi all! > > I have a runTest() function inside my module, which sets up and initializes > lots of objects and performs some basic tests on them. Usually (from > IPython) I just write `run my_module.py`, and then `runTest

Re: Returning values from function to Python shell/IPython

2008-03-09 Thread Jorge Vargas
On Sun, Mar 9, 2008 at 11:07 AM, Karlo Lozovina <[EMAIL PROTECTED]> wrote: > Jorge Vargas wrote: > > > well after all it's a function so the only ways you can get things out > > of it are: > > - return a dict with all the objects > > - use global

Re: sftp with no password from python

2009-01-09 Thread Jorge Mazzonelli
You should try the paramiko package for that (http://www.lag.net/paramiko/) A google search on that package & SFTP got me this example: http://commandline.org.uk/python/sftp-python/ Cheers Jorge On Fri, Jan 9, 2009 at 1:20 PM, loial wrote: > On 8 Jan, 18:49, Mike Hjorleifsson wrote:

How to get path.py ? http://www.jorendorff.com/ is down

2009-05-21 Thread Jorge Vargas
Hello. Anyone knows what is the problem with this package? apparently the author's site is down which prevents pip from installing it. I can download the zip and go from there but It seems most of the docs are gone with the site. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get path.py ? http://www.jorendorff.com/ is down

2009-05-21 Thread Jorge Vargas
On Thu, May 21, 2009 at 3:43 PM, Jorge Vargas wrote: > Hello. > > Anyone knows what is the problem with this package? apparently the > author's site is down which prevents pip from installing it. I can > download the zip and go from there but It seems most of the docs are

Re: Organizing a Python project

2008-05-19 Thread Jorge Godoy
>> __init__.py, and the parent of 'myproject' didn't contain such a >> file). Evidently this is not the case, but it seems like it could be a >> useful feature in these situations. Eggs would solve that as well. They would behave like any other installed "lib

Re: Apache2 + Python WITHOUT mod_pytho

2008-06-25 Thread Jorge Godoy
around for your distribution. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE on the level of Eclipse or DEVc++?

2008-06-25 Thread Jorge Godoy
to Emacs all the time. Eclipse is too heavy, NetBeans has a poor support, Eric is too "mousy"... -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE on the level of Eclipse or DEVc++?

2008-06-25 Thread Jorge Godoy
ion, including keyboard shortcuts. -- Jorge Godoy <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Why prefer != over <> for Python 3.0?

2008-04-01 Thread Jorge Vargas
On Tue, Apr 1, 2008 at 6:03 AM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Mon, 31 Mar 2008 16:17:39 -0300, Terry Reedy <[EMAIL PROTECTED]> > escribió: > > > > "Bjoern Schliessmann" <[EMAIL PROTECTED]> > > wrote > > in message news:[EMAIL PROTECTED] > > | > However, I'm quite sure that w

is there a python equivalent for this tool?

2008-04-25 Thread Jorge Vargas
Dear python users, do you know of a tool like this that is written in python? http://code.google.com/p/css-redundancy-checker/ in case you where wondering I just don't want to have the ruby dependency on my python proyects. -- http://mail.python.org/mailman/listinfo/python-list

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread Jorge Godoy
bullockbefriending bard wrote: > A further complication is that at a later point, I will want to do > real-time time series prediction on all this data (viz. predicting > actual starting prices at post time x minutes in the future). Assuming > I can quickly (enough) retrieve the relevant last n to

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread Jorge Godoy
bullockbefriending bard wrote: > 3) I need to dump this data (for all races, not just current about to > start race) to text files, store it as BLOBs in a DB *and* update real > time display in a wxpython windowed client. Why in a BLOB? Why not into specific data types and normalized tables? Yo

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread Jorge Godoy
bullockbefriending bard wrote: > Tempting thought, but one of the problems with this kind of horse > racing tote data is that a lot of it is for combinations of runners > rather than single runners. Whilst there might be (say) 14 horses in a > race, there are 91 quinella price combinations (1-2 th

Re: about bsddb module

2008-05-04 Thread Jorge Godoy
cocobear wrote: > On 5月3日, 下午7时17分, cocobear <[EMAIL PROTECTED]> wrote: >> How to deal with multiple databases in an file. I want to get the >> content of several databases. (...) > Anybody can help me? I believe you can only have one database per file with the Python abstraction... But you c

Re: config files in python

2008-05-05 Thread Jorge Vargas
On Tue, May 6, 2008 at 2:00 AM, sandipm <[EMAIL PROTECTED]> wrote: > > here I would like to have python file which read conf from text file > and load those params in current process space. > so only importing that python file should read up the conf file and > load the current process with co

Re: config files in python

2008-05-06 Thread Jorge Vargas
On Tue, May 6, 2008 at 4:33 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > > On 2008-05-06 01:16, Matimus wrote: > > > On May 4, 11:35 pm, sandipm <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > In my application, I have some configurable information which is used > > > by different processes. curr

Re: Inter-module globals

2006-03-09 Thread Jorge Godoy
Anton81 <[EMAIL PROTECTED]> writes: > I want to use globals that are immediately visible in all modules. My > attempts to use "global" haven't worked. Suggestions? Use a module and a class variables for that. Import your module and read/update class variables as you n

Re: Inline assignments

2006-03-09 Thread Jorge Godoy
I'm waiting for the end of that sentence... While in the loop to mount the list, there was an exception thrown. I mean raised. :-) ;-) -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: import random module

2006-03-22 Thread Jorge Godoy
ile p:\temp\random.py, line 8, in ? > x = random.randint(1,55) > AttributeError: 'module" object has no attribut 'randint' > > I run scripts at the command line everyday so there must be something > specifically > wrong with the "random" module, un

PIL: Breaking/Wrapping lines "automatically"

2006-03-23 Thread Jorge Godoy
pace I can and since I'm with two or three lines of free space I'd like to use them as well. TIA, -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart

Re: Breaking/Wrapping lines "automatically"

2006-03-23 Thread Jorge Godoy
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Jorge Godoy wrote: >> Is there something I can do in PIL to restrict a line to a certain size and >> have it to break/wrap into a newline automatically? (Or by using some >> code, of course...) > > there&

Re: Breaking/Wrapping lines "automatically"

2006-03-23 Thread Jorge Godoy
Jorge Godoy <[EMAIL PROTECTED]> writes: > Then I'd have to have some means to determine the width of the char (I'm using > a TrueType font due to my need of using Unicode text) to calculate how many > words I can put on a single line... Hmmm... It looks like your code

Re: Strings and % sign fails - Help Please

2006-03-23 Thread Jorge Godoy
[EMAIL PROTECTED] writes: > The following statement fails because it has the '%' sign in it. > cursor.execute("select '%'") > > The error is: IndexError: list index out of range > > How do I address this problem? Use "%%". -- Jorge G

Re: Strings and % sign fails - Help Please

2006-03-23 Thread Jorge Godoy
project a string from freak '%' problems? Try using r"string '%'"... -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: New development windows, IronPython or PythonWin

2006-03-23 Thread Jorge Godoy
ool. > > It's cool to have bugs? > > That really BUGS ME! You're cool! :-) -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: Strings and % sign fails - Help Please

2006-03-23 Thread Jorge Godoy
Erik Max Francis <[EMAIL PROTECTED]> writes: > Raw strings don't have anything to do with format specifiers. I know. I'm just trying to see if there might be some magic going on with his driver... -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid la

Re: What's the best way to learn perl for a python programmer?

2006-03-24 Thread Jorge Godoy
Also, starting with a book like "Learning Perl" is not bad and it might save you a lot of time with the basics and the semantics of the language. c.l.perl is very receptive and helpful. -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur.&

Re: Bitwise OR?

2006-03-24 Thread Jorge Godoy
x is so simple that it isn't worth disregarding all those other versions. -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: What's The Best Editor for python

2006-03-24 Thread Jorge Godoy
f other... What is best? The one that solves your problems without getting in your way. -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: Apache and Python and Ubuntu

2006-03-29 Thread Jorge Godoy
ny special thing I need to do to apache to get it to know > that the python interpreter should be used for all .cgi files? You should configure your Apache: - http://httpd.apache.org/docs/2.2/ - http://httpd.apache.org/docs/2.2/howto/cgi.html -- Jorge Godoy <[EMAIL PROTECTED]&g

Re: Very stupid question.

2006-03-30 Thread Jorge Godoy
is. pydoc osand then look for "stat"... In "stat_result" there's a description of the tuple you'll get. -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything s

Re: [ANN] markup.py - 1.2 - an HTML/XML generator

2006-04-03 Thread Jorge Godoy
Robert Kern <[EMAIL PROTECTED]> writes: > Why not "klass"? I was going to ask the same thing but I thought it was just me being too tired to find it "ugly" or "bad choice"... :-) -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine di

Re: Best way to create a copy of a list

2006-04-04 Thread Jorge Godoy
] [2, 3] >>> a[1][1] 3 >>> a[1][:] [2, 3] >>> Someone might think that the "[:]" means "all columns" and the syntax to be equivalent to "data[23]". -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython and SuSE 10.0

2006-04-07 Thread Jorge Godoy
Apt, smart and even YaST. -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualquer coisa dita em latim soa profundo. - Anything said in Latin sounds smart. -- http://mail.python.org/mailman/listinfo/python-list

Re: how relevant is C today?

2006-04-08 Thread Jorge Godoy
"Daniel Nogradi" <[EMAIL PROTECTED]> writes: > Can anyone shed some light on the secret of Java? How is it that they > are so high on this list? Marketing? Hype? :-) -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur.&qu

Re: how relevant is C today?

2006-04-08 Thread Jorge Godoy
503 > Fortran 119 > Ruby108 > open*gl 66 > > That is what the industry looks for. > You understand the ratios? Of course! You need 23 C/C++ people to do the job of one Pythoneer ;-) -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine

Re: Decorators, Identity functions and execution...

2006-04-09 Thread Jorge Godoy
ck of indentation in your code. > >>> and use it like: >>> >>> @t(X) >>> def foo(a) : >>> # definition of foo... >>> pass >> >> that's also a syntax error. > > Once again this isn't an error assuming you pass in

Re: Bored.

2009-11-30 Thread Jorge Cardona
tware/flowcanvas/ http://code.google.com/p/gtkmodelica/ http://www.jmodelica.org/ http://www.ida.liu.se/~pelab/modelica/OpenModelica.html > > There's also a Python site, were projects are submitted that needs something > ( some even pay a little), > but I can't rem

Generators.

2009-12-06 Thread Jorge Cardona
ere it should be a formal way to act on the base indexing iterator, such way exists? Is there a better approach to get what i need? Thanks. -- Jorge Eduardo Cardona jorgeecard...@gmail.com jorgeecardona.blogspot.com Linux registered user #391186 Regi

Re: Generators.

2009-12-07 Thread Jorge Cardona
2009/12/7 Lie Ryan : > On 12/7/2009 7:22 AM, Jorge Cardona wrote: >> >> Hi, >> >> I was trying to create a function that receive a generator and return >> a list but that each elements were computed in a diferent core of my >> machine. I start using islice

Re: Generators.

2009-12-08 Thread Jorge Cardona
2009/12/7 Taylor : > On Dec 7, 1:29 pm, Jorge Cardona wrote: >> 2009/12/7 Lie Ryan : >> >> >> >> > On 12/7/2009 7:22 AM, Jorge Cardona wrote: >> >> >> Hi, >> >> >> I was trying to create a function that receive a generator an

Re: Generators.

2009-12-08 Thread Jorge Cardona
2009/12/8 Lie Ryan : > First, I apologize for rearranging your message out of order. > > On 12/8/2009 5:29 AM, Jorge Cardona wrote: >>>> >>>> islice execute the function at the generator and drop the elements >>>> that aren't in the slice.

What was your strategy?

2010-11-14 Thread Jorge Biquez
, a plan to learn each subject in a special way. I would like to know, if possible, comments specially from some of you who in the past had other languages, frameworks and platforms and left (almost) all of them and stayed with Python. Thanks in advance Jorge Biquez -- http://mail.python.org

Which non SQL Database ?

2010-12-04 Thread Jorge Biquez
available under the 3 plattforms. Thanks in advance for your comments. Jorge Biquez -- http://mail.python.org/mailman/listinfo/python-list

Re: Which non SQL Database ?

2010-12-04 Thread Jorge Biquez
At 05:02 p.m. 04/12/2010, you wrote: Jorge Biquez writes: > Hello all. > > Newbie question. Sorry. > > As part of my process to learn python I am working on two personal > applications. Both will do it fine with a simple structure of data > stored in files. I now there

Re: Which non SQL Database ?

2010-12-04 Thread Jorge Biquez
Hello all. Understood perfectly. Will forget other alternatives. Sqlite3 is the best option. Thanks for the explanation and time. Sqlite for single user and Postgresql will be the choice. Thanks all. Take care Jorge Biquez At 06:01 p.m. 04/12/2010, you wrote: Jorge Biquez writes: >

How to inspect a variable (sys.modules) for changes in the execution of a program?

2011-02-15 Thread Jorge Vargas
Hello, I have the following situation. In a big project that involves many dependencies (and sadly some sys.module hacks) we have a bug, and it will really help if i could monitor all changes made to that variable. Is there a way to trace those changes ? -- http://mail.python.org/mailman/listinfo

Re: help!!!

2010-10-11 Thread Jorge Biquez
ase, women were better programming than men. but sure, on the IT industry the percentage of men is a lot more than the one of women. Why? Jorge Biquez -- http://mail.python.org/mailman/listinfo/python-list

Learning with Open Source Applications.

2010-10-18 Thread Jorge Biquez
mean, solutions you consider are very well written and that are examples of what a good Python applications should be written? I know there are tons of applications but would like to hear advice based on experience if possible. Thanks. Thanks in advance. Jorge Biquez -- http://mail.python.org

Re: Python 2.7 or 3.1

2010-10-26 Thread Jorge Biquez
ubject but... Any comments on using dBase format file with Python? Thanks in advance. Jorge Biquez At 08:50 p.m. 26/10/2010, you wrote: Am 27.10.2010 03:38, schrieb Jorge Biquez: > And what about if I only were to develop for the web? I mean web > applications, Mysql, etc? It would be

Re: Python 2.7 or 3.1

2010-10-29 Thread Jorge Biquez
ested mainly in web applications with a database and if possible being accesing dbase since a projects still runs a big system under dbase format, or definitely stay with 2.7 for a while until most in migrate it t o 3.x? Thanks in advance Jorge Biquez At 05:21 p.m. 29/10/2010, geremy condra

Commercial or Famous Applicattions.?

2010-11-08 Thread Jorge Biquez
used most or recommend the most. As an example, I love and have used in the last years MAILMAN, never crashed, always works even on my small and old Intel Pentium III with a 10GB hard disk and 640KB of RAM. Still working and will work for sure (running under FreeBsd by the way). Thanks in

Pythos message

2017-03-10 Thread jorge . conrado
Hi, I have a test script netcdf_example.py and I run it. I have my figures on screen. But I had thse two emssages: /usr/lib/python2.7/site-packages/setuptools-18.3.1-py2.7.egg/pkg_resources/__init__.py:1256: UserWarning: /home/conrado/.python-eggs is writable by group/others and vulnerable

Pillow ImportError: No module named Image

2017-04-10 Thread jorge . conrado
Hi, I installed the Pillow in my computer. The I did: import Image, ImageMath ImportError: No module named Image Please, what can I do to solve this. Conrado -- https://mail.python.org/mailman/listinfo/python-list

Mcidas format

2017-04-11 Thread jorge . conrado
Hi, I have some data from the https://ghrc.nsstc.nasa.gov/hydro/search.pl. These data are the Infrared Global Geostationary Composite and the format of this is data is Mcidas. Please anyone know how I can read this data using Python. Thanks, Conrado -- https://mail.python.org/mailman/list

write arrays to disk

2017-04-16 Thread jorge . conrado
Hi, I'm new on Python software. I would like to write on disk arrays in binary or ascii format. Can someone please help me? Thanks, Conrado -- https://mail.python.org/mailman/listinfo/python-list

PYhton Mercator projection

2017-04-18 Thread jorge . conrado
Hi, I copy the script merc.py from: https://matplotlib.org/basemap/users/merc.html then I did: python merc.py and I had: Segmentation fault Please can someone help me. Conrado -- https://mail.python.org/mailman/listinfo/python-list

PYHDF

2017-05-23 Thread jorge . conrado
Hi, I downloade the pyhdf-0.9.0 and install it. Then I did: from pyhdf.SD import SD, SDC and I had: Traceback (most recent call last): File "", line 1, in ImportError: No module named pyhdf.SD I have a script to read and plot MODIS data and it use the from pyhdf.SD import SD, SDC. Wha

PYTHON GDAL

2017-05-23 Thread jorge . conrado
Hi, I'm trying to run a script to read and plot an geotiff data. And I use: import gdal and I had: import gdal Traceback (most recent call last): File "", line 1, in File "/home/conrado/miniconda2/lib/python2.7/site-packages/gdal.py", line 2, in from osgeo.gdal import deprecation

plot time on X axis

2017-06-07 Thread jorge . conrado
Hi, I was an IDL user and I'm using Python. I have several meteorological daily time seriee for several years. Please can someone help me. I would like to plot on X axis only the values o the year. Thanks, Conrado -- https://mail.python.org/mailman/listinfo/python-list

Mouse position values

2017-06-28 Thread jorge . conrado
Hi, I have 3D data array and would like to plot arbitrary cross section by cliking in my image. I was an IDL user and in IDL we have a cursor.pro that I used to get the X and Y positions on my image. I would like know how can I get the values of the X an Y position for two points (A and B) in

get value from list using widget

2017-07-05 Thread jorge . conrado
Hi, I would like know dow can I select and get the value from a list of values uisng widgets. Thanks, Conrado -- https://mail.python.org/mailman/listinfo/python-list

PYTHON GDAL

2017-07-14 Thread jorge . conrado
Hi, I installed the GDAL 2.2.1 using conda. Then I did: import gdal and I had: Traceback (most recent call last): File "", line 1, in File "/home/conrado/miniconda2/lib/python2.7/site-packages/gdal.py", line 2, in from osgeo.gdal import deprecation_warn File "/home/conrado/mi

Gdal

2022-10-07 Thread &quot;Jorge Conrado Conforte"
Hi, I installed GDAL using the pip command and conda. But, I did: import gdal and I had: Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'gdal' I need gdal to remap some data. Please, help me Conrado -- https://mail.python.or

Polot severa figures inside a for loopin

2022-10-08 Thread &quot;Jorge Conrado Conforte"
HI, I already use the IDL to plot data. Inside a for looping I plot and save my data and kill the window using the wdelete IDL command for close the window automatically. Now I'm using the Python to rea several netcdf 2d data. I plot my data and save it. But, I don't know how can I kill the

How to create a RGB color Table

2019-06-17 Thread Jorge Conrado Conforte
HI, Please someone could help me. How can I create a new color table with the values of r g and b that I have. I use the Mataplolib color tables. However, I would like to use a new color table with the respective r g b values that I have. Thank you. [https://ipmcdn.avast.com/images/icons/icon

Getting function and args from generator objects

2008-11-05 Thread Rui Jorge Rei
Hi, I have been searching for a way to fetch the originating function object from a generator. I would also like to get all the arguments and keyword arguments that were used when calling the function that created the generator. I checked the inspect module, but it doesn't seem to provide that dat

Re: authentication with python-ldap

2013-05-25 Thread Jorge Alberto Diaz Orozco
I have been doing the same thing and I tried to use java for testing the credentials and they are correct. It works perfectly with java. I really don´t know what we´re doing wrong. You are accessing a protected operation of the LDAP server and it (the server) rejects it due to invalid credential

proxy??

2012-11-20 Thread Jorge Alberto Diaz Orozco
Hi there. Does anyone knows how to manage headers using a simple proxy??? I'm doing this but It gives me problems In some pages. import SocketServer import SimpleHTTPServer import urllib2 PORT = class Proxy(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): try:

Re: proxy??

2012-11-20 Thread Jorge Alberto Diaz Orozco
When I try to open facebook or search something using google it is just not working. gives me forbidden or not found errors. that's why I think the problem is about the headers of the request. On 20/11/12 15:29, Joshua Landau wrote: On 20 November 2012 14:48, Jorge Alberto Diaz O

ntlm authentication for urllib2

2012-11-29 Thread Jorge Alberto Diaz Orozco
Hi there: I'm working with urllib2 to open some urls and grab some data. The url will be inserted by the user and my script will open it and parse the page for results. the thing is I'm behind a ntlm proxy, and I've tried with a lot of things to authenticate but it still doesn't work at all. I

python ldap bind error

2012-12-17 Thread Jorge Alberto Diaz Orozco
hi there. I'm working with python ldap and I need to authenticate my user. this is the code I'm using. import ldap ldap.set_option(ldap.OPT_REFERRALS,0) ldap.protocol_version = 3 conn = ldap.initialize("ldap://ldap.domain.cu";) conn.simple_bind_s("u...@domain.cu","password") every time I do this

pyrudp

2013-01-30 Thread Jorge Alberto Diaz Orozco
can someone give me a link to download pyrudp. I tried here http://code.google.com/p/pyrudp/ but didn´t worked. if someone can give me another idea it will be great to. I´m traying to make a reliable udp connection help will be really appreciated -- http://mail.python.org/mailman/listinfo/py

<    1   2   3   4   5   >