Well, from the docstring of strip:
--
S.strip([chars]) -> string or unicode
Return a copy of the string S with leading and trailing
whitespace removed.
If chars is given and not None, remove characters in chars instead.
If chars is unicode, S will be converted to unicode before stripping
and i apologise for eventual typos.
Eduardo Martins
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 14, 12:32 am, Steven D'Aprano
wrote:
> On Tue, 14 Apr 2009 00:15:18 -0700, Eduardo wrote:
> > Hello all,
>
> > I googled a lot but couldn't find anything that i could consider a
> > possible solution (though i am fairly new to the language and i thin
here a way to make it work?
Thanks a lot,
-Eduardo
--
http://mail.python.org/mailman/listinfo/python-list
What do i need to add to the path? I have already tried the same with
the PYTHONPATH variable.
Thanks in advance,
-Eduardo
[otto:eduardo/ 501]$ python
Python 2.3.5 (#2, Feb 9 2005, 00:38:15)
[GCC 3.3.5 (Debian 1:3.3.5-8)] on linux2
Type "help", "copyright", "credi
How can I load a module (written in C as a shared
library (.so)) through "PyRun_SimpleString"?
I've tried "from import *", but a got a
message: ImportError: No module named
Thanks in advance.
Erocha
Yahoo! Mail - Com 250MB de espaço. Abra sua conta! http://
x27;t work, i.e. I can't load a module (made by
swig) in a embedding code.
Erocha
--- "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Eduardo Rodrigues wrote:
>
> > How can I load a module (written in C as a shared
> > library (.so)) through "PyRun_SimpleSt
ne switches, which should have higher
priority.
Thank you in advance,
--
Eduardo Alvarez
--
http://mail.python.org/mailman/listinfo/python-list
Hello, I have a py script that reads for all "m2ts" video files and convert
them to "mpeg" using ffmpeg with command line.
What I want to do is:
I need my script to run 2 separated threads, and then when the first has
finished, starts the next onebut no more than 2 threads.
I know that
object being created.
Why does this happen?
yours,
--
Eduardo Alvarez
--
http://mail.python.org/mailman/listinfo/python-list
On 2011-11-28, Peter Otten <__pete...@web.de> wrote:
> Eduardo Alvarez wrote:
>
>> however, if I do the following:
>>
>> b = mailbox.Maildir("~/Maildir")
>> b.items()
>>
>> I get an empty list.
>>
>> I don't understa
Hy people, I'm new in python and comming from JAVA.
Something I really like in java is the easy way to add a library to the
project. Just put the jar file in the folder ( WEB-INF/lib ) and
doesn't need to restart the server ( tomcat ).
Can I do some like using python - I'm using apache mod_python
Hi,
I am new to python and tried to pass parameters
between one function to another. I tried two
approaches in doing this but failed.
The first is, I tried to assign a variable in foo1()
inside an HTML tag so that I can
retreive it in foo2() using (get_form_var()). But
failed using my limited p
Hi,
I have a problem making conditional testing (if) of a
form variable "ans01"(refer generated error). When the
form variable is tested (if) by a called function
(foo) the value of "ans01" is not properly
represented.
def foo(request):
ans01 = request.get_form_var("ans01")
if ans01 =
Hello, I've been playing around with mod_python these days (using
Publisher and PSP), and it has been working smoothly under Windows XP
(using Apache 2.2). But when I installed PSE and went to use it with
mod_python, it didn't work. The error I get whenever I try to load a
PSE page is:
Traceback (
, 'start')
start_body = generate_html_tag_function('body', 'start')
end_html = generate_html_tag_function('html', 'end')
end_body = generate_html_tag_function('body', 'end')
That seems to do what you want.
Eduardo
--
http://mail.python.org/mailman/listinfo/python-list
e the same error
happened when I installed 3.0.6 and tried to run a test script.
Anyway, I think that's it for now.
Eduardo
--
http://mail.python.org/mailman/listinfo/python-list
hi all... I'm trying to get a event when a pipe of a process is no longer
receiving data, in this case a EOF...
the process start with no problems... but... the gobject_io_add_watch does
not trigger the test method when the file in mplayer has finish... any
ideas??
Thks :)
the codes is this (the r
Hi all...
I want to represent a point in 800 X 600 board in a 640 X 480 board..., for
example (13, 50) in 640X480 to 800X600
so.. will be like this...
Xscale = (13 * 800)/640
Xscale = 16.25
Yscale = (50 * 600)/480
Yscale = 62.5
what happend with the decimals??? I round up or down??? or there is
t;, line 477, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.6/multiprocessing/pool.py", line 225, in
_handle_tasks
put(task)
PicklingError: Can't pickle : attribute lookup
__builtin__.instancemethod failed
Thanks for your help.
-
ently named Python modules which the user will
> specify at run-time with a command-line option
>
> And help with this would be most appreciated
>
> Best regards,
>
> Lawson Hanson
> --
> Melbourne, Victoria, Australia
> --
> http://mail.python.org/mailman/
t;, line 477, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.6/multiprocessing/pool.py", line 225, in
_handle_tasks
put(task)
PicklingError: Can't pickle : attribute lookup
__builtin__.instancemethod failed
Thanks for your help.
-
On Friday 16 January 2009 16:13:49 Steven D'Aprano wrote:
> On Fri, 16 Jan 2009 21:34:01 -0800, Eduardo Lenz wrote:
> > modu = "os"
> > exec("from " + modu + " import *")
>
> "from module import *" is generally frowned upon, alth
On Saturday 17 January 2009 00:43:35 Aaron Brady wrote:
> On Jan 16, 11:39 pm, Eduardo Lenz wrote:
> > Hi,
> >
> > I was using the former processing package with python 2.5 with no
> > problems. After switching to python 2.6.1 I am having some problems with
> > th
http://mail.python.org/mailman/listinfo/python-list
How about Eric ?
--
Eduardo Lenz Cardoso
Dr. Eng.
Associate Professor
State University of Santa Catarina
Department of Mechanical Engineering
89223-100 - Joinville-SC - Brasil
Tel: +55 47 4009-7971 - Fax: +55 47 4009-7940
doit comes from the idea of bringing the power of build-tools to
execute any kind of task. It will keep track of dependencies between
“tasks” and execute them only when necessary. It was designed to be
easy to use and “get out of your way”.
check the new website http://python-doit.sourceforge.net/
know, I think netlib.org will be back soon. You need LAPACK
> for scipy, it is not possible to build it without it. I believe suse
> has a package for it, though.
>
> David
> --
> http://mail.python.org/mailman/listinfo/python-list
try ATLAS instead.
--
Eduardo Lenz Cardoso
Dr.
This make DoIt
specially suitable for running test suites.
DoIt can be used to perform any task or build anything, though it doesn't
support automatic dependency discovery for any language.
Cheers,
Eduardo
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Apr 20, 2008 at 12:58 AM, globalrev <[EMAIL PROTECTED]> wrote:
> do i need to import something to use random?
> --
you need to import random :)
Python 2.5.1 (r251:54863, Mar 7 2008, 03:39:23)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright",
On Sun, Apr 20, 2008 at 2:04 AM, John Machin <[EMAIL PROTECTED]> wrote:
> You may like to consider the possibility of confusion caused by the
> similarity of some characters in some fonts (DoIt, Do1t, Dolt) ...
> google("dictionary dolt") :-)
> --
> http://mail.python.org/mailman/listinfo/pyth
action' and another function
to create the task. but not implement yet also.
>
> I've looked around a bit for python "make" replacement, but there does
> not seem to be a simple & straightforward solution around (read -
> straight-python syntax, one .py file installation, friendly license).
apart from one .py file installation (easy_install is not enough?)
thats what i am trying to do.
thanks for the feedback.
cheers,
Eduardo
--
http://mail.python.org/mailman/listinfo/python-list
I guess I should post a link to the project in this thread...
http://python-doit.sourceforge.net/
--
http://mail.python.org/mailman/listinfo/python-list
em with "smart" re-build and dependency
support.
"doit" target is not on creating releases for python projects only. it
can do it also, but it can do much more.
You can read about my motivation to start another build tool project
on http://schettino72.wordpress.com/2008/04/14/doit-a-build-tool-tale/
> But it's still *slightly* too big:
>
man, it is hard to make you happy :)
the doit egg file containg the whole packge is 27782 bytes on my
system. but you also need the command line script 154 bytes.
cheers,
Eduardo
--
http://mail.python.org/mailman/listinfo/python-list
I am a python newbie and I have a problem with writing
each record read to a file. The expected output is 10
rows of records, but the actual output of the code
below is only one row with a very long record (10
records are lump into one record). Thank you in
advance for your help. Here is the code:
python.org/pypi/doit
license: MIT
contact: https://launchpad.net/~schettino72
Regards,
Eduardo
--
http://mail.python.org/mailman/listinfo/python-list
lobal scope, using the "global"-statement.
>
> def foo():
> global x
> print x
> x = 10
>
>
> Beware though that then of course *assigning* to x is on global level.
> This shouldn't be of any difference in your case though, because of th
On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine wrote:
> Hi
>
> I'm hoping to avoid reinventing a wheel (or other rolling device). I've got
> a number of dependencies and, if possible, I want to order them so that each
> item has its dependencies met before it is processed.
>
> I think I could get
On Sun, Apr 25, 2010 at 11:44 PM, Jonathan Fine wrote:
> Eduardo Schettino wrote:
>>
>> On Sun, Apr 25, 2010 at 4:53 AM, Jonathan Fine wrote:
>>>
>>> Hi
>>>
>>> I'm hoping to avoid reinventing a wheel (or other rolling device). I've
pypi: http://pypi.python.org/pypi/doit
homepage: http://python-doit.sourceforge.net/
`doit` comes from the idea of bringing the power of build-tools to
execute any kind of task. It will keep track of dependencies between
"tasks" and execute them only when necessary. It was designed to be
easy to
endall
socket.error: [Errno 32] Broken pipe
As this is a broken pipe, I reconnect to the server, the same way as
before. When I *then* retrieving the newsgroup's info, I get no errors.
I'm pretty baffled by this. It might be an issue with the server itself,
but still, any input would be v
e them
> for instance, or alter some other properties of nodes and/or links
> across them).
>
> I am just starting out, hence I'd rather get some advice and experiment
> a bit for my self as I go along.
>
> Thank you.
you should take a look at
http://pyode.sourceforge.
t should run on any Python platform without any
dependencies on external libraries. It can also work entirely on StringIO
objects rather than file streams, allowing for PDF manipulation in memory. It
is therefore a useful tool for websites that manage or manipulate PDFs.
--
Eduardo Lenz Car
Em Ter 30 Jun 2009, às 04:19:13, Grant Edwards escreveu:
> On 2009-06-30, Eduardo Lenz wrote:
> > Em Seg 29 Jun 2009, às 20:39:22, Lawrence D'Oliveiro escreveu:
> >> In message >>
> >> d7fe56d05...@g19g2000yql.googlegroups.com>, Jun wrote:
: error: ‘PRINT_NEWLINE_TO’ undeclared here (not in a
function)
c/mergepoints.c:250: error: ‘BUILD_CLASS’ undeclared here (not in a function)
c/mergepoints.c:250: error: ‘IMPORT_NAME’ undeclared here (not in a function)
c/mergepoints.c:250: error: ‘IMPORT_FROM’ undeclared here (not in a function)
c
I'm a python noob and wrote the following code for a nautilus extension:
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import urllib
import gtk
import pygtk
import nautilus
import gconf
import gtk.glade
class Slide (nautilus.MenuProvider):
f = None
def __init__(self):
self
This is an old thread in this subject that I bookmarked:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/984262217c1b3727/8793a0b7722bb32f
--
http://mail.python.org/mailman/listinfo/python-list
This is more of a shell or env question, but I believe others here have
gone through this.
I want to run an optimized python using the portable /usr/bin/env, but
the obvious ways aren't working.
#!/usr/bin/env python -O
when I run ./test.py I get:
/usr/bin/env: python -O: No such file or directo
703 861 4237 +1 800 494 3119
>
>
>
> -- Forwarded message --
> From: "Erik Bethke" <[EMAIL PROTECTED]>
> To: python-list@python.org
> Date: 20 Jan 2005 06:20:46 -0800
> Subject: Re: ElementTree cannot parse UTF-8 Unicode?
> There is something wrong with the physical file... I d/l a trial
> version of XML Spy home edition and built an equivalent of the korean
> test file, and tried it and it got past the element tree error and now
> I am stuck with the wxEditCtrl error.
>
> To build the xml file in the first place I had code that looked like
> this:
>
> d=wxFileDialog( self, message="Choose a file",
> defaultDir=os.getcwd(), defaultFile="", wildcard="*.xml", style=wx.SAVE
> | wxOVERWRITE_PROMPT | wx.CHANGE_DIR)
> if d.ShowModal() == wx.ID_OK:
> # This returns a Python list of files that were selected.
> paths = d.GetPaths()
> layout = '\n'
> L1Word = self.t1.GetValue()
> L2Word = 'undefined'
>
> layout += '\n'
> layout += '\n'
> layout += ''
> open( paths[0], 'w' ).write(layout)
> d.Destroy()
>
> So apprantly there is something wrong with physically constructing the
> file in this manner?
>
> Thank you,
> -Erik
>
>
>
> -- Forwarded message --
> From: "Fredrik Lundh" <[EMAIL PROTECTED]>
> To: python-list@python.org
> Date: Thu, 20 Jan 2005 15:40:35 +0100
> Subject: Re: ElementTree cannot parse UTF-8 Unicode?
> Erik Bethke wrote:
>
> > layout += '\n'
> > layout += '\n'
>
> what does "print repr(L1Word)" print (that is, what does wxPython return?).
> it should be a Unicode string, but that would give you an error when you write
> it out:
>
> >>> f = open("file.txt", "w")
> >>> f.write(u'\uc5b4\ub155\ud558\uc138\uc694!')
> Traceback (most recent call last):
> File "", line 1, in ?
> UnicodeEncodeError: 'ascii' codec can't encode characters
> in position 0-4: ordinal not in range(128)
>
> have you hacked the default encoding in site/sitecustomize?
>
> what happens if you replace the L1Word term with L1Word.encode("utf-8")
>
> can you post the repr() (either of what's in your file or of the thing,
> whatever
> it is, that wxPython returns...)
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
--
Atte,
Eduardo HenrÃquez A.
9-6975236
--
http://mail.python.org/mailman/listinfo/python-list
l
> >
>
>
>
> Umm, is it just me or did we just discuss the legal issues of that??
>
>
>
> -- Forwarded message --
> From: Mark McEahern <[EMAIL PROTECTED]>
> To: python-list@python.org
> Date: Thu, 27 Jan 2005 07:18:14 -0600
> Subje
When I'm using pyunit and want to stop in a point during the test
(skipping all the framework initialization), I just start the debugger:
import pdb
pdb.set_trace()
You'll get the debugger prompt.
--
http://mail.python.org/mailman/listinfo/python-list
El 13/01/12 11:33, Eduardo Suarez-Santana escribió:
I wonder whether this is normal behaviour.
Even simpler:
$ python
Python 2.7.2 (default, Oct 31 2011, 11:54:55)
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more inform
I wonder whether this is normal behaviour.
I would expect equal sign to copy values from right to left. However, it
seems there is a copy-on-write mechanism that is not working.
Anyone can explain and provide a working example?
Thanks,
-Eduardo
$ python
Python 2.7.2 (default, Oct 31 2011
> For example, if I have x=[ [1,2], [3,4] ]
>
> What I want is a new list of list that has four sub-lists:
>
> [[1,2], [f(1), f(2)], [3,4], [f(3), f(4)]]
[[a, [f(b) for b in a]] for a in x]
--
http://mail.python.org/mailman/listinfo/python-list
On 9/2/07, llothar <[EMAIL PROTECTED]> wrote:
> I'm afraid that the GIL is killing the usefullness of python for some
> types of applications now where 4,8 oder 64 threads on a chip are here
> or comming soon.
>
> What is the status about that for the future of python?
>
> I know that at the moment
> No. http://www.artima.com/weblogs/viewpost.jsp?thread=211430
Ops, I meant:
http://www.artima.com/forums/threaded.jsp?forum=106&thread=211200
--
http://www.advogato.org/person/eopadoan/
Bookmarks: http://del.icio.us/edcrypt
--
http://mail.python.org/mailman/listinfo/python-list
On 9/13/07, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote:
> because I'm trained to interpret the underscore as a synonym for one
> space. It's not particularly beautiful, but that is probably a matter of
> habituation. And that exact word is probably the reason why I'd still
> use self or s (exp
On 9/14/07, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> I thought that overflow errors would be a thing of the past now that
> Python automatically converts ints to longs as needed. Unfortunately,
> that is not the case.
>
> >>> class MyInt(int):
> ... pass
> ...
> >>> MyInt(sys.maxint)
> 2147
On 14 Sep 2007 18:08:00 -0700, Paul Rubin
<"http://phr.cx"@nospam.invalid> wrote:
> "Eduardo O. Padoan" <[EMAIL PROTECTED]> writes:
> > Not totally unrelated, but in Py3k, as it seems, overflows are really
> > things of the past:
> >
&g
On 9/15/07, Carl Banks <[EMAIL PROTECTED]> wrote:
> On Fri, 14 Sep 2007 22:59:13 -0300, Eduardo O. Padoan wrote:
>
> > On 14 Sep 2007 18:08:00 -0700, Paul Rubin
> > <"http://phr.cx"@nospam.invalid> wrote:
> >> "Eduardo O. Padoan" <[
> > It's nice people have invented so many ways to spell the
> > builting "map" ;)
> >
> ",".join(map(str,[1,2,3]))
> > '1,2,3'
>
> IIRC, map's status as a builtin is going away.
Actually, py3k built-in map == itertools.imap
>>> map(str, [])
--
http://www.advogato.org/person/eopadoan/
Boo
On 9/15/07, J. Cliff Dyer <[EMAIL PROTECTED]> wrote:
> And I'd hate to have to remember all of the rules for what can go
> together and what can't, especially when it comes time to debug. No.
> I don't think it should be forced, but maybe put it in PEP8 or PEP3008.
It is: see "Whitespace in Expre
On 9/27/07, TheFlyingDutchman <[EMAIL PROTECTED]> wrote:
> It seems that Python 3 is more significant for what it removes than
> what it adds.
>
> What are the additions that people find the most compelling?
- dict.items(), .values() and .keys() returns "dict views", and the
.iter*() removal
h
> What's the equivalent of unittest's "assertRaises"?
> In certain situations it is also useful to test wether an exception
> (along its type) is raised or not.
> Does py.test support such thing?
import py.test
py.test.raises(NameError, "blablabla")
--
http://www.advogato.org/person/eopadoan/
B
On 10/11/07, Luis Zarrabeitia <[EMAIL PROTECTED]> wrote:
>
> Hi there.
>
> I just tried this test:
>
>
> def f(**kwds):
> print kwds
>
> import UserDict
> d = UserDict.UserDict(hello="world")
> f(**d)
>
>
> And it fails with a TypeError exception ("f() argument after ** must be a
> di
On 10/18/07, danfolkes <[EMAIL PROTECTED]> wrote:
> I thought I would post the source to a program that I made that will
> download the http://ubuntu.media.mit.edu/ubuntu-releases/gutsy/
> as soon as its posted.
>
> It checks the site every 10 min time.sleep(600)
>
> This is mostly untested so I wo
On 10/29/07, brad <[EMAIL PROTECTED]> wrote:
> Will len(a_string) become a_string.len()? I was just reading
>
> http://docs.python.org/dev/3.0/whatsnew/3.0.html
>
> One of the criticisms of Python compared to other OO languages is that
> it isn't OO enough or as OO as others or that it is inconsist
On Nov 30, 2007 11:36 AM, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> "Eduardo O. Padoan" <[EMAIL PROTECTED]> writes:
>
> > No, writing this way will confound the 2to3 tool.
>
> Why? print("foo") is a perfectly valid Python 2 statement. Maybe
&
On Nov 30, 2007 11:18 AM, Peter Decker <[EMAIL PROTECTED]> wrote:
> On Nov 30, 2007 1:19 AM, Tim Roberts <[EMAIL PROTECTED]> wrote:
>
> > You also have a couple of instances of:
> > print("Error Squeezing %s...")
> >
> > The parentheses serve no purpose here, and are unidiomatic.
>
> I thought
See:
http://www.object-craft.com.au/pipermail/python-sybase/2006-May/000471.html
Dan wrote:
> I'm running SLES 9.3 on Tyan with 2 single core 64-bit Opteron & 8 GB of
> memory and SWAP.
>
> OCS-15_0
> sybperl-2.18
> python 2.3.5
>
>
>
> "Dan" <[EMAIL PROTECTED]> wrote in message
> news:[EMA
On Jan 18, 2008 3:09 PM, Zbigniew Braniecki
<[EMAIL PROTECTED]> wrote:
> I found a bug in my code today, and spent an hour trying to locate it
> and then minimize the testcase.
>
> Once I did it, I'm still confused about the behavior and I could not
> find any reference to this behavior in docs.
>
On Jan 23, 2008 9:55 AM, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> For that to work, you need to give your class an __eq__ method, and have
> it match by name:
>
> # put this in MyClass
> def __eq__(self, other):
> return self.name == self.other
Do you mean:
# put this in M
On Feb 1, 2008 5:19 AM, Arnaud Delobelle <[EMAIL PROTECTED]> wrote:
>
> On Feb 1, 5:08 am, Paddy <[EMAIL PROTECTED]> wrote:
> > On Feb 1, 1:26 am, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > To Everyone on the planet Earth,
> >
> > > Please accept my apologies for
> >
> > > Wh
On Jan 29, 2008 2:43 PM, John Nagle <[EMAIL PROTECTED]> wrote:
>Submitting Python 2.5 to ISO/ANSI might be a good idea.
>From GvR himself:
"""
- Does a specification (ISO, ECMA, ..) is planned for Python and when ?
No, never. I don't see the point.
"""
http://blogs.nuxeo.com/sections/blogs/ta
On Feb 4, 2008 1:36 AM, 7stud <[EMAIL PROTECTED]> wrote:
> print dir(type) #__mro__ attribute is in here
> print dir(object) #no __mro__ attribute
>
>
> class Mammals(object):
> pass
> class Dog(Mammals):
> pass
>
> print issubclass(Dog, type) #False
> print Dog.__mro__
>
> --outpu
On Feb 5, 2008 1:30 PM, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Ruby has a neat little convenience when writing loops where you don't
> > care about the loop index: you just do n.times do { ... some
> > code ... } where n is an integer repres
On Feb 19, 2008 3:15 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Does this have to be true? Beneath the more complex syntax are there
> a few core design principles/objects/relationships to help in grokking
> the whole thing? Got any related links?
Take a look at a simpler implementation,
teractive-python/
It is a mix of a shell and an editor, that lets you go back and
rewirte history, and execute it again. It is GTK+, and you can write
plugins to plot graphics or display html, for example.
--
Eduardo de Oliveira Padoan
http://djangopeople.net/edcrypt/
"Distrust those
On Thu, Jan 22, 2009 at 5:01 PM, wrote:
> Eduardo O. Padoan:
>> You are almost *describing* reinteract:
>
> - Thank you for the link and the software, I have not tried it yet,
> but from the screencast it looks quite nice.
> - I am glad that there are people that don&
f, but given how much I use decorators, I probably should.
--
Eduardo de Oliveira Padoan
http://djangopeople.net/edcrypt/
"Distrust those in whom the desire to punish is strong." -- Goethe,
Nietzsche, Dostoevsky
--
http://mail.python.org/mailman/listinfo/python-list
7;s to heart because they are
> born of honest frustration and practical concern. Hopefully developers for
> python 2.7 are listening and won't break backward compatibility just because
> the "Zen of Python" suggests it might be a good idea.
Even I, who am not, by really far, legendary on anything, could give
my 2¢ one time or another on python-dev or python-ideas. If you really
care and think you have a good argument, I'm sure you are welcome to
post there! But they cant hold the release until everyone in the world
have voiced his concerns, its just not pratical.
--
Eduardo de Oliveira Padoan
http://djangopeople.net/edcrypt/
"Distrust those in whom the desire to punish is strong." -- Goethe,
Nietzsche, Dostoevsky
--
http://mail.python.org/mailman/listinfo/python-list
nn auf bewusste Verlogenheit,
> verlästerung von Gott, Bibel und mir und bewusster Blasphemie."
> -- Prophet und Visionär Hans Joss aka HJP in de.sci.physik
> <[EMAIL PROTECTED]>
> --
> http://mail.python.org/mailman/listinfo/python-lis
element = iterable.next()
> except StopIteration:
> raise UnderdefinedBecauseNoElementsToCompareToTrue
> while element:
> try:
> element = iterable.next()
> except StopIteration:
> return True
> return False
>
>
> Tweaking the docu
l calculations.
http://docs.python.org/lib/typesmapping.html
> Thank You,
>
> David Blubaugh
--
Eduardo de Oliveira Padoan
http://www.advogato.org/person/eopadoan/
http://twitter.com/edcrypt
Bookmarks: http://del.icio.us/edcrypt
--
http://mail.python.org/mailman/listinfo/python-list
duces something else altogether (call a view
> of the dictionary) which would provoke the same problem, so yet another
> solution would have to be found then.
In Python 3.0, list(procs_dict.keys()) would have the same effect.
> Gary Herron
>
>>
>> I'm afraid this wi
ratio coming from you!
> And it's not the first I've seen - whatever pills you're taking, they're
> good for you...
This is why I shouldn't be so eager adding people to the killfile.
--
Eduardo de Oliveira Padoan
http://www.advogato.org/person/eopadoan/
http:/
class two: pass
> ...
>>>> two
>
>>>> one
>
>>>> type(one)
>
>>>> type(two)
>
>>>>
Both classes are new style.
--
Eduardo de Oliveira Padoan
http://www.advogato.org/person/eopadoan/
http://twitter.com/edcrypt
Bookmarks: http://del.icio.us/edcrypt
--
http://mail.python.org/mailman/listinfo/python-list
core developer. :-)
Maybe Guido himself:
"The Harry Potter Theory of Programming Language Design"
http://www.artima.com/weblogs/viewpost.jsp?thread=123234
> --
> Hans Nowak (zephyrfalcon at gmail dot com)
> http://4.flowsnake.org/
> --
> http://mail.python.org/mai
r"), they will be hated just
as you seem to hate Microsoft. I would hate Google if, after proving
so much good stuff as free software, they gonne bankrupt for providing
services without restrictions, completely for free.
http://en.wikipedia.org/wiki/Scarcity
--
Eduardo de Oliveira Padoan
http://www.advogato.org/person/eopadoan/
http://twitter.com/edcrypt
Bookmarks: http://del.icio.us/edcrypt
--
http://mail.python.org/mailman/listinfo/python-list
?
Regards,
Eduardo
--
http://mail.python.org/mailman/listinfo/python-list
ure would be much appreciated
>
> - Mark
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Ops, sorry, sent only to Mark.
Here is the asnwer again:
for i, j in zip(range(0, I_MAX, 5), range(0, J_MAX, 10)):
do_stuff(...)
--
Eduardo de Oliveira Padoan
http://www.petitiononline.com/veto2008/petition.html
http://djangopeople.net/edcrypt/
http://whoisi.com/p/514
http://pinax.hotcluboffrance.com/profiles/edcrypt/
--
http://mail.python.org/mailman/listinfo/python-list
asking first. The desired path is that, if somene wants to
port his software to Python 3.0, that he follow the migration plan.
Final users will install Python 3.0 as python3.0 anyway, with Python
2.x as default 'python' binary.
> Backward compatibility is important. C++ coul
C. The standards committee could eliminate these
> warts to make the language "cleaner", but it would break a lot of
> systems.
It would not "break" anything that not move from C to C++, this is my point.
People not willing to take the migration path (porting to 2.6, usi
on which is not easy in c++/java !?
Programming in a pure duck typing style
http://en.wikipedia.org/wiki/Duck_typing
> Tnx,
> Raxit
> www.mykavita.com
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Eduardo de Oliveira Padoan
http://www.advogato.org/per
ready lost much of its magic
> powers. What are the most powerful fetishes these days? A year ago I
> would have suspected "purely functional" but I'm not sure it has
> really caught on.
I think the current fetish is paralelism and erlang's share-nothing
concurrency m
Hello, I'm trying to use the machine library in python 3.10 version, but I
can't import it with the pip install machine, could you tell me a way to
solve it or a python version compatible with the library? Thank you a lot
for your answer.
--
https://mail.python.org/mailman/listinfo/python-list
ate two strings: "foo" + "bar" == "foobar"
- Converted the number from integer to string, you can't do: +
directly, you have to either int() + if you want to do
an integer addition, or: str() + , if you want string
concatenation.
You didn't use an operator, and «"string" variable "string"» is not
valid python.
--
Eduardo Alan Bustamante López
--
https://mail.python.org/mailman/listinfo/python-list
reloading (for example, the web
server that Django uses).
--
Eduardo Alan Bustamante López
--
https://mail.python.org/mailman/listinfo/python-list
.sort()
>>>
The method does not return a value, that's why the direct comparison
fails.
What you might want is to use the sorted() method on the list, like
this:
>>> sorted([2,1,3])
[1, 2, 3]
>>> sorted([2,1,3]) == [1,2,3]
True
--
Eduardo Alan Bustamante López
--
https://mail.python.org/mailman/listinfo/python-list
arks: http://del.icio.us/edcrypt
Blog: http://edcrypt.blogspot.com
Jabber: edcrypt at jabber dot org
ICQ: 161480283
GTalk: eduardo dot padoan at gmail dot com
MSN: eopadoan at altavix dot com
--
http://mail.python.org/mailman/listinfo/python-list
On 5/31/07, Bjoern Schliessmann
<[EMAIL PROTECTED]> wrote:
> Alexander Eisenhuth wrote:
>
> > Pylint is one of them (http://www.logilab.org/857)
>
> BTW: Why does pylint want all names with underscores? I tested it
> and it complains about malformed names in e.g. the following cases
> that are conf
1 - 100 of 122 matches
Mail list logo