Robert Xiao added the comment:
So we have some other problems then:
(1) It should be documented in dbm, and ideally in shelve, that keys/values
over a certain limit might not work. Presently there is no hint that such a
limit exists, and until you mentioned it I was unaware that POSIX only
Robert Collins added the comment:
Oh, and why look for __init__ - in part, because it predates namespace
packages, but also because unlike regular imports unittest will do negative
things like reading the entire filesystem otherwise.
--
___
Python
Robert Collins added the comment:
Whats the use for *unittest* - a tool to help folk develop - to run a test
which is only present in sourceless form?
--
___
Python tracker
<https://bugs.python.org/issue32
New submission from Robert Bricheno :
PEP 566 added the metadata fields 'Description-Content-Type' and
'Provides-Extra':
https://www.python.org/dev/peps/pep-0566/
http://setuptools.readthedocs.io/en/latest/setuptools.html#metadata
Currently dist.py in CPython distutils w
Change by Robert Bricheno :
--
keywords: +patch
pull_requests: +6339
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33388>
___
___
Py
New submission from Robert Gomułka:
Enum module handles "name" member incorrectly.
1. "name" can't be used as a member when decorated with unique:
>>> import enum
>>> @enum.unique
... class A(enum.IntEnum):
... a = 1
... name = 2
...
Traceback
Robert Gomułka added the comment:
As a workaround, one can:
1. Rename the fields to not use name/value names
2. Use Enum instead of IntEnum, which somehow doesn't have this bug.
--
___
Python tracker
<https://bugs.python.org/is
Robert Gomułka added the comment:
It turns out that enum34 backports module was the culprit (it was first on
search path). When using enum native module, everything works as expected:
> c:\Python\Python36-32\python.exe -I
Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32
New submission from Robert Snoeberger :
The signature for PyBuffer_FillContiguousStrides in the documentation shows
that the type of parameter 'itemsize' is Py_ssize_t [1]. This is different from
the signature in Include/abstract.h which shows that the type as int [2].
New submission from Robert Smart :
When a generator procedure ends with "yield from" it would be nice if this was
handled efficiently (just replace the generator with the new source). Because
it is natural to push things back into a generator with
def prependGen(hd,tl):
yield hd
Robert Collins added the comment:
So, I think we're in a local minima here.
As I said earlier, neither the old nor new names really grab me, and I think
everyone has aknowledged that the new name is -at best- confusing. We don't
need *any more discussion* about that. The question
Change by Robert Wright :
--
pull_requests: +8064
___
Python tracker
<https://bugs.python.org/issue32321>
___
___
Python-bugs-list mailing list
Unsubscribe:
Robert Collins added the comment:
Serhiy, thats not a design flaw, its a feature.
in a class hierarchy, setup and teardown ordering is undefined: implementors
can choose whatever order they want to execute in. e.g.
class A(TestCase):
def setUp(self):
super().setUp()
acquire1()
class B
Robert Wall added the comment:
I saw that article too but reading man tcp(4) [1], it says that this value is
in seconds for macOS and testing appears to confirm this.
Where the unit of time is different, however, is with the old and new Windows
keepalive options discussed in #32394. The
Change by Robert Benson :
--
versions: +Python 2.7
___
Python tracker
<https://bugs.python.org/issue35005>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Robert Benson :
--
components: Library (Lib)
nosy: derelbenkoenig
priority: normal
severity: normal
status: open
title: argparse should accept json and yaml argument types
type: enhancement
___
Python tracker
<https://bugs.python.
Change by Robert Benson :
--
versions: -Python 2.7
___
Python tracker
<https://bugs.python.org/issue35005>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Robert Benson :
Using `argparse`, I wanted to create an argument that was a JSON dictionary. I
found that using this in combination with the `fromfile_prefix_args` keyword
argument, that the parser assumes that each argument provided in the file must
be on a single line
Robert Benson added the comment:
What I'm talking about is reading a single arg (of a dictionary or collection
type) that can be split across multiple lines, rather than a single line
containing multiple args
My motivation was that reading args from a file should behave in a manner
si
Robert Xiao added the comment:
I just started a new project, thoughtlessly decided to use `shelve` to store
data, and lost it all again thanks to this bug.
To reiterate: Although `gdbm` might fix this issue, it's not installed by
default. But the issue is with `dbm`: Python is allowi
New submission from Robert Wright :
Sentinel values are used inconsistently in the Python code base.
It would be helpful to have a style guide (about eg. casing, placement, and
sentinel reuse) to prevent arguments about their use in future code.
--
messages: 328984
nosy: madman bob
New submission from Robert Wright :
There should be a style guide for tests, to prevent arguments about their use
in future code.
--
messages: 328986
nosy: madman bob
priority: normal
severity: normal
status: open
title: Add style guide for unit tests
Robert Wright added the comment:
Just the classic problems caused by inconsistency in code - confusion when
reading, and disagreements when writing.
For reading: Where should I look in a file for the sentinels? Is this value a
sentinel, or is it some other type of variable?
For writing
New submission from Robert Pollak :
Currently, fields are converted to datetime as described in
https://docs.python.org/3/library/sqlite3.html#sqlite3.PARSE_COLNAMES :
'select x as "x [datetime]" from table'
In my use case I don't know the names and locations
Robert Pollak added the comment:
(In fact, I am currently taking the first non-missing entry of each text column
and trying to dateutil.parser.parse it. If that works, I use pandas.to_datetime
on the column.)
--
___
Python tracker
<ht
New submission from Robert Henry :
File Misc/README.valgrind is out of date with respect to python3.8. There are
important sections of this file that are 15 years old!
Example: the README.valgrind refers to "Uncomment Py_USING_MEMORY_DEBUGGER in
Objects/obmalloc.c" but there
Robert Pollak added the comment:
Thank you, Paul, for your hints on sniffing. I have now asked at SqliteStudio
for confirmation that they also do content sniffing to detect datetime text
fields: https://github.com/pawelsalawa/sqlitestudio/issues/3449 .
So in this issue I am suggesting to
Change by Robert Pollak :
--
title: sqlite3: "select *" should autoconvert datetime fields -> sqlite3:
"select *" should optionally autoconvert TEXT datetime fields
___
Python tracker
<https://
Robert Pollak added the comment:
Stéphane, your example does not match my use case with unknown table structure.
Does everyone agree that such a sniffing is out of scope for sqlite3?
That's not what I'd call "batteries included" :-(
--
title: sqlite3: "se
Robert Pollak added the comment:
I have created the attached sqlite database file (with SQLiteStudio) for
testing. I contains a table `t` with a TEXT column `x` and a DATETIME
(according to SQLiteStudio) column `y`. The table contains a single row with
the value `2018-11-05 12:20:30` for
Robert Pollak added the comment:
Paul, the sniffing would be only active for people who explicitly add a
connect() argument like detect_types=DETECT_DATETIME, which can have the
appropriate warning in the docs. You can also extend the sniffing to all
values, not just the first non-missing
Robert Pollak added the comment:
Here is now a reduced version of my real use case: 2017v2-reduced.db. The file
was originally created with "Oracle DBConvert". This file contains a table
without rows.
I was wrong in my last comment: There's also no sniffing needed here, see
Robert Wright added the comment:
Perhaps there's confusion over what I mean by "style guide". I'd happily take
Steven's message *as* the style guide. Or, at the very least, the clarification
that sentinels are to be thought of as constants.
It's one of th
Change by Robert Pollak :
--
title: sqlite3: "select *" should optionally sniff and autoconvert TEXT
datetime fields -> sqlite3: optionally autoconvert table_info's DATETIME fields
___
Python tracker
<https://bugs.
Robert Collins added the comment:
Hey, feel free to +nosy me on unittest things :). Julian pinged me on IRC about
this - Jml and I would be delight to prepare a patchset for assertThat for
unittest and as much of the core of Matchers as makes sense. The bare core can
come in without any of
Robert Collins added the comment:
This is a duplicate of 16662
--
nosy: +rbcollins
___
Python tracker
<http://bugs.python.org/issue18198>
___
___
Python-bug
Robert Collins added the comment:
Well, spoke with vila on IRC. I content it's a duplicate because if load_tests
in __init__ kicks in and supercedes discovery, I believe this bug would not be
needed.
--
___
Python tracker
<http://bugs.py
New submission from Robert Collins:
In bug https://bugs.launchpad.net/subunit/+bug/586176 I recorded a user request
- that if no tests are found, tools consuming subunit streams should be able to
consider that an error.
There is an analogous situation though, which is that if discover returns
Changes by Robert Buchholz :
--
nosy: +Robert.Buchholz
___
Python tracker
<http://bugs.python.org/issue14776>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Robert Buchholz :
--
nosy: +Robert.Buchholz
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailing list
Unsubscribe:
Robert Buchholz added the comment:
It's been a year and the 3.4 alpha is approaching. What's the status of
upstream inclusion of this patch?
--
___
Python tracker
<http://bugs.python.o
Changes by Robert Collins :
--
nosy: +rbcollins
___
Python tracker
<http://bugs.python.org/issue18526>
___
___
Python-bugs-list mailing list
Unsubscribe:
Robert Collins added the comment:
I'll do a full review shortly, but at the conceptual level, I don't see any
benefit in making a new SkipTest base class, other than instantly breaking
other runners when an unknown exception is raised. SkipTest is part of the API.
Making a new exce
New submission from Robert O'Callahan:
Popen() ought to support redirection to/from more file descriptors than 0, 1,
and 2 when spawning processes. A clear use case is here:
http://stackoverflow.com/questions/6050187/write-to-file-descriptor-3-of-a-python-subprocess-popen-object
Inste
Robert Elsner added the comment:
Well then at least the docs need an update. I simply fail to see how a
cache memory leak constitutes "just fine" (while the caching behavior of
struct.unpack is not documented - if somebody wants caching, he ought to
use struct.Struct.unpack which does
New submission from Robert Koziol :
Hi all,
It seems a little weird for me but I can not find this bug created. So I create
one.
Invoking xml.sax.make_parser() returns an Exception - as in the following
example:
Python 2.7.3rc2 (default, Mar 21 2012, 06:59:11)
[GCC 4.6.3] on linux2
Type
Robert Lehmann added the comment:
Your proposal seems two-fold: (a) make map/filter lazy and (b) have them as
methods instead of functions.
It seems Tim borrowed Guido's time machine and already implemented (a) in
Python 3.x, see http://docs.python.org/py3k/library/functions.html#ma
Changes by Robert Kern :
--
nosy: -robert.kern
___
Python tracker
<http://bugs.python.org/issue13405>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Robert Collins:
In 2.6 deepcopy(ConfigParser) worked, in 2.7 it doesn't due to the _optcre
variable which is a compiled regex pattern.
--
components: Library (Lib)
messages: 171364
nosy: rbcollins
priority: normal
severity: normal
status: open
title: ConfigPars
New submission from Robert Xiao:
This issue affects Python 2.5 through 2.7, but not Python 3.
open accepts basically anything for the second argument, so long as it either
starts with r, w, or a, or contains U somewhere in the string. Therefore, the
following are all legal in Python 2.7.3
Changes by Robert Xiao :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue16125>
___
___
Python-bugs-list mailing list
Unsubscri
Robert Bradshaw added the comment:
Alternatively, one could fix distutils.util.byte_compile() to execute the
script in safe, empty temp directory. Running scripts in /tmp remains, as it
has always been, a bad idea.
Trying to determine if an import is "safe" can be arbitrarily c
Robert Bradshaw added the comment:
Here's a fix to distutils. I think at least a warning is in order for running
scripts from insecure directories, and ideally some happy medium can be found.
--
Added file: http://bugs.python.org/file27542/fix_distutils.
Robert Bradshaw added the comment:
Good point about cleanup, patch updated.
--
Added file: http://bugs.python.org/file27543/fix_distutils.patch
___
Python tracker
<http://bugs.python.org/issue16
New submission from Robert Collins:
TextTestRunner calls str(TestCase) directly, which makes it hard for
testscenarios to rename the test cases as it parameterises them (because
__str__ is a descriptor). While testscenarios could use a decorator instead,
thats undesirable as the test case
Robert Collins added the comment:
Or anther way this could be done would be to make TestCase.__str__ call
self.id(), and then __str__ never needs to be adjusted - id() or
shortDescription are the only things to tweak.
--
___
Python tracker
<h
Robert Collins added the comment:
They aren't descriptors? They certainly aren't normal methods:
>>> class foo(object):
... def __str__(self): return "foo"
...
>>> f = foo()
>>> f.__str__ = lambda: "bar"
>>> str(f)
Robert Collins added the comment:
testscenarios copies the tests, it doesn't call the constructor for the class;
this makes things a lot simpler than trying to reconstruct whatever state the
object may have from scratch again.
As for str(test) and test.id() being different - well sure
Robert Collins added the comment:
@Michael I'll put a patch together next week then.
@R.david.murray no idea - but I've refreshed the page, we'll if it behaves
better. My guess would be a buggy in-flight-collision detection in the issu
Robert Kuska added the comment:
There is ongoing discussion on pip's github tracker [1] about default location
where to install user modules.
IMO this is something that should be dealt with in Python Interpreter Core
[2][3]. I would like to hear some opinion from python devs on this.
Robert Kuska added the comment:
Ok, I have started a thread at pypa-devs google group.
https://groups.google.com/forum/#!topic/pypa-dev/r6qsAmJl9t0
--
___
Python tracker
<http://bugs.python.org/issue1298
New submission from Robert Snoeberger:
While embedding the Python interpreter in an application, I have encountered a
crash when the built-in function 'super' is invoked with no arguments. The
crash occurs during a call to PyObject_Call.
A file is attached, super_invoke.c, that repr
New submission from Robert Snoeberger:
While embedding the Python 2.7 interpreter in an application, I have
encountered a crash when the built-in function 'execfile' is invoked with one
argument.
A file is attached, execfile_invoke.c, that reproduces the crash. The
reproduction s
Robert Snoeberger added the comment:
I created a patch to add a check for NULL globals or locals. The file
execfile.patch is attached. A system error is set with the message "globals and
locals cannot be NULL" if either is NULL.
An open question I have is how should I create test
New submission from Robert Jordens:
According to the documentation the "exec a in b, c" is equivalent to "exec(a,
b, c)". But in the testcase below the tuple form causes a SyntaxError while the
statement form works fine.
diff -r e770d8c4291c Lib/test/test_compi
New submission from Robert w:
outer for loop loops n > 1 times, when it should loop one time.
Variations are possible tht the bug doesn't occur.
--
components: Interpreter Core
files: bug.py
messages: 219513
nosy: Robert.w
priority: normal
severity: normal
status: open
title: L
Changes by Robert w :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue21630>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Robert w:
outer for loop loops more than one time, which should be impossible.
--
components: Interpreter Core
files: bug.py
messages: 219514
nosy: Robert.w
priority: normal
severity: normal
status: open
title: List/Dict Combination Bug
type: behavior
versions
Robert w added the comment:
banner
C:\Users\r0b3\files\backuped\own_dropbox\programmierung\raymarcher0>C:\Python33\python
Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or &q
Changes by Robert w :
--
versions: +Python 3.4
___
Python tracker
<http://bugs.python.org/issue21631>
___
___
Python-bugs-list mailing list
Unsubscribe:
Robert w added the comment:
i cutted it down
=
class EnumSectionContentType(object):
DATABYTE = 2
DATADOUBLEWORD = 3
DATAWORD = 4
#LABEL = 0
def _getStringOfElements(elements):
objectFileString = ""
elements = [{'type': 2, 'data': {
New submission from Robert McGibbon:
I'm not really sure how what the format for filing bugs with python is, so I'm
sorry in advance if I've done something wrong.
There is a very small py3k bug in the readline completer (rlcompleter.py).
Specifically, if you look at
Changes by Robert McGibbon :
--
title: rlcompleter -> small py3k bug in rlcompleter
___
Python tracker
<http://bugs.python.org/issue16600>
___
___
Python-
Changes by Robert McGibbon :
--
title: small py3k bug in rlcompleter -> small py3k issue in rlcompleter
___
Python tracker
<http://bugs.python.org/issu
Changes by Robert McGibbon :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue16600>
___
___
Python-bugs-list mailing list
Unsubscri
Robert McGibbon added the comment:
nevermind.
--
___
Python tracker
<http://bugs.python.org/issue16600>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Robert Collins:
In loader.py:
if fnmatch(path, pattern):
# only check load_tests if the package directory itself
matches the filter
name = self._get_name_from_path(full_path)
package = self
Robert Collins added the comment:
BTW I'm very happy with testscenarios (on pypi) for this, modulo one small
issue which is the use of __str__ by the stdlib [which isn't easily overridable
- there is a separate issue on that]. I'd be delighted to have testscenarios be
in the s
Robert Collins added the comment:
I have a package with tests in it. If the tests match test*.py, they are
loaded, and load_tests within each one called. But load_tests on the package
isn't called.
If I change the pattern supplied by the user to match the package, then the
tests w
New submission from Robert Collins:
Openstack recently switched from nose to using discover. discover walks the
filesystem using os.listdir(), and that is just a thin layer over readdir. On
ext3/ext4 filesystems, readdir is in an arbitrary order dependent on file
insertion into the directory
New submission from Robert Oeffner:
Hi,
This is a bug that seems to exist on python 2.7, python 3.3 on Windows versions
XP, Vista, 7 and 8 and has been around for some years, presumably also in other
python versions. It is only recently I have managed to better isolate it
although not
Robert Leenders added the comment:
Attached is a patch which solves these problems and adds test cases of Chris
Jerdonek. When nargs is negative the same ValueError is raised as when nargs is
zero. Also when nargs is any other invalid value a ValueError("invalid value
for nargs")
New submission from Robert Leenders:
There is a value for nargs: PARSER="A..." which is not documented at
http://docs.python.org/3.4/library/argparse.html#nargs. The docstring for the
action class in argparse.py also does not list PARSER as a valid value for
nargs.
In argparse.
Robert Leenders added the comment:
The new issue about PARSER can be found here: http://bugs.python.org/issue16988
--
___
Python tracker
<http://bugs.python.org/issue16
Robert Leenders added the comment:
Chris, you said (in the review) "Hmm, since this is for maintenance releases
... This change could cause "working" code to no longer work."
I understood from our original message that you wanted it to change since it is
inconsistent. I
Changes by Robert Leenders :
Removed file: http://bugs.python.org/file28766/argparse-v2.patch
___
Python tracker
<http://bugs.python.org/issue16970>
___
___
Python-bug
Changes by Robert Leenders :
Added file: http://bugs.python.org/file28767/argparse-v2.patch
___
Python tracker
<http://bugs.python.org/issue16970>
___
___
Python-bug
New submission from Robert Xiao:
Try this at your command-prompt (requires utf8 support in the terminal
emulator):
$ python3 -m calendar -L zh_CN -e utf8
The result is a mess like this:
2013
一月二月三月
一
New submission from Robert Xiao:
Try this at a command-prompt:
$ python -m calendar -L ja_JP --encoding utf8
The result is a crash:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py",
line 162, in _run_modu
Robert Xiao added the comment:
This is also a problem in Python 2.7 after the patch in issue17049 is applied.
--
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issue17
New submission from Robert Xiao:
[From
http://stackoverflow.com/questions/12648737/huge-memory-leak-in-repeated-os-path-isdir-calls]
os.path.isdir() leaks memory under Windows in Python 2.7. The core cause is
this snippet:
Modules/posixmodule.c:4226:
if (!PyArg_ParseTuple(args, &qu
Robert Xiao added the comment:
The PSF form really needs a PDF version. Anyway, 'tis duly submitted.
--
___
Python tracker
<http://bugs.python.org/is
Robert Xiao added the comment:
I've attached a fixed readline.so built from today's 2.7 branch, for the
convenience of anyone who upgraded to 10.9 and now has crashing Python.
Drop the file in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload,
replacing th
New submission from Robert Merrill:
Same code but different problem as this issue: http://bugs.python.org/issue10897
The above-linked issue was closed as WONTFIX, but there is a secondary problem:
the file descriptor that mmap.mmap() allocates is not set to close-on-exec.
This means that any
Robert Merrill added the comment:
I should add a caveat: the fd that is created by mmap /will/ be set to
close-on-exec if the fd you passed in was. But even if it's not, I see no
reason why mmap should not be setting it anyway.
At the very least, the documentation should bring the u
Robert Merrill added the comment:
I'm adding Library again because I think the current behavior is a bug and
should be fixed in the 2.7 tree. Perhaps the documentation in older versions
should be updated
mmap.mmap should always set the FD_CLOEXEC flag on the descriptor that it gets
fro
Robert Merrill added the comment:
Sorry, I correct my earlier statement: even if the fd you pass to mmap.mmap()
is set to FD_CLOEXEC, the dup'd fd /will not be/
So this is a REALLY bad bug because users cannot workaround it except by just
not using
Changes by Robert Xiao :
Removed file: http://bugs.python.org/file32320/readline.so
___
Python tracker
<http://bugs.python.org/issue18458>
___
___
Python-bugs-list mailin
Robert Xiao added the comment:
Russell, that's not related to readline. Please file a new bug report.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Robert Collins:
https://bugs.launchpad.net/testtools/+bug/1245672 was filed on testtools
recently. It would be easier to fix that if there was some way that something
loading a test suite could check to see if there were import errors. The
current code nicely works in the
301 - 400 of 1080 matches
Mail list logo