ble.
ICU is perhaps the only way around the problem.
Oleg.
--
Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
Python-Dev@python.
On Sat, Dec 18, 2010 at 06:21:24PM -0500, Terry Reedy wrote:
> On 12/18/2010 10:33 AM, Oleg Broytman wrote:
>
>> This is quite a known problem, not specific to Python. Locale
>> settings are global for a process, and this is one of the thousands
>> reasons why locale i
On Mon, Dec 20, 2010 at 01:09:19AM +0100, ??ric Araujo wrote:
> Le 18/12/2010 16:33, Oleg Broytman a ??crit :
> >This is quite a known problem, not specific to Python. Locale
> > settings are global for a process, and this is one of the thousands
> > reasons why lo
ot;phdru" two
times - the address is an alias for "phd").
The new domain is already delegated, email and site works. I'm working
on changing all my email subscriptions.
Oleg.
--
Oleg Broytmanhttp://phd.pp.ru/p...@phd.pp.ru
Programm
; It works with other version control systems and provides me the opportunity
> to save a copy I can restore later.
"hg revert" saves files before reverting as *.orig.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don'
___
> Python-Dev mailing list
> Python-Dev@python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/phd%40phdru.name
Oleg.
--
Oleg Broytmanhttp://phdru.na
ith koi8-r
locale I use codepage=cp866,iocharset=koi8-r (cp866 is OEM encoding for
cp1251 ANSI).
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
_
proper mail -
with a subject, with a properly formatted text, not html.
http://www.catb.org/~esr/faqs/smart-questions.html
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSU
ion for all these problems, with a price, of course.
Let's use utf8+base64. Base64 uses a very restricted subset of ASCII and
filenames will never be interpreted whatever filesystem encodings would
be. The price is users loose standard OS tools like ls and find.
I am partially joking, of course,
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/
g write access during
> > that time. The outage shouldn't be longer than an hour.
>
> It's time to move to Mercurial! :-)
Never do two upgrades at once! Especially on Fridays!
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
On Tue, Mar 22, 2011 at 05:30:09PM -0400, Barry Warsaw wrote:
> a file called subproc.py posted to comp.lang.python
> by Ken Manheimer.
Can you believe - I still use the module?! (-:
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Progr
data (dict keys) and program
> variables (attributes).
Me too.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
Pyth
1': 3}
> x == {'key1': 1} # Original variable is unchanged
You can implement this in your own subclass of dict, no?
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
_
t; - that what I did, and "compare" is what the code does.
(I used an excerpt from above only for the example, not to correct
something.)
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without R
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
On Mon, Jun 27, 2011 at 10:24:28AM +0200, Antoine Pitrou wrote:
> FWIW, I tend to understand "members" as "methods + attributes", which makes
> it a nice term to use for that purpose.
That's my feeling too.
Oleg.
--
Oleg Broytmanhttp://phdru.n
rry over these optional arguments to higher level
> libraries like mechanize, urllib, httplib etc.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
On Sat, Jul 16, 2011 at 04:12:45PM +0200, Maciej Fijalkowski wrote:
> On Thu, Jul 7, 2011 at 7:59 PM, Oleg Broytman wrote:
> > We are sorry but we cannot help you. This mailing list is to work on
> > developing Python (adding new features to Python itself and fixing bugs);
>
thy D. Kadich wrote:
> I'm trying to use the import hook in Python2.6, but I'm having a problem. It
> doesn't work for numpy. My error is such:
[skip]
> > TypeError: import_hook() takes at most 4 arguments (5 given)
Seems like import_hook is from an older version
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/
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
Hello!
I released the first package of two and PyPI went down while I was
preparing to release the second. I hope it wasn't me?
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB with
and not by monkey-patching traceback.py,
probably format_list and format_exception_only?
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-D
What if I want to assert my test raises neither OSError nor IOError?
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
Pyt
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):
> >>+""
hoices = self.choice_method(form_index)
>
> def choice_method(self, form_index):
>
> list = []
>
> item_list = []
>
> criteria_list = []
>
> criteria_length = len(sub_criterias)-1
>
> for criteria_index in range(criteria_length):
>
> counter = 1
>
> i
umber components
> are called major, minor, micro, releaselevel and serial, in this
> order? So when the minor version component is increased it's a major
> version increment? :)
When the major version component is increased it's a World Shattering
Change, isn't it?! ;-)
32- and 64-bit versions of Python and libraries, and there are
about 70 copies of it at client sites so it'd be very hard to recompile
and adapt it to Python 2.6, test and upgrade all clients.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programm
Smith wrote:
> I have started HandBrakeCLI using subprocess.popen but the output is
> multiline and not terminated with \n so i am not able to read it using
> readline() while the HandBrakeCLI is running. kindly suggest some
> alternative. i have attached the output in a file.
Ol
download/Descriptor.htm:
...transforms b.x into type(b).__dict__['x'].__get__(b, type(b))..
Please note the first type(b).
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
paspa...@noos.fr wrote:
> Hello,I am trying to send a tuple to a method of a python class
Also please don't send html-only mail.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GO
f them doesn't actually *type* the message ;)
Certainly, no.
:0r mail/misc/python-dev
And even this command is in vim history, I don't type it, just press
:0 ;-)
Sometimes I add something useful to the OP but this time I didn't - I
just haven't got any helpful info
ince they are stripped out after?
>
> Thanks,
> Andrea
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing li
omplete, answer there. See
http://www.python.org/community/ for other lists/news groups/fora.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
__
ithout
> forcing that preference on the rest of us.
Seconded. My display is 1920x1200 but I use very large fonts and I'm
satisfied with line lengths.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
have the same background. Bold font
and/or a different foreground color would be better, in my opinion.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubsc
On Sun, Mar 25, 2012 at 08:34:44AM +0200, Georg Brandl wrote:
> http://www.python.org/~gbrandl/build/html2/
Perfect! I like it!
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB withou
ag in (THIS, THAT):
try:
clock = get_clock(flag)
except:
pass
else:
break
else:
raise ValueError('Cannot get clock, tried THIS and THAT')
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
On Wed, Apr 04, 2012 at 11:03:02AM -0700, Ethan Furman wrote:
> Oleg Broytman wrote:
> > . Pythonic equivalent of "get_clock(THIS) or get_clok(THAT)" is
> >
> >for flag in (THIS, THAT):
> >try:
> >clock = get_clock(flag)
> >exce
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
> >
On Thu, Apr 05, 2012 at 10:06:38PM +0900, Stephen J. Turnbull wrote:
> On Thu, Apr 5, 2012 at 8:05 AM, Oleg Broytman wrote:
> > Well, I am partially retreat. "Errors should never pass silently.
> > Unless explicitly silenced." get_clock(FLAG, on_error=None) could retu
On Thu, Apr 05, 2012 at 11:45:06PM +0900, Stephen J. Turnbull wrote:
> On Thu, Apr 5, 2012 at 10:34 PM, Oleg Broytman wrote:
> > Why doesn't open() return None for a non-existing file? or
> > socket.gethostbyname() for a non-existing name?
>
> That's not an answe
On Thu, Apr 05, 2012 at 07:22:17PM +0400, Oleg Broytman wrote:
> On Thu, Apr 05, 2012 at 11:45:06PM +0900, Stephen J. Turnbull wrote:
> > find it
> > hard to imagine use cases where "file = open(thisfile) or
> > open(thatfile)" makes sense. Not even for the case wh
t; for 'open'.
May be we do. Depends on the usage patterns.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
*not* raise a NotFound exception.
But open() raises IOError. ''.find('a') returns -1 but ''.index('a')
raises ValueError.
So we can argue in circles both ways, there are too many arguments
pro and contra. Python is just too inconsistent to be con
ue "AttributeError: 'NoneType' object has no attribute 'clock'".
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
__
On Mon, Apr 16, 2012 at 12:38:41PM +0200, Victor Stinner
wrote:
> Bikeshedding is maybe a common issue with the discussion around time
> function? :-)
Perhaps because everyone of us lives in a different Time-Space
Continuum? ;-)
Oleg.
--
Oleg Broytmanhttp://phdr
gs = PyTuple_New(1);
> > + if (args == NULL)
> > +return NULL;
> > +
> > + kwargs = PyDict_New();
> > + if (args == NULL)
> > +return NULL;
Shouldn't the second test be
if (kwargs == NULL)
???
Oleg.
--
Oleg Broytmanhttp://
; >team or individual may make different choices? I???m not a native speaker
> >and
> >I???m not sure about the intended meaning.
>
> If I change that phrase to "Use your own judgement" does that help?
Yes, in my opinion.
Oleg.
--
Oleg Broytman
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/
les] libbz2-dev
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/pyt
installed the Debian package
> python3-bs4 (BeautifulSoup4 for Python3). I also downloaded a "clone"
> developmental copy of 3.3.
>
> Python3.3a3 cannot find module bs4.
Could it be bs4 is installed in python3.2-specific path and hence it's
not in python3.3 sys.path?
O
Mr.T Beppu" wrote:
> I think that I will make a browser in Official Python (not MacPorts
> Python).
> What should I do in order to install Webkit for Official Python (not
> MacPorts Python) ?
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
ge varies among them.
>
This is the key. You have to install the development version of the
Python package *for your distribution*, not python from sources.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Prog
in the past, if not, and I come
> with a working solution for Unix (at least Linux/Freebsd) will it be
> concidered.
I'm sure it'll be considered providing that the solution doesn't slow
down local FS access.
Oleg.
--
Oleg Broytmanhttp://ph
can be traversed
during pathname resolution: 8
The constant _POSIX_SYMLOOP_MAX from unistd.h:
#define _POSIX_SYMLOOP_MAX 8
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB wit
nted without
something like "-o allow_other" or "-o allow_root":
root@nb # ls /home/phd/mnt/net
ls: cannot access /home/phd/mnt/net: Permission denied
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die,
n't find it now. Can someone confirm and/or
> nudge me in the right direction, please?
This one? https://bitbucket.org/mirror/python-py3k
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't di
lemented and used.
1. https://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing
On Tue, Aug 28, 2012 at 08:19:08PM +0200, "\"Martin v. L?wis\""
wrote:
> Am 28.08.12 19:15, schrieb Oleg Broytman:
> >> The RFC database itself has expiration dates on specifications,
> >> namely on I-D documents (internet drafts). The expire 6 months
>
nteresting to see tables like these for Python.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
Python-Dev@python.org
ht
On Mon, Oct 01, 2012 at 11:50:10PM +0200, Christian Heimes
wrote:
> Am 30.09.2012 14:01, schrieb Oleg Broytman:
> >Many kudos to the team and to all contributors!
> >
> >Linux Weekly News regularly publishes tables "Who done what in Linux
> > Kernel&
d)
sys.path. And nothing else.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python
project.
>
> I gonna use python for my Master Degree in Computer Sciences.
>
> Thanks
> Jose Figueroa
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
to post usage questions regarding the Python C
> API to this list like the questions below?
I think not until you ask a question in python-list/comp.lang.python
and don't get any reply.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Progr
x27;z':3,
> > ...
> > }
>
> Hey, it makes me a little sad that dict breaks convention by allowing
> the use of unquoted characters (which everywhere else looks like
> variable names) just for a silly typing optimization.
It doesn't. It's a cal
o
> use variables as the keys, rather than requiring (effectively) literal
> strings. But it does make a dict literal that much more "noisy" than
> the constructor.
On the other had it's more powerful. You can write {'cl
fer a lot
of pain -- code death and all that. Try to lessen user's pain, but never
expect a piece of software to become perfect once, for all and forever.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB with
\+ 2>/dev/null
> >
> Use pss ;-) [http://pypi.python.org/pypi/pss]
Hardly. I am proficient in find+grep. And pss is underdocumented.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
#x27;{}' \+
to be quite fast.
In my opinion all those small utilities are pets of their authors and
they solve their problems quite good... but not mine. GNU utilities are
used by a huge number of people and solve much wider problems much
better. Though not necessary in a much more
On Fri, Nov 16, 2012 at 01:20:17PM -0800, Eli Bendersky
wrote:
> On Fri, Nov 16, 2012 at 6:25 AM, Oleg Broytman wrote:
> >And pss is underdocumented.
> >
> Even reading
> https://bitbucket.org/eliben/pss/wiki/Usage#!usage-samplescombined
Compare your page with
On Fri, Nov 16, 2012 at 02:35:13PM -0800, Guido van Rossum
wrote:
> Oleg, this is inappropriate for python-dev. It's also a bit
> uncivilized and unkind.
Shame on me! Please, everyone, take my sincerest apology! I'm
stopping now.
Oleg.
--
Oleg Broytmanh
rotation.
An external log rotation mechanism ought to send a signal to the
application and the application ought to close and reopen logs. That is,
this is an application-level problem, not logging module-level.
Oleg.
--
Oleg Broytmanhttp://phdru.name/
; By the way, RedHat 5.5 has a built-in python 2.4.3. Would it be a problem?
Depends on what are you going to do.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
___
isnek wrote:
> Hi, is it possible to access the values stored on the stack in Python stack
> machine from Python?
In short: it's possible but very much discouraged. Don't hack into
python internals.
Oleg.
--
Oleg Broytmanhttp://phdru.name/
nglin wrote:
> ImportError: No module named 'test.test_idna'
Really, there is no module test.test_idna. Look into Lib/test/ yourself.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they ju
think yes, it's compatible with Python license.
Also I think you have to copy the license to the section "Licenses and
Acknowledgements for Incorporated Software" in Doc/license.rst.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programm
it properly --
via a signed paper. You can send it by snail mail, or you can scan it
and send by email.
Oleg.
--
Oleg Broytmanhttp://phdru.name/p...@phdru.name
Programmers don't die, they just GOSUB without RETURN.
_
On Mon, Feb 11, 2013 at 09:18:58PM +0300, anatoly techtonik
wrote:
> On Mon, Feb 11, 2013 at 4:01 PM, Oleg Broytman wrote:
>
> > On Mon, Feb 11, 2013 at 03:49:39PM +0300, anatoly techtonik <
> > techto...@gmail.com> wrote:
> >
t; return rawdata.find(">", j) + 1
>
>
> Wouldn't it be better to do the following?
> pos = rawdata.find(">", j)
> if pos != -1:
> return pos + 1
>
> Otherwise I think we are scanning rawdata[j:] twice.
Is it really a signi
201 - 282 of 282 matches
Mail list logo