Re: [Python-Dev] Deprecation policy

2011-11-29 Thread Oleg Broytman
, 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?! ;-) Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name

Re: [Python-Dev] reading multiline output

2011-12-22 Thread Oleg Broytman
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. Oleg. -- Oleg Broytman

Re: [Python-Dev] descriptor as instance attribute

2012-01-09 Thread Oleg Broytman
)).. Please note the first type(b). 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

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

2012-01-10 Thread Oleg Broytman
...@noos.fr wrote: BODYHello,brbrI 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 GOSUB without RETURN

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

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

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

2012-01-29 Thread Oleg Broytman
the not-locally defined symbols are actually defined (well sure that is not a problem for most of the people) - if all the files include python.h, doesn't it generate very big object files? Or is it not a problem since they are stripped out after? Thanks, Andrea Oleg. -- Oleg

Re: [Python-Dev] steps to solve bugs

2012-03-08 Thread Oleg Broytman
://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. ___ Python-Dev mailing list Python-Dev@python.org

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

2012-03-21 Thread Oleg Broytman
. 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 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
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. ___ Python-Dev mailing list Python-Dev@python.org http

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

2012-03-21 Thread Oleg Broytman
On Wed, Mar 21, 2012 at 02:40:04PM -0400, Ned Batchelder wrote: You can use Ctrl-+ to increase the size of the text, and modern browsers remember that for the next time you visit the site. Browsers usually remember the setting for the entire site, not only documentation. Oleg. -- Oleg

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 without RETURN

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

2012-04-04 Thread Oleg Broytman
= 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 Programmers don't die, they just GOSUB without RETURN

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) except: pass else: break else: raise

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 for flag in (THIS, THAT): try: clock = get_clock

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 p...@phdru.name wrote:   Well, I am partially retreat. Errors should never pass silently. Unless explicitly silenced. get_clock(FLAG, on_error=None) could return None. I

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 p...@phdru.name wrote:   Why doesn't open() return None for a non-existing file? or socket.gethostbyname() for a non-existing name? That's not an answer to my question

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 where thisfile == 'script.pyc

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

2012-04-05 Thread Oleg Broytman
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 Python-Dev@python.org http

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

2012-04-05 Thread Oleg Broytman
. 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 consistently argued over. ;-) Oleg. -- Oleg Broytmanhttp://phdru.name

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

2012-04-06 Thread Oleg Broytman
: 'NoneType' object has no attribute 'clock'. 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

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 victor.stin...@gmail.com 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 Broytman

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

2012-04-18 Thread Oleg Broytman
= 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://phdru.name/p...@phdru.name

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

2012-04-19 Thread Oleg Broytman
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 Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN

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

2012-04-24 Thread Oleg Broytman
. when 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/p

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

2012-05-04 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

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

2012-05-07 Thread Oleg Broytman
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? Oleg. -- Oleg Broytmanhttp

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

2012-05-26 Thread Oleg Broytman
anf...@gmail.com 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
. 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 Programmers don't

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://phdru.name/p...@phdru.name

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

2012-06-21 Thread Oleg Broytman
of symbolic links that 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 without RETURN

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

2012-06-27 Thread Oleg Broytman
/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, they just GOSUB without RETURN. ___ Python-Dev mailing list Python

Re: [Python-Dev] Bitbucket mirror?

2012-06-28 Thread Oleg Broytman
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 die, they just GOSUB without RETURN

Re: [Python-Dev] Access a function

2010-06-28 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%40phd.pp.ru Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die

Re: [Python-Dev] [Idle-dev] Removing IDLE from the standard library

2010-07-12 Thread Oleg Broytman
, but I haven't yet thought of a solution that would be less confusing than the problem itself. Doesn't absolute import help? Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN

Re: [Python-Dev] Problem with executing python interpretetor on special build of win server 2003

2010-07-13 Thread Oleg Broytman
code is 128. What does mean this code 128? ___ 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%40phd.pp.ru Oleg. -- Oleg Broytman

Re: [Python-Dev] Removing IDLE from the standard library

2010-07-15 Thread Oleg Broytman
but vim implements tabbed windows even in console (text) mode. (-: 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

Re: [Python-Dev] Python signal processing question

2010-07-19 Thread Oleg Broytman
it in the python code. Since python is checking at run time to see what signals handlers are added, I know there must be a difference. Please can someone just point me in the right direction. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru

Re: [Python-Dev] Python signal processing question

2010-07-19 Thread Oleg Broytman
a lot of skilled professionals in the python-list (comp.lang.python). On Mon, Jul 19, 2010 at 12:27 PM, Oleg Broytman p...@phd.pp.ru wrote: python-list (comp.lang.python) news group/mailing list is the best place. See http://www.python.org/community/ for other lists/news groups/fora. Oleg

Re: [Python-Dev] Python-dev signal-to-noise processing question

2010-07-20 Thread Oleg Broytman
one do you prefer? The original question was about using python, that's my understanding. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ___ Python

Re: [Python-Dev] Python-dev signal-to-noise processing question

2010-07-20 Thread Oleg Broytman
On Tue, Jul 20, 2010 at 01:51:07PM -0400, Terry Reedy wrote: On 7/20/2010 6:59 AM, Oleg Broytman wrote: 1. I suggested one improvement to the canned response in my previous post: expand 'using' to 'using or understanding'. I changed wording to if you're having problems learning

Re: [Python-Dev] What to do with languishing patches?

2010-07-20 Thread Oleg Broytman
press a few first letters of the name and the cursor jumps to the country. I often select countries in such lists in web browsers. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN

Re: [Python-Dev] What to do with languishing patches?

2010-07-20 Thread Oleg Broytman
On Tue, Jul 20, 2010 at 03:13:41PM -0400, Alexander Belopolsky wrote: On Tue, Jul 20, 2010 at 3:05 PM, Oleg Broytman p...@phd.pp.ru wrote: ..   Well, I have never, because in any of these drop-down lists I can press a few first letters of the name and the cursor jumps to the country. I

Re: [Python-Dev] What to do with languishing patches?

2010-07-20 Thread Oleg Broytman
On Tue, Jul 20, 2010 at 04:27:45PM -0400, Alexander Belopolsky wrote: On Tue, Jul 20, 2010 at 3:38 PM, Oleg Broytman p...@phd.pp.ru wrote: .. Really?  What smartphone are you using?  :-)   Are you developing an interface for smartphones? Wouldn't it hurt usability for desktops/notebooks

Re: [Python-Dev] Python-dev signal-to-noise processing question

2010-07-22 Thread Oleg Broytman
, I'll wait a bit longer. 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.org http://mail.python.org

Re: [Python-Dev] Python-dev signal-to-noise processing question

2010-07-22 Thread Oleg Broytman
On Thu, Jul 22, 2010 at 06:02:33PM +0900, Stephen J. Turnbull wrote: Oleg Broytman writes: On Wed, Jul 21, 2010 at 07:28:24PM -0600, average wrote: As to your question of how best to handle inquiries from the blue or noisy questions, I personally prefer the following (only slightly

Re: [Python-Dev] Compiling Free Cad on Rhel5

2010-07-28 Thread Oleg Broytman
error. Thanks Vikas Mahajan 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.org http

Re: [Python-Dev] Best practice for new namespace (from C/API)

2010-07-29 Thread Oleg Broytman
, __builtins__, PyImport_AddModule(builtins)), using the PyEval_GetBuiltins() dict adds every member of __builtins__ when running: print(__import__(__main__).__dict__.keys()), rather then just showing __builtins__. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p

Re: [Python-Dev] unexpected import behaviour

2010-07-29 Thread Oleg Broytman
you import it as 'test' you get the second copy of the module. 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

Re: [Python-Dev] Basic Information about Python

2010-07-30 Thread Oleg Broytman
10 MB) for windows? 3. If Second statement is Yes, What will be the setup size? Thank in advance. Regards, Durga. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN

Re: [Python-Dev] unexpected import behaviour

2010-07-30 Thread Oleg Broytman
times as [s]he wants. Should this be fixed for __main__? I doubt it. Instead of making __main__ a special case follow the rule: don't import the same module under different paths/names. Make your script simply from test import main main() Oleg. -- Oleg Broytmanhttp://phd.pp.ru

Re: [Python-Dev] unexpected import behaviour

2010-07-30 Thread Oleg Broytman
instances of the same module imported after sys.path manipulations. Never had a problem with reimported scripts. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN

Re: [Python-Dev] Metadata: charset (was: PEP 376 proposed changes for basic plugins support)

2010-08-01 Thread Oleg Broytman
clear indication of encoding/charset. 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.org http

Re: [Python-Dev] Metadata: charset

2010-08-01 Thread Oleg Broytman
On Mon, Aug 02, 2010 at 12:11:06AM +0200, Tarek Ziad? wrote: On Sun, Aug 1, 2010 at 11:58 PM, Oleg Broytman p...@phd.pp.ru wrote: On Sun, Aug 01, 2010 at 10:37:47PM +0200, Tarek Ziad? wrote: The file is a CSV file   In what encoding (charset)? I quickly skimmed over PEPs 262, 241, 314

Re: [Python-Dev] OT: PHB (was: Looking after the buildbots)

2010-08-05 Thread Oleg Broytman
On Thu, Aug 05, 2010 at 07:49:31AM -0400, Steve Holden wrote: I'd have thought a pre-requisite for being a PHB was having hair. Not at all, not at all - being a PHB is a style of thinking, not hairdressing. ;) Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p

Re: [Python-Dev] Working on the Python code-base with a VIM-based setup

2010-09-01 Thread Oleg Broytman
directory in Python distribution, have you? Shameless plug: look at my .vimrc and plugins: http://phd.pp.ru/Software/dotfiles/vimrc.html http://phd.pp.ru/Software/dotfiles/vim/ Borrow whatever you find useful. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p

Re: [Python-Dev] Volunteer help with porting

2010-09-07 Thread Oleg Broytman
/community/ . As for my personal preferences - I would like to see these ported: -- database drivers, especially MySQL-python and psycopg; -- GUI frameworks, especially wxPython. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die

Re: [Python-Dev] Volunteer help with porting

2010-09-07 Thread Oleg Broytman
AFAIK. Or have I missed something? 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.org http

Re: [Python-Dev] Volunteer help with porting

2010-09-07 Thread Oleg Broytman
out, there are other standard library modules in the same state. I see. Thank you for the clarification. I am sorry for being so haste. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN

Re: [Python-Dev] (no subject)

2010-09-23 Thread Oleg Broytman
am going wrong. 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.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] question/comment about documentation of relative imports

2010-10-05 Thread Oleg Broytman
full path. 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.org http://mail.python.org/mailman/listinfo/python

Re: [Python-Dev] Inconsistencies if locale and filesystem encodings are different

2010-10-07 Thread Oleg Broytman
, but sometimes I work with programs in utf-8 locale. Just an example... Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python

Re: [Python-Dev] Inconsistencies if locale and filesystem?encodings are different

2010-10-07 Thread Oleg Broytman
On Thu, Oct 07, 2010 at 09:12:13PM +0200, Victor Stinner wrote: Le jeudi 07 octobre 2010 18:44:19, Oleg Broytman a ?crit : My filesystems are always koi8-r, but sometimes I work with programs in utf-8 locale. Just an example... Are programs able to display correctly non-ascii filenames

Re: [Python-Dev] okay to remove argparse.__all__?

2010-11-01 Thread Oleg Broytman
that I always forget to add them. ;-) Automate: for key, value in globals().items(): if not key.startswith('_'): __all__.append(key) Further filter (by key or value) to your needs. Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru

Re: [Python-Dev] python3k vs _ast

2010-11-17 Thread Oleg Broytman
/pylint and would like to know where it was defined. thx for any information -- Emile Anclin emile.anc...@logilab.fr http://www.logilab.fr/ http://www.logilab.org/ Informatique scientifique et gestion de connaissances Oleg. -- Oleg Broytmanhttp://phd.pp.ru

Re: [Python-Dev] python3k vs _ast

2010-11-17 Thread Oleg Broytman
On Wed, Nov 17, 2010 at 09:19:35AM -0500, R. David Murray wrote: On Wed, 17 Nov 2010 07:36:37 -0600, Benjamin Peterson benja...@python.org wrote: 2010/11/17 Oleg Broytman p...@phd.pp.ru: Seems to be rather a usage question, not a development question (python-dev is about *developing

Re: [Python-Dev] Using logging in the stdlib and its unit tests

2010-12-10 Thread Oleg Broytman
). Better yet (IMHO) would be to split the huge page into Logging: Simple start and Logging: Advanced usage (for the brave of of heart). Oleg. -- Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN

Re: [Python-Dev] Locale-specific formatting

2010-12-18 Thread Oleg Broytman
. 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.org http

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 is considered so horrible

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 locale is considered so horrible

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

2010-12-22 Thread Oleg Broytman
- 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 Programmers don't die, they just GOSUB without RETURN

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

2011-01-18 Thread Oleg Broytman
revert saves files before reverting as *.orig. 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

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

2011-01-18 Thread Oleg Broytman
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.name/p...@phdru.name Programmers don't die, they just GOSUB

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

2011-01-24 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

Re: [Python-Dev] (no subject)

2011-01-24 Thread Oleg Broytman
- 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 GOSUB without RETURN

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

2011-01-26 Thread Oleg Broytman
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, but only partially. Oleg. -- Oleg Broytman

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/p

Re: [Python-Dev] svn outage on Friday

2011-02-15 Thread Oleg Broytman
. 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 Programmers don't die, they just GOSUB without RETURN

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

2011-04-29 Thread Oleg Broytman
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. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org

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

2011-05-10 Thread Oleg Broytman
does when running. For example: Fixed a bug in time comparison: compare mtime to mtime, not mtime to system clock I.e., fixed - 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 Broytman

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 GOSUB

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.name/p...@phdru.name

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

2011-07-07 Thread Oleg Broytman
like mechanize, urllib, httplib etc. 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

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 p...@phdru.name 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); Well

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

2011-07-19 Thread Oleg Broytman
. 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 of Python. Oleg. -- Oleg Broytman

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/p

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 http

[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 without RETURN

Re: [Python-Dev] genious hack in python

2011-09-23 Thread Oleg Broytman
-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-Dev mailing list Python-Dev

Re: [Python-Dev] unittest missing assertNotRaises

2011-09-27 Thread Oleg Broytman
. + + +try: +callableObj(*args, **kwargs) +except excClass: +raise self.failureException(%s was raised % excClass) + + What if I want to assert my test raises neither OSError nor IOError? Oleg. -- Oleg Broytman

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): +Fail if an exception of class excClass is thrown

Re: [Python-Dev] Generate Dynamic lists

2011-10-20 Thread Oleg Broytman
%40phdru.name 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

Re: [Python-Dev] End of the mystery @README.txt Mercurial bug

2013-06-26 Thread Oleg Broytman
expand the .hg top-level directory. Or find \( -type d -name .hg -prune \) -o ... Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev

Re: [Python-Dev] End of the mystery @README.txt Mercurial bug

2013-06-26 Thread Oleg Broytman
.svn, .git, How many of those dot-files/directories are there beside .*ignore? etc. Maybe find $(srcdir)/[a-zA-Z]* ... would be good enough to ignore all dot directories/files? On the other hand yes, I think it'd be enough. Oleg. -- Oleg Broytmanhttp://phdru.name

Re: [Python-Dev] Add function to signal module for getting main thread id

2013-08-30 Thread Oleg Broytman
._MainThread or threading.current_thread().ident == threading._MainThread.ident My proposition is to add function like get_mainthread_id() - int which return ident for main thread threading._MainThread.ident ? Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-05 Thread Oleg Broytman
On Thu, Sep 05, 2013 at 02:16:29PM -0400, Donald Stufft don...@stufft.io wrote: On Sep 5, 2013, at 2:12 PM, Oleg Broytman p...@phdru.name wrote: I used to use myOpenID and became my own provider using poit[1]. These days I seldom use OpenID -- there are too few sites that allow full

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-05 Thread Oleg Broytman
to myOpenID. I can switch delegation trivially. I used to use myOpenID and became my own provider using poit[1]. These days I seldom use OpenID -- there are too few sites that allow full-featured login with OpenID. The future lies in OAuth 2.0. 1. http://yangman.ca/poit/ Oleg. -- Oleg

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-05 Thread Oleg Broytman
On Thu, Sep 05, 2013 at 02:35:16PM -0400, Donald Stufft don...@stufft.io wrote: Persona is the logical successor to OpenID. OpenID lived a short life and died a quiet death. I'm afraid Persona wouldn't live even that much. Dead-born idea, in my so humble opinion. Oleg. -- Oleg

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-05 Thread Oleg Broytman
On Thu, Sep 05, 2013 at 02:50:44PM -0400, Donald Stufft don...@stufft.io wrote: On Sep 5, 2013, at 2:43 PM, Oleg Broytman p...@phdru.name wrote: On Thu, Sep 05, 2013 at 02:35:16PM -0400, Donald Stufft don...@stufft.io wrote: Persona is the logical successor to OpenID. OpenID lived

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-05 Thread Oleg Broytman
On Thu, Sep 05, 2013 at 04:53:18PM -0400, Barry Warsaw ba...@python.org wrote: On Sep 06, 2013, at 12:36 AM, Oleg Broytman wrote: You cannot login using OpenID to most interesting popular sites. GMail? No. Twitter? No. Facebook? FriendFeed? identi.ca? No, no, no. I'd be surprised if you

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-05 Thread Oleg Broytman
have already created an account and linked your OpenID URL with that account. You cannot login using OpenID to most interesting popular sites. GMail? No. Twitter? No. Facebook? FriendFeed? identi.ca? No, no, no. Small uninteresting blogs? Yes, but who cares? Oleg. -- Oleg Broytman

  1   2   3   >