Re: rfc: a self-editing script

2009-10-10 Thread garabik-news-2005-05
Steven D'Aprano wrote: ... > But if you absolutely have to write to the program file, then append your > data to the end of the file (as a comment) and later read that, rather > than modifying the actual code in place. That is, you fetch the > LAST_VERSION by reading the last non-empty line in

Re: #define (from C) in Python

2009-11-13 Thread garabik-news-2005-05
Santiago Romero wrote: > >> > #define STORE_nn_rr(dreg) \ >> >                         r_opl = Z80ReadMem(r_PC); r_PC++;\ >> >                         r_oph = Z80ReadMem(r_PC); r_PC++; \ >> >                         r_tmp = dreg; \ >> >                         Z80WriteMem((r_op),r_tmpl, regs); \

Re: #define (from C) in Python

2009-11-15 Thread garabik-news-2005-05
Santiago Romero wrote: >> Hey, I got 100% with ASM ZX Spectrum emulator on a low end 386 :-) (I do >> not remember the CPU freqeuncy anymore, maybe 25MHz). > > Yes, in ASM a simple 25 or 33Mhz 386 computer was able to emulate > the > Spectrum. At least, under MSDOS, like did Warajevo, Z80, x128 a

Re: python server developer

2009-11-21 Thread garabik-news-2005-05
Bobby wrote: > Hello, > We are looking for Python server developer > location : Hyderabad > Experience : 3 years . > Send me your updated resume with availability for Telephonic interview Hyderabad, India or Hyderabad, Pakistan? (no, I am not going to apply in either case, even if I think I do qu

Re: Python Statements/Keyword Localization

2009-11-25 Thread garabik-news-2005-05
Emanuele D'Arrigo wrote: > Greetings everybody, > > some time ago I saw a paper that used an XSL transformation sheet to > transform (if I remember correctly) a Chinese xml file (inclusive of > Chinese-script XML tags) into an XHTML file. > > More recently you might have all heard how the ICANN

Re: Are there in Python some static web site generating tools like?webgen, nanoc or webby in Ruby ?

2010-03-09 Thread garabik-news-2005-05
KLEIN Stéphane wrote: > Hi, > > Today, I've show this static web site generating tools write in ruby : > > * http://webgen.rubyforge.org/index.html > * http://nanoc.stoneship.org/about/ > * http://webby.rubyforge.org/tutorial/ > > I like this tools, I'm wonder if there are similar tools in Pyth

Re: GIF89A and PIL

2010-03-28 Thread garabik-news-2005-05
Harishankar wrote: > >> Just opening, and then saving the same file with no changes at all, >> resulted in a 72 byte file growing to 920. >> >> I thought it was GIF87a vs GIF89a... but have since come to determine it >> doesn't appear to be. I decided to give PNG a try again, since those >> extr

Re: Is there any module/utility like 'rsync' in python

2010-04-08 Thread garabik-news-2005-05
hiral wrote: > Hi, > > Is there any module/utility like 'rsync' in python. > http://freshmeat.net/projects/pysync/ http://vdesmedt.com/~vds2212/rsync.html -- --- | Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ | | __..--^^^-

Re: Is there any way to minimize str()/unicode() objects memory usage ?[Python 2.6.4] ?

2010-08-06 Thread garabik-news-2005-05
dmtr wrote: > > What I'm really looking for is a dict() that maps short unicode > strings into tuples with integers. But just having a *compact* list > container for unicode strings would help a lot (because I could add a > __dict__ and go from it). > At this point, I'd suggest to use one of th

Re: wikipedia with python

2009-06-22 Thread garabik-news-2005-05
Andre Engels wrote: > On Mon, Jun 22, 2009 at 6:58 PM, zelegolas wrote: >> Let me know if it's the right place to ask. >> >> I'm looking for wiki writen with python where I can import all >> wikipedia site. >> If you have any links please let me know. > > I don't think that's possible. If you wna

Re: Colour of output text

2009-07-10 Thread garabik-news-2005-05
Tim Harig wrote: > On 2009-07-09, Alex Rosslyn wrote: >> I would like to learn a way of changing the colour of a particular >> part of the output text. I've tried the following > On Unix operating systems this would be done through the curses interface: > > http://docs.python.org/library/curses

Re: Queryable Daemon

2009-08-01 Thread garabik-news-2005-05
MRAB wrote: > Justin DeCell wrote: >> Hi All, >> ... >> The only other way I thought >> of would be to write to a file on disk every so often from the daemon >> and just read the from the query process but it seems like there should >> be a more elegant way to do this... >> >> By the way I'

Re: unicode() vs. s.decode()

2009-08-07 Thread garabik-news-2005-05
Thorsten Kampe wrote: > * Steven D'Aprano (06 Aug 2009 19:17:30 GMT) >> What if you're writing a loop which takes one million different lines of >> text and decodes them once each? >> >> >>> setup = 'L = ["abc"*(n%100) for n in xrange(100)]' >> >>> t1 = timeit.Timer('for line in L: line.deco

Re: unicode() vs. s.decode()

2009-08-08 Thread garabik-news-2005-05
Thorsten Kampe wrote: > * garabik-news-2005...@kassiopeia.juls.savba.sk (Fri, 7 Aug 2009 > 17:41:38 + (UTC)) >> Thorsten Kampe wrote: >> > If you increase the number of loops to one million or one billion or >> > whatever even the slightest completely negligi

Re: unicode() vs. s.decode()

2009-08-08 Thread garabik-news-2005-05
Thorsten Kampe wrote: > lines". That *is* *exactly* nothing. > > Another guy claims he gets times between 2.9 and 6.2 seconds when > running decode/unicode in various manifestations over "18 million over a sample of 60 words (sorry for not being able to explain myself clear enough so th

Re: install tarball package Python on Debian, necessary modules not found

2009-08-10 Thread garabik-news-2005-05
Frédéric Léger wrote: > I use Debian Lenny and I tried to install the tarball packaging of the > lastest python realease (http://www.python.org/download/, release > 3.1). After read README file I launch standard Makefile commands. But > at the end of "make" command, I have got this message: > M

Re: create shell history with python

2009-08-12 Thread garabik-news-2005-05
Diez B. Roggisch wrote: > Joel Juvenal Rivera Rivera schrieb: >> I been thinking how to make a 'bash like history shell' in python, >> i don't know if with stdin and stdout i can accomplish this or do i >> need something like curses and stuff like that, anyway im start to >> figure this out. >> Do

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-23 Thread garabik-news-2005-05
In comp.lang.python James Harris wrote: > On 22 Aug, 10:27, David <71da...@libero.it> wrote: ... >> >> What about 2_1011, 8_7621, 16_c26h or 2;1011, 8;7621, 16;c26h ? > > They look good - which is important. The trouble (for me) is that I > want the notation for a new programming language and a

Re: Numeric literals in other than base 10 - was Annoying octal?notation

2009-08-24 Thread garabik-news-2005-05
J. Cliff Dyer wrote: > I had an objection to using spaces in numeric literals last time around > and it still stands, and it still stands in the new one. > Or, we can use U+00A0 NO-BREAK SPACE, once we already have unicode variable names :-) (probably some people would find it difficult to type,

Re: An assessment of the Unicode standard

2009-08-30 Thread garabik-news-2005-05
r wrote: > Some may say well how can we possibly force countries/people to speak/ > code in a uniform manner? Well that's simple, you just stop supporting > their cryptic languages by dumping Unicode and returning to the > beautiful ASCII and adopting English as the universal world language. v>

Re: ANN: dh, the daemon helper

2009-09-09 Thread garabik-news-2005-05
John Kelly wrote: > > dh, the daemon helper ... > dh is its name; a natural companion to sh. > A useful little program, but... this might be OT, but let me point out that the name collides with Debian's debhelper (also invoked as dh) -- -

Re: ImageFont family mojibake

2009-09-12 Thread garabik-news-2005-05
Donn wrote: > On Saturday 12 September 2009 07:55:14 Lie Ryan wrote: >> > f=ImageFont.truetype("FGTshgyo.TTF",1,encoding="utf-8") >> > print f.font.family >> > '?s' >> Are you sure that your terminal (Command Prompt/bash/IDLE/etc) supports >> utf-8 and that it is properly set up to display

Re: Webcam support

2010-08-26 Thread garabik-news-2005-05
Navkirat Singh wrote: > Hi Guys, > > I am programming a web centric app in python for customer, which needs > to click a snap of the customer and forward the pic to the server via > POST. I am not very familiar with how I can achieve this. Any > direction would be much appreciated. > For somethi

Re: Using Python for a demonstration in historical linguistics

2010-11-06 Thread garabik-news-2005-05
Dax Bloom wrote: ... > I look to have > python take a dictionary file or a string input and replace the > consonants in it with the Grimm rule equivalent. ... > How easy is it to find the python functions > to do that? > http://code.activestate.com/recipes/81330-single-pass-multiple-replace/ --

Re: Where to start in the field of AI with Python

2017-03-19 Thread garabik-news-2005-05
Robert O'Shea wrote: > I just want to get into the basics for the moment, eventually getting into > stuff like machine learning and NLP (Natural Language Processing). You cannot do wrong by starting with NLTK (https://www.nltk.org/) and scikit (http://scikit-learn.org/) --

Re: Re Wide Unicode build for Windows available somewhere?

2005-01-13 Thread News M Claveau /Hamster-P
Hi ! See inconvcodec wrapper, at : http://cjkpython.berlios.de/ (not for Python 2.4) -- http://mail.python.org/mailman/listinfo/python-list

Re: who can tell me BASICS of Python

2005-02-05 Thread News M Claveau /Hamster-P
Troll ? -- http://mail.python.org/mailman/listinfo/python-list

Re: executing VBScript from Python and vice versa

2005-02-05 Thread News M Claveau /Hamster-P
Cool. :-) And it's OK, also, for JScript (MS-Javascript) : import win32com.client vbs = win32com.client.Dispatch("ScriptControl") vbs.language = "vbscript" scode="""Function mul2(x) mul2=x*2 End Function """ vbs.addcode(scode) print vbs.eval("mul2(123)") js = win32com.client.Dispatch("ScriptC

Re: writing unicode apps in python - some beginner questions.

2005-02-13 Thread News M Claveau /Hamster-P
Hi! XP unicode view depend, also, of the uniscribe motor version. The last version come with SP-2. Other element : is the font "Arial Unicode MS" installed ? @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-10 Thread News M Claveau /Hamster-P
Hi ! But, if Python is as much sensitive to the passage of an external software, version 6 (obsolete) with a version 7 (obsolete also), it is worrying. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

PIL : possible ?

2004-12-12 Thread News M Claveau /Hamster-P
PIL PI = Py (in french, it's the same 'sound') => PIL = (Py)L and Py become P24 => PIL = (P24)L however, 'L' Christmas finishes It (in french, Christmas = NoëL) and '(P24)' can to do readed like "Prepare, 24, for" => PIL = (P24)L => Prepare, 24 for NoëL (Christmas) Therefore, I hope that Fredick

Re: IconvCodec, UTF-32 & P4 ?

2005-03-21 Thread News M Claveau /Hamster-P
Hi ! Thanks My e-mail : [EMAIL PROTECTED] @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

<    1   2