On Mar 17, 11:28 am, moijes12 wrote:
> On Mar 17, 11:14 am, Nobody wrote:
>
> > On Wed, 16 Mar 2011 22:36:07 -0700, moijes12 wrote:
> > > Traceback (most recent call last):
> > > File "getsockopt_handler.py", line 7, in ?
> > > send.bind((gethostbyname(gethostname()),5))
> > > socket.er
On Mar 17, 11:14 am, Nobody wrote:
> On Wed, 16 Mar 2011 22:36:07 -0700, moijes12 wrote:
> > Traceback (most recent call last):
> > File "getsockopt_handler.py", line 7, in ?
> > send.bind((gethostbyname(gethostname()),5))
> > socket.error: (99, 'Cannot assign requested address')
>
> Spe
On Wed, 16 Mar 2011 22:36:07 -0700, moijes12 wrote:
> Traceback (most recent call last):
> File "getsockopt_handler.py", line 7, in ?
> send.bind((gethostbyname(gethostname()),5))
> socket.error: (99, 'Cannot assign requested address')
Specifying a port number isn't meaningful for a raw
On Wed, Mar 16, 2011 at 10:36 PM, moijes12 wrote:
> Hi
>
> I am unable to create RAW sockets using python.
>
> Traceback (most recent call last):
> File "getsockopt_handler.py", line 6, in ?
> send = socket(AF_INET,SOCK_RAW,IPPROTO_IP)
> socket.error: (94, 'Socket type not supported')
>
> I've
Thanks Dan for the detailed reply. I suspect it is related to FreeBSD
malloc/free as you suggested. Here is the output of running your
script:
[16-bsd01 ~/work]$ python strm.py --first
USERPID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
amdev 6899 3.0 6.9 111944 107560 p0 S+
On 3/17/2011 1:42 AM, Astan Chee wrote:
Hi,
I have 2 points in 3D space and a bunch of points in-between them. I'm
trying to fit a polynomial curve on it. Currently I'm looking through
numpy but I don't think the function exists to fit a function like this:
y = ax**4 + bx**3 + cx**2 + dx + e
(I'm
Hi,
I have 2 points in 3D space and a bunch of points in-between them. I'm
trying to fit a polynomial curve on it. Currently I'm looking through numpy
but I don't think the function exists to fit a function like this:
y = ax**4 + bx**3 + cx**2 + dx + e
(I'm not sure what thats called but one degree
Hi
I am unable to create RAW sockets using python.
Traceback (most recent call last):
File "getsockopt_handler.py", line 6, in ?
send = socket(AF_INET,SOCK_RAW,IPPROTO_IP)
socket.error: (94, 'Socket type not supported')
I've tried changing the type from IPPROTO_IP to IPPROTO_RAW but the I
Il 15/03/2011 09:10, yqyq22 ha scritto:
I would like to put an alphanumeric string like this one
EE472A86441AF2E629DE360 in a list, then iterate inside the entire
string lenght and change each digit with a random digit.
Do u have some suggestion? thanks a lot
hi
I'm not an experienced python
If you just want to be unhappy about the current situation, I hereby
formally bestow upon you permission to be so. :)
The problem seems to be that you want to hook into the python process,
without hooking into the python process. Were this possible, it seems we
might have a serious security issu
On Mar 16, 3:29 pm, bukzor wrote:
> On Mar 15, 11:57 pm, "eryksun ()" wrote:
>
> > On Tuesday, March 15, 2011 12:44:48 AM UTC-4, bukzor wrote:
>
> > > Currently it requires either: 1) no symlinks to scripts or 2)
> > > installation of the pathtools to site-packages.
>
> > An executable with a uni
On Mar 15, 11:57 pm, "eryksun ()" wrote:
> On Tuesday, March 15, 2011 12:44:48 AM UTC-4, bukzor wrote:
>
> > Currently it requires either: 1) no symlinks to scripts or 2)
> > installation of the pathtools to site-packages.
>
> An executable with a unique name on the system PATH could be executed i
On Mar 16, 7:42 am, booklover wrote:
> > I'm going to try to get our solution open-sourced, then I'll get your
> > feedback on it.
>
> Thanks bukzor! I think that it would be very helpful to have a library
> like this available.
>
> In the longer term, what do people think about the possibility of
On Wed, Mar 16, 2011 at 8:38 AM, Amit Dev wrote:
> I'm observing a strange memory usage pattern with strings. Consider
> the following session. Idea is to create a list which holds some
> strings so that cumulative characters in the list is 100MB.
>
> >>> l = []
> >>> for i in xrange(10):
> .
a...@pythoncraft.com (Aahz) writes:
> >(I always recommend people to use PostgreSQL, though; which is
> >superior in almost every way, especially the C client library and the
> >wire protocol.)
>
> Can you point at a reference for the latter? I have been trying to
> convince my company that PG is
On 16.03.2011 22:00, dude wrote:
awesome, that worked. I'm not sure how the magic is working with your
underscores there, but it's doing what I need. thanks.
The underscore is no magic here. It's just a conventional variable
name, saying "I m unused". One could also write:
for root, UNUSE
On Wed, Mar 16, 2011 at 5:00 PM, dude wrote:
> awesome, that worked. I'm not sure how the magic is working with your
> underscores there, but it's doing what I need. thanks.
> --
It's not magic at all. _ is just a variable name. When someone names a
variable _, it's just to let you know that t
awesome, that worked. I'm not sure how the magic is working with your
underscores there, but it's doing what I need. thanks.
--
http://mail.python.org/mailman/listinfo/python-list
tkFileDialog.askdirectory() allows the selection of a directory. In my code
it displays a line of text at the top of the frame ("Please choose a
directory, then select OK"). A little below that the current path
("C:\Documents and Settings\Owner\My Documents\Python\...") is displayed as
a string and
On 3/16/2011 3:51 PM, Santoso Wijaya wrote:
??
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit
(AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> L = []
>>> for i in xrange(10):
... L.append(str(i) * (1000 / len(
On Wednesday, March 16, 2011 2:20:34 PM UTC-4, Amit Dev wrote:
>
> sum(map(len, l)) => 8200 for 1st case and 9100 for 2nd case.
> Roughly 100MB as I mentioned.
The two lists used approximately the same memory in my test with Python 2.6.6
on Windows. An implementation detail such as this
On 13.03.2011 01:50, Nobody wrote:
I don't have any links. If you want to understand the core Unix API, the
best reference I know of is Stevens ("Advanced Programming in the Unix
Environment", by W. Richard Stevens). Unfortunately, it's not cheap.
In spite of the title, it doesn't assume any pr
On 16.03.2011 20:41, dude wrote:
My goal is create a list of absolute paths for all files in a given
directory (any number of levels deep).
root
dir1
file1
file2
dir2
file3
dir3
-dir4
--file4
file5
So the above woul
??
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)]
on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> L = []
>>> for i in xrange(10):
... L.append(str(i) * (1000 / len(str(i
...
>>> sys.getsizeof(L)
824464
>>> L =
My goal is create a list of absolute paths for all files in a given
directory (any number of levels deep).
root
dir1
file1
file2
dir2
file3
dir3
-dir4
--file4
file5
So the above would return:
[root/dir1/file1, root/di
---
International ECCOMAS Thematic Conference VipIMAGE 2011 - III ECCOMAS
THEMATIC
CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING
12-14th October 2011, O
On Fri, 2010-10-15 at 15:28 -0400, Adam Tauno Williams wrote:
> I've found the module pkipplib which seems to work well for things like
> interrogating an IPP (CUPS) server. But is there a way to send a print
> job to an IPP print queue? [and no, the local system knows nothing about
> the print ar
Hi,
I'm trying to install a pypi package with pip. The installation is
done, but the permissions are not set correctly, thus I cannot import
it as a normal user.
Example:
sudo pip install termcolor
/usr/local/lib/python2.6/dist-packages/termcolor.py is created with
permissions 600
I can post-corr
sum(map(len, l)) => 8200 for 1st case and 9100 for 2nd case.
Roughly 100MB as I mentioned.
On Wed, Mar 16, 2011 at 11:21 PM, John Gordon wrote:
> In Amit Dev
> writes:
>
>> I'm observing a strange memory usage pattern with strings. Consider
>> the following session. Idea is to create
py2exe does this for you...
~/santa
On Wed, Mar 16, 2011 at 8:02 AM, David Jackson wrote:
> i need to run a python script on any arbitrary server and don't want to do
> an actual installation. i figured i could do a clean install on my machine
> and install whatever libraries would be needed,
In Amit Dev
writes:
> I'm observing a strange memory usage pattern with strings. Consider
> the following session. Idea is to create a list which holds some
> strings so that cumulative characters in the list is 100MB.
> >>> l = []
> >>> for i in xrange(10):
> ... l.append(str(i) * (1000/
In article ,
William Ahern wrote:
>
>I think that there's an asynchronous all-Python MySQL library, but I'm not
>sure. Maybe one day I can open source my asynchronous MySQL C library. (I
>always recommend people to use PostgreSQL, though; which is superior in
>almost every way, especially the C c
Just one remark about this line:
QtGui.QWidget.__init__(self, parent)
I think you should use this:
super(Contract, self).__init__(parent)
so you will be following PEP 3135
2011/3/16 taco
> taco wrote:
>
> ah, I solved it myself. for completeness reasons. I had upgraded python for
> reportla
taco wrote:
ah, I solved it myself. for completeness reasons. I had upgraded python for
reportlab which needed this python version, while still using a pyqt which
was compiled for 2.6. After compilation and changing pythonpath to the right
site-packages dir it's working
> hi,
> I have a form
hi,
I have a form containing a few QLineedits and I wish to retrieve the
contents only after pressing a QPushButton.
a looks like:
class Contract(QtGui.QWidget):
def __init__(self,fileInfo, parent=None):
QtGui.QWidget.__init__(self,parent)
self.name = QtGui.QLineEdit("")
.
se
Thanks for the links.
--
Filip Gruszczyński
--
http://mail.python.org/mailman/listinfo/python-list
I'm observing a strange memory usage pattern with strings. Consider
the following session. Idea is to create a list which holds some
strings so that cumulative characters in the list is 100MB.
>>> l = []
>>> for i in xrange(10):
... l.append(str(i) * (1000/len(str(i
This uses around 100M
i need to run a python script on any arbitrary server and don't want to do
an actual installation. i figured i could do a clean install on my machine
and install whatever libraries would be needed, then zip them all up for
remote deployment. to avoid bloating, i am wondering which files i can
safel
> I'm going to try to get our solution open-sourced, then I'll get your
> feedback on it.
Thanks bukzor! I think that it would be very helpful to have a library
like this available.
In the longer term, what do people think about the possibility of
writing up a PEP to fix this problem in the core
On Mar 16, 2:51 pm, Steven D'Aprano wrote:
> On Wed, 16 Mar 2011 01:55:31 -0700, melhosseiny wrote:
> > When I type c:\python32\python.exe setup.py register and press enter I
> > get the following:
> [...]
> > Why is this happening? It doesn't care what i type. It's always the same
> > result.
>
>
string = "EE472B"
t = []
for x in string[:]:
print t.append("A") #i don't want to append A, the final
result is EAEA4A7A2ABA
As it, it prints "None" 6 times. Then t is ['A','A','A','A','A']
What you have to do is to read about basic python. Search for python
tutorial on the net.
string = "EE472B"
t = []
for x in string[:]:
print t.append("A") #i don't want to append A, the final
result is EAEA4A7A2ABA
As it, it prints "None" 6 times. Then t is ['A','A','A','A','A']
What you have to do is to read about basic python. Search for python
tutorial on the net.
On Wed, 16 Mar 2011 01:55:31 -0700, melhosseiny wrote:
> When I type c:\python32\python.exe setup.py register and press enter I
> get the following:
[...]
> Why is this happening? It doesn't care what i type. It's always the same
> result.
I found a similar (possibly the same) problem. I eventual
On Mar 15, 2:15 pm, yqyq22 wrote:
> On Mar 15, 11:02 am, Laurent Claessens wrote:
>
>
>
>
>
> > Le 15/03/2011 09:10, yqyq22 a crit :
>
> > > Hi all,
> > > I would like to put an alphanumeric string like this one
> > > EE472A86441AF2E629DE360 in a list, then iterate inside the entire
> > > string
On 3/15/2011 11:19 PM, James Mills wrote:
On Wed, Mar 16, 2011 at 12:34 PM, John L. Stephens
wrote:
I would have expected the daemonic children processes to terminate with the
parent process, regardless of how the parent process terminates, either
normally or forcefully.
As I understand it. I
When I type c:\python32\python.exe setup.py register and press enter I
get the following:
running register
running check
We need to know who you are, so please choose either:
1. use your existing login,
2. register as a new user,
3. have the server generate a new password for you (and email it
Hi all, I'm glad to inform you about new release 0.33 of our
completely free (license: BSD) cross-platform software:
OpenOpt:
* cplex has been connected
* New global solver interalg with guarantied precision, competitor
to LGO, BARON, MATLAB's intsolver and Direct (also can work in inexac
On Mar 16, 1:15 am, Terry Reedy wrote:
> On 3/15/2011 4:58 PM, davidj411 wrote:
>
> > it seems that if I copy the python.exe binary and the folders
> > associated with it to a server without python, i can run python.
> > does anyone know which files are important to copy and which can be
> > omitt
On Tuesday, March 15, 2011 12:44:48 AM UTC-4, bukzor wrote:
>
> Currently it requires either: 1) no symlinks to scripts or 2)
> installation of the pathtools to site-packages.
An executable with a unique name on the system PATH could be executed it as a
subprocess that pipes the configured base d
49 matches
Mail list logo