On Jan 12, 7:13 am, mike wrote:
> On Jan 12, 12:28 am, Steven D'Aprano
>
>
>
>
>
>
>
>
> +comp.lang.pyt...@pearwood.info> wrote:
> > On Wed, 11 Jan 2012 05:54:29 -0800, mike wrote:
> > > I did some more digging and found that our class imports a "yacc.py"
> > > that uses
>
> > > import re, types,
Does anyone have any inkling on how to fix this bug?
http://code.google.com/p/logutils/issues/detail?id=3
Or any good pointers on how to find out whats wrong and how to fix it
would be nice.
Thanks,
--Ram
--
http://mail.python.org/mailman/listinfo/python-list
Am 12.01.2012 06:23 schrieb Kushal Kumaran:
On Wed, Jan 4, 2012 at 8:05 PM, Mihai Badoiu wrote:
is there a way to pipe directly into a preallocated buffer?
(subprocessing.pipe.stdout)
Does io.StringIO fit your needs?
http://docs.python.org/py3k/library/io.html#io.StringIO
Probably not.
On Jan 12, 12:28 am, Steven D'Aprano wrote:
> On Wed, 11 Jan 2012 05:54:29 -0800, mike wrote:
> > I did some more digging and found that our class imports a "yacc.py"
> > that uses
>
> > import re, types, sys, cStringIO, hashlib, os.path
>
> > so it has hashlib.
>
> > yacc.py seems to be an old ve
On Wed, Jan 4, 2012 at 8:05 PM, Mihai Badoiu wrote:
> is there a way to pipe directly into a preallocated buffer?
> (subprocessing.pipe.stdout)
>
Does io.StringIO fit your needs?
http://docs.python.org/py3k/library/io.html#io.StringIO
--
regards,
kushal
--
http://mail.python.org/mailman/list
On Wed, Jan 11, 2012 at 23:01, Tamer Higazi wrote:
> Use Linux!
> Specially Gentoo Linux!
Not a useful answer.
--
http://mail.python.org/mailman/listinfo/python-list
Use Linux!
Specially Gentoo Linux!
Tamer
Am 09.01.2012 10:18, schrieb 水静流深:
> in my xp ,python26,easy_install installed.
> i want to install lxml in window xp
> 1.c:\python26\scripts\easy_install lxml
>
> what i get is:
>
> Reading http://codespeak.net/lxml
> Best match: lxml 2.3.3
> Dow
On Jan 11, 9:34 pm, Roy Smith wrote:
> What I would do is log to syslog (logging.handlers.SysLogHandler) and
> let syslog worry about rotating log files. Why reinvent the wheel?
Syslog is fine for an application run by an administrator, but isn't
an option for a user.
--
http://mail.python.org/
On 1/10/2012 22:42, Alec Taylor wrote:
> Use size_t
>
> http://en.wikipedia.org/wiki/C_data_types#Size_and_pointer_difference_types
Um, perhaps you misunderstand. I don't control the C API, I'm calling a
function that just exists in libc (unless I do what I said and write a
wrapper). If you're sayi
On 1/11/2012 19:37, alex23 wrote:
> On Jan 11, 11:26 am, Evan Driscoll wrote:
>> (For a concrete idea of a use case, suppose that it did not
>> directly support the --help option and I wanted to write code that took
>> its place.)
> That's a pretty weird definition of 'concrete use case', but anyw
In article
<7dabf43f-3814-47b6-966a-1439f5654...@i6g2000vbk.googlegroups.com>,
Matthew Pounsett wrote:
> First, I'd like to be able to permit users to do more typical log
> rotation, based on their OS's log rotation handler, rather than
> rotating logs from inside an application. This is usual
I'm trying to figure out a couple of things with the logging module,
and I'm hoping someone can provide some pointers. I've read through
the module docs on python.org, the basic and advanced tutorials, and
the cookbook post, but a couple of things still elude me.
First, I'd like to be able to per
On Jan 11, 11:26 am, Evan Driscoll wrote:
> (For a concrete idea of a use case, suppose that it did not
> directly support the --help option and I wanted to write code that took
> its place.)
That's a pretty weird definition of 'concrete use case', but anyway...
> This means that either I need t
Open Office suite software users are most non-programmers.
Software to be used by non-programmers are different from most free python
packages shared by programmers.
--
http://mail.python.org/mailman/listinfo/python-list
HoneyMonster於 2012年1月12日星期四UTC+8上午5時09分13秒寫道:
> On Wed, 11 Jan 2012 11:39:48 +, HoneyMonster wrote:
>
> > On Tue, 10 Jan 2012 18:17:48 -0700, Ian Kelly wrote:
> >
> >> On Tue, Jan 10, 2012 at 4:44 PM, HoneyMonster
> >> wrote:
> >>> Hi,
> >>>
> >>> I'm new to Python and recently completed my
> Hello All,
>
> I just made something pretty simple that I intend to use while creating
> database tables. It is still in the basic form, and much needs to be added.
> However, I use introspection to make it a bit easier and less work on the
> user.
>
> I would want my code to be reviewed by this
On Wed, 11 Jan 2012 05:54:29 -0800, mike wrote:
> I did some more digging and found that our class imports a "yacc.py"
> that uses
>
> import re, types, sys, cStringIO, hashlib, os.path
>
> so it has hashlib.
>
> yacc.py seems to be an old version 1.3 ( I found 2.3 -->).
>
> Reading about hash
Terry Reedy wrote
>
> On 1/11/2012 8:50 AM, Mateusz Loskot wrote:
>> Unfortunately, this FAQ is either old or incomplete thus incorrect.
>
> If you have a suggested change to the current text, please submit it to
> the tracker at bugs.python.org
>
Yes, this is quite obvious procedure to me, b
On Jan 10, 6:37 am, Νικόλαος Κούρας wrote:
> On 10 Ιαν, 12:57, Thomas Rachel
>
>
>
>
>
>
>
>
> a470-7603bd3aa...@spamschutz.glglgl.de> wrote:
> > Am 10.01.2012 10:02 schrieb Νικόλαος Κούρας:
>
> > > ---
> > > | HOST | HITS | AGENT | DATE |
> >
mixolydian wrote:
>I want to get into Python progamming for both local database applications and
>dynamic web pages. Maybe some Q&D scripts.
>There is a ton of excellent language books.
>
>I have downloaded and installed 2.7.2 and got it working by pasting samples
>into IDLE, and uploading to my
On Wed, Jan 11, 2012 at 6:35 PM, Martin Manns wrote:
> or in pyspread (GPL, my own effort)
>
> http://manns.github.com/pyspread/
>
Checking this out now. Do you have text boxes? Cause maybe I will add
some ... cool!
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
I just made something pretty simple that I intend to use while creating
database tables. It is still in the basic form, and much needs to be added.
However, I use introspection to make it a bit easier and less work on the
user.
I would want my code to be reviewed by this great group. I
On Tue, 10 Jan 2012 18:43:09 -0300
Sean Wolfe wrote:
> Has there been any talk of doing another similar office suite, or
> maybe just writer + spreadsheet, in a better language eg python? I
> expect it's a huge undertaking but ... thought I'd ask around at
> least.
If you are looking for Python
Hello All,I'm developing an app which stores the data in file system database. The data in my case consists of large python objects, mostly dicts, containing texts and numbers. The easiest way to dump and load them would be pickle, but I have a problem with it: I want to keep the data in version co
On Wed, 11 Jan 2012 11:39:48 +, HoneyMonster wrote:
> On Tue, 10 Jan 2012 18:17:48 -0700, Ian Kelly wrote:
>
>> On Tue, Jan 10, 2012 at 4:44 PM, HoneyMonster
>> wrote:
>>> Hi,
>>>
>>> I'm new to Python and recently completed my first project. I used
>>> wxPython with wxGlade to generate the
Thanks.
Regards,
Janus
On Wed, Jan 11, 2012 at 7:12 PM, Dennis Lee Bieber wrote:
> On Wed, 11 Jan 2012 09:57:43 +0200, Emeka wrote:
>
>
> >_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL
> >syntax; check the manual that corresponds to your MySQL server version for
> >t
Thank you All for the detailed examples.
I tried them all in IDLE and i finally understood them.
Thanks for your patience with me until i understand!
2012/1/10 Nick Dokos
> Νικόλαος Κούρας wrote:
>
> > On 10 Ιαν, 03:11, Ian Kelly wrote:
> > > 2012/1/9 Íéêüëáïò Êïýñáò :
> > >
> > > > if the M
On 12-01-08 02:46 PM, patr...@bierans.de wrote:
Thanks for the feedback!
You're welcome.
D'Arcy wrote: [code examples]
But I will keep some of my underscores for "private" attributes and methods.
And I googled: "dim" was basic. I know too many languages and start mixing
the keywords - shame
On 1/11/2012 8:50 AM, Mateusz Loskot wrote:
Unfortunately, this FAQ is either old or incomplete thus incorrect.
If you have a suggested change to the current text, please submit it to
the tracker at bugs.python.org
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list
On 1/11/2012 6:19 AM, mike wrote:
Hi,
We are running are running Python program on Redhat 5.5.
When executing our program we get the following error ( see below).
Any ideas what this is due to?
br,
//mike
/pysibelius/lib/common/
DataTypes.py
Overwriten ...
ERROR:root:code for hash md5 wa
On Wednesday, January 11, 2012 11:20:19 AM UTC-6, Ian wrote:
>
> Second, I believe that passage is not referring to the contextmanager
> decorator specifically, but more generally to the changes that were
> made to allow generators to yield from within a try-finally construct
> (previously this wo
On Wed, Jan 11, 2012 at 8:45 AM, wrote:
> However, then I read the following paragraph from PEP-343:
>
> Note that we're not guaranteeing that the finally-clause is
> executed immediately after the generator object becomes unused,
> even though this is how it will work in CPython. This
On 1/11/12 3:45 PM, joha...@gmail.com wrote:
I'm trying to write a context manager to handle database connections, under the
principle that I should not rely on CPython's reference-counting semantics to
clean up scarce resources, like connections.
I wrote:
@contexlib.contextmanager
def ensure
On 2012-01-11, joha...@gmail.com wrote:
> That suggests that I cannot rely on the
> contextlib.contextmanager decorator to ensure that the
> connection is closed and would have to write my own object with
> __enter__ and __exit__ methods to guarantee this.
contextmanager wraps your generator in a
I'm trying to write a context manager to handle database connections, under the
principle that I should not rely on CPython's reference-counting semantics to
clean up scarce resources, like connections.
I wrote:
@contexlib.contextmanager
def ensure_connection(con=None):
con_created = False
Hello, I am using psycopg2 in windows app, example:
import psycopg2
import psycopg2.extras
self.con = psycopg2.connect("dbname= host= user= password= port=");
self.cur = self.con.cursor(cursor_factory=psycopg2.extras.DictCursor)
SELECT = "select something"
self.cur.execute(SELECT)
for row in self
On Tue, Jan 10, 2012 at 8:25 PM, Sebastian Rooks
wrote:
> On Mon, 9 Jan 2012 00:55:22 -0300, Sean Wolfe
> wrote:
>
>>kindle? ipad? tablet?
>
> I'm interested in books, not files ...
> (seriously, now ... I don't have any of those devices)
>
>>also there is python programming for the absolute begi
On 01/11/2012 03:45 PM, Antoon Pardon wrote:
On 01/11/2012 02:57 PM, Peter Otten wrote:
Antoon Pardon wrote:
I have an import problem I can't figure out.
I am using python 2.6.6 on a debian box
In one directory (pylib) I have a file misc.py and
the file testutil.py.
from misc import Rec
On 01/11/2012 02:57 PM, Peter Otten wrote:
Antoon Pardon wrote:
I have an import problem I can't figure out.
I am using python 2.6.6 on a debian box
In one directory (pylib) I have a file misc.py and
the file testutil.py.
from misc import Rec
ImportError: cannot import nam
Antoon Pardon wrote:
> I have an import problem I can't figure out.
> I am using python 2.6.6 on a debian box
>
> In one directory (pylib) I have a file misc.py and
> the file testutil.py.
> from misc import Rec
> ImportError: cannot import name Rec
>
> Why can I import Rec from misc in te
Hi,
I have been trying to figure out a reliable way to determine
incomplete Python script
input using Python C API. (Apology if it is OT here, I'm not sure where my post
belongs, perhaps to cplusplus-sig list.)
Apparently, most pointers lead to the Python FAQ [1] question:
How do I tell "incomple
On 01/11/2012 08:21 AM, Antoon Pardon wrote:
I have an import problem I can't figure out.
I am using python 2.6.6 on a debian box
In one directory (pylib) I have a file misc.py and
the file testutil.py.
testutil.py --
print "in", __name__
from misc imp
I have an import problem I can't figure out.
I am using python 2.6.6 on a debian box
In one directory (pylib) I have a file misc.py and
the file testutil.py.
testutil.py --
print "in", __name__
from misc import Rec
-
Paul Rudin, 11.01.2012 11:17:
> Stefan Behnel writes:
>> OOo has been fully scriptable in Python for ages. It even comes with an
>> embedded Python runtime for that purpose [...]
>
> I have dabbled with PyUNO in the past. One issue is that the api seems
> rather unpythonic (to me, at least).
Sure
Indeed, on Windows NT the file system encoding should not be mbcs, since it
creates UnicodeEncodeErrors on perfectly valid file names.
--
http://mail.python.org/mailman/listinfo/python-list
On 01/11/2012 06:27 AM, pyscrip...@gmail.com wrote:
Maybe the example of this question can be added to the issue 13785 as a proof
that compile fails on valid file names.
But I think the real issue is why on modern Windows systems the file system
encoding is mbcs. Shouldn't it be utf-16?
Depe
On Tue, 10 Jan 2012 18:17:48 -0700, Ian Kelly wrote:
> On Tue, Jan 10, 2012 at 4:44 PM, HoneyMonster
> wrote:
>> Hi,
>>
>> I'm new to Python and recently completed my first project. I used
>> wxPython with wxGlade to generate the GUI bits.The application seems to
>> work well, but I am entirely s
Le 11/01/2012 12:19, mike a écrit :
Hi,
We are running are running Python program on Redhat 5.5.
When executing our program we get the following error ( see below).
Any ideas what this is due to?
On my computer hashlib has "md5" :
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.
On Wednesday, January 11, 2012 5:50:51 AM UTC+2, Terry Reedy wrote:
> On 1/10/2012 3:08 AM, Terry Reedy wrote:
> Is this a filename that could be an actual, valid filename on your system?
Yes it is. open works on that file.
> Good question. I believe this holdover from 2.x should be deleted.
>
Hi,
We are running are running Python program on Redhat 5.5.
When executing our program we get the following error ( see below).
Any ideas what this is due to?
br,
//mike
/pysibelius/lib/common/
DataTypes.py
Overwriten ...
ERROR:root:code for hash md5 was not found.
Traceback (most recent cal
Stefan Behnel writes:
> OOo has been fully scriptable in Python for ages. It even comes with an
> embedded Python runtime for that purpose (at least on
> non-package-management systems like Windows). So, Python is actually a
> standard component in all installations, whereas Java is not, and is
ANNOUNCING
eGenix.com mx Base Distribution
Version 3.2.2 for Python 2.4 - 2.7
Open Source Python extensions providing
important and useful services
On 11 jan, 01:56, Terry Reedy wrote:
> On 1/10/2012 8:43 AM, jmfauth wrote:
>
> ...
>
> mbcs encodes according to the current codepage. Only the chinese
> codepage(s) can encode the chinese char. So the unicode error is correct
> and 2.7 has a bug in that it is doing "errors='replace'" when it
> s
On 11 jan, 01:56, Terry Reedy wrote:
> On 1/10/2012 8:43 AM, jmfauth wrote:
>
>
>
> > D:\>c:\python32\python.exe
> > Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit
> > (Intel)] on win
> > 32
> > Type "help", "copyright", "credits" or "license" for more information.
> '\u5de5
Sean Wolfe, 10.01.2012 22:43:
> I'm a somewhat-satisfied openoffice.org user. I mean it works, but if
> it weren't in Java I'd be doing some of my own tweaking. But since
> it's in Java I stay away... no likey.
It's been in C++ ever since the old StarOffice days, others have commented
on that alre
On Wed, Jan 11, 2012 at 6:57 PM, Emeka wrote:
> CREATE TABLE AddressTables ( AddressTables_id int (9) unsigned
> primary key auto_increment not null, city_name char(40) , state_name
> varchar, street_number int, country_name varchar, street_name char(40) ,
> user_name char(40) references user
Hello All,
I got the below error why trying to create tables of the fly.
for item in ['CREATE TABLE AddressTables ( AddressTables_id int (9)
unsigned primary key auto_increment not null, city_name char(40) ,
state_name varchar, street_number int, country_name varchar,
street_name char(40) ,
57 matches
Mail list logo