Re: SyntaxError: encoding problem: with BOM

2008-12-26 Thread NoName
On 26 дек, 23:08, "Gabriel Genellina" wrote: > En Thu, 25 Dec 2008 11:55:16 -0200, NoName escribió: > > > Error > > > > C:\Documents and Settings\Ra\Рабочий стол>11.py > > File "", line 1 > > SyntaxError: encoding problem: with B

Re: SyntaxError: encoding problem: with BOM

2008-12-25 Thread NoName
> It's a bug, please report it. I though we fixed all Windows path bugs > for 3.0 but apparently one slipped through. > > Christian It is too difficult for me. please help me=) -- http://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError: encoding problem: with BOM

2008-12-25 Thread NoName
> NoName, Asking people to download a zip file from a website written in > a language and character set that they probably are not familiar with > is liable to make them rather nervous and not bother. It's not a good > way to ask for help. sorry:) Now i know where problem. But i

Re: SyntaxError: encoding problem: with BOM

2008-12-25 Thread NoName
On 25 дек, 03:35, "Diez B. Roggisch" wrote: > NoName schrieb: > > > > > On 25 ÄÅË, 00:37, "Diez B. Roggisch" wrote: > >> NoName schrieb: > > >>> i have 1.py in cp866 encoding: > >>> # -*- coding: cp866 -*- > >>

Re: SyntaxError: encoding problem: with BOM

2008-12-24 Thread NoName
On 25 дек, 00:37, "Diez B. Roggisch" wrote: > NoName schrieb: > > > i have 1.py in cp866 encoding: > > > # -*- coding: cp866 -*- > > print ("ff") > > > It's not work in Python 3.0 > > Error: > > > File "", line

SyntaxError: encoding problem: with BOM

2008-12-24 Thread NoName
i have 1.py in cp866 encoding: # -*- coding: cp866 -*- print ("ff") It's not work in Python 3.0 Error: File "", line 1 SyntaxError: encoding problem: with BOM what's wrong? -- http://mail.python.org/mailman/listinfo/python-list

Python ASP Error

2008-02-18 Thread NoName
I want continuie this topic http://groups.google.com/group/comp.lang.python/browse_thread/thread/6cc8f4154369abf2/df299ebaa5a2144c?hl=ru&lnk=st&q=Python+ASP+HTTP%2F1.1+500+Server+Error#df299ebaa5a2144c I have same problem Pythonwin's "Tools->Remote Trace Collector" show me: IOError: [Errno 13] P

how terminate console(not Ctrl-C)

2007-11-21 Thread NoName
Is it possible to interrupt loop (program) by pressing Q key like Ctrl- C? how can i hook user's keypress while program running? thnx -- http://mail.python.org/mailman/listinfo/python-list

Re: about functions question

2007-10-25 Thread NoName
sorry! Yes it's work. What about 2 question? Can i put function after main block? print qq() def qq(): return 'hello' Traceback (most recent call last): File "C:\Python25\projects\indexer\test.py", line 1, in print qq() NameError: name 'qq' is not defined Or onli possible: def main()

about functions question

2007-10-24 Thread NoName
I try it: def b(): ... a() ... def a(): ... b() ... b() it's not work. Is it possible pre-define function like in c++ or place functions code after main block? int a(); int b(); int main () { ... a(); ... } int a() { ... b(); ... } int b() { ... a(); ... } =) sorry for my eng;)

Re: Why?

2007-02-05 Thread NoName
thanx a lot!! On 6 Фев., 12:04, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 05 Feb 2007 21:32:23 -0300, NoName <[EMAIL PROTECTED]> escribio: > > > # -*- coding: cp1251 -*- > > from glob import glob > > > src= "C:\\\\Но

Why?

2007-02-05 Thread NoName
# -*- coding: cp1251 -*- from glob import glob src= "C:\\\\Новая папка\\*.*" print glob(src) ['C:\\\\\xcd\xee\xe2\xe0\xff \xef\xe0\xef\xea\xe0\\ksdjfk.txt', 'C: \\\\\xcd\xee\xe2\xe0\xff \xef \xe0\xef\xea\xe0\\\xeb\xfb\xe2\xee\xe0\xeb\xee\xe0\xeb.txt'] Why not "C:\\\\Новая пап

Re: Random passwords generation (Python vs Perl) =)

2007-01-29 Thread NoName
WOW! :shock: in this case: while 1:i=__import__;print i('binascii').b2a_base64(i('os').urandom(6)),;raw_input() On 30 Янв., 04:06, "Szabolcs Nagy" <[EMAIL PROTECTED]> wrote: > > while > > 1:i=__import__;print''.join(i('random').choice(i('string').letters > > +'1234567890')for x in range(8)),;r

Re: Random passwords generation (Python vs Perl) =)

2007-01-29 Thread NoName
Hmmm.. In the Perl example password generates after user hit ENTER not continously like in Python you wrote... :) i want see various ways to generate passwords even if they some indirect like using BASE64 thanks all p.s. sorry for my eng ;) -- http://mail.python.org/mailman/listinfo/python-

Random passwords generation (Python vs Perl) =)

2007-01-28 Thread NoName
Perl: @char=("A".."Z","a".."z",0..9); do{print join("",@char[map{rand @char}(1..8)])}while(<>); !!generate passwords untill U press ctrl-z Python (from CookBook): from random import choice import string print ''.join([choice(string.letters+string.digits) for i in range(1,8)]) !!generate pass

Re: How can i do this in Python?

2007-01-24 Thread NoName
Thanks;) On 25 Янв., 17:47, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Thursday 25/1/2007 01:25, NoName wrote: > > >perl -ane "print join(qq(\t),@F[0,1,20,21,2,10,12,14,11,4,5,6]).qq(\n)"Must > >be done on a single line? > I'm not sure if I'

How can i do this in Python?

2007-01-24 Thread NoName
perl -ane "print join(qq(\t),@F[0,1,20,21,2,10,12,14,11,4,5,6]).qq(\n)" file.txt -a autosplit mode with -n or -p (splits $_ into @F) -n assume "while (<>) { ... }" loop around program -- http://mail.python.org/mailman/listinfo/python-list