rusi wrote:
> On Feb 12, 10:51 am, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
> > On Sun, 12 Feb 2012 15:38:37 +1100, Chris Angelico wrote:
> > > Everything that displays text to a human needs to translate bytes into
> > > glyphs, and the usual way to do this conceptually is to go v
Anatoli Hristov wrote:
> Hi everyone,
>
> I`m totaly new in python and trying to figure out - how to write a list to a
> file with a newline at the end of each object.
> I tried alot of combinations :) like:
> users = ['toli','didi']
> fob=open('c:/Python27/Toli/username','w')
> fob.writelines(
Clark, Kathleen wrote:
> TypeError: sequence item 1: expected string, NoneType found
>
> The error message is referencing line 86 of my code:
>
> ws.cell(row=row, column=1).value = ','.join([str(ino), fn, ln, sdob])
>
> If I’m understanding this correctly, the code is expecting a string, but
Adam Mercer wrote:
> On Wed, Jan 25, 2012 at 14:04, Terry Reedy wrote:
>
> > If you are not willing to tell Debian Squeeze users to install 2.7, or that
> > they cannot run your program, ask the bug reporter to tell you what version
> > of OpenSSL the system comes with and code it into your pro
Mauricio Martinez Garcia wrote:
> For libxml2, are there any manual. For this library?, i searched on
> google and just find the following URL xmlsoft.org Wich can not find
> any API manual.
>
Did you check under "Reference Manual" at http://xmlsoft.org? That's the
second entry in the Main Me
M.Pekala wrote:
> On Jan 23, 5:00 pm, Jon Clements wrote:
> > On Jan 23, 9:48 pm, "M.Pekala" wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Hello, I am having some trouble with a serial stream on a project I am
> > > working on. I have an external board that is attached to a set of
> > > sens
Νικόλαος Κούρας wrote:
> On 10 Ιαν, 03:11, Ian Kelly wrote:
> > 2012/1/9 Íéêüëáïò Êïýñáò :
> >
> > > if the MySQL query was:
> >
> > > cursor.execute( '''SELECT host, hits, agent, date FROM visitors WHERE pin
> > > =
> > > %s ORDER BY date DESC''', pin )
> >
> > > can you help me imagine how th
Chris Angelico wrote:
> On Tue, Jan 10, 2012 at 9:35 AM, Dominic Binks wrote:
> > The address database can have multiple names for the same IP address so
> > gethostbyaddr returns a list - [0] being the first item in the list (and
> > usually considered the canonical name)
>
> Point to note: Th
Jérôme wrote:
> Tue, 20 Dec 2011 11:17:15 -0800 (PST)
> Yigit Turgut a écrit:
>
> > Hi all,
> >
> > I have a text file containing such data ;
> >
> > ABC
> > ---
> > -2.0100e-018.000e-028.000e-0
Saqib Ali wrote:
>
> I want to write a pexpect script that simply cd's into a directory ("~/
> install") and then runs a command from there. It should be so easy.
> But even my cd command is failing. Can't figure out what the problem
> is. The command line prompt is "[my machine name here] % "
>
gene heskett wrote:
> On Monday, December 12, 2011 12:44:27 PM Chris Angelico did opine:
>
> > On Tue, Dec 13, 2011 at 2:55 AM, Nick Dokos
> wrote:
> > > Terry Reedy wrote:
> > >> calculations are helped by the fact that (a+b) % c == a%c + b%c, so
> &
Jussi Piitulainen wrote:
> Terry Reedy writes:
> > On 12/12/2011 5:59 AM, Jussi Piitulainen wrote:
> >
> > > Past experience in mathematics newsgroups tells me
> > > that some mathematicians do not accept the existence of any remainder
> > > operator at all.
> >
> > Even though they carry hour/
Terry Reedy wrote:
> calculations are helped by the fact that (a+b) % c == a%c + b%c, so
As long as we understand that == here does not mean "equal", only
"congruent modulo c", e.g try a = 13, b = 12, c = 7.
Nick
--
http://mail.python.org/mailman/listinfo/python-list
Nick Dokos wrote:
> There is also orgmode, which has been used for a few books
> (http://orgmode.org ). I know it does HTML and PDF (the latter through
> latex), but I'm not sure about ePub: ISTR somebody actually did ePub for
> his book but I don't remember details.
A
Grant Edwards wrote:
> On 2011-12-09, Miki Tebeka wrote:
> > Greetings,
> >
> > Any recommendations for a book authoring system that supports the following:
> > 1. Code examples (with syntax highlighting and line numbers)
> > 2. Output HTML, PDF, ePub ...
> > 3. Automatic TOC and index
> > 4. Se
Steven D'Aprano wrote:
> On Thu, 01 Dec 2011 00:00:52 -0500, Roy Smith wrote:
>
> > Another possibility is setting your TERM environment variable to
> > something that readline can't support:
> >
> > ~$ TERM=asr33
> > ~$ python
> > Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Ap
Alemu Tadesse wrote:
> Can we use rsplit function on an array or vector of strings ? it works
> for one not for vector
> ...
>
> I have to parse a string and splitting it by spaces. The problem is
> that the string can include substrings comprises by quotations which
> must mantain the spaces.
spintronic wrote:
> Dear friends,
>
> I have a trouble with understanding the following. I have a very short
> script (shown below) which works fine if I "run" step by step (or line
> by line) in Python shell (type the first line/command -> press Enter,
> etc.). I can get all numbers (actually,
David Riley wrote:
> On Oct 23, 2011, at 10:44 PM, aaabb...@hotmail.com wrote:
>
> > exp:
> > os.system('ls -al')
> > #I like to catch return value after this command. 0 or 1,2,3
> > does python support to get "$?"?
> > then I can use something like:
> > If $?==0:
> >
> > ..
19 matches
Mail list logo