John Machin sjmac...@lexicon.net (JM) wrote:
JM On Jul 19, 7:43 am, Irmen de Jong irmen.nos...@xs4all.nl wrote:
twgray wrote:
I am attempting to send a jpeg image file created on an embedded
device over a wifi socket to a Python client running on a Linux pc
(Ubuntu). All works well,
I'm working on an embeddded Python interpreter (using the c-api) where we
are loading a custom, zipped copy of the standard Python library
(./lib/python25.zip).
Everything is working fine, but when I try to import hashlib, i get the
following error:
Traceback (most recent call last):
File
amr...@iisermohali.ac.in wrote:
[please keep the correspondence on the mailing list/newsgroup]
It is working sir, but my datas are on file when i replaced StringIO()
with open(filename.txt) then it is not printing the result properly,
like in one file i have data like:---
33 ALA H = 7.57 N =
I am not a heavy user of Python; but, I do work with it and some of its
application packages (e.g. PyODE), in an academic setting.
Many of these applications packages have a Windows installer which
usually works fine. However, I also try to keep up with the latest
release of Python, and this is
Virgil Stokes wrote:
some of these applications will
not install on the latest version of Python.
Which version of Python precisely?
--
The ability of the OSS process to collect and harness
the collective IQ of thousands of individuals across
the Internet is simply amazing. - Vinod
On Sunday 19 July 2009 02:12:32 John Machin wrote:
Apologies in advance for my ignorance -- the last time I dipped my toe
in that kind of water, protocols like zmodem and Kermit were all the
rage -- but I would have thought there would have been an off-the-
shelf library for peer-to-peer file
On Jul 19, 6:04 pm, Virgil Stokes v...@it.uu.se wrote:
I am not a heavy user of Python; but, I do work with it and some of its
application packages (e.g. PyODE), in an academic setting.
Many of these applications packages have a Windows installer which
usually works fine. However, I also try
Hallo Alan,
def apply2(itr, methodname, *args, **kwargs):
f = operator.methodcaller(methodname, *args, **kwargs)
for item in itr:
f(item)
you can do it in a functional way.
class A(object):
... def hello(self): return hello: + str
( self.__class__.__name__ )
...
class
Hey,
I'm trying to execute a command over a remore server using pexpect
+
url = 'ssh internalserver'
res = pexpect.spawn(url)
print '1'
res.expect('.*ssword:')
print '2'
res.sendline('mypasswd')
print '3'
res.sendline('ls -aslh')
+
What I want to do is to send a
Hi Hendrik,
I have ended up writing a netstring thingy, that addresses the string
transfer problem by having a start sentinel, a four byte ASCII length (so you
can see it with a packet sniffer/displayer) and the rest of the data escaped
to take out the start sentinel and the escape
Ah. How easy! Thank you.
On Sat, Jul 18, 2009 at 7:32 PM, Chris Rebert c...@rebertia.com wrote:
On Fri, Jul 17, 2009 at 6:02 AM, Victor Subervivictorsube...@gmail.com
wrote:
Hi;
I am trying to script code that automatically sends a Web site visitor to
an
URL. Specifically, when they
Rainer Grimm r.gr...@science-computing.de (RG) a écrit:
RG Hallo Alan,
def apply2(itr, methodname, *args, **kwargs):
f = operator.methodcaller(methodname, *args, **kwargs)
for item in itr:
f(item)
RG you can do it in a functional way.
class A(object):
RG ... def
Are user defined classes hashable?
(The classes; *not* the instances!)
I want to use some classes as dictionary keys.
Python is not objecting,
but I'm not sure how to think about
whether this could be dangerous.
I'm inclined to guess it will be hashed by id
and this is OK.
Thanks for any
* Alan G Isaac alan.is...@gmail.com [2009-07-19 13:48:16 +]:
Are user defined classes hashable?
(The classes; *not* the instances!)
I want to use some classes as dictionary keys.
Python is not objecting,
but I'm not sure how to think about
whether this could be dangerous.
I'm
Hi all,
I have just released version 0.2 of Shed Skin, an experimental
(restricted) Python-to-C++ compiler (http://shedskin.googlecode.com).
It comes with 7 new example programs (for a total of 40 example
programs, at over 12,000 lines) and several important improvements/bug
fixes. See
* Alan G Isaac alan.is...@gmail.com [2009-07-19 13:48:16 +]:
Are user defined classes hashable?
(The classes; *not* the instances!)
I'm inclined to guess it will be hashed by id and this is
OK.
On 7/19/2009 10:07 AM Nicolas Dandrimont apparently wrote:
You can check for yourself:
Hussein B hubaghd...@gmail.com (HB) wrote:
HB Hey,
HB I'm trying to execute a command over a remore server using pexpect
HB +
HB url = 'ssh internalserver'
HB res = pexpect.spawn(url)
HB print '1'
HB res.expect('.*ssword:')
HB print '2'
HB res.sendline('mypasswd')
HB print '3'
HB
Hello.
I'm trying to pass to the C function pointer to callback function from
python. But when i'm trying to do this i get access violation within
the DLL file when calling python callback.
Here is the python side code:
from ctypes import *
# ...
class NewtonBody(Structure):
def
resurtm wrote:
Can anybody explain my errors when trying to pass callback to DLL
function?
Thanks for advices and solutions!
You have to keep a reference to the callback alive yourself. ctypes
doesn't increase the refernece counter of the function when you define a
callback. As soon as the
On 19 июл, 21:09, Christian Heimes li...@cheimes.de wrote:
resurtm wrote:
Can anybody explain my errors when trying to pass callback to DLL
function?
Thanks for advices and solutions!
You have to keep a reference to the callback alive yourself. ctypes
doesn't increase the refernece
On Jul 9, 1:20 pm, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
[...]
You'll excuse my skepticism about all these claims about how anyone can
program, how easy it is to teach the fundamentals of Turing Machines and
functional programming to anybody at all. Prove it. Where are
Hi;
I have the following in a *.py page for the Web:
from primeNumbers import primeNumbers
try:
num = form.getfirst('num')
except:
num = ''
msg = Oops
print Content-Type: text/html
print
print
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Frameset//EN
* Alan G Isaac alan.is...@gmail.com [2009-07-19 14:46:12 +]:
Again, my question is about the class not its instances,
but still, checking as you suggest gives the same answer.
That's what I get for answering before my coffee!
Cheers,
--
Nicolas Dandrimont
Linux poses a real challenge
On 20/07/2009 12:24 AM, Virgil Stokes wrote:
John Machin wrote:
On Jul 19, 6:04 pm, Virgil Stokes v...@it.uu.se wrote:
I am not a heavy user of Python; but, I do work with it and some of its
application packages (e.g. PyODE), in an academic setting.
Many of these applications packages have
Victor Subervi wrote:
Hi;
I have the following in a *.py page for the Web:
from primeNumbers import primeNumbers
try:
num = form.getfirst('num')
except:
num = ''
msg = Oops
print Content-Type: text/html
print
print
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Frameset//EN
On Sunday 19 July 2009 15:18:21 pyt...@bdurham.com wrote:
Hi Hendrik,
If anybody is interested I will attach the code here. It is not a big
module.
I am interested in seeing your code and would be grateful if you shared
it with this list.
All right here it is.
Hope it helps
- Hendrik
I am interested in seeing your code and would be grateful if you shared it
with this list.
All right here it is. Hope it helps.
Hendrik,
Thank you very much!! (I'm not the OP, but found this thread
interesting)
Best regards,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Piet van Oostrum p...@cs.uu.nl (PvO) wrote:
[snip]
PvO You can also consider using paramiko instead of pexpect.
[snip]
chan = t.open_session()
chan.exec_command('cat')
chan.send('abcdefghijklmn\n')
In a real program it is better to use sendall here, as send may decide
to send only part of
fft1976 wrote:
On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote:
E.g. the number system: In many Lisp
implementations (/ 2 3) results in the fractional object 2/3. In Python 2.6
2 / 3 results in 0. Looks like with Python 3.1 they have fixed it, now
it returns 0.66, which will
Victor Subervi wrote:
When the form comes up the first time, there is the default value for
num. When I fill in a number in the form and press send, even though the
form sends to itself (same page name), I would think it would read the
number sent. Here again is the code:
from primeNumbers
fft1976 wrote:
How do you explain that something as inferior as Python beat Lisp in
the market place despite starting 40 years later.
Python is not that bad. Unlike Lisp, there is much less undefined behavior,
there is one free unique implementation on the 3 major platforms Linux,
Windows and
In article 1cethsrrw8h6k$.9ty7j7u7zovn@40tude.net,
Frank Buss f...@frank-buss.de wrote:
there is one free unique implementation on the 3 major platforms Linux,
Windows and MacOS X
Most people would still consider Solaris to be a major platform.
--
Thanks. I looked around for alternatives but didn't find this one.
Rick
Chris Rebert wrote:
On Sat, Jul 18, 2009 at 3:30 PM, Rick Kingrickbk...@comcast.net wrote:
Hello,
I want to copy files using subprocess.call or os.system where the file names
are non-ascii, e.g. Serbian(latin), c's and
Roy Smith wrote:
In article 1cethsrrw8h6k$.9ty7j7u7zovn@40tude.net,
Frank Buss f...@frank-buss.de wrote:
there is one free unique implementation on the 3 major platforms Linux,
Windows and MacOS X
Most people would still consider Solaris to be a major platform.
?? I do not, but I
hello,
I'm using Scintilla as a wxPython widget with great pleasure.
I now have an application where I want to make notes during a conversation,
but also want to record the speech during that conversation.
I'm using Scintilla as a wxPython widget for editing and PyAudio for the
speech
On 7/19/2009 1:01 PM Terry Reedy said...
Roy Smith wrote:
In article 1cethsrrw8h6k$.9ty7j7u7zovn@40tude.net,
Frank Buss f...@frank-buss.de wrote:
there is one free unique implementation on the 3 major platforms Linux,
Windows and MacOS X
Most people would still consider Solaris to be
On Jul 19, 10:33 am, fft1976 fft1...@gmail.com wrote:
On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote:
E.g. the number system: In many Lisp
implementations (/ 2 3) results in the fractional object 2/3. In Python 2.6
2 / 3 results in 0. Looks like with Python 3.1 they have fixed it,
GMPY 1.10 beta is now available. This version fixes an issue where
very large objects would be cached for reuse instead of being freed.
Source code and Windows installers may be found at
http://code.google.com/p/gmpy/downloads/list
casevh
--
http://mail.python.org/mailman/listinfo/python-list
Carl Banks wrote:
On Jul 19, 10:33 am, fft1976 fft1...@gmail.com wrote:
On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote:
E.g. the number system: In many Lisp
implementations (/ 2 3) results in the fractional object 2/3. In Python 2.6
2 / 3 results in 0. Looks like with Python 3.1
On 7/19/2009 4:15 PM, Stef Mientki wrote:
hello,
I'm using Scintilla as a wxPython widget with great pleasure.
I now have an application where I want to make notes during a conversation,
but also want to record the speech during that conversation.
I'm using Scintilla as a wxPython widget for
Emile van Sebille em...@fenx.com writes:
Most people would still consider Solaris to be a major platform.
?? I do not, but I have no idea what comes in 4th after the other
three by whatever metric.
one metric calls fourth as the iPhone OS...
On Jul 19, 4:29 pm, Tim Daneliuk tun...@tundraware.com wrote:
Carl Banks wrote:
On Jul 19, 10:33 am, fft1976 fft1...@gmail.com wrote:
On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote:
E.g. the number system: In many Lisp
implementations (/ 2 3) results in the fractional object
On Sun, 19 Jul 2009 15:09:28 -0400
Roy Smith r...@panix.com wrote:
In article 1cethsrrw8h6k$.9ty7j7u7zovn@40tude.net,
Frank Buss f...@frank-buss.de wrote:
there is one free unique implementation on the 3 major platforms
Linux, Windows and MacOS X
Most people would still consider
I'm looking for some ideas here.
I think I've mentioned I am taking a course in Python and PHP.
The professor wants each of us to pick a project to write in both
languages. It has to be something fairly complex and I'd like for it
to be something that would be useful on my Web
On Sun, Jul 19, 2009 at 7:07 PM, Richel Satumbagarlsatumb...@yahoo.com wrote:
I am just learning python then I encountered an certain point in terms of
using the input function of python.
the source code:
eq = input(enter an equation:);
print the
On Mon, 20 Jul 2009, Richel Satumbaga wrote:
I am just learning python then I encountered an certain point in terms of
using the input function of python. the source code:
eq = input(enter an equation:);
print the result is : ;
the output seen
I created the following filename in windows just as a test -
“Dönåld’s™ Néphêws” deg°.txt
The quotes are non -ascii, many non english characters, long hyphen
etc.
Now in DOS I can do a directory and it translates them all to
something close.
Dönåld'sT Néphêws deg°.txt
I thought the correct way
On Jul 19, 5:05 pm, casevh cas...@gmail.com wrote:
GMPY 1.10 beta is now available. This version fixes an issue where
very large objects would be cached for reuse instead of being freed.
Excellent! That explains the funny memory usage graph.
Source code and Windows installers may be found
On Sun, 19 Jul 2009 10:33:39 -0700, fft1976 wrote:
On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote:
E.g. the number system: In many Lisp
implementations (/ 2 3) results in the fractional object 2/3. In Python
2.6 2 / 3 results in 0. Looks like with Python 3.1 they have fixed
it,
Fred Atkinson wrote:
I'm looking for some ideas here.
I think I've mentioned I am taking a course in Python and PHP.
The professor wants each of us to pick a project to write in both
languages. It has to be something fairly complex and I'd like for it
to be something that
Carl Banks wrote:
On Jul 19, 4:29 pm, Tim Daneliuk tun...@tundraware.com wrote:
Carl Banks wrote:
On Jul 19, 10:33 am, fft1976 fft1...@gmail.com wrote:
On Jul 19, 9:55 am, Frank Buss f...@frank-buss.de wrote:
E.g. the number system: In many Lisp
implementations (/ 2 3) results in the
En Thu, 16 Jul 2009 17:41:39 -0300, Robert Robert
robertrober...@yahoo.com escribió:
I am trying to write a binary string to file on a windows network share.
I get an IOError. I've read that it is because the file size is too
large. I did a type( binaryString) and saw that it was type str.
Winfried Plappert winfried.plapp...@gmx.de added the comment:
I have the problem described in issue6512 and here is some information
Python version - hand compiled on Ubuntu 9.04:
Python 3.1 (r31:73572, Jul 18 2009, 11:13:40)
[GCC 4.3.3] on linux2
Type help, copyright, credits or license for
Antoine Pitrou pit...@free.fr added the comment:
Yes, we conditionally import the locale module in order to guess the
encoding when it is not specified by the caller. We can't import it at
module initialization time because it would cause bootstrapping issues.
The Python equivalent of the logic
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - effbot
nosy: +effbot
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6492
___
___
Antoine Pitrou pit...@free.fr added the comment:
Kristján, zlib is only built when the required development headers (.h
files for the zlib library) are available.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Graham Dumpleton graham.dumple...@gmail.com added the comment:
I know this issue is closed, but for this patch, the code:
+modstate = get_atexitmodule_state(module);
+
+if (modstate-ncallbacks == 0)
+return;
was added.
Is there any condition under which modstate could be NULL.
New submission from Antoine Pitrou pit...@free.fr:
It is not obvious whether encoding of an unicode argument will happen or
not:
« [...] No guessing or encoding is performed on the text data.
Changed in version 2.4: The previously deprecated _encoding argument has
been removed. Encoding
Antoine Pitrou pit...@free.fr added the comment:
Apparently it doesn't:
message = MIMEText(uhéhé, _charset=utf-8)
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib64/python2.6/email/mime/text.py, line 30, in __init__
self.set_payload(_text, _charset)
File
Changes by Georg Brandl ge...@python.org:
--
assignee: georg.brandl - barry
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6521
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +pitrou
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6509
___
___
Benjamin Peterson benja...@python.org added the comment:
2009/7/19 Graham Dumpleton rep...@bugs.python.org:
Graham Dumpleton graham.dumple...@gmail.com added the comment:
I know this issue is closed, but for this patch, the code:
+ modstate = get_atexitmodule_state(module);
+
+ if
Changes by Alex Z. mrzmanw...@gmail.com:
--
nosy: +alexz
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
___
Python-bugs-list mailing list
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
submitted revision 74098 and revision 74099 which should fix your issue.
Oh, and revision 74100 and revision 74101 as well (insufficient testing
on my part, tsk. tsk.)
--
___
Python
Ezio Melotti ezio.melo...@gmail.com added the comment:
Thanks, now all the tests pass.
However I had intermittent failures (with a really useful error message)
on test_docxmlrpc:
$ ./python Lib/test/regrtest.py -v test_docxmlrpc
test_docxmlrpc
test_autolink_dotted_methods
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here's a new patch.
I added a could of @skipUnless in test_sqlite because two tests were
failing.
I couldn't notice this before because I didn't have _sqlite3 and these
tests were skipped. Thanks to R. David Murray for reporting the
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6026
___
___
Python-bugs-list
Kevin Walzer wordt...@users.sourceforge.net added the comment:
I disagree that this is a bad idea--it's helpful to be able to double-
click a GUI script and launch it automatically. I realize one can just
fire up Terminal and go python myscript.py, but I missed this
functionality when it was
New submission from Brett Cannon br...@python.org:
If you look at the docs for the unittest.expectedFailure decorator you
will notice it shows a set of empty parentheses since it is set with a
function directive. But since it's a decorator those empty parentheses
are not accurate.
If you
Skip Montanaro s...@pobox.com added the comment:
I suspect that was a conscious decision. Back when it was first written
urllib2 was supposed to eventually replace urllib I think. Dunno if
that's still true, but if so I could see why this feature wasn't added
to urllib.urlopen.
--
Jubaraj Borgohain jubarajborgoh...@gmail.com added the comment:
I have completed the following two new features for the datetime module
(the changes are attached as a patch):
a. Added a method yday()
b. Added date.fromyday(year,yday), which returns a date object.
The other features requested are
Tarek Ziadé ziade.ta...@gmail.com added the comment:
what would be the use case for that ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6516
___
Tarek Ziadé ziade.ta...@gmail.com added the comment:
Michael, I am not sure how you patch applies, is elif meant to be if ?
e.g. a gcc compiler under hp-us case ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6163
73 matches
Mail list logo