On 2/13/2012 6:20 AM, Matej Cepl wrote:
Hi,
I am getting more and more discouraged from using XSLT for a
transformation from one XML scheme to another one. Does anybody could
share any experience with porting moderately complicated XSLT stylesheet
(https://gitorious.org/sword/czekms-csp_bible/bl
On Wed, Feb 15, 2012 at 6:11 PM, HoneyMonster wrote:
> As to your first suggestion though, I am having some difficulty. Note
> that the vulnerability rotates; i.e. CONDITIONS[4] is not the same as
> CONDITIONS[0].
> Is there a better way of doing it than a simple list.append()?
Ah, it's more comp
Hello,
the NCLab development team would like to invite everybody
to try out Python programming in the web browser at www.nclab.com.
Using NCLab is free for personal, non-commercial purposes.
If you'd like to give us feedback how we are doing, please use
the mailing list nclab-u...@googlegroups.co
On 02/15/2012 07:38 PM, 8 Dihedral wrote:
> In the 4 G space of SW AP in Adndroid phones,
> check Jython. But I think a better data compression
> modules is more helpful.
Jython, though a very cool and useful implementation, relies on the Java
virtual machine to run. It does not yet run on
在 2012年2月16日星期四UTC+8上午10时19分15秒,geremy condra写道:
> On Wed, Feb 15, 2012 at 12:58 PM, Martin Schöön
> wrote:
> > First of all: I don't have any first hand experience of smartphones
> > but now that my trusted old GSM phone is getting old I decided I am
> > in for an up-grade. It struck me it might
On Wed, Feb 15, 2012 at 12:58 PM, Martin Schöön wrote:
> First of all: I don't have any first hand experience of smartphones
> but now that my trusted old GSM phone is getting old I decided I am
> in for an up-grade. It struck me it might be nice to get something
> for which I could write Python p
On Wed, Feb 15, 2012 at 5:18 PM, Daniel Fetchinson
wrote:
> Hi folks, often times in science one expresses a value (say
> 1.03789291) and its error (say 0.00089) in a short way by parentheses
> like so: 1.0379(9)
>
> One can vary things a bit, but let's take the simplest case when we
> only keep 1
On Wed, 15 Feb 2012 17:07:48 -0700, Ian Kelly wrote:
> On Wed, Feb 15, 2012 at 4:33 PM, HoneyMonster
> wrote:
>> Secondly, as a more general point I would welcome comments on code
>> quality, adherence to standards and so forth. The code is at:
>
> Looks pretty nice overall. To reduce repetitio
On 02/15/12 17:33, HoneyMonster wrote:
Firstly, is there anyone here who uses Python on a Mac and
would be prepared to test it? I have tested it on Linux and
Windows, but don't have access to a Mac.
It works from my quick test of it on my Mac. The "class
Player():" and the .format() calls cho
On Wed, 15 Feb 2012 19:20:21 +0100, Franck Ditter wrote:
> What is the cost of calling primes(n) below ? I'm mainly interested in
> knowing if the call to append is O(1)
Your primes() function appears to be a variation on trial division, which
is asymptotically O(n*sqrt(n)/(log n)**2). Regardles
Hi folks, often times in science one expresses a value (say
1.03789291) and its error (say 0.00089) in a short way by parentheses
like so: 1.0379(9)
One can vary things a bit, but let's take the simplest case when we
only keep 1 digit of the error (and round it of course) and round the
value corre
On Wed, Feb 15, 2012 at 4:33 PM, HoneyMonster wrote:
> Secondly, as a more general point I would welcome comments on code
> quality, adherence to standards and so forth. The code is at:
Looks pretty nice overall. To reduce repetition, I would have
constructed the CONDITIONS list by iteration lik
On Wed, 15 Feb 2012 11:23:20 -0600, Andrew Berg wrote:
> help() is a built-in function, not a keyword.
> http://docs.python.org/library/functions.html#help
> http://docs.python.org/py3k/library/functions.html#help
Technically, it's not actually built-in, it is added to the built-ins by
site.py.
On Thu, Feb 16, 2012 at 5:48 AM, Dave Angel wrote:
> When you reply to a known bot, please include some indication of the fact,
> so we know your message can be ignored as well.
Sometimes I wonder about 8. Is there a real person there, as well
as the bot? A lot of his/its posts look too intel
Martin Schöön writes:
> A very quick internet search indicated that this should be no big
> deal if I go for an Android-based phone. What about the alternatives?
It works pretty well with Maemo, though phones with that are not so easy
to find. My ex-officemate wrote some SL4A (Android) apps in P
I am quite new to Python (running Python 2.7 on Linux).
I have written a very small and simple dealing module for the game of
Bridge. For those unfamiliar with the game, the idea is to deal each of 4
players a hand of 13 cards from a pack of 52, and to display it thus (use
a fixed pitch font):
On 15/02/2012 20:58, Martin Schöön wrote:
First of all: I don't have any first hand experience of smartphones
but now that my trusted old GSM phone is getting old I decided I am
in for an up-grade. It struck me it might be nice to get something
for which I could write Python programs.
A very qui
On Wed, Feb 15, 2012 at 2:43 PM, Calvin Spealman wrote:
> I've recently been looking into different options to package python
> code into stand-alone executables, with tools like Py2EXE and
> PyInstaller, but I'm left feeling a little lost. Documentation seems
> sparse on all of them, the setups a
On Wed, Feb 15, 2012 at 1:28 PM, Dennis Lee Bieber
wrote:
> On Wed, 15 Feb 2012 11:11:27 -0800, Chris Rebert
> wrote:
>
>
>>"The growth pattern is: 0, 4, 8, 16, 25, 35, 46, 58, 72, 88, …"
>> -- list_resize()
>>
> Rather perverse, is it not? The first set is plain doubling, but
> then yo
I've recently been looking into different options to package python
code into stand-alone executables, with tools like Py2EXE and
PyInstaller, but I'm left feeling a little lost. Documentation seems
sparse on all of them, the setups a little unusual to me. It feels
like they could be a lot simpler,
On 15/02/2012 21:51, Alan McKay wrote:
Hey folks,
I looked all through the list of mailing lists on the
mail.python.orgserver and this seems to be the only one that might
apply to me other than
maybe the German list which did not seem to have any specific python issue
associated with it other th
On 2/15/2012 4:51 PM, Alan McKay wrote:
I am having a problem moving an application from RHEL 5.7 to Ubuntu
11.11, and the problem is around .py program.
It is a web based program, and seems to use a strange combination of
mod_python and python CGI as best I can tell.
Would this be the right l
> Hopefully soon crate.io will be useful for finding modules ;) I have plans
> for it to try and, encourage people to host their code and encourage
> following packaging standards. I'm currently focused mostly on the backend
> stability (e.g. getting it stable) but emphasizing things that are gener
Hey folks,
I looked all through the list of mailing lists on the
mail.python.orgserver and this seems to be the only one that might
apply to me other than
maybe the German list which did not seem to have any specific python issue
associated with it other than that you should write German on it.
I
On 2/15/2012 3:28 PM, John Nagle wrote:
> Are you doing a conditional import, one that takes place after load
> time? If you do an import within a function or class, it is executed
> when the code around it executes. If you import a file with a
> syntax error during execution, you could get the e
On 2/15/2012 2:11 PM, Chris Rebert wrote:
It's slightly more complex:
http://hg.python.org/cpython/file/096b31e0f8ea/Objects/listobject.c
"The growth pattern is: 0, 4, 8, 16, 25, 35, 46, 58, 72, 88, …"
-- list_resize()
This has apparently changed from time to time.
--
Terry Jan Reedy
-
On 2/15/2012 8:12 AM, Andrea Crotti wrote:
I have the following very simplified situation
from atexit import register
def goodbye(): print("saying goodbye")
def main():
> while True: var = raw_input("read something")
if __name__ == '__main__':
> register(goodbye)
> main()
But in my
On Wednesday, February 15, 2012 at 4:24 PM, John Nagle wrote:
> On 2/8/2012 9:47 AM, Chris Rebert wrote:
> > On Wed, Feb 8, 2012 at 8:54 AM, Nathan Rice
> > mailto:nathan.alexander.r...@gmail.com)>
> > wrote:
> > > As a user:
> > > * Finding the right module in PyPi is a pain because there is limi
On 2/4/2012 12:43 PM, Chris Angelico wrote:
On Sun, Feb 5, 2012 at 3:32 AM, Andrew Berg wrote:
On 2/3/2012 9:15 PM, Chris Angelico wrote:
Do you call on potentially-buggy external modules?
It imports one module that does little more than define a few simple
functions. There's certainly no (in
On 2/8/2012 9:47 AM, Chris Rebert wrote:
On Wed, Feb 8, 2012 at 8:54 AM, Nathan Rice
wrote:
As a user:
* Finding the right module in PyPi is a pain because there is limited,
low quality semantic information, and there is no code indexing.
CPAN does it right. They host the code. (PyPi is
Brand new Python user and a bit overwhelmed with the variety of
packages available. Any recommendation for performing numerical
linear algebra (specifically least squares and generalized least
squares using QR or SVD) in arbitrary precision? I've been looking at
mpmath but can't seem to find much
First of all: I don't have any first hand experience of smartphones
but now that my trusted old GSM phone is getting old I decided I am
in for an up-grade. It struck me it might be nice to get something
for which I could write Python programs.
A very quick internet search indicated that this shoul
On 15/02/2012 20:12, Rituparna Sengupta wrote:
Hi,
I'm working on this code and I keep getting an error. It might be some very
basic thing but I was wondering if someone could help. Its a loop within a
loop. The part outside the innermost loop gets printed fine, but the part
within the innerm
On 02/15/2012 03:12 PM, Rituparna Sengupta wrote:
Hi,
I'm working on this code and I keep getting an error. It might be some very
basic thing but I was wondering if someone could help. Its a loop within a
loop. The part outside the innermost loop gets printed fine, but the part
within the inn
On Wed, Feb 15, 2012 at 12:12 PM, Rituparna Sengupta wrote:
> Hi,
>
> I'm working on this code and I keep getting an error. It might be some very
> basic thing but I was wondering if someone could help. Its a loop within a
> loop. The part outside the innermost loop gets printed fine, but the pa
On Wed, Feb 15, 2012 at 1:12 PM, Rituparna Sengupta wrote:
> Hi,
>
> I'm working on this code and I keep getting an error. It might be some very
> basic thing but I was wondering if someone could help. Its a loop within a
> loop. The part outside the innermost loop gets printed fine, but the par
Hi,
I'm working on this code and I keep getting an error. It might be some very
basic thing but I was wondering if someone could help. Its a loop within a
loop. The part outside the innermost loop gets printed fine, but the part
within the innermost loop doesn't get printed. I get an error: 'st
Steven D'Aprano wrote:
On Wed, 15 Feb 2012 10:04:34 +, Duncan Booth wrote:
Actually, I thought it was a bit weird that I saw ChrisA's comment but
not the message he was commenting on until I went and looked for it. I
read this group on a couple of machines and it looks like Rick's
killfile
Hello,
I have one single Excel file with many separate worksheets, and for
work I need to combine all these separate worksheets into one single
worksheet (I am not worried about formatting, as the format is the
same in each sheet, nor am I worried about Excel's row limit).
Essentially, I am lookin
On Wed, Feb 15, 2012 at 10:43 AM, Ian Kelly wrote:
> On Wed, Feb 15, 2012 at 11:20 AM, Franck Ditter wrote:
>> Do lists in Python 3 behave like ArrayList in Java (if the capacity
>> is full, then the array grows by more than 1 element) ?
>
> I believe the behavior in CPython is that if the array
Ian Kelly, 15.02.2012 19:43:
> On Wed, Feb 15, 2012 at 11:20 AM, Franck Ditter wrote:
>> Do lists in Python 3 behave like ArrayList in Java (if the capacity
>> is full, then the array grows by more than 1 element) ?
>
> I believe the behavior in CPython is that if the array is full, the
> capacity
On 02/15/2012 01:36 PM, Miki Tebeka wrote:
It depends on the overall runtime of the script vs start time of the vm. But
yes in most benchmarks the script start time will bias against scripted
languages.
On a site note: ALL CAPS is considered shouting, please don't use that in news
groups.
Whe
On Wed, Feb 15, 2012 at 11:20 AM, Franck Ditter wrote:
> What is the cost of calling primes(n) below ? I'm mainly interested in
> knowing if the call to append is O(1), even amortized.
Yes, it's amortized O(1). See:
http://wiki.python.org/moin/TimeComplexity
>From a relatively shallow analysis
On 02/15/2012 01:20 PM, Franck Ditter wrote:
What is the cost of calling primes(n) below ? I'm mainly interested in
knowing if the call to append is O(1), even amortized.
Do lists in Python 3 behave like ArrayList in Java (if the capacity
is full, then the array grows by more than 1 element) ?
d
Another option is to use a global error flag and set it in sys.excepthook (see
http://docs.python.org/library/sys.html#sys.excepthook).
goodbye will check the error flag and skip execution if error flag is set.
--
http://mail.python.org/mailman/listinfo/python-list
It depends on the overall runtime of the script vs start time of the vm. But
yes in most benchmarks the script start time will bias against scripted
languages.
On a site note: ALL CAPS is considered shouting, please don't use that in news
groups.
--
http://mail.python.org/mailman/listinfo/pyth
On Wed, Feb 15, 2012 at 10:20 AM, Franck Ditter wrote:
> What is the cost of calling primes(n) below ? I'm mainly interested in
> knowing if the call to append is O(1), even amortized.
> Do lists in Python 3 behave like ArrayList in Java (if the capacity
> is full, then the array grows by more tha
> And I'll take this opportunity to plug my dualmethod descriptor:
>
> http://code.activestate.com/recipes/577030-dualmethod-descriptor/
I use an analogous pattern in SQL Alchemy all the time (it's called
hybridmethod/hybridproperty there).
+1 to dualmethod, that pattern is great when you want a
What is the cost of calling primes(n) below ? I'm mainly interested in
knowing if the call to append is O(1), even amortized.
Do lists in Python 3 behave like ArrayList in Java (if the capacity
is full, then the array grows by more than 1 element) ?
def sdiv(n) : # n >= 2
"""returns the sm
In article
,
Bruce Eckel wrote:
> Also, I discovered that the attempt to create a "Path" class goes back
> to 2006, where it created a lot of discussion and was finally shelved:
> http://www.python.org/dev/peps/pep-0355/
>
> A significant part of the problem seems to be that there was no
> inhe
On 15/02/2012 17:27, Arnaud Delobelle wrote:
On 15 February 2012 17:23, Andrew Berg wrote:
On 2/15/2012 10:04 AM, Mark Lawrence wrote:
I didn't realise that this was available until today. It doesn't appear
to be prominent in the official docs or have I missed something?
Certainly I'd have th
On 15 February 2012 17:23, Andrew Berg wrote:
> On 2/15/2012 10:04 AM, Mark Lawrence wrote:
>> I didn't realise that this was available until today. It doesn't appear
>> to be prominent in the official docs or have I missed something?
>> Certainly I'd have thought a couple of sentences here
>> ht
On 2/15/2012 10:04 AM, Mark Lawrence wrote:
> I didn't realise that this was available until today. It doesn't appear
> to be prominent in the official docs or have I missed something?
> Certainly I'd have thought a couple of sentences here
> http://www.python.org/about/help/ would be justified
On 15/02/2012 16:27, Rick Johnson wrote:
On Feb 15, 9:18 am, Mark Lawrence wrote:
As you didn't answer my question from some days back I'll ask it agin.
Please explain why previously healthy people get struck down with Common
Fatigue Syndrome amongst other things.
Why do you seek my counsel r
On Feb 15, 9:18 am, Mark Lawrence wrote:
> As you didn't answer my question from some days back I'll ask it agin.
> Please explain why previously healthy people get struck down with Common
> Fatigue Syndrome amongst other things.
Why do you seek my counsel regarding medical ailments? Do you belie
I didn't realise that this was available until today. It doesn't appear
to be prominent in the official docs or have I missed something?
Certainly I'd have thought a couple of sentences here
http://www.python.org/about/help/ would be justified, what do y'all think?
--
Cheers.
Mark Lawrence.
On 02/15/2012 03:18 PM, Thomas Rachel wrote:
Wouldn't
if __name__ == '__main__':
try:
main()
finally:
goodbye()
be even better? Or doesn't it work well together with SystemExit?
Thomas
Well in that case goodbye is always called, even if I have some other
nasty exce
Am 15.02.2012 14:52 schrieb Devin Jeanpierre:
On Wed, Feb 15, 2012 at 8:33 AM, Mel Wilson wrote:
The usual way to do what you're asking is
if __name__ == '__main__':
main()
goodbye()
and write main so that it returns after it's done all the things it's
supposed to do. If you've sprin
On 15/02/2012 15:04, Rick Johnson wrote:
On Feb 15, 2:56 am, John O'Hagan wrote:
John, I have grown weary of educating you. Go back to your day job
writing op-eds for the National Inquirer and News of the World; they
love this vile sensationalist crap! Goodnight "John boy".
The News of the
On Feb 15, 2:56 am, John O'Hagan wrote:
> You have just demonstrated that you are the worst kind of racist. Not only
> have
> you blamed the victim on a truly monstrous scale, you have assigned blame not
> to
> individuals, but to entire "races".
Your tabloid sensationalism is the worst i've s
> Could it be that you missed the fact that strings are immutable? That
> means that you can't change the content of the object once it is
> initialized. In particular, it means that you e.g. have to override
> __new__ instead of __init__, because the content is already fixed when
> the latter is c
On 02/15/2012 01:52 PM, Devin Jeanpierre wrote:
On Wed, Feb 15, 2012 at 8:33 AM, Mel Wilson wrote:
The usual way to do what you're asking is
if __name__ == '__main__':
main()
goodbye()
and write main so that it returns after it's done all the things it's
supposed to do. If you've spr
Hello,
I would like to announce dispy (http://dispy.sourceforge.net), a
python framework for distributing computations for parallel execution
to processors/cores on single node to many nodes over the network. The
computations can be python functions or programs. If there are any
dependencies, such
On Wed, Feb 15, 2012 at 8:33 AM, Mel Wilson wrote:
> The usual way to do what you're asking is
>
> if __name__ == '__main__':
> main()
> goodbye()
>
> and write main so that it returns after it's done all the things it's
> supposed to do. If you've sprinkled `sys.exit()` all over your code,
On Tue, Feb 14, 2012 at 9:08 PM, MRAB wrote:
> There is one place in the re engine where it tries to avoid getting
> stuck in an infinite loop because of a zero-width match, but the fix
> inadvertently causes another bug. It's described in issue #1647489.
Just read the issue. Interesting, didn't
Andrea Crotti wrote:
> I have the following very simplified situation
>
> from atexit import register
>
>
> def goodbye():
> print("saying goodbye")
>
>
> def main():
> while True:
> var = raw_input("read something")
>
>
> if __name__ == '__main__':
> register(goodby
I have the following very simplified situation
from atexit import register
def goodbye():
print("saying goodbye")
def main():
while True:
var = raw_input("read something")
if __name__ == '__main__':
register(goodbye)
main()
But in my case the "goodbye" function is
On Wed, 15 Feb 2012 10:04:34 +, Duncan Booth wrote:
> Actually, I thought it was a bit weird that I saw ChrisA's comment but
> not the message he was commenting on until I went and looked for it. I
> read this group on a couple of machines and it looks like Rick's
> killfile entry had expired
Arnaud Delobelle wrote:
> On 15 February 2012 09:47, Duncan Booth
> wrote:
>> Rick Johnson wrote:
> [...]
>
> Perhaps it's a bit presumptuous of me but...
>
> It's tempting to react to his inflammatory posts, but after all Rick
> is a troll and experience shows that trolls are best left alon
Matej Cepl writes:
> Slightly less flameish answer to the question “What should I do,
> really?” is a tough one: all these suggested answers are bad because
> they don’t deal with the fact, that your input data are obviously
> broken. The rest is just pure GIGO …
Well, sure, but it happens that
On 15 February 2012 09:47, Duncan Booth wrote:
> Rick Johnson wrote:
[...]
Perhaps it's a bit presumptuous of me but...
It's tempting to react to his inflammatory posts, but after all Rick
is a troll and experience shows that trolls are best left alone.
Also, please spare a thought for all of u
Rick Johnson wrote:
> On Feb 14, 5:31 am, Duncan Booth wrote:
>> Rick Johnson wrote:
>> > BS! With free healthcare, those who would have allowed their immune
>> > system fight off the flu, now take off from work, visit a local
>> > clinic, and get pumped full of antibiotics so they can create a
On 15.02.2012 08:18, Tim Roberts wrote:
> sturlamolden wrote:
>>
>> There are bigsimilarities between Python and the new C++ standard. Now
>> we can actually use our experience as Python programmers to write
>> fantastic C++ :-)
>
> This is more true than you might think. For quite a few years n
On Tue, 14 Feb 2012 17:26:36 -0800 (PST)
Rick Johnson wrote:
> On Feb 14, 6:44 pm, Chris Angelico wrote:
>
> But WE are the fittest! Because we are INTELLIGENT!
And the whales say: But WE are the fittest! Because we are BIG!
And the rabbits say: But WE are the fittest! Because we are FERTILE!
74 matches
Mail list logo