I'm trying to save an image from a Flash AS3 to my server as a jpg
file. I found some PHP code to do this, but I want to do this in
Python. I'm not quite sure how to convert the following code to
Python. It's mainly the $GLOBALS["HTTP_RAW_POST_DATA"] part I don't
know how to convert.
source:
ht
Alex Snast wrote:
Hi guys, I've been learning python in the past week and tried to
implement a q.sort algorithm in python as follows:
def quick_sort(l, first, last)
if first < last:
q = partition(a, first, last)
You changed the name of the list to be sorted from 'l' to 'a'.
Please
Mark Dickinson wrote:
On Sep 24, 6:18 pm, Terry Reedy <[EMAIL PROTECTED]> wrote:
If there is not now, there could be in the future, and the decimal
authors are committed to follow the standard wherever it goes.
Therefore, the safe course, to avoid possible future deprecations due to
doing too mu
On Sep 25, 10:08 pm, Ben Finney <[EMAIL PROTECTED]> wrote:
> Howdy all,
>
> Writing a Python program to become a Unix daemon is relatively
> well-documented: there's a recipe for detaching the process and
> running in its own process group. However, there's much more to a Unix
> daemon than simply
Howdy all,
Writing a Python program to become a Unix daemon is relatively
well-documented: there's a recipe for detaching the process and
running in its own process group. However, there's much more to a Unix
daemon than simply detaching. At a minimum, a well-behaved Unix daemon
must at least:
*
On Thu, Sep 25, 2008 at 8:57 PM, David Di Biase <[EMAIL PROTECTED]> wrote:
> I have a list with about 1000-1500 sub-lists which look like so:
> list[-0.28817955213290786, 3.6693631467403929, 'H', 31.31225233035784]]
>
> The first and second values are Angstrom units specifying the location of a
> p
On Sep 25, 9:51 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I have string like follow
> 12560/ABC,12567/BC,123,567,890/JK
>
> I want above string to group like as follow
> (12560,ABC)
> (12567,BC)
> (123,567,890,JK)
>
> i try regular expression i am able to get first two not the third one.
In article <[EMAIL PROTECTED]>,
Grant Edwards <[EMAIL PROTECTED]> wrote:
>
>AFAICT, _everybody_ is bad at programming C++.
>
>One begins to suspect it's not the fault of the programmers.
http://www.netfunny.com/rhf/jokes/98/May/stroustrup.html
--
Aahz ([EMAIL PROTECTED]) <*> ht
In article <[EMAIL PROTECTED]>,
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>On 21 Sep 2008 22:39:47 GMT, Steven D'Aprano
><[EMAIL PROTECTED]> declaimed the following in
>comp.lang.python:
>>
>> What do you call such a class?
>
> A wasted definition... The same functionality is achieved by
On Sep 25, 9:04 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote:
> On Sep 25, 6:01 pm, [EMAIL PROTECTED] wrote:
>
> > My SimpleXMLRPCServer program prints to stderr a line like
> > this for each request:
>
> > ohm..pixar.com - - [25/Sep/2008 17:57:50] "POST /RPC2 HTTP/1.0" 200 -
>
> > Is there a way to
"Tim Arnold" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I have a bunch of processes to run and each one needs its own working
> directory. I'd also like to know when all of the processes are
> finished.
Thanks for the ideas everyone--I now have some news tools in the toolbox.
T
On Sep 25, 6:01 pm, [EMAIL PROTECTED] wrote:
> My SimpleXMLRPCServer program prints to stderr a line like
> this for each request:
>
> ohm..pixar.com - - [25/Sep/2008 17:57:50] "POST /RPC2 HTTP/1.0" 200 -
>
> Is there a way to turn this logging off? I have RTFM and can't
> seem to find a way to do
I have a list with about 1000-1500 sub-lists which look like so:
list[-0.28817955213290786, 3.6693631467403929, 'H', 31.31225233035784]]
The first and second values are Angstrom units specifying the location of a
particle. What I'd like to do is determine the distance between the smallest
and larg
On Wed, Sep 24, 2008 at 3:07 AM, sturlamolden <[EMAIL PROTECTED]> wrote:
> On Sep 23, 3:44 pm, Robert Singer <[EMAIL PROTECTED]> wrote:
>
>> Well, python is not a number crunching language. However much we would
>> like it to be (we would ? :-).
>
>> No scripting language is.
>
> Not even Matlab, R
My SimpleXMLRPCServer program prints to stderr a line like
this for each request:
ohm..pixar.com - - [25/Sep/2008 17:57:50] "POST /RPC2 HTTP/1.0" 200 -
Is there a way to turn this logging off? I have RTFM and can't
seem to find a way to do so.
Many TIA!
Mark
--
Mark Harrison
Pixar Animation S
On Sep 25, 2:24 pm, [EMAIL PROTECTED] wrote:
> Hi,
>
> sorry, I have these ideas for longer than 10 years, please have a look on it
> and comment on it. Thx.
>
>
>
> This is another proposal for introducing types into Python.
>
> There are many reasons for incorporating types into Python, but
Please help. Questions based on snippet of code below.
1) when myTestCase is deleted, is just the pointer deleted or the
entire instance with all of its data and data structure deleted?
2) What is the practice for deleted the object and recovering the
memory it occupies?
3) If
On Sep 25, 8:40 am, "Max Ivanov" <[EMAIL PROTECTED]> wrote:
> At any time in main process there are shouldn't be no more than two copies of
> data
> (one original data and one result).
>From the looks of it you are storing a lots of references to various
copies of your data via the async set.
--
Fredrik Lundh wrote:
Stef Mientki wrote:
> 1. I've a multitab editor.
> 2. When a breakpoint is reached,
> 3. I check if the file specified in pdb output, is already open in one
> of the editor tabs,
> 4. if not, I open a new tab with the correct file,
> 5. I focus the correct editor tab and jum
news from
http://www.mrchat.net/myblog/myblog/small-accidents-mean-big-trouble-for-supercollider.html
Small Accidents Mean Big Trouble for Supercollider
Image
Scientists expect startup glitches in the massive, complex machines
they use to smash atoms.
But the unique qualities of the world's l
Stef Mientki wrote:
> 1. I've a multitab editor.
> 2. When a breakpoint is reached,
> 3. I check if the file specified in pdb output, is already open in one
> of the editor tabs,
> 4. if not, I open a new tab with the correct file,
> 5. I focus the correct editor tab and jump to the line specifie
NEW YORK - Financial markets grew more upbeat Thursday as political
leaders said they struck an agreement in principle on a massive
spending plan to revive the crippled financial system. The Dow Jones
industrial average jumped about 200 points on optimism about the
bailout, and demand for safe-have
On Sep 25, 8:38 pm, Stef Mientki <[EMAIL PROTECTED]> wrote:
> I found a partial workaround that is good enough for me:
>
> def Get_Windows_Filename ( FileName ) :
> if os.name == 'nt' :
> File = os.path.splitext ( FileName .lower ())[0]
> return glob.glob ( File + '.p?' )
> return FileN
On Fri, Sep 26, 2008 at 6:14 AM, <[EMAIL PROTECTED]> wrote:
> Typed parameters. Method-Declaration-filtered-typed parameters. That's what
> I'm thinking of.
Why do we need this (rubbish) ?
Seriously. The use-case is far too small.
And don't invent use-cases either.
Instead of coming up with idea
On Fri, Sep 26, 2008 at 8:20 AM, Lawrence D'Oliveiro
<[EMAIL PROTECTED]> wrote:
> Object orientation IS procedural.
Correction: OOP is Imperative.
--JamesMills
--
--
-- "Problems are solved by method"
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 25, 4:04 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Thu, 25 Sep 2008 16:24:58 -0300, <[EMAIL PROTECTED]> escribió:
>
> > sorry, I have these ideas for longer than 10 years, please have a look
> > on it
> > and comment on it. Thx.
>
> > This is another proposal for introducing
In message <[EMAIL PROTECTED]>, candide wrote:
> "... Python supports OOP and classes to an extent, but is not a full OOP
> language."
Python allows you to use OO-style constructs, but doesn't force you to have
inheritance and subclasses if you don't want to. Duck typing is usually a
much more fl
In message
<[EMAIL PROTECTED]>, Craig
Allen wrote:
> It is clearly possible to write procedural code... that is,
> Python does not force object oriented syntax or concepts on you ...
Object orientation IS procedural.
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 25, 6:34 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Thu, 25 Sep 2008 15:51:28 +0100, [EMAIL PROTECTED] wrote:
> > I have string like follow
> > 12560/ABC,12567/BC,123,567,890/JK
>
> > I want above string to group like as follow (12560,ABC)
> > (12567,BC)
> > (123,567,890,JK
Diez B. Roggisch wrote:
> Well, you certainly want a desktop-orientied Linux for users, so you
> chose ubuntu - but then on the server you go with a more stable debian
> system. Even though the both have the same technical and even package
> management-base, they are still incompatible wrt to packa
Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>Also note that there are quite a couples cases where the library authors
>themselves cannot predict which exception types may be raised - as soon
>as the library functions expect callback functions, file-like or
>dict-like or whatever-like objects
For 64bit python, there's no need to look at lib/lib-dynload because
libraries for 64bit should be in
lib64/lib-dynload. Having module search path which point to libraries
the python can not understand
is, IMHO, wrong.
On Fri, Sep 26, 2008 at 3:03 AM, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> On
Ross Ridge wrote:
> Plenty of people were quick to say that the exception should be passed
> through to the caller. No one said this behaviour should be documented.
> There may be little practical difference bewteen calling sys.exit()
> after printing an error and progating an exception if no one
Stef Mientki schrieb:
OKB (not okblacke) wrote:
Stef Mientki wrote:
import Module1
d:\data_python_25\pylab_works\module1.py(3)()
-> print "hello"
(Pdb)
Then we know if PDB is really the culprit.
So pdb is the problem.
Yep, it does the same t
that is a very valid point, but it seemed that Scott has homogeneous
environment: Debian/Ubuntu so my post was relative to the original request.
I agree that when you throw Windows/MacOS into the mix things
become "interesting". But then it's better when your developers develop on
server/platform
> Now as you can see I'm passing my list object to both functions along
> with their first, last indices
I cannot really see that. More specifically, it isn't definite what the
type of the "a" argument is, nor does the specific type of "a" matter
for the algorithm. It could be a list, or it could
Diez B. Roggisch wrote:
> - different OS. I for one don't know about a package management tool
> for windows. And while our servers use Linux (and I as developer as
> well), all the rest of our people use windows. No use telling them to
> apt-get instal python-imaging.
that is a very valid poin
Diez B. Roggisch wrote:
> Dmitry S. Makovey schrieb:
>> Scott Sharkey wrote:
>>> Any insight into the best way to have a consistent, repeatable,
>>> controllable development and production environment would be much
>>> appreciated.
>>
>> you have just described OS package building ;)
Except that
Alex Snast:
> However i have no idea how to access the values of a data structure that
> doesn't allow random access.<
Well, a sorting algorithm can work in-place, sorting the position of
the items inside the given collection, or it can create a new data
structure with the items (in Python all it
[EMAIL PROTECTED] schrieb:
Gabriel Genellina wrote:
En Thu, 25 Sep 2008 16:24:58 -0300, <[EMAIL PROTECTED]> escribió:
sorry, I have these ideas for longer than 10 years, please have a look
on it
and comment on it. Thx.
This is another proposal for introducing types into Python.
You got the
George Sakkis wrote:
> I'm not sure if the approach below deals with all the issues, but one
> thing it does is decouple completely the proxied objects from the
> proxy:
> class _ProxyMeta(type):
It smelled to me more and more like metaclass too, I was just trying to
avoid them :)
Your code
Dmitry S. Makovey schrieb:
Scott Sharkey wrote:
Any insight into the best way to have a consistent, repeatable,
controllable development and production environment would be much
appreciated.
you have just described OS package building ;)
I can't speak for everybody, but supporting multiple pl
Nick Craig-Wood schrieb:
Scott Sharkey <[EMAIL PROTECTED]> wrote:
B> Our development group at work seems to be heading towards adopting
python as one of our standard "systems languages" for internal
application development (yeah!). One of the issues that's come up is
the problem with apt
En Thu, 25 Sep 2008 09:49:31 -0300, Almar Klein <[EMAIL PROTECTED]>
escribió:
Hi,
I want to start "python -i" from a subprocess and change its stdin
stream,
so I get control over the commands I feed the interpreter.
I thought just changing sys.stdin to my custom file-like object would
suff
[EMAIL PROTECTED] a écrit :
Gabriel Genellina wrote:
En Thu, 25 Sep 2008 16:24:58 -0300, <[EMAIL PROTECTED]> escribió:
sorry, I have these ideas for longer than 10 years, please have a look
on it
and comment on it. Thx.
This is another proposal for introducing types into Python.
You got the
On Sep 25, 12:24 pm, [EMAIL PROTECTED] wrote:
> def whoisthethief("List" x):
> return iknowit(x)
>
> def whoisthethief("String" x, "String" y):
> return iknowit([x,y])
>
I dunno if this is very Pythonic in nature, but I've done things like
rebinding methods dynamically.
ex:
>>> def test(a):
Scott Sharkey <[EMAIL PROTECTED]> wrote:
B> Our development group at work seems to be heading towards adopting
> python as one of our standard "systems languages" for internal
> application development (yeah!). One of the issues that's come up is
> the problem with apt (deb packages) vs egg
A. Joseph wrote:
If my question was not understandable, tell me and stop pointing me to
such page.
Your question was completely understandable, but so incredibly vague as
to be a waste of bandwidth to send and a waste of time to answer.
What kind of matrix programming do you refer to?
Many
Scott Sharkey schrieb:
Hello all,
Our development group at work seems to be heading towards adopting
python as one of our standard "systems languages" for internal
application development (yeah!). One of the issues that's come up is
the problem with apt (deb packages) vs eggs, vs virtual env
Dmitry S. Makovey wrote:
you have just described OS package building ;)
I can't speak for everybody, but supporting multiple platforms (PHP, Perl,
Python, Java) we found that the only way to stay consistent is to use OS
native packaging tools (in your case apt and .deb ) and if you're missing
s
Gabriel Genellina wrote:
> En Thu, 25 Sep 2008 16:24:58 -0300, <[EMAIL PROTECTED]> escribió:
>
>> sorry, I have these ideas for longer than 10 years, please have a look
>> on it
>> and comment on it. Thx.
>>
>> This is another proposal for introducing types into Python.
>
> You got the terminolo
Alex Snast a écrit :
Hi guys, I've been learning python in the past week and tried to
implement a q.sort algorithm in python
Is that for learning purpose ? Else, it's just a waste of time...
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 25, 3:36 pm, "Dmitry S. Makovey" <[EMAIL PROTECTED]> wrote:
> Aaron "Castironpi" Brady wrote:
> >> I kept this part of the problem out of this discussion as I'm pretty sure
> >> I can fill those in once I figure out the basic problem of
> >> auto-population of proxy methods since for each c
Thank you very much Gerhard and Terry.
I am trying to add undefined state to some Boolean operator. Here is what I
tried to do and It is not working:
class _3ph:
def __init__(self):
self.value = 0
def __xor__(self,item):
if self.value==2 or item==2:
return 2
En Thu, 25 Sep 2008 16:24:58 -0300, <[EMAIL PROTECTED]> escribió:
sorry, I have these ideas for longer than 10 years, please have a look
on it
and comment on it. Thx.
This is another proposal for introducing types into Python.
You got the terminology wrong. Python had "types" from the very
Scott Sharkey wrote:
> Any insight into the best way to have a consistent, repeatable,
> controllable development and production environment would be much
> appreciated.
you have just described OS package building ;)
I can't speak for everybody, but supporting multiple platforms (PHP, Perl,
Pytho
On Sep 25, 2:39 am, Tim Roberts <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> >On Sep 23, 4:16 pm, [EMAIL PROTECTED] wrote:
> >> On Sep 22, 11:24 pm, Tim Roberts <[EMAIL PROTECTED]> wrote:
> >> > [EMAIL PROTECTED] wrote:
> >> > >On Sep 19, 6:42 pm, [EMAIL PROTECTED] wrote:
> >> > >> On Se
Aaron "Castironpi" Brady wrote:
>> I kept this part of the problem out of this discussion as I'm pretty sure
>> I can fill those in once I figure out the basic problem of
>> auto-population of proxy methods since for each class/method those are
>> going to be nearly identical. If I can autogenerate
I found a partial workaround that is good enough for me:
def Get_Windows_Filename ( FileName ) :
if os.name == 'nt' :
File = os.path.splitext ( FileName .lower ())[0]
return glob.glob ( File + '.p?' )
return FileName
This will translate the filename into the correct case, but not the pat
Hi guys, I've been learning python in the past week and tried to
implement a q.sort algorithm in python as follows:
def quick_sort(l, first, last)
if first < last:
q = partition(a, first, last)
quick_sort(a, first, q - 1)
quick_sort(a, q + 1, last)
def partition(a, fir
Aaron "Castironpi" Brady a écrit :
(snip)
You should write it like this:
class B(object):
@A.proxy
def bmethod(self,a):
Making 'proxy' a class method on A.
That's exactly what I wanted to avoid here : making B depending on A.
(snip)
I agree that __setattr__ is the canonical solut
Hi,
sorry, I have these ideas for longer than 10 years, please have a look on it
and comment on it. Thx.
This is another proposal for introducing types into Python.
There are many reasons for incorporating types into Python, but there is
also a lot of concern about doing so because of des
You can do it with regexps too :
>--
import re
to_watch = re.compile(r"(?P\d+)[/](?P[A-Z]+)")
final_list = to_watch.findall("12560/ABC,12567/BC,123,567,890/JK")
for number,word in final_list :
print "number:%s -- word: %s"%(num
Hello all,
Our development group at work seems to be heading towards adopting
python as one of our standard "systems languages" for internal
application development (yeah!). One of the issues that's come up is
the problem with apt (deb packages) vs eggs, vs virtual environments.
We're probab
Ok, so I actually found a solution to this out there, and decided I'd
post back here and share it.
import pygtk
pygtk.require('2.0')
import gtk
import ctypes
from ctypes import *
from comtypes import client
from ctypes.wintypes import *
import gobject
def delete_event(widget,event,data=None):
On Sep 25, 1:22 pm, "Dmitry S. Makovey" <[EMAIL PROTECTED]> wrote:
> Aaron "Castironpi" Brady wrote:
> > You should write it like this:
>
> > class B(object):
> > [EMAIL PROTECTED]
> > def bmethod(self,a):
>
> > Making 'proxy' a class method on A.
>
> makes sense.
>
> > In case different
Aaron "Castironpi" Brady wrote:
> You should write it like this:
>
> class B(object):
> @A.proxy
> def bmethod(self,a):
>
> Making 'proxy' a class method on A.
makes sense.
> In case different A instances (do
> you have more than one BTW?)
yep. I have multiple instances of class
On Sep 25, 10:41 am, js <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> Is it possible to change module search path (PYTHONPATH) built-in to
> Python interpreter?
> I thought I can change it with configure --libdir but it didn't work for me.
> I also tried patching around python source tree replacing lib
Hello, this is Goran Barac from town Banjaluka,
Bosnia and Herzegovina, also known as Cvrcko
Does anyone know of any bars in town where I can
swallow a bucket of cum? It can be either dog,
horse or human cum. Also, does anyone know of
any sex bars where people will shit in your mouth?
I also like e
On Sep 25, 12:19 pm, Bruno Desthuilliers wrote:
> Dmitry S. Makovey a écrit :
>
>
>
> > Thanks Bruno,
>
> > your comments were really helpful (so was the "improved" version of code).
>
> > My replies below:
>
> > Bruno Desthuilliers wrote:
> >>> So decorators inside of B just identify that those m
HI!
Anybody here with experience in accessing Lotus Domino with Python via
DIIOP? In particular I'd like to be able to register Notes users with a
Python script. Preferrably without having to use Win32 COM although it
would be better than nothing.
Adding address Notes book entries via LDAP is pos
On Thu, 25 Sep 2008 15:51:28 +0100, [EMAIL PROTECTED] wrote:
> I have string like follow
> 12560/ABC,12567/BC,123,567,890/JK
>
> I want above string to group like as follow (12560,ABC)
> (12567,BC)
> (123,567,890,JK)
>
> i try regular expression i am able to get first two not the third one.
> ca
On Sep 25, 3:09 am, Bruno Desthuilliers wrote:
> Aaron "Castironpi" Brady a écrit :
>
> > A Python walks into a bar and orders a complex data structure.
> > Bartender says, "One line or two?"
>
> I don't think that one will have much success in parties !-)
It doesn't go to any. =P
--
http://mail
Dmitry S. Makovey a écrit :
Thanks Bruno,
your comments were really helpful (so was the "improved" version of code).
My replies below:
Bruno Desthuilliers wrote:
So decorators inside of B just identify that those methods will be
proxied by A. On one hand from logical standpoint it's kind of
I have string like follow
12560/ABC,12567/BC,123,567,890/JK
I want above string to group like as follow
(12560,ABC)
(12567,BC)
(123,567,890,JK)
i try regular expression i am able to get first two not the third one.
can regular expression given data in different groups
--
http://mail.python.org
OKB (not okblacke) wrote:
Stef Mientki wrote:
import Module1
d:\data_python_25\pylab_works\module1.py(3)()
-> print "hello"
(Pdb)
Then we know if PDB is really the culprit.
So pdb is the problem.
Yep, it does the same thing for me.
Ap
Thanks Bruno,
your comments were really helpful (so was the "improved" version of code).
My replies below:
Bruno Desthuilliers wrote:
>> So decorators inside of B just identify that those methods will be
>> proxied by A. On one hand from logical standpoint it's kind of weird to
>> tell class th
Stef Mientki wrote:
> >>> import Module1
> > d:\data_python_25\pylab_works\module1.py(3)()
> -> print "hello"
> (Pdb)
>
>> Then we know if PDB is really the culprit.
>>
>>
> So pdb is the problem.
Yep, it does the same thing for me.
>> Apart from that, is that really a problem that th
Diez B. Roggisch wrote:
> Dmitry S. Makovey schrieb:
>> Dmitry S. Makovey wrote:
>>> In my real-life case A is a proxy to B, C and D instances/objects, not
>>> just one.
>>
>> forgot to mention that above would mean that I need to have more than one
>> decorator function like AproxyB, AproxyC and
Hi list,
Is it possible to change module search path (PYTHONPATH) built-in to
Python interpreter?
I thought I can change it with configure --libdir but it didn't work for me.
I also tried patching around python source tree replacing lib to lib64
but it didn't work either.
Adjusting sys.path direc
On Sep 25, 11:14 am, Carsten Haese <[EMAIL PROTECTED]> wrote:
> import sys
> print sys.executable
This is exactly what I needed. Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
My goal is to start and stop separate Linux processes from a python
program by specific PID. The output of these processes needs to have
their stderr and stdout piped to a particular file, respectively.
I've been able to make this work with subprocess.Popen only if the
shell variable i
[EMAIL PROTECTED] wrote:
> Hello,
>
> I'm trying to find out in a script where the location of the current
> python is.
import sys
print sys.executable
HTH,
--
Carsten Haese
http://informixdb.sourceforge.net
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm trying to find out in a script where the location of the current
python is. (I'm writing an installer script in python for a simple
server application, so i'm going to do a find-replace in a bunch of
files to give them the absolute path of the python binary.
One thought might be to use
To who cares, I found out what my problem was.
Testing interactivity with Tk in a normal Python console gave proper
results, just like IPython. Also running "python -i" gives the
interactive behaviour I wanted. But running "python -i" from a subprocess
did not. I was startled, because it worked ou
On Sep 25, 1:51 am, Tino Wildenhain <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Sep 24, 10:12 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote:
> >> [EMAIL PROTECTED] wrote:
> >>> On Sep 24, 9:44 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote:
>
> Could you please define exactly
Hi all,
I am trying to develop a game-server in python. Design is as
following:
- ConnectionManager - handling/distributing incoming connections
- IOManager - handling IO recv/send operations on sockets.
(inheritable)
- Socket - basic async socket object
- SocketServer - handling multiple socket
Diez B. Roggisch wrote:
Yes I'm pretty sure, two reasons:
1. when I perform a step_into, jumping into a file that doesn't have
breakpoints itself (meaning my program doesn't even know of this file),
pdb returns a lowercase filename
What has that to do with potential output postprocessing?
ANNOUNCING
eGenix.com pyOpenSSL Distribution
Version 0.7.0-0.9.8i-1
An easy to install and use repackaged distribution
of the pyOpenSSL Python interfa
On Sep 24, 9:36 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Wed, 24 Sep 2008 08:46:56 -0700, Mike Driscoll wrote:
> > Hi,
>
> > I have been using the following code for over a year in one of my
> > programs:
>
> > f = urllib2.urlopen('https://www.companywebsite.com/somest
On Sep 24, 7:08 pm, Michael Palmer <[EMAIL PROTECTED]> wrote:
> On Sep 24, 11:46 am, Mike Driscoll <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I have been using the following code for over a year in one of my
> > programs:
>
> > f = urllib2.urlopen('https://www.companywebsite.com/somestring')
>
Duncan Booth:
> Microsoft added a common set of extension methods which work on
> databases, xml, builtin sequences and can be easily extended to include
> other custom sequences.
When the processing is done in memory, LINQ may also work well with
multi-core CPUs, see PLINQ.
Bye,
bearophile
--
ht
Hi,
I want to start "python -i" from a subprocess and change its stdin stream,
so I get control over the commands I feed the interpreter.
I thought just changing sys.stdin to my custom file-like object would
suffice, but this does not work. Neither does changing sys.__stdin__.
I guess the interpr
I'm playing with pyprocessing module and found that it eats lot's of
memory. I've made small test case to show it. I pass ~45mb of data to
worker processes and than get it back slightly modified. At any time
in main process there are shouldn't be no more than two copies of data
(one original data a
On 25 Sep, 14:22, Duncan Booth <[EMAIL PROTECTED]> wrote:
> No Python's syntax is fine. The api's aren't as consistent though:
> Microsoft added a common set of extension methods which work on
> databases, xml, builtin sequences and can be easily extended to include
> other custom sequences.
That
sturlamolden <[EMAIL PROTECTED]> wrote:
> On 25 Sep, 10:08, Duncan Booth <[EMAIL PROTECTED]> wrote:
>
>> A lot of what LINQ does is already easy to do in Python, and most of
>> the rest can probably be added fairly easily, but it does provide a
>> consistent framework which may make it easier to
> Yes I'm pretty sure, two reasons:
> 1. when I perform a step_into, jumping into a file that doesn't have
> breakpoints itself (meaning my program doesn't even know of this file),
> pdb returns a lowercase filename
What has that to do with potential output postprocessing?
> 2. rpdb2 (probably
Ronnie Kwok wrote:
Yes, I am running the script under linux and it will be doing some
processing before copying it over to the samba mount.
It's totally fine to mount it with os.sys(...) approach but I am just
thinking if there's other option.
I'm not really a Linux person but from all I ca
On 24 Sep, 19:37, "Tim Arnold" <[EMAIL PROTECTED]> wrote:
> Am I missing something? Is there a better way?
Use the pyprocessing module (to appear as standard module
multiprocessing in Python 2.6). It has almost the same interface as
Python's threading and Queue standard modules, except you are wo
On Sep 25, 12:11 am, alex23 <[EMAIL PROTECTED]> wrote:
> On Sep 25, 3:37 am, "Tim Arnold" <[EMAIL PROTECTED]> wrote:
>
> > Am I missing something?
>
> Do you mean something other than the replies you got the last time you
> asked the exact same question?
>
> http://groups.google.com/group/comp.lang
1 - 100 of 144 matches
Mail list logo