New submission from Robert bobbyr...@gmail.com:
I implemented a data-structure as an object in a script, let's call it
objectScript.py. I'm using this data-structure in other scripts like so:
from objectScript import data-structure
Populating this data-structure requires quite a bit of time
Robert added the comment:
I'm not sure if this is related or not, but on 3.4.1 I get the following:
print(round(float(3/2)))
2 (as expected)
print(round(float(5/2)))
2 (expected 3, as float should round .5 up)
--
nosy: +fenofonts
___
Python
Changes by Robert <robertus...@gmail.com>:
--
components: +email
nosy: +barry, r.david.murray
type: -> behavior
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
New submission from Robert:
email.utils.parseaddr() does not successfully parse a
field value into a (comment, address) pair if the
FROM header has 2 lines (or more) containing odd number of double quotes in
each of them.
The address in such tuple is not e-mail address but a part of comment
Robert added the comment:
RFC regarding this topic looks quite complicated to me, but I know that \r\n is
used for line breaking in e-mail headers and \n is not. So in my opinion it
shouldn't be treated the same like \n. The \r\n should be removed in parsed
text, but \n should be preserved
New submission from Robert:
When running the command
re.sub(r'X.', '+', '-X\n-', re.DOTALL)
you get '-X\n-' instead of '-+-'.
Curiously findall works correctly:
re.findall(r'X.', '-X\n-', re.DOTALL) => ['X\n']
--
components: Regular Expressions
messages: 298316
n
Robert added the comment:
regarding the proposal for mini format languages for bytes (msg292663):
Wouldn't it be more consistent if the format specifiers are identical to the
one of int's (see
https://docs.python.org/3/library/string.html#format-specification-mini-language).
I.e. "X&
Robert <l...@posteo.de> added the comment:
I am still waiting for a OK (or denial) of my proposed Modification.
I want to avoid that I start coding and when I am finished the PSF denies my
PullRequest.
Is anybody out there who can decide this or at least lead a disc
Robert <l...@posteo.de> added the comment:
Of course I do not know the initial ideas/philosophy of the launcher.
But the current implementation supports these custom commands (for whatever
reason). Thus I'd say they should work "properly". My view of "properly" i
Change by Robert <l...@posteo.de>:
--
keywords: +patch
pull_requests: +6678
stage: -> patch review
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
Change by Robert <l...@posteo.de>:
--
versions: +Python 3.7, Python 3.8
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33591>
___
New submission from Robert <l...@posteo.de>:
Passing a non-str path which fulfills the new fspath-protcol (like a Path()
object) to CDLL (or WinDLL, PyDLL, ...) a exception is returned.
--
components: ctypes
messages: 317230
nosy: mrh1997
priority: normal
severity: normal
status
New submission from Robert :
When using the Python Launcher "py.exe", it uses 64bit by default and I can
enforce using 32bit.
But there is no way to enforce 64bit. If I run "py -3.6" the actual called
interpreter depends on the interpreter versions installed on my system
New submission from Robert :
Currently py.ini allows to set default interpreters for python 3 and 2. i.e.:
python3=3.6-32
python2=2.7-32
But it is not possible to set a default interpreter on a specific version.
I.e. when running "py -3.6" it would be nice to set the default to
Robert added the comment:
A thanks!
In the meantime I found the corresponding changelog entry:
https://bugs.python.org/issue30291
I checked the corresponding commit:
there is no documentation update. It would be nice if the new feature can be
found in the documentation (including the fact
New submission from Robert <l...@posteo.de>:
In the "py.ini" file it is possible to specifiy customized commands (see
https://www.python.org/dev/peps/pep-0397/#customized-commands).
Unfortunately it is not possible to specify custom commands beginning with one
of the bu
Change by Robert :
--
pull_requests: +7460
___
Python tracker
<https://bugs.python.org/issue30291>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Robert :
--
pull_requests: +7459
___
Python tracker
<https://bugs.python.org/issue33922>
___
___
Python-bugs-list mailing list
Unsubscribe:
Robert added the comment:
I extended the documentation and created a pullrequest:
https://github.com/python/cpython/pull/7849
--
___
Python tracker
<https://bugs.python.org/issue33
New submission from Robert <l...@posteo.de>:
According to the documentation .return_value should be identical to the object
returned when calling the mock ("assert m() is m.return_value")
This is the case except on objects returned by __iter__ on MagicMocks. The
following scr
New submission from Robert :
macOS uses TCP_KEEPALIVE in place of TCP_KEEPIDLE. It would be good to have
this available in the socket library to use directly.
Pull request coming up.
--
components: Library (Lib)
messages: 327351
nosy: llawall
priority: normal
severity: normal
status
Robert added the comment:
Acknowledging the test failure and message pointing to #32394:
==
FAIL: test_new_tcp_flags (test.test_socket.TestMSWindowsTCPFlags
Robert added the comment:
According to this chapter (
https://docs.python.org/3/library/unittest.mock.html#unittest.mock.MagicMock )
the specialmethods in MagicMock are different:
.return_value is preinitialized with defaultvalues, which depends on the
operator. In the case of .__iter__
Robert added the comment:
Can anyone do a review?
--
___
Python tracker
<https://bugs.python.org/issue33591>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Robert :
https://docs.python.org/3/tutorial/controlflow.html
4.7.8. Function Annotations
[...] "The following example has a positional argument, a keyword argument, and
the return value annotated:"
It is not a "positional argument" but a
Robert added the comment:
Would this patch already solve? :
https://github.com/python/cpython/pull/19130
There seems to be another bug: The strange 'latin-1' default encoding of
cgi.parse(), which only has effect in non-mulitpart:
if hasattr(fp,'encoding'):
encoding
New submission from Robert :
Hi all.
Is it an issue or on purpose that enabling and disabling the frame in plt.pie()
results in different sized pie charts? In my opinion the code below should
provide identical sized charts. If it is on purpose, can you give me a
reference? I am using
Robert added the comment:
You see the usecase from the stack trace: PythonWin (the IDE from pywin32
package) uses pyclbr - to inspect arbitrary user code.
(Neither code is from me)
I'm not inspecting __main__ explicitely. The problem seems to arise in newer
Python versions (3.10
New submission from Robert :
When PY_SSIZE_T_CLEAN is not #defined in Py3.10, PyArg_ParseTuple() etc. sets
a SystemError but the return value says 1 (=SUCCESS)!
=> Causes terrific crashes with unfilled variables - instead of a clean Python
exception.
Background: pywin32 suffers in mas
Robert added the comment:
# `__main__` of the source code directory: `/tmp/rebound/rebound`.
# differentiate `__main__` of my target source code to read from the built-in
`__main__`? In other words, how do I read the module `__main__` of the
codebase: rebound?
=> when __main__
Change by Robert :
--
keywords: +patch
pull_requests: +23407
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24623
___
Python tracker
<https://bugs.python.org/issu
New submission from Robert :
When pyclbr.readmodule_ex() is traversing "import __main__" or another
module without __spec__, it dies completely
with "ValueError: __main__.__spec__ is None / is not set".
=> It should at least continue with the (bi
New submission from Robert Ancell:
The Python os.getenv() function accesses an Python dictionary which is
mirroring the process environment. This dictionary is populated when the
interpreter starts and updated when os.environ.__setitem__() or
os.putenv() are called. However if the python program
Robert Ancell added the comment:
draghuram, unfortunately while os.putenv() can be fixed to be
symmetrical any putenv call from a C module cannot, for example:
If you make an extension:
#include stdlib.h
PyObject *putenvC(PyObject *module, PyObject *args)
{
int result
Robert Ancell added the comment:
I've attached proof-of-concept showing how os.environ would ideally
work. It'll only work in Posix, etc etc.
Reading into it more there are a lot of general issues with environments
and memory allocation which is why I suspect Python doesn't use
putenv... See
Robert Lehmann lehman...@gmail.com added the comment:
I have attached a fix and a regression test.
--
keywords: +patch
nosy: +lehmannro
Added file: http://bugs.python.org/file19903/issue10598.patch
___
Python tracker rep...@bugs.python.org
http
Robert Lehmann lehman...@gmail.com added the comment:
I wonder whether there are many examples where scientific data is written in
a form that Python's complex() constructor couldn't currently read, but would
be able to read if it accepted 'i' in place of 'j'.
I could not reproduce
Robert Lehmann lehman...@gmail.com added the comment:
A few issues I'd like to raise:
(1) Multiple callback chains. Is there any code in your existing use case of
GC callbacks where you don't check for the phase argument and follow different
code paths depending on it? If not, having two
Robert Xiao nneon...@gmail.com added the comment:
Do you have it in any kind of repository at all? Even a private SVN repo or
something like that?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2636
New submission from Robert Cheng robert.h.ch...@gmail.com:
When reporthook is None, size variable is not computed and defaulted to -1.
Thus, without reporthook, ContentTooShortError is not raised even when
Content-Length header is supplied and download size is less than expected
amount
Changes by Robert Siemer robert.siemer-python@backsla.sh:
--
nosy: +siemer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10817
___
___
Python
New submission from
Robert Brewer
:
While debugging/fixing the logging module's atexit behavior (see
http://www.cherrypy.org/ticket/646 -- it chokes atexit if stdout is
closed), it became difficult to write an automated
New submission from
Robert Collins
:
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type help, copyright, credits or license for more information.
'asd'.find('s', None, None
Robert Collins added the comment:
The error message is wrong: it's a TypeError, but the message should say
something like...
TypeError: slice indices must be integers or have an __index__ method
This would be a false message, as, as my report demonstrated, slice
indices *can* be None
New submission from Robert Bradshaw:
Range accepts arguments coerce-able into ints via __int__, but rejects
arguments coerce-able into longs but to large to fit into an int.
The problem is in handle_range_longs in bltinmodule.c:1527-1541. If they
type is not an int or long, it should try
Robert Bradshaw added the comment:
Yes, that is a workaround, but
range(MyInt(n), MyInt(n+10))
should work for any valid value of n, not just some of them.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1533
Robert Lehmann added the comment:
This problem has been removed in the current version of the
documentation (http://docs.python.org/dev/install/index.html) -- old
docs aren't updated. It has an own section now
(http://docs.python.org/dev/bugs.html).
Issue can be closed.
--
nosy
Robert Clark added the comment:
sys.maxint was changed to sys.maxsize, but this was not noted in the
documentation.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1930
New submission from Robert Clark:
File
/home/rclark/lib/src/python/pyparsing/pyparsing-1.3.1/pyparsing.py,
line 1511, in __init__
if isinstance( expr, basestring ):
NameError: global name 'basestring' is not defined
--
messages: 61662
nosy: rclark
severity: normal
status: open
title
New submission from Robert Clark:
File
/home/rclark/lib/src/python/pyparsing/pyparsing-1.3.1/pyparsing.py,
line 971, in __init__
self.maxLen = sys.maxint
AttributeError: 'module' object has no attribute 'maxint'
--
messages: 61661
nosy: rclark
severity: normal
status: open
title
Robert Clark added the comment:
basestring is in the builtins library for 2.5.1, but is not there in 3.0a2
Linux: RHEL40
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1931
Robert Lehmann added the comment:
Aye, this patch removes the spaces and re-aligns the paragraph of the
latter link.
--
nosy: +lehmannro
Added file: http://bugs.python.org/file9434/spaces.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org
Robert Lehmann added the comment:
Right, the second link requires a tilde -- I just tried the first one
(which works without). You should change all lines to be 80 characters
wide maximum, though (can quickly be done by any commiter, not worth a
new patch IMO). The dash thing looks okay
Robert Bradshaw added the comment:
Yes, the error for xrange is more illustrative of the problem, but just
shows that xrange has this a too. Why should xrange be invalid for
non-word sized values (especially as range works)? Incidentally, just a
week ago I had to write my own iterator
Robert Bradshaw added the comment:
Alexander Belopolsky's patch looks like the right fix for range() to me.
The xrange limits still hold, but that should probably be a separate
issue/ticket.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1533
Robert Lehmann added the comment:
In the example code from the tutorial you gave, there was still a comma
separator between the string 'equals' and the reference `x`. This is
missing when you entered the code, that's why Python is throwing an
exception there.
--
nosy: +lehmannro
Robert Schuppenies added the comment:
The attached patch applies floor division to all classic divisions where
only integer input was used, and true division where at least on input
parameter was of non-integral type.
In cmptree.py I replaced int(size/dt) with size//dt as it has the
same
Robert Schuppenies [EMAIL PROTECTED] added the comment:
Applying the _strptime.diff patch broke the _strptime
test(test_defaults). Once you change the year, you also have to adapt
the day of week, as this becomes dynamic, too. The rest remains the
same, though. I attached a patch to this test
Robert Siemer [EMAIL PROTECTED] added the comment:
Bad design stays bad design: the hope that pids don't get reused soon
breaks two assumptions:
1) I don't have to wait() for a child process soon. It's the programs
business.
2) Pids cycle: there are security patches to make pids of future
Robert Pyle rp...@post.harvard.edu added the comment:
On Jul 8, 2010, at 6:52 PM, Mark Lawrence wrote:
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Robert, could you provide a patch for this?
--
nosy: +BreamoreBoy
stage: - needs patch
versions: +Python 3.2
Changes by Robert Cronk cron...@gmail.com:
--
nosy: +rcronk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1652
___
___
Python-bugs-list mailing
New submission from Robert Buckley drbuc...@comcast.net:
In both Python 2.7 and 3.1 the IDLE is unable to handle example 4.1 in the
tutorial (if statements). Works OK with the command line shell, but not the
IDLE shell.
--
messages: 112930
nosy: drbuckle
priority: normal
severity
Robert Buckley drbuc...@comcast.net added the comment:
See attached file
--
Added file: http://bugs.python.org/file18411/ISSUE_9519.rtf
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9519
Robert Buckley drbuc...@comcast.net added the comment:
Yes, thank you. Using BACKSPACE to unindent works when I am using an indented
block inside a first or subsequent indented block, e.g., inside a simple
funtion. That feature does not work, as illustrated in example 4.1, when using
IDLE
Robert Buckley drbuc...@comcast.net added the comment:
I can say that more clearly. The backspace feature for ending a block does not
work in IDLE when attempting to end a block that had no indentation. Example:
if a 4:
a = 0 # Assume this is end of the 'if' block; that you want
New submission from Robert Mohr python-b...@mohrr.net:
The last line of
http://docs.python.org/faq/programming.html#is-there-a-scanf-or-sscanf-equivalent
is not proper English:
For more complicated input parsing, regular expressions more powerful than C’s
sscanf() and better suited
Robert Lehmann lehman...@gmail.com added the comment:
Wouldn't constructing the key as a tuple of (class_, mofile) be much cleaner
than making up an artificial key?
--
nosy: +lehmannro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org
New submission from Robert Rohde ro...@robertrohde.com:
I attempted to use GZipFile to process a 1.93 GB file that expands to 18.8 GB.
This consistently produces the same corrupted output file that has
approximately, but not exactly, the right output file size.
I bypassed GZipFile by calling
Robert Rohde ro...@robertrohde.com added the comment:
It's Windows 7 Ultimate (64-bit) on a very high end system.
I don't think it would be very practical to distribute a 2 GB test file.
Though I might be able to get it to a couple people if someone wanted to really
study the issue.
Though
New submission from Robert Lerche r...@msbit.com:
I have run across several issues (one serious one, showing up only on Windows)
when implementing a scroll bar with a list of custom widgets.
I suspect these may really be Tk issues but I thought I'd try posting here
first. I sent
Robert Lerche r...@msbit.com added the comment:
Hi and thanks for the quick response.
I'm happy to follow up with the Tk folks if it turns out that's where
the problem lies -- it has been a long time since I wrote a Tcl script
so before trying to reproduce the behavior that way I thought I'd
Robert Lerche r...@msbit.com added the comment:
Terry, I tried posting to python-list and all I got was why are you doing
that? Use Tix instead.
Maybe it's good advice but it doesn't address the issue. And Tix is yet one
more component I'd have to build (the Python distribution comes
Robert Lerche r...@msbit.com added the comment:
Thank you, Hirokazu! I see now -- deleting the rows first causes the scroll
bar to shrink. So I take it calling grid with a row/column that is already in
the grid replaces the prior mapped widget.
[or should I say, domo arigato Yamamoto-san
Changes by Robert Collins robe...@robertcollins.net:
--
keywords: +patch
Added file: http://bugs.python.org/file19624/rusage-thread.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10440
Robert Schuppenies [EMAIL PROTECTED] added the comment:
I think it's ok, since the underlying containers will get cleared, thus
breaking the cycle.
What about the dictiter object which references a tuple (di_result)?
Tuple does not implement tp_clear, but OTOH tuples are immutable
Robert Schuppenies [EMAIL PROTECTED] added the comment:
What's the actual difference that this change makes?
It would provide more accurate results, even in the light of being not
perfect.
[..] each small_int takes a complete PyLongObject. If that was also
considered in long_sizeof
Robert Schuppenies [EMAIL PROTECTED] added the comment:
Fixed in r66480.
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3859
New submission from Robert Yodlowski [EMAIL PROTECTED]:
I installed 3.0rc1 on a Win XP 2.4Gzh system with all current updates
with no problems. Cmd line Python and docs work fine.
Tried to start IDLE but got error message: IDLE's subprocess didn't
make connection. Either IDLE can't start
Robert Schuppenies [EMAIL PROTECTED] added the comment:
This was fixed in r65489 (see issue3498). Using the current Sphinx trunk
(http://svn.python.org/projects/doctools/trunk/sphinx) works for me.
--
resolution: - duplicate
status: open - closed
Robert Schuppenies [EMAIL PROTECTED] added the comment:
Attached is a patch which takes the preallocation of small_ints into
account. What do you think?
Added file: http://bugs.python.org/file11568/smallints_sizeof.patch
___
Python tracker [EMAIL PROTECTED
Robert Yodlowski [EMAIL PROTECTED] added the comment:
Amaury, I did as you suggested - running idle.py directly both from a
command line and by clicking on it and the results were the same. Each
time, I got the same error message window as before. In addition,
several seconds before the error
Robert Yodlowski [EMAIL PROTECTED] added the comment:
Amaury, my stupid! I must have forgotten to delete the run.pyc file
before trying out the modified run.py as suggested in #3905 . It all
works now and IDLE starts up just fine.
Sorry and, thanks for the help.
...Bob
New submission from Robert Yodlowski [EMAIL PROTECTED]:
I just installed the 2.6 final release on my fully updated Win XP
system. When I tried to run IDLE I got the same...
IDLE's subprocess didn't make connection. Either IDLE can't start
subprocess or personal firewall is blocking.
...fatal
Robert Yodlowski [EMAIL PROTECTED] added the comment:
Amaury, when I tried to run IDLE from the command line as you suggested
I got:
C:\C:\python26\Lib\idlelib\idle.py
IDLE Subprocess: socket error: An attempt was made to access a socket in
a way forbidden by its access permissions, retrying
New submission from Robert Lehmann [EMAIL PROTECTED]:
The markup in the Doc/whatsnew/2.6.rst document is somewhat messy in
some places. I fixed indentation (spaces to tabs -- made some things
readable in the docutils output but not in the source), code samples
(- notation to Python prompt
New submission from Robert Lehmann [EMAIL PROTECTED]:
The sqlite3 documentation misses Row and Cursor.description.
Additionally it does not use the best markup in all places (missing
links, basically, and forgotten .. class:: statements).
A patch is attached.
--
assignee: georg.brandl
New submission from Robert Schuppenies [EMAIL PROTECTED]:
Sphinx does not show failed doctests when run in quiet mode. Any output
from the tests seems to be suppressed. The same applies to the linkckeck
builder.
--
assignee: georg.brandl
components: Documentation tools (Sphinx)
messages
New submission from Robert Schuppenies [EMAIL PROTECTED]:
The Sphinx latex writer crashes if a documentation has more than 7
levels in a section hierarchy. The LaTeXTranslator class defines 7
section names, each corresponding to a level. If a deeper level is
encountered, no appropriate section
Robert Bradshaw [EMAIL PROTECTED] added the comment:
I think *both* behaviors are wrong, the 3.0 one is backwards
incompatible, and the 2.7 one is inconsistent (accepting MyInt if it's
32 bits, rejecting it for 64 bits).
For our particular use case, it is very annoying to not be able to use
New submission from Robert Luce [EMAIL PROTECTED]:
Consider the library 'c_lib.so' consisting of a single function 'c_func'
int c_func ( double *arg0, double *arg1, double *arg2, double *arg3,
double *arg4, double *arg5, double *arg6) {
printf(Value of arg0 is %p\n, arg0
New submission from Robert Lehmann lehman...@gmail.com:
As raised recently on python-ideas [1]_, an itertools method fixing
iterators to a certain length might be handy (where fixing is either
cutting elements off or appending values).
I appended a patch implementing this feature in Python/C
Robert Lehmann lehman...@gmail.com added the comment:
When I started writing this patch this was actually what I intended. But
having ``fixlen(range(3), 2)`` return 0 1 2 struck me as odd. Renaming
the function to `pad` would help there indeed.
It depends on which use case is more common
New submission from Robert Yodlowski rbt...@gmail.com:
In
http://docs.python.org/3.0/library/functions.html
these function entries seem to be missing Permalinks.
dict() frozenset() memoryview() set()
Hope this helps.
The Permalinks are a great idea. I hope you add lots more.
...Bob
Robert Hancock hanc...@sedsystems.ca added the comment:
That's not really a meaningful difference, though.. if the application
uses this code continuously then the conditions will pile up in memory
until it fills up.
--
nosy: +robhancock1 -robhancock
Changes by Robert Kern robert.k...@gmail.com:
--
nosy: +robert.kern
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3976
___
___
Python-bugs-list
Robert Xiao nneon...@gmail.com added the comment:
In fact, it works for Python 2.4, 2.5, 2.6 and 3.0 from my rather
limited testing.
In Python 2.4:
u\N{LATIN CAPITAL LETTER A}
u'A'
u\N{MUSICAL SYMBOL DOUBLE SHARP}
u'\U0001d12a'
In Python 3.0:
\N{LATIN CAPITAL LETTER A}
'A'
ord(\N{MUSICAL
New submission from Robert Buchholz r...@freitagsrunde.org:
Calling getresponse() on an httplib.HTTPConnection object returns a response
object. Internally, the self.sock is handed over to the HTTPResponse object
which transforms it into a file-like object. The response object is returned
Robert Xiao nneon...@gmail.com added the comment:
It seems like this is actually a problem in Windows libc or something (tested
using MinGW on Windows XP):
#include stdio.h
main() {
FILE *f = fopen(test, wb);
fwrite(test, 1, 4, f);
char buf[2048];
size_t k = fread(buf, 1, 2048
Robert Buchholz r...@freitagsrunde.org added the comment:
An example cannot be constructed using the standard python socket class. As you
point out, the response.will_close attribute is set correctly: The client is
supposed to close to connect after completion of the request (as does
Robert Collins robe...@robertcollins.net added the comment:
Its a common convention in zope.testing, trial, testtools, bzr, ...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7501
1 - 100 of 1065 matches
Mail list logo