Changes by Gabriel Genellina ggenell...@gmail.com:
--
nosy: +ggenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18244
___
___
Python-bugs
Changes by Gabriel Genellina ggenell...@gmail.com:
--
nosy: +ggenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18318
___
___
Python-bugs
Changes by Gabriel Genellina ggenell...@gmail.com:
--
nosy: +ggenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13582
___
___
Python-bugs
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
(itertools.islice(my_generator(), 10))
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
(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
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
in its 'format'
parameter, and is not stored anywhere.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
, or perhaps locals();
# modify accordingly
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
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
only the .py changes)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
'
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
( 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
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
) \
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
://docs.python.org/install/index.html#modifying-python-s-search-path
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
; 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
/gmane.comp.python.general
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
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
://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
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
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
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
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
://bugs.python.org/issue12276
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
traceback ...]
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
-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
(*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
that it does not raise ProfileError anymore.
Interpreting profile data is up to you...
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
the author: www.noah.org
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
, 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
(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
:
http://mail.python.org/mailman/listinfo/python-win32
Good luck!
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
.
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
refresh my memory?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
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
http://www.python.org/dev/peps/pep-0235/ for details.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
is buggy or does not implement the required functionality.
Mine is from Philips.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
/__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
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
. 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
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
it yourself.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
]
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
cdecl SIM_INIT(void);
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
(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
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
, 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
://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
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
guarantee that both operands are alive at the same time.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
==x is False (like NANs).
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
/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
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
the expected size.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
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
presume)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
).
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
, 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
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
*** DO NOT SUBCLASS THIS CLASS *** message.
The message never made into the documentation.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
#getattr
name = spam
getattr(some_object, name) == some_object.spam == getattr(some_object,
spam)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
/__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
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
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
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
interesting...!
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
).
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
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
)
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
://groups.google.com/group/comp.lang.python/
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
().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
://docs.python.org/tutorial/introduction.html#using-python-as-a-calculator
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
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
base.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
]
# I would not return anything
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 5074 matches
Mail list logo