python newt under win32

2005-01-23 Thread Gabriel B.
Anyone has any info if there's something similar to Newt lib for win32? Thanks Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Finding a script's home directory?

2005-01-24 Thread Gabriel Cooper
In one of my python programs has a data file I need to load. My solution was to say: if os.path.exists(os.path.join(os.getcwd(), "config.xml")): self.cfgfile = os.path.join(os.getcwd(), "config.xml") Which works fine... as long as you're *in* the script's home directory when yo

add indexes on the fly to lists

2005-01-24 Thread Gabriel B.
vary from 1 to 600 (it's not linear as items got deleted the idx should not be reused) will it still be an easy solution or just a waste of resources (having a 600-sized list for 100 elements) I'm very new to python and apreciate any hints on that. Thanks Gabriel -- http://mail.

is this use of lists normal?

2005-01-24 Thread Gabriel B.
ssion on them for custom data... Tupples? the tutorial mentions one of it's uses 'employee records from a database' but unfortunatly don't go for it... i think the 'ideal' data model should be something like ({'id': 0, 'desc': 'dog food', 'price': '12,20'}, ...) But i have no idea how i'd find some item by the ID within it withouy using some loops Thanks! Gabriel -- http://mail.python.org/mailman/listinfo/python-list

tk global bindings

2005-01-29 Thread Gabriel B.
I'm starting to write a POS application UI's module. There's no mouse, just a bunch of global shortcuts. the problem is that TK doesn't have global shortcuts! Is there a work-around or i will have to attach 80 or so bindings for every input element? Thanks, Gabriel -- ht

naive doc question

2005-01-29 Thread Gabriel B.
Is it just me that can't find a full reference in the docs? I wanted a list of all the methods of dict for example... where can i find it? Thanks, and sorry if this question is just dumb, i really can't find it -- http://mail.python.org/mailman/listinfo/python-list

Re: Remove HTML tags (except anchor tag) from a string using regular expressions

2005-02-02 Thread Gabriel Cooper
Max M wrote: If it's not to learn, and you simply want it to work, try out this library: http://zope.org/Members/chrisw/StripOGram/readme >>> stripogram.html2safehtml('''first > last''',valid_tags=('i','a','br')) 'first > last' >>> stripogram.html2safehtml('''first < last''',valid_tags=('i','a',

Re: bytecode obfuscation

2005-02-04 Thread Gabriel Cooper
com. The risk of devious programming is too high to bother. So I pay Verisign or Authorizenet one cent on the dollar. In exchange, my clients' identities aren't being stolen. Hope this help, Gabriel. -- http://mail.python.org/mailman/listinfo/python-list

pulling multiple instances of a module into memory

2005-06-27 Thread Gabriel Jiva
is optimized to only load a module into memory once, I can never make more than one connection from the same Python script. Any ideas to work around this would be great. Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Question

2005-08-19 Thread Gabriel Cooper
look into the csv module. (for comma-separated-value text files.) Tom Strickland wrote: >I have a file that contains many lines, each of which consists of a string >of comma-separated variables, mostly floats but some strings. Each line >looks like an obvious tuple to me. How do I save each lin

Re: Big development in the GUI realm

2005-02-08 Thread Gabriel B.
> > users. For example, from their FAQ, it seems that no precompiled > > binaries will be provided. Support for comercial compilers will not be > > built in, only for gcc (through Cygwin?). > > Isn't this just the same thing with a different spin. There was always > an available distribution for

trolltech comitment (was:Big development in the GUI realm)

2005-02-08 Thread Gabriel B.
On Mon, 07 Feb 2005 20:56:44 -0800, Courageous <[EMAIL PROTECTED]> wrote: > Follow the copyright holder's wishes. > > That's fair. After all, it's free, so they're doing you a damn > big favor. I'm terrible sorry to extend this topic even furter, but it's silly, not to say dull to think like that

Re: Big development in the GUI realm

2005-02-08 Thread Gabriel B.
> >>Considering the fact that the Qt DLL exist by themselves, that the > >>version used is the one provided by Qt, and that the EXE uses a > >>standard, open way to communicate with it, the above does seem to say > >>this use would be valid. > >> > >> > > > >http://www.gnu.org/licenses/gpl-faq.

Re: ANN: Zeus Programmers Editor V3.94

2005-02-08 Thread Gabriel Cooper
Jussi Jumppanen wrote: The latest release of the Zeus for Windows programmer's editor is now available. So is this mentioned here on the Python mailing list because Zeus was written in Python, or is this just targeted spam for a commerical product? -- http://mail.python.org/mailman/listinfo/python

Re: Big development in the GUI realm

2005-02-08 Thread Gabriel B.
> However, imagine simple situation: > 1. I write proprietary program with open plugin api. I even make the api > itself public domain. Program works by itself, does not contain any > GPL-ed code. No need to continue. You write something that uses a plugin, Eolas sues you. Don't have to mind about

Re: tk global bindings

2005-02-08 Thread Gabriel B.
g i looked into it was the pack method and it talked about the grid only ...i'm still using "practical programing in Tcl and Tk" for my tk needs :) thanks again, Gabriel -- http://mail.python.org/mailman/listinfo/python-list

tcl/tk naming scheme vs python's

2005-02-08 Thread Gabriel B.
7;m i exagerating or do you people also comes to this some times? The other choice i think i had was to use semantic names instead of semantic and hierarchical ones. Gabriel PS: i resisted the force of make an example using ButtonSpamSpamSpamSpamSpamEggsSpam -- http://mail.python.org/mailman/lis

Python UPS / FedEx Shipping Module

2005-02-11 Thread Gabriel Cooper
I've made UPS and FedEx shipping rate request modules in python using XML. Is there an interest in putting this on the web? -- http://mail.python.org/mailman/listinfo/python-list

tk resource file for geometry?

2005-02-12 Thread Gabriel B.
i'm using almost every widget property from my pyTk programs in the form of resources, like: self.tk.option_add ( "*InputClass*background", "White" ) In the widget creation i have only the Class and the Command attribute, but i'm having to add some tk options to the geometry method, in the case,

Why Tk treat F10, F11, F12 diferently from F1...F9?

2005-02-12 Thread Gabriel B.
27;t for F10 showing nothing. I get the return code just to use the same function (and same biding) for the 12 buttons since i can't pass arguments to the Command option in tk. ...And i'm already considering adding a L1 and L2 check instead of F11 and F12 and a 'empty' check for the F10... But that would be plain ugly. Thanks, Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Tk treat F10, F11, F12 diferently from F1...F9?

2005-02-12 Thread Gabriel B.
On Sat, 12 Feb 2005 19:44:25 -0600, Jeff Epler <[EMAIL PROTECTED]> wrote: > The reason that F10 does nothing is because there is already a binding > on all for . [...] > If you want to get rid of this binding, you would do it with something > like > w.bind_all("", "") > for some widget w. That

Re: Python UPS / FedEx Shipping Module

2005-02-14 Thread Gabriel Cooper
It took me no less than an hour and likely more just to find the documentation pages on each site. As for putting them up on the web, I should be able to get them up by the end of the week. Gabriel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python UPS / FedEx Shipping Module

2005-02-15 Thread Gabriel Cooper
one so far. Gabriel. -- http://mail.python.org/mailman/listinfo/python-list

DB Schema

2005-02-18 Thread Gabriel B.
t like that. Thanks, Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Re: update images inside a mysql database

2005-02-24 Thread Gabriel Cooper
Jonas Meurer wrote: def i_update(image, imgid): image = "%s" % (image) sql_exec = """UPDATE Images SET Image='%s' WHERE ImgID = '%s' """ % (image, imgid) o = open("/tmp/file.jpg", "w") o.write(image) o.close() db_connect.cursor.execute(sql_e

simple input that can understand special keys?

2005-02-26 Thread Gabriel B.
i'm writting an application that will use Tinker in a newer future. Now it's console only. I simply ommit some data on the display, print() some other and go on. The problem is that i can't test the actions tiggered by special keys, like Page Up/Down or the F1...12 Right now i'm using raw_input()

Python UPS / FedEx Shipping Module

2004-11-29 Thread Gabriel Cooper
red from sourceforge! Thanks, Gabriel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tibia 0.1 DOM-based website editor

2004-12-10 Thread Gabriel Cooper
to double-click on any page element with a big block-border around it, right? If so, nothing happened for me. :( Gabriel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tibia 0.1 DOM-based website editor

2004-12-10 Thread Gabriel Cooper
Robert Brewer wrote: I assume you're using the demo? My copy of Firefox has an error browser under Tools->Javascript Console. Does the double-click report any error there? Make sure you clear the list before trying, since errors from all other webpages gt dumped in the same list. I was using th

Re: Time Difference

2004-12-20 Thread Gabriel Cooper
GMane Python wrote: Hello I was wondering if there is an existing function that would let me determine the difference in time. For a more robust solution, checkout Python's profile module. http://docs.python.org/lib/profile.html -- http://mail.python.org/mailman/listinfo/python-list

Re: FW: Python help group

2005-03-22 Thread Gabriel Cooper
I would recommend looking into sorting like objects with the __getitem__ method. http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/b2d0580792b94a7/a707054ec3302a6e has a lively discussion on this topic. Search google for "__getitem__" and "sort" for more information.

Re: Pseudocode in the wikipedia

2005-04-01 Thread Gabriel Cooper
Ron_Adam wrote: To me ":=" could mean to create a copy of an object... or should it be "=:" ? Or how about ":=)" to mean is equal and ":=(" to mean it's not. Then there is ";=)", to indicate 'True', and ':=O' to indicate 'False' Not to mention "(_ | _)" for asserts! -- http://mail.python.org/m

Re: workaround for generating gui tools

2005-04-11 Thread Gabriel B.
On Apr 10, 2005 11:08 PM, Bengt Richter <[EMAIL PROTECTED]> wrote: > On Sat, 9 Apr 2005 19:22:16 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > open('mywidget_v2.txt','w').write(repr(mywidget.textview) How about a pickle hook? You'd just unpack the pickle data, and end up with a pointer

Better access to database search results

2005-04-12 Thread Gabriel Cooper
Usually when I access db search results it's something like this: cursor.execute("select A1,A2,A3,A4 from B where C") for (a1,a2,a3,a4) in cursor.fetchall(): stuff() But sometimes the point at which I use the data returned is not with the search, and so having the ability to access the results

Re: Better access to database search results

2005-04-12 Thread Gabriel Cooper
Simon Brunning wrote: On Apr 12, 2005 4:32 PM, Gabriel Cooper <[EMAIL PROTECTED]> wrote: Usually when I access db search results it's something like this: cursor.execute("select A1,A2,A3,A4 from B where C") for (a1,a2,a3,a4) in cursor.fetchall(): stuff

Accessing multidimensional lists with an index list

2005-04-17 Thread Gabriel Birke
Given the multidimensional list l: l = [ {'v1': 1, 'v2': 2}, [ {'v1':4, 'v2': 7}, {'v1': 9, 'v2': 86}, [ {'v1': 77, 'v2': 88}] ] ] I want to access specific items the indices of which are stored in another list. For now, I created a function

parallel (concurrent) eventlet

2016-01-18 Thread David Gabriel
unt < 5: count += 1 print "%s: %s" % (ThreadName, time.ctime(time.time()) ) eventlet.sleep(delay) print 'Before call threads' evt1 = eventlet.spawn(mainOfSyncrepl, "Thread-1",) evt2 = eventlet.spawn(print_time, "Thread-2",) e

Re: parallel (concurrent) eventlet

2016-01-18 Thread David Gabriel
x27;) Please advise me how to fix this issue. Kind regards. 2016-01-18 12:03 GMT+01:00 David Gabriel : > Dears, > > I have an issue when I use eventlet Api to create parallel threads. > In fact, when I run the below code, only the program dealing with the > synchronozation with

Beginner Python Help

2016-03-18 Thread Alan Gabriel
Hey there, I just started out python and I was doing a activity where im trying to find the max and min of a list of numbers i inputted. This is my code.. num=input("Enter list of numbers") list1=(num.split()) maxim= (max(list1)) minim= (min(list1)) print(minim, maxim) So the problem is th

Another python question

2016-03-18 Thread Alan Gabriel
Sorry for the multiple questions but my while loop is not working as intended. Here is the code : n = 1 list1 = [] count = 0 #amount of times program repeats steps = 0 # amount of steps to reach 1 step_list = [] while n!=0: n= int(input()) list1.append(n) length = len(list1) while count

Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
Hello, I need some help in downloading videos from flash applications in web using python. Is there any lib to deal with flash player using python? The videos I need to download are, in fact, live streaming content. You can see an example here: http://vejoaovivo.com.br/sc/itapema/avenida-nereu

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
Thanks for the Hint... But it seems not to support the website i mentioned... Is there a way to make it possible for any kind of video player in the net? Flash player... Since it's not a ordinary video... I'm trying to record & download a live streaming video!! Thx -- https://mail.python.org/

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
I appreciate your help. I'm just afraid that Youtube-DL doesn't allow me to record or download a LIVE STREAMING VIDEO. Do you guys think it is possible, since I make some adjustments into the code of the library? -- https://mail.python.org/mailman/listinfo/python-list

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
Hi Paul, I presume the stream operator doesn't want to prevent me from downloading or recording the videos. I just wanna know more about some lib that could be used to deal with Flash Player Applications... Or possibly, anything that could lead me to be able to get those streaming videos. Thx -

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
The original plan was doing it using python. But, anyway, I should build a robot program to do that task for me... Because I need to capture hundreds of hours of different videos... You mean that is difficult because it's Python... or it's difficult because it's a Flash Application? Thx -- htt

Re: Downloading videos (in flash applications) using python

2015-02-02 Thread Gabriel Ferreira
Mark Lawrence wrote: > I don't actually know, but could you please provide some context and > write in plain English, those damn ... things are extremely annoying. > Hi, Mark. I am developing a research project, which includes video analysis (computer vision, big data, data mining, etc). Th

Re: Error 'module' object has no attribute "_extension_registry" when cPickle is imported from an installed Python 2.7.1

2011-09-27 Thread Gabriel Genellina
odule' object has no attribute '_extension_registry' Looking at cPickle.c, it imports the copy_reg module and then looks for its "_extension_registry" attribute. Maybe your copy_reg.py is broken, or you have another copy_reg.py hiding the standard one. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: syntactic sugar for def?

2011-09-28 Thread Gabriel Genellina
STORE_NAME 0 (foo) 9 LOAD_CONST 1 (None) 12 RETURN_VALUE To get at the actual function code, one should use f.func_code.co_consts[0]; this would be the 'code' parameter for types.FunctionType. Very complicated, really; nothing can beat the 'def' statement for defining a function ;) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 2.6.7 on Windows

2011-09-28 Thread Gabriel Genellina
2.6.7 (or apply only the .py changes) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Change import order with *.pth files

2011-10-03 Thread Gabriel Genellina
set the PYTHONPATH environment variable, or edit the site.py standard module. This may be fine in your development environment, but I would never do that in production. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: BaseHTTPServer ThreadMixIn not working

2011-10-04 Thread Gabriel Genellina
invalid and knows she cannot re-use the received body and has to issue the second request and waits again and ... Try with different URLs for each request: http://localhost:8080/a http://localhost:8080/b http://localhost:8080/c and you'll see they all are processed in parallel. -- Ga

Re: Is exec() also not used in python 2.7.1 anymore?

2011-10-04 Thread Gabriel Genellina
block, or perhaps locals(); # modify accordingly -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: database connection

2011-10-07 Thread Gabriel Genellina
user who can read the database file can connect to it. sqlite does not have internal users, and does not implement GRANT/REVOKE statements. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: How to inspect slot wrappers arguments in Python?

2011-10-07 Thread Gabriel Genellina
ments is encoded in its 'format' parameter, and is not stored anywhere. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: sending ftp file list to mail???

2011-10-07 Thread Gabriel Genellina
En Fri, 07 Oct 2011 03:23:57 -0300, selahattin ay escribió: hi all. I want to get my ftp list and send the list to my mail adress... my codes are And your problem is...? -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: sending ftp file list to mail???

2011-10-07 Thread Gabriel Genellina
s a string. retrlines, by default, outputs to stdout, isn't very useful. Try this: def posta_olustur(): ... lines = [] baglanti.retrlines("LIST", lines.append) text = '\n'.join(lines) posta.attach(MIMEText(text)) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.getsockname is returning junk!!

2011-10-07 Thread Gabriel Genellina
1) I'd say it's a problem with the _socket module; did the unit tests flag anything when you built Python? On Windows, Python 2.7.1: server_address=('lepton', 1) sock.bind(server_address) sock.getsockname() ('127.0.0.1', 1) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Deleting files on a shared server

2011-10-07 Thread Gabriel Genellina
open. [1] http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/openfiles.mspx -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: why msvcrt.printf show the first char only?

2011-10-15 Thread Gabriel Genellina
ng, and stops as soon as it sees the '\0' following the 'T' in 'Testing'. Either use wprintf("Testing..."), or encode the Unicode object into a byte string before calling: printf("Testing...".encode(sys.stdout.encoding)), or tell ctypes about the right parameter type: printf = msvcrt.printf printf.argtypes = [c_char_p] printf("Testing\n") -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast recursive generators?

2011-10-28 Thread Gabriel Genellina
s print list(itertools.islice(my_generator(), 10)) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: When I use Python under Windows. I found some file handles are not closed,

2011-11-01 Thread Gabriel Genellina
the Python version you're using. Also, a small, complete, runnable code example showing the problem would be very valuable. Usually, in building such example, you may well find out where your problem is. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

threading IOError

2005-12-13 Thread Gabriel Genellina
el módulo PYTHON24.DLL de 016f:1e0ab51f. Registros: EAX=1e19d1af CS=016f EIP=1e0ab51f EFLGS=00010206 EBX=00841f80 SS=0177 ESP=0071e6ec EBP= ECX=73962000 DS=0177 ESI=1e06a1b0 FS=1a07 EDX=1e19d1b0 ES=0177 EDI= GS= Any ideas? Gabriel Genellina Softlab SRL -- http://mail.python.org/mailman/listinfo/python-list

const objects (was Re: Death to tuples!)

2005-12-14 Thread Gabriel Zachmann
irly easy. All that would be needed is a flag with each variable. Just my tupence, Gabriel. -- /---\ | Any intelligent fool can make things bigger, more complex,| | or more violent. It takes a touch of genius - and a

definition of 'polymorphism' and python

2005-12-14 Thread Gabriel Zachmann
I understand the Wikipedia article on Polymorphism ( http://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29 ) that it doesn't make sense to talk about polymorphism in a fully dynamically typed language -- does the Python community agree? cheers, ga

Re: threading IOError

2005-12-15 Thread Gabriel Genellina
Andrew MacIntyre ha escrito: > Gabriel Genellina wrote: > > File "C:\Apps\Python\Lib\threading.py", line 218, in wait > > remaining = endtime - _time() > > IOError: [Errno 2] No such file or directory > > > > The error appears to be insi

Sharing between multiple interpreters and restricted mode

2006-01-04 Thread gabriel . becedillas
Hi, At the company I work for we've embedded Python 2.4.1 in a C++ application. We execute multiple scripts concurrenlty, each one in its own interpreter (created using Py_NewInterpreter()). We are sharing a certain instance between interpreters because its to expensive to instantiate that class ev

regex question

2006-08-03 Thread Gabriel Murray
Hello, I'm looking for a regular _expression_ which will match strings as follows: if there are symbols a, b, c and d, then any pattern is valid if it begins with a and ends with d and proceeds in order through the symbols. However, at any point the pattern may reset to an earlier position in the s

Design Patterns in Python

2006-08-04 Thread Gabriel Genellina
go on this list. But does anyone know of a complete discussion/analysis of patterns in Python? Books, articles, web pages... Unfortunately the pattern-SIG is now defunct... Gabriel Genellina Softlab SRL __ Pre

Re: Design Patterns in Python

2006-08-07 Thread Gabriel Genellina
At Saturday 5/8/2006 22:22, Alex Martelli wrote: > But does anyone know of a complete discussion/analysis of patterns in > Python? Books, articles, web pages... Thanks to all of you for your pointers on this subject! Gabriel Genellina Softl

Re: python - HTML processing - need tips

2006-08-07 Thread Gabriel Genellina
mitted, and then build a compatible Request. On many sites you don't even need to *get* the login page -nor parse it-, just posting the right Request is enough to log in successfully. Gabriel Genellina '@'.join(('gagsl-

Re: Accessing Yahoo Mail withtout POP

2006-08-08 Thread Gabriel Genellina
At Tuesday 8/8/2006 12:39, Dieter Deyke wrote: > Is there a way to access yahoo mail via its web interface? If so, can > someone give some pointers? www.freepops.org Very generic almost-anything-to-pop3, but it's not written in Python, uses LUA instead. Gabriel Genellina

Re: newb question: file searching

2006-08-08 Thread Gabriel Genellina
ot;images" instead of just the file name. See, when I go to use a particular image name later on, it won't do me much good if I don't have the path to it. Look at os.path.join() Gabriel Genellina Softlab SRL __

Re: newb question: file searching

2006-08-08 Thread Gabriel Genellina
if dirnames[i].startswith('.'): del dirnames[i] return imageList reversed() because you need to modify dirnames in-place, so it's better to process the list backwards. Gabriel Genellina Softlab SRL __

Re: os.path.normpath

2006-08-09 Thread Gabriel Genellina
idence (in fact it isn't...) URLs dont necesarily point to a real file on a real file system (Zope is an example). Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querí

Re: Nested function scope problem

2006-08-09 Thread Gabriel Genellina
(tok)>0: self.append(tok) tok = '' return tok ls = mylist() and use: tok = ls.addTok(tok) whenever the original code says addTok(tok) Gabriel Genellina Softlab SRL __ Preguntá. R

Re: Two Classes In Two Files

2006-08-09 Thread Gabriel Genellina
n't seem to find the answer. [...] When I run the Two.py file, I get the expected output but I'd like to eliminate the from line in two.py. Embody the Zen of Python: http://www.python.org/dev/peps/pep-0020/

Re: loop until keypress (Windows XP)

2006-08-09 Thread Gabriel Genellina
print "Hello world!" if kbhit(): stop = getch()=='q' kbhit() is used to detect when a keypress is waiting, so the next getch() will not block. Gabriel Genellina Softlab SRL __ Preguntá

Re: state of SOAP and python?

2006-08-10 Thread Gabriel Genellina
real interoperability, maybe just extending to support long integers could be easier... I remember extending once to support NaN's, moving to SOAP was too much effort for that application. Gabriel Genellina S

Re: Escape sequences (colour) and padding with "%8s"%

2006-08-10 Thread Gabriel Genellina
es library... print '\x1b[34m%8s\x1b[0m' % 'TEST' Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuest

RE: seaching a list...

2006-08-11 Thread Gabriel Genellina
ter than the network overhead, and the associated multiple db calls... should... are you sure? How many rows on the database? how many rows to compare? network overhead? Do some timing/performance tests to evaluate that. Things aren't always as you expect. Gabr

Re: Tab delimited file

2006-08-11 Thread Gabriel Genellina
true in general for any language, not only Python. > Assuming this is true, how do i find where the > tabs are in the file so that I can distinguish between the different criteria? >Assuming this is not true, does anyone suggest another way to do it? Look at the csv module: http://docs.

Re: seeking the "Hello World" of Packages

2006-08-11 Thread Gabriel Genellina
you could use: import MyPackage MyPackage.printHelloWorld() Note: In order to be able to import MyPackage, the directory MyPackage must be a subdir of anything listed on sys.path. It's unlikely that C:\MyPackage would work. Try using python\lib\site-packages instea

Re: Learning Python

2006-08-11 Thread Gabriel Genellina
R, Y = a if poly(10, M,O,N,E,Y) == poly(10, S,E,N,D) + poly(10, M,O,R,E): which is infinitely more legible (and a bit compact, too). (poly is left as an exercise: def poly(x, *args): ) And a,b,s are too short names... Gabriel Genellina Softlab SRL

Re: Newbie Python SQL

2006-08-14 Thread Gabriel Genellina
ython book, but all take a very introductory approach. Any recommendation would be appreciated. I think you need an SQL/database course rather than a Python one. Gabriel Genellina Softlab SRL __ Preguntá. Res

Re: looking for a simple way to load a program from another python program..

2006-08-14 Thread Gabriel Genellina
you tried os.system("cabel.py") Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! htt

Re: sending mailing list with smtplib

2006-08-14 Thread Gabriel Genellina
At Monday 14/8/2006 10:22, 3KWA wrote: # ... but the actual message sending in a loop to send one email each (didn't work) Specify "didn't work" at least... see http://www.catb.org/~esr/faqs/smart-questions.html Gabriel G

Re: why the method get() of python Queue is hang on there?

2006-08-14 Thread Gabriel Genellina
At Monday 14/8/2006 12:35, zxo102 wrote: Thanks for your guys. I got it. I thought Queue can be used anywhere in the code and the second b.get() would return a "None". You can use a list as a generic queue, with append (== push) and pop(0) Gabriel Genellina S

Re: OT: p-gal website

2006-08-14 Thread Gabriel Genellina
? They are "true" and "real" international standards. Do you know what ISO is? HTML 4.01 is ISO/IEC 15445; see https://www.cs.tcd.ie/15445/15445.html Gabriel Genellina Softlab SRL __ Preguntá. Resp

Disable close button in management window.(KDE- pyQT)

2006-08-18 Thread Gabriel - BR
Hi,,, Is possible disable the close button in KDE management window? Using python+qt? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for arcgis

2006-08-18 Thread Gabriel Genellina
At Thursday 17/8/2006 00:25, subramanian2003 wrote: From where can I get the python tutorial for arcgis customisation?. Tried google? Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo

Re: Py2Exe and sys.argv : The Lost Arguments

2006-08-18 Thread Gabriel Genellina
lorer -some misbehaving context menu extension-. See <http://groups.google.com/group/microsoft.public.windowsxp.basics/browse_frm/thread/5d7a111f31fa7901> But, maybe next time, you could try and exclude all other variables (wxWindows, py2exe...) to keep things simple... Gabriel Genell

Re: Http client to POST using multipart/form-data

2006-08-18 Thread Gabriel Genellina
o use your custom HTTPConnection. Pass your custom HTTPHandler to build_opener and it will use it. Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imagi

Re: efficient memoize decorator?

2006-08-18 Thread Gabriel Genellina
example -function with no keyword arguments- use the much simpler implementation from <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325205> NOT the original recipe but the comment by Chris Spencer titled "A working example". Gabriel Genel

Re: Search or compai problem

2006-08-18 Thread Gabriel Genellina
unique object used as "nothing" or "no value". Try reading the Python tutorial, it's easy and you will learn a lot of things. Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Desc

Re: Documenting a package with Pydoc

2006-08-19 Thread Gabriel Genellina
erate now the docs for pychart: python c:\apps\python\lib\pydoc.py -w c:\apps\python\lib\site-packages\pychart Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo qu

Re: efficient memoize decorator?

2006-08-19 Thread Gabriel Genellina
#x27;s a pretty standard mantra. Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.co

Re: efficient memoize decorator?

2006-08-19 Thread Gabriel Genellina
line 49, in __call__ object = self.cache[args] = self.fn(self.instance, *args) AttributeError: 'Memoize' object has no attribute 'instance' For a standalone function, you should remove __del__ and self.instance, but I haven't

Re: Small Troll on notation of variables over time

2006-08-19 Thread Gabriel Genellina
* for *all* names would be ridiculous - objects would never get garbage collected, by example. And 99.% of programs don't need that behavior at all. So just implement that for your use case - if you have any! Gabriel Genellina Softla

Re: Disable close button in management window.(KDE- pyQT)

2006-08-21 Thread Gabriel - BR
HI, I am talking about the close button "X", that appears when I execute my application (pyQt), in kde. Thanks.. David Boddie escreveu: > Gabriel - BR wrote: > > Hi,,, > > Is possible disable the close button in KDE management window? Using > > python+qt? >

Re: Search or compai problem

2006-08-21 Thread Gabriel Genellina
your items come from, but usually None is used to represent an empty/null value. It's not the same as "". Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber

<    1   2   3   4   5   6   7   8   9   10   >