------->>>FREE MAC<<<-------

2010-03-21 Thread sam
http://michellemichaeldiscounts.com/16801.html -- http://mail.python.org/mailman/listinfo/python-list

Re: StringChain -- a data structure for managing large sequences of chunks of bytes

2010-03-21 Thread Zooko O'Whielacronx
Folks: I failed to make something sufficiently clear in my original message about StringChain. The use case that I am talking about is not simply that you need to accumulate a sequence of incoming chunks of data, concatenate them together, and then process the entire result. If that is all you nee

Re: DreamPie - The Python shell you've always dreamed about!

2010-03-21 Thread kuru
Thanks for the shell. It is nice alternative , however I am not ready to give up Ipython :) If the code ends with a comment line your shell is giving an error. Feature request: It would be nice to have numbered lines in the code section, it makes it hard to find problem line Feature request: Load

[ANN] onlinepayment v1.0.0 released

2010-03-21 Thread Sam Tregar
onlinepayment v1.0.0 - a generic Python API for making online payments This module provides an API wrapper around a variety of payment providers. Using this module you can write code that will work the same regardless of the payment provider in use. Examples:: from onlinepayment import Onlin

Re: Best practise for dual stack programming in python

2010-03-21 Thread Terry Reedy
On 3/21/2010 8:12 PM, Jimmy Stewpot wrote: Hello, The organisation that I currently work for has a large number of 'legacy' tools and scripts which rely entirely on IPv4. Many of them have been written and not documented etc. The organisation is in the process of moving to a dual stack environme

Re: execute bash builtins in python

2010-03-21 Thread alex goretoy
Thank you for the great suggestions. Steve Holden that is a good one, I will try to adapt my application to your suggestion. This way I don't have to source .bashrc when it could do all that for me including other things that it does in the background. Thank you so much. Nobody, I was not aware of

Re: add an entry to twentyquestions.org (please)

2010-03-21 Thread Ben Finney
twenty questions writes: > add an entry to http://www.twentyquestions.org (please) Don't spam groups with your off-topic begging for a closed database silo (please) -- \“Our nylons cost more than common, but you'll find that they | `\ are best in the long

Re: How to automate accessor definition?

2010-03-21 Thread kj
In <4ba66311$0$27838$c3e8...@news.astraweb.com> Steven D'Aprano writes: >Then, in your __init__ method, to initialise an attribute use: >self.__dict__['attr'] = value >to bypass the setattr. Ah, that's the trick! Thanks! ~K -- http://mail.python.org/mailman/listinfo/python-list

Best practise for dual stack programming in python

2010-03-21 Thread Jimmy Stewpot
Hello, The organisation that I currently work for has a large number of 'legacy' tools and scripts which rely entirely on IPv4. Many of them have been written and not documented etc. The organisation is in the process of moving to a dual stack environment over the next 3 months. With that in mi

[ANN] PyInstaller 1.4

2010-03-21 Thread Giovanni Bajo
Hello, I'm happy to announce PyInstaller 1.4, the first formal release after several years of quiet development. http://www.pyinstaller.org === What it is === PyInstaller is a program that converts (packages) Python programs into stand-alone executables, under Windows, Linux, and Mac OS X.

Re: using Python distutils bdist_msi to create installer for large complicated package

2010-03-21 Thread Bill Janssen
Martin v. Löwis wrote: > > I've been re-thinking the UpLib Windows installer technology, and it > > occurred to me to wonder why I can't just use the nice bdist_msi module > > in Python to build my packages. I took a look, and it seems almost > > doable. Presumably you wrote it? > > Correct. >

add an entry to twentyquestions.org (please)

2010-03-21 Thread twenty questions
add an entry to http://www.twentyquestions.org (please) -- http://mail.python.org/mailman/listinfo/python-list

Re: GC is very expensive: am I doing something wrong?

2010-03-21 Thread Lawrence D'Oliveiro
In message , Terry Reedy wrote: > No one has discovered a setting > of the internal tuning parameters for which there are no bad patterns > and I suspect there are not any such. This does not negate Xavier's > suggestion that a code change might also solve your problem. Could it be that for impl

Re: Method / Functions - What are the differences?

2010-03-21 Thread John Posner
On 3/21/2010 5:34 PM, Aahz wrote: In article, John Posner wrote: Bruno (and anyone else interested) -- As I promised/threatened, here's the *start* of a write-up on properties, aimed at non-advanced Python programmers: http://www.jjposner.net/media/python-properties-0310.pdf I'm interes

sell:nike shoes$32,ed hardy(items),jean$30,handbag$35

2010-03-21 Thread jhghjg jhgjh
http://etootoo.com";>http://www.etootoo.com free shipping competitive price http://etootoo.com/articleshow.asp? articleid=26123">wholesale nikeshoes http://etootoo.com/articleshow.asp?articleid=40466";>nike wholesale http://etootoo.com/articleshow.asp?articleid=22981";>china wholesale jordan snea

Re: Method / Functions - What are the differences?

2010-03-21 Thread John Bokma
a...@pythoncraft.com (Aahz) writes: > In article , > John Posner wrote: >> >>Bruno (and anyone else interested) -- >> >>As I promised/threatened, here's the *start* of a write-up on >>properties, aimed at non-advanced Python programmers: >> >> http://www.jjposner.net/media/python-properties-0

Re: using Python distutils bdist_msi to create installer for large complicated package

2010-03-21 Thread Martin v. Löwis
> I've been re-thinking the UpLib Windows installer technology, and it > occurred to me to wonder why I can't just use the nice bdist_msi module > in Python to build my packages. I took a look, and it seems almost > doable. Presumably you wrote it? Correct. > UpLib is a big package, with lots o

Re: should writing Unicode files be so slow

2010-03-21 Thread Ben Finney
djc writes: > I shall concentrate on finding an optimal time to upgrade from Python > 2.6. Note that Python 2.7, though nearly ready, is not yet released http://www.python.org/download/releases/>. -- \“… Nature … is seen to do all things Herself and through | `\ herself

using Python distutils bdist_msi to create installer for large complicated package

2010-03-21 Thread Bill Janssen
Martin, I've been re-thinking the UpLib Windows installer technology, and it occurred to me to wonder why I can't just use the nice bdist_msi module in Python to build my packages. I took a look, and it seems almost doable. Presumably you wrote it? UpLib is a big package, with lots of Python an

Re: Method / Functions - What are the differences?

2010-03-21 Thread Steve Holden
Aahz wrote: > In article , > John Posner wrote: >> Bruno (and anyone else interested) -- >> >> As I promised/threatened, here's the *start* of a write-up on >> properties, aimed at non-advanced Python programmers: >> >> http://www.jjposner.net/media/python-properties-0310.pdf > > I'm interest

Re: [RELEASED] Python 3.1.2

2010-03-21 Thread Terry Reedy
On 3/21/2010 1:12 PM, Benjamin Peterson wrote: On behalf of the Python development team, I'm joyful to announce the second bugfix release of the Python 3.1 series, Python 3.1.2. Thanks for the work. This bug fix release fixes numerous issues found in 3.1.1, and is considered a production rele

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK GIR

2010-03-21 Thread Terry Reedy
On 3/21/2010 12:55 PM, Zooko O'Whielacronx wrote: On Sat, Mar 20, 2010 at 1:27 PM, Brian J Mingus wrote: Moderating this stuff requires moderating all messages. Not quite. GNU Mailman comes with nice features to ease this task. You can configure it so that everyone who is currently subscribe

Re: How to keep effects of image filters going for some seconds?

2010-03-21 Thread Terry Reedy
On 3/21/2010 3:23 AM, Ren Wenshan wrote: Hello, every pythoner. Firstly, I want to mention that English is my second language, so maybe there are some sentences which makes you confused, sorry. I have been learning Panda3D, an open source 3D engine, these days. Now, I'm trying to write a small

Re: Method / Functions - What are the differences?

2010-03-21 Thread Aahz
In article , John Posner wrote: > >Bruno (and anyone else interested) -- > >As I promised/threatened, here's the *start* of a write-up on >properties, aimed at non-advanced Python programmers: > > http://www.jjposner.net/media/python-properties-0310.pdf I'm interested, but not interested enou

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK GIR

2010-03-21 Thread D'Arcy J.M. Cain
On Sun, 21 Mar 2010 12:57:50 -0700 Chris Rebert wrote: > Fortunately, Google has now shut down the spam blog anyway. Until next time. -- D'Arcy J.M. Cain | Democracy is three wolves http://www.druid.net/darcy/| and a sheep voting on +1 416 425 1212 (DoD#0082)(

device identification

2010-03-21 Thread Omer Ihsan
i have installed pyusb now and run the sample usbenum.pyi have 3 usb ports on my PC but the results show 6 outputs to dev.filename..they are numbers like 001 or 005 etc and they changed when i plugged in devices...(i am no good with the usb standards)i just want to identify each device/

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-21 Thread Chris Rebert
On Sun, Mar 21, 2010 at 12:01 PM, Steve Holden wrote: > AON LAZIO wrote: >> Relax guys, let have fun once in a while >> > [further repetition of the spamming URLs] > > facepalm. Fortunately, Google has now shut down the spam blog anyway. Cheers, Chris -- http://mail.python.org/mailman/listinfo/

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-21 Thread Brian J Mingus
On Sun, Mar 21, 2010 at 10:55 AM, Zooko O'Whielacronx wrote: > On Sat, Mar 20, 2010 at 1:27 PM, Brian J Mingus > wrote: > > Moderating this stuff requires moderating all messages. > > Not quite. GNU Mailman comes with nice features to ease this task. You > can configure it so that everyone who is

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-21 Thread AON LAZIO
Relax guys, let have fun once in a while On Sat, Mar 20, 2010 at 12:18 AM, Naeem wrote: > "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY > FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY > RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK GI

Re: How to automate accessor definition?

2010-03-21 Thread Steve Holden
Christian Heimes wrote: > Steve Holden wrote: >> You may well find that namedtuple is faster than what you put together >> yourself, as the collections module is implemented in C. > > But namedtuple isn't, Steve. Namedtuple is a class generator that > creates fast and efficient classes. > Ah, rig

Re: How to automate accessor definition?

2010-03-21 Thread Patrick Maupin
On Mar 21, 11:57 am, kj wrote: > > Just accessing attributes looks a bit dangerous to me, due to bugs > like typing > >   i.typo = 'foo' > > when what you meant is > >   i.type = 'foo' > > I tried fixing this by mucking with __setattr__, but I didn't hit > on a satisfactory solution (basically, I

Re: How to automate accessor definition?

2010-03-21 Thread Christian Heimes
Steve Holden wrote: > You may well find that namedtuple is faster than what you put together > yourself, as the collections module is implemented in C. But namedtuple isn't, Steve. Namedtuple is a class generator that creates fast and efficient classes. -- http://mail.python.org/mailman/listinfo

Re: Regexp problem when parsing a string

2010-03-21 Thread MRAB
Alessandro Marino wrote: I'm a beginner and I was trying to write a program to parse recursively all file names in a directory specified as parameter. The problem is that I get a "None" printed to stdout when a file is positively matched. While when the file name doesn't match the regexp the o

Re: Regexp problem when parsing a string

2010-03-21 Thread Steven D'Aprano
On Sun, 21 Mar 2010 19:12:18 +0100, Alessandro Marino wrote: > Could anyone help me to figure out why "None" appears in the putput? I get: "Attachment not shown: MIME type application/octet-stream; filename a.py" Posting attachments to Usenet is tricky. Many newsgroups filter out anything they

Re: How to automate accessor definition?

2010-03-21 Thread Steven D'Aprano
On Sun, 21 Mar 2010 16:57:40 +, kj wrote: > Just accessing attributes looks a bit dangerous to me, due to bugs like > typing > > i.typo = 'foo' > > when what you meant is > > i.type = 'foo' That's the price you pay for using a dynamic language like Python with no declarations. But hon

Re: Python Documentation website layout changed?

2010-03-21 Thread Andrej Mitrovic
On Mar 20, 12:32 am, Steve Holden wrote: > Steve Holden wrote: > > Andrej Mitrovic wrote: > >> On Mar 17, 6:41 pm, Andrej Mitrovic > >> wrote: > >>> Hi, > > >>> What happened to the sidebar on the left of the documentation website? > >>> It seems to be gone: > > >>>http://docs.python.org/py3k/ind

Regexp problem when parsing a string

2010-03-21 Thread Alessandro Marino
I'm a beginner and I was trying to write a program to parse recursively all file names in a directory specified as parameter. The problem is that I get a "None" printed to stdout when a file is positively matched. While when the file name doesn't match the regexp the output seems ok. C:\>c:\python

RSON 0.06 released

2010-03-21 Thread Patrick Maupin
I am pleased to announce the release of RSON 0.06. The goal of the RSON project is to create a file format that is easy to edit, diff, and version control, that is a superset of JSON and smaller than YAML. I consider this release to be feature complete on the file format, and I believe the pure P

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-21 Thread Benjamin Kaplan
On Sun, Mar 21, 2010 at 12:55 PM, Zooko O'Whielacronx wrote: > On Sat, Mar 20, 2010 at 1:27 PM, Brian J Mingus > wrote: >> Moderating this stuff requires moderating all messages. > > Not quite. GNU Mailman comes with nice features to ease this task. You > can configure it so that everyone who is

Re: How to automate accessor definition?

2010-03-21 Thread kj
In <4ba58503$0$27838$c3e8...@news.astraweb.com> Steven D'Aprano writes: >On Sat, 20 Mar 2010 22:15:54 +, kj wrote: >> I need to create a class solely for the purpose of encapsulating a large >> number of disparate data items. >There's a built-in for that. It's called "dict". Syntax for ite

Re: How to automate accessor definition?

2010-03-21 Thread Steve Holden
kj wrote: > In Chris Rebert > writes: > >> On Sat, Mar 20, 2010 at 3:15 PM, kj wrote: >>> I need to create a class solely for the purpose of encapsulating >>> a large number of disparate data items. =C2=A0At the moment I have no >>> plans for any methods for this class other than the bazillion

[RELEASED] Python 3.1.2

2010-03-21 Thread Benjamin Peterson
On behalf of the Python development team, I'm joyful to announce the second bugfix release of the Python 3.1 series, Python 3.1.2. This bug fix release fixes numerous issues found in 3.1.1, and is considered a production release. The Python 3.1 version series focuses on the stabilization and opti

Re: How to automate accessor definition?

2010-03-21 Thread kj
In Chris Rebert writes: >On Sat, Mar 20, 2010 at 3:15 PM, kj wrote: >> I need to create a class solely for the purpose of encapsulating >> a large number of disparate data items. =C2=A0At the moment I have no >> plans for any methods for this class other than the bazillion >> accessors require

Re: How to automate accessor definition?

2010-03-21 Thread kj
In <639908184290880449.447600deets-nospam.web...@news.hansenet.de> Diez B. Roggisch writes: >You don't. Python is not Java. So just use instance attributes, and if >you need bhavior when accessing an attribute, introduce a property. Just accessing attributes looks a bit dangerous to me, due t

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-21 Thread Zooko O'Whielacronx
On Sat, Mar 20, 2010 at 1:27 PM, Brian J Mingus wrote: > Moderating this stuff requires moderating all messages. Not quite. GNU Mailman comes with nice features to ease this task. You can configure it so that everyone who is currently subscribed can post freely, but new subscribers get a "moderat

Re: How to automate accessor definition?

2010-03-21 Thread Diez B . Roggisch
kj wrote: > > > > > > > I need to create a class solely for the purpose of encapsulating > a large number of disparate data items. At the moment I have no > plans for any methods for this class other than the bazillion > accessors required to access these various instance variables. > (In c

Re: Clearing memory (namespace) before running code

2010-03-21 Thread Jon Clements
On 21 Mar, 15:02, vsoler wrote: > Hi, > > Is there a way to erase/delete/clear memory before a piece of code is > run? > > Otherwise, the objects of the previous run are re-usable, and may > bring confusion to the tester. > > Thank you I'm guessing you're using some sort of IDE? For instance, in

Re: Clearing memory (namespace) before running code

2010-03-21 Thread Steve Holden
vsoler wrote: > Hi, > > Is there a way to erase/delete/clear memory before a piece of code is > run? > > Otherwise, the objects of the previous run are re-usable, and may > bring confusion to the tester. > > Thank you You mean clear a *namespace*? That might be possible if you have access to t

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK GIR

2010-03-21 Thread Steve Holden
Brian J Mingus wrote: > [... duplicating the spam and thereby lending it further Google juice ...] > -- > http://mail.python.org/mailman/listinfo/python-list > > Guys, I know it is a lot of work to moderate a large mailing list. But > still, with so many of us surely we can pull it off? >

Clearing memory (namespace) before running code

2010-03-21 Thread vsoler
Hi, Is there a way to erase/delete/clear memory before a piece of code is run? Otherwise, the objects of the previous run are re-usable, and may bring confusion to the tester. Thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-21 Thread Ravi Kumar
On Sat, Mar 20, 2010 at 7:27 PM, Brian J Mingus wrote: > Moderating this stuff requires moderating all messages. It would take a > team of volunteers. > You are right... Form the team of volunteers. More people in it, better it would be - since no one would have to be dedicated. -- -=Ravi=- --

Re: should writing Unicode files be so slow

2010-03-21 Thread djc
Antoine Pitrou wrote: > Le Fri, 19 Mar 2010 17:18:17 +, djc a écrit : >> changing >> with open(filename, 'rU') as tabfile: to >> with codecs.open(filename, 'rU', 'utf-8', 'backslashreplace') as >> tabfile: >> >> and >> with open(outfile, 'wt') as out_part: to >> with codecs.open(outfile, 'w', '

Re: nonuniform sampling with replacement

2010-03-21 Thread Alf P. Steinbach
* Alf P. Steinbach: * Jah_Alarm: I've got a vector length n of integers (some of them are repeating), and I got a selection probability vector of the same length. How will I sample with replacement k (<=n) values with the probabilty vector. In Matlab this function is randsample. I couldn't find

Re: nonuniform sampling with replacement

2010-03-21 Thread Peter Otten
Jah_Alarm wrote: > I've got a vector length n of integers (some of them are repeating), > and I got a selection probability vector of the same length. How will > I sample with replacement k (<=n) values with the probabilty vector. > In Matlab this function is randsample. I couldn't find anything t

Re: nonuniform sampling with replacement

2010-03-21 Thread Alf P. Steinbach
* Jah_Alarm: I've got a vector length n of integers (some of them are repeating), and I got a selection probability vector of the same length. How will I sample with replacement k (<=n) values with the probabilty vector. In Matlab this function is randsample. I couldn't find anything to this exte

Re: How to keep effects of image filters going for some seconds?

2010-03-21 Thread donn
On 21/03/2010 09:23, Ren Wenshan wrote: I have been learning Panda3D, an open source 3D engine, Ask on the Panda3D forums, you will get good help there. \d -- http://mail.python.org/mailman/listinfo/python-list

nonuniform sampling with replacement

2010-03-21 Thread Jah_Alarm
I've got a vector length n of integers (some of them are repeating), and I got a selection probability vector of the same length. How will I sample with replacement k (<=n) values with the probabilty vector. In Matlab this function is randsample. I couldn't find anything to this extent in Scipy or

How to keep effects of image filters going for some seconds?

2010-03-21 Thread Ren Wenshan
Hello, every pythoner. Firstly, I want to mention that English is my second language, so maybe there are some sentences which makes you confused, sorry. I have been learning Panda3D, an open source 3D engine, these days. Now, I'm trying to write a small game for fun and practice. However, I've ra