Re: [Python-Dev] Locale-specific formatting

2010-12-18 Thread Oleg Broytman
ble. ICU is perhaps the only way around the problem. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.

Re: [Python-Dev] Locale-specific formatting

2010-12-19 Thread Oleg Broytman
On Sat, Dec 18, 2010 at 06:21:24PM -0500, Terry Reedy wrote: > On 12/18/2010 10:33 AM, Oleg Broytman wrote: > >> This is quite a known problem, not specific to Python. Locale >> settings are global for a process, and this is one of the thousands >> reasons why locale i

Re: [Python-Dev] Locale-specific formatting

2010-12-20 Thread Oleg Broytman
On Mon, Dec 20, 2010 at 01:09:19AM +0100, ??ric Araujo wrote: > Le 18/12/2010 16:33, Oleg Broytman a ??crit : > >This is quite a known problem, not specific to Python. Locale > > settings are global for a process, and this is one of the thousands > > reasons why lo

[Python-Dev] phd.pp.ru => phdru.name

2010-12-22 Thread Oleg Broytman
ot;phdru" two times - the address is an alias for "phd"). The new domain is already delegated, email and site works. I'm working on changing all my email subscriptions. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programm

Re: [Python-Dev] devguide: Cover how to (un-)apply a patch.

2011-01-18 Thread Oleg Broytman
; It works with other version control systems and provides me the opportunity > to save a copy I can restore later. "hg revert" saves files before reverting as *.orig. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don'

Re: [Python-Dev] [concurrentrotatingfilehandler]: How are the log files split up ?

2011-01-18 Thread Oleg Broytman
___ > 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/phd%40phdru.name Oleg. -- Oleg Broytmanhttp://phdru.na

Re: [Python-Dev] Import and unicode: part two

2011-01-24 Thread Oleg Broytman
ith koi8-r locale I use codepage=cp866,iocharset=koi8-r (cp866 is OEM encoding for cp1251 ANSI). Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. _

Re: [Python-Dev] (no subject)

2011-01-24 Thread Oleg Broytman
proper mail - with a subject, with a properly formatted text, not html. http://www.catb.org/~esr/faqs/smart-questions.html Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSU

Re: [Python-Dev] Import and unicode: part two

2011-01-26 Thread Oleg Broytman
ion for all these problems, with a price, of course. Let's use utf8+base64. Base64 uses a very restricted subset of ASCII and filenames will never be interpreted whatever filesystem encodings would be. The price is users loose standard OS tools like ls and find. I am partially joking, of course,

Re: [Python-Dev] xmlrpclib and communication verbosity

2011-02-02 Thread Oleg Broytman
On Wed, Feb 02, 2011 at 03:52:17PM +0200, Erez Sh wrote: > Also, ServerProxy should accept an optional output file (=a class with > write,writelines methods), which will be the target of all prints. Why not logging? Oleg. -- Oleg Broytmanhttp://phdru.name/

Re: [Python-Dev] svn outage on Friday

2011-02-15 Thread Oleg Broytman
g write access during > > that time. The outage shouldn't be longer than an hour. > > It's time to move to Mercurial! :-) Never do two upgrades at once! Especially on Fridays! Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name

Re: [Python-Dev] Module version variable

2011-03-22 Thread Oleg Broytman
On Tue, Mar 22, 2011 at 05:30:09PM -0400, Barry Warsaw wrote: > a file called subproc.py posted to comp.lang.python > by Ken Manheimer. Can you believe - I still use the module?! (-: Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Progr

Re: [Python-Dev] Attributes access with dict

2011-03-24 Thread Oleg Broytman
data (dict keys) and program > variables (attributes). Me too. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Pyth

Re: [Python-Dev] What if replacing items in a dictionary returns the new dictionary?

2011-04-29 Thread Oleg Broytman
1': 3} > x == {'key1': 1} # Original variable is unchanged You can implement this in your own subclass of dict, no? Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. _

Re: [Python-Dev] Commit messages: please avoid temporal ambiguity

2011-05-10 Thread Oleg Broytman
t; - that what I did, and "compare" is what the code does. (I used an excerpt from above only for the example, not to correct something.) Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without R

Re: [Python-Dev] Implement Aspect-oriented programming

2011-06-12 Thread Oleg Broytman
Hi! This mailing list is to work on developing Python (discussing bugs and patches). There is python-ideas mailing list to discuss possible future improvements. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just

Re: [Python-Dev] Issue10403 - using 'attributes' instead of members in documentation

2011-06-27 Thread Oleg Broytman
On Mon, Jun 27, 2011 at 10:24:28AM +0200, Antoine Pitrou wrote: > FWIW, I tend to understand "members" as "methods + attributes", which makes > it a nice term to use for that purpose. That's my feeling too. Oleg. -- Oleg Broytmanhttp://phdru.n

Re: [Python-Dev] making socket.getaddrinfo use cached dns

2011-07-07 Thread Oleg Broytman
rry over these optional arguments to higher level > libraries like mechanize, urllib, httplib etc. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] making socket.getaddrinfo use cached dns

2011-07-16 Thread Oleg Broytman
On Sat, Jul 16, 2011 at 04:12:45PM +0200, Maciej Fijalkowski wrote: > On Thu, Jul 7, 2011 at 7:59 PM, Oleg Broytman wrote: > >   We are sorry but we cannot help you. This mailing list is to work on > > developing Python (adding new features to Python itself and fixing bugs); >

Re: [Python-Dev] knee.py import hook in 2.6

2011-07-19 Thread Oleg Broytman
thy D. Kadich wrote: > I'm trying to use the import hook in Python2.6, but I'm having a problem. It > doesn't work for numpy. My error is such: [skip] > > TypeError: import_hook() takes at most 4 arguments (5 given) Seems like import_hook is from an older version

Re: [Python-Dev] PyPI went down

2011-08-30 Thread Oleg Broytman
On Tue, Aug 30, 2011 at 07:30:01PM +0400, Oleg Broytman wrote: >PyPI went down More information: ports 80 and 443 are open, the servers performs SSL handshake but timeouts on HTTP requests (with or without SSL). Oleg. -- Oleg Broytmanhttp://phdru.name/

Re: [Python-Dev] PyPI went down

2011-08-30 Thread Oleg Broytman
It is back up. I am very sorry for the fuss. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org

[Python-Dev] PyPI went down

2011-08-30 Thread Oleg Broytman
Hello! I released the first package of two and PyPI went down while I was preparing to release the second. I hope it wasn't me? Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB with

Re: [Python-Dev] genious hack in python

2011-09-23 Thread Oleg Broytman
and not by monkey-patching traceback.py, probably format_list and format_exception_only? Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-D

Re: [Python-Dev] unittest missing assertNotRaises

2011-09-27 Thread Oleg Broytman
What if I want to assert my test raises neither OSError nor IOError? Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Pyt

Re: [Python-Dev] unittest missing assertNotRaises

2011-09-28 Thread Oleg Broytman
On Wed, Sep 28, 2011 at 09:43:13AM +1000, Steven D'Aprano wrote: > Oleg Broytman wrote: > >On Tue, Sep 27, 2011 at 07:46:52PM +0100, Wilfred Hughes wrote: > >>+def assertNotRaises(self, excClass, callableObj=None, *args, **kwargs): > >>+""

Re: [Python-Dev] Generate Dynamic lists

2011-10-20 Thread Oleg Broytman
hoices = self.choice_method(form_index) > > def choice_method(self, form_index): > > list = [] > > item_list = [] > > criteria_list = [] > > criteria_length = len(sub_criterias)-1 > > for criteria_index in range(criteria_length): > > counter = 1 > > i

Re: [Python-Dev] Deprecation policy

2011-11-29 Thread Oleg Broytman
umber components > are called major, minor, micro, releaselevel and serial, in this > order? So when the minor version component is increased it's a major > version increment? :) When the major version component is increased it's a World Shattering Change, isn't it?! ;-)

Re: [Python-Dev] Fwd: Anyone still using Python 2.5?

2011-12-21 Thread Oleg Broytman
32- and 64-bit versions of Python and libraries, and there are about 70 copies of it at client sites so it'd be very hard to recompile and adapt it to Python 2.6, test and upgrade all clients. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programm

Re: [Python-Dev] reading multiline output

2011-12-22 Thread Oleg Broytman
Smith wrote: > I have started HandBrakeCLI using subprocess.popen but the output is > multiline and not terminated with \n so i am not able to read it using > readline() while the HandBrakeCLI is running. kindly suggest some > alternative. i have attached the output in a file. Ol

Re: [Python-Dev] descriptor as instance attribute

2012-01-09 Thread Oleg Broytman
download/Descriptor.htm: ...transforms b.x into type(b).__dict__['x'].__get__(b, type(b)).. Please note the first type(b). Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class

2012-01-10 Thread Oleg Broytman
paspa...@noos.fr wrote: > Hello,I am trying to send a tuple to a method of a python class Also please don't send html-only mail. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GO

Re: [Python-Dev] Python C API: Problem sending tuple to a method of a python Class

2012-01-11 Thread Oleg Broytman
f them doesn't actually *type* the message ;) Certainly, no. :0r mail/misc/python-dev And even this command is in vim history, I don't type it, just press :0 ;-) Sometimes I add something useful to the OP but this time I didn't - I just haven't got any helpful info

Re: [Python-Dev] #include "Python.h"

2012-01-29 Thread Oleg Broytman
ince they are stripped out after? > > Thanks, > Andrea Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing li

Re: [Python-Dev] steps to solve bugs

2012-03-08 Thread Oleg Broytman
omplete, answer there. See http://www.python.org/community/ for other lists/news groups/fora. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. __

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-21 Thread Oleg Broytman
ithout > forcing that preference on the rest of us. Seconded. My display is 1920x1200 but I use very large fonts and I'm satisfied with line lengths. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-21 Thread Oleg Broytman
have the same background. Bold font and/or a different foreground color would be better, in my opinion. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___

Re: [Python-Dev] Playing with a new theme for the docs

2012-03-21 Thread Oleg Broytman
Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubsc

Re: [Python-Dev] Playing with a new theme for the docs, iteration 2

2012-03-25 Thread Oleg Broytman
On Sun, Mar 25, 2012 at 08:34:44AM +0200, Georg Brandl wrote: > http://www.python.org/~gbrandl/build/html2/ Perfect! I like it! Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB withou

Re: [Python-Dev] an alternative to embedding policy in PEP 418 (was: PEP 418: Add monotonic clock)

2012-04-04 Thread Oleg Broytman
ag in (THIS, THAT): try: clock = get_clock(flag) except: pass else: break else: raise ValueError('Cannot get clock, tried THIS and THAT') Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name

Re: [Python-Dev] an alternative to embedding policy in PEP 418 (was: PEP 418: Add monotonic clock)

2012-04-04 Thread Oleg Broytman
On Wed, Apr 04, 2012 at 11:03:02AM -0700, Ethan Furman wrote: > Oleg Broytman wrote: > > . Pythonic equivalent of "get_clock(THIS) or get_clok(THAT)" is > > > >for flag in (THIS, THAT): > >try: > >clock = get_clock(flag) > >exce

Re: [Python-Dev] an alternative to embedding policy in PEP 418 (was: PEP 418: Add monotonic clock)

2012-04-04 Thread Oleg Broytman
On Wed, Apr 04, 2012 at 12:52:00PM -0700, Ethan Furman wrote: > Oleg Broytman wrote: > >On Wed, Apr 04, 2012 at 11:03:02AM -0700, Ethan Furman wrote: > >>Oleg Broytman wrote: > >>> . Pythonic equivalent of "get_clock(THIS) or get_clok(THAT)" is > >

Re: [Python-Dev] an alternative to embedding policy in PEP 418 (was: PEP 418: Add monotonic clock)

2012-04-05 Thread Oleg Broytman
On Thu, Apr 05, 2012 at 10:06:38PM +0900, Stephen J. Turnbull wrote: > On Thu, Apr 5, 2012 at 8:05 AM, Oleg Broytman wrote: > >   Well, I am partially retreat. "Errors should never pass silently. > > Unless explicitly silenced." get_clock(FLAG, on_error=None) could retu

Re: [Python-Dev] an alternative to embedding policy in PEP 418 (was: PEP 418: Add monotonic clock)

2012-04-05 Thread Oleg Broytman
On Thu, Apr 05, 2012 at 11:45:06PM +0900, Stephen J. Turnbull wrote: > On Thu, Apr 5, 2012 at 10:34 PM, Oleg Broytman wrote: > >   Why doesn't open() return None for a non-existing file? or > > socket.gethostbyname() for a non-existing name? > > That's not an answe

Re: [Python-Dev] an alternative to embedding policy in PEP 418 (was: PEP 418: Add monotonic clock)

2012-04-05 Thread Oleg Broytman
On Thu, Apr 05, 2012 at 07:22:17PM +0400, Oleg Broytman wrote: > On Thu, Apr 05, 2012 at 11:45:06PM +0900, Stephen J. Turnbull wrote: > > find it > > hard to imagine use cases where "file = open(thisfile) or > > open(thatfile)" makes sense. Not even for the case wh

Re: [Python-Dev] an alternative to embedding policy in PEP 418 (was: PEP 418: Add monotonic clock)

2012-04-05 Thread Oleg Broytman
t; for 'open'. May be we do. Depends on the usage patterns. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list

Re: [Python-Dev] an alternative to embedding policy in PEP 418 (was: PEP 418: Add monotonic clock)

2012-04-05 Thread Oleg Broytman
*not* raise a NotFound exception. But open() raises IOError. ''.find('a') returns -1 but ''.index('a') raises ValueError. So we can argue in circles both ways, there are too many arguments pro and contra. Python is just too inconsistent to be con

Re: [Python-Dev] an alternative to embedding policy in PEP 418

2012-04-06 Thread Oleg Broytman
ue "AttributeError: 'NoneType' object has no attribute 'clock'". Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. __

Re: [Python-Dev] [RFC] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-16 Thread Oleg Broytman
On Mon, Apr 16, 2012 at 12:38:41PM +0200, Victor Stinner wrote: > Bikeshedding is maybe a common issue with the discussion around time > function? :-) Perhaps because everyone of us lives in a different Time-Space Continuum? ;-) Oleg. -- Oleg Broytmanhttp://phdr

Re: [Python-Dev] [Python-checkins] cpython: Fix #14600. Correct reference handling and naming of ImportError convenience

2012-04-18 Thread Oleg Broytman
gs = PyTuple_New(1); > > + if (args == NULL) > > +return NULL; > > + > > + kwargs = PyDict_New(); > > + if (args == NULL) > > +return NULL; Shouldn't the second test be if (kwargs == NULL) ??? Oleg. -- Oleg Broytmanhttp://

Re: [Python-Dev] Suggested addition to PEP 8 for context managers

2012-04-19 Thread Oleg Broytman
; >team or individual may make different choices? I???m not a native speaker > >and > >I???m not sure about the intended meaning. > > If I change that phrase to "Use your own judgement" does that help? Yes, in my opinion. Oleg. -- Oleg Broytman

Re: [Python-Dev] netiquette on py-dev

2012-04-24 Thread Oleg Broytman
I direct people to comp.lang.python). My MUA has 3 reply commands - reply to the author, group reply (reply to all) and list reply (mailing lists are configured) so it's easy for me to choose which way I'm replying. Oleg. -- Oleg Broytmanhttp://phdru.name/

Re: [Python-Dev] Debian wheezy, amd64: make not finding files for bz2 and other packages

2012-05-04 Thread Oleg Broytman
les] libbz2-dev Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/pyt

Re: [Python-Dev] Python 3.3 cannot import BeautifulSoup but Python 3.2 can

2012-05-07 Thread Oleg Broytman
installed the Debian package > python3-bs4 (BeautifulSoup4 for Python3). I also downloaded a "clone" > developmental copy of 3.3. > > Python3.3a3 cannot find module bs4. Could it be bs4 is installed in python3.2-specific path and hence it's not in python3.3 sys.path? O

Re: [Python-Dev] How to build a browser in Paython. cannot import webkit & object.

2012-05-26 Thread Oleg Broytman
Mr.T Beppu" wrote: > I think that I will make a browser in Official Python (not MacPorts > Python). > What should I do in order to install Webkit for Official Python (not > MacPorts Python) ? Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name

Re: [Python-Dev] Cannot find the main Python library during installing some app.

2012-06-21 Thread Oleg Broytman
ge varies among them. > This is the key. You have to install the development version of the Python package *for your distribution*, not python from sources. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Prog

Re: [Python-Dev] import too slow on NFS based systems

2012-06-21 Thread Oleg Broytman
in the past, if not, and I come > with a working solution for Unix (at least Linux/Freebsd) will it be > concidered. I'm sure it'll be considered providing that the solution doesn't slow down local FS access. Oleg. -- Oleg Broytmanhttp://ph

Re: [Python-Dev] Add os.path.resolve to simplify the use of os.readlink

2012-06-21 Thread Oleg Broytman
can be traversed during pathname resolution: 8 The constant _POSIX_SYMLOOP_MAX from unistd.h: #define _POSIX_SYMLOOP_MAX 8 Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB wit

Re: [Python-Dev] os.path.exists() / os.path.isdir() inconsistency when dealing with gvfs directories

2012-06-27 Thread Oleg Broytman
nted without something like "-o allow_other" or "-o allow_root": root@nb # ls /home/phd/mnt/net ls: cannot access /home/phd/mnt/net: Permission denied Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die,

Re: [Python-Dev] Bitbucket mirror?

2012-06-28 Thread Oleg Broytman
n't find it now. Can someone confirm and/or > nudge me in the right direction, please? This one? https://bitbucket.org/mirror/python-py3k Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't di

Re: [Python-Dev] Edits to Metadata 1.2 to add extras (optional dependencies)

2012-08-28 Thread Oleg Broytman
lemented and used. 1. https://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing

Re: [Python-Dev] Edits to Metadata 1.2 to add extras (optional dependencies)

2012-08-28 Thread Oleg Broytman
On Tue, Aug 28, 2012 at 08:19:08PM +0200, "\"Martin v. L?wis\"" wrote: > Am 28.08.12 19:15, schrieb Oleg Broytman: > >> The RFC database itself has expiration dates on specifications, > >> namely on I-D documents (internet drafts). The expire 6 months >

Re: [Python-Dev] [RELEASED] Python 3.3.0

2012-09-30 Thread Oleg Broytman
nteresting to see tables like these for Python. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org ht

Re: [Python-Dev] [RELEASED] Python 3.3.0

2012-10-02 Thread Oleg Broytman
On Mon, Oct 01, 2012 at 11:50:10PM +0200, Christian Heimes wrote: > Am 30.09.2012 14:01, schrieb Oleg Broytman: > >Many kudos to the team and to all contributors! > > > >Linux Weekly News regularly publishes tables "Who done what in Linux > > Kernel&

Re: [Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows

2012-10-22 Thread Oleg Broytman
d) sys.path. And nothing else. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python

Re: [Python-Dev] Who I am

2012-10-25 Thread Oleg Broytman
project. > > I gonna use python for my Master Degree in Computer Sciences. > > Thanks > Jose Figueroa Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___

Re: [Python-Dev] Anyone have a Universal setter example?

2012-10-26 Thread Oleg Broytman
to post usage questions regarding the Python C > API to this list like the questions below? I think not until you ask a question in python-list/comp.lang.python and don't get any reply. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Progr

Re: [Python-Dev] performance of {} versus dict()

2012-11-14 Thread Oleg Broytman
x27;z':3, > > ... > > } > > Hey, it makes me a little sad that dict breaks convention by allowing > the use of unquoted characters (which everywhere else looks like > variable names) just for a silly typing optimization. It doesn't. It's a cal

Re: [Python-Dev] performance of {} versus dict()

2012-11-14 Thread Oleg Broytman
o > use variables as the keys, rather than requiring (effectively) literal > strings. But it does make a dict literal that much more "noisy" than > the constructor. On the other had it's more powerful. You can write {'cl

Re: [Python-Dev] Generally bored by installation

2012-11-15 Thread Oleg Broytman
fer a lot of pain -- code death and all that. Try to lessen user's pain, but never expect a piece of software to become perfect once, for all and forever. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB with

Re: [Python-Dev] pss (was: Generally bored by installation)

2012-11-16 Thread Oleg Broytman
\+ 2>/dev/null > > > Use pss ;-) [http://pypi.python.org/pypi/pss] Hardly. I am proficient in find+grep. And pss is underdocumented. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] Generally bored by installation

2012-11-16 Thread Oleg Broytman
#x27;{}' \+ to be quite fast. In my opinion all those small utilities are pets of their authors and they solve their problems quite good... but not mine. GNU utilities are used by a huge number of people and solve much wider problems much better. Though not necessary in a much more

Re: [Python-Dev] pss

2012-11-16 Thread Oleg Broytman
On Fri, Nov 16, 2012 at 01:20:17PM -0800, Eli Bendersky wrote: > On Fri, Nov 16, 2012 at 6:25 AM, Oleg Broytman wrote: > >And pss is underdocumented. > > > Even reading > https://bitbucket.org/eliben/pss/wiki/Usage#!usage-samplescombined Compare your page with

Re: [Python-Dev] pss

2012-11-16 Thread Oleg Broytman
On Fri, Nov 16, 2012 at 02:35:13PM -0800, Guido van Rossum wrote: > Oleg, this is inappropriate for python-dev. It's also a bit > uncivilized and unkind. Shame on me! Please, everyone, take my sincerest apology! I'm stopping now. Oleg. -- Oleg Broytmanh

Re: [Python-Dev] logging and rotation

2012-11-25 Thread Oleg Broytman
rotation. An external log rotation mechanism ought to send a signal to the application and the application ought to close and reopen logs. That is, this is an application-level problem, not logging module-level. Oleg. -- Oleg Broytmanhttp://phdru.name/

Re: [Python-Dev] compile python 3.3 with bz2 support

2012-12-21 Thread Oleg Broytman
; By the way, RedHat 5.5 has a built-in python 2.4.3. Would it be a problem? Depends on what are you going to do. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___

Re: [Python-Dev] Accessing value stack

2013-01-07 Thread Oleg Broytman
isnek wrote: > Hi, is it possible to access the values stored on the stack in Python stack > machine from Python? In short: it's possible but very much discouraged. Don't hack into python internals. Oleg. -- Oleg Broytmanhttp://phdru.name/

Re: [Python-Dev] make test

2013-01-08 Thread Oleg Broytman
nglin wrote: > ImportError: No module named 'test.test_idna' Really, there is no module test.test_idna. Look into Lib/test/ yourself. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they ju

Re: [Python-Dev] Boost Software License

2013-01-27 Thread Oleg Broytman
think yes, it's compatible with Python license. Also I think you have to copy the license to the section "Licenses and Acknowledgements for Incorporated Software" in Doc/license.rst. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programm

Re: [Python-Dev] My CLA

2013-02-11 Thread Oleg Broytman
it properly -- via a signed paper. You can send it by snail mail, or you can scan it and send by email. Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. _

Re: [Python-Dev] My CLA

2013-02-11 Thread Oleg Broytman
On Mon, Feb 11, 2013 at 09:18:58PM +0300, anatoly techtonik wrote: > On Mon, Feb 11, 2013 at 4:01 PM, Oleg Broytman wrote: > > > On Mon, Feb 11, 2013 at 03:49:39PM +0300, anatoly techtonik < > > techto...@gmail.com> wrote: > >

Re: [Python-Dev] Question regarding: Lib/_markupbase.py

2013-02-11 Thread Oleg Broytman
t;     return rawdata.find(">", j) + 1 > > > Wouldn't it be better to do the following? > pos = rawdata.find(">", j) > if pos != -1: >     return pos + 1 > > Otherwise I think we are scanning rawdata[j:] twice. Is it really a signi

<    1   2   3