hello,
Although I personally hate to release a new version so soon,
the error reporting is so essential, that updating is a must.
V1.5 changes
- errors (catched by the library) will now give a normal error report
- GUI preview function now available in this library
gui_support is library for
Andy O'Meara wrote:
- each worker thread makes its own interpreter, pops scripts off a
work queue, and manages exporting (and then importing) result data to
other parts of the app.
I hope you realize that starting up one of these interpreters
is going to be fairly expensive. It will have to
Glenn Linderman wrote:
If Py_None corresponds to None in Python syntax ... then
it is a fixed constant and could be left global, probably.
No, it couldn't, because it's a reference-counted object
like any other Python object, and therefore needs to be
protected against simultaneous refcount
Andy O'Meara wrote:
In our case, we're doing image and video
manipulation--stuff not good to be messaging from address space to
address space.
Have you considered using shared memory?
Using mmap or equivalent, you can arrange for a block of
memory to be shared between processes. Then you can
Hi list,
I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed
to build some of the modules.
Failed to find the necessary bits to build these modules:
_bsddb _sqlite3 _tkinter
gdbm linuxaudiodev spwd
sunaudiodev
To find the necessary bits,
Rhamphoryncus wrote:
A list
is not shareable, so it can only be used within the monitor it's
created within, but the list type object is shareable.
Type objects contain dicts, which allow arbitrary values
to be stored in them. What happens if one thread puts
a private object in there? It
On Sat, 25 Oct 2008 03:29:39 +, Steven D'Aprano wrote:
Personally, I tend to use a combination of approaches. Since doctests
aren't intended for full test coverage, I use *short* tests in methods.
If I can't make a test short, it doesn't go into the method doctest. For
more extensive
If Py_None corresponds to None in Python syntax (sorry I'm not familiar
with Python internals yet; glad you are commenting, since you are), then
it is a fixed constant and could be left global, probably.
If None remains global, then type(None) also remains global, and
type(None),__bases__[0].
On Fri, 24 Oct 2008 14:51:07 -0500, Kevin D. Smith wrote:
I'm trying to get the difference of two images using PIL. The
ImageChops.difference function does almost what I want, but it takes the
absolute value of the pixel difference. What I want is a two color
output image: black where the
On Fri, 24 Oct 2008 20:38:37 +0200, Gilles Ganault wrote:
Hello
After scratching my head as to why I failed finding data from a web
using the re module, I discovered that a web page as downloaded by
urllib doesn't match what is displayed when viewing the source page in
FireFox.
Cookies?
Steven D'Aprano ste...-this-cybersource.com.au wrote:
On Fri, 24 Oct 2008 14:53:19 +, Peter Pearson wrote:
On 24 Oct 2008 13:17:45 GMT, Steven D'Aprano wrote:
What are programmers coming to these days? When I was their age, we
were expected to *read* the error messages our compilers
On Fri, 24 Oct 2008 11:06:54 -0700, Reckoner wrote:
I have multiple packages that have many of the same function names. Is
it possible to do
from package1 import *
from package2 import *
without overwriting similarly named objects from package1 with material
in package2? How about a way
I'd like to know why Python 2.6 doesn't have the syntax to create sets/
dicts of Python 3.0, like:
{x*x for x in xrange(10)}
{x:x*x for x in xrange(10)}
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
I want to write something that handle every char immediately after its
input. Then tehe user don't need to type [RETURN] each time. How can I
do this?
Thanks in advance.
Don't you think that getting a one-character from console is something
that many people do very often? Do you think that
On Wed, 22 Oct 2008 10:43:35 -0700, bearophileHUGS wrote:
Mr.SpOOn:
Is there another convenient structure or shall I use lists and define
the operations I need?
musings
As Python becomes accepted for more and more serious projects some
more data structures can eventually be added to the
On Sat, 25 Oct 2008 08:36:32 +, Lie Ryan wrote:
I want to write something that handle every char immediately after
its input. Then tehe user don't need to type [RETURN] each time. How
can I do this?
Thanks in advance.
Don't you think that getting a one-character from console is
Tim Arnold schrieb:
Hi,
Using lxml to clean up auto-generated xml to validate against a dtd; I need
to remove an element tag but keep the text in order. For example
s0 = '''
option
optional first text
someelementladida/someelement
emphasisemphasized text/emphasis
middle
On Sat, 25 Oct 2008 01:13:08 -0700, bearophileHUGS wrote:
I'd like to know why Python 2.6 doesn't have the syntax to create sets/
dicts of Python 3.0, like:
{x*x for x in xrange(10)}
{x:x*x for x in xrange(10)}
Maybe nobody asked for it?
Personally, I don't see the advantage of set and
On Sat, 25 Oct 2008 08:58:18 +, Lie Ryan wrote:
anotherrandommusing
Since python is dynamic language, I think it should be possible to do
something like this:
a = list([1, 2, 3, 4, 5], implementation = 'linkedlist')
b = dict({'a': 'A'}, implementation = 'binarytree')
c = dict({'a':
Hi Andy,
Andy wrote:
However, we require true thread/interpreter
independence so python 2 has been frustrating at time, to say the
least. Please don't start with but really, python supports multiple
interpreters because I've been there many many times with people.
And, yes, I'm aware of
Andy O'Meara wrote:
Yeah, that's the idea--let the highest levels run and coordinate the
show.
Yes, this works really well in python and it's lots of fun. We've found so
far you need at minimum the following parts to a co-ordination little
language:
Pipeline
Graphline
Carousel
Glenn Linderman wrote:
In the module multiprocessing environment could you not use shared
memory, then, for the large shared data items?
If the poshmodule had a bit of TLC, it would be extremely useful for this,
since it does (surprisingly) still work with python 2.5, but does need a
bit of
On Oct 24, 9:44 pm, Mr.SpOOn [EMAIL PROTECTED] wrote:
Hi,
in an application I have to use some variables with fixed valuse.
For example, I'm working with musical notes, so I have a global
dictionary like this:
natural_notes = {'C': 0, 'D': 2, 'E': 4 }
This actually works fine. I was
On Oct 24, 7:27 pm, Derek Martin [EMAIL PROTECTED] wrote:
On Fri, Oct 24, 2008 at 11:59:46AM +1000, James Mills wrote:
On Fri, Oct 24, 2008 at 11:36 AM, John Ladasky [EMAIL PROTECTED] wrote:
etc. The list of subclasses is not fully defined. It is supposed to
be extensible by the user.
Andy O'Meara wrote:
basically, it seems that we're talking about the
embarrassingly parallel scenario raised in that paper
We build applications in Kamaelia and then discover afterwards that they're
embarrassingly parallel and just work. (we have an introspector that can
look inside running
Jesse Noller wrote:
http://www.kamaelia.org/Home
Thanks for the mention :)
I don't think it's a good fit for the original poster's question, but a
solution to the original poster's question would be generally useful IMO,
_especially_ on python implementations without a GIL (where threads are
Python3.0rc1 windowsxp
in the lib\asynchat.py
def handle_write (self):
self.initiate_send()
def push (self, data):
sabs = self.ac_out_buffer_size
if len(data) sabs:
for i in range(0, len(data), sabs):
These discussion pop up every year or so and I think that most of them
are not really all that necessary, since the GIL isn't all that bad.
Some pointers into the past:
* http://effbot.org/pyfaq/can-t-we-get-rid-of-the-global-interpreter-lock.htm
Fredrik on the GIL
*
On 2008-10-25 08:39, Akira Kitada wrote:
Hi list,
I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed
to build some of the modules.
Failed to find the necessary bits to build these modules:
_bsddb _sqlite3 _tkinter
gdbm linuxaudiodev
Hi:
I have a list that looks like:
name = name1 name2 name3 name4
and I would like to be able to arrange randomly this list, like:
name = name 2 name 1 name3 name4
name = name4 name2 name1 name3
I have tried with random.shuffle, but still no good result
May I get an example?
Thank
Thank you Travis.
Very pleased to get this from you.
Congratulatoins on the new release,
Laura
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano schreef:
I can't think of any modern apps that use one character commands like
that. One character plus a modifier (ctrl or alt generally) perhaps, but
even there, it's mostly used in GUI applications.
less, vi, info, top, cfdisk, lynx, links, ... come to mind. I suppose
I want to do a project in python.
It should be something based on socket programming, HTML/XML parsing,
etc
please suggest me
--
http://mail.python.org/mailman/listinfo/python-list
I have a list that looks like:
name = name1 name2 name3 name4
and I would like to be able to arrange randomly this list, like:
name = name 2 name 1 name3 name4
name = name4 name2 name1 name3
I have tried with random.shuffle, but still no good result
May I get an example?
I'm not
On Sat, 25 Oct 2008 09:07:35 +, Steven D'Aprano wrote:
On Sat, 25 Oct 2008 01:13:08 -0700, bearophileHUGS wrote:
I'd like to know why Python 2.6 doesn't have the syntax to create sets/
dicts of Python 3.0, like:
{x*x for x in xrange(10)}
{x:x*x for x in xrange(10)}
Maybe nobody
On Sat, 25 Oct 2008 16:30:55 +0200, Roel Schroeven wrote:
Steven D'Aprano schreef:
I can't think of any modern apps that use one character commands like
that. One character plus a modifier (ctrl or alt generally) perhaps,
but even there, it's mostly used in GUI applications.
less, vi,
Hi everyone,
As indicated in the following python script, the dictionary b has
Chinese characters: 中文. But a.get() returns the dictionary with a
little bit different format for the 中文“: '\xd6\xd0\xce\xc4' . How
can I get the dictionary through the Queue as is?
import Queue
a =
It seems to me that deleting local instances before imported modules
would solve the problem. Is it not possible for the interpreter to get
this right? Or are there cases where this would break stuff.
It seems rather unpythonic for the __del__() method to become
unpredictable at exit.
--
[EMAIL PROTECTED] writes:
{x*x for x in xrange(10)}
{x:x*x for x in xrange(10)}
I've always just used:
set(x*x for x in xrange(10))
dict((x,x*x) for x in xrange(10))
I didn't even realize that you could write sets with {...}.
--
http://mail.python.org/mailman/listinfo/python-list
I want to do a project in python.
It should be something based on socket programming, HTML/XML parsing,
etc
plz suggest me
--
http://mail.python.org/mailman/listinfo/python-list
I am a newbie and learned python to some extent.
I want to do some project in python based on network programming or
HTML/XML parsing.
Can anyone suggest me about this ???
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 25 Oct 2008 08:36:22 -0700 (PDT), ouyang [EMAIL PROTECTED] wrote:
Hi everyone,
As indicated in the following python script, the dictionary b has
Chinese characters: 中文. But a.get() returns the dictionary with a
little bit different format for the 中文“: '\xd6\xd0\xce\xc4' . How
can I
Glenn Linderman wrote:
On approximately 10/24/2008 8:39 PM, came the following characters from
the keyboard of Terry Reedy:
Glenn Linderman wrote:
For example, Python presently has a rather stupid algorithm for
string concatenation.
Yes, CPython2.x, x=5 did.
Python the language has syntax
asit wrote:
I am a newbie and learned python to some extent.
I want to do some project in python based on network programming or
HTML/XML parsing.
Can anyone suggest me about this ???
The more you spam people with your repetitive postings, the less likely it
becomes that they are willing
Also, remember that since the latter functions will always overwrite
the first, you can just reverse the order of the imports:
from package2 import *
from package1 import *
This should preserve the functions of package1 over the other ones.
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 24, 5:53 am, andrea [EMAIL PROTECTED] wrote:
On 26 Set, 20:01, Aaron \Castironpi\ Brady [EMAIL PROTECTED]
wrote:
Good idea. If you want prefixed operators: 'and( a, b )' instead of
'a and b', you'll have to write your own. ('operator.and_' is bitwise
only.) It may be confusing
Kevin D. Smith:
What I want is a two color output image: black where the image wasn't
different, and white where it was different.
There are several ways to do that. If speed isn't essential, then you
can create a third blank image of the right size, and then use the
method that iterates on
On Oct 25, 2008, at 7:53 AM, Michael Sparks wrote:
Glenn Linderman wrote:
In the module multiprocessing environment could you not use shared
memory, then, for the large shared data items?
If the poshmodule had a bit of TLC, it would be extremely useful for
this,
since it does
On Sat, 25 Oct 2008 09:04:01 +, Steven D'Aprano wrote:
On Sat, 25 Oct 2008 08:36:32 +, Lie Ryan wrote:
I want to write something that handle every char immediately after
its input. Then tehe user don't need to type [RETURN] each time. How
can I do this?
Thanks in advance.
Don't
Hi Marc-Andre,
Thanks for the suggestion.
I opened a ticket for this issue: http://bugs.python.org/issue4204
Now I understand the state of the multiprocessing module,
but it's too bad to see math, mmap and readline modules, that worked
fine before,
cannot be built anymore.
As for FreeBSD4, yeah
I'd like to know which version of sqlite the python 2.6 sqlite3 module
supports.
Any help would be appreciated.
Thanks,
James
--
http://mail.python.org/mailman/listinfo/python-list
Several languages like Java, C# etc have a List type in the std lib.
Python has a built-in list(), it's implemented as array dynamic on the
right.
Not too much time ago Hettinger has added a collections.deque (its C
code is really nice), that compared to list() allows a faster append
on the right
Rob Quoting from :
url:http://www.boost.org/doc/libs/1_36_0/libs/regex/doc/html/boost_regex/ref/regex_match.html
Rob quote
Rob Important
Rob Note that the result is true only if the expression matches the
Rob whole of the input sequence. If you want to search for an
I'd like to know which version of sqlite the python 2.6 sqlite3 module
supports.
When you compile Python, you can chose any version of sqlite that you
want to.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Hi guys,
Is there a way to improve the interpreter startup speed?
In my machine (cold startup) python takes 0.330 ms and ruby takes
0.047 ms, after cold boot python takes 0.019 ms and ruby 0.005 ms to
start.
TIA
--
http://mail.python.org/mailman/listinfo/python-list
There are a number of problems with that approach. The biggest one is
that it is theoretical.
Not theoretical. Used successfully in Perl.
Perhaps it is indeed what Perl does, I know nothing about that.
However, it *is* theoretical for Python. Please trust me that
there are many many many
On Oct 24, 9:58 am, Peter Otten [EMAIL PROTECTED] wrote:
Rafe wrote:
On Oct 24, 2:21 am, Christian Heimes [EMAIL PROTECTED] wrote:
Rafewrote:
Hi,
I've encountered a problem which is making debugging less obvious than
it should be. The @property decorator doesn't always raise
On Oct 24, 9:52 pm, Martin v. Löwis [EMAIL PROTECTED] wrote:
A c-level module, on the other hand, can sidestep/release
the GIL at will, and go on it's merry way and process away.
...Unless part of the C module execution involves the need do CPU-
bound work on another thread through a
Dear lists,
DeductiveThinking.com now provides the Python programs for the book of M.
Keeling P. Rohani Modeling Infectious Diseases in Humans and Animals,
Princeton University Press, 2008. The book has on-line material which
includes programs for different models in various programming
Reckoner wrote:
I am writing an algorithm that takes objects (i.e. graphs with
thousands of nodes) into a hypothetical state. I need to keep a
history of these hypothetical objects depending on what happens to
them later. Note that these hypothetical objects are intimately
operated on, changed,
On Oct 24, 9:58 am, Peter Otten [EMAIL PROTECTED] wrote:
Rafe wrote:
On Oct 24, 2:21 am, Christian Heimes [EMAIL PROTECTED] wrote:
Rafewrote:
Hi,
I've encountered a problem which is making debugging less obvious than
it should be. The @property decorator doesn't always raise
On Oct 24, 9:40 pm, Martin v. Löwis [EMAIL PROTECTED] wrote:
It seems to me that the very simplest move would be to remove global
static data so the app could provide all thread-related data, which
Andy suggests through references to the QuickTime API. This would
suggest compiling python
Hi. I'm very new to Python, and so this is probably a pretty basic
question, but I'm lost. I am looking to limit a float value to a
number between 0 and 100 (the input is a percentage).
I currently have:
integer = int()
running = True
while running:
try:
per_period_interest_rate =
On Oct 24, 10:24 pm, Glenn Linderman [EMAIL PROTECTED] wrote:
And in the case of hundreds of megs of data
... and I would be surprised at someone that would embed hundreds of
megs of data into an object such that it had to be serialized... seems
like the proper design is to point at the
On Sat, 25 Oct 2008 12:32:07 -0700, Pedro Borges wrote:
Hi guys,
Is there a way to improve the interpreter startup speed?
In my machine (cold startup) python takes 0.330 ms and ruby takes 0.047
ms, after cold boot python takes 0.019 ms and ruby 0.005 ms to start.
TIA
um... does
On Sat, Oct 25, 2008 at 4:42 PM, [EMAIL PROTECTED] wrote:
Hi. I'm very new to Python, and so this is probably a pretty basic
question, but I'm lost. I am looking to limit a float value to a
number between 0 and 100 (the input is a percentage).
I currently have:
integer = int()
running =
2008/10/20 william paul [EMAIL PROTECTED]:
I have a list that looks like:
name = name1 name2 name3 name4
and I would like to be able to arrange randomly this list, like:
name = name 2 name 1 name3 name4
name = name4 name2 name1 name3
I have tried with random.shuffle, but still no
Andy O'Meara wrote:
I would definitely agree if there was a context (i.e. environment)
object passed around then perhaps we'd have the best of all worlds.
Moreover, I think this is probably the *only* way that
totally independent interpreters could be realized.
Converting the whole C
cant seem to install this, using python 2.6, any known errors that
wont let me select the python installation to use, just opens a blank
dialog and wont let me continue..do i need to downgrade python??
thanks in advance
--
http://mail.python.org/mailman/listinfo/python-list
Sorry for the answering delay, Google Groups is slow today.
Steven D'Aprano:
Personally, I don't see the advantage of set and dict comprehensions. I think
the value of them is very marginal, not worth the additional syntax.
If it's worth in 3.0 then it's worth in 2.6 too. If it isn't worth in
On Sat, 25 Oct 2008 09:21:05 +, Steven D'Aprano wrote:
On Sat, 25 Oct 2008 08:58:18 +, Lie Ryan wrote:
anotherrandommusing
Since python is dynamic language, I think it should be possible to do
something like this:
a = list([1, 2, 3, 4, 5], implementation = 'linkedlist') b =
On 10/25/2008 4:14 PM I. Soumpasis apparently wrote:
http://blog.deductivethinking.com/?p=29
This is cool.
But I do not see a license.
May I hope this is released under the new BSD license,
like the packages it depends on?
Thanks,
Alan Isaac
--
On Sat, 25 Oct 2008 15:27:32 +, Steven D'Aprano wrote:
On Sat, 25 Oct 2008 16:30:55 +0200, Roel Schroeven wrote:
Steven D'Aprano schreef:
I can't think of any modern apps that use one character commands like
that. One character plus a modifier (ctrl or alt generally) perhaps,
but even
2008/10/25 Alan G Isaac [EMAIL PROTECTED]
On 10/25/2008 4:14 PM I. Soumpasis apparently wrote:
http://blog.deductivethinking.com/?p=29
This is cool.
But I do not see a license.
May I hope this is released under the new BSD license,
like the packages it depends on?
The programs are GPL
Kevin D. Smith:
What I want is a two color output image: black where the image wasn't
different, and white where it was different.
Use the ImageChops.difference, which would give a difference image. Then
map all colors to white except black using Image.point()
--
Lie Ryan wrote:
anotherrandommusing
Since python is dynamic language, I think it should be possible to do
something like this:
a = list([1, 2, 3, 4, 5], implementation = 'linkedlist')
For this to work, the abstract list would have to know about all
implementations of the abstraction.
On Fri, 24 Oct 2008 12:23:18 -0700, Robert Dailey wrote:
Hi,
I'm currently using boost::python::import() to import Python modules, so
I'm not sure exactly which Python API function it is calling to import
these files. I posted to the Boost.Python mailing list with this
question and they
On Oct 25, 12:29 am, greg [EMAIL PROTECTED] wrote:
Rhamphoryncus wrote:
A list
is not shareable, so it can only be used within the monitor it's
created within, but the list type object is shareable.
Type objects contain dicts, which allow arbitrary values
to be stored in them. What
On Sat, 25 Oct 2008 18:20:46 -0400, Terry Reedy wrote:
Lie Ryan wrote:
anotherrandommusing
Since python is dynamic language, I think it should be possible to do
something like this:
a = list([1, 2, 3, 4, 5], implementation = 'linkedlist')
For this to work, the abstract list would
On Sat, 25 Oct 2008 18:20:46 -0400, Terry Reedy wrote:
Lie Ryan wrote:
anotherrandommusing
Since python is dynamic language, I think it should be possible to do
something like this:
a = list([1, 2, 3, 4, 5], implementation = 'linkedlist')
For this to work, the abstract list would
On Oct 24, 5:53 am, andrea [EMAIL PROTECTED] wrote:
On 26 Set, 20:01, Aaron \Castironpi\ Brady [EMAIL PROTECTED]
wrote:
Good idea. If you want prefixed operators: 'and( a, b )' instead of
'a and b', you'll have to write your own. ('operator.and_' is bitwise
only.) It may be confusing
On Oct 24, 2:23 pm, Robert Dailey [EMAIL PROTECTED] wrote:
Hi,
I'm currently using boost::python::import() to import Python modules,
so I'm not sure exactly which Python API function it is calling to
import these files. I posted to the Boost.Python mailing list with
this question and they
On Oct 24, 1:11 pm, Reckoner [EMAIL PROTECTED] wrote:
I am writing an algorithm that takes objects (i.e. graphs with
thousands of nodes) into a hypothetical state. I need to keep a
history of these hypothetical objects depending on what happens to
them later. Note that these hypothetical
On Sat, 25 Oct 2008 13:42:08 -0700, chemicalclothing wrote:
Hi. I'm very new to Python, and so this is probably a pretty basic
question, but I'm lost. I am looking to limit a float value to a number
between 0 and 100 (the input is a percentage).
I currently have:
integer = int()
What's
Glenn Linderman wrote:
On approximately 10/25/2008 12:01 AM, came the following characters from
the keyboard of Martin v. Löwis:
If None remains global, then type(None) also remains global, and
type(None),__bases__[0]. Then type(None).__bases__[0].__subclasses__()
will yield interesting
hello,
I wonder if it's legal to pace the module's doc string after some
imports ?
I mean something like this:
from language_support import _
__doc__ = _(0,
some documentation
thanks,
Stef Mientki
--
http://mail.python.org/mailman/listinfo/python-list
Rafe wrote:
The docs seem to suggest this is impossible:
Called when an attribute lookup has not found the attribute in the
usual places (i.e. it is not an instance attribute nor is it found in
the class tree for self).
Getting an AttributeError is the way that the interpreter
machinery tells
On Sat, 25 Oct 2008 21:53:10 +, Lie Ryan wrote:
On Sat, 25 Oct 2008 09:21:05 +, Steven D'Aprano wrote:
On Sat, 25 Oct 2008 08:58:18 +, Lie Ryan wrote:
anotherrandommusing
Since python is dynamic language, I think it should be possible to do
something like this:
a =
On Sat, 25 Oct 2008 12:32:07 -0700, Pedro Borges wrote:
Hi guys,
Is there a way to improve the interpreter startup speed?
Get a faster computer?
In my machine (cold startup) python takes 0.330 ms and ruby takes 0.047
ms, after cold boot python takes 0.019 ms and ruby 0.005 ms to start.
On Sun, 26 Oct 2008 02:31:01 +0200, Stef Mientki wrote:
hello,
I wonder if it's legal to pace the module's doc string after some
imports ?
I mean something like this:
from language_support import _
__doc__ = _(0,
some documentation
Doc strings are normal objects like anything
hai,
i am srinu from india. i am sending a blog url for yours use.
Right side Of The Blog Awsurvey Banner will appear.
click on the banner and get a free signup with 6$ bonus and you will
get more surveys.
once you have completed one survey you will get minimem 4$ and more
left side of the
2008/10/25 Pedro Borges [EMAIL PROTECTED]:
Is there a way to improve the interpreter startup speed?
In my machine (cold startup) python takes 0.330 ms and ruby takes
0.047 ms, after cold boot python takes 0.019 ms and ruby 0.005 ms to
start.
How are you getting those numbers? 330 μs is still
On Oct 25, 3:13 am, [EMAIL PROTECTED] wrote:
I'd like to know why Python 2.6 doesn't have the syntax to create sets/
dicts of Python 3.0, like:
Because nobody bothered to backport them.
{x*x for x in xrange(10)}
{x:x*x for x in xrange(10)}
Bye,
bearophile
--
On Oct 25, 3:13 am, [EMAIL PROTECTED] wrote:
I'd like to know why Python 2.6 doesn't have the syntax to create sets/
dicts of Python 3.0, like:
Because nobody bothered to backport them.
{x*x for x in xrange(10)}
{x:x*x for x in xrange(10)}
Bye,
bearophile
--
Lie Ryan wrote:
On Sat, 25 Oct 2008 18:20:46 -0400, Terry Reedy wrote:
a = list([1, 2, 3, 4, 5], implementation = 'linkedlist')
For this to work, the abstract list would have to know about all
implementations of the abstraction.
/the exact syntax isn't really important/
/abstract type and
On Sat, Oct 25, 2008 at 5:33 PM, Jesse [EMAIL PROTECTED] wrote:
cant seem to install this, using python 2.6, any known errors that
wont let me select the python installation to use, just opens a blank
dialog and wont let me continue..do i need to downgrade python??
thanks in advance
--
Pedro Borges wrote:
Hi guys,
Is there a way to improve the interpreter startup speed?
In my machine (cold startup) python takes 0.330 ms and ruby takes
0.047 ms, after cold boot python takes 0.019 ms and ruby 0.005 ms to
start.
You of course mean CPython, but Version, version, what Version?
On Sat, 25 Oct 2008 13:42:08 -0700, chemicalclothing wrote:
Hi. I'm very new to Python, and so this is probably a pretty basic
question, but I'm lost. I am looking to limit a float value to a number
between 0 and 100 (the input is a percentage).
Before I answer that, I'm going to skip to
On 10/25/2008 6:07 PM I. Soumpasis wrote:
The programs are GPL licensed. More info on the section of copyrights
http://wiki.deductivethinking.com/wiki/Deductive_Thinking:Copyrights.
I hope it is ok,
Well, that depends what you mean by ok.
Obviously, the author picks the license s/he
On Oct 24, 1:47 am, Rafe [EMAIL PROTECTED] wrote:
Hi,
I've encountered a problem which is making debugging less obvious than
it should be. The @property decorator doesn't always raise exceptions.
It seems like it is bound to the class but ignored when called. I can
see the attribute using
1 - 100 of 122 matches
Mail list logo