On Wed, Jul 14, 2010 at 11:17 PM, bolega wrote:
> This makes some sense. He replied on the newsgroup in a lengthy post
> that there are sufficient resources out there giving hint that no one
> need help me out.
I have no record of such a post.
--
http://mail.python.org/mailman/listinfo/python-li
On Wed, Jul 14, 2010 at 10:17 PM, bolega wrote:
> On Jul 13, 11:18 pm, geremy condra wrote:
>> On Tue, Jul 13, 2010 at 11:01 PM, bolega wrote:
>> > On Jun 20, 9:31 pm, Richard Fateman wrote:
>> >> Define Macro wrote:
>> >> > On Jun 13, 7:07 pm, bolega wrote:
>> >> >> I am trying to compare LIS
On Jul 13, 11:35 pm, Paul Rubin wrote:
> bolega writes:
> > I am trying to compare LISP/Scheme/Python for their expressiveness...
> > Are there already answers anywhere ?
> > How would a gury approach such a project ?
>
> These two articles
>
> http://page.mi.fu-berlin.de/~prechelt/Biblio/jccp
On Jul 13, 11:18 pm, geremy condra wrote:
> On Tue, Jul 13, 2010 at 11:01 PM, bolega wrote:
> > On Jun 20, 9:31 pm, Richard Fateman wrote:
> >> Define Macro wrote:
> >> > On Jun 13, 7:07 pm, bolega wrote:
> >> >> I am trying to compare LISP/Scheme/Python for their expressiveness.
>
> >> >> For
Anyone have any ideas about this?
Cheers
Adam
On Tue, Jul 13, 2010 at 16:18, Adam Mercer wrote:
> Hi
>
> I'm trying to build M2Crypto on Mac OS X 10.6.4 against python2.5
> (python2.6 fails in the same way), with SWIG 2.0.0 and OpenSSL 1.0.0a
> and it is failing with the following:
>
> 105
Hi Vinay,
I think I figured out what you are talking about after reading RFC
5424. I think this means that this code
syslog.info("Status - " + mcu_dict[pinged.ip] + " is " + status[pinged.status])
needs to become something like this
BOM = 0xEFBBBF
msg = str(BOM) + "Status - " + mcu_di
On 07/14/2010 05:37 AM, Monyl wrote:
Hi,
1. How can I find the color of an image present the webpage?
2. How to identify the font type of the selected text present in the
content of the web page
It would be much helpfull, if anyone responds to it ASAP
Thanks
Mohmyda
Please be clearer
On Jul 14, 1:24 pm, Grant Edwards wrote:
> As of a few minutes ago, this thread had 48 postings on my news
> server.
>
> To paraphrase somebody famous:
>
> There are no such things as easy questions. There are, however,
> easy answers. And they're wrong.
Ha! This is the very re
MRAB a écrit :
want to split them over several lines. It is somewhat unusual to have a
_numeric_ literal that's very very long!
I agree. But consider RSA-155 for instance ... ;)
For an integer literal you could use a string literal and convert it to
an integer:
>>> int("1000\
000\
000")
candide wrote:
The escape sequence \ENTER allows to split a string over 2 consecutive
lines. On the other hand, it seems impossible to split a numeric
litteral across multiple lines, compare :
>>> "1000\
... 000\
... 000"
'10'
>>> 1000\
... 000\
File "", line 2
000\
^
Syn
On Thu, 15 Jul 2010 03:30:24 +0200, candide wrote:
> The escape sequence \ENTER allows to split a string over 2 consecutive
> lines. On the other hand, it seems impossible to split a numeric
> litteral across multiple lines
[...]
> Is this the general behaviour ?
Yes. You can't put any whitespac
The escape sequence \ENTER allows to split a string over 2 consecutive
lines. On the other hand, it seems impossible to split a numeric
litteral across multiple lines, compare :
>>> "1000\
... 000\
... 000"
'10'
>>> 1000\
... 000\
File "", line 2
000\
^
SyntaxError:
On Jul 14, 7:08 pm, Joe Hughes wrote:
> This is why I did what I did, because I couldn't figure it out either. I did
> find issue 5421 at python.org which is where I got the idea for the code
> change.
Perhaps you should read the messages for issue 7077, linked to by
Peter above. You'll see th
On 07/14/2010 01:51 PM, Hayathms wrote:
PLease anyone help me ,,
program not running
from tkinter import ttk
from tkinter import *
class Hami(ttk.Frame):
def __init__(self,master=None):
Am 13.07.2010 19:26, schrieb Roald de Vries:
> Hi all,
>
> I have two objects that should both be able to alter a shared float.
> So i need something like a mutable float object, or a float reference
> object. Does anybody know if something like that exists? I know it's
> not hard to build, but
In article
,
Benjamin Kaplan wrote:
> On Sun, Jul 11, 2010 at 1:18 PM, dk wrote:
[...]
> > when i try to compile mysql-python-1.2.3 i get the following error
> > returned from python setup.py build -
> >
> > building '_mysql' extension
> > gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
On 2010-07-14, Steven W. Orr wrote:
> On 07/12/10 21:29, quoth Kenny Meyer:
>
>> I have to figure out if a string is callable on a Linux system. I'm
>> actually doing this:
>>
>> def is_valid_command(command):
>> retcode = 100 # initialize
>> if command:
>> retcode
PLease anyone help me ,,
program not running
from tkinter import ttk
from tkinter import *
class Hami(ttk.Frame):
def __init__(self,master=None):
ttk.Frame.__init__(self,master,borderwidt
On Jul 11, 10:39 pm, "Martin P. Hellwig"
wrote:
> On 07/11/10 04:59, Luke Kenneth Casson Leighton wrote:> source at:
> >http://github.com/lkcl/grailbrowser
>
> > $ python grail.py (note the lack of "python1.5" or "python2.4")
>
> > conversion of the 80 or so regex's to re has been carried out.
> >
On Jul 11, 5:44 am, rantingrick wrote:
> On Jul 10, 10:59 pm, Luke Kenneth Casson Leighton
>
> wrote:
> > source at:http://github.com/lkcl/grailbrowser
>
> > $ python grail.py (note the lack of "python1.5" or "python2.4")
>
> > conversion of the 80 or so regex's to re has been carried out.
> > en
On 07/12/10 21:29, quoth Kenny Meyer:
> Hello,
>
> I have to figure out if a string is callable on a Linux system. I'm
> actually doing this:
>
> def is_valid_command(command):
> retcode = 100 # initialize
> if command:
> retcode = subprocess.call(command, shell=Tr
> Is Python portable?
>
> Can I install it on an USB Stick?
>
> Or is Python installing (at least on WinXP) services or register some DLLs or
> write something into Registry?
Yes, a single user installation of Python is portable. An installation
for every user is not portable since it installs
On Jul 14, 2010, at 3:28 PM, Thomas Tundor wrote:
Is Python portable?
Can I install it on an USB Stick?
Or is Python installing (at least on WinXP) services or register
some DLLs or
write something into Registry?
http://www.portablepython.com/
--
http://mail.python.org/mailman/listinfo/
Is Python portable?
Can I install it on an USB Stick?
Or is Python installing (at least on WinXP) services or register some DLLs or
write something into Registry?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 14 Jul 2010 05:14:08 -0700, micayael wrote:
> Thanks Thomas.
> :-( then adodb today dosn't work with postgres (at least on ubuntu)
> right?
No, ADOdb doesn't work with the newer versions of Postgres. ADOdb doesn't
work with Psycopg2 and the guy who maintains it did not reply to my
email
On Wed, 14 Jul 2010 20:04:59 +0200, Thomas Jollans wrote:
> It certainly looks that way. It may be possible to install an old
> psycopg module by hand - I'd expect that to work as well.
Not on Ubuntu 9.10:
checking PostgreSQL type catalog... /usr/include/postgresql/catalog/
pg_type.h
checking
On 07/14/2010 01:21 PM, joblack wrote:
>> |
>> | Starting point:
>> | ...
>> | self.status['text'] = 'Processing ...'
>> | try:
>> | cli_main(argv)
>> | except Exception, e:
>> | self.status['text'] = 'Error: ' + str(e)
>> | return
>> | ..
On 2010-07-11, wheres pythonmonks wrote:
> I have some easy issues (Python 2.6)
As of a few minutes ago, this thread had 48 postings on my news
server.
To paraphrase somebody famous:
There are no such things as easy questions. There are, however,
easy answers. And they're wrong.
--
On Wed, Jul 14, 2010 at 7:54 AM, Eric J. Van der Velden
wrote:
> Hi,
>
> I understand this:
>
l=[1,2,3]
l[1:2]=[8,9]
l
> [1,8,9,3]
>
> But how do you do this with list.insert?
You can't clobber existing items in the list using just .insert(), so
the closest you could get is somethi
David wrote:
urlretrieve works fine. However, when file size get very large. It
goes on forever, and even fails.
For instance, one of download .zip file is of 363,096KB.
Particularly, when trying to get, with urlretrieve, a zipped folder of
a very large size, it could take up to 20 to 30 minu
This is why I did what I did, because I couldn't figure it out either. I did
find issue 5421 at python.org which is where I got the idea for the code change.
Joe
On Jul 14, 2010, at 12:35 PM, Peter Otten wrote:
> Vinay Sajip wrote:
>
>> On Jul 14, 3:21 pm, Joe Hughes wrote:
>>> Thanks for th
On 07/14/2010 02:14 PM, micayael wrote:
> On Jul 13, 5:35 pm, Thomas Jollans wrote:
>> On 07/13/2010 09:55 PM, micayael wrote:
>>
>>> Hi.
>>
>>> I'm trying to use adodb for postgres. I had instaled in ubuntu 9.10
>>> the adodb and psycopg2 module (sudo apt-get install python-adodb
>>> python-psyco
On 07/14/2010 07:49 PM, David wrote:
>
> urlretrieve works fine. However, when file size get very large. It
> goes on forever, and even fails.
>
> For instance, one of download .zip file is of 363,096KB.
>
> Particularly, when trying to get, with urlretrieve, a zipped folder of
> a very large
urlretrieve works fine. However, when file size get very large. It
goes on forever, and even fails.
For instance, one of download .zip file is of 363,096KB.
Particularly, when trying to get, with urlretrieve, a zipped folder of
a very large size, it could take up to 20 to 30 minutes. Often it
On 7/14/2010 12:06 PM, Ethan Furman wrote:
... Have you tried this?
--> def foo():
... print locals()
... blah = 'interesting'
... print locals()
...
--> foo()
{}
{'blah': 'interesting'}
As can be clearly seen, blah does not exist before the assignment -- the
*name* blah has not been *bound* t
On 14/07/2010 12:19 p.m., Kenneth Tilton wrote:
Steven D'Aprano wrote:
On Tue, 13 Jul 2010 23:24:12 -0400, Kenneth Tilton wrote:
The moral? If you look for the spam, you'll find it.
And if you *don't* look for spam, you can be sure that some goose
will reply to it and get it past your filte
On Wed, 14 Jul 2010 09:06:34 -0700, Ethan Furman wrote:
> Alf P. Steinbach /Usenet wrote:
[...]
>> Clearly when the exception is raised, referring to the variable, the
>> variable exists.
>
> You are the only one spouting nonsense. Have you tried this?
>
> --> def foo():
> ... print locals()
Hello guys
On Following the development of my ADC (Analog-to-Digital converter
Residue function transference) i already got some progress with the
plot problem and (much thanks to colleagues who help me in this forum
and not only) i would like to show you all the progress that has
already got and
Vinay Sajip wrote:
> On Jul 14, 3:21 pm, Joe Hughes wrote:
>> Thanks for the information. I sent an email to the maintainer and got
>> some information that helped me continue with this. My solution was to
>> change line 785 of handlers.py to
>>
>> self.socket.sendto(bytes(msg, 'ascii'), self.a
On 07/14/2010 03:24 PM, kj wrote:
>
>
>
> I have a C library function hg that returns a long double, so when
> I import it using C types I specify this return type like this:
>
> MYLIB.hg.restype = ctypes.c_longdouble
>
> But certain non-zero values returned by hg appear as zero Python-side.
>
Alan wrote:
Hi there,
Module commands is gone in python3, so I am trying subprocess. So please I
would appreciate if someone can tell me how to do this better:
before I had:
cmd = 'uname -a'
out = commands.getoutput(cmd)
'Darwin amadeus.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23
18
Kenneth Tilton writes:
fup2 poster
> Let me see if I have this right. Your technique for reducing unwanted
> traffic is to openly insult one of the participants?
Heh, or just ploinking them (done).
Or making them cry like a little baby:
http://xahlee.org/Periodic_dosage_dir/t2/harassment.html
Googling for ways to use the readline library with multiline input I
found out the following stackoverflow answer:
http://stackoverflow.com/questions/161495/is-there-a-nice-way-of-handling-multi-line-input-with-gnu-readline
The solution is to use the rl_bind_key function, but it does not look
lik
On 7/14/2010 5:37 AM, Monyl wrote:
Hi,
1. How can I find the color of an image present the webpage?
2. How to identify the font type of the selected text present in the
content of the web page
It would be much helpfull, if anyone responds to it ASAP
Thanks
Mohmyda
"Selected text"? Sel
On 07/14/2010 08:38 AM, Alan wrote:
Hi there,
Module commands is gone in python3, so I am trying subprocess. So
please I would appreciate if someone can tell me how to do this better:
before I had:
cmd = 'uname -a'
out = commands.getoutput(cmd)
'Darwin amadeus.local 10.4.0 Darwin Kernel Ver
On Jul 14, 2010, at 8:38 AM, Alan wrote:
> Hi there,
>
> Module commands is gone in python3, so I am trying subprocess. So please I
> would appreciate if someone can tell me how to do this better:
>
> before I had:
>
> cmd = 'uname -a'
> out = commands.getoutput(cmd)
>
> 'Darwin amadeus.loca
Alf P. Steinbach /Usenet wrote:
* MRAB, on 12.07.2010 00:37:
Alf P. Steinbach /Usenet wrote:
Of course there are variables, that's why the docs call them variables.
In Java a variable is declared and exists even before the first
assignment to it. In Python a 'variable' isn't declared and won
On Jul 3, 9:59 pm, Terry Reedy wrote:
> On 7/3/2010 1:48 PM,mo reinawrote:
>
> > an anyone recommend a resource (book,tutorial,etc.) that focuses on
> > application development in python? something similar to Practical
> > Django Projects, but for stand alone applications instead of web apps
> > (
On Jul 14, 3:21 pm, Joe Hughes wrote:
> Thanks for the information. I sent an email to the maintainer and
> got some information that helped me continue with this. My solution was to
> change line 785 of handlers.py to
>
> self.socket.sendto(bytes(msg, 'ascii'), self.address)
>
> After
On 7/14/2010 7:54 AM Eric J. Van der Velden said...
Hi,
I understand this:
l=[1,2,3]
l[1:2]=[8,9]
l
[1,8,9,3]
But how do you do this with list.insert?
>>> l = [1,2,3,4]
>>> l[1:2]=""
>>> dummy = [l.insert(1,x) for x in reversed([8,9])]
Emile
--
http://mail.python.org/mailman/listinfo
Hi there,
Module commands is gone in python3, so I am trying subprocess. So please I
would appreciate if someone can tell me how to do this better:
before I had:
cmd = 'uname -a'
out = commands.getoutput(cmd)
'Darwin amadeus.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23
18:28:53 PDT 201
Steven D'Aprano wrote:
On Tue, 13 Jul 2010 23:24:12 -0400, Kenneth Tilton wrote:
The moral? If you look for the spam, you'll find it.
And if you *don't* look for spam, you can be sure that some goose will
reply to it and get it past your filters. Thanks for that Kenneth, if
that is your nam
Hi,
I understand this:
>>> l=[1,2,3]
>>> l[1:2]=[8,9]
>>> l
[1,8,9,3]
But how do you do this with list.insert?
Thanks,
Eric J.
--
http://mail.python.org/mailman/listinfo/python-list
Hello again to all,
While playing and extending stdiodemo.py,
a came up with a thought of adding command line history.
Is this possible?
Any hints?
Thanks
Antonis K.
--
http://mail.python.org/mailman/listinfo/python-list
Peter,
Thanks for the information. I sent an email to the maintainer and got
some information that helped me continue with this. My solution was to change
line 785 of handlers.py to
self.socket.sendto(bytes(msg, 'ascii'), self.address)
After I made the change, I got exactly what I wa
On Jul 13, 6:49 pm, News123 wrote:
> I wondered about a potentially nicer way of removing a prefix of a
> string if it exists.
>
Here is an iterator solution:
from itertools import izip
def trim_prefix(prefix, s):
i1,i2 = iter(prefix),iter(s)
if all(c1==c2 for c1,c2 in izip(i1,i2)):
I have a C library function hg that returns a long double, so when
I import it using C types I specify this return type like this:
MYLIB.hg.restype = ctypes.c_longdouble
But certain non-zero values returned by hg appear as zero Python-side.
If I modify hg so that it prints out its value right
The better question is, do I ever use them? Thinking back over the code I've
written in the last couple of years, I would say probably two or three times
(mostly in unit tests). I've had to code around string's sequence behavior
DOZENS of times. Is it nifty that strings can be sliced like that?
On Jul 13, 4:14 pm, Hans Mulder wrote:
> Chris Rebert wrote:
> > `where` seems to be a zsh built-in:
> > $ # I'm in UR bash
> > $ nonexistent
> > -bash: nonexistent: command not found
> > $ where bash
> > -bash: where: command not found
>
> > And not everyone has zsh installed, so...
> > I don't s
Hi,
1. How can I find the color of an image present the webpage?
2. How to identify the font type of the selected text present in the
content of the web page
It would be much helpfull, if anyone responds to it ASAP
Thanks
Mohmyda
--
http://mail.python.org/mailman/listinfo/python-list
> EuroPython 2009 - Making 50 Mio. EUR per year using Python
> http://www.egenix.com/go23/
This link returns a 404.
Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 13, 5:35 pm, Thomas Jollans wrote:
> On 07/13/2010 09:55 PM, micayael wrote:
>
> > Hi.
>
> > I'm trying to use adodb for postgres. I had instaled in ubuntu 9.10
> > the adodb and psycopg2 module (sudo apt-get install python-adodb
> > python-psycopg2) but when I put this
>
> > import adodb
>
MAKE UPTO $5000 MONTHLY! $2000 INYOUR FIRST 30 DAYS!
Generate $50 to $100 whenever you have a couple of
hours free time to spare.
You could make $50 or more in the next 2 hours.
Starting right Now!Today!
Earn from your free website
Awesome earnings get paid for your honest work
Join as a free memb
On 07/13/2010 09:22 PM, Shashwat Anand wrote:
You could write:
rsl = f[len(prefix):] if f.startswith(prefix) else f
Or you can just do split and join, "".join(f.split(prefix, 1)) will do.
This suggestion breaks if the prefix occurs within the string
rather than at the beginning:
f
> |
> | Starting point:
> | ...
> | self.status['text'] = 'Processing ...'
> | try:
> | cli_main(argv)
> | except Exception, e:
> | self.status['text'] = 'Error: ' + str(e)
> | return
> | ...
> | cli_main:
> |
> | keypath, inpath, outp
* Hrvoje Niksic, on 14.07.2010 10:17:
"Alf P. Steinbach /Usenet" writes:
Also, things like the 'owned' option is just asking for trouble.
Isn't owned=true (or equivalent) a necessity when initializing from a
PyObject* returned by a function declared to return a "new reference"?
No, not qui
I can second the stated opinion that Python per se is stable enough.
We deliver production systems running 24/7 with uptimes counted in
several months
and from what I can see, compared to the OP's app, ours is vastly more
complex.
The only Python-related issue we have encountered so far, wrt to
st
Mark Dickinson schrieb:
BTW: I'm tied to version 2.5 of python
Have you tried using pickle protocol 1 or 2, instead of pickle
protocol 0? That may well solve your problem. (Those
protocols write out the binary form of a float directly, instead
of reading and writing a string representatio
> I know, I just wondered if there is a *standard* solution.
Yeah, you have to reset your brain and switch to Python mode. *scnr*
Seriously, your inquiry sounds like you are trying to code C in Python.
I'm using Python for more than seven years and I've never felt the need
for a mutable float ref
eGenix at EuroPython 2010
Meet up with eGenix at this year's EuroPython Conference in
Birmingham, UK.
The EuroPython Conference is the one of the p
"Alf P. Steinbach /Usenet" writes:
> Also, things like the 'owned' option is just asking for trouble.
Isn't owned=true (or equivalent) a necessity when initializing from a
PyObject* returned by a function declared to return a "new reference"?
How does your API deal with the distinction between
On Jul 14, 2010, at 3:53 AM, Steven D'Aprano wrote:
On Tue, 13 Jul 2010 19:26:34 +0200, Roald de Vries wrote:
Hi all,
I have two objects that should both be able to alter a shared
float. So
i need something like a mutable float object, or a float reference
object. Does anybody know if somet
On Wed, Jul 07, 2010 at 11:23:22AM -0400, Nathan Huesken wrote:
> I am packing large files with tarfile. Is there any way I can get
> progress information while packing?
There is no builtin way in tarfile, but there are several possible solutions:
1. Replace the tarfile.copyfileobj() function tha
On Jul 14, 2010, at 3:53 AM, Steven D'Aprano wrote:
On Tue, 13 Jul 2010 19:26:34 +0200, Roald de Vries wrote:
Hi all,
I have two objects that should both be able to alter a shared
float. So
i need something like a mutable float object, or a float reference
object. Does anybody know if somet
On Jul 14, 2010, at 1:26 AM, Gary Herron wrote:
On 07/13/2010 03:02 PM, Roald de Vries wrote:
Hi Gary,
On Jul 13, 2010, at 8:54 PM, Gary Herron wrote:
On 07/13/2010 10:26 AM, Roald de Vries wrote:
Hi all,
I have two objects that should both be able to alter a shared
float.
So i need someth
75 matches
Mail list logo