.0.0.tar.gz
* API Reference: http://code.google.com/p/psutil/wiki/Documentation
Please try out this new release and let me know if you experience any
problem by filing issues on the bug tracker.
Thanks in advance and hooray for the new Solaris support! ;-)
All the best,
--- Giampaolo Rodola
> Congratulations on the 1.0.0 release!
Thanks a lot. =)
> Btw. any change you can put up a prebuilt installer for a 64-bit built
> with Python 3.3? You have one for Python 3.2
> (http://code.google.com/p/psutil/downloads/list), but the version for Python
> 3.3 is not there.
Unfortunately I'm
Hello all,
I'm glad to announce the release of psutil 5.3.0:
https://github.com/giampaolo/psutil
A blogpost describing the main changes is available here:
http://grodola.blogspot.com/2017/09/psutil-530-with-full-unicode-support-is.html
About
=
psutil (process and system utilities) is a cross-
unky characters, so "practicality beats
purity" in this case.
On Sun, Sep 3, 2017 at 11:38 PM, eryk sun wrote:
> On Sun, Sep 3, 2017 at 9:58 AM, Giampaolo Rodola'
> wrote:
> >
> > - #1040: all strings are encoded by using OS fs encoding
reasoning makes sense? I mean
returning str all the time and provide a strategy to convert the string to
unicode in Python 2?
On Mon, Sep 4, 2017 at 2:54 PM, eryk sun wrote:
> On Sun, Sep 3, 2017 at 11:09 PM, Giampaolo Rodola'
> wrote:
> >
> > This is an example which fil
Hello all,
I'm glad to announce the release of psutil 5.0.0:
https://github.com/giampaolo/psutil
This release introduces important speedups making psutil from 2x to 6x
faster depending on what platform you're on.
A full blog post can be found here:
http://grodola.blogspot.com/2016/11/psutil-500-is-
Full blog post:
http://grodola.blogspot.com/2016/05/psutil-420-windows-services-and-python.html
--
Giampaolo - http://grodola.blogspot.com
--
https://mail.python.org/mailman/listinfo/python-list
Full blog post:
http://grodola.blogspot.com/2016/05/psutil-420-windows-services-and-python.html
--
Giampaolo - http://grodola.blogspot.com
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Jan 13, 2014 at 3:47 PM, Neal Becker wrote:
> py3 includes a fairly compelling feature: nonlocal keywork
> But backward compatibility is lost. It would be very helpful
> if this was available on py2.x.
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
It's not gonna happe
Full story here:
http://grodola.blogspot.com/2015/11/openbsd-support-for-psutil.html
--
Giampaolo - http://grodola.blogspot.com
--
https://mail.python.org/mailman/listinfo/python-list
Full blog post:
http://grodola.blogspot.com/2016/02/psutil-4-real-process-memory-and-environ.html
--
Giampaolo - http://grodola.blogspot.com
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Dec 10, 2014 at 5:59 PM, Bruno Cauet wrote:
> Hi all,
> Last year a survey was conducted on python 2 and 3 usage.
> Here is the 2014 edition, slightly updated (from 9 to 11 questions).
> It should not take you more than 1 minute to fill. I would be pleased if
> you took that time.
>
> Her
On Thu, Dec 11, 2014 at 10:32 PM, Ben Finney
wrote:
>
> "Giampaolo Rodola'" writes:
>
> > I still think the only *real* obstacle remains the lack of important
> > packages such as twisted, gevent and pika which haven't been ported
> > yet.
>
>
Hello all,
I'm glad to announce the release of psutil 2.2.0.
In this new release I decided to drop support for Python 2.4 and 2.5 for
good.
Whoever is still on Python 2.4 and 2.5 can use old 2.1.3 version:
https://pypi.python.org/pypi?name=psutil&version=2.1.3&:action=files
Main features and bugfi
Hi there folks,
I'm pleased to announce the 2.0.0 release of psutil:
http://code.google.com/p/psutil/
=== About ===
psutil (python system and process utilities) is a cross-platform library
for retrieving information on running processes and system utilization
(CPU, memory, disks, network) in Pyth
On Tue, Mar 11, 2014 at 11:17 AM, Sturla Molden wrote:
> Chris Withers wrote:
> > Hi All,
> >
> > I see python now has a plethora of async frameworks and I need to try
> > and pick one to use from:
> >
> > - asyncio/tulip
> > - tornado
> > - twisted
>
> Looking at Tornado's examples on the web I
The what's new looks truly amazing, with pathlib and asyncio being my
favourite additions.
Thanks for all the hard work.
On Mon, Mar 17, 2014 at 5:57 PM, Ryan Gonzalez wrote:
> YES!!! +1 to the authors of the statistics and pathlib modules.
>
>
> On Mon, Mar 17, 2014 at 1:29 AM, Larry Hastings
I have a Python extension module (psutil) written in C which I compile for
different Python versions (from 2.4 to 3.3) and want to upload them on pypi.
The Windows machine is not connected to internet so after I generate the
Windows binaries (via setup.py bdist_wininst) I move the .exe files from
ps://pypi.python.org/pypi?:action=display&name=psutil#downloads
* API Reference: http://code.google.com/p/psutil/wiki/Documentation
Please try out this new release and let me know if you experience any
problem by filing issues on the bug tracker.
All the best,
--- Giampaolo Rodola'
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
http://code.google.com/p/pysendfile/
--
https://mail.python.org/mailman/listinfo/python-list
Glad to hear there's someone else other than me who still cares about the
almost forgotten FTP protocol! =)
--- Giampaolo
https://code.google.com/p/pyftpdlib/
https://code.google.com/p/psutil/
https://code.google.com/p/pysendfile/
On Sun, Sep 29, 2013 at 8:00 PM, Stefan Schwarzer wrote:
> ftpu
Hi there folks,
I'm pleased to announce release 3.0.0 release of psutil:
http://grodola.blogspot.com/2015/06/psutil-30.html
=== About ===
psutil (python system and process utilities) is a cross-platform library
for retrieving information on running processes and system utilization
(CPU, memory, d
2013/4/30 Rita :
> Hi,
>
> I was wondering if it possible to write a python wrapper which will account
> my processes. I would like to account for all the children processes (fork)
> by looking at their /proc/ info. Such as memory, io, open files, stats.
>
> So, instead of me running "/bin/sleep 10
Hi there.
Just for the heck of it I'd like to write a simple front-end for an
asyncore-based server I wrote by using Tkinter.
I wrote a simple graphical interface consisting of two buttons: "Start
server" and "Stop server".
The first button should start the asyncore main loop while the second
shoul
Hi there.
Just for the heck of it I'd like to write a simple front-end for an
asyncore-based server I wrote by using Tkinter.
I wrote a simple graphical interface consisting of two buttons: "Start
server" and "Stop server".
The first button should start the asyncore main loop while the second
shoul
Hi there.
We're talking about an asyncore-based server.
Just for the heck of it I'd like to set a timeout which will
disconnects the clients if they're inactive (i.e., no command or data
transfer in progress) for a long period of time.
I was thinking about putting the timeout value into an attribut
On 23 Ott, 17:34, Josiah Carlson <[EMAIL PROTECTED]> wrote:
> On 22 Ott, 12:28, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi there.
> > We're talking about an asyncore-based server.
> > Just for the heck of it I'd
I was reading os.readlink doc which says:
readlink( path)
Return a string representing the path to which the symbolic link
points. The result may be either an absolute or relative pathname; if
it is relative, it may be converted to an absolute pathname using
os.path.join(os.path.dirname(path), re
On 2 Nov, 05:30, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Thu, 01 Nov 2007 22:51:14 -0300, Giampaolo Rodola' <[EMAIL PROTECTED]>
> escribió:
>
> > I was reading os.readlink doc which says:
>
> > readlink( path)
>
> > Retu
On 3 Nov, 04:21, klenwell <[EMAIL PROTECTED]> wrote:
> I apologize in advance for coming at this from this angle but...
>
> In PHP you have the __FILE__ constant which gives you the value of the
> absolute path of the file you're in (as opposed to the main script
> file.) With the function dirname
On 3 Nov, 15:46, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Sat, 03 Nov 2007 10:07:10 -0300, Giampaolo Rodola' <[EMAIL PROTECTED]>
> escribió:
>
> > On 3 Nov, 04:21, klenwell <[EMAIL PROTECTED]> wrote:
> >> In PHP you ha
I noticed that poplib, smtplib, httplib, imaplib and probably others
include support for ssl connections.
Are there future plans for ftplib ssl/tls support?
--
http://mail.python.org/mailman/listinfo/python-list
Hi there,
I don't know if such a thing has been already discussed, in which case
I'm sorry.
I was wondering if there's a place for python open source projects
that need help.
It thought it would be very nice having a place where developers could
submit "help requests" for their projects and let the
os.path.islink documentation says:
"Return True if path refers to a directory entry that is a symbolic
link. Always False if symbolic links are not supported."
It's not clear to me why it is mentioned the DIRECTORY term.
Shouldn't os.path.islink be used to just check if the *path* passed as
argum
Hi there.
In a code of mine I'd like to use os.lstat whenever possible.
My only concern is if it's available on all platforms.
It could be safe using always os.lstat instead of:
try:
os.lstat
except AttributeError:
os.stat
...?
As far as I know where symlinks are not supported os.lstat sh
I'd just want to be sure that even on a strange python implementation
I won't ever get an AttributeError exception because os.lstat is not
defined.
--
http://mail.python.org/mailman/listinfo/python-list
:)
You're right...
My skimpy English cheated me.
--
http://mail.python.org/mailman/listinfo/python-list
Hi there,
I would like to know if such function would be correct for verifying
if a link is broken and/or circular.
def isvalidlink(path):
assert os.path.islink(path)
try:
os.stat(path)
except os.error:
return 1
return 0
--
http://mail.python.org/mailman/listinfo/p
On 1 Dic, 00:10, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > I would like to know if such function would be correct for verifying
> > if a link is broken and/or circular.
>
> > def isvalidlink(path):
> > assert os.path.islink(path)
> > try:
> > os.stat(path)
> > except os.e
On 3 Dic, 11:26, Samuel <[EMAIL PROTECTED]> wrote:
> Does anyone know an easy way to extract the API documentation that is
> embedded into a Python file as a text file?
>
> -Samuel
Something like this?
print >> open('file.txt', 'w'), dir.__doc__
--
http://mail.python.org/mailman/listinfo/python-
On 7 Dic, 10:42, loial <[EMAIL PROTECTED]> wrote:
> Trying to use ftplib.FTP.nlst() method to list the files in
> a directory on a FTP server.
>
> It works fine except when there are no files in the directory. Then it
> gives the error
>
> ftplib.error_perm: 550 No files found.
>
> How can I handl
Hi,
I post this message here in the hope someone using asyncore could
review
this.
Since the thing I miss mostly in asyncore is a system for calling a
function after a certain amount of time, I spent the last 3 days
trying
to implement this with the hopes that this could be included in
asyncore
in
Hi,
I noticed tonight that I can't download/install a package of mine
hosted on pypi by using easy_install.
By running "ez_setup.py pyftpdlib" I get:
--- snippet --
options (after parsing config files):
no commands known yet
options (after parsing command line):
option dict for 'aliases' command:
On 20 Dic, 03:47, Istvan Albert <[EMAIL PROTECTED]> wrote:
> On Dec 19, 9:44 pm, Istvan Albert <[EMAIL PROTECTED]> wrote:
>
> > On Dec 19, 8:07 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote:
> > > download_url = 'http://code.google.c
On 20 Dic, 04:33, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote:
> On 20 Dic, 03:47, Istvan Albert <[EMAIL PROTECTED]> wrote:
>
> > On Dec 19, 9:44 pm, Istvan Albert <[EMAIL PROTECTED]> wrote:
>
> > > On Dec 19, 8:07 pm, "Giampaolo Ro
Hi,
I'm in a big trouble since I don't know how to find some memory leaks
I just discovered in a program of mine.
By putting:
import gc
gc.set_debug(gc.DEBUG_LEAK)
..at the end of a script which imports a module I wrote it seems I
have some memory leaks scattered around.
The message printed on sc
On 21 Dic, 20:10, [EMAIL PROTECTED] wrote:
> On Dec 21, 12:44 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
> > I'm in a big trouble since I don't know how to find some memory leaks
> > I just discovered in
On 22 Dic, 01:27, Ross Ridge <[EMAIL PROTECTED]>
wrote:
> Giampaolo Rodola' <[EMAIL PROTECTED]> wrote:
> >I'm in a big trouble since I don't know how to find some memory leaks
> ...
> >The message printed on screen is the following:
>
> >g
On 3 Gen, 23:21, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Emin.shopper Martinian.shopper wrote:
> > Is there a good way to choose/assign random dynamic port numbers in python?
>
> > I had in mind something like the following, but if multiple programs are
> > generating random port numbers, is the
I was wondering...
To flush a list it is better doing "del mylist[:]" or "mylist = []"?
Is there a preferred way? If yes, why?
--
http://mail.python.org/mailman/listinfo/python-list
On 8 Gen, 16:45, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Giampaolo Rodola' wrote:
> > To flush a list it is better doing "del mylist[:]" or "mylist = []"?
> > Is there a preferred way? If yes, why?
>
> The latter creates a new list obj
Hi all,
I'm trying to use the pywin32 extension to find out the user's home
directory but currently I didn't find a solution yet.
What I'd need to do is not getting the home directory of the currently
logged in user but something like:
>>> get_homedir("frank")
"C:\home\users\frank"
>>> get_homedir
On 12 Gen, 17:44, Christian Heimes <[EMAIL PROTECTED]> wrote:
> Giampaolo Rodola' wrote:
> > Is there a way to do that?
>
> home = os.path.expanduser("~")
>
> Christian
That gives the home of the *current logged in user*.
I need another thing.
--
http
Update.
I found a way for getting the home directory of the user but it
requires to validate the user by providing username+password:
def get_homedir(username, password):
token = win32security.LogonUser(
username,
None,
password,
win32security.LOGON32_LOGON_NETW
Hi,
I'm trying to run an asynchronous FTP server I wrote into a thread for
being able to run a test suite against it.
The code below is the threaded FTP server code I'm using:
--- snippet ---
class FTPd(threading.Thread):
def __init__(self):
self.active = False
threading.Thre
On 14 Gen, 12:30, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
> Giampaolo Rodola' <[EMAIL PROTECTED]> wrote:
> > I'm trying to run an asynchronous FTP server I wrote into a thread for
> > being able to run a test suite against it.
> > The code belo
Thanks to Tim Golden suggestions I solved my problem.
...In case it would help someone:
import _winreg
import win32security
username = 'Administrator'
sid = win32security.ConvertSidToStringSid(
win32security.LookupAccountName(None, username)[0]
)
key = _winreg.OpenKey(
_win
/list
Thanks,
-- Giampaolo Rodola' < g.rodola [at] gmail [dot] com >
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to solve a jython-related issue and I discovered a
different behavior affecting os.path.isabs between CPython and Jython.
C:\Python23>python.exe
Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more
On Feb 1, 9:55 pm, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2008-02-01, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to solve a jython-related issue and I discovered a
> > different behavior affecting os.path.isabs between CPython an
On Feb 1, 10:34 pm, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2008-02-01, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Feb 1, 9:55 pm, Grant Edwards <[EMAIL PROTECTED]> wrote:
> >> On 2008-02-01, Giampaolo Rodola
Hi all.
Is there any way to su or login as a different user within a python
script? I mainly need to temporarily impersonate another user to
execute a command and then come back to the original user.
I tried to google a little bit about it but I still didn't find a
solution.
Thanks in advance.
-
Hi,
I'm trying to write a plug-in for a ftp server of mine to permit the
integration with accounts defined on the Windows system.
What I basically need is impersonating a user, execute e filesystem
call (e.g. create a directory via os.mkdir()) and then switch back to
the original user (Administrato
Sorry for replying so late.
I'll try to describe what I'm actually trying to implement so that
maybe it can help you understand a little better.
The application is an asynchronous FTP server implementation.
I decided that it would be desirable to change the current
implementation so that every tim
On 10 Gen, 03:07, "p." wrote:
> i'm using urllib2 in python 2.4
>
> wondering how people typically deal with the case in which a download
> is too slow. setting the socket timeout only covers those cases where
> there is no response in the socket for whatever the timeout period is.
> what if, howe
I'm sorry. I realized they had already replied when it was too late.
--- Giampaolo
http://code.google.com/p/pyftpdlib
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm sure the message I'm going to write will seem quite dumb to most
people but I really don't understand the str/bytes/unicode
differences introduced in Python 3.0 so be patient.
What I'm trying to do is porting pyftpdlib to Python 3.x.
I don't want to support Unicode. I don't want pyftpdlib
On 17 Gen, 02:24, MRAB wrote:
> If you're truly working with strings of _characters_ then
> 'str' is what you need, but if you're working with strings of _bytes_
> then 'bytes' is what you need.
I work with string of characters but to convert bytes into string I
need to specify an encoding and t
On 17 Gen, 03:09, Steven D'Aprano wrote:
> On Fri, 16 Jan 2009 17:32:17 -0800, Giampaolo Rodola' wrote:
> > On 17 Gen, 02:24, MRAB wrote:
>
> >> If you're truly working with strings of _characters_ then 'str' is what
> >> you need, but if
On 17 Gen, 03:40, Steve Holden wrote:
> Giampaolo Rodola' wrote:
> > On 17 Gen, 02:24, MRAB wrote:
>
> >> If you're truly working with strings of _characters_ then
> >> 'str' is what you need, but if you're working with strings of _bytes
On 17 Gen, 04:43, Terry Reedy wrote:
> Giampaolo Rodola' wrote:
> > That would help to avoid replacing "" with b"" almost everywhere in my
> > code.
>
> Won't 2to3 do that for you?
I used 2to3 against my code but it didn't cover the "
On 17 Gen, 05:26, John Machin wrote:
> On Jan 17, 3:08 pm, Steve Holden wrote:
>
> > Giampaolo Rodola' wrote:
> > > On 17 Gen, 04:43, Terry Reedy wrote:
> > >> Giampaolo Rodola' wrote:
> > >>> That would help to avoid replacing "&qu
On 17 Gen, 11:05, Vito De Tullio wrote:
> axtens wrote:
> > So is vb2py dead? If not, any idea when it'll support python 3?
>
> I don't know this vb2py, but you can do a 2 pass conversion
>
> [vb] -> (vb2py) -> [py2] -> (2to3) -> [py3]
>
> --
> By ZeD
...and presumibly get something which doesn't
http://code.google.com/p/pyftpdlib/wiki/Tutorial
* FAQs: http://code.google.com/p/pyftpdlib/wiki/FAQ
* RFCs compliance paper: http://code.google.com/p/pyftpdlib/wiki/RFCsCompliance
* Issue tracker: http://code.google.com/p/pyftpdlib/issues/list
* Mailing list: http://groups.google.com/group/pyftpdlib
On 25 Gen, 21:11, Steve Holden wrote:
> pyt...@bdurham.com wrote:
> > Any suggestions on a best practice way to monitor a remote FTP site for
> > the arrival of new/updated files? I don't need specific code, just some
> > coaching on technique based on your real-world experience including
> > sug
On 26 Gen, 19:16, jefm wrote:
> Hi,
> while checking out Python 3, I read that all text strings are now
> natively Unicode.
> In the Python language reference (http://docs.python.org/3.0/reference/
> lexical_analysis.html) I read that I can show Unicode character in
> several ways.
> "\u" supp
> Where are the community projects supporting Python? -- besides the
> core devlopment.
http://pypi.python.org/pypi
...which accidentally says "There are currently 5597 packages here."
Not bad uh?
--- Giampaolo
http://code.google.com/p/pyftpdlib
--
http://mail.python.org/mailman/listinfo/pytho
On 30 Gen, 10:16, "Gabriel Genellina" wrote:
> En Fri, 30 Jan 2009 05:43:33 -0200, Mabooka-Mabooka Mbe-Mbe
> escribió:
>
> > setsockopt(REUSEADDR)...
>
> > What I came up with so far is this:
> from SocketServer import *
> s = TCPServer( ('', 32123), None)
> dir(s)
> > ['Reques
On 31 Gen, 12:46, andrew cooke wrote:
> Hi,
>
> I have a new project, that I just released in beta
> (http://www.acooke.org/lepl- a recursive decent parser with full
> backtracking). At the moment I am using pypi and setuptools for
> distribution (it's a pure python package) and I am happy with
On 2 Feb, 10:05, pranav wrote:
> Hi Folks,
>
> I am designing a project for Windows XP/Vista, one part of which is a
> background process that monitors internet connections. If the user
> tries to connect to any particular site, say myDummySite.com in then
> some actions are taken, based on fixed
On 5 Feb, 01:18, Tim Rowe wrote:
> 2009/2/4 Scott David Daniels :
>
> > joviyach wrote:
>
> >> I am fairly new to Python, the first version I loaded was 2.6. I have
> >> since downloaded 3.0 and I was wondering what the best practice for
> >> upgrading is? I am using Windows XP Pro for my OS.
>
>
On Feb 10, 8:38 pm, Richard Gruet <"rgruet at free dot fr"> wrote:
> The Python 2.6 Quick Reference is available in HTML and PDF formats
> athttp://rgruet.free.fr/#QuickRef.
>
> This time I was helped by Josh Stone for the update.
>
> As usual, your feedback is welcome (pqr at rgruet.net).
>
> Che
On Feb 13, 10:53 am, David Cournapeau wrote:
> On Fri, Feb 13, 2009 at 6:30 PM, wrote:
> > Hi all,
>
> > I'm trying to build my first python extensionon a win32 system. I
> > followed the description
> > inhttp://starship.python.net/crew/mwh/toext/your-first-extension.html,
> > but after runnin
On 16 Gen, 00:04, neel wrote:
> Hi There,
>
> I want to check the health of IEprocessusing python. I am running an
> application on IE. I have to verify that the application is not
> crashing the IE. Is there any module which can help me in getting
> theprocessstatus?
>
> Thanks,
> Neel
By proc
Sorry for the title but I didn't find anything more appropriate.
To have a less verbose code would it be ok doing:
if a > b:
...instead of:
if a is not None and a > b:
...?
Is there any hidden complication behind that?
Thanks in advance
--- Giampaolo
code.google.com/p/pyftpdlib/
--
http://ma
Definitively 2.X.
Whether 2.5 or 2.6 doesn't really matter.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
--
http://mail.python.org/mailman/listinfo/python-list
Ok thanks. I'll avoid to do that.
--- Giampaolo
http://code.google.com/p/pyftpdlib/
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm the maintainer of an asynchronous FTP server implementation based
on asyncore.
Some days ago I thought it would be interesting to add a class
offering the possibility to run the asyncore loop into a thread so
that a user can run the server without blocking the entire
application.
It could b
On 29 Nov, 02:24, Aaron Brady <[EMAIL PROTECTED]> wrote:
> On Nov 27, 9:03 am, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
> > I'm the maintainer of an asynchronous FTP server implementation based
> > on as
Hi,
For a purpose of testing I need a function which could tell me whether
it is possible to bind sockets on privileged ports or not.
I wrote down this simple function. It seems reasonably working to me
but I'd like to hear your opinion first.
Thanks in advance.
import socket, errno
def bind_on
On 11 Dic, 19:09, "Giampaolo Rodola'" wrote:
> Hi,
> For a purpose of testing I need a function which could tell me whether
> it is possible to bind sockets on privileged ports or not.
> I wrote down this simple function. It seems reasonably working to me
> but I
Another way (probably more reliable):
def bind_on_privileged_ports():
"""Return True if it is possible to bind sockets on privileged
ports (< 1024)."""
for port in range(1, 1024)[::-1]:
print port
try:
s = socket.socket()
s.bind((HOST, port))
On 11 Dic, 13:06, Luis M. González wrote:
> On Dec 10, 3:42 pm, cm_gui wrote:
>
>
>
>
>
> >http://blog.kowalczyk.info/blog/2008/07/05/why-google-should-sponsor-...
>
> > I fully agree with Krzysztof Kowalczyk .
> > Can't they build a faster VM for Python since they love the language
> > so much?
Hi,
in a module of mine (ftpserver.py) I'd want to add a (boolean) global
variable named "use_gmt_times" to decide whether the server has to
return times in GMT or localtime but I'm not sure if it is a good idea
because of the "ethical" doubts I'm gonna write below.
In first place I've never liked
On 16 Dic, 07:23, Michele Simionato
wrote:
> On Dec 16, 3:45 am, "Giampaolo Rodola'" wrote:
>
> > Hi,
> > in a module of mine (ftpserver.py) I'd want to add a (boolean) global
> > variable named "use_gmt_times" to decide whether the server h
On 16 Dic, 15:56, feba wrote:
> On Dec 16, 8:29 am, s...@pobox.com wrote:
>
> > feba> I'm getting started in python, and it would be helpful to have a
> > feba> place to put up various code snippets I've made, so I don't have
> > feba> to send them individually to each person I want to
d be, rather than dealing with all sorts
> of global variables floating around - which gets annoying pretty
> quickly.
>
> On Dec 15, 9:45 pm, "Giampaolo Rodola'" wrote:
>
>
>
> > Hi,
> > in a module of mine (ftpserver.py) I'd want to add a
On 19 Dic, 17:01, walterbyrd wrote:
> I have not worked with Python enough to really know. But, it seems to
> me that more I look at python 3.0, the more I wonder if it isn't a
> step backwards.
>
> To me, it seems that this:
>
> print "%s=%d" % ('this',99)
>
> Is much easier, and faster, to type,
Hi,
I know that it's not possible to "kill" threads but I'm wondering if
does exist some workaround for my problem.
I have a test suite which does a massive usage of threads.
Sometimes happens that one test fails, the test suite keeps running
until the end, and when it's finished the program hangs
On 28 Dic, 18:47, Roy Smith wrote:
> In article
> ,
> "Giampaolo Rodola'" wrote:
>
> > Hi,
> > I know that it's not possible to "kill" threads but I'm wondering if
> > does exist some workaround for my problem.
> > I have a
On 31 Dic, 18:55, Xah Lee wrote:
> Just spent 3 hours looking into Ruby today. Here's my short impression
> for those interested.
>
> * Why Not Ruby?
> http://xahlee.org/UnixResource_dir/writ/why_not_Ruby.html
>
> plain text version follows:
> --
>
> Why Not Ru
1 - 100 of 180 matches
Mail list logo