-On [20090318 04:01], Lobo (carlosgali...@gmail.com) wrote:
>I am wondering whether I can jump directly to Python 3.x (instead of
>using Python 2.6), depending of course on psycopg2 compatibility?.
Might I suggest sticking to 2.6 for now?
The 2.x series is what is now going around as 'stable' in
En Tue, 17 Mar 2009 01:24:18 -0200, Aaron Garrett
escribió:
On Mar 16, 9:59 pm, Chris Rebert wrote:
On Mon, Mar 16, 2009 at 7:48 PM, Aaron Garrett
wrote:
> I have spent quite a bit of time trying to find the answer on this
> group, but I've been unsuccessful. Here is what I'd like to be able
On Mar 18, 4:19 pm, Matt Nordhoff wrote:
> bdb112 wrote:
> > Thanks for all the replies:
> > I think I see now - % is a binary operator whose precedence rules are
> > shared with the modulo operator regardless of the nature of its
> > arguments, for language consistency.
> > I understand the argum
Hello list!
I'm having a strange issue, and I'm not entirely certain yet where
the actual problem is (ie, Python, PyGTK, or gtk+), but I figure I'll
start here. Bear with me, this'll probably be a long explanation...
I've been building an app which is meant to be run on both Linux and
Windows.
On Wednesday 18 March 2009 02:22:57 Chris Rebert wrote:
> 2009/3/17 :
> > Could anyone suggest whether there is any Python to Perl code convertors?
> > I found one on the net viz. Perthon. But it wasn’t really helping out.
>
>
> Why on earth would you want to? That'd be like translating Shakespea
-Original Message-
From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert
Sent: Wednesday, March 18, 2009 10:53 AM
To: Raju, Abhinayaraj
Cc: python-list@python.org
Subject: Re: Python to Perl transalators
2009/3/17 :
> Could anyone suggest whether there is any Pyt
Saurabh wrote:
> Heres the reason behind wanting to get chunks at a time.
> Im actually retrieving data from a list of RSS Feeds and need to
> continuously check for latest posts.
> But I dont want to depend on Last-Modified header or the pubDate tag
> in . Because a lot of feeds just output date('
2009/3/17 :
> Could anyone suggest whether there is any Python to Perl code convertors?
> I found one on the net viz. Perthon. But it wasn’t really helping out.
Why on earth would you want to? That'd be like translating Shakespeare
into a bad rap song!
Cheers,
Chris
--
I have a blog:
http://
bdb112 wrote:
> Thanks for all the replies:
> I think I see now - % is a binary operator whose precedence rules are
> shared with the modulo operator regardless of the nature of its
> arguments, for language consistency.
> I understand the arguments behind the format method, but hope that the
> sli
Could anyone suggest whether there is any Python to Perl code convertors?
I found one on the net viz. Perthon. But it wasn't really helping out.
Thanks
Agni
--
http://mail.python.org/mailman/listinfo/python-list
I forgot; people interested in metaclasses in Python 3.0
will want to read this paper:
http://www.artima.com/weblogs/viewpost.jsp?thread=236234
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 17, 7:45 pm, Aaron Brady wrote:
> (Perhaps someday, we will be able to write:
> def dec( namespace ):
> def outer( fun ):
> if fun.__name__ in namespace:
> namespace[ dup_var ]= namespace[ fun.__name__ ]
> return fun
> return outer
> It allows us to see if there's a prior
En Tue, 17 Mar 2009 17:09:35 -0200, R. David Murray
escribió:
Jean-Paul Calderone wrote:
On Tue, 17 Mar 2009 15:17:56 + (UTC), "R. David Murray"
wrote:
>Jean-Paul Calderone wrote:
>> On Tue, 17 Mar 2009 12:15:23 +0530, Saurabh
wrote:
>> >
>> >It seems to have some header like the
En Sun, 15 Mar 2009 01:51:35 -0200, Travis Miller
escribió:
I am very new to the python C API, and have written a simple type
called SU2 that has 4 members that are all doubles. Everything seems
to work fine (can import my module and instantiate the new type and
act on it with various method
Just thought I'd add that I've been using SQLAlchemy + Postgresql w/
psycopg2 driver with great success for a long time now. This is just a
preference, but I like using SQLAlchemy without the ORM. It has really good
support for basic low level stuff like defining tables, inserts and updates.
The bi
On 2009-03-18, Grant Edwards wrote:
> On 2009-03-17, Jim Garrison wrote:
>> I'm an experienced C/Java/Perl developer learning Python.
>>
>> What's the canonical Python way of implementing this pseudocode?
>>
>> String buf
>> File f
>> while ((buf=f.read(1)).length() > 0)
>>
On 2009-03-18, Jim Garrison wrote:
> Tim Chase wrote:
>>> Am I missing something basic, or is this the canonical way:
>>>
>>> with open(filename,"rb") as f:
>>> buf = f.read(1)
>>> while len(buf) > 0
>>> # do something
>>> buf = f.read(1
On 2009-03-17, Jim Garrison wrote:
> I'm an experienced C/Java/Perl developer learning Python.
>
> What's the canonical Python way of implementing this pseudocode?
>
> String buf
> File f
> while ((buf=f.read(1)).length() > 0)
> {
> do something
> }
>
>
I'm proud to release version 1.4.8 of Roundup.
This release fixes some regressions:
- bug introduced into hyperdb filter (issue 2550505)
- bug introduced into CVS export and view (issue 2550529)
- bugs introduced in the migration to the email package (issue 2550531)
And adds a couple of other fi
On Mar 17, 2009, at 10:57 PM, Lobo wrote:
Many thanks to all for your valuable input.
I've done some research and I believe I will use (at least for now, to
make it simple) psycopg2 module to connect Python to PostgreSQL.
I am wondering whether I can jump directly to Python 3.x (instead of
us
Thanks for all the replies:
I think I see now - % is a binary operator whose precedence rules are
shared with the modulo operator regardless of the nature of its
arguments, for language consistency.
I understand the arguments behind the format method, but hope that the
slightly idiosyncratic print(
Many thanks to all for your valuable input.
I've done some research and I believe I will use (at least for now, to
make it simple) psycopg2 module to connect Python to PostgreSQL.
I am wondering whether I can jump directly to Python 3.x (instead of
using Python 2.6), depending of course on psycop
Jim Garrison wrote:
Ah. That's the Pythonesque way I was looking for. I knew
it would be a generator/iterator but haven't got the Python
mindset down yet and haven't played with writing my own
generator. I'm still trying to think in purely object-
oriented terms where I would override __next_
Jim Garrison wrote:
[snip]
Ah. That's the Pythonesque way I was looking for.
>
FYI, the correct word is "Pythonic". "Pythonesque" refers to Monty
Python.
--
http://mail.python.org/mailman/listinfo/python-list
andrew cooke wrote:
> Jim Garrison wrote:
>> I'm an experienced C/Java/Perl developer learning Python.
>>
>> What's the canonical Python way of implementing this pseudocode?
[snip]
>
> embarrassed by the other reply i have read,
There's always some "trollish" behavior in any comp.lang.*
group.
Tim Chase wrote:
>> Am I missing something basic, or is this the canonical way:
>>
>> with open(filename,"rb") as f:
>> buf = f.read(1)
>> while len(buf) > 0
>> # do something
>> buf = f.read(1)
>
> That will certainly do. Since read()
Hi,
When I buil the MySQLDB mod I get the following error:
[r...@box MySQL-python-1.2.2]# â_mysql.c:2420: error:
â_mysql_ResultObjectâ has no member named âconverter
-bash: â_mysql.c:2420:: command not found
[r...@box MySQL-python-1.2.2]# â_mysql.c:2420: error: initializer
element is not constan
In article <163b0c86-adf7-434c-9270-c819c5a07...@k29g2000prf.googlegroups.com>,
grocery_stocker wrote:
>
>[cdal...@localhost ~]$ python
>Python 2.4.3 (#1, Oct 1 2006, 18:00:19)
>[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2
>Type "help", "copyright", "credits" or "license" for more informati
grocery_stocker wrote:
On Mar 17, 3:22 pm, Emile van Sebille wrote:
grocery_stocker wrote:
It seems like id(list[]) == id().
It might seem that way, but test with other than single-character
strings, eg lists like [7],[8],[9] and try again.
I still get the same thing...
Well, yes -- becaus
grocery_stocker wrote:
> It seems like id(list[]) == id(). However, I
> can't find anything in the python documentation that talks about it.
> Did I perhaps overlook something?
most of your examples stated the obvious (that if x is in a list l at
index i then id(list[i]) == id(x) - this is because
On Tuesday 17 March 2009 19:10:20 Josh Holland wrote:
> On Tue, Mar 17, 2009 at 05:04:36PM -0500, Jim Garrison wrote:
> > What's the canonical Python way of implementing this pseudocode?
> >
> > String buf
> > File f
> > while ((buf=f.read(1)).length() > 0)
> > {
> > d
On Tuesday 17 March 2009 19:04:25 Luis Zarrabeitia wrote:
> On Tuesday 17 March 2009 03:17:02 pm R. David Murray wrote:
> > > > (btw, I love the new sentinel argument for the next function in
> > > > python3!)
> > >
> > > next() doesn't have a sentinel argument. It's iter() which does, and
> > > th
> It seems like id(list[]) == id(). However, I
> can't find anything in the python documentation that talks about it.
It's deliberately undocumented (outside of the source code, that is).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Mar 17, 2009 at 02:10:36PM EDT, Chris Rebert wrote:
> On Mon, Mar 16, 2009 at 6:05 PM, robert song
> wrote:
> > Hello, everyone.
> > python can be debugged with pdb, but if there anyway to get a quick
> > view of the python execution.
> > Just like sh -x of bash command.
> > I didn't find
grocery_stocker wrote:
Given the following
[cdal...@localhost ~]$ python
Python 2.4.3 (#1, Oct 1 2006, 18:00:19)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
list = [7,8,9]
id(list)
-1209401076
id(
John Gordon wrote:
> I'm using the ldap package to connect to an ldap server and run a query.
> Very simple code, along these lines:
>
> con = ldap.initialize(uri)
> con.simple_bind_s(user, password)
> results = con.search_s(group, ldap.SCOPE_SUBTREE, filter, attrs)
> for r in results:
>
On Mar 17, 3:22 pm, Emile van Sebille wrote:
> grocery_stocker wrote:
>
>
>
>
>
> > It seems like id(list[]) == id().
>
> It might seem that way, but test with other than single-character
> strings, eg lists like [7],[8],[9] and try again.
>
I still get the same thing...
[cdal...@localhost ~]$
On Tue, Mar 17, 2009 at 6:14 PM, grocery_stocker wrote:
> Given the following
>
> [example of cached numbers]
>
>
> It seems like id(list[]) == id(). However, I
> can't find anything in the python documentation that talks about it.
> Did I perhaps overlook something?
You didn't find anythin
On Tuesday 17 March 2009 06:04:36 pm Jim Garrison wrote:
>
> Am I missing something basic, or is this the canonical way:
>
> with open(filename,"rb") as f:
> buf = f.read(1)
> while len(buf) > 0
> # do something
> buf = f.read(1)
well, a
Jim Garrison writes:
> buf = f.read(1)
> while len(buf) > 0
> # do something
> buf = f.read(1)
I think it's more usual to use a 'break' rather than duplicate the read.
That is, something more like
while True:
buf = f.read(1)
Am I missing something basic, or is this the canonical way:
with open(filename,"rb") as f:
buf = f.read(1)
while len(buf) > 0
# do something
buf = f.read(1)
That will certainly do. Since read() should simply return a
0-length string
Jim Garrison wrote:
> I'm an experienced C/Java/Perl developer learning Python.
>
> What's the canonical Python way of implementing this pseudocode?
>
> String buf
> File f
> while ((buf=f.read(1)).length() > 0)
> {
> do something
> }
>
> In other words,
On Tue, Mar 17, 2009 at 03:14:39PM -0700, grocery_stocker wrote:
> It seems like id(list[]) == id().
Only when certain immutable objects are involved. It is the
implementation's option to allow different immutable values to be the
same object (same id()). In CPython, this is used to cache strings
grocery_stocker wrote:
It seems like id(list[]) == id().
It might seem that way, but test with other than single-character
strings, eg lists like [7],[8],[9] and try again.
Emile
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Mar 17, 2009 at 05:04:36PM -0500, Jim Garrison wrote:
> What's the canonical Python way of implementing this pseudocode?
>
> String buf
> File f
> while ((buf=f.read(1)).length() > 0)
> {
> do something
> }
That looks more like C than pseudocode to me.
Given the following
[cdal...@localhost ~]$ python
Python 2.4.3 (#1, Oct 1 2006, 18:00:19)
[GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> list = [7,8,9]
>>> id(list)
-1209401076
>>> id(list[0])
154303848
>>> id(list[
I'm an experienced C/Java/Perl developer learning Python.
What's the canonical Python way of implementing this pseudocode?
String buf
File f
while ((buf=f.read(1)).length() > 0)
{
do something
}
In other words, I want to read a potentially large file in 100
On Tuesday 17 March 2009 03:17:02 pm R. David Murray wrote:
> > > (btw, I love the new sentinel argument for the next function in
> > > python3!)
> >
> > next() doesn't have a sentinel argument. It's iter() which does, and
> > that's in 2.x also.
>
> But it does have a 'default' argument, and you c
Craig Allen wrote:
we have software we are putting into package form. So far, all the
code was in local py files and we imported between the modules as
you'd think. Now with the package ("ourpackage") we are addressing
how import affects the importing module.
if "ourpackage" __init__.py itself
Mensanator wrote:
> Maybe he's looking for the face of Jesus?
or aphex twin
--
http://mail.python.org/mailman/listinfo/python-list
Craig Allen wrote:
[...]
> Instead, I think we want "import package" to preserve the sort of
> namespace our loose python files provided, so:
>
> import ourpackage
> inst = ourpackage.OurClass()
>
> I think the way to do this, and it seems a legit use of a somewhat
> dangerous form of import, t
Chris Rebert wrote:
On Tue, Mar 17, 2009 at 2:24 PM, Robert Kern wrote:
On 2009-03-17 16:13, Paddy wrote:
We the def statement and the lambda expression. We have the class
statement, but is their an expression to create a class?
Or:
def F(): pass
type(F)
# Is to:
F2 = lambda : none
type(
we have software we are putting into package form. So far, all the
code was in local py files and we imported between the modules as
you'd think. Now with the package ("ourpackage") we are addressing
how import affects the importing module.
if "ourpackage" __init__.py itself does regular imports
On Tue, Mar 17, 2009 at 2:24 PM, Robert Kern wrote:
> On 2009-03-17 16:13, Paddy wrote:
>>
>> We the def statement and the lambda expression. We have the class
>> statement, but is their an expression to create a class?
>>
>> Or:
>>
> def F(): pass
>>
> type(F)
>>
>>
>
> # Is to:
On 2009-03-17 16:13, Paddy wrote:
We the def statement and the lambda expression. We have the class
statement, but is their an expression to create a class?
Or:
def F(): pass
type(F)
# Is to:
F2 = lambda : none
type(F2)
# As
class O(object): pass
type(O)
# is to:
#
type('
We the def statement and the lambda expression. We have the class
statement, but is their an expression to create a class?
Or:
>>> def F(): pass
>>> type(F)
>>> # Is to:
>>> F2 = lambda : none
>>> type(F2)
>>>
>>> # As
>>> class O(object): pass
>>> type(O)
>>> # is to:
>>> #
Thanks.
-
I'm using the ldap package to connect to an ldap server and run a query.
Very simple code, along these lines:
con = ldap.initialize(uri)
con.simple_bind_s(user, password)
results = con.search_s(group, ldap.SCOPE_SUBTREE, filter, attrs)
for r in results:
# inspect the results
I'm exper
On Tue, Mar 17, 2009 at 12:15 PM, Hrvoje Niksic wrote:
> Chris Rebert writes:
>
>> Ah, I should've thought to google for the sh manpage. Locally, man
>> sh just gives me the bash manpage again which doesn't list -x :-(
>
> Are you sure? On my system the OPTIONS section of bash(1) begins with:
>
Chris Rebert writes:
> Ah, I should've thought to google for the sh manpage. Locally, man
> sh just gives me the bash manpage again which doesn't list -x :-(
Are you sure? On my system the OPTIONS section of bash(1) begins with:
In addition to the single-character shell options documented
On Mar 17, 1:45 pm, Irmen de Jong wrote:
> Ehsen Siraj wrote:
> > I am trying to print binary data on screen but I got the following error.
>
> > f = open('/home/ehsen/1.mp3','rb')
> > g = f.read()
> > print g
> [...]
> > UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0:
> > u
Benjamin Peterson wrote:
> Luis Zarrabeitia uh.cu> schrieb:
> >
> > Works for python2.4 and 2.5 also.
> >
> > In python3, this should be used instead:
> >
> > >>> b = iter(a)
> > >>> c = next(b)
> >
> > (btw, I love the new sentinel argument for the next function in python3!)
>
> next() does
On Mar 17, 2:18 am, Peter Otten <__pete...@web.de> wrote:
> Mensanator wrote:
> > On Mar 16, 1:40 pm, Peter Otten <__pete...@web.de> wrote:
> >> mattia wrote:
> >> > I have 2 lists, like:
> >> > l1 = [1,2,3]
> >> > l2 = [4,5]
> >> > now I want to obtain a this new list:
> >> > l = [(1,4),(1,5),(2,4
Jean-Paul Calderone wrote:
> On Tue, 17 Mar 2009 15:17:56 + (UTC), "R. David Murray"
> wrote:
> >Jean-Paul Calderone wrote:
> >> On Tue, 17 Mar 2009 12:15:23 +0530, Saurabh wrote:
> >> >> This isn't exactly how things work. The server *sends* you bytes. It
> >> >> can
> >> >> send you a
Ehsen Siraj wrote:
I am trying to print binary data on screen but I got the following error.
f = open('/home/ehsen/1.mp3','rb')
g = f.read()
print g
[...]
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0:
unexpected code byte
please help me how i fix this thing.
One wa
at bottom
On Mar 17, 12:54 pm, "andrew cooke" wrote:
> ah, ok. then yes, you can do that with decorators. you'd need hash
> tables or something similar in a metaclass. then the decorator would take
> the given function, stick it in the appropriate hash table, and return a
> function that does t
On Tue, 17 Mar 2009 15:17:56 + (UTC), "R. David Murray"
wrote:
Jean-Paul Calderone wrote:
On Tue, 17 Mar 2009 12:15:23 +0530, Saurabh wrote:
>> This isn't exactly how things work. The server *sends* you bytes. It can
>> send you a lot at once. To some extent you can control how much i
Arg, my apologies, I posted my replies to the wrong group :(
--
R. David Murray http://www.bitdance.com
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to print binary data on screen but I got the following error.
f = open('/home/ehsen/1.mp3','rb')
g = f.read()
print g
Traceback (most recent call last):
File "", line 1, in
File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/py/shell.py",
line 1160, in writeOut
self
Luis Zarrabeitia uh.cu> schrieb:
>
> Works for python2.4 and 2.5 also.
>
> In python3, this should be used instead:
>
> >>> b = iter(a)
> >>> c = next(b)
>
> (btw, I love the new sentinel argument for the next function in python3!)
next() doesn't have a sentinel argument. It's iter() which do
On Tue, Mar 17, 2009 at 11:13 AM, D'Arcy J.M. Cain wrote:
> On Tue, 17 Mar 2009 11:10:36 -0700
> Chris Rebert wrote:
>> I've read the manpage for bash and can find no such -x option listed.
>
> It's an option from sh(1) that bash copies. Check the man page for sh
> (1) for a description.
Ah, I
On Mar 17, 2009, at 12:46 PM, Lobo wrote:
Hi,
I am new to this newsgroup (and new to Python and PostgreSQL). My
experience (17+ years) has been with Smalltalk (e.g. VAST) and Object
databases (e.g. Versant, OmniBase).
I now have a new project to develop web applications using the latest/
best
Il Tue, 17 Mar 2009 15:40:02 +, R. David Murray ha scritto:
> mattia wrote:
>> Il Tue, 17 Mar 2009 10:55:21 +, R. David Murray ha scritto:
>>
>> > mattia wrote:
>> >> Hi all, can you tell me why the module urllib.request (py3) add
>> >> extra characters (b'fef\r\n and \r\n0\r\n\r\n') in
On Tue, 17 Mar 2009 11:10:36 -0700
Chris Rebert wrote:
> I've read the manpage for bash and can find no such -x option listed.
It's an option from sh(1) that bash copies. Check the man page for sh
(1) for a description.
--
D'Arcy J.M. Cain | Democracy is three wolves
http://www.druid
On Mon, Mar 16, 2009 at 6:05 PM, robert song wrote:
> Hello, everyone.
> python can be debugged with pdb, but if there anyway to get a quick
> view of the python execution.
> Just like sh -x of bash command.
> I didn't find that there is an option of python that can do it.
I've read the manpage f
The real problem jelle is the license of OpenCASCADE. My understanding
is that it's not recognized as "free" by debian because of it's
description.
The phrase "You are also obliged to send your modifications of the
original source code (if you have made any) to the Initial Developer
(i.e. Open CAS
Hello,
Could someone suggest a Python library for generating the indicators and
graphs that "weather station software" typically produces, e.g., similar to
those seen here: http://www.weather-display.com/wdfull.html ... and here:
http://www.weather-display.com/index.php ? I did stumble across
ah, ok. then yes, you can do that with decorators. you'd need hash
tables or something similar in a metaclass. then the decorator would take
the given function, stick it in the appropriate hash table, and return a
function that does the dispatch (ie at run time does the lookup from the
hash tab
On Mar 17, 12:20 pm, Adam wrote:
> Thanks, Andrew. I'm trying to accomplish something with a
> metaprogramming flavor, where, for the convenience of the programmer
> and the clarity of code, I'd like to have a decorator or some other
> mechanism do twiddling behind the scenes to make a class do s
Lobo wrote:
I now have a new project to develop web applications using the latest/
best possible versions of Python (3.x?) with PostgreSQL (8.x?, with
pgAdmin 1.10?).
You want to use Python 2.5.x (or 2.6 if your framework of choice already
supports it), Postgres 8.3 and have a look at SQLAlch
hello,
On Tue, 2009-03-17 at 09:46 -0700, Lobo wrote:
> Hi,
>
> I am new to this newsgroup (and new to Python and PostgreSQL). My
> experience (17+ years) has been with Smalltalk (e.g. VAST) and Object
> databases (e.g. Versant, OmniBase).
>
Welcome to the world of monty pythons,
/\/\/\:
> I no
Thanks, Andrew. I'm trying to accomplish something with a
metaprogramming flavor, where, for the convenience of the programmer
and the clarity of code, I'd like to have a decorator or some other
mechanism do twiddling behind the scenes to make a class do something
it wouldn't normally do.
Here's
On Tue, 17 Mar 2009 18:03:59 +0100, Laszlo Nagy wrote:
For whatever reason, you're ending up with a lot of open files and/or
sockets
(and/or any other resource based on file descriptors). That results in new
file descriptors having large values (>=1024).
You cannot use select() with such fi
On Mar 14, 5:22 am, Matteo wrote:
> Re-posting in more simple and precise terms from a previous
> threadhttp://groups.google.it/group/comp.lang.python/browse_thread/thread/6...
>
> Problem:
> SWIG doesn't properly wrap c++ arrays of pointers, therefore when you
> try to call a c++ function which
For whatever reason, you're ending up with a lot of open files and/or
sockets
(and/or any other resource based on file descriptors). That results
in new
file descriptors having large values (>=1024).
You cannot use select() with such file descriptors. Try poll() instead,
or Twisted. ;)
Poll
Adam wrote:
> class A(object):
> def __init__(self, method, usebar = False):
> self.method = method
> self.usebar = usebar
>
> def __call__(self):
> if self.usebar == True:
> mangled_name = "_bar_" + self.method
> if hasattr(self, mangled_name
Hi,
I am new to this newsgroup (and new to Python and PostgreSQL). My
experience (17+ years) has been with Smalltalk (e.g. VAST) and Object
databases (e.g. Versant, OmniBase).
I now have a new project to develop web applications using the latest/
best possible versions of Python (3.x?) with Postg
Here's an interesting post:
http://mail.python.org/pipermail/python-list/2005-April/317442.html
Thank you. I'll try socket.close() instead of socket.shutdown(). Or
both. :-)
--
http://mail.python.org/mailman/listinfo/python-list
I am using Python 2.5, and I would like to write a decorator (or using
some other elegant, declarative approach) to mangle the name of
function in a class. I would like to be able to have two methods
declared with the same name, but one of them will have a decorator (or
whatever) that will change
Jacob Holm wrote:
> I believe that as soon as the left-hand side stops being a simple
> variable and it is used in non-trivial expressions on the right-hand
> side, using the keyword would help clarify the intent. What I mean is
> that the examples you should be looking at are more like:
>
>
http://code.activestate.com/recipes/114217/
On Tue, Mar 17, 2009 at 1:38 PM, Saurabh wrote:
> Heres the reason behind wanting to get chunks at a time.
> Im actually retrieving data from a list of RSS Feeds and need to
> continuously check for latest posts.
> But I dont want to depend on Last-Modi
Laszlo Nagy wrote:
Hi Laszlo,
Just a hunch -- are you leaking file handles and eventually running out?
These file handles are for TCP sockets. They are accept()-ed, used and
then thrown out. I guess after the connection was closed, the file
handle is destroyed automatically. BTW here is the
hwpus...@yahoo.de wrote:
> What I would like is to extend the augmented assignment
> and make it easy to understand for naive readers.
Good luck. :)
> I hope the following literary definition
> is consistent enough to convey the correct meaning:
> "whenever it is possible, modify the target IN
On Fri, 13 Mar 2009 22:10:37 -0700 (PDT), Saurabh wrote:
> Hi all,
> I am an experienced C programmer, I have done some perl code as well.
> But while thinking about large programs,I find perl syntax a
> hinderance.
> I read Eric Raymonds article reagrding python,(http://
> www.linuxjournal.com/ar
On 17 Mrz., 16:22, Mudcat wrote:
> On Mar 17, 6:39 am, Kay Schluehr wrote:
>
>
>
> > On 16 Mrz., 23:06, Mudcat wrote:
>
> > > On Mar 13, 8:37 pm, Christian Heimes wrote:
>
> > > > Chris Rebert wrote:
> > > > > Haven't used it, butPythonfor .NET sounds like it might be what you
> > > > > want:ht
I like some of the comments: "oh come on, you can practically just read it
like it's english" and "And there's me thinking Python was getting more
popular...", both true.
--
http://mail.python.org/mailman/listinfo/python-list
mattia wrote:
> Il Tue, 17 Mar 2009 10:55:21 +, R. David Murray ha scritto:
>
> > mattia wrote:
> >> Hi all, can you tell me why the module urllib.request (py3) add extra
> >> characters (b'fef\r\n and \r\n0\r\n\r\n') in a simple example like the
> >> following and urllib2 (py2.6) correctly
Hello there,
I have a problem moving files from my local harddrive to a NFS share
using a Python script.
The script is used to run a model which produces large (~500MB) binary
output files. The model itself is a Fortran program, and I call it from
my script using the line
os.spawnlp(os.P_WAI
Supervisor does not work with Python2.6. While running with the test
configuration, supervisord prints traceback:
2009-03-17 15:12:31,927 CRIT Traceback (most recent call last):
File
"/usr/local/Python-2.6/lib/python2.6/site-packages/supervisor-3.0a6-py2.6.egg/supervisor/xmlrpc.py",
line 367,
"Laszlo Nagy" wrote in message
news:mailman.2032.1237300298.11746.python-l...@python.org...
> This method is called after the connection has been closed. Is is possible
> that somehow
> the file handles are leaking?
If I understand correctly, you call shutdown() but not close() in
response t
On Mar 17, 6:39 am, Kay Schluehr wrote:
> On 16 Mrz., 23:06, Mudcat wrote:
>
>
>
> > On Mar 13, 8:37 pm, Christian Heimes wrote:
>
> > > Chris Rebert wrote:
> > > > Haven't used it, butPythonfor .NET sounds like it might be what you
> > > > want:http://pythonnet.sourceforge.net/
>
> > > I've don
1 - 100 of 139 matches
Mail list logo