The biggest store online
www.thebuckstore.com
http://www.thebuckstore.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote:
> On Mon, May 19, 2014 at 4:53 PM, wrote: > Could
> you kindly help? Sure. Either start writing code and then post when you have
> problems, or investigate some shell commands (xcopy in Windows, cp in Linux,
> maybe scp) that c
On Monday, May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote:
> On Mon, May 19, 2014 at 4:53 PM, wrote: > Could
> you kindly help? Sure. Either start writing code and then post when you have
> problems, or investigate some shell commands (xcopy in Windows, cp in Linux,
> maybe scp) that c
On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote:
> On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On
> Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, May
> 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > >
On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote:
> On Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday,
> May 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > > On Mon, May 19,
> 2014 at 4:53 PM, wrote: > Could you kindly hel
On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote:
> On Tuesday, May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On
> Monday, May 19, 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday, May
> 19, 2014 12:31:05 PM UTC+5:30, Chris Angelico wrote: > >
On Tuesday, May 20, 2014 5:54:47 PM UTC+5:30, Satish ML wrote:
> On Tuesday, May 20, 2014 5:51:19 PM UTC+5:30, Satish ML wrote: > On Tuesday,
> May 20, 2014 11:27:01 AM UTC+5:30, Rustom Mody wrote: > On Monday, May 19,
> 2014 2:32:36 PM UTC+5:30, Satish ML wrote: > On Monday,
On Wednesday, May 21, 2014 6:59:40 AM UTC+5:30, Rustom Mody wrote:
> On Tuesday, May 20, 2014 9:35:10 PM UTC+5:30, Jagadeesh N. Malakannavar
> wrote: > Hi Satish, > > Can you please send python part in plain text format?
> Python code here is > > difficult to read. It would be helpful to read
>
On Wednesday, May 21, 2014 2:42:49 PM UTC+5:30, Peter Otten wrote:
> Satish ML wrote: [Regarding subject: let's see if we can trigger a buffer
> overflow somewhere ;)] > On Wednesday, May 21, 2014 6:59:40 AM UTC+5:30,
> Rustom Mody wrote: >> On Tuesday, May 20, 2
Hi,
What does "return Wrapper" do in the following piece of code? Which method does
it invoke?
I mean "return Wrapper" invokes __init__ method?
def Tracer(aClass):
class Wrapper:
def __init__(self, *args, **kargs):
self.fetches = 0
self.wrapped = aClass(*args,
Which line of code is printing [4] and [4, 5, 6, 7] in the output?
from tracer import Tracer
@Tracer
class MyList(list):
def __init__(self, *args):
print("INSIDE MyList")
print(*args)
x = MyList([1, 2, 3])
x.append(4)
print(x.wrapped)
WrapList = Tracer(list)
x = WrapList([4, 5,
Which line of code is printing [4] and [4, 5, 6, 7] in the output?
from tracer import Tracer
@Tracer
class MyList(list):
def __init__(self, *args):
print("INSIDE MyList")
print(*args)
x = MyList([1, 2, 3])
x.append(4)
print(x.wrapped)
WrapList = Tracer(list)
x = WrapLis
Which line of code is printing [4] and [4, 5, 6, 7] in the output?
from tracer import Tracer
@Tracer
class MyList(list):
def __init__(self, *args):
print("INSIDE MyList")
print(*args)
x = MyList([1, 2, 3])
x.append(4)
print(x.wrapped)
WrapList = Tracer(list)
x = WrapLis
Actual program:
def Tracer(aClass):
class Wrapper:
def __init__(self, *args, **kargs):
self.fetches = 0
self.wrapped = aClass(*args, **kargs)
def __getattr__(self, attrname):
print('Trace: ' + attrname)
self.fetches += 1
Hi,
Which lines of code prints [4] and [4, 5, 6, 7] in the output?
Output:
CARST
Trace: display
1
Spam!Spam!Spam!Spam!Spam!Spam!Spam!Spam!
[1]
Trace: name
1
Bob
Trace: pay
2
2000
Trace: name
1
Sue
Trace: pay
2
6000
Trace: name
3
Bob
Trace: pay
4
2000
[4, 2]
INSIDE MyList
[1, 2, 3]
Trace: appen
Hi,
TypeError: 'NoneType' object is not callable? Why this error and what is the
solution?
Code:
class SuperMeta:
def __call__(self, classname, supers, classdict):
print('In SuperMeta.call: ', classname, supers, classdict, sep='\n...')
Class = self.__New__(classname, supers, c
Hi,
>>>import struct
>>>file = open('data.bin', 'rb')
>>>bytes = file.read()
>>> records = [bytes([char] * 8) for char in b'spam']
Traceback (most recent call last):
File "", line 1, in
records = [bytes([char] * 8) for char in b'spam']
File "", line 1, in
records = [bytes([char] * 8
Hi,
Code:
import os, time
def child(pipeout):
zzz = 0
while True:
time.sleep(zzz)
msg = ('Spam %03d' % zzz).encode()
os.write(pipeout, msg)
zzz = (zzz+1) % 5
def parent():
pipein, pipeout = os.pipe()
if os.fork() == 0:
child(pipeout)
else
On 18 June 2018 at 22:18, Etienne Robillard wrote:
> Hi,
>
> Quick question: Does anyone of you know what is the effect of enabling
> gc.enable() in sitecustomize.py when using PyPy? Can it reduce latency for
> long-lived WSGI applications?
>
gc is enabled by default. you only need to use gc.ena
Hi folks,
I'm not quite sure where to ask this, but this is my closest guess.
I've written a web service based on the newf micro-framework and it uses
wsgiref.simple_server. I'm noticing that it's not returning response
codes properly (after fixing a bug in newf). Instead, it just
closes the TC
sorry,
too much to remember) but frankly, I've never looked at a problem and
said, "you know, Scheme would be perfect for this". Maybe if I was
writing a program that did optimizing transformations on abstract
syntax trees, or something. And since Scheme has never come in handy,
I
I started to review static blog-like HTML generators, and found myself
overwhelmed with how many there were. I narrowed it down to pythonic
ones, and then realized I had to pick a markup language and templating
language, of which there are several pythonic implementations...
The results of my inq
Hello,
Historically, I have used scripting languages like python for typical
uses, but they tend to not fare very well at system programming; for
close interfacing with the operating system, I'm often forced to use a
language like C. This is undesirable to me.
I do not think this has to be the c
On Mon, Jul 20, 2009 at 04:10:35PM +0200, Hrvoje Niksic wrote:
> To emulate the os-module-type calls, it's better to raise exceptions
> than return negative values:
>
> > def setresuid(ruid, euid, suid):
> > return _setresuid(__uid_t(ruid), __uid_t(euid), __uid_t(suid))
>
> def setresuid(ruid
On Fri, Aug 21, 2009 at 03:13:12PM -0500, tra...@subspacefield.org wrote:
> Since the authors of the paper (Wagner et. al.) are proposing a new
> set of APIs to make all of this clearer, I'm thinking that I will
> create a module specifically for dropping permissions.
I've created the module here:
Hello,
I was wondering if there was something like Perl's "require" that allows
you to import a file whose name is specified at run-time. So far I've only
seen imports of modules that are put in the standard module include path.
I'm interested in three seperate problems:
1) being able to import
26 matches
Mail list logo