[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-07-28 Thread Florian Dold

New submission from Florian Dold:

Habimg __slots__ = [] on a class inheriting from ctypes.Structure prevents 
undefined fields from being set, as expected.

When inheriting from ctypes.BigEndianStructure, however, it is possible to set 
undefined fields.

See the attached file for small test case for the behavior.

--
components: ctypes
files: bug-ctypes-slots.py
messages: 224195
nosy: Florian.Dold
priority: normal
severity: normal
status: open
title: Behavior of Structure inconsistent with BigEndianStructure when using 
__slots__
versions: Python 3.4
Added file: http://bugs.python.org/file36146/bug-ctypes-slots.py

___
Python tracker 
<http://bugs.python.org/issue22098>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-07-28 Thread Florian Dold

Changes by Florian Dold :


--
type:  -> behavior

___
Python tracker 
<http://bugs.python.org/issue22098>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26677] pyvenv: activate.fish breaks $PATH for bash scripts

2016-03-31 Thread Florian Dold

New submission from Florian Dold:

When sourcing the activate script from bash, $PATH is restored from 
$_OLD_VIRTUAL_PATH.  If bash was invoked from fish (e.g. when running a shell 
script), and a virtualenv was activated from fish via activate.fish, the 
$_OLD_VIRTUAL_PATH will contain path separated by the ascii record separator 
char (chr(30)), since this is how the fish shell stores arrays.

But the activate script for bash will then set $PATH to $_OLD_VIRTUAL_PATH, 
which breaks most bash scripts.

Instead the activate scripts should differentiate between

$_OLD_BASH_VIRTUAL_PATH
and
$_OLD_FISH_VIRTUAL_PATH

or the activate.fish should take care to replace chr(30) with colons before it 
sets $_OLD_VIRTUAL_PATH.


bash$ pyvenv my-venv
bash$ fish
fish$ . my-venv/bin/activate.fish
fish$ bash
bash$ . my-venv/bin/activate
# $PATH is now broken, since it contains record separators instead of colons to 
separate paths

--
components: Library (Lib)
messages: 262696
nosy: Florian.Dold
priority: normal
severity: normal
status: open
title: pyvenv: activate.fish breaks $PATH for bash scripts
versions: Python 3.5

___
Python tracker 
<http://bugs.python.org/issue26677>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com