Re: [Python-Dev] Integrate BeautifulSoup into stdlib?

2009-03-09 Thread Oleg Broytmann
On Thu, Mar 05, 2009 at 01:30:25PM -0500, Barry Warsaw wrote: > Ubuntu (and probably Debian): apt-get install python-lxml Tested in Debian: yes, the incantation works. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't d

Re: [Python-Dev] Ext4 data loss

2009-03-11 Thread Oleg Broytmann
run with root privileges, so why not copy? As for group ownership - any user can change group if [s]he belongs to the group. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just G

Re: [Python-Dev] Ext4 data loss

2009-03-11 Thread Oleg Broytmann
On Wed, Mar 11, 2009 at 11:56:13AM +, Antoine Pitrou wrote: > Oleg Broytmann phd.pp.ru> writes: > >Only root can change file ownership - and yes, there are scripts that > > run with root privileges, so why not copy? > > Because the new function would then be usel

Re: [Python-Dev] Ext4 data loss

2009-03-13 Thread Oleg Broytmann
n't know about other OS/FS (ZFS? NTFS?) 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.org http:/

Re: [Python-Dev] Ext4 data loss

2009-03-13 Thread Oleg Broytmann
On Fri, Mar 13, 2009 at 12:28:07PM +0300, Oleg Broytmann wrote: > On Thu, Mar 12, 2009 at 10:14:41PM -0600, Adam Olsen wrote: > > Yet the ext4 > > developers didn't see it that way, so it was sacrificed to new > > performance improvements (delayed allocation). > >

Re: [Python-Dev] BLOBs in Pg (was: email package Bytes vs Unicode)

2009-04-09 Thread Oleg Broytmann
On Thu, Apr 09, 2009 at 01:14:21PM -0400, Tony Nelson wrote: > I use MySQL, but sort of intend to learn PostgreSQL. I didn't know that > PostgreSQL has no real support for BLOBs. I think it has - BYTEA data type. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] BLOBs in Pg

2009-04-09 Thread Oleg Broytmann
bf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff' What am I doing wrong? Oleg. --

Re: [Python-Dev] Issue5434: datetime.monthdelta

2009-04-16 Thread Oleg Broytmann
ass, except that it represents months offset from a date, > rather than an exact period offset from a date. I'd rather see the code merged with timedelta: timedelta(months=n). Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru

Re: [Python-Dev] Dates in python-dev

2009-04-24 Thread Oleg Broytmann
e-digits (have we learned nothing from Y2K? :-)) with the > _middle_ ones changing fastest! > > I know it's the US standard, but Python is global. Could we have an > 'international' style instead, say, year-month-day: > > ACTIVITY SUMMARY (2009-04-17 - 2009-04-24)

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-25 Thread Oleg Broytmann
cepts > them at all. In different encodings on the same filesystem... Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list

Re: [Python-Dev] PEP 383 (again)

2009-04-28 Thread Oleg Broytmann
table i18n less hard or else the number of portable internationalized program will be about zero. What the way should be - I don't know. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. __

Re: [Python-Dev] PEP 383 (again)

2009-04-28 Thread Oleg Broytmann
irectory?! If any program starts to raise errors Python becomes completely unusable for me! But is there anything I can debug here? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't d

Re: [Python-Dev] PEP 383 (again)

2009-04-28 Thread Oleg Broytmann
On Tue, Apr 28, 2009 at 11:32:26AM +0200, Thomas Breuel wrote: > On Tue, Apr 28, 2009 at 11:00, Oleg Broytmann wrote: > > I have an FTP server to which clients with different local encodings > > are connecting. FTP protocol doesn't have a notion of encoding so filenames &

[Python-Dev] PyPI copyright

2009-05-04 Thread Oleg Broytmann
http://pypi.python.org/pypi "Copyright © 1990-2007, Python Software Foundation" :s/2007/2009/ Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB

Re: [Python-Dev] Easy way to detect filesystem case-sensitivity?

2009-05-08 Thread Oleg Broytmann
e__ is on a different filesystem with different rules (consider NFS, SMB/CIFS, etc.)? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ___ Python-De

Re: [Python-Dev] question about docstring formatting

2009-05-28 Thread Oleg Broytmann
On Thu, May 28, 2009 at 09:06:03AM -0400, Jeremy Hylton wrote: > It says that the summary line may be used by automatic indexing tools, > but is there any evidence that such a tool actually exists? epydoc, for one. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] Mercurial and linefeeds

2009-06-04 Thread Oleg Broytmann
bridge is > probably running on a Unix OS. http://www.selenic.com/mercurial/wiki/FAQ#FAQ.2BAC8-TechnicalDetails.What_about_Windows_line_endings_vs._Unix_line_endings.3F Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they j

Re: [Python-Dev] Mercurial, linefeeds, and Visual Studio

2009-06-04 Thread Oleg Broytmann
on't know if it was used for this particular file). 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@pyth

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Oleg Broytmann
t help core developers to develop Python (if you posted this to the python-dev mailing list instead of c.l.p or c.l.p.a)? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSU

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Oleg Broytmann
ps/pep-3107/ 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.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] expy: an expressway to extend Python

2009-07-21 Thread Oleg Broytmann
rgument x: double is how C functions are declared in Python, so I think annotations is the way to go for such declarations. > >Python 3.0 has arguments and return value annotations: > > > > http://docs.python.org/3.0/whatsnew/3.0.html#new-syntax > > http://www.py

Re: [Python-Dev] PEP 385: the eol-type issue

2009-08-05 Thread Oleg Broytmann
necessary in one configuration mechanism. Subversion handles these issues by providing svn:eol-style and svn:mime-type (handles both MIME type and charset) properties on a file-by-file basis. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don&

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Oleg Broytmann
On Wed, Aug 05, 2009 at 05:50:03PM +0400, Oleg Broytmann wrote: >Subversion handles these issues by providing ... > svn:mime-type (handles both MIME type and charset) > file-by-file basis. Dirkjan, how does Mercurial handles charsets? If I have three files in my repository - one

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Oleg Broytmann
On Wed, Aug 05, 2009 at 04:04:24PM +0200, Dirkjan Ochtman wrote: > On Wed, Aug 5, 2009 at 15:57, Oleg Broytmann wrote: > >   Dirkjan, how does Mercurial handles charsets? If I have three files in > > my repository - one in utf-8, another in koi8-r, and the third in cp1251 &

Re: [Python-Dev] PEP 385: the charset issue

2009-08-05 Thread Oleg Broytmann
bug. Either they should be marked, or converted to ascii or utf-8; the coding pseudocomment (directive) should be changed accordingly. Probably there are other files. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die,

Re: [Python-Dev] PEP 385: Mercurial issues

2009-08-05 Thread Oleg Broytmann
On Thu, Aug 06, 2009 at 12:34:39AM +0900, Stephen J. Turnbull wrote: > Oleg Broytmann writes: > >Dirkjan, how does Mercurial handles charsets? If I have three files in > > my repository - one in utf-8, another in koi8-r, and the third in cp1251 > > encoding - I ce

Re: [Python-Dev] VC++ versions to match python versions?

2009-08-17 Thread Oleg Broytmann
These two I know for sure: Python 2.5: MSVC-7.1 (VC++ 2003) Python 2.6: MSVC-9.0 (VS 2008) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. __

Re: [Python-Dev] PEP 3144: IP Address Manipulation Library for the Python Standard Library

2009-08-18 Thread Oleg Broytmann
x27;ip_str'. There are two classes, IPv4 and IPv6 whose __new__ never create an instance of its class, instead they create instances of other classes. Why IPv4 and IPv6 are classes and not (factory) functions (like function IP)? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] PEP 3144: IP Address Manipulation Library for the Python Standard Library

2009-08-18 Thread Oleg Broytmann
On Tue, Aug 18, 2009 at 01:53:36PM -0700, Peter Moody wrote: > hold over from when I was trying to be too fancy. fixed as well. Thank you. The PEP and the code is Ok for me. Something like this should be in the stdlib. Currently I'm using IPy. Oleg. -- Oleg Broytmann

Re: [Python-Dev] PEP 3144: IP Address Manipulation Library for the Python Standard Library

2009-08-21 Thread Oleg Broytmann
http://ipaddr-py.googlecode.com/svn/branches/2.0.x/ipaddr.py > _compat_has_real_bytes = bytes != str Wouldn't it be nicer "bytes is not str"? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die,

Re: [Python-Dev] how to debug httplib slowness

2009-09-04 Thread Oleg Broytmann
uses HTTP/1.0? 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.org http://mail.python.org/mailman/listinfo/pyt

Re: [Python-Dev] PEP 3145 (With Contents)

2009-09-15 Thread Oleg Broytmann
el 32 DLL Why not just name it kernel32.dll? 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.org http://

Re: [Python-Dev] Distutils ML wrap-up: setup.cfg new format

2009-09-22 Thread Oleg Broytmann
ery upcoming changes > that are not going in a PEP process (when it's not > a 'big' change). Thank you! Oleg. -- Oleg Broytmannhttp://phd.pp.ru/p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] first draft of bug guidelines for www.python.org/dev/

2006-07-30 Thread Oleg Broytmann
es, so it is important to make the summary right - short and descriptive. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailin

Re: [Python-Dev] draft for bug guidelines

2006-08-24 Thread Oleg Broytmann
On Thu, Aug 24, 2006 at 12:21:06PM -0700, Brett Cannon wrote: > Start a new bug "Before starting a new bug please try to search if the bug has already been reported. It it has - do not start a new report, add your comments to the existing report." Oleg. -- Oleg Broytmann

Re: [Python-Dev] draft of patch guidelines

2006-08-24 Thread Oleg Broytmann
d? Learn the reasons why it's been postponed or rejected." Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing lis

Re: [Python-Dev] New relative import issue

2006-09-19 Thread Oleg Broytmann
can I not to put full paths to modules)? I use PYTHONPATH manipulation - its enough to write a shell script that starts daemons once and use it for many years. How can I do this without sys.path?! Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]

Re: [Python-Dev] Importing .pyc in -O mode and vice versa

2006-11-04 Thread Oleg Broytmann
for .pyo if the .pyc file is not present? > > What do you think? +1 from me. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___

[Python-Dev] OT: World's oldest ritual discovered. Worshipped the python 70, 000 years ago

2006-12-01 Thread Oleg Broytmann
http://www.apollon.uio.no/vis/art/2006_4/Artikler/python_english (-: Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev ma

Re: [Python-Dev] OT: World's oldest ritual discovered. Worshipped the python 70, 000 years ago

2006-12-02 Thread Oleg Broytmann
On Sat, Dec 02, 2006 at 12:34:22AM -0800, Talin wrote: > I noticed the other day that the word "Pythonic" means "Prophetic", This is, of course, due to the Greek mythology and the oracle at Delphi! http://en.wikipedia.org/wiki/Python_%28mythology%29 Oleg.

Re: [Python-Dev] Adding resume (206) support to urllib(2)

2006-12-12 Thread Oleg Broytmann
n't because urllib2 provides not only an abstraction, but a lot of services (authenticated proxies, cached FTP files)... Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, t

Re: [Python-Dev] Adding resume (206) support to urllib(2)

2006-12-13 Thread Oleg Broytmann
;t do much about it, though. HTTP is one of the most widely known and used protocol. Would you better have big httplib and small abstract urllib? so abstract it doesn't allow a user to change protocol-specific handling? Oleg. -- Oleg Broytmannhttp://phd.pp

Re: [Python-Dev] Adding resume (206) support to urllib(2)

2006-12-13 Thread Oleg Broytmann
Leave it for py3k, then. > and we'd need > contributors who contribute such a refactoring That's the hardest part. > If applications use urllib *only* for http, and > *only* because it has these multi-request, implicit headers > features, something is wrong with the

Re: [Python-Dev] Cached Property Pattern

2006-12-29 Thread Oleg Broytmann
005-September/056782.html http://mail.python.org/pipermail/python-dev/2005-October/057120.html Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. __

Re: [Python-Dev] Cached Property Pattern

2006-12-29 Thread Oleg Broytmann
n which case, reviving the question is not a bad idea, is > it? I don't remember any resolution. I think submitting a small module to the patch tracker would be the simplest way to revive the discussion. > On 12/29/06, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > > http://m

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-13 Thread Oleg Broytmann
er Individuals" and not by "Computer Programming for Everyone Committee". Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. __

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-14 Thread Oleg Broytmann
On Wed, Feb 14, 2007 at 03:24:30PM +, Steve Holden wrote: > Oleg Broytmann wrote: > > On Tue, Feb 13, 2007 at 10:10:37AM +, Steve Holden wrote: > >> Python further away from the "Computer Programming for Everyone" arena > >> and closer to the "

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-15 Thread Oleg Broytmann
now if "CP4E" idea is still on his agenda and with what priority. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Pytho

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-16 Thread Oleg Broytmann
m the agenda. 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/listinf

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-16 Thread Oleg Broytmann
anguage based on the idea the features are not "4E". Python, IMHO, has gone far beyond "4E" already. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _

Re: [Python-Dev] Embedded Python:: C/Python: Is Py_Finalize() necessary between embedded function calls?

2007-02-25 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/listinfo

Re: [Python-Dev] Encouraging developers

2007-03-05 Thread Oleg Broytmann
h is the right one. I am afraid this could lead to proliferation of low-quality patches. A patch must touch at least code, documentation and tests, be tested itself and must not break other tests. These requirements demand higher expertise. Oleg. -- Oleg Broytmannht

Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread Oleg Broytmann
there will always be a root file name (and no > extension if the file is just a dotfile). > > Should this be changed? Opinions? Yes. In .pythonrc.py .pythonrc is the root, and .py is the extension. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECT

Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread Oleg Broytmann
t OS I have. (-: I often copy files from an ext3 partition to a FAT partition on my dual-booting desktop. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _

Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread Oleg Broytmann
d it with .split(). 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/l

Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread Oleg Broytmann
On Tue, Mar 06, 2007 at 04:07:16PM +0100, "Martin v. L?wis" wrote: > Oleg Broytmann schrieb: > > On Tue, Mar 06, 2007 at 04:00:01PM +0100, "Martin v. L?wis" wrote: > >>>Yes. In .pythonrc.py .pythonrc is the root, and .py is the extension. > >>

Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread Oleg Broytmann
name, not the extension. Well, 'a' cannot be empty because it's the name, but 'b' can be empty. For ".pythonrc.py" ".pythonrc" is the name and ".py" is the extension. For ".pythonrc" ".pythonrc" is the name and there is no extensi

Re: [Python-Dev] splitext('.cshrc')

2007-03-08 Thread Oleg Broytmann
On Thu, Mar 08, 2007 at 06:54:30PM +0100, "Martin v. L?wis" wrote: > back_name = splitext(name[0]) + '.bak' back_name = splitext(name)[0] + '.bak' Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Progr

Re: [Python-Dev] datetime module enhancements

2007-03-11 Thread Oleg Broytmann
tions and > date parsing to be very useful, in a Pythonic sort of way. Python world has excellent mxDateTime that does a very good job of date parsing and date/time arithmetic! Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers

Re: [Python-Dev] HTTP responses and errors

2007-03-27 Thread Oleg Broytmann
On Tue, Mar 27, 2007 at 04:12:06PM +, Facundo Batista wrote: > (didn't know about "annotate"). It is also known under the name "blame"! ;) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don&#x

Re: [Python-Dev] HTTP responses and errors

2007-03-27 Thread Oleg Broytmann
On Tue, Mar 27, 2007 at 07:14:35PM +0200, "Martin v. L?wis" wrote: > Oleg Broytmann schrieb: > > On Tue, Mar 27, 2007 at 04:12:06PM +, Facundo Batista wrote: > >> (didn't know about "annotate"). > > > >It is also known under the na

Re: [Python-Dev] More exposure for PEP8 (was: context manager - generator interaction?)

2007-04-06 Thread Oleg Broytmann
On Fri, Apr 06, 2007 at 10:58:41AM -0400, Barry Warsaw wrote: > It might even be worthwhile to give PEP 8 > more exposure in the tutorial or on the documentation ToC page. And bundle the PEP with the distributed documentation. Oleg. -- Oleg Broytmannhttp://phd

Re: [Python-Dev] Summaries and the New Lists

2007-04-24 Thread Oleg Broytmann
t pulling in all three development lists into all the > summaries. I prefer the second option I prefer the second, too. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just

[Python-Dev] Iterating over objects of unknown length

2007-09-26 Thread Oleg Broytmann
nd args[0]" triggers the exception. My questions are: 1. Should I consider this a bug in the logging module (and other libraries) and submit patches? 2. Or should I stop raising exceptions in __nonzero__()? In this particular case with logging the fix is simple - do "and args[

Re: [Python-Dev] Iterating over objects of unknown length

2007-09-26 Thread Oleg Broytmann
ith iterators; e.g.: > > >>> x=iter([]) > >>> if x: print "yes" > ... > yes On Wed, Sep 26, 2007 at 09:29:10AM -0700, Guido van Rossum wrote: > So I'm for #1 *and* #2. I see now. Thank you! Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] Iterating over objects of unknown length

2007-09-26 Thread Oleg Broytmann
On Thu, Sep 27, 2007 at 01:33:47PM +1200, Greg Ewing wrote: > Oleg Broytmann wrote: > >if sqlQuery: > > for row in sqlQuery: ... > >else: > > # no rows > > > >To prevent users from writing such code the class implements __nonzero__() > >that always

Re: [Python-Dev] MacOSX -framework options and distutils weirdness

2007-10-12 Thread Oleg Broytmann
few different copies of gcc installed with setup.py called the wrong one and your shell script the right one? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _

Re: [Python-Dev] [poll] New name for __builtins__

2007-11-29 Thread Oleg Broytmann
d __bruce__. No, __spam__! __Oleg__Stressed__by__undersores__'ly yours. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev

Re: [Python-Dev] [poll] New name for __builtins__

2007-11-29 Thread Oleg Broytmann
got? 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/listinf

Re: [Python-Dev] [poll] New name for __builtins__

2007-11-30 Thread Oleg Broytmann
n__ module instead. I saw it, and I think it'd be the best. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev

Re: [Python-Dev] blocking a non-blocking socket

2007-12-02 Thread Oleg Broytmann
Yes, this is the correct solution for all cases: if the timeout is None (socket is blocking) or 0 (non-blocking) or not-0 (blocking with timeout) - just set it back. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, t

Re: [Python-Dev] New Standard Library Module

2007-12-05 Thread Oleg Broytmann
uld be from __future__ import antigravity XKCD'ly yours ;) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailin

Re: [Python-Dev] Return type of round, floor, and ceil in 2.6

2008-01-05 Thread Oleg Broytmann
#x27;s worth to mention the existing of them, briefly. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Python-Dev mailing list Python-Dev@python.o

Re: [Python-Dev] pkgutil, pkg_resource and Python 3.0 name space packages

2008-01-06 Thread Oleg Broytmann
qlite) and user.database.sqlite (a newer version); and by doing import database.sqlite you know exactly what version you are importing. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] pkgutil, pkg_resource and Python 3.0 name space packages

2008-01-07 Thread Oleg Broytmann
quot;core". When I'm using Python I already know I'm using Python, I don't > want to be reminded of that fact on every import line. When I'm using Jython - am I using Python of Java? After from java.lang import Class should it be from py import exc

Re: [Python-Dev] PEP: per user site-packages directory

2008-01-15 Thread Oleg Broytmann
ferent distributions), Solaris and FreeBSD for quite a long time (though I have never used GNOME/KDE/etc.) Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB wit

Re: [Python-Dev] PEP: per user site-packages directory

2008-01-15 Thread Oleg Broytmann
re is no $HOME/.local/bin at the site. 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] Python-Dev Digest, Vol 54, Issue 57

2008-01-15 Thread Oleg Broytmann
~/.python/lib ~/.python/lib/python2.5 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] Python-Dev Digest, Vol 54, Issue 57

2008-01-15 Thread Oleg Broytmann
c., imagine what > my CPPFLAGS, CFLAGS and LDFLAGS arguments look like. :barf: Why not use GNU stow? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN.

Re: [Python-Dev] Python-Dev Digest, Vol 54, Issue 57

2008-01-15 Thread Oleg Broytmann
ittle better than ~/local, but both work for me. Having ~/.python allows me remove it with just one command. It's harder to clear ~/.local/{bin,lib} without affecting whatever I want to preserve there. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] #! magic (was PEP: per user site-packages directory)

2008-01-20 Thread Oleg Broytmann
s - some platforms silently ignores the options, some reports an error, some tries to find "python -E -s" in the PATH and report "Bad command or file name". Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don&#x

Re: [Python-Dev] #! magic

2008-01-20 Thread Oleg Broytmann
On Sun, Jan 20, 2008 at 06:25:57PM +0100, Jeroen Ruigrok van der Werven wrote: > -On [20080120 18:12], Oleg Broytmann ([EMAIL PROTECTED]) wrote: > > On most Unicies #! magic may have only one parameter after the program; > >the program here is env, the parameter is python, and tha

Re: [Python-Dev] Python-Dev Digest, Vol 54, Issue 57

2008-01-20 Thread Oleg Broytmann
OS X thing. I haven't seen it on other Unix systems. > > There is (at least) one linux distro using it, but it's not very > well-known. Gobo Linux? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] P

Re: [Python-Dev] #! magic

2008-01-20 Thread Oleg Broytmann
On Sun, Jan 20, 2008 at 07:30:03PM +0100, Christian Heimes wrote: > Oleg Broytmann wrote: > > #! /usr/bin/env python -O > > > >[trying to execute the script on Linux] > > > > /usr/bin/env: python -O: No such file or directory > > > > Oleg. >

Re: [Python-Dev] Python-Dev Digest, Vol 54, Issue 57

2008-01-20 Thread Oleg Broytmann
On Sun, Jan 20, 2008 at 07:34:02PM +0100, Jan Claeys wrote: > Op zondag 20-01-2008 om 20:46 uur [tijdzone +0300], schreef Oleg > Broytmann: > > On Sun, Jan 20, 2008 at 06:46:31PM +0100, Jan Claeys wrote: > > > Op woensdag 16-01-2008 om 02:33 uur [tijdzone +0100], schreef C

Re: [Python-Dev] #! magic

2008-01-20 Thread Oleg Broytmann
On Mon, Jan 21, 2008 at 12:17:20AM +0200, Tristan Seligmann wrote: > * Oleg Broytmann <[EMAIL PROTECTED]> [2008-01-20 20:12:38 +0300]: > > > On Sun, Jan 20, 2008 at 06:00:31PM +0100, Christian Heimes wrote: > > > #!/usr/bin/env python -E -s > > > >On

Re: [Python-Dev] #! magic

2008-01-21 Thread Oleg Broytmann
... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. $ python -E -s Unknown option: -s usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/

Re: [Python-Dev] Incorrect documentation of the raw_input built-in function

2008-01-24 Thread Oleg Broytmann
/dev/tty", "r+") >>> tty.write("1\n") 1 >>> line = tty.readline() DDD >>> line 'DDD\n' Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB w

Re: [Python-Dev] trunc()

2008-01-25 Thread Oleg Broytmann
On Fri, Jan 25, 2008 at 11:32:54AM -0800, Guido van Rossum wrote: > Does no-one thinks it means round(f) either? I don't think so. I often emulate round(f) as int(f + 0.5). Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers d

Re: [Python-Dev] [Python-checkins] r60919 - peps/trunk/pep-0008.txt

2008-02-22 Thread Oleg Broytmann
blame | less -S 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/list

Re: [Python-Dev] Buildbots for trunk are all red

2008-02-26 Thread Oleg Broytmann
On Tue, Feb 26, 2008 at 02:04:47PM -0800, Brett Cannon wrote: > Or we can get rid of bsddb and not have the problem anymore. =) +1 for smaller stdlib and fewer problems. Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don&#x

Re: [Python-Dev] Buildbots for trunk are all red

2008-02-28 Thread Oleg Broytmann
additional question? These words - what they were about? about the architecture of BDBStorage and Subversion, or about the very BerkeleyDB, or about what? Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die

Re: [Python-Dev] Documentation for ability to execute zipfiles & directories

2008-03-04 Thread Oleg Broytmann
On Tue, Mar 04, 2008 at 10:35:42PM +1000, Nick Coghlan wrote: > not needing an explicit interpreter option makes it more shebang friendly Sorry, I missed something here. How does one combine a zipfile with a shebang script?! Oleg. -- Oleg Broytmannhttp://phd.pp

Re: [Python-Dev] Documentation for ability to execute zipfiles & directories

2008-03-04 Thread Oleg Broytmann
s also news to me when the issue I > linked in my previous post was first brought to my attention :) So it really works? Amazing! Thank you! Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB wi

Re: [Python-Dev] New/Old class exception pitfall

2008-03-17 Thread Oleg Broytmann
On Mon, Mar 17, 2008 at 06:35:46PM -0400, Alexander Belopolsky wrote: > class x: > pass > class y(x): > pass > try: > raise y > except y: > print "a" > except: > print "b" > > It prints 'b'. Python 2.2, 2.3, 2.4 and 2.5 on

Re: [Python-Dev] New/Old class exception pitfall

2008-03-17 Thread Oleg Broytmann
Ah, yes - with this addition it prints 'b'. > class x: > pass > class y(x): > pass > try: > raise y > except y: > print "a" > except: > print "b" Oleg. -- Oleg Broytmannhttp://phd.pp.ru

Re: [Python-Dev] Trove classifiers

2008-03-20 Thread Oleg Broytmann
ed from SourceForge? Yes, exactly. Eric Raymond claims to be the inventor, but there are different voices against him: http://damagestudios.net/blog/2005/08/15/sourceforge-founders Oleg. -- Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmer

Re: [Python-Dev] Primer on distributed revision control?

2008-03-21 Thread Oleg Broytmann
ex.html#sharing-with-peers 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.

[Python-Dev] Decimal(unicode)

2008-03-25 Thread Oleg Broytmann
Hello. In Python 2.5.1 the code import decimal for d in '123', u'123': x = decimal.Decimal(d) print type(x.to_eng_string()) prints In 2.5.2 it prints Why the change? Is it a bug or a feature? Shouldn't .to_eng_string() always return a str? Oleg

Re: [Python-Dev] Decimal(unicode)

2008-03-25 Thread Oleg Broytmann
On Tue, Mar 25, 2008 at 10:47:42AM -0400, Mark Dickinson wrote: > On Tue, Mar 25, 2008 at 9:46 AM, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > >In 2.5.2 it prints > > > > > > > > > >Why the change? Is it a bug or a feature? Shouldn't .

  1   2   >