[issue14290] Importing script as module causes ImportError with pickle.load

2012-03-13 Thread Robert
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

[issue21929] Rounding properly

2014-09-08 Thread Robert
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

[issue31089] email.utils.parseaddr fails on odd double quotes in multiline header

2017-07-31 Thread Robert
Changes by Robert <robertus...@gmail.com>: -- components: +email nosy: +barry, r.david.murray type: -> behavior ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue31089] email.utils.parseaddr fails on odd double quotes in multiline header

2017-07-31 Thread Robert
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

[issue31089] email.utils.parseaddr fails on odd double quotes in multiline header

2017-08-01 Thread Robert
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

[issue30927] re.sub() does not work correctly on '.' pattern and \n

2017-07-13 Thread Robert
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

[issue22385] Define a binary output formatting mini-language for *.hex()

2017-05-03 Thread Robert
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&

[issue31879] Launcher fails on custom command starting with "python"

2017-11-08 Thread Robert
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

[issue31879] Launcher fails on custom command starting with "python"

2017-11-08 Thread Robert
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

[issue33591] ctypes does not support fspath protocol

2018-05-21 Thread Robert
Change by Robert <l...@posteo.de>: -- keywords: +patch pull_requests: +6678 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue33591] ctypes does not support fspath protocol

2018-05-21 Thread Robert
Change by Robert <l...@posteo.de>: -- versions: +Python 3.7, Python 3.8 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33591> ___

[issue33591] ctypes does not support fspath protocol

2018-05-21 Thread Robert
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

[issue33922] Enforce 64bit Python by Launcher

2018-06-20 Thread Robert
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

[issue33923] py.ini cannot set 32/64bits for specific version

2018-06-20 Thread Robert
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

[issue33922] Enforce 64bit Python by Launcher

2018-06-21 Thread Robert
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

[issue31879] Launcher fails on custom command starting with "python"

2017-10-26 Thread Robert
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

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

2018-06-21 Thread Robert
Change by Robert : -- pull_requests: +7460 ___ Python tracker <https://bugs.python.org/issue30291> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33922] Enforce 64bit Python by Launcher

2018-06-21 Thread Robert
Change by Robert : -- pull_requests: +7459 ___ Python tracker <https://bugs.python.org/issue33922> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33922] Enforce 64bit Python by Launcher

2018-06-21 Thread Robert
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

[issue33236] MagicMock().__iter__.return_value is different from MagicMock().__iter__()

2018-04-06 Thread Robert
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

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2018-10-08 Thread Robert
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

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2018-10-09 Thread Robert
Robert added the comment: Acknowledging the test failure and message pointing to #32394: == FAIL: test_new_tcp_flags (test.test_socket.TestMSWindowsTCPFlags

[issue33236] MagicMock().__iter__.return_value is different from MagicMock().__iter__()

2018-09-20 Thread Robert
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__

[issue33591] ctypes does not support fspath protocol

2019-06-10 Thread Robert
Robert added the comment: Can anyone do a review? -- ___ Python tracker <https://bugs.python.org/issue33591> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39231] Mistaken notion in tutorial

2020-01-06 Thread Robert
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

[issue39727] cgi.parse() fatally attempts str.decode when handling multipart/form-data

2020-09-03 Thread Robert
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

[issue43032] Size of pie chart in matplotlib (frame affects it)

2021-01-26 Thread Robert
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

[issue43299] pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set

2021-07-10 Thread Robert
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

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-02-25 Thread Robert
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

[issue43247] How to search for a __main__ module using pyclbr in Python3?

2021-02-22 Thread Robert
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__

[issue43299] pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set

2021-02-22 Thread Robert
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

[issue43299] pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set

2021-02-22 Thread Robert
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

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Robert Ancell
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

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Robert Ancell
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

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Robert Ancell
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

[issue10598] curses fails to import on Solaris

2010-12-02 Thread Robert Lehmann
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

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread Robert Lehmann
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

[issue10576] Add a progress callback to gcmodule

2010-12-03 Thread Robert Lehmann
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

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-30 Thread Robert Xiao
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

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-01-03 Thread Robert Cheng
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

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-01-14 Thread Robert Siemer
Changes by Robert Siemer robert.siemer-python@backsla.sh: -- nosy: +siemer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10817 ___ ___ Python

[issue1257] atexit errors should result in nonzero exit code

2007-10-10 Thread Robert Brewer
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

[issue1259] string find and rfind methods give a TypeError that is misleading

2007-10-10 Thread Robert Collins
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

[issue1259] string find and rfind methods give a TypeError that is misleading

2007-10-15 Thread Robert Collins
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

[issue1533] Bug in range() function for large values

2007-11-30 Thread Robert Bradshaw
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

[issue1533] Bug in range() function for large values

2007-11-30 Thread Robert Bradshaw
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

[issue1758] Wrong link in documentation

2008-01-07 Thread Robert Lehmann
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

[issue1930] sys.maxint not found in Python 3.0a2

2008-01-24 Thread Robert Clark
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

[issue1931] NameError: global name 'basestring' is not defined

2008-01-24 Thread Robert Clark
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

[issue1930] sys.maxint not found in Python 3.0a2

2008-01-24 Thread Robert Clark
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

[issue1931] NameError: global name 'basestring' is not defined

2008-01-24 Thread Robert Clark
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

[issue2120] broken links in advocacy HOWTO

2008-02-14 Thread Robert Lehmann
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

[issue2120] broken links in advocacy HOWTO

2008-02-15 Thread Robert Lehmann
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

[issue1533] Bug in range() function for large values

2008-02-21 Thread Robert Bradshaw
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

[issue1533] Bug in range() function for large values

2008-02-25 Thread Robert Bradshaw
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

[issue2201] Documentation Section 4.4

2008-02-28 Thread Robert Lehmann
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

[issue687648] classic division in demos/ directory

2008-03-02 Thread Robert Schuppenies
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

[issue2227] time.strptime too strict? should it assume current year?

2008-03-20 Thread Robert Schuppenies
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

[issue1731717] race condition in subprocess module

2008-03-28 Thread Robert Siemer
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

[issue5024] sndhdr.whathdr returns -1 for WAV file frame count

2010-07-09 Thread Robert Pyle
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

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2010-07-22 Thread Robert Cronk
Changes by Robert Cronk cron...@gmail.com: -- nosy: +rcronk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1652 ___ ___ Python-bugs-list mailing

[issue9519] IDLE cannot do example 4.1 in tutorial (if statements)

2010-08-04 Thread Robert Buckley
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

[issue9519] IDLE cannot do example 4.1 in tutorial (if statements)

2010-08-05 Thread Robert Buckley
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

[issue9519] IDLE cannot do example 4.1 in tutorial (if statements)

2010-08-06 Thread Robert Buckley
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

[issue9519] IDLE cannot do example 4.1 in tutorial (if statements)

2010-08-06 Thread Robert Buckley
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

[issue9582] documentation line needs rewording

2010-08-12 Thread Robert Mohr
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

[issue9042] Gettext cache and classes

2010-09-02 Thread Robert Lehmann
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

[issue10040] GZipFile failure on large files

2010-10-07 Thread Robert Rohde
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

[issue10040] GZipFile failure on large files

2010-10-08 Thread Robert Rohde
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

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-10-29 Thread Robert Lerche
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

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-10-29 Thread Robert Lerche
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

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-01 Thread Robert Lerche
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

[issue10232] Tkinter issues with Scrollbar and custom widget list

2010-11-05 Thread Robert Lerche
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

[issue10440] support RUSAGE_THREAD as a constant in the resource module

2010-11-17 Thread Robert Collins
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

[issue3680] Cycles with some iterator are leaking.

2008-09-14 Thread Robert Schuppenies
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

[issue3690] sys.getsizeof wrong for Py3k bool objects

2008-09-15 Thread Robert Schuppenies
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

[issue3859] test_sys.Sizeof fails on win64

2008-09-16 Thread Robert Schuppenies
Robert Schuppenies [EMAIL PROTECTED] added the comment: Fixed in r66480. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3859

[issue3943] IDLE won't start in 3.0rc1 Subprocess didn't make connection....

2008-09-22 Thread Robert Yodlowski
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

[issue3934] sphinx - building muppy docs fails on Linux

2008-09-23 Thread Robert Schuppenies
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

[issue3690] sys.getsizeof wrong for Py3k bool objects

2008-09-23 Thread Robert Schuppenies
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

[issue3943] IDLE won't start in 3.0rc1 Subprocess didn't make connection....

2008-09-24 Thread Robert Yodlowski
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

[issue3943] IDLE won't start in 3.0rc1 Subprocess didn't make connection....

2008-09-25 Thread Robert Yodlowski
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

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Robert Yodlowski
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

[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-04 Thread Robert Yodlowski
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

[issue4058] markup in What's New in 2.6

2008-10-06 Thread Robert Lehmann
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

[issue4059] sqlite3 docs incomplete

2008-10-06 Thread Robert Lehmann
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

[issue4435] Sphinx does not show failed doctests in quiet mode

2008-11-26 Thread Robert Schuppenies
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

[issue4436] Sphinx latex writer crashes when encountering deep section levels

2008-11-26 Thread Robert Schuppenies
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

[issue1533] Bug in range() function for large values

2008-11-29 Thread Robert Bradshaw
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

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2008-12-09 Thread Robert Luce
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

[issue5034] itertools.fixlen

2009-01-22 Thread Robert Lehmann
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

[issue5034] itertools.fixlen

2009-01-23 Thread Robert Lehmann
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

[issue5140] Some Built-in Functions entries in Library Manual are missing Permalinks

2009-02-02 Thread Robert Yodlowski
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

[issue1731706] tkinter memory leak problem

2009-02-03 Thread Robert Hancock
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

[issue3976] pprint._safe_repr is not general enough in one instance

2009-02-04 Thread Robert Kern
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

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-02-05 Thread Robert Xiao
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

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-01-29 Thread Robert Buchholz
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

[issue5677] Serious interpreter crash and/or arbitrary memory leak using .read() on writable file

2010-01-30 Thread Robert Xiao
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

[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response

2010-02-01 Thread Robert Buchholz
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

[issue7501] python -m unittest path_to_suite_function errors

2010-02-05 Thread Robert Collins
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   2   3   4   5   6   7   8   9   10   >