[issue41402] email: ContentManager.set_content calls nonexistent method encode() on bytes

2021-02-07 Thread Johannes Reiff
Johannes Reiff added the comment: Could someone comment on the way forward? Or ideally just merge my PR (it was approved on GitHub)? I am still very much interested in this bug getting fixed. -- ___ Python tracker <https://bugs.python.

[issue43116] Integer division numerical error

2021-02-03 Thread Johannes
New submission from Johannes : I'm a bit confused because this seems to be too obvious to be a bug: [code] >>> -2094820900 // 1298 -1613884 >>> -2094820900 // -1298 1613883 [/code] Obviously there is a +/- 1 difference in the result. Tested with Python 3.7, 3.8 and 3.9

[issue41402] email: ContentManager.set_content calls nonexistent method encode() on bytes

2020-08-30 Thread Johannes Reiff
Johannes Reiff added the comment: It has been almost a month since the last update, so pinging as suggested in the Developer's Guide. Do I need to do something before the PR can be merged? -- ___ Python tracker <https://bugs.python.org/issue41

[issue41402] email: ContentManager.set_content calls nonexistent method encode() on bytes

2020-08-01 Thread Johannes Reiff
Johannes Reiff added the comment: Thanks! Is there anything I need to do regarding the Python 3.8 and 3.9 backports? -- ___ Python tracker <https://bugs.python.org/issue41

[issue41402] email: ContentManager.set_content calls nonexistent method encode() on bytes

2020-07-26 Thread Johannes Reiff
New submission from Johannes Reiff : If assigning binary content to an EmailMessage via set_content(), the function email.contentmanager.set_bytes_content() is called. This function fails when choosing the 7bit transfer encoding because of a call to data.decode('ascii

[issue40899] Ddcument exceptions raised by importlib.import

2020-06-07 Thread Johannes Buchner
New submission from Johannes Buchner : https://docs.python.org/3/library/functions.html#__import__ and https://docs.python.org/3/library/importlib.html#importlib.import_module do not list which Exceptions are raised in case the module cannot be imported. The two exceptions are listed here

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: I've also filed https://sourceware.org/bugzilla/show_bug.cgi?id=26034 for glibc, because that's where really the issues seems to be? But perhaps python should be forgiving of glibc errors here. -- ___ Python

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: Like I said above, it could be argued that the bug is in glibc, and then https://p.sipsolutions.net/6a4e9fce82dbbfa0.txt could be used as a simple LD_PRELOAD wrapper to work around this, just to illustrate the problem from that side. Arguably, that makes

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: And wrt. _Py_DecodeUTF8Ex() - it doesn't seem to help. But that's probably because I'm not __ANDROID__, nor __APPLE__, and then regardless of current_locale being non-zero or not, we end up in decode_current_locale() where the impedance mismatch happens

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: In fact that python one-liner works with just about everything else that you can throw at it, just not something that "looks like utf-8 but isn't". And of course adding LC_CTYPE=ascii or something like that fixes it, as you

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: A simple test case is something like ./python -c 'import sys; print(sys.argv[1].encode(sys.getfilesystemencoding(), "surrogateescape"))' "$(echo -ne '\xfa\xbd\x83\x96\x80')" Which you'd probably expect to print b'\xfa\xbd\x83\x96

[issue35883] Change invalid unicode characters to replacement characters in argv

2020-05-24 Thread Johannes Berg
Johannes Berg added the comment: Pretty sure this is an issue still, I see it on current git master. This seems to work around it? https://p.sipsolutions.net/603927f1537226b3.txt Basically, it seems that mbstowcs() and mbrtowc() on glibc with utf-8 just blindly decode even invalid UTF-8

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2020-02-29 Thread Johannes Frank
Johannes Frank added the comment: Yes, I didn't revisit the issue since, but Malcolm is right. Implemented in python 3.8. Thanks to all the contributors. On Sat, Feb 29, 2020 at 8:58 AM Malcolm Smith wrote: > > Malcolm Smith added the comment: > > It looks like this has n

[issue38784] ip_network does not clear/update the broadcast_address cache when network_address is changed.

2019-11-13 Thread Johannes Erwerle
Johannes Erwerle added the comment: since it hasn't been documented that those classes are all designed to be immutable (and many things work when they are mutable) many people probably use it that way. Declaring them immutable via the docs now would "break" exi

[issue38784] ip_network does not clear/update the broadcast_address cache when network_address is changed.

2019-11-13 Thread Johannes Erwerle
Change by Johannes Erwerle : -- title: ip_network does not clear/update the broadcast_address cache when the IP address is changed. -> ip_network does not clear/update the broadcast_address cache when network_address is changed. ___ Pyt

[issue38784] ip_network does not clear/update the broadcast_address cache when the IP address is changed.

2019-11-13 Thread Johannes Erwerle
New submission from Johannes Erwerle : The ip_network class in the ipaddress module does cache the broadcast_address attribute. But when the network address is changed the cache is not cleared/updated. Example: > from ipaddress import ip_network > &

[issue38784] ip_network does not clear/update the broadcast_address cache when the IP address is changed.

2019-11-13 Thread Johannes Erwerle
Change by Johannes Erwerle : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue38784> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17305] IDNA2008 encoding is missing

2018-10-24 Thread Johannes Frank
Change by Johannes Frank : -- nosy: +matrixise ___ Python tracker <https://bugs.python.org/issue17305> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-10-21 Thread Johannes Frank
Johannes Frank added the comment: Hello Christian, much appreciated. Thank you so much. Johannes -- ___ Python tracker <https://bugs.python.org/issue34

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-09-26 Thread Johannes Frank
Johannes Frank added the comment: Hi Christian I would be willing to give this a try, could you publish or send me that more elaborate code? Thanks Johannes On Wed, 26 Sep 2018 at 09:25, Christian Heimes wrote: > > Christian Heimes added the comment: > > Here is a horribly hack

[issue34665] Py_FinalizeEx() - Bugs & caveats - Add info that NumPy and Pandas don't support reinitialization

2018-09-13 Thread Johannes M.
New submission from Johannes M. : Since about a decade, it's a know problem that NumPy and Pandas initialization function crashes on reinitialization after a call to Py_Finalize() + Py_Initialize(). [https://github.com/numpy/numpy/issues/8097] [https://github.com/numpy/numpy/issues/11925

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-07-29 Thread Johannes Frank
Change by Johannes Frank : -- title: Please support logging of SSL master secret by env variable SSLKEYLOGFILe -> Please support logging of SSL master secret by env variable SSLKEYLOGFILE ___ Python tracker <https://bugs.python.org/issu

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILe

2018-07-29 Thread Johannes Frank
New submission from Johannes Frank : As discussed on the EuroPython 2018 it would be a great improvement if the python SSL module would respect the SSLKEYLOGFILE environment variable to log the master secret and the client random for packet trace decryption. The pycurl module compiled

[issue33848] Incomplete format string syntax for Exceptions

2018-06-12 Thread Johannes Raggam
New submission from Johannes Raggam : The following is valid Python 2: >>> 'okay {0:s}'.format(Exception('test')) 'okay test' >>> 'okay {0}'.format(Exception('test')) 'okay test' The following fails on Python 3.6: >>> 'okay {0:s}'.format(Exception('test')) Trace

[issue33846] Misleading error message in urllib.parse.unquote

2018-06-12 Thread Johannes Raggam
New submission from Johannes Raggam : urllib.parse.unquote gives an misleading error message when: >>> import urllib >>> urllib.parse.unquote(b'bytesurl') *** TypeError: a bytes-like object is required, not 'str' while: >>> urllib.parse.unquote('texturl') te

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2018-01-13 Thread Johannes
Johannes <johannes.jaeg...@gmx.de> added the comment: Hi all, I'm trying to use multiprocessing with a 3d list. From the documentation I expected it to work. As I found this report a bid later, I opened a bug report here: https://bugs.python.org/issue32538. Am I doing sth.

[issue32538] Multiprocessing Manager on 3D list - no change of the list possible

2018-01-12 Thread Johannes
New submission from Johannes <johannes.jaeg...@gmx.de>: I have the following code, which works without multiprocessing: data=[[['','','','','','','','','','','','']]] data[0][0][0] = 5 data[0][0][1] = "5" # data in the array is mixed with float and str print(dat

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2017-08-04 Thread Johannes Lade
Johannes Lade added the comment: And sorry for my lousy manners. Of course I appreciate all the hard work you do! It's just frustrating when you get confused by doc. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue23702] docs.python.org/3/howto/descriptor.html still refers to "unbound methods"

2017-08-04 Thread Johannes Lade
Johannes Lade added the comment: This is still a problem. Can please somebody fix this? There are already enough confusing discussion full of wrong information about this topic, so it would be nice if the official documentation would get it right. Also there's multiple Issues for this. Can

[issue27321] Email parser creates a message object that can't be flattened

2017-06-18 Thread Johannes Löthberg
Johannes Löthberg added the comment: Ping? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27321> ___ ___ Python-bugs-list

[issue27321] Email parser creates a message object that can't be flattened

2017-06-06 Thread Johannes Löthberg
Changes by Johannes Löthberg <johan...@kyriasis.com>: -- pull_requests: +2043 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27321] Email parser creates a message object that can't be flattened

2017-06-03 Thread Johannes Löthberg
Johannes Löthberg added the comment: Ah, didn't even see your comment before I did it! Fix to the comments are on the same branch, will be rebased before PR is up. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27321] Email parser creates a message object that can't be flattened

2017-06-03 Thread Johannes Löthberg
Johannes Löthberg added the comment: Fix: https://github.com/kyrias/cpython/commit/a986a8274a522c73d87360da6930e632a3eb4ebb Testcase: https://github.com/kyrias/cpython/commit/9a510426522e1d714cd0ea238b14de0fc76862b2 Can start a PR once my CLA signature goes through I guess

[issue27321] Email parser creates a message object that can't be flattened

2017-06-03 Thread Johannes Löthberg
Johannes Löthberg added the comment: Any updates on this? I'm having the same problem with some non-spam emails while trying to use some mail-handling tools written in Python. -- nosy: +Johannes Löthberg ___ Python tracker <rep...@bugs.python.

[issue20491] textwrap: Non-breaking space not honored

2016-10-03 Thread Johannes Bauer
Johannes Bauer added the comment: Hey there, wanted to follow up on the state of this... is there a reason why this has not made it into vanilla yet? If so, I'd like to try to help out clear impediments if I can. This issue is *really*, really, really annoying me. I've posted about a year

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-08-31 Thread Johannes S.
Johannes S. added the comment: Sorry that I haven't answered for a long time. I would like to get an email notification but I don't know whether/how I can enable it. On "my instance of Linux SuSE", the lines are locking like this: CONFIG_ARGS=' '\''--prefix=/some/dir'\

[issue26923] asyncio.gather drops cancellation

2016-06-22 Thread Johannes Ebke
Johannes Ebke added the comment: Attached is a new version of the patch incorporating the review results. -- Added file: http://bugs.python.org/file43508/fix_and_test_26923_reviewed.patch ___ Python tracker <rep...@bugs.python.org>

[issue26923] asyncio.gather drops cancellation

2016-06-20 Thread Johannes Ebke
Johannes Ebke added the comment: Right, that's neater. Attached is a patch with your version and a test. I checked that it fails with the old version of cancel() and passes with the new one. Concerning possible other bugs, I've had a look in the standard library, but could not find another

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-06-19 Thread Johannes S.
Johannes S. added the comment: Maybe my last comment was not clear enogth. I used the tarballs from 3.5 and 3.6 which are linked in my last comment. I extracted them and run the the following commands on Arch (64 Bit) and Linux SuSE 13.1 (64 Bit): mkdir build cd build ../configure

[issue26923] asyncio.gather drops cancellation

2016-06-15 Thread Johannes Ebke
Johannes Ebke added the comment: On rereading my original description, it really is not clearly described why the calling Task ends up surviving. Attached is a patch to the 3.5.1 asyncio/tasks.py which adds some print statements in Task.cancel(). If I execute the cancellation_test.py

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-05-24 Thread Johannes S.
Johannes S. added the comment: I tried it again and I also tried 3.6.0a1 now. 3.6.0a1 has the issue as well. I have downloaded the tarballs from https://www.python.org/downloads/release/python-351/ and https://www.python.org/downloads/release/python-360a1/. I have run it on my Laptop (Arch

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-05-23 Thread Johannes Spangenberg
Johannes Spangenberg added the comment: I can confirm this issue. I did run it on Linux SuSE 13.1 (64 Bit). Unlike other components, which are installed in `lib/`, `lib-dynload` is installed in `lib64/python3.5/`. But `sys.path` still points to `lib/python3.5/lib-dynload`. It did run

[issue26923] asyncio.gather drops cancellation

2016-05-03 Thread Johannes Ebke
Johannes Ebke added the comment: Thank you for providing the relevant documentation link. I just noticed that it should probably be clarified that in case the outer Future is cancelled, and all children that are not already done ignore the cancellation (a.k.a. catch the CancelledError

[issue26923] asyncio.gather drops cancellation

2016-05-03 Thread Johannes Ebke
New submission from Johannes Ebke: In a very specific case, asyncio.gather causes a cancel() call on the Task waiting on the _GatheringFuture to return a false positive. An example program demonstrating this is attached. The context: asyncio.gather creates a _GatheringFuture with a list

[issue25290] csv.reader: minor docstring typo

2015-10-01 Thread Johannes Niediek
New submission from Johannes Niediek: docstring ends with colon, should be fullstop. -- components: Library (Lib) files: csvreader_docstring.txt messages: 252030 nosy: wasserverein priority: normal severity: normal status: open title: csv.reader: minor docstring typo type: enhancement

[issue21345] multiprocessing.Pool._handle_workers sleeps too long

2014-04-24 Thread Johannes Baiter
New submission from Johannes Baiter: While testing a module that uses multiprocessing.Pool to distribute load across multiple processes, I noticed that my test suite was copmleting very quickly (~0.15s) on Python 2.6, while Python 2.7 and above took around 10x as long (~1.6s). Upon debugging

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-31 Thread Johannes Baiter
Johannes Baiter added the comment: Sorry for commenting so late, I submitted a version of the patch with unit tests roughly two weeks ago, I just forgot to mention it in a comment. Hereby fixed :-) -- ___ Python tracker rep...@bugs.python.org http

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-19 Thread Johannes Baiter
Johannes Baiter added the comment: From looking at 'test_numerics', only 'add' is currently tested. Probably since the mechanism for all of the numeric magic methods is the same (i.e. create __op__, __iop__, __rop__). Should I add a test for __truediv__ and its inplace and right variants

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-19 Thread Johannes Baiter
Changes by Johannes Baiter johannes.bai...@gmail.com: Added file: http://bugs.python.org/file34515/mock_truediv_with_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20968

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-18 Thread Johannes Baiter
New submission from Johannes Baiter: It seems that when creating a MagicMock the magic '__truediv__' method is not replaced with a mock: import mock foo = mock.MagicMock() foo / 2 Traceback (most recent call last): File stdin, line 1, in module TypeError: unsupported operand type(s

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-18 Thread Johannes Baiter
Johannes Baiter added the comment: Attached is a patch that fixes the issue for me. -- keywords: +patch Added file: http://bugs.python.org/file34490/mock_truediv.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20968

[issue20968] mock.MagicMock does not mock __truediv__

2014-03-18 Thread Johannes Baiter
Johannes Baiter added the comment: I just noticed that I put the magic method names in the wrong place in the patch. Attached is a fix that adds 'truediv' to the global 'numberics' variable, this way '__rtruediv__' and '__itruediv__' will be correctly mocked as well. -- Added file

[issue17260] Seg fault when calling unicode() on old style class in virtualenv

2013-02-20 Thread Johannes
New submission from Johannes: Running the code attached causes a segmentation fault. This only occurs when run from within a virtual environment, and when the class is an old style class. I've tested on OSX with both 2.7.3 installed via Homebrew, and the default 2.7.2 Python installation

[issue17260] Seg fault when calling unicode() on old style object in virtualenv

2013-02-20 Thread Johannes
Changes by Johannes joh...@gmail.com: -- title: Seg fault when calling unicode() on old style class in virtualenv - Seg fault when calling unicode() on old style object in virtualenv ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue17260] Seg fault when calling unicode() on old style object in virtualenv

2013-02-20 Thread Johannes
Johannes added the comment: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0008 0x00010004e221 in PyObject_GetAttr () (gdb) bt #0 0x00010004e221 in PyObject_GetAttr () #1 0x00010004e0ff in PyObject_Unicode

[issue14547] Python symlink to script behaves unexpectedly

2012-04-11 Thread Johannes Buchner
New submission from Johannes Buchner buchner.johan...@gmx.at: If I have a script foo/bar.py import baz and create a symlink to it, called barhere.py ln -s foo/bar.py barhere.py when I run it, it behaves unexpectedly, specifically it behaves differently than if I had copied it here

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-03-11 Thread Johannes Kolb
Johannes Kolb johannes.k...@gmx.net added the comment: I want to mention a situation in which the current behaviour of os.makedirs is confusing. At the first glance I would expect that if os.makedirs(path) succeeds, then a following call to os.makedirs(path, exist_ok=True) will succeed too

[issue14224] packaging: path description of resources is mixed up

2012-03-07 Thread Johannes Kolb
New submission from Johannes Kolb johannes.k...@gmx.net: The documentation for files section of the setup.cfg file causes confusion: The examples don't match the description. Obviously the order of destination and source part in the generated filenames was mixed up in some places

[issue13700] imaplib.IMAP4.authenticate authobject fails with PLAIN mechanism

2012-02-04 Thread Johannes Bauer
Johannes Bauer dfnsonfsdu...@gmx.de added the comment: Issue also affects Python3.1. Hunk succeeds against 3.1 imaplib.py and works for me. -- nosy: +joebauer versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue13940] imaplib: Mailbox names are not quoted

2012-02-04 Thread Johannes Bauer
New submission from Johannes Bauer dfnsonfsdu...@gmx.de: imaplib does not qupote mailbox names when it's sending it's query to the server in response to a status request, for example. This will lead to very strange errors if mailboxes are accessed which contain spaces: i.e. connection.status

[issue3244] multipart/form-data encoding

2011-08-11 Thread Johannes Hoff
Johannes Hoff johsh...@gmail.com added the comment: Forest Bond: Thanks for this patch - I hope it will go in soon. In the meantime, could I get permission to use it as is? (I notice there is a copyright in the file) I would of course keep the attributions in the file. -- nosy

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal

2011-03-21 Thread Johannes Lindenbaum
New submission from Johannes Lindenbaum johanneslindenb...@googlemail.com: This bug is a crosspost from /setuptools. (http://bugs.python.org/setuptools/issue122) Summary: OSX 10.6.x with Xcode 4 installed. Xcode 4 removes the PPC assembler from GCC. I attempted to install Fabric-1.0.0 which

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2011-03-09 Thread Johannes Schönberger
Johannes Schönberger johannes.schoenber...@tum.de added the comment: sorry, I totally forgot about this... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7769

[issue11209] Example for itertools.count is misleading

2011-02-13 Thread Johannes Ammon
New submission from Johannes Ammon johannes.am...@gmail.com: The example code for itertools.count (http://docs.python.org/library/itertools.html#itertools.count) says # count(2.5, 0.5) - 3.5 3.0 4.5 ... I think that should read # count(2.5, 0.5) - 2.5 3.0 3.5

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Johannes Ammon
New submission from Johannes Ammon johannes.am...@gmail.com: When there is a non-ASCII character in the docstring of a test function, unittest triggers an UnicodeEncodeError when called with --verbose. I have this file unicodetest.py: - # -*- coding: utf

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Johannes Ammon
Johannes Ammon johannes.am...@gmail.com added the comment: Same behaviour with 2.7 -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2010-01-24 Thread Johannes Schönberger
New submission from Johannes Schönberger j...@icoost.com: I would suggest to make SimpleXMLRPCServer.SimpleXMLRPCServer.register_function a decorator function. See the attached file for the solution I wrote (l.209-240), which also works with the current syntax: @server.register_function

[issue7770] sin/cos function in decimal-docs

2010-01-24 Thread Johannes Schönberger
New submission from Johannes Schönberger j...@icoost.com: Unfortunately the sin/cos function in the decimal docs seems to return false results. In [33]: sin(decimal.Decimal('75')) Out[33]: Decimal('0.377879483645203210442266845614') In [34]: sin(decimal.Decimal('76')) Out[34]: Decimal

[issue7770] sin/cos function in decimal-docs

2010-01-24 Thread Johannes Schönberger
Johannes Schönberger j...@icoost.com added the comment: This is the version I would suggest and which is quite accurate unless the numbers get extremely large. def sin(x): Return the sine of x as measured in radians. print sin(Decimal('0.5')) 0.4794255386042030002732879352

[issue7770] sin/cos function in decimal-docs

2010-01-24 Thread Johannes Schönberger
Johannes Schönberger j...@icoost.com added the comment: stupid, it is much better to just use the modulo operator. The same works with cos... def sin(x): Return the sine of x as measured in radians. print sin(Decimal('0.5')) 0.4794255386042030002732879352 print sin(0.5

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2010-01-24 Thread Johannes Schönberger
Johannes Schönberger j...@icoost.com added the comment: I'm not very used to working with bug/issue trackers, is there any tutorial here, where this is explained? I did the stuff you asked me to do: diff: http://paste.pocoo.org/compare/169357/169359/ test: http://paste.pocoo.org/show/169360

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2010-01-24 Thread Johannes Schönberger
Johannes Schönberger j...@icoost.com added the comment: OK, thank you for the links! Do you still want me to do anything (like test cases etc.)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7769

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2010-01-24 Thread Johannes Schönberger
Johannes Schönberger j...@icoost.com added the comment: OK, will work on it and reply as soon as I have results! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7769

[issue7770] sin/cos function in decimal-docs

2010-01-24 Thread Johannes Schönberger
Johannes Schönberger j...@icoost.com added the comment: This adds two further lines, so you can pass int's, float's or Decimal types to the function. def sin(x): Return the sine of x as measured in radians. print sin(Decimal('0.5')) 0.4794255386042030002732879352 print sin

[issue7770] sin/cos function in decimal-docs

2010-01-24 Thread Johannes Schönberger
Johannes Schönberger j...@icoost.com added the comment: sorry, forgot the str: def rsin(x): Return the sine of x as measured in radians. print sin(Decimal('0.5')) 0.4794255386042030002732879352 print sin(0.5) 0.479425538604 print sin(0.5+0j) (0.479425538604+0j

[issue6712] sys._getframe is not available on all Python implementations

2009-08-16 Thread Johannes Janssen
New submission from Johannes Janssen m...@johannes-janssen.de: As I learned on the mailing list the function sys._getframe() is not available on all Python implementations (e.g. jython). This information should be added to the documentation. -- assignee: georg.brandl components

[issue5611] Auto-detect indentation in C source in vimrc

2009-06-04 Thread Johannes Hoff
Johannes Hoff johan...@johanneshoff.com added the comment: I came across this bug while searching for autodetecting tabs/spaces. Thanks for the help. To address Georg's question, the patch should be modified to say if search('^\t', 'n', 100) instead of if search('^\t') The former

[issue5996] abstract class instantiable when subclassing dict

2009-05-11 Thread johannes raggam
New submission from johannes raggam raggam...@adm.at: when declaring a abstract base class with an abstract property or method and subclassing from dict, the class is instantiable (instanceable?). import abc class A(object): ... __metaclass__ = abc.ABCMeta ... @abc.abstractproperty

[issue1297] pyconfig.h not compatible with MS VC++ Express Edition

2008-04-06 Thread Johannes Hoff
Johannes Hoff [EMAIL PROTECTED] added the comment: This is still the case with Visual Studio Express 2008. It can be fixed by downloading the Windows SDK, though it would be nicer if this was not necessary. Download link: http://blogs.msdn.com/windowssdk/archive/2008/02/07/ windows-sdk