Re: [Python-Dev] Update Shell profile for ZSH on Mac OS
On 26Aug2010 14:37, Sylvain Mora wrote: | I use python for more than a year now and i bought a MacBook in July. I | installed Python 2.7 using the .dmg archive on the official website. After | the installation I launched the Update Shell Profile.command script, | but it doesn't work with ZSH. That's why I have write a small patch to | be able to use this script with ZSH shell. | | He simply set the path fo zsh shell. [...] | +zsh) | +PR="${HOME}/.zshenv" The equivalent of .profile/.bash_profile in zsh is the .zprofile file. The .zshenv is not where your account setup should live and is not what should be used in this patch. Cheers, -- Cameron Simpson DoD#743 http://www.cskk.ezoshosting.com/cs/ Shape without form, shade without colour, Paralysed force, gesture without motion;- T.S. Eliot, _The Hollow Men_ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Fwd: i18n
-On [20100825 20:03], Alcino Dall'Igna Jr (adi...@gmail.com) wrote: >If (3) could enter the main trunk it would be a great help by itself. >In this case access to international help is useless due the original >difficulties with the language, remember I'm talking about kids >mainly, and 1st stage to programming for youngsters. There are two >main ways to do this, one is using codes as indicated, but I prefer >using the more generally accepted and used, with messages catalogs >using gettext and the like. Haven't been able to respond sooner, but maybe one thing was not so clear about what I wrote since you misrepresented it here. What I was referring to was this scenario: ImportError: No module named blah would become in nl_NL something like: ImportError: Geen module genaamd blah Now, if ImportError (or any other error) has only one text, then I could copy-paste that error message easily and people would understand contextually from the error which it is, despite the localization. However, if there's multiple possible messages, how is someone else supposed to figure out what my localized message means in order to help me out? In this case I think an approach with a number inventory system works out well, e.g.: ImportError (3): Geen module genaamd blah And the 3 would be a stable number for this particular message. More examples: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sag1/html/sag1/sag1485.htm Oracle: en_US: ORA-00942: table or view does not exist ja_JP: ORA-00942: 表またはビューが存在しません。 -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック ヴァン デル ウェルヴェン http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B When you meet a master in the street, do not speak, do not be silent. Then how will you greet him? ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Fwd: i18n
On Wed, Aug 25, 2010 at 10:42 PM, Anders J. Munch wrote: > This could be done as a free-standing library, there's no reason to > involve core CPython. Just do message translation at a later stage, > e.g. in a custom sys.excepthook. It could be done as a free standing library, but if this idea gets traction, it might be nice to incorporate it into the standard library, so inexperienced Pythoneers wouldn't have to do anything more onerous than "import localizedexceptions" in their interactive console. Using easy_install or whatever to add a new module can be tough in, say, a school environment where you don't have control of the machines you are using. I suppose the sensible thing to do is to recruit people for an independent project first and see if it gains traction. If it does, then pull it into the standard library a few years down the road. Incidentally, on the topic of translating keywords and such, it looks like one project to do so, Chinese Python, hasn't been updated since 2004: http://www.chinesepython.org/cgi_bin/cgb.cgi/news/news.html I just don't think there's much demand for translating the keywords. -- Carl Johnson ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Fwd: i18n
> > Incidentally, on the topic of translating keywords and such, it looks > like one project to do so, Chinese Python, hasn't been updated since > 2004: http://www.chinesepython.org/cgi_bin/cgb.cgi/news/news.html > > I just don't think there's much demand for translating the keywords. > > I really want to to beg everybody to never localize the keywords. Microsoft did this with their Word and Excel-Functions, and it is a source of frustration. While learning any programming language, you're learning new concepts anyway. new concepts = new words. Harald -- GHUM Harald Massa persuadere et programmare Harald Armin Massa Spielberger Straße 49 70435 Stuttgart 0173/9409607 no fx, no carrier pigeon - Using PostgreSQL is mostly about sleeping well at night. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Update Shell profile for ZSH on Mac OS
Hi ! > Ronald Oussoren. If you select Components -> Macintosh in the bug > tracker when opening a new bug it will be assigned automatically; if > not, someone will see it and update appropriately. Thank you, I have never used a bug tracker. The next time i shall know. Le 27 août 2010 à 10:03, Cameron Simpson a écrit : > On 26Aug2010 14:37, Sylvain Mora wrote: > | I use python for more than a year now and i bought a MacBook in July. I > | installed Python 2.7 using the .dmg archive on the official website. After > | the installation I launched the Update Shell Profile.command script, > | but it doesn't work with ZSH. That's why I have write a small patch to > | be able to use this script with ZSH shell. > | > | He simply set the path fo zsh shell. > [...] > | +zsh) > | +PR="${HOME}/.zshenv" > > The equivalent of .profile/.bash_profile in zsh is the .zprofile file. > The .zshenv is not where your account setup should live and is not what > should be used in this patch. You are right, I have the bad habit to use this file. I am going to modify the patch before putting him on the tracker. Best regards, Sylvain ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Summary of Python tracker Issues
ACTIVITY SUMMARY (2010-08-20 - 2010-08-27) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues stats: open2560 (+41) closed 18924 (+114) total 21484 (+52) Open issues with patches: 1093 Issues opened (41) == #7005: ConfigParser does not handle options without values http://bugs.python.org/issue7005 reopened by fdrake #8589: test_warnings.CEnvironmentVariableTests.test_nonascii fails un http://bugs.python.org/issue8589 reopened by flox #9287: Minor fix in test_file2k.OtherFileTests.testOpenDir http://bugs.python.org/issue9287 reopened by eric.araujo #9651: ctypes crash when writing zerolength string buffer to file http://bugs.python.org/issue9651 opened by andbj #9652: Tidy argparse default output http://bugs.python.org/issue9652 opened by Tom.Browder #9653: New default argparse output to be added http://bugs.python.org/issue9653 opened by Tom.Browder #9654: merge PC/getpathp.c into Modules/getpath.c http://bugs.python.org/issue9654 opened by amaury.forgeotdarc #9660: PEP 383: socket module doesn't handle undecodable protocol or http://bugs.python.org/issue9660 opened by baikie #9662: ctypes not building under OS X because of ffi_closure_free not http://bugs.python.org/issue9662 opened by brett.cannon #9663: importlib should exclusively open bytecode files http://bugs.python.org/issue9663 opened by brett.cannon #9664: Make gzip module not require that underlying file object suppo http://bugs.python.org/issue9664 opened by doko #9665: Buid issues on Cygwin - _curses, _curses_panel, and _io http://bugs.python.org/issue9665 opened by brian.curtin #9667: NetBSD curses KEY_* constants http://bugs.python.org/issue9667 opened by bgreen #9668: strings in json.dump in '' instead of "" http://bugs.python.org/issue9668 opened by refresh #9669: regexp: zero-width matches in MIN_UNTIL http://bugs.python.org/issue9669 opened by arigo #9670: Exceed Recursion Limit in Thread http://bugs.python.org/issue9670 opened by jaredlang #9671: test_executable_without_cwd fails: AssertionError: 1 != 47 http://bugs.python.org/issue9671 opened by srid #9672: test_xpickle fails on Windows: invokes pythonx.y instead of py http://bugs.python.org/issue9672 opened by srid #9673: Entry Widget Not Editable under Windows XP http://bugs.python.org/issue9673 opened by firatozgul #9674: make install DESTDIR=/home/blah fails when the prefix specifie http://bugs.python.org/issue9674 opened by mailtome #9675: segfault: PyDict_SetItem: Assertion `value' failed. http://bugs.python.org/issue9675 opened by flox #9677: "Global Module Index" link dead http://bugs.python.org/issue9677 opened by brett.cannon #9678: uuid._ifconfig_getnode can't work on NetBSD http://bugs.python.org/issue9678 opened by shimizukawa #9679: unicode DNS names in urllib, urlopen http://bugs.python.org/issue9679 opened by loewis #9682: socket.create_connection error message for domain subpartwith http://bugs.python.org/issue9682 opened by r.david.murray #9683: Dead code in py3k inspect module http://bugs.python.org/issue9683 opened by Trundle #9685: tuples should remember their hash value http://bugs.python.org/issue9685 opened by dtorp #9686: asyncore infinite loop on raise http://bugs.python.org/issue9686 opened by mmw #9687: dbmmodule.c:dbm_contains fails on 64bit big-endian (test_dbm.p http://bugs.python.org/issue9687 opened by dmalcolm #9691: sdist includes files that are not in MANIFEST.in http://bugs.python.org/issue9691 opened by ronaldoussoren #9692: UnicodeDecodeError in ElementTree.tostring() http://bugs.python.org/issue9692 opened by uis #9693: asynchat push_callable() patch http://bugs.python.org/issue9693 opened by giampaolo.rodola #9694: argparse: Default Help Message Lists Required Args As Optional http://bugs.python.org/issue9694 opened by benschmaus #9695: Return from generators in Python 3.2 http://bugs.python.org/issue9695 opened by Yury.Selivanov #9696: xdrlib's pack_int generates DeprecationWarnings for negative i http://bugs.python.org/issue9696 opened by dep #9698: When reusing an handler, urllib(2)'s digest authentication fai http://bugs.python.org/issue9698 opened by Luci.Stanescu #9699: invalid call of Windows API _popen() generating The input line http://bugs.python.org/issue9699 opened by sorin #9700: semaphore errors on AIX 6.1 http://bugs.python.org/issue9700 opened by sable #9701: Update ZSH profile on Mac OS installation http://bugs.python.org/issue9701 opened by solevis #1172011: BaseCookie should call value_decode from __getitem__ http://bugs.python.org/issue1172011 reopened by r.david.murray #877904: freeze: problems excluding site http://bugs.python.org/issue877904 reopened by r.david.murray Most recent 15 issues with no replies (15) == #9701: Update ZSH profile on Mac OS instal
Re: [Python-Dev] r84329 - python/branches/py3k/Lib/importlib/_bootstrap.py
On Thu, 26 Aug 2010 23:07:13 +0200 (CEST) brett.cannon wrote: > Author: brett.cannon > Date: Thu Aug 26 23:07:13 2010 > New Revision: 84329 > > Log: > OSError is the exception raised when one tries to create a directory that > already exists, not IOError. It's probably simpler to catch all of them at once using EnvironmentError. (and see PEP 3151 :-)) Regards Antoine. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] r84329 - python/branches/py3k/Lib/importlib/_bootstrap.py
On Fri, Aug 27, 2010 at 10:32, Antoine Pitrou wrote: > On Thu, 26 Aug 2010 23:07:13 +0200 (CEST) > brett.cannon wrote: >> Author: brett.cannon >> Date: Thu Aug 26 23:07:13 2010 >> New Revision: 84329 >> >> Log: >> OSError is the exception raised when one tries to create a directory that >> already exists, not IOError. > > It's probably simpler to catch all of them at once using > EnvironmentError. It would be less code, but I like the clear separation. > (and see PEP 3151 :-)) Oh, I want PEP 3151 as this little bit of code has shown me. As soon as the PEP goes in I will clean this code up. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Summary of Python tracker Issues
On 8/27/2010 12:07 PM, Python tracker wrote: Issues stats: open2560 (+41) closed 18924 (+114) I believe this is at least the 4th consecutive report in which closures outnumber opens. Total open is, at the moment, 2493, down from about 2700, or maybe more, a couple of months ago. The simplification of having 2.7 on maintenance and 2.6 out of bug maintenance helps. -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Released: Python 2.6.6
Am 25.08.2010 17:32, schrieb Éric Araujo: >> The question really is whether there is any chance that they will get >> released, in some form. There won't be further binary releases (at least >> not from python.org), so there definitely won't be a CHM release. > > I think that the most important release is docs.python.org/2.6, > regardless of python.org/OS-specific downloadable doc packages. Which is not updated from the branch anymore. You will see that it redirects to /releases/2.6.6, which is the docs released with 2.6.6. > If people do like haypo and use the most recent docs instead of the > version-specific ones, there’s indeed no need to bother with porting doc > fixes and improvements. If people use docs.py.org/2.6 as a reference for > some years while 2.7 is not on their systems, it may be worthwhile to > keep updating those docs. I do think that most people just use docs.python.org, and since we clearly mark everything that is new in 2.7 there is no harm in doing so either. I don't think I'll want to bother with porting doc fixes to the 2.6 branch. Georg -- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Return from generators in Python 3.2
Ron Adam wrote: I wonder if "yield from" may run into pythons stack limit? My current implementation wouldn't, because nested yield-froms don't result in nested activations of Python frames. But... if __name__ == "__main__": print(factoral(1)) # < extra zero too! But if I add another zero, it begins to slow to a crawl as it uses swap space. ;-) How would a "yield from" version compare? ... there is still a Python frame in existence for each active invocation of the generator, so it would probably use about the same amount of memory. -- Greg ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Released: Python 2.6.6
Thanks everyone for the feedback. I think my question has got good answers (usage patterns, versionchanged/versionadded, lack of releases, opinion of the doc editor), so it seems good for our users and for developers to let the 2.6 docs in peace. Regards, and a toast to 2.6.6! ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Released: Python 2.6.6
> Regards, and a toast to 2.6.6! Prost! Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com