Giter Club home page Giter Club logo

Comments (6)

giampaolo avatar giampaolo commented on May 22, 2024

From [email protected] on January 27, 2009 06:57:15

Another problem:

>>> import psutil
>>> psutil.Process(2).cmdline
['']

When cmdline is not available we should return an empty list "[]" instead.

from psutil.

giampaolo avatar giampaolo commented on May 22, 2024

From [email protected] on January 27, 2009 07:06:29

Both issues fixed as r71 .

Status: Fixed

from psutil.

giampaolo avatar giampaolo commented on May 22, 2024

From [email protected] on January 27, 2009 07:08:40

I would suggest doing this with a list comprehension instead: 

    cmdline = [x for x in f.read().split('\x00')[:-1] if x]

This solves both problems in less code and less operations.

from psutil.

giampaolo avatar giampaolo commented on May 22, 2024

From [email protected] on January 27, 2009 09:53:27

Labels: Milestone-0.1.0

from psutil.

giampaolo avatar giampaolo commented on May 22, 2024

From [email protected] on February 23, 2009 09:49:02

Labels: -Component-Library

from psutil.

giampaolo avatar giampaolo commented on May 22, 2024

From g.rodola on March 02, 2013 03:37:37

Updated csets after the SVN -> Mercurial migration: r71 == revision 38915f28fec1

from psutil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.