[issue14001] Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-13 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: CVE request: [2] http://www.openwall.com/lists/oss-security/2012/02/13/3 -- ___ Python tracker <http://bugs.python.org/issue14

[issue14001] CVE-2012-0845 Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP POST request

2012-02-14 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: The CVE identifier of CVE-2012-0845 has been assigned to this issue: [3] http://www.openwall.com/lists/oss-security/2012/02/13/4 -- title: Python v2.7.2 / v3.2.2 (SimpleXMLRPCServer): DoS (excessive CPU usage) by processing malformed XMLRPC / HTTP

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-15 Thread Jan Kratochvil
Jan Kratochvil added the comment: What more can be done to get it fixed? I do not mind Python but GDB linking is broken due to it. And while I can workaround it in GDB I am not used for workarounding one Free package in another Free package. Free software has the advantage problems can be

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-19 Thread Jan Kratochvil
Jan Kratochvil added the comment: There was a bug for non-shared build of Python, thanks. This patch is an improvement on its but it is not yet complete. One should also replace "-Xlinker -export-dynamic" by "-Wl,--dynamic-list" so that linking application with li

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-19 Thread Jan Kratochvil
Changes by Jan Kratochvil : Removed file: http://bugs.python.org/file24221/hidden.patch ___ Python tracker <http://bugs.python.org/issue10112> ___ ___ Python-bugs-list m

[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-02-28 Thread Jan Stürtz
New submission from Jan Stürtz : AIX 5.2.0.0 with gcc 4.3.0: Compiling a shared python: with: ./configure --enable-shared --with-gcc --disable-ipv6 --with-system-ffi make; make install results in a working build. But when I build mod_wsgi into apache with this python and run it I get the

[issue14150] AIX, crash loading shared module into another process than python like operator.so results in 0509-130

2012-02-29 Thread Jan Stürtz
Jan Stürtz added the comment: Created a patch to fix the configure script, to get the "right" python.exp File. -- keywords: +patch Added file: http://bugs.python.org/file24678/Python-2.7.2-configure.aix.patch ___ Python trac

[issue30656] typo in PyModule_New documentation

2017-06-13 Thread Jan Hnatek
New submission from Jan Hnatek: The doc for PyModule_New() refers to "PyImport_NewObject()", while it should refer to "PyModule_NewObject()": https://docs.python.org/3.6/c-api/module.html#c.PyModule_New -- assignee: docs@python components: Documentation message

[issue1294959] Problems with /usr/lib64 builds.

2017-09-22 Thread jan matejek
Changes by jan matejek : -- pull_requests: +3682 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue1294959> ___ ___ Python-bugs-list mai

[issue29949] sizeof set after set_merge() is doubled from 3.5

2017-03-30 Thread Jan Gosmann
Changes by Jan Gosmann : -- nosy: +jgosmann ___ Python tracker <http://bugs.python.org/issue29949> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30216] xdrlib.Unpacker.unpack_string returns bytes (docs say should be str)

2017-05-29 Thread Jan Hnatek
Jan Hnatek added the comment: There's a patch for xdrlib documentation in Issue9544. Would that solve this issue? -- nosy: +hnhn ___ Python tracker <http://bugs.python.org/is

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2017-05-29 Thread Jan Hnatek
Changes by Jan Hnatek : -- nosy: +hnhn ___ Python tracker <http://bugs.python.org/issue9544> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2017-05-30 Thread Jan Hnatek
Jan Hnatek added the comment: Attached an updated patch against 3.7 fixing the remaining mentions of string. -- Added file: http://bugs.python.org/file46914/issue9544.2.patch ___ Python tracker <http://bugs.python.org/issue9

[issue36208] AsyncIO V4MAPPED addresses with V6ONLY.

2019-03-06 Thread Jan Seeger
New submission from Jan Seeger : I'm working with aiocoap, which uses the AI_V4MAPPED flag to use IPv4-mapped addresses for dual-stack support. When trying to run on Windows, creating a connection fails, because the socket option IPV6_V6ONLY is set to true per default on Windows, wherea

[issue36208] AsyncIO V4MAPPED addresses with V6ONLY.

2019-03-06 Thread Jan Seeger
Jan Seeger added the comment: The intention for V4MAPPED is to allow "single-stack" usage of V4 and V6 addresses (or am I misunderstanding the purpose of the V4MAPPED socket option here?). The application only handles V6 addresses, and the system transparently converts from mapped

[issue32223] distutils doesn't correctly read UTF-8 content from config files

2018-01-25 Thread Jan Vlcinsky
Jan Vlcinsky added the comment: The fix shall go to https://github.com/python/cpython/blob/2812d3d99287c50bab99625d7240bcf1c2e32369/Lib/distutils/dist.py#L406 where `parser.read(filename)` shall be changed to `parser.read(filename, encoding="utf-8")` This assumes that the setup.cf

[issue14573] json iterencode can not handle general iterators

2018-04-12 Thread Jan Vlcinsky
Jan Vlcinsky added the comment: I found proposed change very handy (came here researching why it is not behaving that way). Taking into account: - Python shines in handling lists, using generators and iterators - Largest group of python developers develop web apps, and there it is typical

[issue29515] socket module missing IPPROTO_IPV6, IPPROTO_IPV4 on Windows

2017-10-30 Thread Jan Gosmann
Change by Jan Gosmann : -- nosy: +jgosmann ___ Python tracker <https://bugs.python.org/issue29515> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-13 Thread Jan Lachnitt
Jan Lachnitt added the comment: @eryksun: Sorry for my late reply, apparently I did not have time to reply in 2017. I see your point, but still I think that Python is conceptually multi-platform, so its behavior on Linux and Windows should be as much consistent as possible. I am not the

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2018-06-20 Thread Jan Lachnitt
Jan Lachnitt added the comment: Nobody responds yet, so I will. I think that the basic proposal was made by Chris Jerdonek in msg171692 already on 2012-10-01: First document both behaviors and then discuss the possible harmonization. I think the proposal was good and further discussion has

[issue8557] subprocess PATH semantics and portability

2018-06-20 Thread Jan Lachnitt
Jan Lachnitt added the comment: A related issue exists with cwd: #15533. -- nosy: +pepalogik ___ Python tracker <https://bugs.python.org/issue8557> ___ ___ Pytho

[issue34048] Bad behavior of re.IGNORECASE

2018-07-04 Thread Jan Švec
New submission from Jan Švec : re.sub() is behaving incorrectly, if re.IGNORECASE is used. Tested on 2.7, 3.4 and 3.6. The code follows: import re def subst(text): text = re.sub(r"\bnine\b", "niner", text, re.IGNORECASE) return text print(subst("nine nine nine

[issue34048] Bad behavior of re.IGNORECASE

2018-07-04 Thread Jan Švec
Jan Švec added the comment: Not a bug, it assigns the value of re.IGNORECASE into the count parameter. Sorry -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34076] Nested loop in dictionary comprehension gives `global name not defined` inside class

2018-07-09 Thread Jan Christoph
New submission from Jan Christoph : The python code: ``` class _tri(object): infts = '(+/-)inf, (+/-)infty, (+/-)infinity' strange_failing = {x+s.replace('(+/-)',''):None for x in ('+','-','') for s in infts.split('

[issue34076] Nested loop in dictionary comprehension gives `global name not defined` inside class

2018-07-10 Thread Jan Christoph
Jan Christoph added the comment: But the simpler dictionary compprehension `{s.replace('(+/-)',''):None for s in infts.split(', ')}` works perfectly. Shouldn't that also give the error if it was a scope issue? -- ___

[issue34076] Nested loop in dictionary comprehension gives `global name not defined` inside class

2018-07-10 Thread Jan Christoph
Jan Christoph added the comment: Okay, so we're a in another scope inside the dictionary comprehension (all comprehensions for that matter), and only one symbol is passed to the inside. That's why `strange_reversed_working = {x+s.replace('(+/-)',''):None for x

[issue34076] Nested loop in dictionary comprehension gives `global name not defined` inside class

2018-07-10 Thread Jan Christoph
Jan Christoph added the comment: Updated example with reversed variable order for reference. This really seems to be related to issue3692, but really not the same thing. IMHO both `a` and `b` should be passed in a situation like this: a = range(5) b = range(3) c = [x+y for x in a for y

[issue34931] os.path.splitext with more dots

2018-10-08 Thread Jan Novak
New submission from Jan Novak : There are some old tickets about changing splitext() in 2007: https://bugs.python.org/issue1115886 https://bugs.python.org/issue1681842 Present python documentation: Leading periods on the basename are ignored; splitext('.cshrc') returns ('.cshrc

[issue34947] inspect.getclosurevars() does not get all globals

2018-10-09 Thread Jan Hermann
New submission from Jan Hermann : inspect.getclosurevars() omits globals or nonlocals that are bound within comprehensions: 22:50 ~ python3 Python 3.7.0 (default, Aug 17 2018, 21:14:48) [Clang 9.1.0 (clang-902.0.39.2)] on darwin Type "help", "copyright", "credi

[issue34947] inspect.getclosurevars() does not get all globals

2018-10-23 Thread Jan Hermann
Jan Hermann added the comment: Ok, that’s fair. But then the inspect module currently doesn’t provide tools to the user to construct the recursive identification without duplicating code already in stdlib. For that, one would need to refactor getclosurevars() to two parts: getcode() and

[issue34931] os.path.splitext with more dots

2018-10-29 Thread Jan Novak
Jan Novak added the comment: Yes, dot behaviour is well documented. But splitext() is a function to split name and extension, not take care about hidden files. Hidden files starting with dot is Unix like system feature. https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory Hidden

[issue18132] buttons in turtledemo disappear on small screens

2013-06-04 Thread Jan Kanis
Changes by Jan Kanis : -- components: +Demos and Tools type: -> behavior ___ Python tracker <http://bugs.python.org/issue18132> ___ ___ Python-bugs-list mai

[issue18132] buttons in turtledemo disappear on small screens

2013-06-04 Thread Jan Kanis
New submission from Jan Kanis: If the window of the turtledemo is small enough, the start/stop/clear buttons disappear. This is specifically a problem when running on a netbook with a small screen, because the buttons are never shown. For a newcommer checking out the demo app this could be

[issue18132] buttons in turtledemo disappear on small screens

2013-06-05 Thread Jan Kanis
Jan Kanis added the comment: I've created a patch, replacing the packed layout by a gridded layout -- hgrepos: +195 ___ Python tracker <http://bugs.python.org/is

[issue18132] buttons in turtledemo disappear on small screens

2013-06-05 Thread Jan Kanis
Changes by Jan Kanis : -- keywords: +patch Added file: http://bugs.python.org/file30469/7cdaf0223e67.diff ___ Python tracker <http://bugs.python.org/issue18

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2013-06-05 Thread Jan Kanis
New submission from Jan Kanis: While fixing #18132 I noticed that when closing the turtledemo window an exception is thrown (and ignored) because the __del__ tries to catch a TclError exception, but the TclError global has already been deleted and set to None. I could only reproduce this in

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2013-06-05 Thread Jan Kanis
Jan Kanis added the comment: added a fix -- hgrepos: +196 ___ Python tracker <http://bugs.python.org/issue18141> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2013-06-05 Thread Jan Kanis
Changes by Jan Kanis : -- keywords: +patch Added file: http://bugs.python.org/file30470/3fdd418be9f8.diff ___ Python tracker <http://bugs.python.org/issue18

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2013-06-05 Thread Jan Kanis
Jan Kanis added the comment: Oops, the diff includes patches for both this issue and #18132, that should be just commit 3fdd418be9f8. -- ___ Python tracker <http://bugs.python.org/issue18

[issue14103] argparse: add ability to create a bash completion script

2013-07-20 Thread Jan Pokorný
Changes by Jan Pokorný : -- nosy: +jpokorny ___ Python tracker <http://bugs.python.org/issue14103> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2013-07-20 Thread Jan Pokorný
Changes by Jan Pokorný : -- nosy: +jpokorny ___ Python tracker <http://bugs.python.org/issue9146> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9216] FIPS support for hashlib

2013-07-20 Thread Jan Pokorný
Changes by Jan Pokorný : -- nosy: +jpokorny ___ Python tracker <http://bugs.python.org/issue9216> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18533] Avoid error from repr() of recursive dictview

2013-07-22 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: As I wrote on the list -- IMHO it's still a bug (even though not so painful as segfault) that should also be fixed in 2.7 and 3.2/3.3. In other cases (such as `d={}; d[42]=d; repr(d)`) Python does its best to avoid an error -- why in this case (`d={};

[issue18858] dummy_threading lacks threading.get_ident() equivalent

2013-08-27 Thread Jan Kaliszewski
New submission from Jan Kaliszewski: In Python 3.3 threading.get_ident() has been added as a public and documented function, but there is no dummy_threading.get_ident(): >>> import threading, dummy_threading >>> threading.get_ident()

[issue14956] custom PYTHONPATH breaks Python-embedded apps

2012-05-29 Thread Jan Kratochvil
New submission from Jan Kratochvil : People use custom Python builds setting PYTHONHOME and PYTHONPATH to these custom builds. This may be expected to break running system Python binary but it also unexpectedly breaks various applications which also embed Python: $ echo foo >site.py; exp

[issue14956] custom PYTHONPATH breaks Python-embedded apps

2012-05-29 Thread Jan Kratochvil
Jan Kratochvil added the comment: This site.py is only an example how it can happen. In reality it is due to .py files intended for incompatible version of Python. I am not a Python programmer to have some appropriate incompatible code at hand

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-29 Thread Jan Kratochvil
Jan Kratochvil added the comment: I fully agree with site.py/os.py/spam.py but I find it offtopic for this Issue. I do not find too important if some unsetenv/setenv gets called by the app or by libpython. But the rules should apply for every embedded app the same, the Fedora ticket is

[issue14956] custom PYTHONPATH may break apps embedding Python

2012-05-30 Thread Jan Kratochvil
Jan Kratochvil added the comment: While it should be documented this is not only a docs issue. It should be solved in some way during runtime. -- ___ Python tracker <http://bugs.python.org/issue14

[issue16202] sys.path[0] security issues

2012-10-15 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: Jeroen, just out of curiosity. Is the current issue different from CVE-2008-5983 (at first quick glance it looks the be the same issue):? [1] http://bugs.python.org/issue5753 Thank you, Jan. -- Jan iankko Lieskovsky -- nosy: +iankko

[issue16043] xmlrpc: gzip_decode has unlimited read()

2014-03-26 Thread jan matejek
Changes by jan matejek : -- nosy: +matejcik ___ Python tracker <http://bugs.python.org/issue16043> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21070] test_xmlrpc waits forever instead of reporting failure

2014-03-26 Thread jan matejek
New submission from jan matejek: Testcases derived from BaseServerTestCase will launch a server process in a separate thread. This server will shut itself down after handling a specified number of requests. If the test case fails before performing enough requests, the server thread will

[issue21070] test_xmlrpc waits forever instead of reporting failure

2014-03-26 Thread jan matejek
Changes by jan matejek : -- versions: -Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue21070> ___ ___ Python-bugs-list mailing list Unsub

[issue21082] os.makedirs(exist_ok=True) is not thread-safe: umask is set temporary to 0, serious security problem

2014-03-31 Thread jan matejek
Changes by jan matejek : -- nosy: +matejcik ___ Python tracker <http://bugs.python.org/issue21082> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21318] sdist fails with symbolic links do non-existing files

2014-04-20 Thread Jan Gosmann
New submission from Jan Gosmann: If there is a symbolic link to a non-existing file anywhere in the source tree "python setup.py sdist" fails with an output like the following: running sdist running check warning: check: missing required meta-data: url error: abc: No

[issue21571] Python build should check CPATH, C_INCLUDE_PATH for module dependencies

2014-05-24 Thread Jan Kanis
New submission from Jan Kanis: When building, pythons setup.py tries to find external sources for optional modules such as ssl, sqlite, etc. For that it searches the CFLAGS environment variable for -I options. C compilers such as gcc and clang also interpret CPATH and C_INCLUDE_PATH as extra

[issue18132] buttons in turtledemo disappear on small screens

2014-06-03 Thread Jan Kanis
Jan Kanis added the comment: I wasn't aware that mixing grid and pack was a bad idea, as I was looking over turtledemo to learn how to use tkinter. The patch replaces a packing in one frame with a grid. All direct children of the graph_frame are gridded. graph_frame itself is still packe

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-03 Thread Jan Kanis
Jan Kanis added the comment: The main block has been like that from the beginning of recorded time. I could see a use for this if the turtle demo allowed changing of the code in the gui, but it doesn't. -- ___ Python tracker

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-04 Thread Jan Hudec
Jan Hudec added the comment: Mike, David, The bug is that sqlite module issues implicit COMMIT. SQLite never needs this, many programs need to NOT have it and they can't opt out as isolation_level affects implicit begins only. Most programs will do some changes to data after changin

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-04 Thread Jan Hudec
Changes by Jan Hudec : -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue10740> ___ ___

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-04 Thread Jan Hudec
Jan Hudec added the comment: This is somewhat borderline between bug and enhancement. The behaviour is described in the documentation and does not violate dbapi2 specification, but at the same time it is a serious misfeature and gratuitous restriction of perfectly good functionality of the

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-05 Thread Jan Hudec
Jan Hudec added the comment: Ok, David, I see. Anybody who wants to use sqlite seriously in existing releases can use apsw. It is not dbapi2 compliant, but it is complete and behaves like the underlying database. I agree with Antoine and already mentioned I didn't like the current patc

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Jan Kanis
Jan Kanis added the comment: I tried changing the last block in turtulemodule/__init__.py to if __name__ == '__main__': demo = DemoWindow() print("ENTERING mainloop") demo.root.mainloop() print("Bye") but that does not solve the problem: &g

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Jan Kanis
Jan Kanis added the comment: I have verified that DemoWindow._destroy(self) indeed gets called before the exception is raised. I did a bisect, on the default branch the bug was introduced by commit f0833e6ff2d2: "Issue #1545463: Global variables caught in reference cycles are now ga

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Jan Kanis
Jan Kanis added the comment: The 3.3 branch is not affected as the f0833e6ff2d2 changeset was never merged into that branch. In the default branch the exception stops appearing after commit 79e2f5bbc30c: "Issue #18214: Improve finalization of Python modules to avoid setting their globa

[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-08 Thread Jan Kanis
Jan Kanis added the comment: I tested 2.7 tip (6dfbe504f659), which does not show the problem, as expected. I think there was a real bug in that the tkinter.TclError global was being set to None on exit, but a TclError being raised is expected if I go by the comment in tkinter. The bug was

[issue21789] Broken link to PEP 263 in Python 2.7 error message

2014-06-17 Thread Jan Varho
New submission from Jan Varho: When trying to run a file with non-ASCII symbols without declaring an encoding, python 2.7 gives the following error: File "foo.py", line 2 SyntaxError: Non-ASCII character '\xc3' in file fo.py on line 2, but no encoding declared; see h

[issue16304] re: Match Objects always have a boolean value of True

2012-11-02 Thread Jan Duzinkiewicz
Jan Duzinkiewicz added the comment: I agree this is unclear - If Match object always have a boolean value of True, it actually prevents me from using simple if statement - what's the point of "if True:" statement? - so the remark that matching functions do not always return ma

[issue15962] Windows STDIN/STDOUT Redirection is actually FIXED

2012-11-02 Thread Jan Duzinkiewicz
Jan Duzinkiewicz added the comment: I've referenced the kb article in the docs. Please let me know if the fix is ok - maybe the whole registry change process should be included in the docs directly? -- keywords: +patch nosy: +dhgmgn Added file: http://bugs.python.org/file27839/

[issue14878] Improve documentation for generator.send method

2012-11-02 Thread Jan Duzinkiewicz
Jan Duzinkiewicz added the comment: The latest docs have a crossrefence at the end of the section: http://docs.python.org/3/reference/simple_stmts.html#grammar-token-yield_stmt I copied the reference to 2.7 docs -- keywords: +patch nosy: +dhgmgn Added file: http://bugs.python.org

[issue16386] imp.find_module does not specify registry key it searches on windows

2012-11-02 Thread Jan Duzinkiewicz
New submission from Jan Duzinkiewicz: quote from http://docs.python.org/3/library/imp.html#imp.find_module: "...on some systems some other places are looked in as well (on Windows, it looks in the registry which may point to a specific file)." I actually didn't know the registr

[issue16386] imp.find_module does not specify registry key it searches on windows

2012-11-17 Thread Jan Duzinkiewicz
Jan Duzinkiewicz added the comment: Ok, didn't knew much about importlib, I can work on a patch but have a few questions/suggestions: 1. For importlib, simply referencing the "Using on Windows" guide imo won't be ok - the importlib sources show that the key being used i

[issue15533] subprocess.Popen(cwd) documentation

2012-12-18 Thread Jan Lachnitt
Jan Lachnitt added the comment: Hi, I am using Python 3.2.3 on Windows XP. I encountered a problem with subprocess.call when using the cwd parameter. I used Google to look for a solution and I found this issue in Python tracker. But this issue seems absolutely reversed! The subprocess

[issue15533] subprocess.Popen(cwd) documentation

2012-12-18 Thread Jan Lachnitt
Jan Lachnitt added the comment: EDIT: No, it doesn't work fine: the executable reports stack overflow. I thought this had nothing to do with Python, hence I didn't mention it. But If I run the executable without Python, THEN it works fine. But this may be another issue. I'll

[issue15533] subprocess.Popen(cwd) documentation

2012-12-18 Thread Jan Lachnitt
Jan Lachnitt added the comment: Hi Chris, thank for your reply, I didn't see it while writing the edit. Does it mean that on Linux, it will use the cwd? -- ___ Python tracker <http://bugs.python.org/is

[issue15533] subprocess.Popen(cwd) documentation

2012-12-19 Thread Jan Lachnitt
Jan Lachnitt added the comment: Hi all, I have solved the problem by using absolute path of the executable. The reason why the executable didn't work properly may be that the executable's relative path was inconsistent with current directory. See the following example (I hav

[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-05 Thread Jan Lachnitt
New submission from Jan Lachnitt: Python 3.3 64-bit seems to compile one of my files incorrectly. Specifically, os.path.isdir returns True for a nonexistent folder. The important point is that the code works correctly when it is performed step-by-step in pdb. Python version: Python 3.3.0

[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-06 Thread Jan Lachnitt
Jan Lachnitt added the comment: Here is a part of my code (with some comments added): for struct in ini_structures: dirname = wrkdir+os.sep+struct.name if not os.path.isdir(dirname): # This works fine. If the directory doesn't exist,...

[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-06 Thread Jan Lachnitt
Jan Lachnitt added the comment: print(ascii(struct.name)) print(ascii(struct.name.encode("unicode_internal"))) print(ascii(struct.name.encode("utf-8"))) produces: 'sub-fcc' b's\x00u\x00b\x00-\x00f\x00c\x00c\x00' b'sub-fcc' and

[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Jan Lachnitt
Jan Lachnitt added the comment: Knowing that the problem is related to the internal representation of the strings, I have written a short script which reproduces the problem. It is this simple: import os name = 'sub-fcc' wrkdir = 'D:\\Bug reports\\Python\\test' dirname

[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Jan Lachnitt
Jan Lachnitt added the comment: On Windows XP 32-bit: 3.2.3 works, 3.3.0 fails. -- ___ Python tracker <http://bugs.python.org/issue17137> ___ ___ Python-bug

[issue17137] Malfunctioning compiled code in Python 3.3 x64

2013-02-07 Thread Jan Lachnitt
Jan Lachnitt added the comment: ... print(ctypes.sizeof(ctypes.c_wchar)) _PyObject_Dump=ctypes.pythonapi._PyObject_Dump _PyObject_Dump.argtypes=(ctypes.py_object,) print(_PyObject_Dump(dirname)) print(list(dirname)) in Python 3.3.0 64-bit on Windows 8 produces: 2 object : 'D:\\Bug re

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread jan matejek
jan matejek added the comment: Yes. We still have a patch for two things: 1. fix setup.py script to look for libraries in correct (lib64) prefixes, and 2. fix values returned from sysconfig, to reflect that python resides in lib64 "$prefix/lib" is hardcoded in many places. Lib64 is pr

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread jan matejek
jan matejek added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dne 7.11.2013 16:56, Matthias Klose napsal(a): > > Matthias Klose added the comment: > > the patch in msg202343 is wrong, hardcoding lib64 on Debian/Ubuntu. This patch is provided for reference only -

[issue19539] The 'raw_unicode_escape' codec buggy + not apropriate for Python 3.x

2013-11-09 Thread Jan Kaliszewski
New submission from Jan Kaliszewski: It seems that the 'raw_unicode_escape' codec: 1) produces data that could be suitable for Python 2.x raw unicode string literals and not for Python 3.x raw unicode string literals (in Python 3.x \u... escapes are also treated literally); 2) s

[issue19539] The 'raw_unicode_escape' codec buggy + not apropriate for Python 3.x

2013-11-10 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: Which means that the description "Produce a string that is suitable as raw Unicode literal in Python source code" is (in Python 3.x) no longer true. So, if change/removal is not possible because of internal significance of the codec, I believ

[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski
New submission from Jan Kaliszewski: When learning about the 'codecs' module I encountered several places in the docs of the module that, I believe, could be improved to be clearer and easier for codecs-begginers: 1. Ad `codecs.encode` and `codecs.decode` descriptions: I believe i

[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: s/world/word s/begginers/beginners (sorry, it's late night here) -- ___ Python tracker <http://bugs.python.org/is

[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: 8. Again ad `codecs.open`: the default file mode is actually 'rb', not 'r'. 9. Several places in the docs -- ad: `codecs.register_error`, `codecs.open`, `codecs.EncodedFile`, `Codec.encode/decode`, `codecs.StreamWriter/StreamReader` -- d

[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: 11. Ad encoding 'undefined': The sentence `Can be used as the system encoding if no automatic coercion between byte and Unicode strings is desired.` was suitable for Python 2.x, but not for Python 3.x'. I believe, this sentence sh

[issue19548] 'codecs' module docs improvements

2013-11-10 Thread Jan Kaliszewski
Changes by Jan Kaliszewski : -- versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue19548> ___ ___ Python-bugs-list m

[issue21571] Python build should check CPATH, C_INCLUDE_PATH for module dependencies

2014-07-03 Thread Jan Kanis
Jan Kanis added the comment: I can write a patch. I haven't signed a contributor agreement but I have no problem doing so. I am not sure when I will have time to write a patch though, so it could take some time. -- ___ Python tracker

[issue21910] File protocol should document if writelines must handle generators sensibly

2014-07-03 Thread Jan Kanis
New submission from Jan Kanis: The resolution of issue 5445 should be documented somewhere properly, so people can depend on it or not. IOBase.writelines handles generator arguments without problems, i.e. without first draining the entire generator and then writing the result in one go. That

[issue20354] tracemalloc causes segfault in "make profile-opt"

2014-01-22 Thread jan matejek
New submission from jan matejek: When compiling "make profile-opt", the instrumented python executable segfaults upon exit, even though it appears to run fine. This breaks the build process, because make evaluates the segfault as if the respective compilation step failed. GDB

[issue20751] Misleading examples indDescriptor protocol documentation

2014-02-23 Thread Jan Kaliszewski
New submission from Jan Kaliszewski: 1. One misleading detail in the descriptor protocol documentation for super bindings is that the following fragment of the http://docs.python.org/reference/datamodel.html#invoking-descriptors page: """ Super Binding If a is an instance

[issue20751] Misleading examples in the descriptor protocol documentation

2014-02-23 Thread Jan Kaliszewski
Changes by Jan Kaliszewski : -- title: Misleading examples indDescriptor protocol documentation -> Misleading examples in the descriptor protocol documentation ___ Python tracker <http://bugs.python.org/issu

[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-25 Thread jan matejek
Changes by jan matejek : -- nosy: +matejcik ___ Python tracker <http://bugs.python.org/issue20763> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-07-09 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: Hello guys, what's the current state of this issue? The proposed patch hasn't still been projected into upstream Python code, so wondering: 1, when and if it will be? 2, if you have found another solution / patch? Thanks && Regards,

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-07-15 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: Link to older Python tracker issue discussing the same problem and closed with "won't fix": http://bugs.python.org/issue946373 Strange enough, but implied from reading above issue, just an idea (don't shoot :)). Wouldn't it be

[issue5103] ssl.SSLSocket timeout not working correctly when remote end is hanging

2009-07-23 Thread jan matejek
Changes by jan matejek : -- nosy: +matejcik ___ Python tracker <http://bugs.python.org/issue5103> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5103] ssl.SSLSocket timeout not working correctly when remote end is hanging

2009-07-24 Thread jan matejek
jan matejek added the comment: i believe that the bug lies in bad implementation/backport of feature from 3.0 patch for issue1251. see this revision: http://svn.python.org/view/python/branches/release30-maint/Lib/ssl.py?r1=59339&r2=59340 where the code was added for py3k branch. the l

<    1   2   3   4   5   >