Re: Best way to compute length of arbitrary dimension vector?

2011-06-03 Thread Gabriel
s to me that the above solution (using hypot) involves repeated square roots (with subsequent squaring). Best regards, Gabriel. -- http://mail.python.org/mailman/listinfo/python-list

Best way to compute length of arbitrary dimension vector?

2011-05-30 Thread Gabriel
the reduce() function, but I can't seem to find a way to apply that to the case here (at least, not without jumping through too many hoops). I have also googled a bit, but found nothing really elegant. Any ideas? Best regards, Gabriel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to compute length of arbitrary dimension vector?

2011-05-30 Thread Gabriel
Thanks a lot to both of you, Chris & Peter! (I knew the solution would be simple ... ;-) ) -- http://mail.python.org/mailman/listinfo/python-list

Event objects Threading on Serial Port on Win32

2006-06-27 Thread Gabriel
#loop while alive event is true if self.ser.inWaiting() != 0: text = self.ser.read() event = SerialRxEvent(self.GetId(), text) self.GetEventHandler().AddPendingEvent(event) y listo... Con eso debería andar Espero haber sido útil --

USB

2006-06-28 Thread Gabriel
¿Alguien conoce algún módulo para python con el que se pueda tener acceso a los puertos USB y que sea multiplataforma? -- Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Icono en wxpython

2006-06-28 Thread Gabriel
darme una mano con esto? Otra cosa ¿dónde puedo publicar el programa una vez que este terminado? Desde ya muchas gracias -- Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Correr Programas Externos

2006-06-28 Thread Gabriel
Hola a todos: Necesitaría correr otros programas desde python. Es decir Cuando aprieto un boton que se abra el block de notas (por ejemplo) ¿Alguien sabe como hacerlo? Gracias -- Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythonic cats (and dogs?)

2008-01-10 Thread Gabriel
Yes ! Where are the dogs ? I preffer them .. :-) "Tim Churches" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > A challenge: an elegant, parsimonious and more general[1] implementation of this, in Python: > > http://lol.ianloic.com/feed/www.planetpython.org/rss20.xml > > Tim

Graphics Module

2008-01-11 Thread Gabriel
Hi all ! I'm developing a math program that shows graphics of functions. I would hear suggestions about the way of drawing 2D . Thanks a lot for your answers. - Gabriel - -- http://mail.python.org/mailman/listinfo/python-list

Re: Graphics Module

2008-01-13 Thread Gabriel
On 11 ene, 22:51, Mike <[EMAIL PROTECTED]> wrote: > On Jan 11, 3:31 pm, "Gabriel" <[EMAIL PROTECTED]> wrote: > > > Hi all ! > > > I'm developing a math program that shows graphics of functions. > > I would hear suggestions about the w

Web authentication urllib2

2009-01-24 Thread Gabriel
Hello, I'm new in Python and i would like to write script which need to login to a website. I'm experimenting with urllib2, especially with something like this: opener = urllib2.build_opener(urllib2.HTTPCookieProcessor()) urllib2.install_opener(opener) params = urllib.urlencode(di

Re: Web authentication urllib2

2009-01-24 Thread Gabriel
urllib2.install_opener(opener) params = urllib.urlencode(dict(login='login', pwd='pass', page='')) f = opener.open('https://www.orangeportal.sk/', params) data = f.read() f.close() Login and pass are fake ofc. Thank you in advice f

Re: Web authentication urllib2

2009-01-24 Thread Gabriel
Oh, nevermind, it's working. Thanks Gabriel wrote: First, thank you both I think this isn't basic auth, because this page has form login. I read site's html source and used wireshark to analyze communication between my browser and website and i really find out that a was igno

Re: Web authentication urllib2

2009-01-24 Thread Gabriel
Yep, i realize this a minute after posting, sorry. And thank you again .) Steve Holden wrote: Gabriel wrote: First, thank you both I think this isn't basic auth, because this page has form login. I read site's html source and used wireshark to analyze communication between my b

python libpcap equivalent

2009-02-03 Thread Gabriel
Hello I need to write a software router [yes, software equivalent to a hardware box that is routing packets .)]. It's a school work.. Question is: is possible write this kind of application in python? and if it's, what module should i use? I tried search for some libpcap equivalent in python a

Re: python libpcap equivalent

2009-02-03 Thread Gabriel
Steve Holden wrote: Unknown wrote: On 2009-02-03, Gabriel wrote: I need to write a software router [yes, software equivalent to hardware box that is routing packets .)]. It's a school work.. Question is: is possible write this kind of application in python? Hmm. It's going to

Re: python libpcap equivalent

2009-02-03 Thread Gabriel
Steve Holden wrote: Unknown wrote: On 2009-02-03, Gabriel wrote: I need to write a software router [yes, software equivalent to hardware box that is routing packets .)]. It's a school work.. Question is: is possible write this kind of application in python? Hmm. It's going to

Low level hard drive reading

2009-04-02 Thread Gabriel
elp. Thank you in advice.. Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Merging byte arrays

2009-04-11 Thread Gabriel
Hello I'm using this function to read data in byte format from file def readBytes(file, offset, size): file.seek(offset) return file.read(size) file is opened with open function: file = open(path, "rb") then i'm using array.array('B', bytes) to parse read-out data, for example in this

GUI Programming

2009-04-12 Thread Gabriel
Hello, I'm python newbie and i need to write gui for my school work in python. I need to write it really quick, because i haven't much time .) So question is, which of gui toolkits should i pick and learn? I heard PyGTK and Glade are best for quick gui programming? Is it good for beginner? Or i

Re: GUI Programming

2009-04-12 Thread Gabriel
r wrote: On Apr 12, 8:07 am, Gabriel wrote: Hello, I'm python newbie and i need to write gui for my school work in python. I need to write it really quick, [snip] Tkinter is built-in, why not start there? from Tkinter import * root = Tk() root.mainloop() --

Re: GUI Programming

2009-04-12 Thread Gabriel
edexter wrote: On Apr 12, 8:07 am, Gabriel wrote: Hello, I'm python newbie and i need to write gui for my school work in python. I need to write it really quick, because i haven't much time .) So question is, which of gui toolkits should i pick and learn? I heard PyGTK and Glad

Re: GUI Programming

2009-04-13 Thread Gabriel
Gabriel wrote: Hello, I'm python newbie and i need to write gui for my school work in python. I need to write it really quick, because i haven't much time .) So question is, which of gui toolkits should i pick and learn? I heard PyGTK and Glade are best for quick gui programming?

python-magic with python2.6

2009-04-20 Thread Gabriel
Is there any way to use python-magic(http://pypi.python.org/pypi/python-magic/0.1) with python2.6? Or do somebody know something similar to this what is running on 2.6? -- Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Re: python-magic with python2.6

2009-04-21 Thread Gabriel
Gabriel wrote: Is there any way to use python-magic(http://pypi.python.org/pypi/python-magic/0.1) with python2.6? Or do somebody know something similar to this what is running on 2.6? If somebody care .. .) I have found sources of python-magic here: http://wiki.python.org/moin/HowTo

issue with twisted and reactor. Can't stop reactor

2009-05-11 Thread Gabriel
Hello all!, I'm trying to implement a simple one way communication using twisted. Sender: > send message > close connection Receiver: > receive > do something > wait for other message I'm testing with this simple examples: Sender: [code] class SenderClient(protocol.Protocol): def __init__(

Re: issue with twisted and reactor. Can't stop reactor

2009-05-11 Thread Gabriel
Jean-Paul Calderone escribió: > None of the reactors in Twisted are restartable. You can run and stop them > once. After you've stopped a reactor, you cannot run it again. This is > the > cause of your problem. > > Jean-Paul I see. Is it possible to do what I want using twisted? or I should f

how to find the last decorator of a chain

2009-05-30 Thread Gabriel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, I have something like this: @render(format="a") @render(format="b") @ def view(format, data): return data Each render will do something with 'data' if format match, and nothing if not. But if there is no more renders to eval, the last o

Re: List behaviour

2008-05-15 Thread Gabriel
sks > [[1], [], [], [], [], []] > > HTH > -- > http://mail.python.org/mailman/listinfo/python-list Hi Bruno Thanks for clearing that up. Your example certainly works well, I will study list comprehension a little more. Many thanks Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Re: List behaviour

2008-05-15 Thread Gabriel
Diez B. Roggisch nospam.web.de> writes: > So instead of creating a list of list by the *-operator that only multiplies > the references (which is fine immutable objects like strings or numbers), > you need to explicitly create new lists, e.g. with a list-comprehension: > > tasks = [[] for _ in x

Re: List behaviour

2008-05-15 Thread Gabriel
virgilio.it> writes: > >>> tasks = [ [] for x in xrange(6) ] > >>> tasks[0].append(1) > >>> tasks > [[1], [], [], [], [], []] > >>> > Thanks, Bockman -- http://mail.python.org/mailman/listinfo/python-list

List behaviour

2008-05-15 Thread Gabriel
h was something like: >>> tasks [[1], [], [], [], [], []] I got this example from page 38 of Beginning Python. Regards Gabriel -- http://mail.python.org/mailman/listinfo/python-list

Re: Calendar GUI

2010-02-05 Thread Gabriel
On Fri, Feb 5, 2010 at 9:08 PM, William Gaggioli wrote: > Hello Everyone, > > I'm working on setting up some software for a Peruvian non-profit to help > them organize their incoming volunteers. One of the features I'd like to add > is a calendar-like view of the different volunteers arrival dates

Re: Timer

2010-02-17 Thread Gabriel
On Wed, Feb 17, 2010 at 3:14 PM, Victor Subervi wrote: > Hi; > I have the following css: > > .splash { position:absolute; left:0px; top:0px; z-index:2 } > .page { position:absolute; left:0px; top:0px; z-index:1 } > .text {  font-family: Arial, Helvetica, sans-serif; font-size: 16px; > text-decora

Re: Splitting on '^' ?

2009-08-14 Thread Gabriel
On Fri, Aug 14, 2009 at 5:23 PM, kj wrote: > import re re.split('^', 'spam\nham\neggs\n') > ['spam\nham\neggs\n'] re.split('(?m)^', 'spam\nham\neggs\n') > ['spam\nham\neggs\n'] bol_re = re.compile('^', re.M) bol_re.split('spam\nham\neggs\n') > ['spam\nham\neggs\n'] > > Am I

Re: Python word to text

2009-09-01 Thread Gabriel
2009/9/1 BJörn Lindqvist : > Hello everybody, > > I'm looking for a pure Python solution for converting word documents > to text. App Engine doesn't allow external programs, which means that > external programs like catdoc and antiword can't be used. Anyone know > of any? > You could use the googl

Random List Loop?!

2013-01-05 Thread Christian Gabriel
Hi I have tried now for ages to make a loop that does the following: Makes a new list with 9 random values, from 9 different lists, with 9 elements. And makes sure that none of the elements repeat! Is there anyone that can help, with a very simple solution?? Best Christian -- http://mail.py

[ANN] Python/Cython/SDL 2D Game Engine

2012-02-22 Thread Gabriel Jacobo
to C, and compiles it all along with the Python interpreter and SDL into a static binary. It's still a long way of from being something serious, but you can already make nice Android Live wallpapers with it! You can check it out at www.ignifuga.org Thanks! -- Gabriel. -- http://mail.pyt

Request META Help

2012-04-19 Thread Gabriel Novaes
I have a system that uses request.META ['HTTP_HOST'] to identify which will run APPLICATION. The domains testes1.xyz.com.br, tes.xyzk.com.br, xx.xyzk.com.br through a DNS redirect TYPE A link to the server IP. In most cases I get the request.META ['HTTP_HOST'] with the URL in the request heade

Re: except KeyError, everywhere

2011-06-06 Thread Gabriel Genellina
lementation in the standard library Yes, there is, in Python 3.2: http://docs.python.org/py3k/library/functools.html#functools.lru_cache -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: GIL in alternative implementations

2011-06-06 Thread Gabriel Genellina
change its meaning from one iteration to the next, so a complete name lookup is required at each iteration. This is very useful sometimes, but affects performance a lot. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Print Window on IDLE

2011-06-06 Thread Gabriel Genellina
the [General] section: print-command-posix=lpr %%s print-command-win=start /min notepad /p %%s (%s should become %%s). Tested on Windows, but Linux should have the same problem and temporary solution. You may need to roll this change back when the code is corrected. Reported as http://bugs.python.org/issue12274 -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: sys.tracebacklimit not working in Python 3.2?

2011-06-07 Thread Gabriel Genellina
issue12276 -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Function call arguments in stack trace?

2011-06-07 Thread Gabriel Genellina
ack.py in c(foo=90, bar=1) 26 "This is function c" 27 baz = foo+bar 28 spam.somenamethatdoesnotexist(foo+bar) 29 anotherglobal("thatdoesnotexisteither") 30 global spam = [] spam.somenamethatdoesnotexist undefined foo = 90 bar = 1 AttributeError: 'list

Re: Problems Compiling Python 2.6.7 for Win7

2011-06-08 Thread Gabriel Genellina
st of the other sources claiming to provide it. Doesn't http://www.microsoft.com/express/Downloads/#2008-Visual-CPP work for you? I didn't try past the initial download prompt, but it seems to be the right version. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: help on QUICKFIX

2011-06-10 Thread Gabriel Genellina
a mailing list - I think you'll get more help there. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Unsupported operand type(s) for +: 'float' and 'tuple'

2011-06-10 Thread Gabriel Genellina
above, I'd avoid using indexes, take two random nodes using random.sample instead, and avoid adjacency_list(): while True: a, b = random.sample(nod, 2) if b not in G[a]: break GG.add_edge(a, b) (mmm, I'm unsure of the adjacency test, I've used networkx some time ago but I don't have it available right now) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Unsupported operand type(s) for +: 'float' and 'tuple'

2011-06-10 Thread Gabriel Genellina
above, I'd avoid using indexes, take two random nodes using random.sample instead, and avoid adjacency_list(): while True: a, b = random.sample(nod, 2) if b not in G[a]: break GG.add_edge(a, b) (mmm, I'm unsure of the adjacency test, I've used networkx some time ago but I don't have it available right now) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7.2 for Windows reports version as 2.7.0?

2011-06-22 Thread Gabriel Genellina
0 twice, "for all users" and also "for current user only", and both in the same directory (c:\python27). That could explain the old .dll in the install directory; the new one goes into system32, but the old one takes precedence. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: search through this list's email archives

2011-06-24 Thread Gabriel Genellina
En Thu, 23 Jun 2011 13:11:32 -0300, Cathy James escribió: I looked through this forum's archives, but I can't find a way to search for a topic through the archive. Am I missing something? Gmane provides a search capability also: http://blog.gmane.org/gmane.comp.python.general

Re: search through this list's email archives

2011-06-24 Thread Gabriel Genellina
En Fri, 24 Jun 2011 11:33:23 -0300, Grant Edwards escribió: On 2011-06-24, Gabriel Genellina wrote: En Thu, 23 Jun 2011 13:11:32 -0300, Cathy James escribi?: I looked through this forum's archives, but I can't find a way to search for a topic through the archive. Am I missing

Re: from module import * using __import__?

2011-07-04 Thread Gabriel Genellina
quot;import pickle" in your code; if the fast module is present, it is automatically loaded and used; else, the slow but compatible version is used. You don't even have to know that an alternative implementation exists. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Execute a method in a file in an egg

2011-08-24 Thread Gabriel Genellina
En Tue, 23 Aug 2011 13:14:06 -0300, RVince escribió: Is there a way to do this from the command line? Thanks. Something like this? python -c "import the.module;the.module.someclass().method(arguments)" -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Script from Command line not working

2011-09-01 Thread Gabriel Genellina
e = None cyg.cygwin_dll_init() #hangs or returns here ... Anyway, I don't see why a console application would fail but not inside IDLE. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] allow line break at operators

2011-09-01 Thread Gabriel AHTUNE
So can be done with this syntax: > x = firstpart * secondpart + #line breaks here > anotherpart + #continue > stillanother #continue on. after a "+" operator the line is clearly not finished yet. Gabriel AHTUNE 2011/9/2 Matt Joiner > I guess the issue here is tha

Re: Handling 2.7 and 3.0 Versions of Dict

2011-09-02 Thread Gabriel Genellina
ctValues, despite being "indented", is defined at global scope, and may be used anywhere in the module. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Help required accessing dictionary

2011-09-02 Thread Gabriel Genellina
s((op)->ob_type, Py_TPFLAGS_INT_SUBCLASS) /* from object.h */ #define PyType_FastSubclass(t,f) PyType_HasFeature(t,f) #define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Invoking profile from command line prevent my sys.path modification

2011-09-02 Thread Gabriel Genellina
hon.org/install/index.html#modifying-python-s-search-path -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Handling 2.7 and 3.0 Versions of Dict

2011-09-02 Thread Gabriel Genellina
En Fri, 02 Sep 2011 13:53:37 -0300, Travis Parks escribió: On Sep 2, 12:36 pm, "Gabriel Genellina" wrote: En Wed, 31 Aug 2011 22:28:09 -0300, Travis Parks escribi : > On Aug 31, 7:37 pm, Gregory Ewing wrote: >> Ian Kelly wrote: >> > if sys.version_info &l

Re: puzzle about file Object.readlines()

2011-03-22 Thread Gabriel Genellina
MS-DOS, which borrowed from CP/M, an > > operating > > system which stored the file size as the number of 128-byte records. > > chr(26) was used to > > indicate where the text ended in the last record. > > On Win a ctrl-z is end of file.  So if you want to read beyond the end > of a text file, you have to pretend it's binary.  Open it with  "rb" > instead of "r" Using mode "rU" may be more convenient, because it still translates \r \n into \n but disregards chr(26) as a special marker. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: How to build and upload eggs to pypi?

2011-03-22 Thread Gabriel Genellina
l: http://wiki.python.org/moin/CheeseShopTutorial To add a new version, simply increment the version number, and then "python setup.py upload" should be enough. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Help Amigos

2011-04-11 Thread Gabriel Novaes
Hello community My name is Gabriel. I'am from Brazil. 27. I finished last year Degree in Computer Engineering and I would go to the U.S.A to learn the local language. I wonder how is the market for developers, which city ​​is best for this? I program for 5 years PHP (MVC) and for the past

Re: Help Amigos

2011-04-11 Thread Gabriel Novaes
On 11 abr, 09:01, Gabriel Novaes wrote: > Hello community > > My name is Gabriel. I'am from Brazil. 27. I finished last year > Degree in Computer Engineering and I would go to the U.S.A > to learn the local language. > I wonder how is the market for developers, which &g

Re: PYTHONPATH

2011-04-15 Thread Gabriel Genellina
ories like ~/.local/lib/python2.6/site-packages and %APPDATA%\Python\Python26\site-packages (see PEP370 [1] for details) so you don't even have to mess with the Python installation directories. [1] http://www.python.org/dev/peps/pep-0370/ -- Gabriel Genellina -- http://mail.python.org/m

Re: argparse parser stores lists instead of strings

2011-04-28 Thread Gabriel Genellina
ng, but that's not really something I want to do, especially if I start adding more options. That's because of nargs=1. From the argparse documentation: [1] Note that nargs=1 produces a list of one item. This is different from the default, in which the item is produced by itself. So, just remove nargs=1 from add_argument() [1] http://docs.python.org/py3k/library/argparse.html#nargs -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Access violation reading 0x00000010

2011-04-28 Thread Gabriel Genellina
those two lines of code, I'd say the problem is inside SIM_init() itself. It may be attempting to dereference a NULL pointer: accessing a field inside a struct, or calling a virtual function from a NULL object... Also, make sure CDLL is the right choice; it implies a prototype like t

Re: How to upload a file

2011-04-28 Thread Gabriel Genellina
battery isn't included (yet - see http://bugs.python.org/issue3244) but this little library may help: https://bitbucket.org/chrisatlee/poster -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Testing tools classification

2011-05-09 Thread Gabriel Genellina
En Sat, 07 May 2011 02:21:02 -0300, rusi escribió: There is this nice page of testing tools taxonomy: http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy But it does not list staf: http://staf.sourceforge.net/index.php. The good thing about wikis is, you can add it yourself. -- Gabriel

Re: This it is the code of tmb_import.py (to matter of .tmb to blender) I need tmb_exporter.py (to export of blender to .tmb) Thanks.

2011-05-10 Thread Gabriel Genellina
, así que tal vez te convenga preguntar en un foro como: http://www.g-blender.org/ (específicamente dedicado a Blender 3D en español) También está la comunidad de Python Argentina: http://python.org.ar/pyar/ (busca la lista de correo) Suerte! -- Gabriel Genellina -- http://mail.python.org

Re: NewBie Doubt in Python Thread Programming

2011-05-11 Thread Gabriel Genellina
tiveCount is the original Java spelling. 5. is there a way to find out if the thread is still active or dead? Yes, use is_alive() -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Peculiar Behaviour of __builtins__

2011-05-12 Thread Gabriel Genellina
://docs.python.org/library/__builtin__.html Note: using getattr with a literal name is not so useful. Better to use dot notation. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Peculiar Behaviour of __builtins__

2011-05-12 Thread Gabriel Genellina
En Thu, 12 May 2011 22:59:24 -0300, Gabriel Genellina escribió: En Thu, 12 May 2011 20:29:57 -0300, Aman Nijhawan escribió: I was trying to call the builtin function min by using getattr(__builtins__,'min') This works at the interpretter prompt However when I called it insid

Re: Import on case insensitive filesystem

2011-05-16 Thread Gabriel Genellina
g/dev/peps/pep-0235/ for details. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: turn monitor off and on

2011-05-16 Thread Gabriel Genellina
is buggy or does not implement the required functionality. Mine is from Philips. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Datetime.timedelta

2011-05-17 Thread Gabriel Genellina
elta + hours datetime.timedelta(1, 37800) py> def dhms_from_timedelta(td): ... return td.days, td.seconds // 3600, (td.seconds % 3600) // 60, td.seconds % 60 ... py> dhms_from_timedelta(delta + hours) (1, 10, 30, 0) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: FW: help please

2011-05-17 Thread Gabriel Genellina
ld be the python-win32 list: http://mail.python.org/mailman/listinfo/python-win32 Good luck! -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: cPickle -> invalid signature

2011-05-17 Thread Gabriel Genellina
quite portable, even cross-version. As a generic answer, make sure you open the file in binary mode, both when writing and reading. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: FW: help please

2011-05-17 Thread Gabriel Genellina
se refresh my memory? -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: cPickle -> invalid signature

2011-05-17 Thread Gabriel Genellina
En Tue, 17 May 2011 15:26:53 -0300, Neal Becker escribió: Gabriel Genellina wrote: En Tue, 17 May 2011 08:41:41 -0300, Neal Becker escribió: What does it mean when cPickle.load says: RuntimeError: invalid signature Is binary format not portable? Are you sure that's the actual

Re: cPickle -> invalid signature

2011-05-17 Thread Gabriel Genellina
En Tue, 17 May 2011 15:26:53 -0300, Neal Becker escribió: Gabriel Genellina wrote: En Tue, 17 May 2011 08:41:41 -0300, Neal Becker escribió: What does it mean when cPickle.load says: RuntimeError: invalid signature Is binary format not portable? Are you sure that's the actual

Re: Multiple file select with tkFileDialog passes back 'decorated' strings (sometimes)

2011-05-23 Thread Gabriel Genellina
arse both, not an issue but it raises the question: Are these the only two possibilities? Is it the same across platforms (I use Python 2.7 on Win Vista)? An old bug. See http://bugs.python.org/issue5712 for a workaround. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Hotshoting recursive function

2011-05-25 Thread Gabriel Genellina
not raise ProfileError anymore. Interpreting profile data is up to you... -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: pexpect: TIMEOUT no longer clears child.before

2011-05-25 Thread Gabriel Genellina
he author: www.noah.org -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to compute length of arbitrary dimension vector?

2011-05-30 Thread Gabriel Genellina
En Mon, 30 May 2011 06:46:01 -0300, Peter Otten <__pete...@web.de> escribió: Gabriel wrote: Well, the subject says it almost all: I'd like to write a small Vector class for arbitrary-dimensional vectors. class Vector(object): ... def __init__(self, *coords): ...

Re: Alternatives to PythonPath

2011-05-31 Thread Gabriel Genellina
(2.6 and up), on Windows it is located at %APPDATA%\Python\PythonXX\site-packages. Every user gets its own %APPDATA% directory, with read and write permissions. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

from packaging import version as pack_version ImportError: No module named packaging

2017-10-27 Thread David Gabriel
Dears, I am running a python code that generates for me this error : from packaging import version as pack_version ImportError: No module named packaging I googled it and I have found so many suggestions regarding updating 'pip' and installing python-setuptools but all of these did not fix this

Re: from packaging import version as pack_version ImportError: No module named packaging

2017-10-28 Thread David Gabriel
Thanks so Lutz much for your reply. I am using python2.7 and I am running this code in an Openstack instance. I will apply your recommandation and let you know about the result ... Kind regards. 2017-10-27 16:13 GMT+02:00 Lutz Horn : > On Fri, Oct 27, 2017 at 03:56:39PM +0200, David Gabr

Re: from packaging import version as pack_version ImportError: No module named packaging

2017-10-28 Thread David Gabriel
I forget to precise that I am using pycharm. And this issue is reproducible also using command line to run the code. Best regards 2017-10-28 14:31 GMT+02:00 David Gabriel : > Thanks so Lutz much for your reply. > I am using python2.7 and I am running this code in an Openstack instance. &g

Re: from packaging import version as pack_version ImportError: No module named packaging

2017-10-30 Thread David Gabriel
, line 1327, in _execute_child raise child_exception OSError: [Errno 13] Permission denied This error is also reproducible using sudo. Please advise how to fix it. Thanks in advance. Best regards 2017-10-28 14:33 GMT+02:00 David Gabriel : > I forget to precise that I am using pycharm.

Pickle to source code

2005-10-26 Thread Gabriel Genellina
tool, gnosis xml is another) so I believe I could build something based on them. But I dont want to reinvent the wheel, I wonder if anyone knows of a library which could do what I want? Thanks, Gabriel Genellina Softlab SRL -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle to source code

2005-10-26 Thread Gabriel Genellina
Benjamin Niemann ha escrito: > Gabriel Genellina wrote: > > > I want to convert from pickle format to python source code. That is, > > given an existing pickle, I want to produce a textual representation > > which, when evaluated, yields the original object (as if

Re: Pickle to source code

2005-10-26 Thread Gabriel Genellina
code and attribute values of the class instance, there > is no problem to produce a textual representation of the object. Isn't it? Yes, but I need it for many different objects, some of them written by other people. Please see my next post for clarification. Gabriel Genel

Re: Pickle to source code

2005-10-26 Thread Gabriel Genellina
nvolving the persistent_id mechanism of pickles, but I think it should not be too difficult. In this example, if xxx.z points to another external instance for which persistent_id returns '1234', would suffice to output another line like: xxx.z = external_reference('1234') I ho

Re: Pickle to source code

2005-10-26 Thread Gabriel Genellina
useful. If any changes are needed I'll report them. Gabriel Genellina Softlab SRL -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle to source code

2005-10-26 Thread Gabriel Genellina
obj.done > (1, 2, 1) Er... Touché :) - What year did World War II finish? - Same year the Potsdam Conference was held. - When was that? - The year World War II finished. I should have stated that I need an *explicit* string... Gabriel Genellina Softlab SRL -- http://mail.python.org/mailman/listinfo/python-list

different binding behavior

2005-11-10 Thread Gabriel Zachmann
It seems to me that the following behavior of python (2.4.1) is inconsistent: >>> a=1 >>> b=a >>> a+=1 >>> b 1 >>> a 2 >>> a=[1,2] >>> b=a >>> b+=[3] >>> a [1,

combine doxygen and doc-strings?

2005-11-18 Thread Gabriel Zachmann
""" pass ? Obviously, one would like to write the documentaion only once. Best regards, Gabriel. -- /---\ | Any intelligent fool can make things bigger, more complex,| | or more violent. It takes a

Re: different binding behavior

2005-11-18 Thread Gabriel Zachmann
eed to discuss all this over again. In any case, thanks a lot for your response and summary. Best regards, Gabriel. -- /---\ | Any intelligent fool can make things bigger, more complex,| | or more violent. It tak

ownership problem?

2005-11-20 Thread Gabriel Zachmann
Is it correct to say that the typical ownership problem, which frequently arises in C++, does not occur normally in Python? Best regards, Gabriel. -- /---\ | Any intelligent fool can make things bigger, more complex

Re: ownership problem?

2005-11-27 Thread Gabriel Zachmann
o delete an object, or to keep track thereof. The object could be something as simple as a list element. Best regards, Gabriel. -- /---\ | Any intelligent fool can make things bigger, more complex,| | or more violent

  1   2   3   4   5   6   7   8   9   10   >