David Socha wrote:
> Robert Kern wrote:
>>However, keeping track of the sizes of your arrays and the
>>size of your datatypes may be a bit much to ask.
>
> Exactly. Building a duplicate mechanism for tracking this informaiton
> would be a sad solution. Surely Python has access to the amount o
Why don't you use a class ?
class MyGen(object):
def __iter__(self):
for i in range(2):
yield "I know who I am %s" % self
gen_obj = MyGen()
for x in gen_obj:
print x
For language lawyers: strictly speaking gen_obj is not a generator
object (since it is
restartable) b
I wonder where the "else" goes in try..except..finally...
--
http://mail.python.org/mailman/listinfo/python-list
manstey wrote:
> Thanks. I didn't know eval could do that. But why do many posts say
> they want a solution that doesn't use eval?
>
Because it is a sledgehammer: capable of driving in nails or breaking
rocks. Most times people say 'I want to use eval' they are using it to
drive nails and some
also se topic named
'problem(s) with import from parent dir: "from ../brave.py import
sir_robin" '
I use this every day now:
sys.path.append("../../py_scripts")
best wishes,
Per
--
http://mail.python.org/mailman/listinfo/python-list
Mitch <[EMAIL PROTECTED]> writes:
> John Bokma wrote:
>> Mitch <[EMAIL PROTECTED]> wrote:
>>
>>> John Bokma wrote:
>>> [...]
You're mistaken. All you need to do is report it. After some time Xah
will either walk in line with the rest of the world, or has found
somewhere else to yel
Mitch wrote:
> Sure, each server has terms and conditions that apply, doesn't mean you
> should be able to ban people from speaking just because you don't like
> what they say.
You are a silly person.
BugBear
--
http://mail.python.org/mailman/listinfo/python-list
I have installed numpy-0.9.6 I haven't tried 0.9.8.
--
http://mail.python.org/mailman/listinfo/python-list
Does anyone have a copy of the wincerapi module.It appears not to
be in the win32 extensions anymore, and I've googled lots but not
found it available anywhere.
Thanks
--
Tim Williams
--
http://mail.python.org/mailman/listinfo/python-list
I'm trying to compile a perfectly valid regex, but get the error
message:
r =
re.compile(r'([^\d]*)(\d{1,3}\.\d{0,2})?(\d*)(\,\d{1,3}\.\d{0,2})?(\d*)?.*')
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/lib/python2.3/sre.py", line 179, in compile
return _compile(patter
Title: Qrcode and python
I’am loooking for some information on qrcode module for python (making qrcode in python qrcode is a special kind of barcode)
Or i only found japanese documentation
If someone have english or french documentation i twill be nice
Regards
Bussiere
I have some proble
mp wrote:
> X-No-Archive
> How do I go about modifying one character in a string elegantly?
> In other words, I want a function that will change '' to 'aaza',
> given the index 2 of the character in the string.
>
> Also, how do I do this when dealing with a file ; which file mode
> should I us
hello together !!!
I would like to know if it is available the com component for
wmeditor in python language?
This program is called windows media file editor, lets users to create marks
into a movie and belongs to installation packet of windows encoder.
thank you
--oOo---
REGISTER NOW FOR PATTERN RECOGNITION EVENTS THIS SUMMER, 2006
Early Registration Deadline for ISSPR is 25 MAY, 2006
___
4TH INTERNATIONAL SUMMER SCHOOL ON PATTERN RECOGNITION (ISSPR, 2006)
23-28 JULY, UK
http://www.PatternRecognitionSchool.com
NEW...EXTENDED Early Bird Deadli
is there any module to access
TimesTen in-memory database using python?
--
http://mail.python.org/mailman/listinfo/python-list
hello :) could some1 help me plzzz is there a python script to connect my windows pc with my s60 mobile via bluetooth on both so i could send text files from my pc and recivee them on my phone thank u so much . .
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call ra
I've asked these questions on idle-dev with no answer.
1. How can code tell whether it is being run from Idle's debugger?
2. How can code being run from Idle's debugger simulate a breakpoint, such
as pdb.set_trace() does?
Yes, pdb.set_trace() does work, but I want to enable idle's debugging
con
hi
my friend has written a loop like this
cnt = 0
files = [a,b,c,d]
while cnt < len(files) :
do_something(files[cnt])
i told him using
for fi in files:
do_something(fi)
is better, because the while loop method makes another call to
len..which is slower..
am i partly right? or is there a bet
> "Carl J. Van Arsdall" <[EMAIL PROTECTED]> (CJVA) wrote:
>CJVA> Hey everyone, another question for the list. In particular i'm
>CJVA> looking for comments on some of the distributed technologies
>CJVA> supported in python. Specifically, I'm looking at XML-RPC, RPyC,
>CJVA> CORBA, and Twisted.
> r =
> re.compile(r'([^\d]*)(\d{1,3}\.\d{0,2})?(\d*)(\,\d{1,3}\.\d{0,2})?(\d*)?.*')
...
> sre_constants.error: nothing to repeat
The error gives something away (like any good error message should)
You're attempting to repeat something that may not exist. In
this case, it's the last question-m
Le Jeudi 25 Mai 2006 01:10, vous avez écrit :
> The ratio of two durations has no meaning???
Oh, sorry, sure it has, I wanted to say "it has no meaning in timedelta
provided arithmetic".
It's a ratio (no dimension) not a duration. In that sense the expected result
should be a float, and the propo
In article <[EMAIL PROTECTED]>,
gisleyt <[EMAIL PROTECTED]> wrote:
>I'm trying to compile a perfectly valid regex, but get the error
>message:
>
> r =
>re.compile(r'([^\d]*)(\d{1,3}\.\d{0,2})?(\d*)(\,\d{1,3}\.\d{0,2})?(\d*)?.*')
>Traceback (most recent call last):
> File "", line 1, in ?
> File "
oups ididn't post it to the good thread :)
Le Jeudi 25 Mai 2006 01:10, vous avez écrit :
> The ratio of two durations has no meaning???
Oh, sorry, sure it has, I wanted to say "it has no meaning in timedelta
provided arithmetic".
It's a ratio (no dimension) not a duration. In that sense the expec
Is there something like a .pythoninitrc which can run whenever we start
Python
that can load a file with many sys.path.append(), etc?
If not is there some way to modify the Python shell constructor and
destructor?
Thanks in advance:
Michael yanowitz
-Original Message-
From: [EMAIL PRO
hi
it seems to me like the webbrowser command
webbrowser.open('http://www...', new=0)
does not work as advertised: all the urls open in seperate windows
regardless of the default browser (safari, firefox, mozilla). i do not
have this problem on windows...
can anyone help?
thank you in advance.
On 25/05/2006 7:58 PM, gisleyt wrote:
> I'm trying to compile a perfectly valid regex, but get the error
> message:
>
> r =
> re.compile(r'([^\d]*)(\d{1,3}\.\d{0,2})?(\d*)(\,\d{1,3}\.\d{0,2})?(\d*)?.*')
> Traceback (most recent call last):
> File "", line 1, in ?
> File "/usr/lib/python2.3/sr
I guess that your version is faster, although the difference would be
negligible in this small example. The for loop is probably optimized
for speed under the hood (it is written in C), while the 'while' loop
is performed in python, which is much slower.
Much more important than the speed differen
[EMAIL PROTECTED] schrieb:
> hi
> my friend has written a loop like this
> cnt = 0
> files = [a,b,c,d]
> while cnt < len(files) :
>do_something(files[cnt])
>
> i told him using
> for fi in files:
>do_something(fi)
>
> is better, because the while loop method makes another call to
> len..w
On 25/05/2006 9:27 PM, [EMAIL PROTECTED] wrote:
> hi
> my friend has written a loop like this
> cnt = 0
> files = [a,b,c,d]
> while cnt < len(files) :
>do_something(files[cnt])
>
> i told him using
> for fi in files:
>do_something(fi)
>
> is better, because the while loop method makes ano
wow!...thanks for both replies..and yes you are right, he comes from a
world of C and java...i have successfully "brainwashed" him to try out
coding in python...haha.
So he has written his first program in python and i have roughly toook
a glance at it and saw what he did.. i pointed out his "mista
In article <[EMAIL PROTECTED]>,
Tim X <[EMAIL PROTECTED]> wrote:
> I also seem to remember a page on his website from a couple of years
> back in which he admits enjoying trolling and starting flame wars -
> but I can't find it now, so maybe I'm mistaken.
http://web.archive.org/web/200502041726
In article <[EMAIL PROTECTED]>,
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Lou Pecora schrieb:
[cut]
> >
> > Then do something like (I know this isn't right, I'm just trying to
> > convey the idea of what I would like)
> >
> > mf=myfile()
> >
> > mf=open("Afile","r")
> > Possible in so
Michael Yanowitz wrote:
> Is there something like a .pythoninitrc which can run whenever we start
> Python
> that can load a file with many sys.path.append(), etc?
> If not is there some way to modify the Python shell constructor and
> destructor?
>
> Thanks in advance:
> Michael yanowitz
Yes, t
In article <[EMAIL PROTECTED]>,
Maric Michaud <[EMAIL PROTECTED]> wrote:
> Le Mercredi 24 Mai 2006 22:04, Diez B. Roggisch a écrit :
> > Nope, not in that way. But you might consider writing a proxy/wrapper
> > for an object. That looks like this (rouch sketch from head):
> >
> > class FileWrappe
Can you recommend a book or a link for a person learning Python on
Windows who does not yet know C# or .NET?
Thanks,
rick
--
http://mail.python.org/mailman/listinfo/python-list
I have new a list , when it hava large number of values, I wonna to
delete all the values in it,how to do?
And, if a list have 801 values, I want to get its values index from 300
to 400, could use list1[300:400],are right me?
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I'm trying to make a unicode friendly regexp to grab sentences
> reasonably reliably for as many unicode languages as possible, focusing
> on european languages first, hence it'd be useful to be able to refer
> to any uppercase unicode character instead of just the typica
On 2006-05-24, Robert Kern <[EMAIL PROTECTED]> wrote:
> Yes, unfortunately, much of the documentation was written by people who were
> very familiar with the Matlab interfaces that these functions are emulating.
Since I've never used matlab, I'm a bit clueless.
>> For example one parameter is sp
On Thu, 25 May 2006, Thomas Thomas wrote:
> I am trying to access a mapped network drive folder. everything works
> fine normally. But when i run the application as service I am getting
> the error
The error is on the line:
for filename in os.listdir(folder):#line 25
and I have to ass
Hi. I've noticed that when i select a large number of files (> 400)
using tkFileDialog.Open i get an empty list. Does anyone knows the
limits of that interface regarding the maximum number of files that can
be selected, or the maximum length of the resulting list? Does anyone
have any work around?
Larry Elmore wrote:
> No shit. Lately it seems that for every "spam" post of Xah's, there's
> at three or more by John *to all the same newsgroups* bitching about
> Xah's use of bandwidth. Pot, meet kettle. I'm killfiling Xah for being
> a useless twit and killfiling John for being a prick about
Hi everyone,
I have two test scripts, an encoder and a decoder.
The encoder, listed below, works perfectly.
import re,sys
output = open(r'e:\pycode\out_test.txt','wb')
for line in open(r'e:\pycode\sigh.txt','rb') :
output.write( re.sub(r'([^\w\s])', lambda s: '%%%2X' %
ord(s.group()), line)
"mp" <[EMAIL PROTECTED]> wrote:
> X-No-Archive
> How do I go about modifying one character in a string elegantly?
> In other words, I want a function that will change '' to 'aaza',
> given the index 2 of the character in the string.
Strings are immutable, so you can't change a string. The be
I know this isn't helpful at all, but now I'm curious. What's wincer?
--
http://mail.python.org/mailman/listinfo/python-list
On 25 May 2006 07:06:02 -0700, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I know this isn't helpful at all, but now I'm curious. What's wincer?
>
Its a module which provides an interface to the win32 CE Remote API
:)
--
http://mail.python.org/mailman/listinfo/python-list
> I have new a list , when it hava large number of values, I wonna to
> delete all the values in it,how to do?
something like this will probably help.
x = [1,2,3,4,5,6,7,8,9]
y = x
list([x.pop() for z in xrange(len(x))])
print x, y # [] []
> And, if a list have 801 values, I want to get its v
Ravi Teja wrote:
> Also, IronPython cannot access CPython libraries. So it cannot be used
> as a drop-in replacement for CPython in most non-trivial apps. Python
> for .NET however allows you to both use both CPython and .NET
> libraries.
It will be able to access the standard libraries, as long a
I came up with this solution for subclassing the file object and making
some easy I/O functions (much thanks to Maric Michaud for pointing me in
the right direction). My goal was to make I/O of variables easy and in
a form that I could easily visually examine the file (which I often need
to do
python wrote:
> I have new a list , when it hava large number of values, I wonna to
> delete all the values in it,how to do?
> And, if a list have 801 values, I want to get its values index from 300
> to 400, could use list1[300:400],are right me?
>
del list1[:]
del list1[:-1000] # keep max.
Dennis Lee Bieber wrote:
> On Wed, 24 May 2006 17:24:08 GMT, John Salerno
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>> Dennis Lee Bieber wrote:
>>
>>> I may have gotten slightly confused
>> That's my job. :)
>
> Okay:
>
> You have gotten me slig
John Machin wrote:
> remove empty lines
> at the end of files. Also ensure the last line ends with a newline.
don't those two things conflict with one another? or is the newline
added after empty lines are removed?
--
http://mail.python.org/mailman/listinfo/python-list
Andrew Robert <[EMAIL PROTECTED]> wrote:
> ValueError: invalid literal for int(): %
>
> Does anyone see what I am doing wrong?
>
Try getting rid of the lamba, it might make things clearer and it
simplifies debugging. Something like(this is just a sketch):
def callback(match):
print match.
[John Machin, quoting reindent.py docs]
>> remove empty lines at the end of files. Also ensure the last line ends
>> with a newline.
[John Salerno]
> don't those two things conflict with one another?
No. This is the repr of a file with (3) empty lines at the end:
"a file\n\n \n \t\n"
Draen Gemic wrote:
> Larry Elmore wrote:
> > No shit. Lately it seems that for every "spam" post of Xah's, there's
> > at three or more by John *to all the same newsgroups* bitching about
> > Xah's use of bandwidth. Pot, meet kettle. I'm killfiling Xah for being
> > a useless twit and killfili
mik3 <[EMAIL PROTECTED]> wrote:
> So he has written his first program in python and i have roughly toook
> a glance at it and saw what he did.. i pointed out his "mistakes" but
> couldn't convince him otherwise. Anyway , i am going to show him your
> replies..
You might want to show him this t
> del list1[:]
thank you for that reply. I never thought of [:] cause to be me I
thought it would immediately make a copy of the list or if anything
that it would delete a copy so I never played with it. nice :)
> del list1[:-1000] # keep max. last 1000 appended items in the list
> list1[:]=r
Zameer wrote:
> I wonder where the "else" goes in try..except..finally...
>
try / except / else / finally
See the PEP:
http://www.python.org/dev/peps/pep-0341/
Kent
--
http://mail.python.org/mailman/listinfo/python-list
>> And, if a list have 801 values, I want to get its values index from 300
>> to 400, could use list1[300:400],are right me?
>
> 300 will be included in your slice whereas the 400th index will be
> excluded. you will ultimately have 99 items in your slice.
No, he'll have 100 items in the slice...
I am a little confused because I write most of my programs in a script
editor but not all the code executes unless I run it from the
inneractive shell. Am I doing something wrong? A good example is
"return 1" in a script returns nothing where as in the inneractive
shell it will return 1 or true.
*bump* :)On 5/24/06, Patrick M. Nielsen <[EMAIL PROTECTED]> wrote:
Oh, and, apologies for the "inpythonic" nature of this issue.On 5/24/06, Patrick M. Nielsen
<[EMAIL PROTECTED]
> wrote:Hey guys.I have begun playing with the Simple MUD server example from the Stackless website
( http://www.stackle
Tim Peters wrote:
> [John Machin, quoting reindent.py docs]
>>> remove empty lines at the end of files. Also ensure the last line ends
>>> with a newline.
>
> [John Salerno]
>> don't those two things conflict with one another?
>
> No. This is the repr of a file with (3) empty lines at the end:
Max Erickson wrote:
> Try getting rid of the lamba, it might make things clearer and it
> simplifies debugging. Something like(this is just a sketch):
>
>
> max
>
Yeah.. trying to keep everything on one line is becoming something of a
problem.
To make this easier, I followed something from
TrustCommerce (www.trustcommerce.com) has an easy to use
Python interface (they other interfaces as well) that I've
used on a large Zope project recently.
-Larry Bates
Ed Leafe wrote:
> I may have an opportunity to develop an online ordering system for a
> client, and will have the ability to
Thomas Thomas wrote:
> Hi All,
>
> I am trying to access a mapped network drive folder. everything works fine
> normally. But when i run the application as service I am getting the error
>
> Traceback (most recent call last):
> File "docBoxApp.py", line 129, in ?
> File "core\PollFiles.pyc",
> No, he'll have 100 items in the slice... 300, 301,... 399 that's 100 items.
you're right, sorry. [300:400] would return 100 items but the item at
index 400 would not return. I suggested if he wanted it to try
[300:401] as the last slice index is excluded from the return.
Thanks for that :)
--
the interactive shell will immediatly show the result of an expression
without you having to explicitly print the result. In all text editor,
you will have to print the result if you wish to see it.
--
http://mail.python.org/mailman/listinfo/python-list
Andrew Robert <[EMAIL PROTECTED]> wrote:
> import re,base64
>
> # Evaluate captured character as hex
> def ret_hex(value):
> return base64.b16encode(value)
>
> def ret_ascii(value):
> return base64.b16decode(value)
>
Note that you can just do this:
from base64 import b16encode,b16dec
mp wrote:
> X-No-Archive
> How do I go about modifying one character in a string elegantly?
> In other words, I want a function that will change '' to 'aaza',
> given the index 2 of the character in the string.
>
> Also, how do I do this when dealing with a file ; which file mode
> should I us
Baurzhan Ismagulov wrote:
> Thanks for the idea! I think this should work for the example I sent.
> However, I have more than one module, and I want to log only l01. How
> can I do that?
>
I don't know what your logger hierarchy looks like: you could perhaps
log to child loggers of l01 ("l01.XXX
Dennis Lee Bieber wrote:
> If that "return 1" is the last line in the program, at the most it
> will be treated as a return code to the OS signaling that the program
> succeeded or failed. I'm not really sure how Python handles a return
> from main program.
It's a syntax error.
--
Robert K
gunsupancar wrote:
> is there any module to access
> TimesTen in-memory database using python?
>
I didn't find native one, but TimesTen has ODBC
interface that you could use.
http://www.compwisdom.com/topics/ODBC
--
http://mail.python.org/mailman/listinfo/python-list
Larry Bates <[EMAIL PROTECTED]> writes:
> IMHO the most elegant method is something like:
>
> def switchchar(srcstring, position, character):
> b=list(srcstring)
> b[2]=character
> return ''.join(b)
If the strings or large or you're doing it a lot, the array module is
likely more effi
robert wrote:
> some packages like paramiko use the logging. I get this messages:
> "No handlers could be found for logger xxx" on stderr
>
> Why is un-initialized logging allowed to chatter at all?
You could invoke logging.basicConfig with a level of CRITICAL. This
will generally filter out logg
List comprehensions appear to store their temporary result in a
variable named "_[1]" (or presumably "_[2]", "_[3]" etc for nested
comprehensions)
In other words, there are variables being put into the namespace with
illegal names (names can't contain brackets). Can't someone come up
with a bette
If anyone is successfully compiling Pyton 2.3 on an SCO OpenServer 5
box, I'd appreciate hearing from you on how you managed to do it. So
far, I'm unable to get a python that doesn't coredump.
--
http://mail.python.org/mailman/listinfo/python-list
Dra¾en Gemiæ <[EMAIL PROTECTED]> wrote:
> There is a person on USENET, particularly in hr. hierarchy that
> posts under three different accounts. Sometimes he argues with
> himself, and sometimes event supports himself :-)
>
> Maybe we have the similar case here.
Wouldn't amaze me if some of the
In article <[EMAIL PROTECTED]>,
manstey <[EMAIL PROTECTED]> wrote:
>
>Thanks. I didn't know eval could do that. But why do many posts say
>they want a solution that doesn't use eval?
Because it is a security risk!
eval("os.system('rm -rf /')")
--
Aahz ([EMAIL PROTECTED]) <*> h
Ravi Teja wrote:
> Also, IronPython cannot access CPython libraries. So it cannot be used
> as a drop-in replacement for CPython in most non-trivial apps. Python
> for .NET however allows you to both use both CPython and .NET
> libraries.
It will be able to access the standard libraries, as long a
I have compiled and installed sybase-.037 , the module to add sybase to
python. However, when I try to use it I get Import error:
/usr/local/lib/python2.3/site-packages/sybasect.so
undefined symbol: cs_dt_info
I've seen some posts on the internet with other people having this issue.
But nothi
In article <[EMAIL PROTECTED]>,
Rony Steelandt <[EMAIL PROTECTED]> wrote:
>
>1.Python for Dummies
> Maruch Stef;Maruch Aahz - Hungry Minds Inc,U.S. - 408 pages - 08 2006
Possibly September if we get behind, but since Neal Norwitz is trying to
accelerate the release of 2.5, that's not too likely.
I'm running SLES 9.3 on Tyan with 2 single core 64-bit Opteron & 8 GB of
memory and SWAP.
OCS-15_0
sybperl-2.18
python 2.3.5
"Dan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I have compiled and installed sybase-.037 , the module to add sybase to
>python. However, when I tr
I am using distutils to comiple/install a c extension created with
SWIG. However I need to be able to specify the output filename from
gcc. I tried doing this with the "extra_compile_args" and
"extra_link_args" by setting them equal to "-o MyOutputName.so" but
that didn't work. Can someone show
"John Bokma" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dra¾en Gemiæ <[EMAIL PROTECTED]> wrote:
>
>> There is a person on USENET, particularly in hr. hierarchy that
>> posts under three different accounts. Sometimes he argues with
>> himself, and sometimes event supports himsel
Hi Everyone,
Thanks for all of your patience on this.
I finally got it to work.
Here is the completed test code showing what is going on.
Not cleaned up yet but it works for proof-of-concept purposes.
#!/usr/bin/python
import re,base64
# Evaluate captured character as hex
def ret_hex(va
Piet> Python Web services developer: Messaging technologies compared
Piet> http://www.ibm.com/developerworks/library/ws-pyth9/
Note a couple things. One, the article is four years old. You can't assume
the various technologies have remained static since then. Two, the authors
apparentl
"Geoffrey Summerhayes" <[EMAIL PROTECTED]> wrote:
> After you kill Navarth, will it be nothing but gruff and deedle
> with a little wobbly to fill in the chinks?
Comparing Navarth with Xah is a huge insult to Jack Vance. You should be
ashamed of yourself for even thinking about it, let alone wri
>>On 5/24/06, Patrick M. Nielsen <[EMAIL PROTECTED] > wrote:
>> >
>> > Hey guys.
>> >
>> > I have begun playing with the Simple MUD server example from the
>> > Stackless website
>> > ( http://www.stackless.com/Members/rmtew/code/mud.py )
>> > and it's all good so far, however, I've come to notice
vbgunz wrote:
>> I have new a list , when it hava large number of values, I wonna to
>> delete all the values in it,how to do?
>
> something like this will probably help.
>
> x = [1,2,3,4,5,6,7,8,9]
> y = x
>
> list([x.pop() for z in xrange(len(x))])
>
> print x, y # [] []
if you don't know
Lonnie> List comprehensions appear to store their temporary result in a
Lonnie> variable named "_[1]" (or presumably "_[2]", "_[3]" etc for
Lonnie> nested comprehensions)
Known issue. Fixed in generator comprehensions. Dunno about plans to fix
it in list comprehensions. I believe a
On 26/05/2006 2:38 AM, John Salerno wrote:
[snip]
>
> So the line below the last line of the file isn't actually considered an
> empty line, even though you can move the cursor to it in a text editor?
That line doesn't exist in a file *until* you (a) type something into
the editor and (b) save
Hi all,
I'm currently working on a secure Pickle-like module, Cerealizer,
http://home.gna.org/oomadness/en/cerealizer/index.html
Cerealizer has a pickle-like interface (load, dump, __getstate__,
__setstate__,...), however it requires to register the class you want
to "cerealize", by calling cereal
Xah Lee wrote:
> I'm sorry to trouble everyone. But as you might know, due to my
> controversial writings and style, recently John Bokma lobbied people to
> complaint to my web hosting provider. After exchanging a few emails, my
> web hosting provider sent me a 30-day account cancellation notice la
On 25 May 2006 13:22:21 -0700, [EMAIL PROTECTED] wrote:
>Hi all,
>
>I'm currently working on a secure Pickle-like module, Cerealizer,
>http://home.gna.org/oomadness/en/cerealizer/index.html
>Cerealizer has a pickle-like interface (load, dump, __getstate__,
>__setstate__,...), however it requires to
Robert Boyd wrote:
> On 24 May 2006 08:29:57 -0700, Rune Strand <[EMAIL PROTECTED]> wrote:
>
>
>>I can just declare my support. Reading Mr. Bokmas comments below [*]
>>certainly makes my suport stronger.
>>
>
>
> I sent an email in support of Xah, which I wouldn't have bothered to
> do had I no
What am I doing wrong here?
>>> import operator
>>> import itertools
>>> vals = [(1, 11), (2, 12), (3, 13), (4, 14), (5, 15),
... (1, 16), (2, 17), (3, 18), (4, 19), (5, 20)]
>>> for k, g in itertools.groupby(iter(vals), operator.itemgetter(0)):
... print k, [i for i in g]
...
1 [(1, 11)]
On 26/05/2006 4:33 AM, Andrew Robert wrote:
> Hi Everyone,
>
>
> Thanks for all of your patience on this.
>
> I finally got it to work.
>
>
> Here is the completed test code showing what is going on.
Consider doing what you should have done at the start: state what you
are trying to achieve.
Fredrik Lundh wrote:
> vbgunz wrote:
>
>>> I have new a list , when it hava large number of values, I wonna to
>>> delete all the values in it,how to do?
>>
>> something like this will probably help.
>>
>> x = [1,2,3,4,5,6,7,8,9]
>> y = x
>>
>> list([x.pop() for z in xrange(len(x))])
>>
>> print x
Hi.
I'm pleased to announce the thirty-second development release of PythonCAD,
a CAD package for open-source software users. As the name implies,
PythonCAD is written entirely in Python. The goal of this project is
to create a fully scriptable drafting program that will match and eventually
excee
I am not happy with any of the Python-as-a-First-Language books out
there. My vague inclination to write one has not yet formed into a firm
intention, but it's close.
Of the books that are out there, Learning Python and Dive Into Python
are best for the hobbyist as opposed to classroom setting, bu
Hello I found this very strange; is it a bug, is it a "feature", am I
being naughty or what?
>>> foo = [[0, 0], [0, 0]]
>>> baz = [ [0]*2 ] * 2
>>> foo
[[0, 0], [0, 0]]
>>> baz
[[0, 0], [0, 0]]
>>> foo[0][0]=1
>>> baz[0][0]=1
>>> foo
[[1, 0], [0, 0]]
>>> baz
[[1, 0], [1, 0]]
Why on earth does foo
1 - 100 of 159 matches
Mail list logo