> > 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'
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.
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
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
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
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
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
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]
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]
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
%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
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
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
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
> 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
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
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.
___
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
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]
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.
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.
___
; 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
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.
___
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.
___
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/
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
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
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.
__
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
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
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.
___
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
;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.
___
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.
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.
___
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
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.
_
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
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
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
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:/
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.
_
-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
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
; % 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
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
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
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
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?!.)
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
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
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
#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
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
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
"
> 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
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.
__
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]
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.
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
&
...
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
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'
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
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
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.
__
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
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
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
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
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
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
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
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
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
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.
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
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
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,
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
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
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
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
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
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
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/
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
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/
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
101 - 188 of 188 matches
Mail list logo