[issue5945] PyMapping_Check returns 1 for lists

2015-02-02 Thread Buck Golemon

Buck Golemon added the comment:

We've hit this problem today.

What are we supposed to do in the meantime?

--
nosy: +bukzor

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5945
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22722] inheritable pipes are unwieldy without os.pipe2

2014-10-24 Thread Buck Golemon

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 objectionable since set_inheritable() code is invoked twice, where I'd 
prefer to invoke it zero times (or at most once).

Would it be acceptable to implement a pipe2 shim for those platforms?
If so, I'll (attempt to) provide a patch.

Alternatively, can we change the signature of os.pipe() to 
os.pipe(flags=O_CLOEXEC) ?  In my opinion, such a function could be implemented 
via pipe2 on those platforms that provide it, obviating any need for an 
os.pipe2.

Please tell me which patch to provide, if any.

--
messages: 229947
nosy: bukzor
priority: normal
severity: normal
status: open
title: inheritable pipes are unwieldy without os.pipe2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22723] visited-link styling is not accessible

2014-10-24 Thread Buck Golemon

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-contrast-without-color
 * 
http://www.w3.org/WAI/WCAG20/Techniques/working-examples/G183/link-contrast.html

Given that the surrounding text is #222, the a:visited color should be bumped 
from #30306f to #6363bb in order to meet the 3:1 luminance-contrast guideline 
while preserving the hue and saturation.

By the same calculation, the un-visited links are slightly too dark and should 
be bumped from #00608f to #0072aa

Validation was done here: 
http://juicystudio.com/services/luminositycontrastratio.php

Luminance adjustments done here: http://colorizer.org/

--
assignee: docs@python
components: Documentation
messages: 229952
nosy: bukzor, docs@python
priority: normal
severity: normal
status: open
title: visited-link styling is not accessible

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22723
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22722] inheritable pipes are unwieldy without os.pipe2

2014-10-24 Thread Buck Golemon

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 rep...@bugs.python.org
http://bugs.python.org/issue22722
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22723] visited-link styling is not accessible

2014-10-24 Thread Buck Golemon

Buck Golemon added the comment:

Proposed patch attached.

--
keywords: +patch
Added file: http://bugs.python.org/file37006/link-color.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22723
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22455] idna/punycode give wrong results on narrow builds

2014-09-21 Thread Buck Golemon

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 shipping a fix in 2.7.9, feel free to close.

--
messages: 227240
nosy: bukzor
priority: normal
severity: normal
status: open
title: idna/punycode give wrong results on narrow builds
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22455
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1243678] httplib gzip support

2014-01-24 Thread Buck Golemon

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 was none in 
#1675951.

--
nosy: +Buck.Golemon

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1243678
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15009] urlsplit can't round-trip relative-host urls.

2012-07-05 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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 @ ] host [ : port ]
host  = IP-literal / IPv4address / reg-name
reg-name  = *( unreserved / pct-encoded / sub-delims )
path-abempty  = *( / segment )

Yep.

And the same applies for x:///y, except that path-abempty matches /y
instead of nothing.

This means these are in fact valid urls per RFC3986, counter to your claim.

--
nosy: +bukzor

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15009
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15009] urlsplit can't round-trip relative-host urls.

2012-06-07 Thread Buck Golemon

Buck Golemon b...@yelp.com 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:///foo are different urls, and should 
be represented differently when split. The /// form has a netloc, it's just the 
empty-string. The single-slash form has no netloc, so I propose that 
urlsplit('smb:/foo') return SplitResult(scheme='smb', netloc=None, path='/foo', 
query='', fragment='')

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15009
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15009] urlsplit can't round-trip relative-host urls.

2012-06-05 Thread Buck Golemon

New submission from Buck Golemon b...@yelp.com:

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 mobile devices).

 from urlparse import urlsplit, urlunsplit
 urlunsplit(urlsplit('yelp:///foo'))
'yelp:/foo'

Urlparse / unparse has the same bug:

 urlunparse(urlparse('yelp:///foo'))
'yelp:/foo'

The file: protocol seems to be special-case, in an inappropriate manner:

 urlunsplit(urlsplit('file:///tmp'))
'file:///tmp'

--
components: Library (Lib)
messages: 162378
nosy: Buck.Golemon
priority: normal
severity: normal
status: open
title: urlsplit can't round-trip relative-host urls.
versions: Python 2.6, Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15009
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8326] Cannot import name SemLock on Ubuntu

2011-04-26 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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 thought the python maintainers should know.

--Buck

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8326
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8326] Cannot import name SemLock on Ubuntu

2011-04-24 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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:


configure:9566: checking for sem_open
configure:9566: gcc -pthread -o conftest -g -O2   conftest.c -lpthread -ldl  5
configure:9566: $? = 0
configure:9566: result: yes

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8326
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8326] Cannot import name SemLock on Ubuntu lucid

2011-04-14 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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 build 
configuration, or with python2.7's feature detection for sem_open.

I'm not sure which.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8326
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8326] Cannot import name SemLock on Ubuntu

2011-04-14 Thread Buck Golemon

Changes by Buck Golemon buck.gole...@amd.com:


--
title: Cannot import name SemLock on Ubuntu lucid - Cannot import name SemLock 
on Ubuntu

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8326
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8326] Cannot import name SemLock on Ubuntu

2011-04-14 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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 rep...@bugs.python.org
http://bugs.python.org/issue8326
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8326] Cannot import name SemLock on Ubuntu lucid

2011-04-13 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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 implementation, 
therefore, the required synchronization primitives needed will not function, 
see issue 3770.

--
nosy: +bukzor

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8326
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9583] PYTHONOPTIMIZE = 0 is not honored

2010-09-20 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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 optimization
export -n PYTHONOPTIMIZE
opt=''
elif [[ $PYTHONOPTIMIZE ]]; then
#someone is setting their own optimization
opt=''
else
#optimization by default
opt='-O'
fi

exec $INSTALL_BASE/bin/python2.6 $opt $@

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9583
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9583] Document startup option/environment interaction

2010-09-20 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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 = env;
if (flag  1)
flag = 1;
return flag;
}


Read literally, the man page indicates that any integer value will give a flag 
value of 2. 

I agree my shell script is probably unusual, but I believe setting this 
environment value to zero and expecting the feature to be off (given no 
contradicting options) is reasonable.

I petition to remove the second if statement above (environment value of 0 
yields no flag).

I'd also love to provide a numeric argument to -O, to dynamically set this 
value more readily, but that is lower importance.

I can implement these and run the unit tests if required.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9583
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9583] Document startup option/environment interaction

2010-09-20 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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 optimization.
I feel like that falls into the realm of version differences, but that's your 
decision.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9583
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9583] Document startup option/environment interaction

2010-09-20 Thread Buck Golemon

Buck Golemon buck.gole...@amd.com 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:

setenv PYTHONDEBUG
./myscript.py

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9583
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9583] PYTHONOPTIMIZE = 0 is not honored

2010-08-12 Thread Buck Golemon

New submission from Buck Golemon buck.gole...@amd.com:

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 both of:
1) Add a -D option which is the opposite of -O. python -OO -D gives an 
optimization level of 1.
2) Honor PYTHONOPTIMIZE = 0. At the least, the man page needs to describe how 
these two methods interact.

--
components: Interpreter Core
messages: 113717
nosy: bukzor
priority: normal
severity: normal
status: open
title: PYTHONOPTIMIZE = 0 is not honored
type: behavior
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9583
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2613] inconsistency with bare * in parameter list

2008-06-04 Thread Buck Golemon

Buck Golemon [EMAIL PROTECTED] added the comment:

/agree

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2613
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2613] inconsistency with bare * in parameter list

2008-05-27 Thread Buck Golemon

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]
http://bugs.python.org/issue2613
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2950] silly readline module problem

2008-05-23 Thread Buck Golemon

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

--
nosy: +bgolemon

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2950
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com