On Tue, Feb 23, 2010 at 9:48 AM, R. P. Janaka wrote:
> Hi all,
>
> Is there a way to get system memory consumption and CPU consumption in a
> platform independent way, using python...?
>
> Basically my requirement is, get the memory status and CPU status of a
> particular process. If there is a w
On Mon, Feb 22, 2010 at 11:16 PM, Paul Rudin wrote:
> Chris Rebert writes:
>>> On Tue, Feb 23, 2010 at 9:18 AM, R. P. Janaka wrote:
Is there a way to get system memory consumption and CPU consumption in a
platform independent way, using python...?
Basically my requirement is,
Chris Rebert writes:
>> On Tue, Feb 23, 2010 at 9:18 AM, R. P. Janaka wrote:
>>> Hi all,
>>>
>>> Is there a way to get system memory consumption and CPU consumption in a
>>> platform independent way, using python...?
>>>
>>> Basically my requirement is, get the memory status and CPU status of a
All you have to do is just click on the link below and register on-
site.And you'll know the rest of the steps on your
own
http://ezlaptop.com/?r=130329
Good luck to all
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 22 Feb 2010 11:45:10 -0800, Jonathan Gardner wrote:
> Why would you ever run untrusted code on any machine in any language,
> let alone Python?
Because sometimes you have to run untrusted code, so you want to run it
in a sandbox so it can't eat your machine.
E.g. viewing PDF files.
Or
> On Tue, Feb 23, 2010 at 9:18 AM, R. P. Janaka wrote:
>> Hi all,
>>
>> Is there a way to get system memory consumption and CPU consumption in a
>> platform independent way, using python...?
>>
>> Basically my requirement is, get the memory status and CPU status of a
>> particular process. If ther
On Mon, 22 Feb 2010 09:10:38 -0800, Alex Quinn wrote:
> Is there a way to have some kind of database (i.e. sqlite3, bsddb, dbm,
> etc.) that works out of the box on any Win/Linux/Mac machine with Python
> 2.6+ or 3.x? It's okay if the file format is different between machines,
> but I want my scri
On Feb 22, 9:24 pm, John Nagle wrote:
> sjdevn...@yahoo.com wrote:
> > On Feb 20, 9:58 pm, John Nagle wrote:
> >> sjdevn...@yahoo.com wrote:
> >>> On Feb 18, 2:58 pm, John Nagle wrote:
> Multiple processes are not the answer. That means loading multiple
> copies of the same code i
On Feb 22, 9:24 pm, John Nagle wrote:
> sjdevn...@yahoo.com wrote:
> > On Feb 20, 9:58 pm, John Nagle wrote:
> >> sjdevn...@yahoo.com wrote:
> >>> On Feb 18, 2:58 pm, John Nagle wrote:
> Multiple processes are not the answer. That means loading multiple
> copies of the same code i
Please can anyone help me..??
On Tue, Feb 23, 2010 at 9:18 AM, R. P. Janaka wrote:
> Hi all,
>
> Is there a way to get system memory consumption and CPU consumption in a
> platform independent way, using python...?
>
> Basically my requirement is, get the memory status and CPU status of a
> part
Hi All,
As promised I have made a new release of esky, my auto-update
framework for frozen python apps. Details below for those who are
interested.
Cheers,
Ryan
---
esky: keep frozen apps fresh
Esky is an auto-update framework for frozen Python app
I installed it on a Windows 7 machine with CPython 2.6.4 and I get the
following error:
Traceback (most recent call last):
File "dreampie.py", line 3, in
File "dreampielib\gui\__init__.pyc", line 73, in
File "dreampielib\gui\load_pygtk.pyc", line 49, in load_pygtk
ImportError: DLL load fai
* Paul Rubin:
Steve Howell writes:
My gut instinct is that functional programming works well for lots of
medium sized problems and it is worth learning.
I think it's worth learning because it will make you a better programmer
even if you never use it for anything beyond academic exercises. I
* W. eWatson:
On 2/22/2010 8:50 PM, Alf P. Steinbach wrote:
* W. eWatson:
So what's the bottom line? This link notion is completely at odds with
XP,
Well, Windows NT has always had *hardlinks*.
I found it a bit baffling that that functionality is documented as not
implemented for Windows in
Paul Rubin wrote:
>
>Giorgos Tzampanakis writes:
>> I'm implementing a CPU that will run on an FPGA. I want to have a
>> (dead) simple assembler that will generate the machine code for
>> me. I want to use Python for that. Are there any libraries that
>> can help me with the parsing of the as
On Feb 22, 9:45 pm, Chris Rebert wrote:
> On Mon, Feb 22, 2010 at 8:36 PM, Jonathan Gardner
>
> wrote:
> > On Mon, Feb 22, 2010 at 1:56 PM, AON LAZIO wrote:
> >> That will be superb
>
> > It already has.
>
> Indeed. Python is at position 7, just behind C#, in the TIOBE
> Index:http://www.tiobe.
On Mon, Feb 22, 2010 at 8:36 PM, Jonathan Gardner
wrote:
> On Mon, Feb 22, 2010 at 1:56 PM, AON LAZIO wrote:
>> That will be superb
>>
> It already has.
Indeed. Python is at position 7, just behind C#, in the TIOBE Index:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
Although
On Feb 22, 9:06 pm, Paul Rubin wrote:
> Steve Howell writes:
> > My gut instinct is that functional programming works well for lots of
> > medium sized problems and it is worth learning.
>
> I think it's worth learning because it will make you a better programmer
> even if you never use it for an
On Feb 22, 9:11 pm, Steve Howell wrote:
> On Feb 22, 8:35 pm, Jonathan Gardner
> wrote:
>
>
>
> > On Mon, Feb 22, 2010 at 12:31 PM, John Bokma wrote:
>
> > > In my class there where basically 2 groups of people: the ones who got
> > > functional programming and the ones who had a hard time with
Steve Howell writes:
> My gut instinct is that functional programming works well for lots of
> medium sized problems and it is worth learning.
I think it's worth learning because it will make you a better programmer
even if you never use it for anything beyond academic exercises. It's
just like
Maybe someone could verify my result?
open file
read file line
print line
close file
data 1234
Execute it in a folder
Create another folder and copy the program to it.
put in a new data file as
data 4567
Execute the copied program
Does it give
data1234?
--
http://mail.python.org/mailman/lis
On Feb 22, 8:35 pm, Jonathan Gardner
wrote:
> On Mon, Feb 22, 2010 at 12:31 PM, John Bokma wrote:
>
> > In my class there where basically 2 groups of people: the ones who got
> > functional programming and the ones who had a hard time with it. The
> > latter group consisted mostly of people who h
DANNY wrote:
>
>Yes, well beside bieng time-consuming, that is also inappropriate
>for me, because I want to have clip that would be streamed across
>the network and have the same GoP on the client side as the
>original-because I want to see what is the effect of errors on
>different GoP sizes.
On 2/22/2010 8:50 PM, Alf P. Steinbach wrote:
* W. eWatson:
So what's the bottom line? This link notion is completely at odds with
XP,
Well, Windows NT has always had *hardlinks*.
I found it a bit baffling that that functionality is documented as not
implemented for Windows in the Python sta
On 2/22/2010 8:50 PM, Alf P. Steinbach wrote:
* W. eWatson:
So what's the bottom line? This link notion is completely at odds with
XP,
Well, Windows NT has always had *hardlinks*.
I found it a bit baffling that that functionality is documented as not
implemented for Windows in the Python sta
* W. eWatson:
So what's the bottom line? This link notion is completely at odds with
XP,
Well, Windows NT has always had *hardlinks*.
I found it a bit baffling that that functionality is documented as not
implemented for Windows in the Python standard library.
But OK, it was non-trivial to
On Mon, Feb 22, 2010 at 1:56 PM, AON LAZIO wrote:
> That will be superb
>
It already has.
--
Jonathan Gardner
jgard...@jonathangardner.net
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Feb 22, 2010 at 12:31 PM, John Bokma wrote:
>
> In my class there where basically 2 groups of people: the ones who got
> functional programming and the ones who had a hard time with it. The
> latter group consisted mostly of people who had been programming in
> languages like C and Pascal
David Boddie wrote:
I have previously referred people with py2exe/PyQt issues to this page on
the PyQt Wiki:
http://www.py2exe.org/index.cgi/Py2exeAndPyQt
If you can somehow convince py2exe to include the QtSvg module (and
presumably the libQtSvg library as well) then perhaps that will solve
On 2/22/2010 6:39 PM, David Robinow wrote:
On Mon, Feb 22, 2010 at 8:25 PM, W. eWatson wrote:
How do I get out of this pickle? I just want to duplicate the program in
another folder, and not link to an ancestor.
Ask in an appropriate forum. I'm not sure where that is but you might
try http://
Hi all,
Is there a way to get system memory consumption and CPU consumption in a
platform independent way, using python...?
Basically my requirement is, get the memory status and CPU status of a
particular process. If there is a way to get memory info and CPU info by
just giving the process ID, t
> Subject: Re: Writing an assembler in Python
> Giorgos
> Tzampanakis wrote:
>
> > I'm implementing a CPU that will run on an FPGA. I
> want to have a
> > (dead) simple assembler that will generate the machine
> code for
> > me.
>
> Let me suggest an alternative approach: use Python itself
> as
In message , Dennis Lee
Bieber wrote:
> Besides, the approved method of interacting with MySQLdb would use:
>
> c.execute("insert into items (story) values (%s)",
> (file.read(), ) )
>
> which lets the adapter properly escape any dangerous characters in the
> data, then wrap it with any needed
In message
<3aa0205f-1e98-4376-92e4-607f96f13...@k19g2000yqc.googlegroups.com>, Michael
Sparks wrote:
> [1] This is perhaps more appropriate because '(a b c) is equivalent
> to (quote a b c), and quote a b c can be viewed as close to
> python's expression "lambda: a b c"
You got to be k
In message , Giorgos
Tzampanakis wrote:
> I'm implementing a CPU that will run on an FPGA. I want to have a
> (dead) simple assembler that will generate the machine code for
> me.
Let me suggest an alternative approach: use Python itself as the assembler.
Call routines in your library to output
Giorgos Tzampanakis writes:
> I'm implementing a CPU that will run on an FPGA. I want to have a
> (dead) simple assembler that will generate the machine code for
> me. I want to use Python for that. Are there any libraries that
> can help me with the parsing of the assembly code?
One "dead si
On Mon, Feb 22, 2010 at 8:25 PM, W. eWatson wrote:
> How do I get out of this pickle? I just want to duplicate the program in
> another folder, and not link to an ancestor.
Ask in an appropriate forum. I'm not sure where that is but you might
try http://www.sevenforums.com/
--
http://mail.python
Stef Mientki wrote:
hello,
in my python desktop applications,
I'ld like to implement a crash reporter.
By redirecting the sys.excepthook,
I can detect a crash and collect the necessary data.
Now I want that my users sends this information to me,
and I can't find a good way of doing this.
The fo
I'm implementing a CPU that will run on an FPGA. I want to have a
(dead) simple assembler that will generate the machine code for
me. I want to use Python for that. Are there any libraries that
can help me with the parsing of the assembly code?
--
http://mail.python.org/mailman/listinfo/python
sjdevn...@yahoo.com wrote:
On Feb 20, 9:58 pm, John Nagle wrote:
sjdevn...@yahoo.com wrote:
On Feb 18, 2:58 pm, John Nagle wrote:
Multiple processes are not the answer. That means loading multiple
copies of the same code into different areas of memory. The cache
miss rate goes up accor
hello,
in my python desktop applications,
I'ld like to implement a crash reporter.
By redirecting the sys.excepthook,
I can detect a crash and collect the necessary data.
Now I want that my users sends this information to me,
and I can't find a good way of doing this.
The following solutions cam
When will Java be popular enough to replace other languages in their own
environments, the way Python has done to Java (Jython) and .NET (IronPython)?
Shawn
--
http://mail.python.org/mailman/listinfo/python-list
So what's the bottom line? This link notion is completely at odds with
XP, and produces what I would call something of a mess to the unwary
Python/W7 user. Is there a simple solution?
How do I get out of this pickle? I just want to duplicate the program
in another folder, and not link to an a
On Mon, 22 Feb 2010 10:48:55 -, DANNY wrote:
On Feb 21, 1:54 am, Tim Roberts wrote:
DANNY wrote:
>If I want to have a MPEG-4/10 coded video and stream it through the
>network and than have the same video on the client side, what should I
>use and of course I don't want to have raw MPEG
You mean it's not?
--
-Ed Falk, f...@despams.r.us.com
http://thespamdiaries.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the reply, Jonathan, but I was hoping to find a workaround. I don't
have root access for these machines so I can't repair the install. Among the 6
Linux servers at 3 separately managed organizations where I do work, the
sqlite3 module was broken 100% of the time. It seems to be a c
On Feb 22, 3:27 pm, Krister Svanlund
wrote:
> And when will be as famous as the Beatles?
And when will http://mail.python.org/mailman/listinfo/python-list
On 2/22/2010 4:29 PM, Bryan wrote:
Sorry about the sorted != ordered mix up. I want to end up with a
*sorted* dict from an unordered list. *Sorting the list is not
practical in this case.* I am using python 2.5, with an ActiveState
recipe for an OrderedDict.
Have you looked at this:
htt
On Feb 22, 3:00 pm, "Diez B. Roggisch" wrote:
> Am 22.02.10 23:48, schrieb Bryan:
>
>
>
> > On Feb 22, 2:16 pm, "Diez B. Roggisch" wrote:
> >> Am 22.02.10 22:29, schrieb Bryan:
>
> >>> On Feb 22, 10:57 am, "Alf P. Steinbach" wrote:
> * Bryan:
>
> > I am looping through a list and crea
On Mon, Feb 22, 2010 at 10:56 PM, AON LAZIO wrote:
> That will be superb
>
> --
> Passion is my style
And when will be as famous as the beatles?
--
http://mail.python.org/mailman/listinfo/python-list
John Bokma writes:
> In my class there where basically 2 groups of people: the ones who got
> functional programming and the ones who had a hard time with it. The
> latter group consisted mostly of people who had been programming in
> languages like C and Pascal for years; they had a hard time thi
In message <873a0tszco@castleamber.com>, John Bokma wrote:
> According to http://msdn.microsoft.com/en-us/library/aa365006(VS.85).aspx
>
> There are three types of file links supported in the NTFS file
> system: hard links, junctions, and symbolic links. This topic is an
> overvie
Bryan wrote:
On Feb 22, 2:16 pm, "Diez B. Roggisch" wrote:
Am 22.02.10 22:29, schrieb Bryan:
On Feb 22, 10:57 am, "Alf P. Steinbach" wrote:
* Bryan:
I am looping through a list and creating a regular dictionary. From
that dict, I create an ordered dict. I can't think of a way to build
In message , MRAB wrote:
> Not Python-related.
Seems to be pretty common with Windows-related complaints in this group.
--
http://mail.python.org/mailman/listinfo/python-list
In message <1ecc71bf-54ab-45e6-a38a-d1861f092...@v25g2000yqk.googlegroups.com>,
sjdevn...@yahoo.com wrote:
> On Feb 20, 1:30 am, Lawrence D'Oliveiro
> wrote:
>
>> In message , Rhodri James wrote:
>>
>> > In classic Pascal, a procedure was distinct from a function in that it
>> > had no return v
Am 22.02.10 23:48, schrieb Bryan:
On Feb 22, 2:16 pm, "Diez B. Roggisch" wrote:
Am 22.02.10 22:29, schrieb Bryan:
On Feb 22, 10:57 am, "Alf P. Steinbach"wrote:
* Bryan:
I am looping through a list and creating a regular dictionary. From
that dict, I create an ordered dict. I can't
On Feb 22, 2:16 pm, "Diez B. Roggisch" wrote:
> Am 22.02.10 22:29, schrieb Bryan:
>
>
>
> > On Feb 22, 10:57 am, "Alf P. Steinbach" wrote:
> >> * Bryan:
>
> >>> I am looping through a list and creating a regular dictionary. From
> >>> that dict, I create an ordered dict. I can't think of a way
On 2010-02-22, John Bokma wrote:
> Grant Edwards writes:
Windows 7 has symbolic links?
>>>
>>>Symbolic links are designed to aid in migration and application
>>>compatibility with UNIX operating systems. Microsoft has implemented
>>>its symbolic links to function just like UNIX
Am 22.02.10 22:29, schrieb Bryan:
On Feb 22, 10:57 am, "Alf P. Steinbach" wrote:
* Bryan:
I am looping through a list and creating a regular dictionary. From
that dict, I create an ordered dict. I can't think of a way to build
the ordered dict while going through the original loop. Is th
John Bokma wrote:
Gib Bogle writes:
MRAB wrote:
W. eWatson wrote:
Last night I copied a program from folder A to folder B. It
inspects the contents of files in a folder. When I ran it in B, it
gave the results for A! Out of frustration I changed the name in A,
and fired up the program in B.
On 22 Feb, 21:29, Bryan wrote:
> Sorry about the sorted != ordered mix up. I want to end up with a
> *sorted* dict from an unordered list. *Sorting the list is not
> practical in this case.* I am using python 2.5, with an ActiveState
> recipe for an OrderedDict.
Why does the dict need to be so
Grant Edwards writes:
> On 2010-02-22, John Bokma wrote:
>> Gib Bogle writes:
>>
>>> MRAB wrote:
W. eWatson wrote:
> Last night I copied a program from folder A to folder B. It
> inspects the contents of files in a folder. When I ran it in B, it
> gave the results for A! Out of
That will be superb
--
Passion is my style
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 22, 10:57 am, "Alf P. Steinbach" wrote:
> * Bryan:
>
>
>
> > I am looping through a list and creating a regular dictionary. From
> > that dict, I create an ordered dict. I can't think of a way to build
> > the ordered dict while going through the original loop. Is there a
> > way I can a
On 2010-02-22, John Bokma wrote:
> Gib Bogle writes:
>
>> MRAB wrote:
>>> W. eWatson wrote:
Last night I copied a program from folder A to folder B. It
inspects the contents of files in a folder. When I ran it in B, it
gave the results for A! Out of frustration I changed the name i
On Feb 22, 9:40 am, bobicanprogram wrote:
> The SIMPL project (http://www.icanprogram.com/simpl) aims to bring the
> Send/Receive/Reply messaging (first popularized by QNX) to the open
> source Linux world. Since its inception more that 10 years ago, the
> SIMPL toolkit has grown steadily in fu
Gib Bogle writes:
> MRAB wrote:
>> W. eWatson wrote:
>>> Last night I copied a program from folder A to folder B. It
>>> inspects the contents of files in a folder. When I ran it in B, it
>>> gave the results for A! Out of frustration I changed the name in A,
>>> and fired up the program in B. Wi
Jonathan Gardner writes:
> On Sun, Feb 21, 2010 at 10:22 AM, John Bokma wrote:
>> Jonathan Gardner writes:
>>> On Fri, Feb 19, 2010 at 11:16 PM, Lie Ryan wrote:
Now, why don't we start a PEP to make python a fully-functional language
then?
>>>
>>> Because people don't think the
Jonathan Gardner writes:
> I won't deny that really smart people enjoy the challenge of
> programming in a functional style, and some even find it easier to
> work with. However, when it comes to readability and maintenance, I
> appreciate the statement-based programming style, simply because it's
MRAB wrote:
W. eWatson wrote:
Last night I copied a program from folder A to folder B. It inspects
the contents of files in a folder. When I ran it in B, it gave the
results for A! Out of frustration I changed the name in A, and fired
up the program in B. Win7 went into search mode for the fil
Hi,
I am working on an application, which retrieves Windows system info
(Hardware / Software / Drivers / OS) and write to an xml.
For the GUI, I selected PyQT4, and for system info using WMI, I am using WMI
Package (http://timgolden.me.uk/python/wmi/index.html) and popular pywin32.
To package the
On Sun, Feb 21, 2010 at 10:22 AM, John Bokma wrote:
> Jonathan Gardner writes:
>> On Fri, Feb 19, 2010 at 11:16 PM, Lie Ryan wrote:
>>>
>>> Now, why don't we start a PEP to make python a fully-functional language
>>> then?
>>
>> Because people don't think the same way that programs are written i
On Sun, Feb 21, 2010 at 1:25 PM, W. Martin Borgert wrote:
>
> I know that this issue has been discussed before, but most of
> the time using only one argument to eval().
>
> Is it possible to use the following code, e.g. run as part of a
> web application, to break in and if so, how?
>
> import ma
On Mon, Feb 22, 2010 at 9:10 AM, Alex Quinn wrote:
>
> * Sqlite3 should fill the void now. However, in my experience, nearly every
> Linux Python install I encounter has a broken sqlite3 module ("ImportError:
> No module named _sqlite3"). It's a well-documented issue, but it the solution
> gen
Günther Dietrich wrote:
vsoler wrote:
I'm trying to print .7 as 70%
I've tried:
print format(.7,'%%')
.7.format('%%')
but neither works. I don't know what the syntax is...
Did you try this:
print('%d%%' % (0.7 * 100))
70%
That method will always round down; TomF's method will round to
* Bryan:
I am looping through a list and creating a regular dictionary. From
that dict, I create an ordered dict. I can't think of a way to build
the ordered dict while going through the original loop. Is there a
way I can avoid creating the first unordered dict just to get the
ordered dict?
Have you tried using http://dependencywalker.com/ ?
-srid
On 2010-02-18, at 1:00 PM, Nardin, Cory L. wrote:
> Quickly, I have a Mac Intel with Windows XP installed. Tried installing
> Python 2.6.4 from the binary and also ActivePython 2.6.4.10. Both
> installations acted the same. There see
On 2/22/2010 8:29 AM, Grant Edwards wrote:
On 2010-02-22, W. eWatson wrote:
Last night I copied a program from folder A to folder B.
[tail of various windows breakages elided]
Comments?
Switch to Linux?
Or at least install Cygwin?
Yes, definitely not related, but maybe some W7 user has
Bryan wrote:
On Feb 22, 9:19 am, MRAB wrote:
Bryan wrote:
I am looping through a list and creating a regular dictionary. From
that dict, I create an ordered dict. I can't think of a way to build
the ordered dict while going through the original loop. Is there a
way I can avoid creating the
Bryan writes:
> I am looping through a list and creating a regular dictionary. From
> that dict, I create an ordered dict. I can't think of a way to build
> the ordered dict while going through the original loop. Is there a
> way I can avoid creating the first unordered dict just to get the
>
Bryan wrote:
On Feb 22, 9:19 am, MRAB wrote:
Bryan wrote:
I am looping through a list and creating a regular dictionary. From
that dict, I create an ordered dict. I can't think of a way to build
the ordered dict while going through the original loop. Is there a
way I can avoid creating the
On Feb 22, 5:33 pm, Bernard Czenkusz wrote:
> On Mon, 22 Feb 2010 09:26:18 -0800, barryjogorman wrote:
> >HAVE THE FOLLOWING VERY BASIC PROGRAM:
>
> >class Person:
> > def _init_(self,name, job=None, pay=0):
> > self.name=name
> > self.job=job
> > self.pay=pay
>
> >bob = Pe
On 2010-02-22, Albert van der Horst wrote:
> In article <87404349-5d3a-4396-aeff-60edc14a5...@f8g2000yqn.googlegroups.com>,
>>Gabriel Genellina reports that time.clock() uses Windows'
>>QueryPerformanceCounter() API, which has much higher resolution
>>than the task switcher's 15ms. QueryPerforma
barryjogorman wrote:
HAVE THE FOLLOWING VERY BASIC PROGRAM:
class Person:
def _init_(self,name, job=None, pay=0):
self.name=name
self.job=job
self.pay=pay
bob = Person('Bob Smith')
sue = Person('Sue Jones', job='dev', pay = 10)
print(bob.name, bob.pay)
print(sue.
you need to define init with two underscores, I've made that mistake myself
long long time ago :)
def __init__
not def _init_
-Alex Goretoy
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 22 Feb 2010 09:26:18 -0800, barryjogorman wrote:
> HAVE THE FOLLOWING VERY BASIC PROGRAM:
>
> class Person:
> def _init_(self,name, job=None, pay=0):
> self.name=name
> self.job=job
> self.pay=pay
>
> bob = Person('Bob Smith')
> sue = Person('Sue Jones', job='
In article ,
Terrence Cole wrote:
>Can someone explain to me what python is doing here?
>
>Python 3.1.1 (r311:74480, Feb 3 2010, 13:36:47)
>[GCC 4.3.4] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
-0.1 ** 0.1
Python 4.0
Warning: misleading blank space,
In article <87404349-5d3a-4396-aeff-60edc14a5...@f8g2000yqn.googlegroups.com>,
Paul McGuire wrote:
>On Feb 10, 2:24=A0am, Dennis Lee Bieber wrote:
>> On Tue, 9 Feb 2010 21:45:38 + (UTC), Grant Edwards
>> declaimed the following in
>> gmane.comp.python.general:
>>
>> > Doesn't work. =A0datet
On Feb 22, 9:19 am, MRAB wrote:
> Bryan wrote:
> > I am looping through a list and creating a regular dictionary. From
> > that dict, I create an ordered dict. I can't think of a way to build
> > the ordered dict while going through the original loop. Is there a
> > way I can avoid creating the
HAVE THE FOLLOWING VERY BASIC PROGRAM:
class Person:
def _init_(self,name, job=None, pay=0):
self.name=name
self.job=job
self.pay=pay
bob = Person('Bob Smith')
sue = Person('Sue Jones', job='dev', pay = 10)
print(bob.name, bob.pay)
print(sue.name, sue.pay)
I am ge
Bryan wrote:
I am looping through a list and creating a regular dictionary. From
that dict, I create an ordered dict. I can't think of a way to build
the ordered dict while going through the original loop. Is there a
way I can avoid creating the first unordered dict just to get the
ordered dic
Lie Ryan, 22.02.2010 14:29:
> On 02/22/10 19:43, Norman Rieß wrote:
>> Am 02/22/10 09:02, schrieb Steven D'Aprano:
>>> On Mon, 22 Feb 2010 07:49:51 +0100, Norman Rieß wrote:
>>>
>>>
This is the actual code:
source_file = bz2.BZ2File(file, "r")
for line in source_file:
I will try to provide the API's on windows that my RTOS provides ex. If my
RTOS has "fosCreateSemaphore" to create a semaphore I will implement the
same API [ same function prototype] on windows using win32 CreateSemaphore.
Similarly I will write a wrapper functions for accesing file system, task
m
Is there a way to have some kind of database (i.e. sqlite3, bsddb, dbm, etc.)
that works out of the box on any Win/Linux/Mac machine with Python 2.6+ or 3.x?
It's okay if the file format is different between machines, but I want my
script to work without having to install anything.
Problems wit
On Mon, Feb 22, 2010 at 10:32 AM, Bryan wrote:
> unorderedDict = {}
> for thing in unorderedList:
>if thing.id in unorderedDict:
>UpdateExistingValue(unorderedDict[thing.id])
>else:
>CreateNewValue(unorderedDict[thing.id])
>
> orderedDict = OrderedD
what do you exactly mean by "port python on to windows" ? Are you talking
about your application or python itself :-/
~l0nwlf
On Mon, Feb 22, 2010 at 10:23 PM, KIRAN wrote:
> Hi ALL,
>
> I am newbie to python and wanted to port python on to some RTOS. The
> RTOS I am trying to port python is no
OrderedDict is a class in collection module in python 2.7a3+. Perhaps you
can use it from there.
>>> dir(collections)
['Callable', 'Container', 'Counter', 'Hashable', 'ItemsView', 'Iterable',
'Iterator', 'KeysView', 'Mapping', 'MappingView', 'MutableMapping',
'MutableSequence', 'MutableSet', 'Orde
Hi ALL,
I am newbie to python and wanted to port python on to some RTOS. The
RTOS I am trying to port python is not posix compliant. First, I
decided to port python on to windows and later I will port the same to
my target system. [ This is just to minimize the effort being put
port, debug and to
Programming is most fruiful in *nix environment.
On Mon, Feb 22, 2010 at 9:59 PM, Grant Edwards wrote:
> On 2010-02-22, W. eWatson wrote:
>
> > Last night I copied a program from folder A to folder B.
>
> [tail of various windows breakages elided]
>
> > Comments?
>
> Switch to Linux?
>
> Or at l
Same issue here, easy_install fails
here is traceback,
Shashwat-Anands-MacBook-Pro:Downloads l0nwlf$ easy_install gluttony
Searching for gluttony
Reading http://pypi.python.org/simple/gluttony/
Reading http://code.google.com/p/python-gluttony/
Best match: Gluttony 0.3
Downloading
http://pypi.pytho
1 - 100 of 120 matches
Mail list logo