Tony Schmidt wrote:
So do you think it would be very beneficial for me to start with an
Inman or Kimball book? Or do you think it would be just leisure
reading and not very practical at best - fill my head with needless
jargon and inflexible dogmas, at worst?
You have an unique opportunity he
On 2009-09-23, Simon Forman wrote:
>>> Coroutines are built into the language. ?There's a good talk
>>> about them here: http://www.dabeaz.com/coroutines/
>>
>> But what some Python programmers call coroutines aren't really
>> the same as what the programming community at large would call
>> a co
On Wed, Sep 23, 2009 at 22:38 +0200, Wolodja Wentland wrote:
> --- Debian example ---
> $ apt-file search /usr/bin/pg_config
> libpq-dev: /usr/bin/pg_config
> --- snip ---
Just wanted to note that libpq-dev is a dependency of
postgresql-server-dev-8.4 on squeeze. So you *might* want to consider
in
On 08:16 pm, sajmik...@gmail.com wrote:
On Wed, Sep 23, 2009 at 2:05 PM, wrote:
[snip]
But what some Python programmers call coroutines aren't really the
same as
what the programming community at large would call a coroutine.
Jean-Paul
Really? I'm curious as to the differences. (I just
On 2009-09-23, exar...@twistedmatrix.com wrote:
> On 08:16 pm, sajmik...@gmail.com wrote:
>>On Wed, Sep 23, 2009 at 2:05 PM, wrote:
>>[snip]
>>>
>>>But what some Python programmers call coroutines aren't really the
>>>same as
>>>what the programming community at large would call a coroutine.
>>
I seen some documentation about random.random() but my version seems to be
broken?
Python 2.3.4 (#1, Jul 16 2009, 07:03:37)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import random
>>> dir(random)
['__builtins__', '
On Wed, Sep 23, 2009 at 5:00 PM, Brown, Rodrick wrote:
> I seen some documentation about random.random() but my version seems to be
> broken?
>
> Python 2.3.4 (#1, Jul 16 2009, 07:03:37)
> [GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2
> Type "help", "copyright", "credits" or "license" for mor
On 2009-09-23 16:00 PM, Brown, Rodrick wrote:
I seen some documentation about random.random() but my version seems to be
broken?
Python 2.3.4 (#1, Jul 16 2009, 07:03:37)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
imp
Quoting Wolodja Wentland :
On Wed, Sep 23, 2009 at 12:24 -0700, devaru wrote:
I'm trying to install psycopg2 on my system. I followed the
instruction in INSTALL file and gave the command
python setup.py build
running build
running build_py
running build_ext
error: No such file or directory
I
Sorry for the confusion, Simon, this is almost exactly what I need, but i
need to be able to search for a string in a given value of an item
Here is an example of the dict I am working with
{'252': [{'code': '51679', 'date': '2009-08-01 11:35:38', 'userfield':
'252', 'from': '9876662881', 'to': '1
Thanks Jerry that was the problem.
-Original Message-
From: python-list-bounces+rodrick.brown=citi@python.org
[mailto:python-list-bounces+rodrick.brown=citi@python.org] On Behalf Of
Jerry Hill
Sent: Wednesday, September 23, 2009 5:11 PM
To: python-list@python.org
Subject: Re: Ran
On Wed, 2009-09-23 at 20:50 +, exar...@twistedmatrix.com wrote:
> immediately outside the generator. This means that you cannot use
> "enhanced generators" to implement an API like this one:
>
> def doSomeNetworkStuff():
> s = corolib.socket()
> s.connect(('google.com', 8
Support Desk wrote:
Sorry for the confusion, Simon, this is almost exactly what I need, but
i need to be able to search for a string in a given value of an item
Here is an example of the dict I am working with
{'252': [{'code': '51679', 'date': '2009-08-01 11:35:38', 'userfield':
'252', 'fr
The Bear schrieb:
Hi I'm looking to do something like this
f = f.openfileobj(remotefileloc, localfilelikeobj)
my remote files are on a solaris box that i can access using ssh (could
prehap request othe protocols if necessary)
anyone got any ideas?
try paramiko. Or just use subprocess to scp
On 09:40 pm, t...@urandom.ca wrote:
On Wed, 2009-09-23 at 20:50 +, exar...@twistedmatrix.com wrote:
immediately outside the generator. This means that you cannot use
"enhanced generators" to implement an API like this one:
def doSomeNetworkStuff():
s = corolib.socket()
Sorry for the confusion, Simon, this is almost exactly what I need,
but i need to be able to search for a string in a given value of an
item
Here is an example of the dict I am working with
{'252': [{'code': '51679', 'date': '2009-08-01 11:35:38', 'userfield':
'252', 'from': '9876662881', 'to': '
On Wed, 2009-09-23 at 21:53 +, exar...@twistedmatrix.com wrote:
> I specifically left out all "yield" statements in my version, since
> that's exactly the point here. :) With "real" coroutines, they're not
> necessary - coroutine calls look just like any other call. With
> Python's enhance
On 10:00 pm, t...@urandom.ca wrote:
On Wed, 2009-09-23 at 21:53 +, exar...@twistedmatrix.com wrote:
I specifically left out all "yield" statements in my version, since
that's exactly the point here. :) With "real" coroutines, they're not
necessary - coroutine calls look just like any other
On Wed, 2009-09-23 at 22:07 +, exar...@twistedmatrix.com wrote:
> Sure, no value judgement intended, except on the practice of taking
> words with well established meanings and re-using them for something
> else ;)
I think it's the behaviour that's important, and not the specific syntax
need
On Wed, 23 Sep 2009 23:18:26 +0100, Jason Tackaberry
wrote:
On Wed, 2009-09-23 at 22:07 +, exar...@twistedmatrix.com wrote:
Sure, no value judgement intended, except on the practice of taking
words with well established meanings and re-using them for something
else ;)
I think it's the
Hello Everybody
I have used Qt Designer to generate a basic GUI. The file saved from Qt
Designer I named it myGUI.ui .
Now, I have to generate from myGUI.ui the ui_myGUI.py. To get this done, we
must run pyuic4, directly or via mkpuqt.py or Make PyQt. I tried to get it
done, so went into the
On 10:18 pm, t...@urandom.ca wrote:
On Wed, 2009-09-23 at 22:07 +, exar...@twistedmatrix.com wrote:
Sure, no value judgement intended, except on the practice of taking
words with well established meanings and re-using them for something
else ;)
I think it's the behaviour that's important,
"Middle Fork GIS" wrote in message
news:943c8e0b0909231216t1c590b14u453855718352...@mail.gmail.com...
>I have just learned how to use the win32security module (within Windows, of
> course) to determine file ownership. When running against local drives or
> windows shares, this works fine, as sho
On Wed, 23 Sep 2009 22:52:56 +0100, mike171562
wrote:
Sorry for the confusion, Simon, this is almost exactly what I need,
but i need to be able to search for a string in a given value of an
item
Here is an example of the dict I am working with
{'252': [{'code': '51679', 'date': '2009-08-01
Hi all;
In the land'o'shell, I can do something like the following:
tar cvf - SrcDir | (cd /dest ; tar xvf -)
I'd like to learn the "Python" way to reproduce the above. Obviously I
could use the subprocess module and just call that exact command above,
but is there a way to do this with the t
On Wed, Sep 23, 2009 at 03:52:11PM -0700, Ray Van Dolson wrote:
> Hi all;
>
> In the land'o'shell, I can do something like the following:
>
> tar cvf - SrcDir | (cd /dest ; tar xvf -)
>
Bad form replying to my own post... while I'd still like to know if
this is possible to do with the tarfile
On Sep 23, 4:05 pm, "Rhodri James"
wrote:
> On Wed, 23 Sep 2009 22:52:56 +0100, mike171562
>
> wrote:
> > Sorry for the confusion, Simon, this is almost exactly what I need,
> > but i need to be able to search for a string in a given value of an
> > item
>
> > Here is an example of the dict I a
The Bear:
> Hi I'm looking to do something like this
>
> f = f.openfileobj(remotefileloc, localfilelikeobj)
>
> my remote files are on a solaris box that i can access using ssh (could
> prehap request othe protocols if necessary)
You could look into GIO which is a virtual file system API used
This is a bit vague, I'm afraid, but is there any way for me to take
code like:
a = Foo()
beta = Bar()
and somehow attach the string "a" to the Foo instance and "beta" to
the Bar instance. At some later point in the program I want to be
able to look at the Bar instance and say to the user
{Sorry about the no-wrap in the first post...}
I use the pywin environment on Windows for python code editing and
interactive environment.
I've been able to find the place in the editor files where the enter
key is handled and where the whitespace is stripped from a line and
I've been able
On Wed, 23 Sep 2009 14:52:56 -0700 (PDT),
mike171562 wrote:
> Sorry for the confusion, Simon, this is almost exactly what I need,
> but i need to be able to search for a string in a given value of an
> item
>
> Here is an example of the dict I am working with
>
> {'252': [{'code': '51679',
Hello,
Is there any good alternative to twisted for network programming which
doesn't involve asynchronous programming? I don't really like the
asynchronous model because it is hard to incorporate all other
blocking libraries that I have to use. And the code doesn't look nice.
I recently found the
For example, I assume it's possible to somehow access the dictionary
for the current block, but I can't see how to do this after
assignment. If I do it in the Foo constructor, for example, "a" will
not yet be bound.
On Sep 23, 8:15 pm, andrew cooke wrote:
> This is a bit vague, I'm afraid, but
On Thu, 24 Sep 2009 01:15:14 +0100, andrew cooke wrote:
This is a bit vague, I'm afraid, but is there any way for me to take
code like:
a = Foo()
beta = Bar()
and somehow attach the string "a" to the Foo instance and "beta" to
the Bar instance. At some later point in the program I wan
Have you tried something like so?
pyuic4 -o App.py -x App.ui
--
http://mail.python.org/mailman/listinfo/python-list
Have you tried something like so?
pyuic4 -o C:\dev\prgr\src\ui_myGUI.py -x C:\dev\prgr\src\myGUI.ui
(Sorry if double post occured - just changed my Mailing list account ..)
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 24 Sep 2009 01:34:35 +0100, andrew cooke wrote:
For example, I assume it's possible to somehow access the dictionary
for the current block, but I can't see how to do this after
assignment. If I do it in the Foo constructor, for example, "a" will
not yet be bound.
I apologise for fai
On Thu, 24 Sep 2009 01:03:26 +0100, Sean DiZazzo
wrote:
I like to perform what I call "objectify" on nested dictionary type
stuff into classes.
class TestPart(object):
def __init__(self, **kwargs):
for k,v in kwargs.items():
setattr(self, k, v)
[snip]
Hello Xavier.. thanks! [?]
Just tried..
pyuic4 -o C:\dev\prgr\src\ui_myGUI.py -x C:\dev\prgr\src\myGUI.ui
The system cannot find the path specified.
pyuic4 -o ui_myGUI.py -x myGUI.ui
The system cannot find the path specified.
Very strange. [?]
Yep.. the ..!\Py25\Lib\site-packages\PyQt4 is incl
Here's a **very** hackish code I threw up together. It requires a lot of
manual checking and, I don't think it's practical at all.
###input:
default = set(locals())
class test():
def __init__(self):
self.name = str(self)
self.val = 'Mrra'
a = test()
user = set(locals()) - de
What is your code not doing?
Are you winding up with duplicate data in the DB?
Is your web browser re-submitting the form with the same data if you refresh
the screen?
Is your web browser pre-filling the fields of the form due to caching?
I don't understand what's not working
On Wed, Sep 23, 2
On Sep 23, 8:40 pm, "Rhodri James"
wrote:
> eggs[42] = Foo()
> beans['spam'] = Foo()
> chips.spam = Foo()
> spam[eggs.beans['chips']] = Foo()
> spam.append(Foo())
these are valid points, but in practice the main use (for the
restricted application i care about) is si,ple variables, and this is
an
On Wed, Sep 23, 2009 at 3:48 AM, Peter Otten <__pete...@web.de> wrote:
> Why's that obsession with speed?
>
Well, most of the solutions posted so far are O(n**2), which may be
noticeably slow if the list is of considerable length. I wonder if the
original poster ran in to that problem.
>>> item
Hello,
Let's suppose you're on Windows.
If pyuic4 can't be found, you can specified the direct path:
C:\Python26\pyuic4.bat -o Drive:\your\Path\ui_myGUI.py -x
Drive:\your\Path\myGUI.ui
You might need to replace the Python26 with your own version if it
differs...
Cheers
--
http://mail.pytho
On 24/09/2009 10:25 AM, C or L Smith wrote:
{Sorry about the no-wrap in the first post...}
I use the pywin environment on Windows for python code editing and
interactive environment.
I've been able to find the place in the editor files where the enter
key is handled and where the whitespa
On Sep 23, 3:02 pm, Simon Forman wrote:
> On Wed, Sep 23, 2009 at 1:14 PM, Rudolf wrote:
> > Can someone tell me how to allocate single and multidimensional arrays
> > in python. I looked online and it says to do the following x =
> > ['1','2','3','4']
>
> > However, I want a much larger array li
andrew cooke wrote:
This is a bit vague, I'm afraid, but is there any way for me to take
code like:
a = Foo()
beta = Bar()
and somehow attach the string "a" to the Foo instance and "beta" to
the Bar instance. At some later point in the program I want to be
able to look at the Bar instanc
On Sep 23, 8:29 pm, Tvrtko wrote:
> Hello,
>
> Is there any good alternative to twisted for network programming which
> doesn't involve asynchronous programming? I don't really like the
> asynchronous model because it is hard to incorporate all other
> blocking libraries that I have to use. And th
On Sep 23, 10:11 pm, Dave Angel wrote:
> This comes up periodically in this list, and the answer is always
> something like: you can't get there from here.
Well, I'm both flexible and desperate, so this is a possible route
(perhaps near enough):
import sys
class Foo(object):
def __rlshif
for the record, googling for "f_back.f_locals" reveals a wide variety
of similar hacks and also a cleaner way to access the current frame:
inspect.currentframe()
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 24, 4:36 am, Jeff McNeil wrote:
> I know this probably isn't overly helpful, but Twisted allows you to
> defer a blocking call to a thread using a 'deferToThread' construct.
> It exists so that you can run otherwise synchronous calls in an async.
> manner.
I'm already using this, but the l
s="1234abcd"
s.range(0..4)
1234a
Is there a string function like this?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Sep 24, 2009 at 1:05 PM, MacRules wrote:
> s="1234abcd"
> s.range(0..4)
> 1234a
>
> Is there a string function like this?
>
>
Use the slice.
>>> s = "1234abcd"
>>> s[:5]
'1234a'
Cheers,
Xav
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday 24 September 2009 05:05:45 MacRules wrote:
> s="1234abcd"
print s[0:4]
should do it. Not sure it's a function though.
\d
--
home: http://otherwise.relics.co.za/
2D vector animation : https://savannah.nongnu.org/projects/things/
Font manager : https://savannah.nongnu.org/projects/fon
On 2009-09-24, MacRules wrote:
> s="1234abcd"
> s.range(0..4)
> 1234a
>
> Is there a string function like this?
http://www.google.com/search?q=python+tutorial
--
Grant
--
http://mail.python.org/mailman/listinfo/python-list
hello,
SMTPHAndler seems to email every single record separately. is there a
way to collect all log output and then send it in a single email
message? or do i have to do it manually?
thanks
konstantin
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Sep 23, 2009 at 10:03 PM, AggieDan04 wrote:
> On Sep 23, 3:02 pm, Simon Forman wrote:
>> On Wed, Sep 23, 2009 at 1:14 PM, Rudolf wrote:
>> > Can someone tell me how to allocate single and multidimensional arrays
>> > in python. I looked online and it says to do the following x =
>> > ['1
Hello, I'm a newb and have been playing with Python trying to print a
changing value to the screen that updates as the value changes. I have this
code, which is pretty much doing what I want:
#!/usr/bin/env python3
import time
text = input('Please enter something: ')
for c in text:
print('T
On Wed, Sep 23, 2009 at 9:11 PM, Donavan Lance wrote:
> Hello, I'm a newb and have been playing with Python trying to print a
> changing value to the screen that updates as the value changes. I have this
> code, which is pretty much doing what I want:
>
> #!/usr/bin/env python3
>
> import time
>
>
On 04:11 am, tusklah...@gmail.com wrote:
Hello, I'm a newb and have been playing with Python trying to print a
changing value to the screen that updates as the value changes. I have
this
code, which is pretty much doing what I want:
#!/usr/bin/env python3
import time
text = input('Please ent
Sweet, thanks for the information. Lots to learn.
On Thu, Sep 24, 2009 at 12:23 AM, wrote:
> On 04:11 am, tusklah...@gmail.com wrote:
>
>> Hello, I'm a newb and have been playing with Python trying to print a
>> changing value to the screen that updates as the value changes. I have
>> this
>> co
Hi Xavier
Yes. You are right, I am in WinXP - developing a client-server database for
a customer. I am pretty sure that this type of problem won't be happening on
Linux.
Anyway, I did both way about the path. It didn't work and keep giving that
same error message.
Maybe it seems to be a bug .. s
On Sep 23, 8:01 pm, Donn wrote:
> On Wednesday 23 September 2009 18:51:29 volcano wrote:> exit_code = !$
>
> I think it's $? to get the code.
> \d
> --
> home:http://otherwise.relics.co.za/
> 2D vector animation :https://savannah.nongnu.org/projects/things/
> Font manager :https://savannah.nongnu.
On Sep 24, 4:45 am, Xavier Lapointe wrote:
> Hello,
>
> Let's suppose you're on Windows.
>
> If pyuic4 can't be found, you can specified the direct path:
> C:\Python26\pyuic4.bat -o Drive:\your\Path\ui_myGUI.py -x
> Drive:\your\Path\myGUI.ui
> You might need to replace the Python26 with your own v
101 - 164 of 164 matches
Mail list logo