En Tue, 15 Jun 2010 00:41:08 -0300, shanti bhushan
escribió:
Dear all,
I have made local webserver up by the python script
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
class MyHandler(BaseHTTPRequestHandler):
def do_GET(self):
try:
if self.path.ends
On 2010-06-15 02:29, moerchendiser2k3 wrote:
> Hi, yes, that was my first idea when I just create an
> external module. I forgot something to say:
>
> In my case the initfoo() function is called on startup
> in my embedding environment, that means I call that
> on startup of my main app.
>
ah. I
On 6/14/10 9:08 PM, Stephen Hansen wrote:
> On 6/14/10 8:31 PM, rantingrick wrote:
>> On Jun 14, 9:41 pm, Stephen Hansen wrote:
>>
>>> I wasn't aware of [row|column]configure, no: however, I am dubious of
>>> how it directly applies.
>>
>> Maybe you should become more aware of a subject before you
Ben Finney writes:
> No, it wasn't clear at all. That's why I asked, rather than making
> assumptions.
>
> Thanks for clarifying.
It should go without saying, but unfortunately the tenor of this forum
has been worsened (temporarily, I hope) by certain interminable threads
of late. So, to be clea
On Mon, 14 Jun 2010 23:05:56 -0700, alex23 wrote:
> And I'm saying that I hope that most people who are professional
> developers are capable of learning such advanced functionality, which
> they will never do if there are no effective examples for them from
> which to learn. I'm not sure why Pyth
alex23 writes:
> Ben Finney wrote:
> > alex23 writes:
> > > (Although I have to say, I have little sympathy for Steven's
> > > hypothetical "new programmer who isn't familiar with map and
> > > reduce".
> >
> > With ‘reduce’ gone in Python 3 [0], I can only interpret that as “I
> > have little
Thomas Jollans wrote:
> On 06/15/2010 12:06 AM, Craig Yoshioka wrote:
>> I'm trying to write a class factory to create new classes dynamically at
>> runtime from simple 'definition' files that happen to be written in
>> python as well. I'm using a class factory since I couldn't find a way to
>> u
Steven D'Aprano wrote:
> Perhaps you need to spend some more time helping beginners then, and less
> time hanging around Lisp gurus *wink*
I've never used map/reduce outside of Python, this is where I first
encountered it. And I _have_ worked in organisations alongside new
Python coders. That it'
On 6/14/10 10:35 PM, rantingrick wrote:
> On Jun 14, 11:08 pm, Stephen Hansen wrote:
>
>
>> Does not perform to spec. Quote, "Inside of A, there are four items in a
>> vertical line. The bottom which takes up half of the total vertical
>> space, and the top three share the rest.
>
> No problem,
On 6/14/2010 9:33 PM, Steven D'Aprano wrote:
On Mon, 14 Jun 2010 20:46:28 -0700, John Nagle wrote:
So how can I detect a closure?
I *think* you do it through the co_flags attribute of the code object.
This is in Python 2.5:
although this doesn't seem to be documented, at least not here:
htt
Ben Finney wrote:
> alex23 writes:
> > (Although I have to say, I have little sympathy for Steven's
> > hypothetical "new programmer who isn't familiar with map and reduce".
>
> With ‘reduce’ gone in Python 3 [0], I can only interpret that as “I have
> little sympathy for programmers who start wi
On Jun 14, 11:08 pm, Stephen Hansen wrote:
> Does not perform to spec. Quote, "Inside of A, there are four items in a
> vertical line. The bottom which takes up half of the total vertical
> space, and the top three share the rest.
No problem, check this out...
import Tkinter as tk
app = tk.Tk(
On Tue, Jun 15, 2010 at 2:44 PM, alex23 wrote:
> shanti bhushan wrote:
>> Please guide me the design or direct me the best approach to do all
>> this.
>
> The best approach?
>
> 1. Study
> 2. Learn
> 3. Apply
>
> There you go, the advice that keeps on giving.
In addition to my good colleagues so
On 6/14/10 9:41 PM, shanti bhushan wrote:
> Hi ,
> I want to use the python local web server.
> I want to do the following activities with the server.
> 1. I want to change to configuration of any time ,with the help of
> python script.
> 2. I want to log request and response for the server so ,i c
shanti bhushan wrote:
> Please guide me the design or direct me the best approach to do all
> this.
The best approach?
1. Study
2. Learn
3. Apply
There you go, the advice that keeps on giving.
--
http://mail.python.org/mailman/listinfo/python-list
Hi ,
I want to use the python local web server.
I want to do the following activities with the server.
1. I want to change to configuration of any time ,with the help of
python script.
2. I want to log request and response for the server so ,i can use it
for analysis.
Please guide me in this respe
We're excited to announce Surge, the Scalability and Performance
Conference, to be held in Baltimore on Sept 30 and Oct 1, 2010. The
event focuses on case studies that demonstrate successes (and failures)
in Web applications and Internet architectures.
Our Keynote speakers include John Allspaw an
On Mon, Jun 14, 2010 at 9:46 PM, John Nagle wrote:
> No indication there that "fbar" is a closure inside "foo". There
> are "__closure__" and "__func_closure__" entries in there, but
> they are both None. A non-closure function has the same entries.
>
> So how can I detect a closure?
Maybe beca
On 6/14/10 9:26 PM, rantingrick wrote:
> On Jun 14, 11:08 pm, Stephen Hansen wrote:
>
>>> Maybe you should become more aware of a subject before you start
>>> running your mouth about it, eh?
>>
>> You know what?
>
> You know what Stephen, just calm down a little. I just pick on you
> because y
On Mon, 14 Jun 2010 20:46:28 -0700, John Nagle wrote:
> So how can I detect a closure?
I *think* you do it through the co_flags attribute of the code object.
This is in Python 2.5:
>>> def f(x):
... def g():
... return x
... return g
...
>>>
>>> closure = f(42)
>>> closure(
On Jun 14, 11:08 pm, Stephen Hansen wrote:
> > Maybe you should become more aware of a subject before you start
> > running your mouth about it, eh?
>
> You know what?
You know what Stephen, just calm down a little. I just pick on you
because you're one of the few people here that i enjoy argui
On 6/14/10 9:08 PM, Stephen Hansen wrote:
> The code is at: http://ixokai.io/get/layout-wx.py_
If you've already downloaded this, you have to do so again; I uploaded
the wrong one on accident.
--
Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog:
On 6/14/10 8:31 PM, rantingrick wrote:
> On Jun 14, 9:41 pm, Stephen Hansen wrote:
>
>> I wasn't aware of [row|column]configure, no: however, I am dubious of
>> how it directly applies.
>
> Maybe you should become more aware of a subject before you start
> running your mouth about it, eh?
You k
I'm doing something with CPython introspection, and I'm trying
to determine whether a function is a closure. Consider
def foo(x) :
global fbar
def bar(y) :
pass
fbar = bar # export closure
foo(0)
We now have "fbar" as a reference to a closure.
"inspect" can tell u
Dear all,
I have made local webserver up by the python script
import string,cgi,time
from os import curdir, sep
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
#import pri
import glob
import logging
import logging.handlers
class MyHandler(BaseHTTPRequestHandler):
def do_GET(self
On 6/14/10 8:30 PM, shanti bhushan wrote:
> On Jun 15, 5:53 am, David Zaslavsky wrote:
>> On Monday 14 June 2010 6:19:33 am shanti bhushan wrote:> I want to update
>> the configuration file for python server ,but i am
>>> not able to locate the python configuration file.
>>
>> What configuration
On 6/14/10 8:04 PM, AD. wrote:
>> Much, much, much Googling led me to try many things to get it just
>> right, and all bemoaned the lack of a solid way to vertically center:
>> all the while using essentially similar methods to horizontally center.
>
> I'd recommend the book "Pro CSS and HTML Desi
On Jun 14, 9:41 pm, Stephen Hansen wrote:
> I wasn't aware of [row|column]configure, no: however, I am dubious of
> how it directly applies.
Maybe you should become more aware of a subject before you start
running your mouth about it, eh?
> Consider this relatively simple user interface
> layo
On Jun 15, 5:53 am, David Zaslavsky wrote:
> On Monday 14 June 2010 6:19:33 am shanti bhushan wrote:> I want to update the
> configuration file for python server ,but i am
> > not able to locate the python configuration file.
>
> What configuration file? I don't see anything in your code that rea
On Jun 15, 5:53 am, David Zaslavsky wrote:
> On Monday 14 June 2010 6:19:33 am shanti bhushan wrote:> I want to update the
> configuration file for python server ,but i am
> > not able to locate the python configuration file.
>
> What configuration file? I don't see anything in your code that rea
> so they _had_ to put the glib/gobject bindings in, after all that
> effort spent fighting tooth and nail to prevent it... and not having
> access to the key developer who worked on it (because of censorship)
> it's been a bit of a bitch for them, and it's only about 80% complete,
> after 6 month
On 2010-06-15, Aaron W. Hsu wrote:
> I've heard it said, it is easy to beat C compilers for fast code, it's
> just hard to beat them at benchmarks written for C. That is, do the same
> type of things as what Scheme gives you, such as lots of dynamic
> allocation and resizing, higher order func
On Jun 15, 1:58 pm, Stephen Hansen wrote:
> Very nice. And interesting. "position: absolute" there is a mystery to
> me and seems to be key, I'm not sure entirely what it is doing to the
> layout manager in that scenario, but it seems to do the trick.
The Cliff Notes:
position: absolute allows d
On 6/14/10 7:22 PM, rantingrick wrote:
> On Jun 14, 6:27 pm, Stephen Hansen wrote:
>
>> From a functionality perspective, "pack" and "grid" are both distinctly
>> less capable then wx sizers.
>
> Are you just flapping your gums or can you prove it Stephen? I will
> accept any "Pepsi Challenge" y
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.
I only have around 300Mb. Is it possible that my subprocess.Popen
code was swapping to disk so much th
On Jun 15, 1:21 pm, pyt...@bdurham.com wrote:
> Anton,
>
> Very nice.
>
> As an aside: I don't think you need to explicitly set your image size,
Yeah, I only did that because I was assuming the image path would
actually be broken (and it was for me too) - it was just to 'simulate'
a 100x100 image
On 6/14/10 7:22 PM, rantingrick wrote:
> On Jun 14, 6:27 pm, Stephen Hansen wrote:
> [1] But please, make sure to post code that will run as-is. The last
> block of wx code you posted is missing an application instance and
> will not run without modification. There are noobs watching and we to
> p
On 6/14/10 7:05 PM, rantingrick wrote:
> """The Place geometry manager is the simplest of the three general
> geometry managers provided in Tkinter. It allows you explicitly set
> the position and size of a window, either in absolute terms, or
> relative to another window."""
>
>> I've no interest
On Jun 14, 12:34 pm, Tim Pinkawa wrote:
> On Sun, Jun 13, 2010 at 11:01 PM, Jason wrote:
> The tempfile.TemporaryFile class should do the job. This part is
> probably of particular interest to you:
Thanks! Since the bsddb functions require a filename (not a file
object), I'm thinking that "Named
On Jun 14, 6:27 pm, Stephen Hansen wrote:
> From a functionality perspective, "pack" and "grid" are both distinctly
> less capable then wx sizers.
Are you just flapping your gums or can you prove it Stephen? I will
accept any "Pepsi Challenge" you can muster in Wx code and echo that
same capabil
On Jun 14, 6:27 pm, Stephen Hansen wrote:
> I am familiar with grid, pack and place.
Apparently not, read on...
> Are you arguing from an API point of view, or a functionality point of
> view?
I going to argue that Tkinter offers the most "elegant" interface for
geometry management. And i'll l
On 6/14/10 6:02 PM, AD. wrote:
> On Jun 15, 12:06 pm, Stephen Hansen wrote:
>> "Arbitrarily sized" was the key point ;-) In that, you set the sizes of
>> the div's explicitly.
>
> As I said to Ed, I think you missed why I included the exact same
> image in two divs of different sizes. That was to
Anton,
Very nice.
As an aside: I don't think you need to explicitly set your image size,
eg. I found your examples worked well with the following CSS properties
removed from the img specification:
width:100px;
height: 100px;
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 15, 1:03 pm, Ed Keith wrote:
> Nice! I've been looking for that trick for some time.
>
> Thank you,
A lot of people (including pro web designers even) aren't really aware
of what CSS can actually do. Part of the problem is that everyone only
learnt the semi working subset that wouldn't fal
On Jun 15, 12:06 pm, Stephen Hansen wrote:
> "Arbitrarily sized" was the key point ;-) In that, you set the sizes of
> the div's explicitly.
As I said to Ed, I think you missed why I included the exact same
image in two divs of different sizes. That was to show it was still
centered no matter wha
Nice! I've been looking for that trick for some time.
Thank you,
-EdK
Ed Keith
e_...@yahoo.com
Blog: edkeith.blogspot.com
--- On Mon, 6/14/10, AD. wrote:
> From: AD.
> Subject: Re: GUIs - A Modest Proposal
> To: python-list@python.org
> Date: Monday, June 14, 2010, 8:56 PM
> On Jun 15,
On Jun 15, 11:59 am, Ed Keith wrote:
> But that is in a fixed size field,
That's why I used the same image definition in two different sized
divs to show that the images position wasn't determined by the divs
size.
> can you make the height change based on the height of the browser window, and
On Monday 14 June 2010 6:19:33 am shanti bhushan wrote:
> I want to update the configuration file for python server ,but i am
> not able to locate the python configuration file.
What configuration file? I don't see anything in your code that reads a
configuration file.
:) David
--
http://mail.py
Hi, yes, that was my first idea when I just create an
external module. I forgot something to say:
In my case the initfoo() function is called on startup
in my embedding environment, that means I call that
on startup of my main app.
Bye,
moerchendiser2k3
--
http://mail.python.org/mailman/listinfo
On Jun 14, 4:18 pm, nanothermite911fbibustards
wrote:
> Every day he make noise. bang the garage door. the police chief is a
> jew. call police to harass me. and then a jew lawyer lied to an
> incompetent judge in a court.
>
> As a result, I a sick person, physically handicapped, cant do my
> prog
fortunatus wrote:
> The only point to discuss would be that Scheme - in the R5 version of
> the spec at least - doesn't have standard way to specify type data
> unless I am mistaken. Therefore you will find that Scheme compilers
> add their own syntax for it. Again we are led to a moot point.
On 6/14/10 4:51 PM, AD. wrote:
> On Jun 14, 2:34 am, Stephen Hansen wrote:
>> HTML+CSS have some very strong advantages. Simplicity is not one of
>> them. Precision web design these days is a dark art. (Go center an image
>> vertically and horizontally in an arbitrary sized field!)
>
> I agree, a
On Jun 14, 3:20 pm, Terry Reedy wrote:
> 1. I agree.
> 2. This does not much affect me since I do not directly enter compound
> statement with more than, say, 2 lines in the body, even with the
> command window interpreter. I much prefer a full screen editor.
But i think you'll agree that fixing
--- On Mon, 6/14/10, AD. wrote:
> From: AD.
> Subject: Re: GUIs - A Modest Proposal
> To: python-list@python.org
> Date: Monday, June 14, 2010, 7:51 PM
> On Jun 14, 2:34 am, Stephen Hansen
>
> wrote:
> > HTML+CSS have some very strong advantages. Simplicity
> is not one of
> > them. Precision
On Jun 14, 2:34 am, Stephen Hansen wrote:
> HTML+CSS have some very strong advantages. Simplicity is not one of
> them. Precision web design these days is a dark art. (Go center an image
> vertically and horizontally in an arbitrary sized field!)
I agree, and I know that's a rhetorical question,
Sorry, the first example should be:
class Status(object):
def __init__(self,definitions):
for key,function in definitions:
setattr(self,key,property(function))
On Jun 14, 2010, at 3:06 PM, Craig Yoshioka wrote:
> I'm trying to write a class factory
On 6/14/10 3:44 PM, rantingrick wrote:
> On Jun 14, 2:30 pm, Stephen Hansen wrote:
>
> Stephan speaking of Wx geometry managers...
>
>> Ahem. /Rant. I'm not saying its the best layout system in the world, but
>> like your DOM/HTML example -- its resolution independant (and
>> cross-platform), so
Every day he make noise. bang the garage door. the police chief is a
jew. call police to harass me. and then a jew lawyer lied to an
incompetent judge in a court.
As a result, I a sick person, physically handicapped, cant do my
programming ... brain work requires a certain level of quiet
I certai
On Mon, Jun 14, 2010 at 11:02 AM, madhuri vio wrote:
> TypeError: Need a file handle, not a string (i.e. not a filename)
This says that the error is that you are using a filename where you
should be using a filehandle.
So this line:
for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"):
Sh
On Mon, Jun 14, 2010 at 9:38 AM, Thomas Jollans wrote:
> On 06/14/2010 05:45 PM, madhuri vio wrote:
>>
>> i am still waiting for some help.
>
> WHAT?! Your behaviour on this list is making me really, really angry. We
> are not a tech support company. You are not paying for the privilege of
> s
On Jun 14, 2:16 pm, lkcl wrote:
> On Jun 14, 5:57 pm, rantingrick wrote:
>
> > I'll have to very much agree with this assessment Stephan. There
> > exists not elegant API for these "web" UI's. The people over at
> > SketchUp (my second love after python) have this problem on a daily
> > bases wit
On Jun 14, 2:30 pm, Stephen Hansen wrote:
Stephan speaking of Wx geometry managers...
> Ahem. /Rant. I'm not saying its the best layout system in the world, but
> like your DOM/HTML example -- its resolution independant (and
> cross-platform), so you can start resizing things and changing the
>
On 06/15/2010 12:06 AM, Craig Yoshioka wrote:
> I'm trying to write a class factory to create new classes dynamically at
> runtime from simple 'definition' files that happen to be written in python as
> well. I'm using a class factory since I couldn't find a way to use
> properties with dynamic
On Mon, Jun 14, 2010 at 4:06 PM, Craig Yoshioka wrote:
> def makeStatus(definitions):
> class Status(object):
> pass
> for key,function,data in definitions:
> setattr(Status,key,property(lambda x: function(data)))
> return Status()
>
> but all my
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:
AH hahahahahahahahahahahaha
--
http://mail.python.org
I'm trying to write a class factory to create new classes dynamically at
runtime from simple 'definition' files that happen to be written in python as
well. I'm using a class factory since I couldn't find a way to use properties
with dynamically generated instances, for example:
I would prefer
On Mon, Jun 14, 2010 at 1:48 PM, Antoine Pitrou wrote:
> On Mon, 14 Jun 2010 15:54:33 -0400
> Michael Crute wrote:
>> On Mon, Jun 14, 2010 at 1:25 PM, Antoine Pitrou wrote:
>> > That was not my question. My question was whether there was a reason to
>> > rewrite a separate OpenSSL-accessing libr
On 06/14/2010 09:47 PM, Hrvoje Niksic wrote:
> Thomas Jollans writes:
>
>> On 06/14/2010 01:18 PM, Hrvoje Niksic wrote:
>>> Thomas Jollans writes:
>>>
1. allocate a buffer of a certain size
2. fill it
3. return it as an array.
>>>
>>> The fastest and more robust approach (I'm awar
On Jun 14, 7:30 pm, Stephen Hansen wrote:
> On 6/14/10 11:47 AM, lkcl wrote:
>
> > On Jun 14, 4:17 pm, Stephen Hansen wrote:
> > yes. that's effectively what pyjs applications are about: as much
> > HTML/CSS as you can stand, then _absolute_ pure javascript from there-
> > on in... only using a
On Mon, Jun 14, 2010 at 9:38 AM, Thomas Jollans wrote:
> On 06/14/2010 05:45 PM, madhuri vio wrote:
>>
>> i am still waiting for some help.
>
> Besides: your original TWO (why two??) posts got a couple of replies.
> One annoyed but in principle I think helpful one from myself, and one
> rather
On 6/14/10 1:00 PM, lkcl wrote:
> On Jun 14, 7:30 pm, Stephen Hansen wrote:
>> On 6/14/10 11:47 AM, lkcl wrote:
>> wx has two separate containment hierarchies. The first is a
>> hierarchical, parent->child relationship. This is what a lot of people
>> think is its layout: but its not. It has nothi
> all the methods by which you would have to deal with that GUI loop
> problem have to be asynchronous _anyway_... aaand, what the heck, why
> not just go with the flow and use the pyjamas.HTTPRequest or
> pyjamas.JSONService recommended services, neh?
sorry to be adding stuff after-the-fact, bu
On Mon, 14 Jun 2010 11:05:50 -0700
geremy condra wrote:
>
> Yes. Hashlib is designed to provide cryptographic hashes, and the ssl
> module to provide TLS support. Evpy provides encryption and signing.
> Am I answering your question?
Hmm, indeed, thank you. For some strange reason I had forgotten
On Mon, 14 Jun 2010 15:54:33 -0400
Michael Crute wrote:
> On Mon, Jun 14, 2010 at 1:25 PM, Antoine Pitrou wrote:
> > That was not my question. My question was whether there was a reason to
> > rewrite a separate OpenSSL-accessing library rather than contributing to
> > improve the "hashlib" and "
Benjamin Kaplan wrote:
On Mon, Jun 14, 2010 at 3:09 AM, Alexzive wrote:
thanks guys,
the solution for me was
python2.4 setup.py install --prefix=/usr/local
cheers, AZ
Don't do that! Like Steven said, you'll kill your system that way.
Lots of programs in Linux use Python and those programs
On 14 June 2010 20:03, Thomas Jollans wrote:
> On 06/14/2010 01: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
On 6/14/2010 3:07 AM, rantingrick wrote:
Sorry Terry -- with all the noise here the very few "quality" signals
just seem to be lost on my "auditory cortex".
I think you will be both happier and more productive if you train
yourself to pay more attention to signal and let noise go by.
We
Thomas Jollans writes:
> On 06/14/2010 01:18 PM, Hrvoje Niksic wrote:
>> Thomas Jollans writes:
>>
>>> 1. allocate a buffer of a certain size
>>> 2. fill it
>>> 3. return it as an array.
>>
>> The fastest and more robust approach (I'm aware of) is to use the
>> array.array('typecode', [0]) * s
On 2010-06-14, MRAB wrote:
> Grant Edwards wrote:
>> On 2010-06-14, Tomasz Pajor wrote:
>>
>>> Why there is no setprocname function in standard library, or am I
>>> missing something?
>>
>> Dunno. Before we start guessing, would you care to explain what you
>> think "setprocname" ought to do?
On 6/14/2010 12:31 PM, Thomas Jollans wrote:
On 06/14/2010 08:41 PM, Tomasz Pajor wrote:
Hello,
Why there is no setprocname function in standard library, or am I
missing something?
why should there be one? what should it do?
This sounds like you expect there to be a wrapper of a C system cal
On Jun 14, 7:30 pm, Stephen Hansen wrote:
> On 6/14/10 11:47 AM, lkcl wrote:
>
> > On Jun 14, 4:17 pm, Stephen Hansen wrote:
> > yes. that's effectively what pyjs applications are about: as much
> > HTML/CSS as you can stand, then _absolute_ pure javascript from there-
> > on in... only using a
On 14/06/2010 7:29 PM, rantingrick wrote:
On Jun 14, 10:55 am, Tim Golden wrote:
On 14/06/2010 16:31, loial wrote:
What is the easiest way to send a text file to a networked
printer from a python script running on windows?
http://timgolden.me.uk/python/win32_how_do_i/print.html
H
On 14-Jun-10 10:01 AM, Marco Nawijn wrote:
On 14 jun, 13:19, 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?
On Mon, Jun 14, 2010 at 1:25 PM, Antoine Pitrou wrote:
> That was not my question. My question was whether there was a reason to
> rewrite a separate OpenSSL-accessing library rather than contributing to
> improve the "hashlib" and "ssl" modules which are already part of the
> Python stdlib.
The
Grant Edwards wrote:
On 2010-06-14, Tomasz Pajor wrote:
Why there is no setprocname function in standard library, or am I
missing something?
Dunno. Before we start guessing, would you care to explain what you
think "setprocname" ought to do?
I think it's to set the name of the OS process.
On 6/14/10 1:53 PM, fortunatus wrote:
> For crying out loud, the best any compiler can do is make optimal
> machine language. Many C compilers can do that over most inputs. So
Is that why I had to use assembly code instead of C for some parts of my
previous projects?
There was even one example
On 6/14/10 12:16 PM, lkcl wrote:
> from thereon in, you DO NOT do *any* HTML page "GETs": it's a one-
> time static HTML/JS load, and THAT's IT.
>
> the only further interaction that we recommend is first and foremost
> JSONRPC (and so, out of the 30 or so pyjamas wiki pages, about 10 of
> them
On 06/14/2010 09:15 AM, Steven D'Aprano wrote:
> On Mon, 14 Jun 2010 12:24:59 +1000, Ben Finney wrote:
>
>> With ‘reduce’ gone in Python 3 [0]
> ...
>> [0] http://docs.python.org/py3k/library/functions.html>
>
>
> It's not gone, it's just resting.
It's pinin' for the fjords.
(sorry ^^)
>
>
On 06/14/2010 08:41 PM, Tomasz Pajor wrote:
> Hello,
>
> Why there is no setprocname function in standard library, or am I
> missing something?
why should there be one? what should it do?
This sounds like you expect there to be a wrapper of a C system call or
other libc function called "setprocn
On 6/14/10 11:47 AM, lkcl wrote:
> On Jun 14, 4:17 pm, Stephen Hansen wrote:
> yes. that's effectively what pyjs applications are about: as much
> HTML/CSS as you can stand, then _absolute_ pure javascript from there-
> on in... only using a compiler (python-to-javascript) so as not to go
> comp
On 2010-06-14, Tomasz Pajor wrote:
> Why there is no setprocname function in standard library, or am I
> missing something?
Dunno. Before we start guessing, would you care to explain what you
think "setprocname" ought to do?
--
Grant Edwards grant.b.edwardsYow! If I pul
Hello,
Why there is no setprocname function in standard library, or am I
missing something?
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 14, 5:57 pm, rantingrick wrote:
> I'll have to very much agree with this assessment Stephan. There
> exists not elegant API for these "web" UI's. The people over at
> SketchUp (my second love after python) have this problem on a daily
> bases with WebDialogs. Even the javascript gurus have
On 14/06/2010 02:35, alex23 wrote:
Python isn't PHP, its built-ins are nowhere near as exhaustive,
something like 80ish vs 2000+ functions? Not exactly a huge lookup
burden.
The problem is not learning Python, its learning about the standard
libraries that Python gives you access to!
.NET
On 6/14/10 9:57 AM, Nathan Huesken wrote:
Hi,
tempfile.mkstemp returns a file name and a file descriptor (as returned
by os.open). Can I somehow convert this descriptor to a file object?
Thomas Jollans' advice is likely best, but to answer your specific question, use
os.fdopen() to make a fil
"Antti \"Andy\" Ylikoski" writes:
> 12.6.2010 22:54, Pascal J. Bourguignon kirjoitti:
>> bolega writes:
>>>
[PAIP]
>>>
>>> Is there anything in this old norvig book that makes it worth
>>> pursuing as a text ?
>>
>> Yes.
>>
>
> I agree with his criticism that the book is "old", mine stems f
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 in fact doesn't.
>
>> is convenient, b
On Jun 14, 5:57 pm, rantingrick wrote:
> On Jun 14, 11:17 am, Stephen Hansen wrote:
>
> > And the recursive flow of the DOM is powerful
>
> This style of speaking reminds me of our former hillbilly president
> (no not Clinton, he was the eloquent hillbilly!)
the one with an IQ of 185?
> No i a
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.
> is convenient, but insecure.
In which case, it isn't actually convenient, i
On Jun 14, 4:17 pm, Stephen Hansen wrote:
> >> Did you just call DOM manipulation simple with a straight face? I don't
> >> think I've ever seen that before.
>
> > *lol* - wait for it: see below. summary: once you start using high-
> > level widgets: yes. without such, yeah you're damn right.
1 - 100 of 178 matches
Mail list logo