Re: [Python-Dev] Encoding detection in the standard library?

2008-04-21 Thread Oleg Broytmann
> > will mistake what it tells them for certain. > > Maybe call it "charguess", then? The famous chardet returns probablity of its guessing: >>> import chardet >>> chardet.detect("dabc") {'confidence': 1.0, 'encoding'

Re: [Python-Dev] shal we redefine "module" and "package"?

2008-04-30 Thread Oleg Broytmann
ybody knows that python is a huge four-legged poisonous lizard. (Sorry for being so poisonously [pythonic?] sarcastic. Just cannot resist.) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] Buildbots have trouble checking out the repository due to recent changes.

2008-05-11 Thread Oleg Broytmann
ther. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] Copying cgi.parse_qs() to the urllib.parse module

2008-05-11 Thread Oleg Broytmann
On Sun, May 11, 2008 at 06:39:02PM -0700, Brett Cannon wrote: > cgi.escape() to the html package somewhere (either 'html', > 'html.parser' which is currently HTMLParser, or some new module; html.parser.escape() seems a bit backward; html.escape() fits the best! Ole

[Python-Dev] SSH connection sharing

2008-05-16 Thread Oleg Broytmann
ab:: @reboot rm -f .ssh/controls/* Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org htt

Re: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

2008-05-20 Thread Oleg Broytmann
coding(), which it shouldn't. PYTHONIOENCODING? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org ht

Re: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

2008-05-20 Thread Oleg Broytmann
nt to be precise and have both PYTHON and STDOUT - shorten ENCODING to ENC. If you agree to sacrifice PYTHON - make it PYSTDOUTENCODING. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't

Re: [Python-Dev] Addition of "pyprocessing" module to standard lib.

2008-05-21 Thread Oleg Broytmann
DOS, can use sockets (from WatTCP library), but certainly cannot do multithreading or multitasking. So the wording should be "Python supports platform X with the following limitations: ..." Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]

Re: [Python-Dev] Slice as a copy... by design?

2008-05-22 Thread Oleg Broytmann
pipermail/python-3000/2006-August/003224.html http://mail.python.org/pipermail/python-3000/2006-August/003242.html 2006, August... I don't remember what was the resolution of the discussion. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]

Re: [Python-Dev] str(container) should call str(item), not repr(item)

2008-07-28 Thread Oleg Broytmann
for implementation that would be good enough to be accepted. Current proposals for implementation are listed in the PEP with their disadvantages. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB withou

Re: [Python-Dev] urllib.quote and unquote - Unicode issues

2008-07-30 Thread Oleg Broytmann
%B2%D0%B8%D0%B4%D0%BE_%D0%B2%D0%B0%D0%BD_%D0%A0%D0%BE%D1%81%D1%81%D1%83%D0%BC LingVo (Russian-English dictionary): http://lingvo.yandex.ru/en?text=%D0%BF%D0%B8%D1%82%D0%BE%D0%BD >>> print urllib.quote(unicode('питон', 'koi8-r').encode('utf-8')) %D0%BF

Re: [Python-Dev] April 1st jokes (was: Base-96)

2008-08-03 Thread Oleg Broytmann
pipermail/python-list/2006-April/375866.html Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org ht

Re: [Python-Dev] next beta

2008-08-11 Thread Oleg Broytmann
On Mon, Aug 11, 2008 at 12:50:16PM +, Antoine Pitrou wrote: > Ah, am I the only one *not* to use Google calendar? :) Certainly, no! (-: Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB withou

Re: [Python-Dev] subprocess insufficiently platform-independent?

2008-08-25 Thread Oleg Broytmann
On Mon, Aug 25, 2008 at 01:30:58PM -0400, Barry Warsaw wrote: > Unless I'm misremembering (I no longer have access to Windows), I > believe that if you use ' '.join(cmd) as the first argument, it will > work cross-platform. What about arguments that contain spac

Re: [Python-Dev] bsddb

2008-09-04 Thread Oleg Broytmann
> If > you combine Berkeley DB with Durus, for example, all of this is > abstracted and you simply use "regular" python objects. Durus (and ZODB) has an index of all objects, the index is stored in memory AFAIK - a real problem if one has millions of objects. Does bsddb help

Re: [Python-Dev] SQLite (was: bsddb alternative)

2008-09-04 Thread Oleg Broytmann
On Thu, Sep 04, 2008 at 01:07:23PM -0400, Jeff Hall wrote: > Doesn't SQLlite still have a 4gb cap? http://sqlite.org/limits.html Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB w

Re: [Python-Dev] bsddb

2008-09-04 Thread Oleg Broytmann
on objects is ugly No more ugly than any other storage. A matter of taste, I think. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___

[Python-Dev] 3rd-party dbms

2008-09-04 Thread Oleg Broytmann
f I were doing this now I'd do something similar to atexit module - every hash module will register its own test function, and whichdb will call them in turn until it finds which db it is. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] P

Re: [Python-Dev] bsddb and sqlite

2008-09-07 Thread Oleg Broytmann
e. sqlite is more stable, but PySQLite... there are many minor releases between Python releases; my humble opinion is it'd be better to have one external PySQLite module than two (PySQLite and sqlite3). Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]

Re: [Python-Dev] 3rd party dbm (was: [issue3769] Deprecate bsddb for removal in 3.0)

2008-09-07 Thread Oleg Broytmann
le_name): module = __import__(module_name) try: module.open(filename) except: return False else: return True Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] ANNOUNCE: CapPython, an object-capability subset of Python

2008-09-18 Thread Oleg Broytmann
capybara its mascot. ;) Or may be "captyve" because the goal of the project is to make some code captive. :) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___

Re: [Python-Dev] Update to httplib.py

2008-09-25 Thread Oleg Broytmann
; conn = httplib.HTTPConnection('82.94.237.218', 80) > > Doesn't it already do that? It's the destination address. AFAIU OP said about source address - in case the program runs on a computer with many addresses - multihomed server or such... Oleg. -- Oleg Broytma

Re: [Python-Dev] Fwd: Removal of GIL through refcounting removal.

2008-10-31 Thread Oleg Broytmann
eparation of access rights - namespaces, modules, etc. Multithreading model allows a number of processes to share memory. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___

Re: [Python-Dev] Python-3.0, unicode, and os.environ

2008-12-06 Thread Oleg Broytmann
files. It would be a big bad blow for me if filemanagers (or other programs) start to filter these filenames. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___

Re: [Python-Dev] Python-3.0, unicode, and os.environ

2008-12-06 Thread Oleg Broytmann
On Sat, Dec 06, 2008 at 12:03:55PM +1100, Steven D'Aprano wrote: > I'd rather have the Python API report errors then silence them, at least > by default. +1 for encoding errors by default. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] Python-3.0, unicode, and os.environ

2008-12-06 Thread Oleg Broytmann
lso name the encoding for them. LANG/LC_ALL/LC_CTYPE provide a sensible default, but if a program has problems decoding bytes to characters there must be a way for the user to override the default. But the user must be notified about the error, so programs must not silently filters out non-decoda

Re: [Python-Dev] patch suggestion for webbrowser

2009-01-01 Thread Oleg Broytmann
On Thu, Jan 01, 2009 at 02:24:02PM +0200, Yinon Ehrlich wrote: > enclosed a patch for webbrowser which will find applications/batch files > ending with .com or .cmd too. Please submit the patch to the issue tracker: http://bugs.python.org/ Oleg. -- Oleg Broytmann

Re: [Python-Dev] Should ftplib use UTF-8 instead of latin-1 encoding?

2009-01-23 Thread Oleg Broytmann
stricter RFC-959 mangle chr(255), but that's all. One can encounter a server that stores files in a number of different encodings. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. __

Re: [Python-Dev] Should ftplib use UTF-8 instead of latin-1 encoding?

2009-01-23 Thread Oleg Broytmann
row some ideas from Apache in this area. But they don't. Pity. :( Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing li

Re: [Python-Dev] Should ftplib use UTF-8 instead of latin-1 encoding?

2009-01-23 Thread Oleg Broytmann
scuss is what to do with ftplib and pyftpd. My not so humble opinion is - either use bytes instead of strings or use latin-1 because it is the straightforward encoding that preserves all 8 bits. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programm

Re: [Python-Dev] pprint(iterator)

2009-01-27 Thread Oleg Broytmann
ms', and print . The situation with iterators that cannot be reset should be documented. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ___

Re: [Python-Dev] pprint(iterator)

2009-01-29 Thread Oleg Broytmann
ine __str__. Is __pprint__ an attempt to redefine __str__? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev

[Python-Dev] Python 2.4 README

2004-12-02 Thread Oleg Broytmann
;Tcl to support it. To compile Python2.3 with Tkinter, you will" Python2.4, I suppose? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___

Re: [Python-Dev] 2.4 news reaches interesting places

2004-12-09 Thread Oleg Broytmann
er-PR". I am afraid PSF doesn't have enough money, and even if it has - should we really run down that path? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] 2.4 news reaches interesting places

2004-12-09 Thread Oleg Broytmann
static type checks... And what? Should the webmasters adapt the site to every complain? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___

Re: [Python-Dev] Re: 2.4 news reaches interesting places

2004-12-09 Thread Oleg Broytmann
On Thu, Dec 09, 2004 at 06:07:41AM -0800, Scott David Daniels wrote: > Oleg Broytmann wrote: > > That's overreaction, I think. > > Perhaps a link on the main page Why on the main page? There are Topics Guide at http://python.org/topics/ that describes the ways Python

Re: [Python-Dev] Re: 2.4 news reaches interesting places

2004-12-11 Thread Oleg Broytmann
est and most powerful corporation. But who is for Python? Who is responsible? Whom to blame? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _

Re: [Python-Dev] Re: 2.4 news reaches interesting places

2004-12-10 Thread Oleg Broytmann
On Fri, Dec 10, 2004 at 02:01:55PM -0500, A.M. Kuchling wrote: > On Thu, Dec 09, 2004 at 05:11:04PM +0300, Oleg Broytmann wrote: > > some popular areas. Let's add another topic, "Making things fast". Let's > > even make it the first topic, though I personnaly don

Re: [Python-Dev] Re: Re: 2.4 news reaches interesting places

2004-12-15 Thread Oleg Broytmann
On Tue, Dec 14, 2004 at 10:21:58PM -0800, Gregory P. Smith wrote: > suggested hostname: why.python.org It's only a matter of taste, probably, but that looks a bit ugly for my eyes. May be use.python.org? corp.python.org? Oleg. -- Oleg Broytmannhttp://p

Re: [Python-Dev] Re: Change 'env var BROWSER override' semantics in webbrowser.py

2005-03-19 Thread Oleg Broytmann
as one of those patches is mine. I've started to review patches... Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing l

Re: [Python-Dev] Re: Change 'env var BROWSER override' semantics in webbrowser.py

2005-03-20 Thread Oleg Broytmann
once... it requires a lot of time... Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org http:/

Re: [Python-Dev] Re: Change 'env var BROWSER override' semantics in webbrowser.py

2005-03-22 Thread Oleg Broytmann
I am working on them. I am going to consolidate these patches along with 954628 and 1166780 into one big patch. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _

python-dev@python.org

2005-03-23 Thread Oleg Broytmann
-mode browsers, naturally, use stdout... for their windows). I'd like to remove all those redirects. Any opinion? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB

python-dev@python.org

2005-03-23 Thread Oleg Broytmann
MandrakeZilla spits too much to stdout/err? That's certainly a problem. Should we "fix" it and hide from the user? I don't think so. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB wi

python-dev@python.org

2005-03-23 Thread Oleg Broytmann
; % url) PS. This, of course, should must be fixed - pydoc must use webbrowser.py! Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev m

python-dev@python.org

2005-03-23 Thread Oleg Broytmann
Oops... > PS. This, of course, should must be fixed - pydoc must use webbrowser.py! ^^ delete (-: Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB withou

Re: [Python-Dev] Re: webbrowser.py

2005-03-23 Thread Oleg Broytmann
On Tue, Mar 22, 2005 at 01:28:42PM +0300, Oleg Broytmann wrote: > On Sun, Mar 20, 2005 at 11:40:27AM -0300, [EMAIL PROTECTED] wrote: > > Perhaps you could focus in 728278. It addresses some of the issues you > > have addressed in 754022, but it is not properly formatted. If you

python-dev@python.org

2005-03-24 Thread Oleg Broytmann
On Wed, Mar 23, 2005 at 06:39:41PM -0500, Fred L. Drake, Jr. wrote: > On Wednesday 23 March 2005 07:40, Oleg Broytmann wrote: > >While I'm working on webbrowser... Why do all graphical browsers are > > called with their stdout/stderr redirected to /dev/null? Do we real

Re: [Python-Dev] Re: webbrowser.py

2005-03-24 Thread Oleg Broytmann
On Wed, Mar 23, 2005 at 09:29:30PM +0300, Oleg Broytmann wrote: >I also added elinks support - currently it is very similar to links, > but I am going to extend its remote capabilities. (Yes, that small > text-mode broswer supports remoting, windows and tabs! Who'd think?!.)

Re: [Python-Dev] Re: webbrowser.py

2005-03-24 Thread Oleg Broytmann
On Thu, Mar 24, 2005 at 11:11:11AM -0300, Rodrigo Dias Arruda Senra wrote: > However, if you could make the necessary changes to the documentation, I'll try, but certainly not in TeX format... Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL P

Re: [Python-Dev] Re: webbrowser.py

2005-03-29 Thread Oleg Broytmann
n't thought about it because I didn't switched to python 2.4 yet - commercial programs that I'm developing are based on 2.3. I copied the "webbrowser script" idea from pydoc/pydoc.py. Fred, now it's your turn. Please review http://python.org/sf/754022 and decide what

Re: [Python-Dev] Re: webbrowser.py

2005-03-29 Thread Oleg Broytmann
regarding grammar, TeX and ... whatever . > > I recommend to apply both files. > > FWIW, same judgement from me. Thank you! Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don

Re: [Python-Dev] Re: webbrowser.py

2005-03-29 Thread Oleg Broytmann
#x27;ve edited a TeX file. Please correct my grammar, spelling, TeX, whatever... Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev ma

Re: [Python-Dev] Re: webbrowser.py

2005-03-30 Thread Oleg Broytmann
still is used. The updated patches were uploaded to http://python.org/sf/754022 . This, I hope, is the last touch. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without R

Re: python.org/sf URLs aren't working? Re: [Python-Dev] Weekly Python Patch/Bug Summary

2005-03-31 Thread Oleg Broytmann
ct to the SF tracker. Can you show an URL that's not working? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list

Re: [Python-Dev] .py and .txt files missing svn:eol-style in trunk

2006-03-01 Thread Oleg Broytmann
" > test_pepe263 probably should be binary (it contains "funny > characters"). It should be text with encoding $ svn propset svn:mime-type "text/plain; charset=koi8-r" test_pep263 Oleg. -- Oleg Broytmannhttp

Re: [Python-Dev] iterator API in Py3.0

2006-03-04 Thread Oleg Broytmann
consistent and more object-oriented. After all we've switched from string.split(x, y) to x.split(y)... Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. __

Re: [Python-Dev] .len() instead of __len__() (was: iterator API in Py3.0)

2006-03-05 Thread Oleg Broytmann
am a perfectionist and I partially disagree with "practicality beats purity"; I would really love a small uncluttered builtin namespace in Python. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]

Re: [Python-Dev] x.len() instead of len(x) in Py3.0

2006-03-05 Thread Oleg Broytmann
On Sun, Mar 05, 2006 at 06:48:22PM +, Neil Schemenauer wrote: > Oleg Broytmann <[EMAIL PROTECTED]> wrote: > > What are disadvantages of a direct .len() instead of .__len__()? > > I can think of a few arguments against getting rid of double > underscores in general.

Re: [Python-Dev] .len() instead of __len__() in Py3.0

2006-03-06 Thread Oleg Broytmann
On Mon, Mar 06, 2006 at 05:33:23AM -0800, Michael Chermside wrote: > Oleg Broytmann writes that he thinks methods are inherently "better" than > methods. "...better than *functions*." > In defense of functions, my first exhibit is the following snippet of Java &

Re: [Python-Dev] how about adding ping's uuid module to the standard lib ?

2006-03-07 Thread Oleg Broytmann
... Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] quit() on the prompt

2006-03-08 Thread Oleg Broytmann
dits" or "license" for more information. >>> raise SystemExit("quit() called") quit() called Error! (At least, I consider that a bad side-effect.) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don'

Re: [Python-Dev] quit() on the prompt

2006-03-08 Thread Oleg Broytmann
On Wed, Mar 08, 2006 at 12:39:51PM +, Steve Holden wrote: > Oleg Broytmann wrote: > >>>>raise SystemExit("quit() called") > > > > quit() called > > Error! > > > I should imagine the use cases for running an interactive Python shell

Re: [Python-Dev] Py3k: Except clause syntax

2006-03-17 Thread Oleg Broytmann
Why not stay with except (NameError, OtherError), e: ??? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] pysqlite for 2.5?

2006-03-29 Thread Oleg Broytmann
oup the SQL databases. If flat is really so much better than nested there is no need to create a "database" namespace. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. __

Re: [Python-Dev] building sql queries in python

2006-03-30 Thread Oleg Broytmann
sue - it can generate SQL *strings* only for specific databases - because some SQL constructs are DB-dependent, quoting e.g. Some examples are in the __main__ part of sqlbuilder.py: http://svn.colorstudy.com/SQLObject/trunk/sqlobject/sqlbuilder.py Oleg. -- Oleg Broytmannh

Re: [Python-Dev] PEP 343 update (with statement context terminology)

2006-04-24 Thread Oleg Broytmann
The __iter__ method isn't called __iterator__, so why would the __context__ > method need to be called "__contextmgr__"? It should be __ctxmgr__ to be in par with __iter__, __len__, dict and so on ;) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROT

Re: [Python-Dev] global variable modification in functions [Re: elimination of scope bleeding of iteration variables]

2006-05-01 Thread Oleg Broytmann
On Sun, Apr 30, 2006 at 10:47:07PM -0500, Ben Wing wrote: > foo = 1 > > def set_foo(): > foo = 2 PyLint gives a warning here "local foo shadows global variable". Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Progr

Re: [Python-Dev] Alternative path suggestion

2006-05-06 Thread Oleg Broytmann
Path('a', 'b\\c')) AFAIK there is no way to escape path-splitting characters (directory separators, actually) on any major platform. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don&#x

Re: [Python-Dev] Subversion repository question - back up to older versions

2006-06-08 Thread Oleg Broytmann
an use svn ls, http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.list.html or view the repository via ViewVC. These are python tags: http://svn.python.org/view/python/tags/ . Here is the tag for 2.4.2: http://svn.python.org/view/python/tags/r242/ Oleg. -- Oleg Broytmann

Re: [Python-Dev] Subversion repository question - back up to older versions

2006-06-08 Thread Oleg Broytmann
rge -r 2112:2121 http://svn.example.org/svnroot/anotherbranch/ (merge the diff between revisions 2121 and 2112 in anotherbranch into the current working directory). Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they

Re: [Python-Dev] Subversion repository question - back up to older versions

2006-06-08 Thread Oleg Broytmann
On Fri, Jun 09, 2006 at 12:03:54AM +0400, Oleg Broytmann wrote: > svn switch updates *and* switch the base URL - commits will go to the > tag/branch you are switching to. Another point of view: svn switch is kind of optimized svn checkout. svn co starts afresh and needs to transfer the

Re: [Python-Dev] Source control tools

2006-06-12 Thread Oleg Broytmann
ent OSes, but it also allow to set a fixed line ending style for specific files. I don't know another SCM that supports such useful features. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB w

Re: [Python-Dev] PEP: Migrating the Python CVS to Subversion

2005-07-28 Thread Oleg Broytmann
revision numbers. > - support for offline diffs, which is useful when creating patches. -- transactional operation - a changeset is either committed or rolled back at once; -- very effective (both in terms of speed and memory) tagging and branching; tags and branches are very easy to un

Re: [Python-Dev] PEP: Migrating the Python CVS to Subversion

2005-08-08 Thread Oleg Broytmann
onvert keywords internally to its default form ($Id$ instead of $Id: python.c 42 phd $) before merging. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] PEP 348 (exception reorg) revised again

2005-08-15 Thread Oleg Broytmann
t:" does not cause "except WHAT?!" reaction. Isn't it funny?! (-: Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev m

Re: [Python-Dev] Docs/Pointer to Tools/scripts?

2005-08-24 Thread Oleg Broytmann
Hello! On Wed, Aug 24, 2005 at 08:33:02PM +0200, Reinhold Birkenfeld wrote: > after adding Oleg Broytmann's findnocoding.py to Tools/scripts What's more, pysource.py is more than just a script - it's a generally useful module. Thank you for committing the code. O

Re: [Python-Dev] GIL, Python 3, and MP vs. UP

2005-09-22 Thread Oleg Broytmann
it causes a lot of troubles, it requires locks and semaphores, and still leads to problems. Shared memory is evil. Multithreading is harmful. > Hardware is cheap, development time is expensive. Yes. Do not spend developer's time finding bugs in locks and semaphores, fixing race conditions,

Re: [Python-Dev] RFC: readproperty

2005-09-28 Thread Oleg Broytmann
e code is Denis Otkidach, http://sourceforge.net/users/ods/ .) It seems many people reinvent this particular wheel. Which is understandable. propertytools.py, anyone? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die

Re: [Python-Dev] linecache problem

2005-09-30 Thread Oleg Broytmann
t CVS. I have seen such tracebacks in all versions of Python AFAIR. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev m

Re: [Python-Dev] C.E.R. Thoughts

2005-10-10 Thread Oleg Broytmann
On Sat, Oct 08, 2005 at 08:04:13PM -0400, jamesr wrote: > if ((sys.argv[1] =='debug') if len(sys.argv) > 1 else False): > pass Very good example! Very good example why ternary operators must be forbidden! Oleg. -- Oleg Broytmannhttp://phd.pp.ru

Re: [Python-Dev] Guido v. Python, Round 1

2005-10-17 Thread Oleg Broytmann
On Mon, Oct 17, 2005 at 12:55:00PM +0100, Steve Holden wrote: > > http://python.org/neal/ > > > Getting a 404 on this one right now. No problems here, very nice fotos! :) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Pr

Re: [Python-Dev] Freezing the CVS on Oct 26 for SVN switchover

2005-10-29 Thread Oleg Broytmann
arred with -rw-r--r-- attributes. :) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.org http://mail.p

Re: [Python-Dev] Proposal: can we have a python-dev-announce mailing list?

2005-11-03 Thread Oleg Broytmann
On Thu, Nov 03, 2005 at 10:29:37PM +0100, Jack Jansen wrote: > I know I would be much helped with a moderated python-dev-announce > mailing list, which would be only low-volume http://www.google.com/search?q=python-dev+summary+site%3Amail.python.org Oleg. -- Oleg Bro

Re: [Python-Dev] svn diff -r {2001-01-01}

2005-11-22 Thread Oleg Broytmann
On Mon, Nov 21, 2005 at 11:48:29PM +0100, "Martin v. L?wis" wrote: > you will have to look up the closest > revision number manually (e.g. in viewcvs, or through svn log). svn annotate (aka svn blame) may help too. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] The path module PEP

2006-01-24 Thread Oleg Broytmann
On Tue, Jan 24, 2006 at 09:22:01PM +0100, BJ?rn Lindqvist wrote: > Path("foo") / "bar" / "baz" I really love this! But I am afraid it's too much a Unixism. (-: Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTE

Re: [Python-Dev] The path module PEP

2006-01-25 Thread Oleg Broytmann
On Wed, Jan 25, 2006 at 09:37:04PM +0100, BJ?rn Lindqvist wrote: > Remove __div__ (Ian, Jason, Michael, Oleg) I didn't say "remove". Exactly opposite - I am enamoured by the beauty of the syntax! (-: Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] JSON (was: YAML)

2006-01-31 Thread Oleg Broytmann
On Tue, Jan 31, 2006 at 08:57:18PM +0100, Georg Brandl wrote: > While we're at it, is the Python library going to incorporate some YAML > parser in the future? YAML seems like a perfectly matching data format > for Python. JSON is even better! Oleg. -- Oleg Broytmann

<    1   2