[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering

2013-06-30 Thread Gabriel Genellina
Changes by Gabriel Genellina ggenell...@gmail.com: -- nosy: +ggenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18244 ___ ___ Python-bugs

[issue18318] Idle: stop depending on console output

2013-06-30 Thread Gabriel Genellina
Changes by Gabriel Genellina ggenell...@gmail.com: -- nosy: +ggenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18318 ___ ___ Python-bugs

[issue13582] IDLE and pythonw.exe stderr problem

2013-06-30 Thread Gabriel Genellina
Changes by Gabriel Genellina ggenell...@gmail.com: -- nosy: +ggenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13582 ___ ___ Python-bugs

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

2011-11-01 Thread Gabriel Genellina
place to ask is python-list@python.org Please include 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

Re: Fast recursive generators?

2011-10-28 Thread Gabriel Genellina
(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
(Testingencode(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: database connection

2011-10-07 Thread Gabriel Genellina
to the database file - *any* OS 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
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 selahattin...@msn.com 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
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
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
is holding the file 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: BaseHTTPServer ThreadMixIn not working

2011-10-05 Thread Gabriel Genellina
. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

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

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

Re: Change import order with *.pth files

2011-10-03 Thread Gabriel Genellina
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: syntactic sugar for def?

2011-09-28 Thread Gabriel Genellina
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
only the .py changes) -- 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
' 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

PyCon Argentina 2011

2011-09-03 Thread Gabriel Genellina
( Google ) La entrada es libre y gratuita, pero se requiere registración previa. El cupo es limitado, falta menos de un mes, ¡a apurarse! Más información: http://ar.pycon.org/2011 -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python

Re: Handling 2.7 and 3.0 Versions of Dict

2011-09-02 Thread Gabriel Genellina
getDictValues, 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
) \ PyType_FastSubclass((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
://docs.python.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 jehugalea...@gmail.com escribió: On Sep 2, 12:36 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 31 Aug 2011 22:28:09 -0300, Travis Parks jehugalea...@gmail.com escribi : On Aug 31, 7:37 pm, Gregory Ewing greg.ew

Re: Calling Script from Command line not working

2011-09-01 Thread Gabriel Genellina
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 rvinc...@gmail.com 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

Re: from module import * using __import__?

2011-07-04 Thread Gabriel Genellina
; 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
/gmane.comp.python.general -- 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 invalid@invalid.invalid escribió: On 2011-06-24, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Thu, 23 Jun 2011 13:11:32 -0300, Cathy James nambo...@gmail.com escribi?: I looked through this forum's archives, but I can't find a way

Re: Python 2.7.2 for Windows reports version as 2.7.0?

2011-06-22 Thread Gabriel Genellina
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: help on QUICKFIX

2011-06-10 Thread Gabriel Genellina
://www.quickfixengine.org/ I see a forum and 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
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
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: Problems Compiling Python 2.6.7 for Win7

2011-06-08 Thread Gabriel Genellina
most 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: Print Window on IDLE

2011-06-07 Thread Gabriel Genellina
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
://bugs.python.org/issue12276 -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Function call arguments in stack trace?

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

[issue12274] Print window menu on IDLE aborts whole application

2011-06-07 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: On Windows, IDLE closes all open windows and exits completely, without any error message, when selecting the Print window menu command. Starting IDLE from inside a console, one can see the error message: Exception in Tkinter

[issue12274] Print window menu on IDLE aborts whole application

2011-06-07 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Note: There is a much bigger problem here: IDLE should not abort abruptly in such cases, without any error indication. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue12276] 3.x ignores sys.tracebacklimit=0

2011-06-07 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: Python 3.x doesn't honor sys.tracebacklimit=0 According to http://docs.python.org/py3k/library/sys.html#sys.tracebacklimit when set to 0, it should not print any stack trace, but it does. Python 3.2 (r32:88445, Feb 20 2011, 21:29

[issue12276] 3.x ignores sys.tracebacklimit=0

2011-06-07 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Originally reported by Thorsten Kampe in comp.lang.python 2011-5-27 http://permalink.gmane.org/gmane.comp.python.general/691496 -- ___ Python tracker rep...@bugs.python.org http

[issue12276] 3.x ignores sys.tracebacklimit=0

2011-06-07 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Is this the intended behavior then? I don't get the rationale for that change. There is no way to completely supress traceback information now; for sys.tracebacklimit to be of any significance, it must be = 1; 0 and negative values

Re: except KeyError, everywhere

2011-06-06 Thread Gabriel Genellina
an implementation 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: Alternatives to PythonPath

2011-05-31 Thread Gabriel Genellina
-packages directory (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
(*args): ... return math.sqrt(sum(x*x for x in args)) ... py def f2(*args): ... return math.sqrt(math.fsum(x*x for x in args)) ... py pi=math.pi py args=[pi]*16 py abs(f1(*args)/4 - pi) 4.4408920985006262e-16 py abs(f2(*args)/4 - pi) 0.0 -- Gabriel Genellina -- http://mail.python.org/mailman

Re: Hotshoting recursive function

2011-05-25 Thread Gabriel Genellina
that it does 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
the author: www.noah.org -- 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
, 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: Datetime.timedelta

2011-05-17 Thread Gabriel Genellina
(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
: 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
. The pickle format is 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
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 ndbeck...@gmail.com escribió: Gabriel Genellina wrote: En Tue, 17 May 2011 08:41:41 -0300, Neal Becker ndbeck...@gmail.com escribió: What does it mean when cPickle.load says: RuntimeError: invalid signature Is binary format not portable

Re: cPickle - invalid signature

2011-05-17 Thread Gabriel Genellina
En Tue, 17 May 2011 15:26:53 -0300, Neal Becker ndbeck...@gmail.com escribió: Gabriel Genellina wrote: En Tue, 17 May 2011 08:41:41 -0300, Neal Becker ndbeck...@gmail.com escribió: What does it mean when cPickle.load says: RuntimeError: invalid signature Is binary format not portable

Re: Import on case insensitive filesystem

2011-05-16 Thread Gabriel Genellina
http://www.python.org/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: Peculiar Behaviour of __builtins__

2011-05-12 Thread Gabriel Genellina
/__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 gagsl-...@yahoo.com.ar escribió: En Thu, 12 May 2011 20:29:57 -0300, Aman Nijhawan amannijha...@gmail.com escribió: I was trying to call the builtin function min by using getattr(__builtins__,'min') This works at the interpretter

Re: NewBie Doubt in Python Thread Programming

2011-05-11 Thread Gabriel Genellina
. 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
específico de Blender, 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

Re: Testing tools classification

2011-05-09 Thread Gabriel Genellina
it yourself. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: argparse parser stores lists instead of strings

2011-04-28 Thread Gabriel Genellina
] 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

Re: Access violation reading 0x00000010

2011-04-28 Thread Gabriel Genellina
cdecl SIM_INIT(void); -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: How to upload a file

2011-04-28 Thread Gabriel Genellina
(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: PYTHONPATH

2011-04-15 Thread Gabriel Genellina
directories 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

Re: puzzle about file Object.readlines()

2011-03-22 Thread Gabriel Genellina
, 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
://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: favicon.ico problem

2010-08-11 Thread Gabriel Genellina
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
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
==x is False (like NANs). -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Byte Offsets of Tokens, Ngrams and Sentences?

2010-08-06 Thread Gabriel Genellina
offsets. Input: This is 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

Re: How to read large amounts of output via popen

2010-08-06 Thread Gabriel Genellina
/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: abstract metaclass

2010-08-06 Thread Gabriel Genellina
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: Urrlib2 IncompleteRead error

2010-08-04 Thread Gabriel Genellina
the expected size. -- 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-23 Thread Gabriel Genellina
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

Re: adding new function

2010-06-23 Thread Gabriel Genellina
written in python 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: encodings.idna.ToASCII( unicodeStr ) != unicodeStr.encode( 'idna' )

2010-06-23 Thread Gabriel Genellina
presume) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: question about multiprocessing

2010-06-22 Thread Gabriel Genellina
). -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

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

2010-06-22 Thread Gabriel Genellina
, 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: isinstance question

2010-06-22 Thread Gabriel Genellina
classic class have the same type (InstanceType). bar is a new-style class, b is an instance of bar, its type is bar, its class is bar. class and type are equivalent for new style classes; things are a lot more regular and predictable. In Python 3.x classic classes are gone. -- Gabriel Genellina

Re: Strange factory pattern

2010-06-22 Thread Gabriel Genellina
*** DO NOT SUBCLASS THIS CLASS *** message. The message never made into the documentation. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: variable variables

2010-06-18 Thread Gabriel Genellina
#getattr name = spam getattr(some_object, name) == some_object.spam == getattr(some_object, spam) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Overriding __setattr__ of a module - possible?

2010-06-17 Thread Gabriel Genellina
/__setitem__ methods (an optimization, surely). I'm afraid it will be hard to intercept global variable usage in these circumstances. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: basic doubt

2010-06-17 Thread Gabriel Genellina
is a plain function, not a method, so it doesn't take a self parameter. Also, you are probably using it in some place where the callback doesn't receive any additional arguments (like a Button command). Try with def f(): ... If it doesn't work, show us the part where h is used. -- Gabriel

Re: Overriding __setattr__ of a module - possible?

2010-06-17 Thread Gabriel Genellina
En Thu, 17 Jun 2010 04:52:48 -0300, Alf P. Steinbach al...@start.no escribió: * Gabriel Genellina, on 17.06.2010 09:25: En Wed, 16 Jun 2010 19:56:39 -0300, Ian Kelly ian.g.ke...@gmail.com escribió: On Wed, Jun 16, 2010 at 3:38 PM, John Nagle na...@animats.com wrote: That just leaves

Re: Overriding __setattr__ of a module - possible?

2010-06-17 Thread Gabriel Genellina
En Thu, 17 Jun 2010 07:12:23 -0300, Fuzzyman fuzzy...@gmail.com escribió: On Jun 17, 10:29 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Thu, 17 Jun 2010 04:52:48 -0300, Alf P. Steinbach al...@start.no escribió: But who would have thunk that Python *isn't dynamic enough*? :-) Yep

Re: Overriding __setattr__ of a module - possible?

2010-06-17 Thread Gabriel Genellina
interesting...! -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Capture the request/response log for local web server through python.

2010-06-15 Thread Gabriel Genellina
. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: File descriptor to file object

2010-06-15 Thread Gabriel Genellina
in module nt: fdopen(...) fdopen(fd [, mode='r' [, bufsize]]) - file_object Return an open file object connected to a file descriptor. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: First program

2010-06-15 Thread Gabriel Genellina
). But to avoid problems, it's better to use the right tools for the OS you're working with (that is, don't use notepad to edit Linux files...) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: sir

2010-06-11 Thread Gabriel Genellina
not supposed to actually include them. They indicate an optional section, e.g., given this description: FTP.connect(host[, port[, timeout]]) you may invoke the method as: connect(host) connect(host, port) connect(host, port, timeout) -- Gabriel Genellina -- http://mail.python.org/mailman

Re: changing format of time duration.

2010-06-05 Thread Gabriel Genellina
) if result[1] == ':': result = '0' + result return result delta = now2-now1 print nice_timedelta_str(delta) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: General questions - where how

2010-06-05 Thread Gabriel Genellina
://groups.google.com/group/comp.lang.python/ -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Missing DLL in win98

2010-06-05 Thread Gabriel Genellina
your post. All I can deduce from it is that you assumed you would have a better chance upgrading your OS, not that you *knew* your current OS was officially unsupported. Christian Heimes gave you the right answer, even if it was not the answer you expected. -- Gabriel Genellina -- http

Re: reading help() - newbie question

2010-06-05 Thread Gabriel Genellina
().count() .extend().index() .insert().pop() .remove().reverse() .sort() For us mere mortals, it's a lot more readable. see is available at http://github.com/inky/see -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Py_single_input and the side-effects...

2010-06-05 Thread Gabriel Genellina
://docs.python.org/tutorial/introduction.html#using-python-as-a-calculator -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: changing format of time duration.

2010-06-04 Thread Gabriel Genellina
-- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: open(False) in python3

2010-05-11 Thread Gabriel Genellina
this up to stupid coder syndrome or file a bug report? Uhm, perhaps the bug is, bool should not inherit from int in Python 3, but it's way too late to change that. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3119 ABC - And how I learned to love the Abstract Bomb

2010-05-11 Thread Gabriel Genellina
base. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: Fast Efficient way to transfer an object to another list

2010-05-05 Thread Gabriel Genellina
] # I would not return anything -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >