On Sat, 01 Jan 2011 20:53:47 -0800, marceepoo wrote:
> I just downloaded pyWin32 (https://sourceforge.net/projects/pywin32/)
> and started to install it.
>
> I get these error msgs:
>
> Skipping exchange: No library 'Ex2KSdk' Skipping exchdapi: No library
> 'Ex2KSdk' Skipping directsound: The he
Terry Reedy, 01.01.2011 23:47:
1. Code running in multiple versions has to be syntactically correct in
every detail all versions in order to be compiled without error. However,
version specific syntax *can* be used in modules that are conditionally
imported and therefore conditionally compiled an
Hi,
If I want to create a dictionary from a list, is there a better way than the
long line below?
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
d = dict(zip([l[x] for x in range(len(l)) if x %2 == 0], [l[x] for x in
range(len(l)) if x %2 == 1]))
print(d)
{8: 'b', 1: 2, 3: 4, 5: 6, 7: 'a'}
Thanks.
On Sun, Jan 2, 2011 at 7:26 AM, azakai wrote:
> The idea is that by compiling CPython itself, all the features of the
> language are immediately present, and at the latest version, unlike
> writing a new implementation which takes time and tends to lag behind.
> As to why run it on the web, there
On 1/2/2011 6:18 AM, Octavian Rasnita wrote:
Hi,
If I want to create a dictionary from a list, is there a better way than the
long line below?
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
d = dict(zip([l[x] for x in range(len(l)) if x %2 == 0], [l[x] for x in
range(len(l)) if x %2 == 1]))
d = di
Am 02.01.2011 14:18, schrieb Octavian Rasnita:
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
dict(zip(l[0::2],l[1::2]))
{8: 'b', 1: 2, 3: 4, 5: 6, 7: 'a'}
--
http://mail.python.org/mailman/listinfo/python-list
Azakai,
WOW! That's incredible!! Thank you for sharing your work with the
community.
1. Are there plans to support IE 7 or 8?
2. I'm not sure what you mean by non-static modules? Can we use modules
such as json, pickle/cPickle, StringIO/cStringIO?
3. Is there a virtual file system we can take a
From: "Katie T"
Subject: Re: CPython on the Web
> On Sun, Jan 2, 2011 at 7:26 AM, azakai wrote:
>> The idea is that by compiling CPython itself, all the features of the
>> language are immediately present, and at the latest version, unlike
>> writing a new implementation which takes time and te
Octavian Rasnita wrote in news:0db6c288b2274dbba5463e7771349...@teddy in
gmane.comp.python.general:
> Hi,
>
> If I want to create a dictionary from a list, is there a better way
> than the long line below?
>
> l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
>
> d = dict(zip([l[x] for x in range(len(l)
"Octavian Rasnita" writes:
> If I want to create a dictionary from a list, is there a better way than the
> long line below?
>
> l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
>
> d = dict(zip([l[x] for x in range(len(l)) if x %2 == 0], [l[x] for x in
> range(len(l)) if x %2 == 1]))
>
> print(d)
>
> {8
Am 02.01.2011 14:18, schrieb Octavian Rasnita:
Hi,
If I want to create a dictionary from a list, is there a better way than the
long line below?
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
d = dict(zip([l[x] for x in range(len(l)) if x %2 == 0], [l[x] for x in
range(len(l)) if x %2 == 1]))
print
From: "Ian Kelly"
> On 1/2/2011 6:18 AM, Octavian Rasnita wrote:
>> Hi,
>>
>> If I want to create a dictionary from a list, is there a better way than the
>> long line below?
>>
>> l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
>>
>> d = dict(zip([l[x] for x in range(len(l)) if x %2 == 0], [l[x] for x
From: "Rob Williscroft"
> Octavian Rasnita wrote in news:0db6c288b2274dbba5463e7771349...@teddy in
> gmane.comp.python.general:
>
>> Hi,
>>
>> If I want to create a dictionary from a list, is there a better way
>> than the long line below?
>>
>> l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
>>
>>
Am 02.01.2011 16:36, schrieb Octavian Rasnita:
From: "Ian Kelly"
On 1/2/2011 6:18 AM, Octavian Rasnita wrote:
Hi,
If I want to create a dictionary from a list, is there a better way than the
long line below?
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
d = dict(zip([l[x] for x in range(len(l))
Dear python-list@python.org,
I am making a program of the quadratic sieve on python 2.5.2. I am also
using sympy to find linear dependencies in mod 2. For example matrix A is :
10110
01101
00011
1
And using sympy I can type in a command to solve ax=0, which is:
1=0
01002=0
0010-1=0
On 31 Dic 2010, 16:43, Emile van Sebille wrote:
> On 12/31/2010 7:22 AM gervaz said...
>
>
>
>
>
> > Hi all, I would like to ask you how I can use the more efficient join
> > operation in a code like this:
>
> class Test:
> > ... def __init__(self, v1, v2):
> > ... self.v1 = v1
>
On 31 Dic 2010, 23:25, Alice Bevan–McGregor
wrote:
> On 2010-12-31 10:28:26 -0800, John Nagle said:
>
> > Even worse, sending control-C to a multi-thread program
> > is unreliable in CPython. See "http://blip.tv/file/2232410";
> > for why. It's painful.
>
> AFIK, that has been resolved in Python
On Sunday, January 2, 2011 3:36:35 PM UTC, T wrote:
> The grouper-way looks nice, but I tried it and it didn't work:
>
> from itertools import *
> ...
> d = dict(grouper(2, l))
>
> NameError: name 'grouper' is not defined
>
> I use Python 2.7. Should it work with this version?
No. As Ian said g
On 1/2/2011 9:43 AM gervaz said...
On 31 Dic 2010, 16:43, Emile van Sebille wrote:
On 12/31/2010 7:22 AM gervaz said...
Hi all, I would like to ask you how I can use the more efficient join
operation in a code like this:
class Test:
... def __init__(self, v1, v2):
... self
On Sunday, January 2, 2011 5:43:38 PM UTC, gervaz wrote:
> Sorry, but it does not work
>
> >>> def prg3(l):
> ... return "\n".join([x for x in l if x])
> ...
> >>> prg3(t)
> Traceback (most recent call last):
> File "", line 1, in
> File "", line 2, in prg3
> TypeError: sequence item 0: e
On 1/2/2011 8:31 AM Stefan Sonnenberg-Carstens said...
A last one:
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
dict((x[1],x[0]) for x in ((l.pop(),l.pop()) for x in xrange(len(l)/2)))
This also works:
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
pop=l.pop
dict([(pop(),pop()) for i in l])
--
http://
On 1/2/2011 8:31 AM Stefan Sonnenberg-Carstens said...
Nevermind -- my bad.
Emile
--
http://mail.python.org/mailman/listinfo/python-list
Am 02.01.2011 19:19, schrieb Emile van Sebille:
On 1/2/2011 8:31 AM Stefan Sonnenberg-Carstens said...
A last one:
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
dict((x[1],x[0]) for x in ((l.pop(),l.pop()) for x in xrange(len(l)/2)))
This also works:
l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b']
pop=l.
I install Python 2.7 on Windows XP.
I try use :
import win32service
import win32serviceutil
But I got that error :
ImportError: No module named win32service
Where is this module ?
--
http://mail.python.org/mailman/listinfo/python-list
On Sunday, January 2, 2011 6:40:45 PM UTC, catalinf...@gmail.com wrote:
> I install Python 2.7 on Windows XP.
> I try use :
>
> import win32service
> import win32serviceutil
>
> But I got that error :
>
> ImportError: No module named win32service
> Where is this module ?
It's part of the pywin3
On Jan 2, 5:42 am, pyt...@bdurham.com wrote:
>
> 1. Are there plans to support IE 7 or 8?
I think it might run slowly there, but otherwise sure, it should run -
the code is intended to be valid JavaScript (if it isn't, that's a
bug). Currently though a minor issue prevents it from running on IE, I
On Jan 2, 5:52 am, "Octavian Rasnita" wrote:
>
> Then, how can the Python programs run on the "desktop"?
> I suspect that the Python code is somehow translated to Javascript in order
> to run on the browser. Am I right?
To clarify, in this demo, CPython itself - the C implementation of
Python -
On Jan 1, 7:39 pm, rantingrick wrote:
> On Jan 1, 5:39 pm, CM wrote:
>
> > And I don't see this as a problem anyway. I wanted to do GUI
> > programming in Python, so I read a bit, chose wxPython, downloaded it,
> > and started learning it. Done.
>
> I, I, I...Me,Me,Me.
>
> Seems you are only co
Octavian
- Original Message -
From: "Alex Willmer"
Newsgroups: comp.lang.python
To:
Cc:
Sent: Sunday, January 02, 2011 8:07 PM
Subject: Re: list 2 dict?
> On Sunday, January 2, 2011 3:36:35 PM UTC, T wrote:
>> The grouper-way looks nice, but I tried it and it didn't work:
>>
>> fro
On 2 January 2011 21:04, Octavian Rasnita wrote:
>> No. As Ian said grouper() is a receipe in the itertools documentation.
>>
>> http://docs.python.org/library/itertools.html#recipes
>
> I know that, that is why I used:
>
> from itertools import *
>
> Isn't enough?
Did you follow the link? groupe
On 2 Gen, 19:14, Emile van Sebille wrote:
> On 1/2/2011 9:43 AM gervaz said...
>
>
>
>
>
> > On 31 Dic 2010, 16:43, Emile van Sebille wrote:
> >> On 12/31/2010 7:22 AM gervaz said...
>
> >>> Hi all, I would like to ask you how I can use the more efficient join
> >>> operation in a code like this:
Chas,
Thanks. The "self" in the setattr statement works sometimes, but what I'm
adding most of the time is a property, and if I don't use the class when
setting a property, nothing works. The property is returned instead of the
value of the function the property returns. (yeah, it's complicated
Steven,
This was simplified. The complete story is, well, tedious:
I have created a set of XML Validation and Normalization classes. With them I
can define my data structures and make sure my data is good. These
complications have come in wanting to take this tool and create a GUI (in
wxPytho
On Jan 2, 2011 4:15 PM, "Octavian Rasnita" wrote:
>
>
> Octavian
>
> - Original Message -
> From: "Alex Willmer"
> Newsgroups: comp.lang.python
> To:
> Cc:
> Sent: Sunday, January 02, 2011 8:07 PM
> Subject: Re: list 2 dict?
>
>
> > On Sunday, January 2, 2011 3:36:35 PM UTC, T wrote:
>
On 01/02/2011 02:26 AM, azakai wrote:
> Hello, I hope this will be interesting to people here: CPython running
> on the web,
>
> http://syntensity.com/static/python.html
>
> That isn't a new implementation of Python, but rather CPython 2.7.1,
> compiled from C to JavaScript using Emscripten and LLV
On 01/01/2011 06:39 PM, rantingrick wrote:
On Jan 1, 5:39 pm, CM wrote:
And I don't see this as a problem anyway. I wanted to do GUI
programming in Python, so I read a bit, chose wxPython, downloaded it,
and started learning it. Done.
I, I, I...Me,Me,Me.
Seems you are only concerned about
On 2 Gen, 22:37, gervaz wrote:
> On 2 Gen, 19:14, Emile van Sebille wrote:
>
>
>
>
>
> > On 1/2/2011 9:43 AM gervaz said...
>
> > > On 31 Dic 2010, 16:43, Emile van Sebille wrote:
> > >> On 12/31/2010 7:22 AM gervaz said...
>
> > >>> Hi all, I would like to ask you how I can use the more efficie
On Jan 2, 1:01 pm, Gerry Reno wrote:
>
> Ok, visiting this page:
>
> http://syntensity.com/static/python.html
>
> I do not see anything happen when I click 'execute' button. I'm running
> Firefox 3.6.3.
>
I've only tested with Firefox 4. I'm surprised though that it wouldn't
work on 3.6.3. Can y
Hi, I would announce you my new version of this python wrapper to make
shorten urls and QRCodes, using main used services: goo.gl, bit.ly and
tinyurl.
Please, visit http://code.google.com/p/tiny4py/
Bests
--
http://mail.python.org/mailman/listinfo/python-list
On 01/02/2011 05:53 PM, azakai wrote:
> On Jan 2, 1:01 pm, Gerry Reno wrote:
>
>> Ok, visiting this page:
>>
>> http://syntensity.com/static/python.html
>>
>> I do not see anything happen when I click 'execute' button. I'm running
>> Firefox 3.6.3.
>>
>>
> I've only tested with Firefox 4.
gervaz wrote:
>
>Ok, but then suppose I have multiple long running threads that I want
>to delete/suspend because they are tooking too much time, which
>solution do you propose?
The right solution is to write your threads so they have an escape hatch --
to periodically check a "should I die?" fla
Azakai/Gerry,
> Errors when using Firefox 3.6.3:
I'm running Firefox 3.6.1.3 and the interpreter is running fine.
I'm on Windows 7 Pro 64-bit.
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 2, 3:14 pm, Gerry Reno wrote:
> On 01/02/2011 05:53 PM, azakai wrote:
>
> > On Jan 2, 1:01 pm, Gerry Reno wrote:
>
> >> Ok, visiting this page:
>
> >>http://syntensity.com/static/python.html
>
> >> I do not see anything happen when I click 'execute' button. I'm running
> >> Firefox 3.6.3.
On Jan 2, 4:58 pm, pyt...@bdurham.com wrote:
> Azakai/Gerry,
>
> > Errors when using Firefox 3.6.3:
>
> I'm running Firefox 3.6.1.3 and the interpreter is running fine.
>
> I'm on Windows 7 Pro 64-bit.
>
> Malcolm
Thanks for the info. To be honest I'm surprised it works there. I
guess the error Ge
I tried printing sys.path and here is the output:
['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/',
'/usr/local/lib/python2.7/plat-linux2',
'/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/lib-dynload']
Now, those paths must be on your machine
azakai :
>On Jan 2, 4:58 pm, pyt...@bdurham.com wrote:
>> Azakai/Gerry,
>>
>> > Errors when using Firefox 3.6.3:
>>
>> I'm running Firefox 3.6.1.3 and the interpreter is running fine.
I guess that meant FIrefox 3.6.13 (without the last dot), the current
stable version.
I'm using Firefox 3.6.13 (
46 matches
Mail list logo