On 2012-07-01 01:55 +0800, Fernando Perez wrote:
> - ~6 months of work.
> - 373 pull requests merged.
> - 742 issues closed (non-pull requests).
> - contributions from 62 authors.
> - 1760 commits.
> - a diff of 114226 lines.
Thank you for the hard work.
Leo
--
http://mail.
Hello,
On Lion and with its stock python version 2.7.1 r271:86832,
webbrowser.open('file://localhost/nonexistingfile') always opens up
Safari. Is this a bug?
Leo
--
http://mail.python.org/mailman/listinfo/python-list
you have the default browser set to Chrome, it still opens up Safari.
Leo
--
http://mail.python.org/mailman/listinfo/python-list
; open file://localhost/nonexistingfile
> and
> open http://www.python.org/
>
> Do they both open Chome for you?
The first one prints: The file /nonexistingfile does not exist.
No browser is opened.
The second one opened Chrome.
Leo
--
http://mail.python.org/mailman/listinfo/python-list
Can anyone help me find the error of this implementation in Python what am I
doing with this TBiS algorithm?
Algorithm:
Function b = TBiSort(a, n, k, dir)
if n == 1 then
b = a;
else
h1 = TBiSort(a(1:n/2), n/2, k, dir);
h2 = TBiSort(a(n/2+1:n),n/2,k, -dir);
b = TB
l2.append(l1.pop())
print(len(l1), len(l2))
main()
```
--
Leo
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 22 Sep 2022 09:36:47 -0700 (PDT), tripd...@gmail.com wrote:
> https://nigeriapropertycentre.com/
> Has anyone scrap something like this before?
> probably i should try power bi first to see if it can?
You can try something like this.
import urllib.request
from bs4 import BeautifulSoup
U
0,000 users/hour) , so we'd like to be as tuned
as possible.
Thanks,
leo
--
http://mail.python.org/mailman/listinfo/python-list
> However, I think the functionality you're asking for is available as
> inspect.currentframe(), and if the implementation is in "C" it may have a tiny
> performance advantage over the Python version.
You're absolutely right, in fact the code snippet from my OP was taken
directly from inspect.curr
27;, 0)]
?
I must be missing something. The motivating question is:
How can I get the interpreter line that triggered the current actions?
TIA,
Leo.
--
http://mail.python.org/mailman/listinfo/python-list
Is it different in 2.4? Maybe there is something else in sys.* that I
am having trouble finding?
TIA,
Leo.
--
http://mail.python.org/mailman/listinfo/python-list
forms I
use? Also, the windows version remembers my commands across sections.
How do I enable that in the python version?
I tried editing the inputrc file that controls the readline library by
adding the following lines:
$if python
set history-preserve-point on
$endif
but this did not seem to work.
T
Hi there,
I have decided to jump in at the deep end to try and learn python. I
have been able to get requests to pull the login page off the server
and I think send the login request. I don't get logged in though.
Please let me know if I would be better off asking in a phpBB related
group or
Hi,
following is the python scripts:
import marshal
script = """
print 'hello'
"""
code = compile(script, "
Hi, all,
i mean to convert
'c\000\000\000\000\001\000\000\000s\017\000\000\00
> 0\177\000\000\177\002\000d\000\000GHd\001\000S(\00
> 2\000\000\000s\005\000\000\000helloN(\000\000\000\
> 000(\000\000\000\000s\010\000\000\000
rInterface_readMps(*args)
NotImplementedError: No matching function for overloaded
'OsiCbcSolverInterface_readMps'
**
Thanks!
Leo.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Following is the python scripts:
import marshal
exec(marshal.loads('c\000\000\000\000\001\000\000\000s\017\000\000\000\177\000\000\177\002\000d\000\000GHd\001\000S(\002\000\000\000s\005\000\000\000helloN(\000\000\000\000(\000\000\000\000s\010\000\000\000
Hi,
following is marshal and unmarshal script
import marshal
strng = """
print 'hello world'
"""
code = compile(strng, "", "exec")
data = marshal.dumps(code)
strng0 = marshal.loads(data)
print repr(data)
print "-"*100
print strng0
###Result:
'c\x00\x00\x00\x00\x01\x00\x00\x00s\x0f\x00\x00\x00\x7f
Steven D'Aprano wrote:
> On Mon, 20 Apr 2009 15:13:15 -0500, Grant Edwards wrote:
>
>
>> I fail to see the difference between "length greater than 0" and "list
>> is not empty". They are, by definition, the same thing, aren't they?
>
> For built-in lists, but not necessarily for arbitrary list
b97766
Faulting application path: C:\Windows\system32\conhost.exe
Faulting module path: C:\Windows\system32\conhost.exe
Report Id: 9c6afd6c-20d7-11df-bbd8-e390d387a902
Has anyone else seen anything like this? Any suggestions on how to
even start figuring this out?
--Leo
--
http://mail.python.org/mailman/
Thanks for responding Michel. It looks like its an issue with
pyreadline - http://ipython.scipy.org/moin/PyReadline/Intro - causing
the crash. I'm working with the author of it on trying to get the
issue figured out.
It's not related to UAC.
--
--Leo
On Feb 23, 10:41 pm, "Miche
s of them!) ? I
> know I can write a function to do this, but is there anything built-in?
>
> Thanks
>
> Frank Millman
>
How about int(x[:-2])?
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
When running the setup for your 3.5.1(32-bit version), the setup
experiences error 0*80070570 and tells me to check the log file. What could
be the problem and whats the solution.
On Apr 21, 2016 7:05 AM, "Allan Leo" wrote:
> When running the setup for your 3.5.1(32-bit versi
I need help with this setup error.
-- Forwarded message --
From: "Allan Leo"
Date: Apr 21, 2016 10:06 AM
Subject: Re: Error 0*80070570
To:
Cc:
When running the setup for your 3.5.1(32-bit version), the setup
experiences error 0*80070570 and tells me to check the log
.
In case you're interested and want to learn more, check it out here:
http://kck.st/29NjAtR
Feel free to comment here with any questions.
Leo
--
https://mail.python.org/mailman/listinfo/python-list
yeah, it may be quite simple to you experts, but hard to me.
In one of exercises from the Tutorial it said: "Write a program that asks the
user their name, if they enter your name say "That is a nice name", if they
enter "John Cleese" or "Michael Palin", tell them how you feel about them ;),
ot
I got it! Thank you.
Hope in one day I could help other newbies as you do.
--
https://mail.python.org/mailman/listinfo/python-list
Dear All,
I lost my source code because of my incaution.
so anyone can tell me how to decompile the exe file compiled by py2exe?
Thanks.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
et/crew/theller/moin.cgi/Py2Exe correctly).
> Bytecode files extracted should be decompilable to something resembling
> original python code by a python decompiler (quick Googling finds
> "decompyle": http://www.crazy-compilers.com/).
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
> connect = urllib.urlopen(url)
> data = connect.read()
> connect.close()
> return data
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
i do now?
i tried to import wx in python, but python just returned an error:
Traceback (most recent call last):
File "", line 1, in ?
ImportError: No module named wx
Anyone can help me, please?
Thanks
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
On 9/28/05, Martin Franklin <[EMAIL PROTECTED]> wrote:
> Leo,
>
> I don't have AS 4 but fedora core 4 has wx in it's YUM repositories I
> assume RedHat has too, so perhaps you need to use the officially
> sanctioned version. If you want to use the latest and great
when i use POP3.retr() in poplib module, the retr() function will not
return until the receiving progress is finished
so, is there any way to get the rate of receiving progress?
Thanks
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
you may use the decimal module which was introduced in Python2.4
>>> from decimal import *
>>> li = [Decimal(".25"), Decimal(".10"), Decimal(".05"), Decimal(".01")]
>>> print li
[Decimal("0.25"), Decimal("0.10"), Decimal("0.05"), Decimal("0.01")]
>>>
--
http://mail.python.org/mailman/listinfo/p
IMO, python should use the decimal for default.
.25 is right for Decimal(".25").
isn't that better?
--
http://mail.python.org/mailman/listinfo/python-list
est Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
re is some
counter-argument involved, some reason why people preferred the
existing semantics after all. But for the life of me I can't
think what that counter-argument might be...
--
Leo Breebaart <[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
John Machin <[EMAIL PROTECTED]> writes:
> On 16 Feb 2005 18:47:21 GMT, Leo Breebaart <[EMAIL PROTECTED]> wrote:
>
> >What I can't find an explanation for is why str.join() doesn't
> >automatically call str() on its arguments, so that e.g.
> >str
a couple of hours ago, I did in fact get
this right, so I'm not entirely sure who the two of you are
actually talking to...
--
Leo Breebaart <[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
the exception "CommentLine" and leave
it at that, but I don't know, maybe there's something better I'm
overlooking.
Any suggestions?
--
Leo Breebaart <[EMAIL PROTECTED]>
--
http://mail.python.org/mailman/listinfo/python-list
Max <[EMAIL PROTECTED]> writes:
> LOOK EVERYONE, it's Leo Breebart. You are the same Leo
> Breebart, right?
Breeb*aa*rt. But otherwise, yeah -- I do frequent more than just
one newsgroup. :-)
> This guys famous in the alternative universe of
> alt.fan.pratchett.
I d
Since it is for a template you can round the keyword to be replaced ,
something like $data$ and then just string.replace('$data','1234')
On Mon, Jan 6, 2014 at 12:01 PM, Frank Cui wrote:
> Hey guys,
>
> I'm trying to automate a process by initially creating a standard template
> and then rep
You'll find some explanation here:
http://stackoverflow.com/questions/1708292/meaning-of-using-commas-and-underscores-with-python-assignment-operator
On Wed, Feb 4, 2015 at 12:08 PM, ast wrote:
> hello
>
> I dont understand why there is a comma just after line in the following
> command:
>
> line
k if it fits the key and go on if so
>
> >If not, ask for a new one, check it, go on if its correct.
>
>
>
> Every time I run it, it says the key is 0!?
>
> I can not for the life of me figure out what it is doing.
>
>
>
> The code:
>
> <
f me figure out what it is doing.
The code:
<https://docs.google.com/document/d/1_Qo4bgmNhRer3fAt3EAtPNSei4N2q58f_q4_9r6OHbw/edit?usp=sharing>
Thanks
Leo
--
https://mail.python.org/mailman/listinfo/python-list
ch?
>
>
>
> --
>
> Piet van Oostrum
>
> WWW: http://pietvanoostrum.com/
>
> PGP key: [8DAE142BE17999C4]
Yes the code is a mess, I have been tempted to re write the whole thing...
The reason for the messiness is firstly because I am relatively new to
programming and because this is the result of me tinkering around with previous
code, which was still messy, but cleaner than this.
So the open("key","w") clears the file straight away? That helps a lot, thanks,
this will definitely save me a lot of time in the future. Also the user doesn't
guess the pass, I would give it to them. After they enter it, they go on to the
guessing game (not shown in the code).
Thanks for the help!
Leo
--
https://mail.python.org/mailman/listinfo/python-list
On Saturday, 7 September 2013 13:03:14 UTC+10, Leo Carnovale wrote:
> On Saturday, 7 September 2013 02:17:03 UTC+10, Piet van Oostrum wrote:
>
> > leo.carnov...@gmail.com writes:
>
> >
>
> >
>
> >
>
> > > I am making this litt
On Saturday, 7 September 2013 13:58:43 UTC+10, Michael Torrie wrote:
> On 09/06/2013 09:05 PM, Leo Carnovale wrote:
>
> > Ah and one other thing! What is this crypto algorithm you speak of? I
>
> > desperately need some sort of encryption as at the moment anyone can
>
assign using () creates tuple not a list. Tuples have not .sort() method.
correct would be:
ncount = [key,val]
On Tue, Aug 11, 2015 at 9:01 PM, Ltc Hotspot wrote:
> Hi Everyone,
>
>
> What is the list equivalent to line 12: ncount.sort(reverse=True)
>
>
> count = dict()
> fname = raw_input("Enter
Wondering why a position for Java/JS was sent to this list...just wondering...
On Thu, Aug 13, 2015 at 11:59 AM, wrote:
> https://walljobs.typeform.com/to/uWpUqj
>
> We seek a software developer with experience in web application development.
>
> Should you have the passion to work in the start-
Gzz,
Guys I'm from Brazil too, and I'm ashamed for this troll. And sorry by
his terrible taste in music.
Wondering now about moderation , have we one?
[]'s
On Tue, Jun 10, 2014 at 5:07 PM, Carlos Anselmo Dias
wrote:
>
>
> Terry Jan Reedy ...
>
> https://www.youtube.com/watch?v=HbGHq2aUXDU (yhis
as a single file that users can just copy and run.
>
But if you use windows and you happen to use multiprocessing,
please be aware of this bug I encountered several years ago.
https://mail.python.org/pipermail/python-dev/2011-December/115071.html
--
Best Regards,
Leo Jay
--
https://mail.python.org/mailman/listinfo/python-list
understanding of cross-
> platform issues, fails to include built-in modules that don't live in the
> file system, and probably more).
>
> Is this problem already solved? Can anyone make any suggestions?
>
>
>
> --
> Steven
> --
> https://mail.python.org/mailman/listinfo/python-list
--
Best Regards,
Leo Jay
--
https://mail.python.org/mailman/listinfo/python-list
ta)
File "C:\python27\lib\multiprocessing\forking.py", line 454, in prepare
assert main_name not in sys.modules, main_name
AssertionError: __main__
It seems that the situation described here is similar:
http://bugs.python.org/issue10128
But the patch doesn't work for me.
there any reason why you introduced the Name class? In Python
2.7 this works equally well if I just do:
>>> apple, pear, dog, cat, fork, spoon = map(str, "apple pear dog cat fork
>>> spoon".split())
So I was wondering why you used Name.
--
Leo Breebaart
--
http://mail.python.org/mailman/listinfo/python-list
In fact this code is already doing what you want, but if the second
character, by example, is not in secrectWord it'll jump out of the for and
return. If you want that interact through the all characters and maybe
count how many them are in the secrectWord, just take of the return there
or do some
I want to split a string like this:
'abc def "this is a test" ok'
into:
['abc', 'def', 'this is a test', 'ok']
is there any lib meet my need?
thanks
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
ing this com server in viusal c++?
a detailed sample of early binding would be better, thanks.
--
Best Regards,
Leo Jay
--
http://mail.python.org/mailman/listinfo/python-list
Theerasak Photha wrote:
> On 10/10/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > Theerasak Photha schrieb:
> > >> At the moment, it only returns unicode objects when invoked
> > >> in the IDLE shell, and only if the character entered cannot
> > >> be represented in the locale's charset.
> >
Duncan Booth wrote:
> "Stuart McGraw" <[EMAIL PROTECTED]> wrote:
>
> > So, does raw_input() ever return unicode objects and if
> > so, under what conditions?
> >
> It returns unicode if reading from sys.stdin returns unicode.
>
> Unfortunately, I can't tell you how to make sys.stdin return unicode
John J. Lee wrote:
> Steve Holden <[EMAIL PROTECTED]> writes:
> [...]
> > > There would also need to be a flag field to indicate the canonical
> > > ordering
> > > for writing out the full name: e.g. family-name-first, given-names-first.
> > > Do we need something else for the Vietnamese case?
> >
Lawrence D'Oliveiro wrote:
> In message <[EMAIL PROTECTED]>, Marc 'BlackJack'
> Rintsch wrote:
>
> > In <[EMAIL PROTECTED]>,
> > Preben Randhol wrote:
> >
> >> Is there a way to calculate in characters
> >> and not in bytes to represent the characters.
> >
> > Decode the byte string and use `len()
On Oct 13, 4:44 am, [EMAIL PROTECTED] wrote:
> శ్రీనివాస wrote:
> > Hai friends,
> > Can any one tell me how can i remove a character from a unocode text.
> > కల్&హార is a Telugu word in Unicode. Here i want to
> > remove '&' but not replace with a zero width char. And one more thing,
> > if any
On Oct 13, 4:55 am, "Leo Kislov" <[EMAIL PROTECTED]> wrote:
> On Oct 13, 4:44 am, [EMAIL PROTECTED] wrote:
>
> > శ్రీనివాస wrote:
> > > Hai friends,
> > > Can any one tell me how can i remove a character from a unocode text.
> > > కల్&హ
On Oct 15, 10:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I just want to send a very simple email from within python.
>
> I think the standard module of smtpd in python can do this, but I
> haven't found documents about how to use it after googleing. Are there
> any examples o
On Oct 16, 12:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Rob Wolfe wrote:
> > [EMAIL PROTECTED] wrote:
>
> >> Hi,
>
> >> I just want to send a very simple email from within python.
>
> >> I think the standard module of smtpd in python can do this, but I
> >> haven't found documents a
On Oct 16, 2:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> It's not safe if I have to use login method explicitly by which I have
> to put my username and password in the script. I have also tried the
> Unix command 'mail', but without success, either. I could use 'mail' to
> send an E-
On Oct 16, 2:39 pm, Tuomas <[EMAIL PROTECTED]> wrote:
> My application needs to handle different language sorts. Do you know a
> way to apply strxfrm dynamically i.e. without setting the locale?
Collation is almost always locale dependant. So you have to set locale.
One day I needed collation th
On 10/17/06, TiNo <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am trying to compare my Itunes Library xml to the actual files on my
> computer.
> As the xml file is in UTF-8 encoding, I decided to do the comparison of the
> filenames in that encoding.
> It all works, except with one file. It is named
On Oct 18, 11:50 am, Stens <[EMAIL PROTECTED]> wrote:
> Stens wrote:
> > Can python handle this characters: c,c,,d,?
>
> > If can how"I wanna to change some characters in text (in the file) to the
> characters at this address:
>
> http://rapidshare.de/files/37244252/Untitled-1_copy.png.html
Yo
Leo Kislov wrote using google groups beta:
> On Oct 18, 11:50 am, Stens <[EMAIL PROTECTED]> wrote:
> > Stens wrote:
> > > Can python handle this characters: c,c,,d,?
[snip]
> outfile.write(line.replace(u'd',u'd'))
I hope you'l
Neil Cerutti wrote:
> It turns out to be troublesome for my case because the
> EncodedFile object translates calls to readline into calls to
> read.
>
> I believe it ought to raise a NotImplemented exception when
> readline is called.
>
> As it is it silently causes interactive applications to
>
l locale.atof instead of float, since you call
re.compile with re.LOCALE.
Everything else looks fine. The biggest missing piece is support for
unicode strings.
-- Leo.
--
http://mail.python.org/mailman/listinfo/python-list
Python 2.3.4 (#1, Feb 17 2005, 21:01:10)
> [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import struct
> >>> print type(struct.unpack(">L", "")[0])
>
> >>>
>
> I would expect in both cases. Why is this not so?
http://mail.python.org/pipermail/python-dev/2006-May/065199.html
-- Leo.
--
http://mail.python.org/mailman/listinfo/python-list
Ron Adam wrote:
> Leo Kislov wrote:
> > Ron Adam wrote:
> >
> >> locale.setlocale(locale.LC_ALL, '') # use current locale settings
> >
> > It's not current locale settings, it's user's locale settings.
> > Application can actual
ed to happen
in python 3.0 where it's ok to break backward compatibility if needed.
-- Leo.
--
http://mail.python.org/mailman/listinfo/python-list
u+00B4 character history as soon as possible. Googling for "itunes
replaces acute with quote" reveals that char u+00B4 is not alone. Read
the first hit. I'm afraid you will have to reverse engeneer what
itunes is doing to some characters.
-- Leo.
--
http://mail.python.org/mailman/listinfo/python-list
Jiba wrote:
> Hi all,
>
> I am desperately searching for the encoding of sys.argv.
>
> I use a Linux box, with French UTF-8 locales and an UTF-8 filesystem.
> sys.getdefaultencoding() is "ascii" and sys.getfilesystemencoding() is
> "utf-8". However, sys.argv is neither in ASCII (since I can pass
e in pythonrun.c properly uses it find out the encoding. The
other question if Linux or *BSD distributions confirm to the standard.
-- Leo.
--
http://mail.python.org/mailman/listinfo/python-list
t "Hello"
... yield 1
...
>>> iter(f)
Traceback (most recent call last):
File "", line 1, in ?
TypeError: iteration over non-sequence
>>> iter(f())
>>> type(f())
>>>
Notice, there is no side effect of calling f function.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
>>> def f1(): yield 1
> ...
> >>> def f2(): return 1
> ...
> >>> is_generator(f1)
> True
> >>> is_generator(f2)
> False
> >>>
It should be noted that this checking is completely irrelevant for the
purpose of writing flatten generator. Given
def inc(n):
yield n+1
the following conditions should be true:
list(flatten([inc,inc])) == [inc,inc]
list(flatten([inc(3),inc(4)]) == [4,5]
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
done) != 0 and beensaved == 0 and askyesno(...):
> saveasfile()
It's a personal matter, but usually python programmers treats values in
boolean context directly without comparison:
if done and not beensaved and askyesno(...):
The rules are documented here: http://docs.python.org/lib/truth.html .
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
ut how to do this properly.
>
> call("core/main") works but uses .. of core for input/output.
>
> call("core/main",cwd="core") and call("main",cwd="core") both result in
[snip exception]
Usually current directory is not in the PATH on UNIX. Try
call("./main",cwd="core")
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
.error usually means input data doesn't correspond to expected
format.
> The .mo files were created using poEdit (www.poedit.org), and I get the
> same error with various translations, all created by different people.
Try msgunfmt
http://www.gnu.org/software/gettext/manual/html_node/gettext_128.html#SEC128
to see if it can convert your files back to text.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
t. So the problem of finding out the
encoding of stdout is equal to finding out encoding of any file. It's
just impossible to do in general. Now, you maybe talking about
conventions. AFAIK since Windows doesn't have strong command line
culture, it doesn't such conventions.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
codec was in the python.org distribution since the introduction
of unicode (around python 2.0). If you can't use utf-8 codec right out
of the box, something is really wrong with your setup.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
ded by the manufacturer can stop working. If the
preinstalled python was installed into c:\python24 directory, choose
some other directory when you install python from python.org.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
Sachin Punjabi wrote:
> I installed it again but it makes no difference. It still throws me
> error for LookUp Error: unknown encoding : utf-8.
Most likely you're not using the new python, you're still running old
one.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
of our wrappers might be installed on the testing
> machine, somewhere in python/site-packages. How can I make sure that
> python only finds my 'new' local generated modules?
Set PYTHONPATH to the directory where locally generated modules are
located. They will be found before site packages.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
ssignments/language-subtag-registry>
considers it Chamorro) setlocale should probably grow an additional
keyword parameter: setlocale(LC_ALL, iana='de-DE')
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
robert wrote:
> Leo Kislov wrote:
> > robert wrote:
> >> Why can the default locale not be set by its true name? but only by '' ? :
> >
> > Probably it is just not implemented. But since locale names are system
> > specific (For example windows accept
friendly editor or console, u"f\xfcr" is
the same as u"für":
>>> u"f\xfcr" is u"für"
True
So there is no need to write unicode strings in hexadecimal
representation of code points.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
n Dutch. I'm
> not so sure about english.
The problem is more complicated. First of all, why title() should be
limited to human languages? What about programming languages? Is
"bar.bar.spam" three tokens or one in a foo programming language? There
are some problems with human
t know where you're going
to output its result so repr uses the safest encoding: ascii.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
r: 588317
'\x1e'
''
Looks like one byte of garbage is appended at the end of file. Please
file a bug report. As a workaround "rU" mode seems to work fine for
this file.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
52> and CUPS already
supports printing PDF files, just run "lp your_file.pdf" to print a
file. CUPS only have command line interface:
<http://www.cups.org/documentation.php/options.html>
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
Leo Kislov wrote:
> CUPS only have command line interface:
> <http://www.cups.org/documentation.php/options.html>
My mistake: CUPS actually has official C API
<http://www.cups.org/documentation.php/api-cups.html> and unofficial
python bindings <http://freshmeat.net/project
listdir failed completely, you could not easily find
> out the cause of the failure).
>
> How would you propose listdir should behave?
How about returning two lists, first list contains unicode names, the
second list contains undecodable names:
files, troublesome = os.listdir(separate_erro
ace" behavior)
>
> what about using flags similar to how unicode() works? strict, ignore,
> replace and maybe keep-as-bytestring.
>
> like:
> os.listdir(dirname,'strict')
That's actually an interesting idea. The error handling modes could be:
'mix' -- current behaviour, 'ignore' -- drop names that cannot be
decoded, 'separate' -- see my other message.
-- Leo
--
http://mail.python.org/mailman/listinfo/python-list
Martin v. Löwis wrote:
> Leo Kislov schrieb:
> > How about returning two lists, first list contains unicode names, the
> > second list contains undecodable names:
> >
> > files, troublesome = os.listdir(separate_errors=True)
> >
> > and make separate_errors=T
1 - 100 of 207 matches
Mail list logo