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
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
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
* 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
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
* 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
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', '
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=-
--
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
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?
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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/
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)(
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
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
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
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
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
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
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
> 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
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
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
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
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
add an entry to http://www.twentyquestions.org (please)
--
http://mail.python.org/mailman/listinfo/python-list
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.
>
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.
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
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
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
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
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
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
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
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
http://michellemichaeldiscounts.com/16801.html
--
http://mail.python.org/mailman/listinfo/python-list
58 matches
Mail list logo