New submission from Buck Golemon :
In our environment, we have a wrapper which enables optimization by default
(-OO). Most commandline tools which have a mode-changing flag such as this,
also have a flag to do the opposite ( see: ls -t -U, wget -nv -v, ).
I'd like to implement one or bo
Buck Golemon added the comment:
Minimal demo:
$ setenv PYTHONOPTIMIZE 0
$ python3.1 -OO -c "print(__debug__)"
False
I've used this code to get the desired functionality:
if [[ $TESTING == 1 || ${PYTHONOPTIMIZE-2} =~ '^(0*|)$' ]]; then
#someone is requesting no o
Buck Golemon added the comment:
If I understand this code, it means that PYTHONOPTIMIZE set to 1 or 2 works as
expected, but set to 0, gives a flag value of 1.
static int
add_flag(int flag, const char *envs)
{
int env = atoi(envs);
if (flag < env)
flag =
Buck Golemon added the comment:
"that number of times" isn't exactly accurate either, since "0" is effectively
interpreted as "1".
This change would only adversely affect people who use no -O option, set
PYTHONOPTIMIZE to '0', and need optimizat
Buck Golemon added the comment:
The file is here:
http://svn.python.org/view/python/trunk/Python/pythonrun.c?view=markup
The second if statement is doing exactly what I find troubling: set the flag
even if the incoming value is 0.
I guess this is to handle the empty string case, such as
Buck Golemon added the comment:
On Ubuntu 10.10 (maverick), python2.6 is functioning correctly, but python2.7
is giving this error again.
$ /usr/bin/python2.7
>>> from multiprocessing.synchronize import Semaphore
ImportError: This platform lacks a functioning sem_open imple
Buck Golemon added the comment:
> Isn't this an Ubuntu problem if sem_open only works with some specific
> kernels?
sem_open works fine (python2.6 is using it), but the python2.7 build process
didn't detect it properly. This is either a bug with Ubuntu's python2.7 bui
Changes by Buck Golemon :
--
title: Cannot import name SemLock on Ubuntu lucid -> Cannot import name SemLock
on Ubuntu
___
Python tracker
<http://bugs.python.org/iss
Buck Golemon added the comment:
> I suggest that you try to build from the above mercurial repository and see
> if the problem persists.
How do I know the configuration options that the Ubuntu packager used?
--
___
Python tracker
Buck Golemon added the comment:
python2.7.1+ from mercurial supports sem_open (and multiprocessing) just fine.
doko: Could you help us figure out why the ubuntu 10.10 python2.7 build has
this issue? I believe this issue should be assigned to you?
Relevant lines from the config.log
Buck Golemon added the comment:
@Barry: Yes, it's still a problem.
The ubuntu 10.10 python2.7 still has no multiprocessing.
Since the EOL is April 2012, it needs fixed.
It may be considered an invalid python bug, since it seems to be strictly
related to Ubuntu packaging, but I though
Buck Golemon <[EMAIL PROTECTED]> added the comment:
I'm not sure what your problem is, but comp.lang.python might be a
better place to ask. It's not clear that this is a bug yet.
http://groups.google.com/group/comp.lang.python/topics
--
Buck Golemon <[EMAIL PROTECTED]> added the comment:
If there's no difference then they should work the same?
I agree there's probably little value in 'fixing' it.
__
Tracker <[EMAIL PROTECTED]>
&
Buck Golemon <[EMAIL PROTECTED]> added the comment:
/agree
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2613>
___
___
Python-bugs
New submission from Buck Golemon :
1) As long as x is valid, I expect that urlunsplit(urlsplit(x)) == x
2) yelp:///foo is a well-formed (albeit odd) url. It it similar to file:///tmp:
it specifies the /foo resource, on the "current" host, using the yelp protocol
(defined on mobi
Buck Golemon added the comment:
Well i think the real issue is that you can't enumerate the protocals that "use
netloc". All protocols are allowed to have a netloc. the smb: protocol
certainly does, but it's not in the list.
The core issue is that smb:/foo and smb:///fo
Buck Golemon added the comment:
Let's examine x://
absolute-URI = scheme ":" hier-part [ "?" query ]
hier-part = "//" authority path-abempty
So this is okay if authority and path-abempty can both be empty strings.
authority = [ userinfo "@
New submission from Buck Golemon:
I have "fixed" the issue in my branch here:
https://github.com/bukzor/cpython/commit/013e689731ba32319f05a62a602f01dd7d7f2e83
I don't propose it as a patch, but as a proof of concept and point of
discussion.
If there's no chance of shi
Buck Golemon added the comment:
I believe this issue is still extant.
The tip httplib client neither sends accept-encoding gzip nor supports
content-encoding gzip.
http://hg.python.org/cpython/file/tip/Lib/http/client.py#l1012
There is a diff to httplib in this attached patch, where there
New submission from Buck Golemon:
In order to make an inheritable pipe, the code is quite a bit different between
posixes that implement pipe2 and those that don't (osx, mainly). I believe the
officially-supported path is to call os.pipe() then os.setinheritable(). This
seems objectio
New submission from Buck Golemon:
The color needs adjusted such that it has at least 3:1 luminance contrast
versus the surrounding non-link text. (See "non-inheritable"
https://docs.python.org/3/library/os.html#os.dup)
See also:
* http://www.w3.org/TR/WCAG20/#visual-audio-contra
Buck Golemon added the comment:
I notice that dup2 grew an `inheritable=True` argument in 3.4.
This might be a good precedent to use here, as a third option.
--
___
Python tracker
<http://bugs.python.org/issue22
Buck Golemon added the comment:
Proposed patch attached.
--
keywords: +patch
Added file: http://bugs.python.org/file37006/link-color.patch
___
Python tracker
<http://bugs.python.org/issue22
Buck Golemon added the comment:
We've hit this problem today.
What are we supposed to do in the meantime?
--
nosy: +bukzor
___
Python tracker
<http://bugs.python.org/i
24 matches
Mail list logo