To revisit a question which I'm sure none of you remember from when I posted it
a year or so ago - there were no takers at the time - I'd like to try again with
a more concise statement of the problem:
How to generate only the distinct permutations of a sequence which are not
rotationally equivale
Simon Cropper wrote:
>>> I would like to create windows with grids (AKA rows and column of a
>>> table like excel). Do any of the GUI interfaces have these types of
>>> widgets? i have looked but can't find any and I have not stumbled on
>>> program that presents data in this way so I can see how
On 19/05/12 01:09, Dennis Lee Bieber wrote:
On Fri, 18 May 2012 10:52:07 +1000, Simon Cropper
declaimed the following in
gmane.comp.python.general:
Hi,
There has been some discussion on this list regarding GUI toolkits and
it reinvigorated my search for one to meet my needs.
I would like to
I have matplotlib and iPython, and want to plot a function over an
equally-spaced range of points.
That is to say, I want to say something like this:
plot(func, start, end)
rather than generating the X and Y values by hand, and plotting a scatter
graph. All the examples I've seen look somethin
Ben Finney writes:
> Miki Tebeka writes:
> > The way I'm doing it currently is:
> > ...
> > no_edit = 'no-edit'
> > parser.add_argument('-e', '--edit', help='open editor on log',
> > nargs='?',
> > default=no_edit)
>
> There is a built-in “no value specified”
Sounds like you may be using this on a Windows machine. the code is
functional, it is best practice to close the port first before openiing it.
If due to an error, usually not syntax, the port will stay stuck open until
the program is closed and reopened. I have used the Python serial port
(
On Fri, May 18, 2012 at 2:53 PM, Ron Eggler wrote:
> Hoi,
>
> I'm trying to connect to a serial port and always get the error
> "serial.serialutil.SerialException: Port is already open." whcih is untrue.
> I have no serial port open yet, my code looks like this:
> #!/usr/bin/python
> import time
>
On May 16, 9:54 pm, alex23 wrote:
> On May 17, 11:45 am, gwhite wrote:
>
> > 1. If running from the system command line, or the Sypder "run"
> > button, "__name__" is "__main__" rather than "newbie00", as seen
> > above.
>
> > So, how would I get the file name newbie00.py in these two noted
> >
Hoi,
I'm trying to connect to a serial port and always get the error
"serial.serialutil.SerialException: Port is already open." whcih is untrue.
I have no serial port open yet, my code looks like this:
#!/usr/bin/python
import time
import serial
# configure the serial connections (the parameters
On May 16, 9:33 pm, Steven D'Aprano wrote:
> On Wed, 16 May 2012 18:45:39 -0700, gwhite wrote:
> > #!
> > # Filename: newbie00.py
>
> "Supposed to"? Nothing -- it is completely optional.
>
> #! ("hash-bang") lines currently do nothing on Windows machines, they are
> just comments. However, on Uni
PyQt4 has built-in widgets for things like digital counters & dials... kind of
surprising there aren't more instrument related widgets out there...
--
http://mail.python.org/mailman/listinfo/python-list
On 05/18/2012 05:42 PM, jmfauth wrote:
Non official but really practical:
http://www.fileformat.info/info/unicode/index.htm
Very well ordered, thanks
--
Marco
--
http://mail.python.org/mailman/listinfo/python-list
Does __slots__ make access to variables more efficient?
If one uses property() to create a few read-only pseudo-variables, does
that negate the efficiency advantages of using __slots__?
(Somehow I feel the documentation needs a bit of improvement.)
--
Charles Hixson
--
http://mail.python.org/m
On 18 mai, 17:08, Marco Buttu wrote:
> On 05/17/2012 09:32 PM, Marco wrote:
>
> > Is it normal the str.isnumeric() returns False for these Cuneiforms?
>
> > '\U00012456'
> > '\U00012457'
> > '\U00012432'
> > '\U00012433'
>
> > They are all in the Nl category.
>
> > Marco
>
> It's ok, I found that
On 18 mai, 17:08, Marco Buttu wrote:
> On 05/17/2012 09:32 PM, Marco wrote:
>
> > Is it normal the str.isnumeric() returns False for these Cuneiforms?
>
> > '\U00012456'
> > '\U00012457'
> > '\U00012432'
> > '\U00012433'
>
> > They are all in the Nl category.
>
> > Marco
>
> It's ok, I found that
On 05/17/2012 09:32 PM, Marco wrote:
Is it normal the str.isnumeric() returns False for these Cuneiforms?
'\U00012456'
'\U00012457'
'\U00012432'
'\U00012433'
They are all in the Nl category.
Marco
It's ok, I found that they don't have a number assigned in the
ftp://ftp.unicode.org/Public/U
On 05/18/2012 11:24 AM, jmfauth wrote:
Is it normal the str.isnumeric() returns False for these Cuneiforms?
>
> '\U00012456'
> '\U00012457'
> '\U00012432'
> '\U00012433'
>
> They are all in the Nl category.
Indeed there are, but Unicode (ver. 5.0.0) does not assign numeric
values to these
> There is a built-in “no value specified” value in Python: the None
> singleton. The ‘argparse’ library uses this for the argument default
> already, so you don't need to fuss with your own special handling
> http://docs.python.org/library/argparse.html#default>.
The problem with this approach is
On 05/18/2012 02:50 AM, Steven D'Aprano wrote:
Is it normal the str.isnumeric() returns False for these Cuneiforms?
>
> '\U00012456'
> '\U00012457'
> '\U00012432'
> '\U00012433'
>
> They are all in the Nl category.
Are you sure about that? Do you have a reference?
I I was just playing
On 18.05.2012 15:10, Steven D'Aprano wrote:
> Here's one way:
>
> import types
> class K(object):
> def _dispatcher(self, name, *args):
> print "called from", name, args
> def __init__(self):
> setattr(self, 'foometh',
> types.MethodType(
>
On Fri, 18 May 2012 14:14:33 +0200, Johannes Bauer wrote:
> Hi group,
>
> I'm trying to dynamically add methods to a class at runtime. What I
> would like to do is have them all delegated to one common function which
> is called with the name of the function as first parameter. I.e.:
[...]
Here'
On Viernes mayo 18 2012 14:14:33 Johannes Bauer escribió:
> Hi group,
>
> I'm trying to dynamically add methods to a class at runtime. What I
> would like to do is have them all delegated to one common function which
> is called with the name of the function as first parameter. I.e.:
>
> class Fo
Hi group,
I'm trying to dynamically add methods to a class at runtime. What I
would like to do is have them all delegated to one common function which
is called with the name of the function as first parameter. I.e.:
class Foo():
def __init__(self):
# Some magic missing here
setattr(sel
On 5/18/12 4:22 AM, xliiv wrote:
Like the topic, more details in followed links..
http://stackoverflow.com/questions/10637450/how-to-hide-console-with-popen-on-windows
http://code.activestate.com/recipes/409002-launching-a-subprocess-without-a-console-window/?c=14452
Please help :(
Any hint i
Hello,
Does python ship with xpath query language support? Certainly, I can use
lxml but I prefer something in the standard modules list.
--
--- Get your facts first, then you can distort them as you please.--
--
http://mail.python.org/mailman/listinfo/python-list
***TRIVIAL ISSUE***, but this has been irking me for a while now.
The main logging.Handler class' __init__ accepts a level argument while none
of its children do. The poor minions seem to be stuck with the setLevel
method which considerably lengthens the code.
In short:
Let's do this:
root.addHa
On 17 mai, 21:32, Marco wrote:
> Is it normal the str.isnumeric() returns False for these Cuneiforms?
>
> '\U00012456'
> '\U00012457'
> '\U00012432'
> '\U00012433'
>
> They are all in the Nl category.
Indeed there are, but Unicode (ver. 5.0.0) does not assign numeric
values to these code points.
On Fri, May 18, 2012 at 6:22 PM, xliiv wrote:
> Like the topic, more details in followed links..
>
>
> http://stackoverflow.com/questions/10637450/how-to-hide-console-with-popen-on-windows
As you've already been advised, the way to avoid a console is to use
pythonw.exe (which is a windowed Python
28 matches
Mail list logo