On Dec 5, 6:21 pm, "Daniel Fetchinson" <[EMAIL PROTECTED]>
wrote:
> Hi folks,
>
> The story of the explicit self in method definitions has been
> discussed to death and we all know it will stay. However, Guido
> himself acknowledged that an alternative syntax makes perfect sense
> and having both (
In message
<[EMAIL PROTECTED]>, Istvan
Albert wrote:
> Originally, like many others here I said YIKES! but on a second read,
> it is not that bad. It actually grows on you.
>
> After looking at it one more time I found it neat, very concise
> without being unreadable.
The key thing is, it's func
In message <[EMAIL PROTECTED]>, Steven D'Aprano
wrote:
> It would have been far more concise ...
Gee, I thought people were complaining it was too cryptic, now it turns out
they were actually complaining because it was too verbose.
--
http://mail.python.org/mailman/listinfo/python-list
In message <[EMAIL PROTECTED]>, Steven D'Aprano
wrote:
> On Fri, 05 Dec 2008 23:28:48 +1300, Lawrence D'Oliveiro wrote:
>
>> In message <[EMAIL PROTECTED]>, Steven D'Aprano
>> wrote:
>>
>>> Since the context has been deleted, it's hard to tell whether the code
>>> as written by Lawrence ...
>>
Josh wrote:
> Can Python be used on one Linux machine to drive another Linux machine
> through SSH? I am currently running Putty on my XP box to run tests on a
> Linux box. I need to automate these tests and thought it would be fun to
> do so from a Linux VMWare Image I recently setup. Does this s
On 6 Dez., 03:21, "Daniel Fetchinson" <[EMAIL PROTECTED]>
wrote:
> Hi folks,
>
> The story of the explicit self in method definitions has been
> discussed to death and we all know it will stay. However, Guido
> himself acknowledged that an alternative syntax makes perfect sense
> and having both (o
>> Daniel Fetchinson wrote:
>>> http://neopythonic.blogspot.com/2008/10/why-explicit-self-has-to-
> stay.html
>>>
>>> The proposal is to allow this:
>>>
>>> class C:
>>> def self.method( arg ):
>>> self.value = arg
>>> return self.value
>>>
>>> instead of this:
>>>
>>> class C:
On Fri, 05 Dec 2008 20:35:07 -0800, James Stroud wrote:
> Daniel Fetchinson wrote:
>> http://neopythonic.blogspot.com/2008/10/why-explicit-self-has-to-
stay.html
>>
>> The proposal is to allow this:
>>
>> class C:
>> def self.method( arg ):
>> self.value = arg
>> return self.
I'm trying to safely rename a file without over-writing any existing
files, and I've run into a problem with file locks. Here's a naive way of
renaming without over-writing:
import os
oldname = "ham.txt"
newname = "spam.txt"
if not os.path.exists(newname):
os.rename(oldname, newname)
It's n
On Sat, 2008-12-06 at 01:27 +0100, "Martin v. Löwis" wrote:
> > For *NIX machines, will 'python' be placed into /usr/bin?
>
> Not by default, no. Just try it and see for yourself.
>
> Regards,
> Martin
Ok. I built the source on an openSUSE 11.0 system. I used 'sudo make
altinstll'. It created
netpork wrote:
> ctx = SSL.Context('sslv3')
> ctx.load_cert_chain('client.pem')
>
> anyone knows a way of loading cert file from memory buffer and not
> from a file?
Yeah, see for example how I did it for Chandler:
http://svn.osafoundation.org/chandler/trunk/chandler/parcels/osaf/framework/certst
Of course I meant
class C:
def me.method(arg):
me.value = arg
James
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Fetchinson wrote:
http://neopythonic.blogspot.com/2008/10/why-explicit-self-has-to-stay.html
The proposal is to allow this:
class C:
def self.method( arg ):
self.value = arg
return self.value
instead of this:
class C:
def method( self, arg ):
self.value
On Fri, 05 Dec 2008 20:19:22 -0800, Istvan Albert wrote:
> On Dec 3, 8:07 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED]
> central.gen.new_zealand> wrote:
>
>
>
> Originally, like many others here I said YIKES! but on a second read, it
> is not that bad. It actually grows on you.
Just like a disfi
alex23 wrote:
On Dec 6, 8:00 am, James Stroud <[EMAIL PROTECTED]> wrote:
I think its a symptom of the language's
maturing, getting popular, and a minority fraction* of the language's
most devout advocates developing an egotism that complements their
python worship in a most unsavory way.
It's
Cambodia TEFL - Gap Year, Travel & Study, Paid Teaching Job
http://www.cambodiatefl.com
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 05 Dec 2008 19:00:12 -0800, alex23 wrote:
> On Dec 6, 8:00 am, James Stroud <[EMAIL PROTECTED]> wrote:
>> I think its a symptom of the language's maturing, getting popular, and
>> a minority fraction* of the language's most devout advocates developing
>> an egotism that complements their p
On Dec 3, 8:07 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED]
central.gen.new_zealand> wrote:
Originally, like many others here I said YIKES! but on a second read,
it is not that bad. It actually grows on you.
After looking at it one more time I found it neat, very concise
without being unreadable.
On Dec 5, 3:41 pm, Christian Heimes <[EMAIL PROTECTED]> wrote:
> I've fixed the read() slowness yesterday. You'll get the fix in the next
> release of Python 3.0 in a couple of weeks.
Does this fix speed up the write() function as well?
A previous poster suggested that in this case the slowdown
On Dec 4, 9:06 pm, illume <[EMAIL PROTECTED]> wrote:
> Cool thanks Benjamin!
>
> Maybe it should be in a wiki as well? So that as people convert their
> modules we can add notes as well.
>
> I started a wiki with that in mind here:http://wiki.python.org/moin/cporting
>
> It'd be good if there was
Steven D'Aprano:
>I think you're talking about mixed spaces/tabs in the one module.<
Right.
>My gut feeling is that you have to have a fairly unusual set of circumstances
>before it causes actual bugs.<
I don't mix tab and spaces in my code, and my editor is able to
convert them, so after the
On Dec 6, 8:00 am, James Stroud <[EMAIL PROTECTED]> wrote:
> I think its a symptom of the language's
> maturing, getting popular, and a minority fraction* of the language's
> most devout advocates developing an egotism that complements their
> python worship in a most unsavory way.
It's hard to se
Hi folks,
The story of the explicit self in method definitions has been
discussed to death and we all know it will stay. However, Guido
himself acknowledged that an alternative syntax makes perfect sense
and having both (old and new) in a future version of python is a
possibility since it maintain
On Dec 6, 12:19 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Fri, 05 Dec 2008 07:44:21 -0800, eric wrote:
> > I like to believe that the less the 'debug pointer' stands in the python
> > code, the fastest the code is (or is potentially)
>
> What's a debug pointer?
>
> Pre-
In message <[EMAIL PROTECTED]>, Aaron Brady wrote:
> On Dec 5, 4:32 am, Lawrence D'Oliveiro <[EMAIL PROTECTED]
> central.gen.new_zealand> wrote:
>
>> The code people write is probably a direct reflection of their thinking
>> processes: For example, slow, plodding, one step at a time, incapable of
[EMAIL PROTECTED] (Aahz) writes:
> In article <[EMAIL PROTECTED]>,
> Ben Finney <[EMAIL PROTECTED]> wrote:
> >James Stroud <[EMAIL PROTECTED]> writes:
> >>
> >> comp.lang.python3k ?
> >
> >The language has undergone an incompatible divide. Hopefully the
> >community need not do the same.
>
> Pis
John Machin wrote:
On Dec 6, 10:35 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
On Fri, 05 Dec 2008 12:00:59 -0700, Joe Strout wrote:
So UTF-16 has an explicit EOF marker within the text?
No, it does not. I don't know what Terry's thinking of there, but text
files do not
Hi There,
I am trying to download some video with python but have run aground on
the rocky shores of pseudostreaming. Fingers crossed someone else here
has some experience with this! Here's what I've done so far...
The initial link is foo.asx so I download that with...
handle = urllib2.urlopen(
> For *NIX machines, will 'python' be placed into /usr/bin?
Not by default, no. Just try it and see for yourself.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
> Martin v. Löwis wrote:
>>> Since the source code is incompatible, I was expecting the Python
>>> executable to have a new name such as 'python3'
>>
>> It does: the executable is called python3.0.
>
> Why do you say that?
Because it is - on Unix. I assumed that was the platfo
On Dec 6, 10:35 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Fri, 05 Dec 2008 12:00:59 -0700, Joe Strout wrote:
> >> So UTF-16 has an explicit EOF marker within the text?
>
> > No, it does not. I don't know what Terry's thinking of there, but text
> > files do not have an
Glenn Linderman wrote:
> I'm unaware of it needing to handle multiple extensions
> from the command line or via double clicking in Explorer, so was
> exploiting the extra level of indirection to save typing, and make the
> command simpler to remember.
Python *does* provide multiple useful extensio
Yep...I'm planning on using SysLogHandler. Although if I were to use
rsyslog, for example, I might potentially be better off using tcp or
even doing it using rfc 3195. Sysloghandler uses udp...I imagine that
will be faster but with less reliability. I'll have to think about
that. Has anyone imp
In article <[EMAIL PROTECTED]>,
Ben Finney <[EMAIL PROTECTED]> wrote:
>James Stroud <[EMAIL PROTECTED]> writes:
>>
>> comp.lang.python3k ?
>
>The language has undergone an incompatible divide. Hopefully the
>community need not do the same.
Pish and tosh. James was clearly making a funny; there's
On Fri, 05 Dec 2008 14:00:18 -0800, James Stroud wrote:
> Andreas Waldenburger wrote:
>> Is it me, or has c.l.p. developed a slightly harsher tone recently?
>> (Haven't been following for a while.)
>
> Yep. I can only post here for about a week or two until someone blows a
> cylinder and gets ugl
On Fri, 05 Dec 2008 12:00:59 -0700, Joe Strout wrote:
>> So UTF-16 has an explicit EOF marker within the text?
>
> No, it does not. I don't know what Terry's thinking of there, but text
> files do not have any EOF marker. They start at the beginning
> (sometimes including a byte-order mark), an
On Fri, 05 Dec 2008 22:01:55 +, je.s.te.r wrote:
> Fernando H. Sanches <[EMAIL PROTECTED]> wrote:
>> And I personally disliked most of the changes (specially the ones on
>> map and reduce). I hope functional programming doesn't get even more
>> hindered in future releases, because I believe th
Hi!
Any ideas? Thanks, :)
--
http://mail.python.org/mailman/listinfo/python-list
Tim Golden schrieb:
walterbyrd wrote:
I am running cygwin on xp.
and I just noticed this vital bit. So not sure
how much of my other post applies. Sorry. Maybe it'll
help anyway. :)
Everything. The atrocity that the windows terminal window is isn't
mitigated by an out-of-the-box cygwi
On Fri, 05 Dec 2008 07:44:21 -0800, eric wrote:
> I like to believe that the less the 'debug pointer' stands in the python
> code, the fastest the code is (or is potentially)
What's a debug pointer?
Pre-mature optimization is the root of evil in programming. Unless you
have actually *measured*
On Dec 6, 9:41 am, Gregory Plantaine <[EMAIL PROTECTED]> wrote:
> That worked perfectly!
>
> Thanks Tim!
>
> Since we can print the files, does that mean the list of files is in a
> tuple, or something? Would there be a way to further split up the
> file names?
>
> For example, now that the files
On Fri, 05 Dec 2008 07:09:27 -0800, bearophileHUGS wrote:
> Andreas Waldenburger:
>> Whenever has it been a pythonic ideal to "not allow" stuff? You get
>> warnings. Everything else is up to you.
>
> It's a strong source for bugs, especially for newbies, that I have hoped
> to see removed from Py
That worked perfectly!
Thanks Tim!
Since we can print the files, does that mean the list of files is in a
tuple, or something? Would there be a way to further split up the
file names?
For example, now that the files are processed into the list, we want
to look through that list to find differen
On Dec 6, 5:36 am, Johannes Bauer <[EMAIL PROTECTED]> wrote:
> So UTF-16 has an explicit EOF marker within the text? I cannot find one
> in original file, only some kind of starting sequence I suppose
> (0xfeff). The last characters of the file are 0x00 0x0d 0x00 0x0a,
> simple \r\n line ending.
S
>
> This is first time that I am building python application that is
> larger than a single module and I would like to do it right.
I want to just say I am in agreement with the OP. Basically, there are a lot
of factors to balance out and consider when starting a python application
for the first
Christian Heimes:
> I've fixed the read() slowness yesterday. You'll get the fix in the next
> release of Python 3.0 in a couple of weeks.
Thank you.
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 5, 4:00 pm, James Stroud <[EMAIL PROTECTED]> wrote:
> Andreas Waldenburger wrote:
> > Is it me, or has c.l.p. developed a slightly harsher tone recently?
> > (Haven't been following for a while.)
>
> Yep. I can only post here for about a week or two until someone blows a
> cylinder and gets
On Fri, Dec 5, 2008 at 4:08 PM, jim-on-linux <[EMAIL PROTECTED]> wrote:
> On Friday 05 December 2008 15:27, Kevin Kelley wrote:
> > If they are running standard Win XP (Home or Pro),
> > as opposed to 64-bit Win XP, then whether or not the
> > CPU supports the IA64 instruction set really doesn't
>
James Stroud wrote:
Terry Reedy wrote:
because there is no bug to fix. I have suggesting closing.
May I suggest to add something to this effect within the issue itself so
others won't spend time trying to figure out why the "bug" is still
open?
Sorry, you did that.
James
--
http://mail.p
Terry Reedy wrote:
because there is no bug to fix. I have suggesting closing.
May I suggest to add something to this effect within the issue itself so
others won't spend time trying to figure out why the "bug" is still
open? If this is a more general feature of issues, then perhaps it would
Andreas Waldenburger wrote:
Is it me, or has c.l.p. developed a slightly harsher tone recently?
(Haven't been following for a while.)
Yep. I can only post here for about a week or two until someone blows a
cylinder and gets ugly because they interpreted something I said as a
criticism of the
Arnaud Delobelle <[EMAIL PROTECTED]> writes:
[...]
> class ClassGetItem(object):
> def __get__(self, obj, objtype=None):
> return obj._getitem_
> def __set__(self, obj, val):
> obj._getitem_ = val
>
> class GetItem(object):
> def __get__(self, obj, objtype=None):
>
MRAB wrote:
Does pysco with with Python 3.0 (the homepage says 2.5)? If it does then
that might help! :-)
No, it won't help.
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 5, 2008, at 15:52 , walterbyrd wrote:
Can I load a file into the python interactive environment? For
example I have a file called test.py that consists of the following:
print "hello"
print "hello again"
Can I load that file into python at the >>> prompt?
load "test.py"
or somethin
walterbyrd wrote:
I am running cygwin on xp.
and I just noticed this vital bit. So not sure
how much of my other post applies. Sorry. Maybe it'll
help anyway. :)
TJG
--
http://mail.python.org/mailman/listinfo/python-list
On Friday 05 December 2008 15:27, Kevin Kelley wrote:
> If they are running standard Win XP (Home or Pro),
> as opposed to 64-bit Win XP, then whether or not the
> CPU supports the IA64 instruction set really doesn't
> matter. As far as I know every Intel Core2 and
> Pentium Dual-Core CPU since ~ 2
walterbyrd wrote:
I am running cygwin on xp.
Much to my annoyance, I can not cut-and-paste from a windows app to
the python prompt. I think I could do this with putty, but I do not
have the permissions to install putty on my xp box.
I do this all the time. The key (altho' not strictly essentia
Istvan Albert wrote:
On Dec 5, 3:06 pm, [EMAIL PROTECTED] wrote:
It should get faster over time. It will get faster over a shorter period of
time if people contribute patches.
I see, thanks for the clarification.
I will make the point though that this makes python 3.0 unsuited for
anyone wh
I am running cygwin on xp.
Much to my annoyance, I can not cut-and-paste from a windows app to
the python prompt. I think I could do this with putty, but I do not
have the permissions to install putty on my xp box.
Can I load a file into the python interactive environment? For
example I have a f
On Fri, 5 Dec 2008 12:16:47 -0800 (PST) "Fernando H. Sanches"
<[EMAIL PROTECTED]> wrote:
> On Dec 4, 5:45 pm, Andreas Waldenburger <[EMAIL PROTECTED]> wrote:
> > On Thu, 4 Dec 2008 11:52:38 -0600 [EMAIL PROTECTED] wrote:
> > [snip]
> > Whenever has it been a pythonic ideal to "not allow" stuff? Yo
Istvan Albert wrote:
I see, thanks for the clarification.
I will make the point though that this makes python 3.0 unsuited for
anyone who has to process data. One could live with slowdowns of say
20-50 percent, to get the goodies that 3.0 offers, but when a process
that takes 1 second suddenly s
Arnaud Delobelle <[EMAIL PROTECTED]> writes:
> "Zac Burns" <[EMAIL PROTECTED]> writes:
>
>> Ok. Feature request then - assignment of a special method name to an
>> instance raises an error.
>
> I haven't got the time to implement it, but I'm sure you can obtain the
> behaviour you want.
OK I've h
If they are running standard Win XP (Home or Pro), as opposed to 64-bit Win
XP, then whether or not the CPU supports the IA64 instruction set really
doesn't matter. As far as I know every Intel Core2 and Pentium Dual-Core CPU
since ~ 2006 has supported 64bit instructions, even the Atom is 64bit. Al
Sam> I've been playing with the python logging module. I'd like all of
Sam> these applications to write their logs to the same place in order
Sam> to make analysis easier.
Sam> Any ideas on best practices?
Perhaps use logging.handlers.SysLogHandler?
Sam> What are my options
On Dec 5, 3:06 pm, [EMAIL PROTECTED] wrote:
> It should get faster over time. It will get faster over a shorter period of
> time if people contribute patches.
I see, thanks for the clarification.
I will make the point though that this makes python 3.0 unsuited for
anyone who has to process data
On Dec 4, 5:45 pm, Andreas Waldenburger <[EMAIL PROTECTED]> wrote:
> On Thu, 4 Dec 2008 11:52:38 -0600 [EMAIL PROTECTED] wrote:
>
>
>
> > >>> As you have probably guessed: nothing changed here.
> > >>> Also see:http://www.python.org/dev/peps/pep-0666/
>
> > >> What? Do you mean it's pos
Istvan> Could someone run the code below on both Python 2.5 and 3.0 For
Istvan> me (on Windows) it runs over 7 times slower with Python 3.0
...
I/O was completely rewritten for Python 3.0. Stdio is no longer used. At
the moment I believe much of the io subsystem is still implemente
Hi...
I'm working with a small team writing a bunch of python applications
that communicate via xml/http in a somewhat restful way. :) They are
running on about half a dozen computers. We'll probably be scaling
that to a lot more computers soon.
I've been playing with the python logging module
Python help,
In September I wrote:
I have a number of clients running a program built
with python 2.5. One has just purchased an HP with
a duo core Pentium R processor E2200, 2.2G with .99g
ram.
Only on the new HP, when they try to print they get an
import error;
File win32ui.pyc line 12, in
Istvan Albert a écrit :
Could someone run the code below on both Python 2.5 and 3.0
For me (on Windows) it runs over 7 times slower with Python 3.0
Already covered, I think:
http://groups.google.com/group/comp.lang.python/browse_frm/thread/9046eee09137c657#
import time
lo, hi, step = 10**5
In article
<[EMAIL PROTECTED]>,
manatlan <[EMAIL PROTECTED]> wrote:
> Here is a really simple code :
> ---
> from datetime import datetime
> from pytz import timezone
>
> tz=timezone("Europe/Paris")
>
> d=datetime(2008,12,12,19,00,00,tzinfo=tz
On Dec 5, 4:32 am, Lawrence D'Oliveiro <[EMAIL PROTECTED]
central.gen.new_zealand> wrote:
> The code people write is probably a direct reflection of their thinking
> processes: For example, slow, plodding, one step at a time, incapable of
> imaginative leaps, versus those who operate directly on la
Joe Strout wrote:
On Dec 5, 2008, at 11:36 AM, Johannes Bauer wrote:
I suspect that '?' after \n (\u0a00) is indicates not 'question-mark'
but 'uninterpretable as a utf16 character'. The traceback below
confirms that. It should be an end-of-file marker and should not be
passed to Python. I s
On Dec 5, 12:54 pm, Istvan Albert <[EMAIL PROTECTED]> wrote:
> Could someone run the code below on both Python 2.5 and 3.0
>
> For me (on Windows) it runs over 7 times slower with Python 3.0
>
> import time
>
> lo, hi, step = 10**5, 10**6, 10**5
>
> # writes increasingly more lines to a file
> for
On Dec 5, 3:25 pm, Johannes Bauer <[EMAIL PROTECTED]> wrote:
> Hello group,
>
> I'm having trouble reading a utf-16 encoded file with Python3.0. This is
> my (complete) code:
>
> #!/usr/bin/python3.0
>
> class AddressBook():
> def __init__(self, filename):
> f = open(filenam
[EMAIL PROTECTED] wrote:
Hi,
I have about 900 text files (about 2 GB of data) and I need to make
some very specific changes to the last line of each file. I'm
wondering if there is a way to just overwrite the last line of a file
or replace the spots I want (I even know the position of the
chara
On Dec 5, 2008, at 11:36 AM, Johannes Bauer wrote:
I suspect that '?' after \n (\u0a00) is indicates not 'question-mark'
but 'uninterpretable as a utf16 character'. The traceback below
confirms that. It should be an end-of-file marker and should not be
passed to Python. I strongly suspect tha
On Fri, Dec 5, 2008 at 1:54 PM, Istvan Albert <[EMAIL PROTECTED]>wrote:
> Could someone run the code below on both Python 2.5 and 3.0
>
> For me (on Windows) it runs over 7 times slower with Python 3.0
>
> import time
>
> lo, hi, step = 10**5, 10**6, 10**5
>
> # writes increasingly more lines to a
Could someone run the code below on both Python 2.5 and 3.0
For me (on Windows) it runs over 7 times slower with Python 3.0
import time
lo, hi, step = 10**5, 10**6, 10**5
# writes increasingly more lines to a file
for N in range(lo, hi, step):
fp = open('foodata.txt', 'wt')
start = time
Hi,
I have about 900 text files (about 2 GB of data) and I need to make
some very specific changes to the last line of each file. I'm
wondering if there is a way to just overwrite the last line of a file
or replace the spots I want (I even know the position of the
characters I need to replace).
Terry Reedy schrieb:
> Johannes Bauer wrote:
>> Hello group,
>>
>> I'm having trouble reading a utf-16 encoded file with Python3.0. This is
>> my (complete) code:
>
> what OS. This is often critical when you have a problem interacting
> with the OS.
It's a 64-bit Linux, currently running:
Linux
Here is a really simple code :
---
from datetime import datetime
from pytz import timezone
tz=timezone("Europe/Paris")
d=datetime(2008,12,12,19,00,00,tzinfo=tz)
print d.isoformat()
d=datetime.now(tz)
print d.isoformat()
Johannes Bauer wrote:
Hello group,
I'm having trouble reading a utf-16 encoded file with Python3.0. This is
my (complete) code:
what OS. This is often critical when you have a problem interacting
with the OS.
#!/usr/bin/python3.0
class AddressBook():
def __init__(self, filename):
[EMAIL PROTECTED] wrote:
Andreas Waldenburger:
Whenever has it been a pythonic ideal to "not allow" stuff? You get
warnings. Everything else is up to you.
It's a strong source for bugs, especially for newbies, that I have
hoped to see removed from Python3 (my first request of this was years
ag
James Stroud wrote:
James Stroud wrote:
Hello All,
I subclassed dict and overrode __setitem__. When instances are
unpickled, the __setstate__ is not called before the keys are assigned
via __setitem__ in the unpickling protocol.
I googled a bit and found that this a bug filed in 2003:
It
hi,
i have a feew questions concnering unicode and utf-8 handling and
would appreciate any insights.
1) i got a xml document, utf-8, encoded and been trying to use etree
to parse and then commit to mysql db. using etree, everything i've
been extracting is return as a string except ascii char > 12
"J Kenneth King" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It probably means what it says: that the input file contains characters
> it cannot read using the specified encoding.
That was my first thought. However it appears that there is an off by one
error somewhere in the
On Thu, 4 Dec 2008 15:49:46 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> It's more than warnings. With properly crafted
> combinations of spaces and tabs you can get code which
> looks like it has a certain indentation to the human
> observer but which looks like it has different indent
Mark Dufour wrote:
Hi all,
I have just released version 0.0.30 of Shed Skin, ...
Normally, including a link is a good idea.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
J Kenneth King schrieb:
> It probably means what it says: that the input file contains characters
> it cannot read using the specified encoding.
No, it doesn't. The file is just fine, just as the example.
> Are you generating the file from python using a file object with the
> same encoding? If
Guy Doune wrote:
Guy Doune a écrit :
Ok, didn't show the whole problem...
I will read the doc anyway, but why "questions.html" keep it "t"??
>>> test=['03.html', '06.html', 'questions.html', '04.html',
'toc.html', '01.html', '05.html', '07.html', '02.html', '08.html']
>>> test[4]
'toc.html
Johannes Bauer <[EMAIL PROTECTED]> writes:
> Traceback (most recent call last):
> File "./modify.py", line 12, in
> a = AddressBook("2008_11_05_Handy_Backup.txt")
> File "./modify.py", line 7, in __init__
> line = f.readline()
> File "/usr/local/lib/python3.0/io.py", line 1807, in r
On Fri, 5 Dec 2008 07:46:02 -0800 (PST) [EMAIL PROTECTED] wrote:
> Andreas Waldenburger:
> > My point is: If you mix tabs and spaces in a way that breaks code,
> > you'll find out pretty easily, because your program will not work.
>
> - Most newbies don't know that.
> - Sometimes it may produce w
On Dec 5, 11:56 am, eric <[EMAIL PROTECTED]> wrote:
> On Dec 4, 11:35 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
>
> > Yowza! My eyes glaze over when I see re's like "r'(?m)^(?P.*?
> > (".*?".*?)*)(?:#.*?)?$"!
>
> yeah, I know ... :( ( I love complicated regexp ... it's like a puzzle
> game for m
On Fri, 5 Dec 2008 at 07:54, Mark Tolonen wrote:
> > import re
> > re.split('[,.]','blah,blah.blah')
['blah', 'blah', 'blah']
Thank you. Somehow it never occurred to me that I could use that
kind of pattern that way. I guess my brain just doesn't think
in regexes very well :)
--RDM
--
htt
On Dec 5, 8:06 am, Marco Mariani <[EMAIL PROTECTED]> wrote:
> Steven D'Aprano wrote:
> > Gosh Lawrence, do tell, which category do YOU fall into?
>
> I suppose a mix-up between a cowbody (or Fonzie) coder and a troll.
Naah.. more likely an (ex?) Lisper/Schemer.
--
http://mail.python.org/mailman/li
Warren, weren't you aware that Python.org is now a church. So you can never
live up to the standards of the Pythonista high priests. You can only ask a
question or submit your comment then cower, hoping the pythonista high
priests don't beat you with clubs for heresy.
;)
2008/12/4 Warren DeLa
[EMAIL PROTECTED] wrote:
On Thu, 4 Dec 2008 at 20:54, Terry Reedy wrote:
'toc.html'
> > > test[4].strip('.html')
'oc'
Can't figure out what is going on, really.
What I can't figure out is why, when people cannot figure out what is
going on with a function (or methods in this case), they
On Dec 4, 6:09 pm, [EMAIL PROTECTED] wrote:
> For the interested, with MMA 6, on a Pentium 4 3.8Ghz:
>
> The code that Jon posted:
>
> Timing[Export["image-jon.pgm", [EMAIL PROTECTED]@Main[2, 100, 4]]]
> {80.565, "image-jon.pgm"}
>
> The code that Xah posted:
>
> Timing[Export["image-xah.pgm", [EMA
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Thu, 4 Dec 2008 at 20:54, Terry Reedy wrote:
[snip]
I have often wished that in 'split' I could specify a _set_ of characters
on which the string would be split, in the same way the default list
of whitespace characters causes a s
1 - 100 of 151 matches
Mail list logo