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
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 "@
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
17 matches
Mail list logo