Fw: Python installation problem

2020-04-01 Thread HERNANDEZ AGUIRRE JOSE GABRIEL DE LA DOLOROSA
En Mar, 31 Marzo, 2020 en 18:48, yo escribió:   Para: python-list@python.org I  installed  the Python software , but I could not find the python.exe file with the Unscramble software What do you advise ? Regards -- https://mail.python.org/mailman/listinfo/python-list

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.

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-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

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

Send mouse clicks to minimized window

2017-08-28 Thread gabriel . lins97
Hello, guys I'm using python to automate some seriously boring stuff at work, but would like to improve current code. The way it is now, PyAutoGui moves mouse and clicks the Application. I am, therefore, hostage of my python "assistant", as I cannot use my computer while the .py is running. I

custom setup.py link argument order

2017-03-07 Thread Gabriel Ganne
eeded' argument need to be *before* the link against my two libraries. How can I choose the order of my link arguments that I pass to gcc using setup.py ? Best regards, -- Gabriel Ganne -- https://mail.python.org/mailman/listinfo/python-list

error sintax

2016-03-22 Thread Gabriel Forcarelli dos Santos
meu python não esta reconhecendo os sinais de calculos em geral, peço a ajuda de vocês. -- https://mail.python.org/mailman/listinfo/python-list

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

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

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

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: 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: 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
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
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
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/

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

Suggestion: PEP for popping slices from lists

2013-08-08 Thread Neatu Ovidiu Gabriel
The list.pop(index) returns the element represented by the index and also reduces the list by removing that element. So it a short one liner for doing both things. But when it comes for popping a slice of the list there is nothing similar for doing in that simple way. If you want to remove a sl

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

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

[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

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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: [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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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

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: 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

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: 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: 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: 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: 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: 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
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
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: favicon.ico problem

2010-08-11 Thread Gabriel Genellina
; comes from. Any insight into this weird behavior would be greatly appreciated. It't the browser attempting to get an icon for the page. See http://en.wikipedia.org/wiki/Favicon -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: easy question on parsing python: "is not None"

2010-08-09 Thread Gabriel Genellina
s using the is operator only if you can guarantee that both operands are alive at the same time. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: easy question on parsing python: "is not None"

2010-08-07 Thread Gabriel Genellina
is False (like NANs). -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: abstract metaclass

2010-08-06 Thread Gabriel Genellina
ery type is just an object, isn't it? This may be an oversight in ABCMeta implementation - please file a bug report at http://bugs.python.org/ -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: How to read large amounts of output via popen

2010-08-06 Thread Gabriel Genellina
myfile = open('/home/john/myoutputfile','w') myerror = open('/home/john/myerrorfile','w') process=subprocess.Popen(['myscript', 'param1'], shell=False,stdout=myfile,stderr=myerror) process.wait() (untested) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Byte Offsets of Tokens, Ngrams and Sentences?

2010-08-06 Thread Gabriel Genellina
a string. Output: This 0 is 5 a 8 string. 10 Like this? py> import re py> s = "This is a string." py> for g in re.finditer("\S+", s): ... print g.group(), g.start() ... This 0 is 5 a 8 string. 10 -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Urrlib2 IncompleteRead error

2010-08-04 Thread Gabriel Genellina
a server error; a chunked transfer encoding finished before reaching the expected size. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: encodings.idna.ToASCII( unicodeStr ) != unicodeStr.encode( 'idna' )

2010-06-23 Thread Gabriel Genellina
7;) -- and encode/decode('idna') takes the whole name, splits, and processes each label (following RFC 3490, I presume) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: adding new function

2010-06-23 Thread Gabriel Genellina
ython import mymod mymod.fname = somefunc #or setattr(mymod, namestring, funcobject) I presume you use the C-API equivalent of setattr. That one, or PyModule_AddObject (just for nicer error messages really). -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Unicode file names with ftplib and encodings.idna as a workaround?

2010-06-22 Thread Gabriel Genellina
be for our PHP and shell scripters. (Just checked: There's a PEAR module for PHP4/5; oddly enough nothing pops up for .NET IDNA libraries) The server software must be able to convert from file system encoding to utf-8 and viceversa; check its configuration. -- Gabriel Genellina -- http://ma

Re: Strange factory pattern

2010-06-22 Thread Gabriel Genellina
ation only." And those classes have a big "*** DO NOT SUBCLASS THIS CLASS ***" message. The message never made into the documentation. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: "isinstance" question

2010-06-22 Thread Gabriel Genellina
ject; in the second one, you do. foo is a "classic" class (or "old-style" class); x is an instance of foo, its *type* is InstanceType, its *class* is foo. All instances of any other classic class have the same type (InstanceType). bar is a "new-style" clas

Re: Serialization, save type information in file and restore them

2010-06-22 Thread Gabriel Genellina
arated). (You may use any format you want, but why reinvent it, and you may even find an existing RDB parser/writer in Python) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: question about multiprocessing

2010-06-22 Thread Gabriel Genellina
pickle a lambda expression - functions must have a name and be available at the outermost module level. (See "Programming guidelines" in the multiprocessing documentation, and the pickle module) But you can't share a Queue object - use the multiprocessing one (see "E

  1   2   3   4   5   6   7   8   9   10   >