moo...@yahoo.co.uk writes:
> ...
> Does pickle have any advantages over json/yaml?
It can store and retrieve almost any Python object with almost no effort.
Up to you whether you see it as an advantage to be able to store
objects rather than (almost) pure data with a rather limited type set.
Of
On 07/14/2012 11:13 AM, rusi wrote:
> I looked at the second link and find code like this:
>
> app = None if ( not app ): app = QtGui.QApplication([])
>
> Maybe I'm dense but whats that if doing there?
>
> Frankly I seem to be a bit jinxed with gui stuff. A few days ago
> someone was singing t
On Sunday, July 15, 2012 5:25:14 AM UTC+2, rusi wrote:
> On Jul 14, 10:50 am, moo...@yahoo.co.uk wrote:
> > Hi,
> > This is a general question, loosely related to python since it will be
> the implementation language.
> > I would like some suggestions as to manage simulation results data from
> m
On Sunday, July 15, 2012 2:42:39 AM UTC+2, Neal Becker wrote:
> me wrote:
>
> > Hi,
> > This is a general question, loosely related to python since it will be
> the
> > implementation language. I would like some suggestions as to manage
> simulation
> > results data from my ASIC design.
> >
> >
On Friday, July 13, 2012, nuffi wrote:
>
> If I copy and paste the following command into a command window, it does
> what I need.
>
> c:\Programs\bob\bob.exe -x -y "C:\text\path\to some\file.txt" |
> c:\Programs\kate\kate.exe -A 2 --dc "Print Media Is Dead" --da "Author"
> --dt "Title" --hf "Ti
On Thursday, February 19, 2009 10:06:42 PM UTC-6, W. eWatson wrote:
> I'm using IDLE for editing, but execute programs directly. If there are
> execution or "compile" errors, the console closes before I can see what it
> contains. How do I prevent that?
Q: If you are in fact using IDLE to edit y
On Jul 14, 10:50 am, moo...@yahoo.co.uk wrote:
> Hi,
> This is a general question, loosely related to python since it will be the
> implementation language.
> I would like some suggestions as to manage simulation results data from my
> ASIC design.
>
> For my design,
> - I have a number of simula
On Thursday, July 12, 2012 1:53:54 PM UTC-5, Frederic Rentsch wrote:
> The "hit list" is a table of investment titles (stock, funds, bonds)
> that displays upon entry of a search pattern into a respective template.
> The table displays the matching records: name, symbol, ISIN, CUSIP, Sec.
> Any li
On Friday, July 13, 2012 8:00:05 PM UTC-5, gelonida wrote:
> I just want to use a beep command that works cross platform. [...] I
> just want to use them as alert, when certain events occur within a
> very long running non GUI application.
I can see a need for this when facing a non GUI interface.
On Sun, Jul 15, 2012 at 10:39 AM, Hans Mulder wrote:
> The other prerequisite is that the use is physically near the
> compueter where your Python process is running.
>
> If, for exmple, I'm ssh'ed into my webserver, then sending a sound
> file to the server's speaker may startle someone in the da
On 14/07/12 20:49:11, Chris Angelico wrote:
> On Sun, Jul 15, 2012 at 3:54 AM, Dieter Maurer wrote:
>> I, too, would find it useful -- for me (although I do not hate myself).
>>
>> Surely, you know an alarm clock. Usually, it gives an audible signal
>> when it is time to do something. A computer c
On Sun, Jul 15, 2012 at 9:29 AM, Steven D'Aprano
wrote:
> Not necessarily *compile* time, but the distinction is between when the
> function is defined (which may at compile time, or it may be at run time)
> versus when the function is called.
I'd treat the def/lambda statement as "compile time"
moo...@yahoo.co.uk wrote:
> Hi,
> This is a general question, loosely related to python since it will be the
> implementation language. I would like some suggestions as to manage simulation
> results data from my ASIC design.
>
> For my design,
> - I have a number of simulations testcases (TEST_X
On Sat, Jul 14, 2012 at 4:29 PM, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> I don't remember whether it is Javascript or PHP that uses dynamic
> binding, but whichever it is, it is generally considered to be a bad
> idea, at least as the default or only behaviour.
>
> Bash is
Hi, everybody. I am trying to collect all the functions I've found useful for
working with dicts into a library:
https://github.com/leifp/dictutil
If you have a favorite dict-related func / class, or know of similar projects,
please let me know (or open an issue on github). Bear in mind that th
On Fri, 13 Jul 2012 12:54:02 -0600, Ian Kelly wrote:
> On Fri, Jul 13, 2012 at 11:53 AM, Hans Mulder wrote:
>> The function `function` refers to a variable `VERBOSE` that isn't
>> local. In some programming langauages, the interpreter would then scan
>> the call stack at run-time, looking for a
On 7/14/2012 5:26 AM, Ian Kelly wrote:
On Fri, Jul 13, 2012 at 5:09 PM, Terry Reedy wrote:
I believe the following rule is true: if a op b is True or False raises,
Sorry, left out 'or' in 'or raises'
I don't follow. Raises what?
an Exception.
then op is a potentially chained comparis
On Sun, Jul 15, 2012 at 3:54 AM, Dieter Maurer wrote:
> I, too, would find it useful -- for me (although I do not hate myself).
>
> Surely, you know an alarm clock. Usually, it gives an audible signal
> when it is time to do something. A computer can in principle be used
> as a flexible alarm cloc
> How do others handle simple beeps?
http://pymedia.org/ ?
I *think* the "big" UI frameworks (Qt, wx ...) have some sound support.
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano writes:
>> How do others handle simple beeps?
>>
>> I just want to use them as alert, when certain events occur within a
>> very long running non GUI application.
>
> Why? Do you hate your users?
I, too, would find it useful -- for me (although I do not hate myself).
Surely, you
On Jul 14, 7:45 pm, Michael Torrie wrote:
> On 07/13/2012 03:12 PM, Jean Dubois wrote:
>
> > Thanks for the extra docu references
>
> In this day and age, I think compiling ui files to code is probably on
> the way out. Instead you should consider using the ui files directly in
> your code. This
On 07/13/2012 03:12 PM, Jean Dubois wrote:
> Thanks for the extra docu references
In this day and age, I think compiling ui files to code is probably on
the way out. Instead you should consider using the ui files directly in
your code. This has the advantage of letting you change the gui
somewha
суббота, 14 июля 2012 г., 15:27:24 UTC+4 пользователь invis написал:
> Hello everyone !
>
> I used Octave for matrix computations, but looks like Python will be useful
> everywhere so it is good idea to migrate (imho ofc).
>
> But I am novice here and dont know how to get things that was easy in
Am 13.07.2012 03:52, schrieb Steven D'Aprano:
> And some storage devices (e.g. hard drives, USB sticks) don't actually
> write data permanently even when you sync the device. They just write to
> a temporary cache, then report that they are done (liar liar pants on
> fire). Only when the cache i
Hello everyone !
I used Octave for matrix computations, but looks like Python will be useful
everywhere so it is good idea to migrate (imho ofc).
But I am novice here and dont know how to get things that was easy in Octave,
for example:
[intersect iA iB] = intersect(a, b)
To do this in Python
Alister於 2012年7月12日星期四UTC+8下午5時44分15秒寫道:
> On Wed, 11 Jul 2012 08:43:11 +0200, Daniel Fetchinson wrote:
>
> >> funcs = [ lambda x: x**i for i in range( 5 ) ]
> >> print funcs[0]( 2 )
> >> print funcs[1]( 2 )
> >> print funcs[2]( 2 )
> >>
> >> This gives me
> >>
> >> 16 16 16
> >>
> >> When I was e
On Fri, Jul 13, 2012 at 5:09 PM, Terry Reedy wrote:
>
>> From now on, for each operator I would have to remember wether it
>> is a supposedly comparison operator or not.
>
>
> I believe the following rule is true: if a op b is True or False raises,
I don't follow. Raises what?
> then op is a po
On Fri, 13 Jul 2012 21:53:10 -0700, rusi wrote:
> On Jul 14, 8:43 am, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> On Fri, 13 Jul 2012 19:31:24 -0700, rusi wrote:
>> > Consider the following
>>
>> > def foo(x):
>> > i = 100
>> > if x:
>> > j = [i for i in range(10)]
Terry Reedy wrote:
> On 7/13/2012 4:24 PM, Frederic Rentsch wrote:
>> On Fri, 2012-07-13 at 09:26 +0200, Peter Otten wrote:
>
>>> Another random idea: run your code on a more recent python/tcl
>>> installation.
>
> That might have been clearer as python + tcl/tk installation.
Yes, sorry; I mean
29 matches
Mail list logo