🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.python
2 messages
2 total messages Started by "Krzysztof Kaczk Tue, 29 Jul 2003 14:36
gettext co sie dzieje z funkcja _ ?
#127
Author: "Krzysztof Kaczk
Date: Tue, 29 Jul 2003 14:36
17 lines
497 bytes
Witam
Mam dziwny problem z przestrzenia nazw w pythonie.
Mam dwa modu�y jeden lang w kt�rym znajduj� si� funkcje i operacje zwi�zane
z gettext
W drugim importuje ten modu� i tu pojawia si� problem:
Przy importowaniu jest uruchamiany nast�puj�cy kod
gt = gettext.translation(domain = 'mesg', localedir = 'locale', languages ['pl'])
gt.install()
_ = gt.ugettext

Tyle ze po imporcie nie wida� mojej funkcji   _   tylko oryginaln�   _
moja jest przykryta, w czym problem?




Re: gettext co sie dzieje z funkcja _ ?
#141
Author: "Krzysztof Kaczk
Date: Wed, 30 Jul 2003 11:48
8 lines
246 bytes
Odpowiem sobie sam, jak si� myl� to pro��e o sprostowanie :)
Po prostu wszystkie funckcje zaczynaj�ce si� od _ nie s� importowane do
aktualnej przestrzeni nazw, chyba ze si� za��da tego jawnie czyli
from modul import _cos




Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads