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
> 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
> 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
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 -*-
> >>
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
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
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
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
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()
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;)
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:\\\\Но
# -*- 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:\\\\Новая пап
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
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-
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
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'
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
17 matches
Mail list logo