>
> > * Reduce the use of the word "buffer" in the emacs documentation.
> > Call it "opened file" or "unsaved document".
>
> As far as I understand the concept of buffer is much much wider than
> of "unsaved document" or "file". Should we call dired buffer as
> "unsaved document"?
>
It is much
I found a solution using sys.displayhook here:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/593cd28e568c32e1/1e0f930e7ac5ebb2?#1e0f930e7ac5ebb2
On Jun 18, 4:24 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 18 Jun 2007 01:45:38 -030
It seems like
x = defaultdict(defaultdict(list))
should do the obvious, but it doesn't. This seems to work
y = defaultdict(lambda: defaultdict(list))
though is a bit uglier.
--
http://mail.python.org/mailman/listinfo/python-list
I need to develop a cross-platform text-mode application. I would like
to do it in Python and I would like to use a mature text-mode library
for the UI stuff.
The obvious choice, I thought, was ncurses. But as far as I can tell,
it is not available for Python on Windows?
Is there a workaround? Or
Hi,
I have been working at this problem, and I think I need a permutation
algorithm that does
the following:
Given a list of elements that are either a character or a character
follows by a number, e.g.
['a', 'b', 'c1', 'd', 'e1', 'f', 'c2', 'x', 'e2']
find all the permutations that are given b
On Jun 19, 2:17 am, Josiah Carlson <[EMAIL PROTECTED]>
wrote:
>
> This link offers a series of links for console
> IO...http://mail.python.org/pipermail/python-list/2005-January/303984.html
>
Thanks.
> Among them is a link to the 'wcurses' module that has been re
On Jun 19, 9:04 am, Ben Finney <[EMAIL PROTECTED]>
wrote:
>
> More precisely, curses doesn't work natively on Windows, regardless of
> whether Python is involved.
>
True. But then: are there other multi-platform console libraries out
there? I want to code to a single API.
On Jun 19, 3:27 pm, Ben Finney <[EMAIL PROTECTED]>
wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> > Just to be more precise: curses is not a requirement, a
> > multi-platform console library with a single API is. So are there
> > alterna
I have found the Phraserate algorithm to extract keyphrases from html
pages and I tried it and it works like a charm.
However the algorithm is integrated in the much bigger iVia library, but I
need something smaller and more practical, so I was wondering if someone
knows of a python implementation
I am using Python to process particle data from a physics simulation.
There are about 15 MB of data associated with each simulation, but
there are many simulations. I read the data from each simulation into
Numpy arrays and do a simple calculation on them that involves a few
eigenvalues of small m
On Jun 20, 12:37 pm, [EMAIL PROTECTED] (Alex Martelli) wrote:
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I have been working at this problem, and I think I need apermutation
> > algorithm that does
> > the following:
>
> > Given a list
On Jun 19, 9:21 pm, Ed <[EMAIL PROTECTED]> wrote:
>
> Have you ever seen an, "Extractmethod," function for emacs? Whereby
> you highlight some lines of code, press a key, and the code is whisked
> into its ownmethod, with the appropriatemethodinvocation left in
>
I am writing a curses application, but the getch() does not seem to
give me all I want. Of course, if I press "d", it returns an ord("d")
and so on. But I want to be able to detect whether alt, shift or ctrl
has been pressed also. Shift is normally covered by returning an
uppercase character instea
I am trying to modify a programming example and I am coming up with
two problems... first is that I can't seem to pass along the
arguments to the external command (I have been able to do that with
the old module and cmd is the command I wish to try) all the output
seems to be returned as one line
On Jun 20, 8:53 pm, Stephen R Laniel <[EMAIL PROTECTED]> wrote:
> Before I ask anything, let me note that this is surely an
> old question that has inspired its share of flame wars; I'm
> new to Python, but not new to how Internet discussions work.
> So if there's a
On Jun 20, 1:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Wed, 20 Jun 2007 12:27:47 -0300, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribió:
>
> > I am trying to modify a programming example and I am coming up with
> > two problems... f
On Jun 20, 1:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Wed, 20 Jun 2007 12:27:47 -0300, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribió:
>
> > I am trying to modify a programming example and I am coming up with
> > two problems... f
On Jun 20, 7:50 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Wed, 20 Jun 2007 20:02:52 -0300, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribió:
>
>
>
>
>
> > On Jun 20, 1:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED
On Jun 21, 1:18 am, [EMAIL PROTECTED] (Thomas Lenarz) wrote:
> Hi all,
>
> I was wondering if there was a python-live-environment available on a
> public web-site similar to the ruby-live-tutorial on
>
> http://tryruby.hobix.com/
>
> I would prefer something which allow
On Jun 21, 12:53 am, Martin Skou <[EMAIL PROTECTED]> wrote:
> The Daily Python-URLhttp://www.pythonware.com/daily/
pythonpapers.org
:)
-T
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
Does anyone know how to make python-mode correctly indent nested lists
and dictionaries. I hate indenting Django url patterns and Zope
Archetypes schemas by hand, because python-mode indents them in
incorrect and ugly way.
Here's how it should be:
StringField('reference',
def f():
a = 12
def g():
global a
if a < 14:
a=13
g()
return a
print f()
This function raises an error. Is there any way to access the a in f()
from inside g().
I could find few past discussions on this subject, I could not find
the simple answer wheth
Hello,
I have a sqlite database table which has a table named "Transmittal".
Before inserting a new record into the database, i'd like to perform
some checking. How do i select all records with certain value (say
"Smith") for a column (say "Last_Name")? Knowing almost nothing about
SQL, i just sel
Thank you Carsten. Problem solved.
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 21, 8:19 pm, walterbyrd <[EMAIL PROTECTED]> wrote:
> Python seems to have a log of ways to do collections of arbitrary
> objects: lists, tuples, dictionaries.
And sets.
> But what if I want a collection
> of non-arbitrary objects?
Then only put the kind of objec
On Jun 21, 8:51 pm, George Sakkis <[EMAIL PROTECTED]> wrote:
> I wonder if there is a (preferably not too-hackish) solution to the
> following introspection problem: given a callable and a number of
> positional and/or keyword arguments, infer what would be the frame's
> l
On Jun 21, 9:00 pm, Robert Hicks <[EMAIL PROTECTED]> wrote:
> Is it good practice to do something like:
>
> try:
> f1 = file('file1')
> f2 = file('file2')
> except:
> # catch the exception
It's bad practice. Because you use a bare
On Jun 21, 8:49 pm, André <[EMAIL PROTECTED]> wrote:
> On Jun 21, 3:00 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On Jun 21, 1:18 am, [EMAIL PROTECTED] (Thomas Lenarz) wrote:
>
> > > Hi all,
>
> > > I
On Jun 21, 1:22 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Wed, 20 Jun 2007 22:28:06 -0300, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribió:
>
>
>
>
>
> > On Jun 20, 7:50 pm, "Gabriel Genellina" <[EMAIL PROTECTE
On Jun 21, 11:54 am, Luis M. González <[EMAIL PROTECTED]> wrote:
> You need to learn sql if you want to deal with databases.
> Don't worry, it's very easy, and here is a very good resource to get
> you up and running in a few minutes:http://www.sqlcourse.com
>
>
Hello,
Another newbie question: How do I know if there is a table with
certain name in a sqlite database? What i'm doing now is just create
the table with that name, if exception occurs, that means the table is
already created. Am i correct? Any better way? Thank you.
kelie
--
http://mail.pytho
On Jun 22, 12:10 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 22 Jun 2007 01:05:36 -0300, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribió:
>
>
>
>
>
> >> >> >> cmd = ["gawk", "-f", &qu
On Jun 22, 12:07 am, Gerhard Häring <[EMAIL PROTECTED]> wrote:
> That approach is ok. If your SQLite library is recent enough (I don't
> know the exact version), you can use "create table if not exists ...".
>
> -- Gerhard
Thanks Gerhard. I'm using sqlite3
Ah, I mistook you for someone who gives a shit.
- You DID see my post on comp.lang.python and
deliberately ignored it.
- You then lied and claimed there was no discussion.
- You then lied and claimed my example merely
duplicated other examples.
- You claimed to be offended by my characteriz
On Jun 22, 2:50 pm, "Kenji Noguchi" <[EMAIL PROTECTED]> wrote:
> something like this? unix tail command does more fancy stuff
> like it waits for timeout, and check if the file is truncated
> or depending on incoming data it sleeps seconds , etc etc.
>
> #!/usr/bin/
I'm writing my own python extension module with the C API. In python
all functions pass arguments by reference, but how can I make use of
this in C? Right now, I am using:
PyArg_ParseTuple(args, "(ii)(ii)", &faceId1, &vertId1, &faceId2,
&vertId2)
I want the to change the faceId's in my function.
) {
edgeId = DLFL::insertEdge( currObj, faceId1, vertId1, faceId2,
vertId2 );
currObj->clearSelected( );
}
return Py_BuildValue("i,(ii)(ii)", edgeId, faceId1, vertId1,
faceId2, vertId2 );
}
This works, but...
Any suggestions if there is a cleaner way?
Thanks!
On Jun 23
In article <[EMAIL PROTECTED]>,
Bjorn Borud <[EMAIL PROTECTED]> wrote:
> [Giorgos Keramidas <[EMAIL PROTECTED]>]
> |
> | Educating the user to avoid confusion in this and other cases of made
> | up, 'user-friendly' descriptions is not a good enough a
In article <[EMAIL PROTECTED]>,
Twisted <[EMAIL PROTECTED]> wrote:
[ snip ]
> I find these anecdotes liberally sprinkled into this thread frankly
> unbelievable. Either they are not using the same software I understand
> "emacs" to refer to,
I think this may
In article <[EMAIL PROTECTED]>, David Kastrup <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] writes:
[ snip ]
> It appears that you still have not bothered educating yourself, years
> after you were pretty much universally derided in comp.text.tex for
> making a spect
On 25 Jun., 00:52, Robert Uhl <[EMAIL PROTECTED]> wrote:
You guys are all in the wrong newsgroups. Please stay in comp.emacs
when discussing Emacs. Don't cross post.
Not everyone is interested in Emacs discussions.
Thanks.
Follow-up set to comp.emacs.
--
http://mail.python.
This wiki page suggests using a chroot jail to sandbox Python, but
wouldn't running something like this in your sandboxed Python instance
still break you out of the chroot jail:
os.execle ('/usr/bin/python','-c','import os; os.execlp("/bin/sh")',
{})
or maybe:
del os.environ['LD_PRELOAD']
os.
On Jun 25, 1:21 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> This wiki page suggests using a chroot jail to sandbox Python, but
> wouldn't running something like this in your sandboxed Python instance
> still break you out of the chroot jail:
>
> os.ex
On Jun 25, 1:43 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] schrieb:
>
> > This wiki page suggests using a chroot jail to sandbox Python, but
> > wouldn't running something like this in your sandboxed Python instance
>
On Jun 23, 6:46 am, SPE - Stani's Python Editor
<[EMAIL PROTECTED]> wrote:
> On Jun 23, 5:35 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
> > En Fri, 22 Jun 2007 10:08:49 -0300, [EMAIL PROTECTED]
> > <[EMAIL PROTECT
On Jun 25, 1:43 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] schrieb:
>
> > This wiki page suggests using a chroot jail to sandbox Python, but
> > wouldn't running something like this in your sandboxed Python instance
>
Going to this URL:
http://svn.python.org/view/
It gives me an error:
Unable to connect
Firefox can't establish a connection to the server at svn.python.org.
And using SVN as so:
$ svn checkout http://svn.python.org/projects/python/trunk/ ~/
python_work/
svn: PROPFIND request failed on '/projects
In article <[EMAIL PROTECTED]>,
Twisted <[EMAIL PROTECTED]> wrote:
> On Jun 23, 10:36 am, Martin Gregorie <[EMAIL PROTECTED]>
> wrote:
[ snip ]
> * The operating system where you can do powerful stuff with a command
> line and a script or two, but can also g
In article <[EMAIL PROTECTED]>,
Twisted <[EMAIL PROTECTED]> wrote:
> On Jun 23, 2:04 am, Robert Uhl <[EMAIL PROTECTED]> wrote:
[ snip ]
> Apparently because you find the switch second nature, despite its not
> being the obvious (which is ctrl-tab, to switch betwee
In article <[EMAIL PROTECTED]>,
Twisted <[EMAIL PROTECTED]> wrote:
> On Jun 24, 7:19 pm, Robert Uhl <[EMAIL PROTECTED]> wrote:
[ snip ]
> > emacs has continued doing its own thing, mostly because that thing is
> > better. The CUA standards (there exists an ema
In article <[EMAIL PROTECTED]>,
Bjorn Borud <[EMAIL PROTECTED]> wrote:
[ snip ]
> a lot of IDE's are getting quite good and you don't have to mouse
> around all that much. I think the main reason I stick to Emacs is
> because I use it for a wider range o
On Jun 25, 4:12 pm, Bjoern Schliessmann wrote:
> [EMAIL PROTECTED] wrote:
> > I followed up with my ISP. Here's the answer I got:
>
> > The os.exec call prepends the chroot directory to the absolute
> > path, but does NOT provide chroot for the child process.
>
On Jun 25, 11:58 am, Paul Boddie <[EMAIL PROTECTED]> wrote:
> On 25 Jun, 16:48, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
>
> > I followed up with my ISP. Here's the answer I got:
>
> > The os.exec call prepends the chroot directory
HI
I'm currently using Python. I find that a instance variable must
confined with self,
for example:
class a:
def __init__(self):
self.aa=10
def bb(self):
print self.aa # See .if in c++,I could use aa to change that
variable
That's a big inconvenience in coding ,especia
In article <[EMAIL PROTECTED]>,
Twisted <[EMAIL PROTECTED]> wrote:
> On Jun 25, 5:32 pm, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > To me it's similar to "memorizing" a phone number by dialing
> > it enough times that it makes its way into
In article <[EMAIL PROTECTED]>,
Twisted <[EMAIL PROTECTED]> wrote:
[ snip ]
> I'm wondering if getting your head around unix arcana is also
> dependent on an iffy "knack" where you "get it" and somehow know where
> to look for documentation and prob
In article <[EMAIL PROTECTED]>,
Gian Uberto Lauri <[EMAIL PROTECTED]> wrote:
> >>>>> "n" == nebulous99 <[EMAIL PROTECTED]> writes:
>
> n> On Jun 22, 6:32 pm, Cor Gest <[EMAIL PROTECTED]> wrote:
> >> > HOW IN THE BLOODY
Stephen R Laniel wrote:
> On Thu, Jun 28, 2007 at 09:08:16AM +0200, Bruno Desthuilliers wrote:
> > You said ?
>
> I could link again to Mark-Jason Dominus, who writes that
> people often make the following inference:
>
> 1) C is strongly typed.
> 2) C's typing sucks.
> 3) Hence strong typing sucks.
Tcl_InitNotifier () from /usr/lib/libtcl8.4.so
#3 0x4e9f92db in start_thread () from /lib/libpthread.so.0
#4 0x4e95312e in clone () from /lib/libc.so.6
Thread 2 (Thread 133323664 (LWP 20964)):
#0 0x009e2402 in __kernel_vsyscall ()
#1 0x4e9ff14e in [EMAIL PROTECTED] () from /lib/libpthre
On Jun 18, 1:56 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>,
>
> [EMAIL PROTECTED] wrote:
> > It seems like
>
> > x = defaultdict(defaultdict(list))
>
> > should do the obvious, but it doesn't
On May 9, 11:41 am, Steven Bethard <[EMAIL PROTECTED]> wrote:
> $ python -m timeit -s "s = set('abcdef')" "x = s.pop(); s.add(x)"
It's interesting that that's faster. I'd be hesitant to use that in a
real program because it's so un
"DavidM" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> So if someone can point me in the direction of an algebraic expressions
> library that can simplify expression trees and weed out redundancies, that
> would be awesome.
half-joking:
Maxima http
http://kokonis.aygoystinos.googlepages.com/
http://theologos.kokkonis.googlepages.com/
--
http://mail.python.org/mailman/listinfo/python-list
kimiraikkonen wrote:
> Hi,
> For experienced with Pyhton users, which developing software and
> enviroment would you suggest for Pyhton programming? Compiler+Editor
> +Debugger.
I use standard CPython bytecode compiler/virtual machine, the Vim
editor, and standard pdb for debugging. Vim is nice a
I am trying to use freeze to create a single binary executable for one
of my program. When I run freeze, it runs fine with the following
modules. These modules are available in the dyn-load directory and I
can import them from the python interpreter.
Warning: unknown modules remain: _bisect _heapq
On Jul 2, 1:12 pm, 7stud <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can someone explain what a broken pipe is? The following produces a
> broken pipe error:
>
> --
> import subprocess as sub
>
> p = sub.Popen(["ls", "-al", "../&q
On Jun 27, 6:41 am, andrea <[EMAIL PROTECTED]> wrote:
> I would like to have a useful rappresentation of infinite, is there
> already something??
>
> I was thinking to something like this
>
> class Inf(int):
> """numero infinito&quo
the right person for the job. If
so, send an email introducing yourself to [EMAIL PROTECTED], being sure to
include your resume and an answer to the programming challenge at the
bottom.
Required:
* 5+ years of web development experience
* 3+ years of writing production-level code with a dynami
Hi,
My program has the following code to transfer a binary file
f = open(pathanme+filename,'rb')
print "start transfer"
self.fthHandle.storbinary('STOR '+filename, f)
How can I do an ASCII file transfer??
-Ted
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to use freeze to create a single binary executable for one
of my program. When I run freeze, it runs fine with the following
modules. These modules are available in the dyn-load directory and I
can import them from the python interpreter.
Warning: unknown modules remain: _bisect _heapq
On Jul 2, 3:02 pm, Brian Blais <[EMAIL PROTECTED]> wrote:
> On Jun 30, 2007, at 2:31 AM, felix seltzer wrote:
>
> > Does any one know of a good matlab interface?
> > I would just use scipy or numpy, but i also need to use
> > the matlab neural network function
Hi
I'm considering learning Python...but with the python 3000 comming
very soon, is it worth waiting for?? I know that the old style of
coding python will run parallel with the new, but I mean, its going to
come to an end eventually.
What do you think??
Chris
--
http://mail.python.org/mailman/li
On Jul 4, 2:03 pm, [EMAIL PROTECTED] (Alex Martelli) wrote:
> Frank Swarbrick <[EMAIL PROTECTED]> wrote:
> > Why might one choose to use ActivePython instead of using the free CPython?
>
> I believe ActivePython is also free, and it's packaged up differently
>
Thorsten Kampe wrote:
> Hi,
>
> I've already sent this to the Komodo mailing list (which seemed to me
> the more appropriate place) but unfortunately I got no response.
>
> I'd like to build a Python GUI app. Neither Tkinter nor Wxpython nor
> PyQT are actually what I want (because the lack of GUI
On Jul 4, 2:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Thorsten Kampe wrote:
> > Hi,
>
> > I've already sent this to the Komodo mailing list (which seemed to me
> > the more appropriate place) but unfortunately I got no response.
>
I'm looking at the source for the module sre_compile.py and it does
this import:
import _sre
But I can't find a file related to _sre anywhere. Where is it? And
more generally, how does one find the location of a built in module?
Thanks,
Greg
--
http://mail.python.org/mailman/listinfo/python
On Jul 4, 2:51 pm, walterbyrd <[EMAIL PROTECTED]> wrote:
> My guess is that it would, but I can find no mention of python in the
> intuit developers site. I can find some references to PHP and Perl,
> but no Python.
>
> I looks to me like Intuit develops have a strong
Hi,
I am a newbie to python and pypy. I choose to read pypy source code
to learn about python and python library. But when I try to run pypy
in debug mode in pydev, I got the following problem:
/// error message begin
pydev debugger
Traceback (most recent call last):
File "F:\TOOLS\eclipse\plu
i made MyThread(Thread)
when isDaemon() == 0:
everything works
when isDaemon() == 1:
nothing works
why???
--
http://mail.python.org/mailman/listinfo/python-list
As far as I understand the issue, any Python process has a sort of
"main" thread. When the main thread exits, the Python process will
exit
if there are only daemon threads around. If there are any non-daemon
threads, the Python process will only exit after those threads are
finished.
Or, as the doc
thanx benjamin )
no more questions
--
http://mail.python.org/mailman/listinfo/python-list
Kay Schluehr wrote:
> On Jul 3, 8:12 pm, [EMAIL PROTECTED] (Cameron Laird) wrote:
>
> > Python is simply easier than C++; you might
> > well find that a debugger, for example, doesn't feel as essential
> > as it is for you with C++.
>
> That's what I love m
greg wrote:
> [EMAIL PROTECTED] wrote:
>
> > wxWidgets will give you native looking apps on both Linux and Windows
>
> Well, maybe. There's more to getting a native feel than
> just using the right widgets. I once saw a Qt-based app on
> MacOSX that had tiny littl
Hi everyone
We are making a disk less workstation environment which support
python.We use PXE DHCP TFTP to boot up disk less system.There are
three choices as i know to set up a python environment for diskless
system.
First Solution, Use a initrd image with everything inside as the root
file sy
Learn Oracle Database Administration in 10 Minutes. No kidding. Check
it yourself,
http://www.takveen.com
Only good analogy makes complex concepts simple!
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 2, 7:07 pm, Adonis Vargas <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] wrote:
> > Hi,
>
> > My program has the following code to transfer a binary file
>
> > f = open(pathanme+filename,'rb')
> > print "start transfer&q
On Jul 2, 7:12 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Jul 3, 9:02 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > My program has the following code to transfer a binary file
>
> > f = open(patha
Hi,
I'm trying to write a ftp in python to send files to my webserverr.
Curtly I will change the directory to the folder name, down load the
file, then do a chnag dir ..\ to go back to the root diretory, chnag
the directory, save the file, do a ../.
Instad of going back one directory by doing ..\
Hi to all, I have a little problem with unicode handling under Python.
I have this code
s = u'A unicode string with this damn apostrophe \x2019'
outf = codecs.open('filename.txt', 'w', 'iso-8859-15')
outf.write(s)
what I obtain is a UnicodeEncodeError that says me that character \x2019
maps to
> No it shouldn't because \x2019 is a "right single quotation mark" and not
> an apostrophe.
>
> Ciao,
> Marc 'BlackJack' Rintsch
I agree, but the problem is much subtle. I have coverted a text from
iso-8859-1 to utf-8 and the codecs have translated \x27 ( the iso
apostrophe ) to \xe28099
>
> What software did you use to make that so? The Python codec certainly
> never would do such a thing.
>
> Are you sure it was latin-1 and \x27, and not windows-1252 and \x92?
>
> Regards,
> Martin
you're right...the source of text are html pages and obviously webmasters
have poor knowledge o
On Jul 8, 12:59?pm, Neal Becker <[EMAIL PROTECTED]> wrote:
> Just a little python humor:
>
> http://www.amazon.com/Vitamin-Shoppe-Python-Extra-tablets/dp/B00012NJ...
Aren't there any female Python programmers?
--
http://mail.python.org/mailman/listinfo/python-list
First you'll need a computer interface to your robot. Lego Mindstorm,
for example, comes with ways to program the onboard CPU. Other
standard robotic toolkits will also come with some kind of interface,
which may or may not have Python bindings.
Cheers,
-T
On Jul 9, 10:06 am, [EMAIL PROT
I am having trouble contolling vim with subprocess on a windows
machine. It appears that vim comes up on the machine all right and it
sometimes looks like it is doing the searchs what I am asking it to do
but when I am asking it to load a file it doesn't do anything. Is
there something I nee
On Jul 9, 5:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I am having trouble contolling vim with subprocess on a windows
> > machine. It appears that vim comes up on the machine all right and it
> >
On Jul 9, 7:38 am, Beliavsky <[EMAIL PROTECTED]> wrote:
> How can I replace multiple consecutive spaces in a file with a single
> character (usually a space, but maybe a comma if converting to a CSV
> file)? Ideally, the Python program would not compress consecutive
> space
I have a python fastcgi app. Is there any library in python that I can use
to send a FASTCGI request to the fastcgi app?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Thank you for your cfomment, also I forgot about the case issue, yes
my web server is unix, not windows
On Jul 9, 4:12 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Sat, 07 Jul 2007 09:41:59 -0300, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribi
On Jul 9, 4:08 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote:
> I've spent some time playing with both, and while wxPython is nice,
> Tkinter just seems to fit my head better, and with appropriate selection
> of widgets and interface design, seems to yield up perfectly usable G
On Jul 9, 11:06 am, Josiah Carlson <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] wrote:
> > I am having trouble contolling vim with subprocess on a windows
> > machine. It appears that vim comes up on the machine all right and it
> > sometimes looks like it is
2601 - 2700 of 4914 matches
Mail list logo