On 6/15/10 9:40 PM, nanothermite911fbibustards wrote:
> you wont leave me this little newsgroup space to give
No, we won't.
Reported as abuse.
This forum is for discussion of Python. Python is apolitical,
areligious, asociological, and only philosophical when you speak the
High Holy Truth of the
On Jun 16, 7:25 am, John Nagle wrote:
> OK, working on this. I can make a module make itself into a
> fake class, but can't yet do it to other modules from outside.
>
> John Nagle
I think you can with something like
import module
sys.modules[module.
abhijeet thatte, 16.06.2010 03:05:
I am a novice Python user. I am using Python to parse some hardware
specifications and create xml files from them.
I generate dict of really huge sizes. (I am parsing some 10,000 register
definitions.)
Why do you need these intermediate dicts?
So, it looks
Dude, seriously- get the hell out. You're spewing crap, and I've been
polite, and if ever there existed a time or place for this (something I
seriously doubt) this isn't it.
Geremy Condra
--
http://mail.python.org/mailman/listinfo/python-list
On 6/15/10 10:25 PM, John Nagle wrote:
> On 6/15/2010 9:33 PM, Stephen Hansen wrote:
>> Replacing the module with a class in sys.modules is really the only way
>> to fake the behavior.
>
>OK, working on this. I can make a module make itself into a
> fake class, but can't yet do it to other
http://www.blacksandjews.com/MarcLeeRaphael.html
Rabbi Marc Lee Raphael on
Jews in the Slave Trade
Eight years BEFORE the publication of The Secret Relationship Between
Blacks and Jews, Volume 1, Rabbi Marc Lee Raphael published a stunning
statement on Jewish involvement in the slave trade. Ra
On 6/15/2010 9:33 PM, Stephen Hansen wrote:
On 6/15/10 9:16 PM, John Nagle wrote:
Cute, but it doesn't work in general. Faking a module as a
class fails when you simply call
x()
within the module.
Huh? Explain how it doesn't work? I've done it at least twice
(shamefully do I admit
Seriously, this is completely irrelevant for a list about python.
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 14, 4:19 pm, Thales wrote:
> Good morning,
>
> I need to convert some files from .doc to .pdf. I've googled it a
> little bit and all the solutions I've found used the OpenOffice API,
> but I can't use it.
>
> Anybody knows a library that I can use to do it?
>
> Thanks
Converting a word do
On 6/15/2010 9:28 PM, 187braintr...@berkeley.edu wrote:
I am trying to write a program in Python that will edit .txt log files
that contain regression output from R. Any thoughts or suggestions
would be greatly appreciated.
I once wrote programs (in C, Python should be easier) to process bmdp
On Jun 15, 5:20 pm, f...@green.rahul.net (Edward A. Falk) wrote:
> In article
> <25a8c044-c361-4851-bbb4-58c195733...@g19g2000yqc.googlegroups.com>,
>
> nanothermite911fbibustards wrote:
> >This is all due to DISINFORMATION - FBI bustards are the cause of it.
>
> Dude, seriously. Get your dosag
On Jun 15, 5:20 pm, f...@green.rahul.net (Edward A. Falk) wrote:
> In article
> <25a8c044-c361-4851-bbb4-58c195733...@g19g2000yqc.googlegroups.com>,
>
> nanothermite911fbibustards wrote:
> >This is all due to DISINFORMATION - FBI bustards are the cause of it.
>
> Dude, seriously. Get your dosag
On 6/15/10 9:16 PM, John Nagle wrote:
>Cute, but it doesn't work in general. Faking a module as a
> class fails when you simply call
>
> x()
>
> within the module.
Huh? Explain how it doesn't work? I've done it at least twice
(shamefully do I admit this) and it works fine. Real life cod
On 6/15/2010 8:34 PM, Michele Simionato wrote:
On Jun 16, 4:43 am, John Nagle wrote:
Is it possible to override "__setattr__" of a module? I
want to capture changes to global variables for debug purposes.
None of the following seem to have any effect.
modu.__setattr__ = myfn
On Jun 16, 4:43 am, John Nagle wrote:
> Is it possible to override "__setattr__" of a module? I
> want to capture changes to global variables for debug purposes.
>
> None of the following seem to have any effect.
>
> modu.__setattr__ = myfn
>
> setattr(modu, "__setattr__", m
On 6/15/2010 1:27 PM, Antoine Pitrou wrote:
On Mon, 14 Jun 2010 19:47:49 +0100
Nobody wrote:
On Mon, 14 Jun 2010 10:43:02 -0700, John Nagle wrote:
The new SSL module in Python 2.6
There isn't an SSL module in Python 2.6. There is a module named "ssl"
which pretends to implement SSL, bu
Is it possible to override "__setattr__" of a module? I
want to capture changes to global variables for debug purposes.
None of the following seem to have any effect.
modu.__setattr__ = myfn
setattr(modu, "__setattr__", myfn)
delattr(modu, "__setattr__")
On Tue, Jun 15, 2010 at 7:22 PM, Mark Young wrote:
> HAHA. I apologize for my apparently incorrect criticism nanothermite.
I made the mistake of asking him not to put all of this in his .sig,
which has apparently been taken to mean that he should just
post it instead. Apologies.
Geremy Condra
--
HAHA. I apologize for my apparently incorrect criticism nanothermite.
--
http://mail.python.org/mailman/listinfo/python-list
Mark Young wrote:
Agreed.
PS: If yo're going to cuss, please at least spell your expletives
correctly. It's not "bustard".
If you're going to criticise, remember to check your own spelling!
BTW, a "bustard" is a kind of bird:
http://en.wikipedia.org/wiki/Bustard
I think he's anti-avi
187braintr...@berkeley.edu wrote:
I am trying to write a program in Python that will edit .txt log files
that contain regression output from R. Any thoughts or suggestions
would be greatly appreciated.
To get an idea of what I am trying to do, note that I include fixed
effects in the R regr
Agreed.
PS: If yo're going to cuss, please at least spell your expletives correctly.
It's not "bustard".
Oops, forgot to send to list.
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jun 15, 2010 at 9:26 AM, Ian Kelly wrote:
> On Tue, Jun 15, 2010 at 6:21 AM, Alain Ketterlin
> wrote:
> > You compute i**2 too many times (7/5 times more than necessary) and
> > twice too many modulos. I suggest:
> >
> > c = { 0:1, 1:1, 2:1, 3:-1, 4:-1 }
> > #or, why not: c = lambda i :
On Tue, Jun 15, 2010 at 7:04 PM, Vishal Rana wrote:
> Hi,
> A module level dictionary 'd' and is accessed by different threads/requests
> in a django web application. I need to update 'd' every minute with a new
> data and the process takes about 5 seconds.
> What could be best solution where I wa
Vishal Rana wrote:
Hi,
A module level dictionary 'd' and is accessed by different
threads/requests in a django web application. I need to update 'd' every
minute with a new data and the process takes about 5 seconds.
What could be best solution where I want the users to get either the old
v
I am trying to write a program in Python that will edit .txt log files that
contain regression output from R. Any thoughts or suggestions would be
greatly appreciated.
To get an idea of what I am trying to do, note that I include fixed effects
in the R regressions, resulting in hundreds of extra
On Tue, Jun 15, 2010 at 4:26 PM, Benjamin Kaplan
wrote:
> On Tue, Jun 15, 2010 at 3:55 PM, Dan Stromberg
> wrote:
> >
> > I don't think #!/usr/bin/env python is the right thing - unless a script
> > really doesn't care much what version of python it gets.
> >
> > I used to #!/usr/bin/env everythi
On Tue, Jun 15, 2010 at 5:31 PM, Paul Rubin wrote:
> Terry Reedy writes:
>>> Could similar notifications be added to urllib, etc? That's where
>>> people really get bitten badly by this.
>>
>> If you have specific ideas, propose them on the tracker.
>
> urllib is basically a web client and as suc
Hello,
I am a novice Python user. I am using Python to parse some hardware
specifications and create xml files from them.
I generate dict of really huge sizes. (I am parsing some 10,000 register
definitions.)
So, it looks like : {elem1,elem2, elem3,dict1,{elem4,elem5, dict2 {elem6,
elem7, dict3{..
Hi,
A module level dictionary 'd' and is accessed by different threads/requests
in a django web application. I need to update 'd' every minute with a new
data and the process takes about 5 seconds.
What could be best solution where I want the users to get either the old
value or the new and nothi
This one seems to do the trick - thanks! :-)
On Jun 16, 10:12 am, Inyeol Lee wrote:
> On Jun 15, 3:22 pm, Peter wrote:
>
>
>
>
>
> > I am puzzled by what appears to be a scope issue - obviously I have
> > something wrong :-)
>
> > Why does this work:
>
> > if __name__ == 'main':
> > execfile('
Terry Reedy writes:
>> Could similar notifications be added to urllib, etc? That's where
>> people really get bitten badly by this.
>
> If you have specific ideas, propose them on the tracker.
urllib is basically a web client and as such it should act like a
browser, with a default certificate st
In article <25a8c044-c361-4851-bbb4-58c195733...@g19g2000yqc.googlegroups.com>,
nanothermite911fbibustards wrote:
>This is all due to DISINFORMATION - FBI bustards are the cause of it.
Dude, seriously. Get your dosage adjusted. And find a different
newsgroup.
--
-Ed Falk, f...@despams
On Jun 15, 3:22 pm, Peter wrote:
> I am puzzled by what appears to be a scope issue - obviously I have
> something wrong :-)
>
> Why does this work:
>
> if __name__ == 'main':
> execfile('test-data.py')
> print data
>
> and yet this doesn't (I get "NameError: global name 'data' not
> defined")
On Tue, Jun 15, 2010 at 8:49 AM, superpollo wrote:
> goal (from e.c.m.): evaluate
> 1^2+2^2+3^2-4^2-5^2+6^2+7^2+8^2-9^2-10^2+...-2010^2, where each three
> consecutive + must be followed by two - (^ meaning ** in this context)
>
> my solution:
>
s = 0
for i in range(1, 2011):
> ... s
Hi!
I am trying to understand Python's method of passing arguments, the references
to objects etc. I fail to grasp why in populate_trie I have to make a deepcopy
of trie locally instead of just referencing to it.
If it makes any difference, I use Python 3.
from copy import deepcopy
def acce
On Tue, Jun 15, 2010 at 3:55 PM, Dan Stromberg wrote:
>
> I don't think #!/usr/bin/env python is the right thing - unless a script
> really doesn't care much what version of python it gets.
>
> I used to #!/usr/bin/env everything, but I've been updating my old scripts
> not to. It's just too much
hiral writes:
> Is there any module/utility like 'rsync' in python.
Your first port of call for such queries should be PyPI
http://pypi.python.org/>, using its search feature.
In this case, the first several hits address your question.
--
\ “I lost a button-hole.
Peter wrote:
I am puzzled by what appears to be a scope issue - obviously I have
something wrong :-)
Why does this work:
if __name__ == 'main':
execfile('test-data.py')
print data
and yet this doesn't (I get "NameError: global name 'data' not
defined"):
def X():
execfile('test-data.py')
I don't think #!/usr/bin/env python is the right thing - unless a script
really doesn't care much what version of python it gets.
I used to #!/usr/bin/env everything, but I've been updating my old scripts
not to. It's just too much trouble, despite the one minor simplification it
provides.
My Ub
On 15Jun2010 07:25, Michael Torrie wrote:
| In some languages, due to the size and complexity of the libraries, an
| IDE is essential. Java is one of those languages.
Hmm. I'm in the "terminals are my IDE" camp. I never felt any need to
use an IDE when I was using Java. Indeed, the highly linked
On 6/15/2010 5:14 PM, geremy condra wrote:
I have tried to put some effort into the py3k ssl docs, so that security
issues get mentioned:
http://docs.python.org/dev/py3k/library/ssl.html#security-considerations
Any improvement or correction is welcome.
Could similar notifications be added to u
On Jun 15, 3:17 pm, nanothermite911fbibustards
wrote:
> This is all due to DISINFORMATION - FBI bustards are the cause of it.
> The prime suspect of ANTHRAX is beyond doubt a white or jew (american
> or israeli) and one name is Zack who worked at AIMES Iowa. The 911 is
> also a jew job or white jo
On 2010-06-15, My Python wrote:
> Question 2
>
> Can some one post a URL (or a sample module itself) that shows how to
> write basic TCP socket application?
http://docs.python.org/library/socket.html#example
http://docs.python.org/library/asyncore.html
http://twistedmatrix.com/trac/
>
I am puzzled by what appears to be a scope issue - obviously I have
something wrong :-)
Why does this work:
if __name__ == 'main':
execfile('test-data.py')
print data
and yet this doesn't (I get "NameError: global name 'data' not
defined"):
def X():
execfile('test-data.py')
print data
This is all due to DISINFORMATION - FBI bustards are the cause of it.
The prime suspect of ANTHRAX is beyond doubt a white or jew (american
or israeli) and one name is Zack who worked at AIMES Iowa. The 911 is
also a jew job or white job. If this bustard were knowledgeable, he
would be hunting for
On 06/15/2010 11:35 PM, My Python wrote:
> I got to target my little GUI app that uses TCP sockets in Python
> 2.4.4 for Windows and Linux.
>
>
> Question 1
> =
> Given the above, I installed 2.4.4 on Windows 7 and Tkinter import
> works like a charm. (the install is good)
>
> The Linux
On 6/15/2010 9:27 AM, Roel Schroeven wrote:
Op 2010-06-14 22:00, John Nagle schreef:
There's a way to do this in Windows. Look in Task Manager,
with a browser running, and the description for each Firefox
instance will show the page being displayed.
Are you sure? I only see that on the A
I got to target my little GUI app that uses TCP sockets in Python
2.4.4 for Windows and Linux.
Question 1
=
Given the above, I installed 2.4.4 on Windows 7 and Tkinter import
works like a charm. (the install is good)
The Linux (Red Hat 4.1.2-46) though has python preinstalled with ver
2.
On Tue, 15 Jun 2010 22:57:24 +0200, Antoine Pitrou wrote:
> Also, following issue1589 (certificate hostname checking), I think it
> would be useful at least to provide the necessary helper functions in
> order to check certificate conformity, even if they aren't called
> implicitly. I would encour
On Monday 14 June 2010 11:29:35 pm shanti bhushan wrote:
> do we have some configuration file for python server??
No.
As people have explained in reply to your other messages, Python's
BaseHTTPServer does not use any configuration files. If you want a web server
which uses a configuration file,
On Tue, 15 Jun 2010 14:14:08 -0700
geremy condra wrote:
> >
> > Ok, thank you.
> > I have tried to put some effort into the py3k ssl docs, so that security
> > issues get mentioned:
> > http://docs.python.org/dev/py3k/library/ssl.html#security-considerations
> > Any improvement or correction is we
On 06/15/2010 10:51 PM, Andy Jost wrote:
> Hi,
>
>
>
> I’m working on an application program that embeds Python using the
> C-API. Sometimes, I need to call functions written in pure Python from
> the C code, so I use Py_CompileString and PyEval_EvalCode.
I'd recommend putting your Python code
On Tue, Jun 15, 2010 at 1:57 PM, Antoine Pitrou wrote:
>
> Hello,
>
>> He's describing the lack of hostname checking, discussed here[0],
>> here[1], and in my pycon lightning talk last year, wherever those
>> are kept.
>
> Ok, thank you.
> I have tried to put some effort into the py3k ssl docs, so
Hi,
I'm working on an application program that embeds Python using the C-API.
Sometimes, I need to call functions written in pure Python from the C code, so
I use Py_CompileString and PyEval_EvalCode.
I would like to avoid compiling the same code over and over by storing the
result of Py_Compi
Hello,
> He's describing the lack of hostname checking, discussed here[0],
> here[1], and in my pycon lightning talk last year, wherever those
> are kept.
Ok, thank you.
I have tried to put some effort into the py3k ssl docs, so that security
issues get mentioned:
http://docs.python.org/dev/py3k
On Tue, Jun 15, 2010 at 1:27 PM, Antoine Pitrou wrote:
> On Mon, 14 Jun 2010 19:47:49 +0100
> Nobody wrote:
>> On Mon, 14 Jun 2010 10:43:02 -0700, John Nagle wrote:
>>
>> > The new SSL module in Python 2.6
>>
>> There isn't an SSL module in Python 2.6. There is a module named "ssl"
>> which p
Hello list,
Here's a little Python toy I've been hacking on, as I thought it might
amuse some of you. [1] Python 3.1+ (not sure about 3.0)
It's a package called 'audiogen' which includes bindings to libao for
portable audio output and some functions/classes/... for generating
audio. It grew from
On Mon, 14 Jun 2010 19:47:49 +0100
Nobody wrote:
> On Mon, 14 Jun 2010 10:43:02 -0700, John Nagle wrote:
>
> > The new SSL module in Python 2.6
>
> There isn't an SSL module in Python 2.6. There is a module named "ssl"
> which pretends to implement SSL, but in fact doesn't.
What do you mean
Дамјан Георгиевски, 15.06.2010 17:44:
http://lab.arc90.com/experiments/readability/
Readability is a javascript bookmarklet that "makes reading on the Web
more enjoyable by removing the clutter around what you're reading."
Does anyone know of something similar in Python?
Well, that sounds lik
http://lab.arc90.com/experiments/readability/
Readability is a javascript bookmarklet that "makes reading on the Web
more enjoyable by removing the clutter around what you're reading."
Does anyone know of something similar in Python?
--
дамјан ((( http://damjan.softver.org.mk/ )))
"Debug
On 6/14/2010 11:58 AM, geremy condra wrote:
On Mon, Jun 14, 2010 at 11:47 AM, Nobody wrote:
On Mon, 14 Jun 2010 10:43:02 -0700, John Nagle wrote:
The new SSL module in Python 2.6
There isn't an SSL module in Python 2.6. There is a module named "ssl"
which pretends to implement SSL, but
On 6/15/10 11:52 AM, Chris Seberino wrote:
> Possible to make subprocess.Popen jobs run serially rather than in
> parallel?
>
> In other words, if a computer is low on memory and doesn't mind
> waiting.can Popen be configured to submit to a queue and run jobs
> *ONE AT TIME*??
>
> That might
Has anyone had any prior experience with this sort of problem or can
anyone point me in the right direction?
My recommendation is to install the 32-bit version of Python, and use
precompiled binaries of libxml.
Failing that, install Visual Studio Express (or Visual Studio proper),
and compile l
Possible to make subprocess.Popen jobs run serially rather than in
parallel?
In other words, if a computer is low on memory and doesn't mind
waiting.can Popen be configured to submit to a queue and run jobs
*ONE AT TIME*??
That might be useful and avoid crashes and disk swapping.
cs
--
http
Paul Rubin ha scritto:
superpollo writes:
goal (from e.c.m.): evaluate
1^2+2^2+3^2-4^2-5^2+6^2+7^2+8^2-9^2-10^2+...-2010^2, where each three
consecutive + must be followed by two - (^ meaning ** in this context)
print sum([-1,1,1,1,-1][i%5]*i**2 for i in xrange(1,2011))
beautiful.
thx
--
h
Hartmut Goebel writes:
> I'm facing a curious problem: 2.6, 2.6.1 and 2.6.4 are generating
> different byte-code for the same source. I can not find the reason for.
Why should they generate the same bytecode? All that you should expect
is that the same bytecode should be runnable on all three in
superpollo writes:
> goal (from e.c.m.): evaluate
> 1^2+2^2+3^2-4^2-5^2+6^2+7^2+8^2-9^2-10^2+...-2010^2, where each three
> consecutive + must be followed by two - (^ meaning ** in this context)
print sum([-1,1,1,1,-1][i%5]*i**2 for i in xrange(1,2011))
--
http://mail.python.org/mailman/listinfo
On 14-06-2010 17:53, lkcl wrote:
>> oh look - there's a common theme, there: "web technology equals
>> useless" :)
>>
> this is getting sufficiently ridiculous, i thought it best to
> summarise the discussions of the past few days, from the perspective
> of four-year-olds:
>
> http://pyjs.org
Op 2010-06-14 22:00, John Nagle schreef:
> There's a way to do this in Windows. Look in Task Manager,
> with a browser running, and the description for each Firefox
> instance will show the page being displayed.
Are you sure? I only see that on the Applications tab, which shows
window titles;
On Tue, Jun 15, 2010 at 6:21 AM, Alain Ketterlin
wrote:
> You compute i**2 too many times (7/5 times more than necessary) and
> twice too many modulos. I suggest:
>
> c = { 0:1, 1:1, 2:1, 3:-1, 4:-1 }
> #or, why not: c = lambda i : +1 if (i%5) < 3 else -1
>
> s = 0
> for i in range(1,2011):
> s
On 6/15/10 9:03 AM, genkuro wrote:
> I'm coming to Python from Java. I'm still getting a feel for scoping
> limits. For the sake of curiosity, is there another way to refer to a
> package besides name?
The only way to refer to anything is by its name -- or, from a name and
through subscript/dot
On 15/06/2010 17:03, genkuro wrote:
On Jun 15, 8:49 am, Mark Lawrence wrote:
On 15/06/2010 16:35, genkuro wrote:
Newbie here. I may be missing something obvious, in which case,
please feel free to berate and laugh at me.
Here's a dubious line of code:
logging = logging.getLogger(__name__)
genkuro wrote:
On Jun 15, 8:49 am, Mark Lawrence wrote:
On 15/06/2010 16:35, genkuro wrote:
Newbie here. I may be missing something obvious, in which case,
please feel free to berate and laugh at me.
Here's a dubious line of code:
logging = logging.getLogger(__name__)
On Tue, Jun 15, 2010 at 7:08 AM, Shashwat Anand
wrote:
> IDEs are seriously over-rated.
> Vim FTW.
> The only issue for beginners is they should know touch typing to fully
> utilize Vim and the initial curve is a bit high as compared to normal
> editors/IDEs.
Used to be vim-only. Then I got to kn
genkuro wrote:
Newbie here. I may be missing something obvious, in which case,
please feel free to berate and laugh at me.
Here's a dubious line of code:
logging = logging.getLogger(__name__)
How can I refer to the original logging package "logging" after this
statement is run? Specifically,
On Jun 15, 8:49 am, Mark Lawrence wrote:
> On 15/06/2010 16:35, genkuro wrote:
>
> > Newbie here. I may be missing something obvious, in which case,
> > please feel free to berate and laugh at me.
>
> > Here's a dubious line of code:
> > logging = logging.getLogger(__name__)
>
> > How can I refer
Peter Otten <__pete...@web.de> writes:
> genkuro wrote:
>
>> Newbie here. I may be missing something obvious, in which case,
>> please feel free to berate and laugh at me.
>>
>> Here's a dubious line of code:
>> logging = logging.getLogger(__name__)
>
> Dubious indeed. As a workaround you can im
Jonathan Fine writes:
> hiral wrote:
>> Hi,
>>
>> Is there any module/utility like 'rsync' in python.
>>
>> Thank you in advance.
>
> Not exactly what you asked for, but Mercurial provides a Python
> interface. You might find this URL a good starting point:
>http://mercurial.selenic.com/wiki
genkuro wrote:
> Newbie here. I may be missing something obvious, in which case,
> please feel free to berate and laugh at me.
>
> Here's a dubious line of code:
> logging = logging.getLogger(__name__)
Dubious indeed. As a workaround you can import the module again, preferably
under another na
On 15/06/2010 16:35, genkuro wrote:
Newbie here. I may be missing something obvious, in which case,
please feel free to berate and laugh at me.
Here's a dubious line of code:
logging = logging.getLogger(__name__)
How can I refer to the original logging package "logging" after this
statement is
hiral wrote:
Hi,
Is there any module/utility like 'rsync' in python.
Thank you in advance.
Not exactly what you asked for, but Mercurial provides a Python
interface. You might find this URL a good starting point:
http://mercurial.selenic.com/wiki/MercurialApi
--
Jonathan
--
http://mail
Newbie here. I may be missing something obvious, in which case,
please feel free to berate and laugh at me.
Here's a dubious line of code:
logging = logging.getLogger(__name__)
How can I refer to the original logging package "logging" after this
statement is run? Specifically, I'm trying to add
On 15/06/2010 16:15, Grant Edwards wrote:
On 2010-06-15, Tim Golden wrote:
On 15/06/2010 15:10, Grant Edwards wrote:
On 2010-06-15, teja wrote:
I have a requirement that I want to log-in into a gmail
account read all unread mails, mark them as read and then
archive them. I am using libgmai
On 2010-06-15, Tim Golden wrote:
> On 15/06/2010 15:10, Grant Edwards wrote:
>> On 2010-06-15, teja wrote:
>>
>>> I have a requirement that I want to log-in into a gmail account read
>>> all unread mails, mark them as read and then archive them.
>>> I am using libgmail (version 0.1.11) library to
On Tue, 15 Jun 2010 05:57:13 -0700, lkcl wrote:
> to be honest, if you don't put any effort in to use the appropriate
> "lovely-prettiness" panels you can end up with something truly "90s-
> esque". but with a little effort you can do round-edged lovely colour
> tabs:
>http://pyjs.org/exampl
On Jun 15, 2:44 am, News123 wrote:
> ChrisSeberinowrote:
> > I tried to use subprocess.Popen to make my web app do a bunch of stuff
> > in separate processes today. It appeared like only the first one
> > finished and/or the rest of the forked processes crashed.
> First thing to do would be to s
On 15/06/2010 15:10, Grant Edwards wrote:
On 2010-06-15, teja wrote:
I have a requirement that I want to log-in into a gmail account read
all unread mails, mark them as read and then archive them.
I am using libgmail (version 0.1.11) library to do so, using which I
am able to log-in into a gma
On 06/15/2010 02:54 PM, Hartmut Goebel wrote:
> Hi,
>
> I'm facing a curious problem: 2.6, 2.6.1 and 2.6.4 are generating
> different byte-code for the same source. I can not find the reason for.
>
> As you may know, I'm providing the 'decompyle' service as
> www.crazy-comnpilers.com. This servic
On 2010-06-15, teja wrote:
> I have a requirement that I want to log-in into a gmail account read
> all unread mails, mark them as read and then archive them.
> I am using libgmail (version 0.1.11) library to do so, using which I
> am able to log-in into a gmail account fetch all unread message a
On 06/15/2010 02:03 PM, James Ravenscroft wrote:
> Dear All,
>
> Before I start, I'm aware of how much of a nightmare MSys and MINGW are
> in comparison to UNIX/Linux environments, I'm a casual Ubuntu user
> myself and I wouldn't go near Windows if I didn't have to.
>
> I'm trying to install the
On 2010-06-15, Steven D'Aprano wrote:
> On Mon, 14 Jun 2010 16:20:29 -0400, Terry Reedy wrote about IDLE:
>
>>> We are at once lucky to have a built in editor
>>
>> It is certainly a boon to someone like me who now only programs in
>> Python and had no experience, let alone commitment to any of
Stefan Behnel wrote:
> superpollo, 15.06.2010 14:55:
>> Peter Otten ha scritto:
>>> superpollo wrote:
>>>
goal (from e.c.m.): evaluate
1^2+2^2+3^2-4^2-5^2+6^2+7^2+8^2-9^2-10^2+...-2010^2, where each three
consecutive + must be followed by two - (^ meaning ** in this context)
>>>
>>>
Stefan Behnel ha scritto:
superpollo, 15.06.2010 14:55:
Peter Otten ha scritto:
superpollo wrote:
goal (from e.c.m.): evaluate
1^2+2^2+3^2-4^2-5^2+6^2+7^2+8^2-9^2-10^2+...-2010^2, where each three
consecutive + must be followed by two - (^ meaning ** in this context)
from itertools import
On 06/15/2010 01:30 AM, Steven D'Aprano wrote:
> I know that lots of people swear by IDEs, and back in Ancient Days I used
> to use the THINK Pascal IDE on a Macintosh so I'm not hostile to the
> idea. But in those days you could only run one app at a time, so you
> needed an IDE or you'd go ins
superpollo, 15.06.2010 14:55:
Peter Otten ha scritto:
superpollo wrote:
goal (from e.c.m.): evaluate
1^2+2^2+3^2-4^2-5^2+6^2+7^2+8^2-9^2-10^2+...-2010^2, where each three
consecutive + must be followed by two - (^ meaning ** in this context)
from itertools import cycle, izip
sum(sign*i*i fo
>>> sum(i*i*(-1)**((i % 5) / 4 + (i + 4) % 5 / 4) for i in range(1,2011))
536926141
On Tue, Jun 15, 2010 at 6:25 PM, superpollo wrote:
> superpollo ha scritto:
>
> Peter Otten ha scritto:
>>
>>> superpollo wrote:
>>>
>>> goal (from e.c.m.): evaluate
1^2+2^2+3^2-4^2-5^2+6^2+7^2+8^2-9^2-1
superpollo wrote:
superpollo ha scritto:
Peter Otten ha scritto:
superpollo wrote:
goal (from e.c.m.): evaluate
1^2+2^2+3^2-4^2-5^2+6^2+7^2+8^2-9^2-10^2+...-2010^2, where each three
consecutive + must be followed by two - (^ meaning ** in this context)
from itertools import cycle, izip
sum
On 06/15/2010 01:49 PM, superpollo wrote:
> my solution:
>
> [...]
> >>> print s
> 536926141
Or, if you would like to use numpy:
>>> import numpy
>>> squares = numpy.arange(1, 2011, dtype=numpy.int)**2
>>> signs = numpy.ones(len(squares), dtype=numpy.int)
>>> signs[3::5] = -1
>>> signs[4::5] = -1
On 15 June 2010 22:55, superpollo wrote:
> Peter Otten ha scritto:
>
> superpollo wrote:
>>
>> goal (from e.c.m.): evaluate
>>> 1^2+2^2+3^2-4^2-5^2+6^2+7^2+8^2-9^2-10^2+...-2010^2, where each three
>>> consecutive + must be followed by two - (^ meaning ** in this context)
>>>
>>
>> from iterto
1 - 100 of 143 matches
Mail list logo