[issue29283] duplicate README in site-packages

2017-01-16 Thread jan matejek
New submission from jan matejek: Lib/site-packages directory now contains README.txt in addition to README. Both files are identical. One of them should probably go away? -- components: Installation messages: 28 nosy: matejcik priority: normal severity: normal status: open title

[issue1294959] Problems with /usr/lib64 builds.

2017-01-16 Thread jan matejek
jan matejek added the comment: Attached is a patch that I'd like to propose for inclusion. It introduces a new configure option "--with-custom-platlibdir=", which defaults to `basename $libdir`. This is converted to makefile variable "platlibdir", which is used in ge

[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-02-02 Thread jan matejek
jan matejek added the comment: The "'0' * taglen" part is now considered part of plaintext. Which makes a lot of sense :) Removing the "empty taglen" fixes the encryption part of the tests for me. Similarly, for the decryption test, we must only read and chec

[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-02-02 Thread jan matejek
jan matejek added the comment: the attached patch fixes the test for me -- keywords: +patch Added file: http://bugs.python.org/file46494/test_socket_aead_kernel49.patch ___ Python tracker <http://bugs.python.org/issue29

[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-02-16 Thread jan matejek
Changes by jan matejek : -- pull_requests: +94 ___ Python tracker <http://bugs.python.org/issue29324> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26789] Please do not log during shutdown

2017-02-21 Thread Jan Vorwerk
Jan Vorwerk added the comment: Indeed, the error message is quite... surprising and misleading. To reproduce, please run the attached (admittedly wrong) program that I could simplify a lot. It seems to occur when a exception is raised at the wrong time... I hope this helps nail down (at least

[issue17396] modulefinder fails if module contains syntax error

2013-03-11 Thread Jan Gosmann
New submission from Jan Gosmann: Running modulefinder.ModuleFinder.run_script on a script which has an import statement with a module containing a syntax error will raise a SyntaxError exception. I think, modulefinder should instead continue its analysis and add the module to badmodules

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-22 Thread jan matejek
jan matejek added the comment: Ismail, the sem_open thing is because in autobuild you don't get /proc or somesuch - it's a problem of our buildsystem, otherwise the test passes. I can reproduce the failure in autobuild, but not separately yet. Will keep you posted, signs point to y

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-22 Thread jan matejek
jan matejek added the comment: Not just yet, please. I can now reproduce the test_subprocess failures outside autobuild too. Interestingly, it's the reverse here: test_subprocess passes when /proc is not present, but fails when it is. I'm pretty sure that we hijacked a completely

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-28 Thread jan matejek
jan matejek added the comment: i don't think that's it, look at the result output in comment #183756: the list of fds is correct, except that they aren't closed as they should be. i can't reproduce the result when running code by hand, so it's either a race or an i

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-28 Thread jan matejek
jan matejek added the comment: so apparently the problem was that we're using the borked original patch for issue #16962, instead of the fixed version that's actually in repos. (The d_type field was missing, so every filename had an extra character prepended to it. AFAICT, all

[issue17396] modulefinder fails if module contains syntax error

2013-04-27 Thread Jan Gosmann
Jan Gosmann added the comment: Could you point me to some documentation on how to add a test? I have not been involved in Python development so far. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17922] Crash in clear_weakref

2013-05-07 Thread Jan Safranek
New submission from Jan Safranek: I have Python 2.7.4 running on Fedora Rawhide and I get segmentation fault with following backtrace: #0 0x7f73f69ca5f1 in clear_weakref (self=0x7f73ff515c00) at Objects/weakrefobject.c:56 #1 weakref_dealloc (self=0x7f73ff515c00) at Objects

[issue17922] Crash in clear_weakref

2013-05-07 Thread Jan Safranek
Jan Safranek added the comment: I can reproduce the crash in very unusual setup: 1. OpenPegasus (http://www.openpegasus.org/), for this bug we may consider it just a network daemon, listening on TCP port. When a request comes, it is eventually processed by a provider (= something like plugin

[issue17922] Crash in clear_weakref

2013-05-07 Thread Jan Safranek
Jan Safranek added the comment: Bisecting Python mercurial repository, I found the patch which causes the crash: changeset: 80762:7e771f0363e2 branch: 2.7 parent: 80758:29627bd5b333 user:Antoine Pitrou date:Sat Dec 08 21:15:26 2012 +0100 summary: Issue #16602

[issue17922] Crash in clear_weakref

2013-05-07 Thread Jan Safranek
Jan Safranek added the comment: > First, have you seen the following message on that bug report: > http://bugs.python.org/issue16602#msg177180 I'm reading it now... I searched for PyWeakref_GET_OBJECT in cmpi-bindings and both occurrences generated by SWIG and both look safe. I

[issue17922] Crash in clear_weakref

2013-05-07 Thread Jan Safranek
Jan Safranek added the comment: > Could you try to inspect the `self` variable inside weakref_dealloc, > especially `self->wr_object` and its Py_TYPE() value? Also, what is the > value of Py_REFCNT(self->wr_object)? in weakref_dealloc at Objects/weakrefobject.c:106: (

[issue17922] Crash in clear_weakref

2013-05-07 Thread Jan Safranek
Jan Safranek added the comment: > Right. But this is an embedded interpreter, and SWIG does not call > PyType_Ready() again; the old type is returned instead. Python crashes in Py_Initialize(). SWIG_init() is called right after it. So even if SWIG calls PyType_Ready, it would be too late

[issue17922] Crash in clear_weakref

2013-05-09 Thread Jan Safranek
Jan Safranek added the comment: On 05/07/2013 06:06 PM, Antoine Pitrou wrote: > a significant amount of static data inside CPython actually survives > Py_Finalize :-/ As a solution, would it be possible to wipe all registered types in Py_Finalize

[issue17922] Crash in clear_weakref

2013-05-09 Thread Jan Safranek
Jan Safranek added the comment: On 05/07/2013 05:32 PM, Antoine Pitrou wrote: > Jan, one possibility would be for Pegasus to stop "unloading" Python, > it seems. It is always possibility. Actually, Pegasus "plugin" is just a shared object (.so) and the .so is linked

[issue17396] modulefinder fails if module contains syntax error

2013-05-12 Thread Jan Gosmann
Jan Gosmann added the comment: Here is an updated patch, also containing a test. -- Added file: http://bugs.python.org/file30237/fix-handling-of-syntax-errors.diff ___ Python tracker <http://bugs.python.org/issue17

[issue17396] modulefinder fails if module contains syntax error

2013-05-12 Thread Jan Gosmann
Jan Gosmann added the comment: It's based on the default branch becoming 3.4. -- versions: +Python 3.4 -Python 2.7 ___ Python tracker <http://bugs.python.org/is

[issue17922] Crash in clear_weakref

2013-05-14 Thread Jan Safranek
Jan Safranek added the comment: On 05/09/2013 09:07 AM, Jan Safranek wrote: > > Jan Safranek added the comment: > > On 05/07/2013 05:32 PM, Antoine Pitrou wrote: >> Jan, one possibility would be for Pegasus to stop "unloading" Python, >> it seems. >

[issue17980] CVE-2013-2099 ssl.match_hostname() trips over crafted wildcard names

2013-05-16 Thread Jan Lieskovsky
Jan Lieskovsky added the comment: The CVE identifier of CVE-2013-2099 has been assigned: http://www.openwall.com/lists/oss-security/2013/05/16/6 to this issue. -- nosy: +iankko title: ssl.match_hostname() trips over crafted wildcard names -> CVE-2013-2099 ssl.match_hostname() tr

[issue17928] PowerLinux getargs.c FETCH_SIZE endianness bug

2013-05-16 Thread jan matejek
jan matejek added the comment: The fix causes regression on my 64bit little-endian machine. It seems that while parsing the arguments, the length value overwrites part of the string pointer. -- nosy: +matejcik ___ Python tracker <h

[issue17928] PowerLinux getargs.c FETCH_SIZE endianness bug

2013-05-16 Thread jan matejek
jan matejek added the comment: hmm, but it's caused by a private patch claiming that _testcapimodule.c is PY_SSIZE_T_CLEAN. sorry for the noise. -- ___ Python tracker <http://bugs.python.org/is

[issue23053] test_urllib2_localnet fails without ssl

2014-12-15 Thread jan matejek
New submission from jan matejek: The pep 476 commit to Python 2.7 [1] adds unconditional "import ssl" to test_urllib2_localnet.py. This causes the test to fail with an ImportError if ssl module is not built. Note that like 5 lines later, ssl is imported conditionally, and all the

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

2014-12-25 Thread Jan Kaliszewski
Changes by Jan Kaliszewski : -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/issue19539> ___ ___ Python-bugs-

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

2014-12-25 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: My concerns are now being addressed in the issue19548. -- ___ Python tracker <http://bugs.python.org/issue19539> ___ ___ Pytho

[issue23232] 'codecs' module functionality + its docs -- concerning custom codecs, especially non-string ones

2015-01-13 Thread Jan Kaliszewski
New submission from Jan Kaliszewski: To some extent, this issue is a follow-up of Issue 20132. It concerns some parts of functionality + documentation of the 'codecs' module related to registering custom codecs, especially non-string ones (i.e., codecs that encode/decode between

[issue23232] 'codecs' module functionality + its docs -- concerning custom codecs, especially non-string ones

2015-01-13 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: Sorry, s/Issue 20132/Issue 19548/g Issue 20132 is also related somehow, but here I ment that this is a follow-up of Issue 19548; and Zoinkity's concerns I cited are also from Issue 19548, and not from

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-04 Thread Jan Harkes
New submission from Jan Harkes: mingw32 fails to link with libpython27.a fails with the following error /cygdrive/C/Python27/libs/libpython27.a: error adding symbols: File format not recognized extracting all the objects from libpython27.a and checking them with objdump shows that two

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-05 Thread Jan Harkes
Jan Harkes added the comment: The Python-2.7.9 version of the Windows-x86 MSI installed version works fine with the 32-bit mingw. In fact I rolled back to that release and built my code successfully. Somehow the fix for https://bugs.python.org/issue23199 must have broken the 32-bit

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-05 Thread Jan Harkes
Jan Harkes added the comment: Just noticed in Matthew Barnett's comment that he has an additional "--as-flags=--32" argument. x86_64-w64-mingw32-dlltool --as-flags=--32 --dllname python27.dll --def mingwlib.def --output-lib win32\libpython27.a -m i386 Creates a correct libp

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-06-10 Thread Jan Harkes
Jan Harkes added the comment: @Carl.Kleffner: that is an interesting message but it discusses using binutils(/mingw?) generated import libraries with the MS linker. This bugreport was about two 64-bit objects that were accidentally included in an otherwise 32-bit library and it has been

[issue24691] out of memory in distutils.upload with large files

2015-07-23 Thread Jan Stürtz
New submission from Jan Stürtz: We tried to upload a very large (350MB) bdist egg via distutils to our internal package server. And received following crash. Traceback (most recent call last): File "setup.py", line 1, in import os File "C:\devel\cdb\10.1.tag\cdb\pyth

[issue24765] Move .idlerc to %APPDATA%\IDLE on Windows

2015-07-31 Thread jan parowka
New submission from jan parowka: IDLE shouldn't pollute user's home directory on Windows, standard location for config files is %APPDATA%\, which resolves to C:\Users\\AppData\Roaming\ in Vista upwards and somewhere in Documents and Settings under XP. -- components: IDL

[issue24765] Move .idlerc to %APPDATA%\IDLE on Windows

2015-07-31 Thread jan parowka
jan parowka added the comment: Mac Developer Library mentions Library/Application Support/ as a preferred directory to store configuration files for an application, gotten via a call to NSSearchPathForDirectoriesInDomains or NSFileManager with NSApplicationSupportDirectory path key and either

[issue24765] Move .idlerc to %APPDATA%\IDLE on Windows

2015-08-07 Thread jan parowka
jan parowka added the comment: > fiddling with the entry bar the right way and adding exactly 'AppDate\' to > the existing path You can type in '%APPDATA%' in the path bar, run dialog, or even start menu, and it will take you to the current user's Application

[issue24880] ctypeslib patch for regular expression for symbols to include

2015-08-17 Thread Jan Wagner
New submission from Jan Wagner: There is an issue in ctypeslib that affects xml2py.py option "-r". The usage informs that "-r EXPRESSION regular expression for symbols to include". However, when the expression is evaluated, only exact name matches are actually selected.

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2015-08-20 Thread Jan Hudec
Jan Hudec added the comment: While I agree that the current behaviour is a bug (this bug), and one that renders the package unusable for me (I used apsw or different language instead), I unfortunately have to disagree with Gerhard that the change is not a problem. It can be. The implicit

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2015-08-20 Thread Jan Hudec
Jan Hudec added the comment: Oh, I see I misunderstood Gerhard's last commit. So now the problem should be only if there is a DML statement followed by DDL statement and no commit afterwards. Well, that is indeed probably stupid. -- ___ P

[issue24880] ctypeslib patch for regular expression for symbols to include

2015-08-20 Thread Jan Wagner
Jan Wagner added the comment: Yes, hosted at svn.python.org, but without any means of "externally" filing a bug report or patch for it other than here on bugs.python.org. Maybe theller you could include this patch? Change status to closed + t

[issue24919] Use user shell in subprocess

2015-08-23 Thread Jan Studený
New submission from Jan Studený: According to POSIX specification the pathname of user shell is stored in SHELL (environmental variable, see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08) so I think that is good idea to use that pathname instead of hardcoded

[issue22684] message.as_bytes() produces recursion depth exceeded

2015-10-13 Thread Jan Malte
Jan Malte added the comment: Are there any news about this bug report? -- nosy: +janmalte ___ Python tracker <http://bugs.python.org/issue22684> ___ ___ Python-bug

[issue25420] "import random" blocks on entropy collection

2015-10-16 Thread jan matejek
New submission from jan matejek: When imported, the random module creates and seeds an implicit instance, even when it is never used. The RNG is seeded from os.urandom, which as of python 3.5 uses the potentially blocking getrandom() call. This causes problems e.g. on our build VMs that

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2015-10-19 Thread jan matejek
jan matejek added the comment: On 18.10.2015 23:09, STINNER Victor wrote: > Hum ok, so your issue is specific to Linux. yes, should have specified that, sorry > Hum, the problem was already fixed some months/years ago: you must attach a > RNG virtio device to your VM. Python is

[issue22684] message.as_bytes() produces recursion depth exceeded

2015-10-19 Thread Jan Malte
Jan Malte added the comment: for the same objects as_string() is working correctly -- ___ Python tracker <http://bugs.python.org/issue22684> ___ ___ Python-bug

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2015-10-20 Thread jan matejek
jan matejek added the comment: let me reiterate that what I consider a bug is the fact that "import random" statement calls os.urandom (which per the proposed documentation may sometimes block) IOW, "import random" may sometimes block, even though it is not actually used

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2015-10-20 Thread jan matejek
jan matejek added the comment: attaching a first draft of what i'd consider a solution? not sure if this is the right way to go, and i don't know how to write a test for an import statement -- Added file: http://bugs.python.org/file40820/ra

[issue16811] email.message.Message flatten dies of list index out of range

2015-11-20 Thread Jan Malte
Jan Malte added the comment: seems like this happens still, if the CC header starts with a new line character. Python 3.4.3 -- nosy: +janmalte ___ Python tracker <http://bugs.python.org/issue16

[issue22662] subprocess.Popen.communicate causing local tty terminal settings to change inconsistently

2015-12-29 Thread Jan Spurny
Jan Spurny added the comment: I'm probably experiencing the same problem - and I've found a way to demonstrate it (almost) reliably: import multiprocessing import subprocess import os def x(): fn = '/tmp/somevideo.avi' p = subprocess.Pope

[issue22662] subprocess.Popen.communicate causing local tty terminal settings to change inconsistently

2015-12-29 Thread Jan Spurny
Jan Spurny added the comment: (The video file must exist for this to work) -- ___ Python tracker <http://bugs.python.org/issue22662> ___ ___ Python-bugs-list m

[issue26174] Exception alias cause destruction of existing variable

2016-01-21 Thread Jan Pokorny
New submission from Jan Pokorny: Encountered a weird behavior when working with variable with the same name as exception's alias. Observed behavior: - In case variable with the same name (e.g. 'e') already exists when any 'except Error as e' block is executed, th

[issue26252] Add an example to importlib docs on setting up an importer

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

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2016-04-26 Thread jan matejek
jan matejek added the comment: unlike #26839, however, there is no workaround for "import random". so i maintain that this issue is in fact very specific to the random module -- ___ Python tracker <http://bugs.python.o

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

2015-03-03 Thread Jan Kratochvil
Jan Kratochvil added the comment: It even crashes applications due to pollution of dynamic symbols namespace by application symbols as seen in: https://bugzilla.redhat.com/show_bug.cgi?id=1198158 -- ___ Python tracker <http://bugs.python.

[issue28374] SyntaxError: invalid token in python2.7/test/test_grammar.py

2016-10-06 Thread Jan Welker
New submission from Jan Welker: I compiled Python 2.7.12 from source and ran the tests unsuccessful. Compiling /usr/lib/python2.7/test/test_grammar.py ... File "/usr/lib/python2.7/test/test_grammar.py", line 80 self.assertEqual(1 if 1else 0, 1) ^ S

[issue1023] Buy Tramadol online

2007-06-08 Thread Terry Jan. Reedy
Changes by Terry Jan. Reedy: __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1023> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2010-09-25 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Sorry for the delay. Before suggesting a doc change to correct/complete the description of the *current* situation, we actually should consider changing this situation. I think this is reasonable and I feel encouraged by Gabriel Genellina: > I see

[issue4140] urllib2: request with digest auth through proxy fail

2008-10-17 Thread Jan-Klaas Kollhof
New submission from Jan-Klaas Kollhof <[EMAIL PROTECTED]>: When using a proxy to request URLs that require Digest Auth, a header similar to the following is sent to the server: Authorization: Digest ... uri="http://example.org/foobar/spam"; ... The server then responded with:

[issue4269] Spaces not showing correctly in "split()" documentation on http://www.python.org/doc/2.5.2/lib/string-methods.html

2008-11-06 Thread Berend-Jan Wever
New submission from Berend-Jan Wever <[EMAIL PROTECTED]>: Part of the text of the online documentation for the string.split() method: If sep is not specified or is None, a different splitting algorithm is applied. First, whitespace characters (spaces, tabs, newlines, returns, and for

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2020-03-01 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: I am not too attached to "my" patch, but because I love Python I really would like us to land on a solution. > However I want all changes and new additions to the SSL module to follow PEP > 543 so I can provide a PEP 543-compatible inter

[issue14264] can't install zope.event 3.4.0

2012-03-12 Thread Jan-Jaap Driessen
Changes by Jan-Jaap Driessen : -- nosy: +janjaapdriessen ___ Python tracker <http://bugs.python.org/issue14264> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14275] pysetup create doesn't handle install requirements

2012-03-12 Thread Jan-Jaap Driessen
New submission from Jan-Jaap Driessen : Distutils2 pysetup can take an existing setuptools based project and convert it into the distutils2 setup.cfg syntax using `pysetup create`. The install requirements are not converted: {{{ svn co svn+ssh://svn.zope.org/repos/main/zope.dublincore/trunk

[issue14276] install latest version of a package

2012-03-12 Thread Jan-Jaap Driessen
New submission from Jan-Jaap Driessen : I would like to install the latest version of a package. The pysetup command does not give me easy access to do this. Can we add an 'upgrade' method? -- assignee: eric.araujo components: Distutils2 messages: 155517 nosy: alexis, e

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-06-27 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke : -- pull_requests: +2506 ___ Python tracker <http://bugs.python.org/issue16487> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-06-27 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Hey Senthil and Christian! > Could you convert your latest patch into PR against > https://github.com/python/cpython That was fun. There we go: https://github.com/python/cpython/pull/2449 I hope I was not too late with that for the 3.7 devel

[issue31369] re.RegexFlag is not included in __all__

2017-09-06 Thread Pieter-Jan Briers
New submission from Pieter-Jan Briers: It exists and its flags are exported, but not the direct classes itself. This seems inconsistent to me and fixing it would make things like using static typing on it just a little bit easier. -- components: Regular Expressions messages: 301516

[issue31369] re.RegexFlag is not included in __all__

2017-09-06 Thread Pieter-Jan Briers
Pieter-Jan Briers added the comment: I suppose it may be an implementation detail, though I wouldn't be amazed that had enum existed when re was written it'd have been used instead of constant integers at the time. Though I do suppose exposing it fully would add two ways to get

[issue30377] Unnecessary complexity in tokenize.py around handling of comments and newlines

2017-05-16 Thread Albert-Jan Nijburg
New submission from Albert-Jan Nijburg: While porting tokenize.py to javascript I stumbled upon this. The bit of code that checks if it's a newline or a comment, checks for comment twice. These can be split up, this way the code is a bit more readable. https://github.com/python/cpython

[issue25324] Importing tokenize modifies token

2017-05-16 Thread Albert-Jan Nijburg
Changes by Albert-Jan Nijburg : -- pull_requests: +1699 ___ Python tracker <http://bugs.python.org/issue25324> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30377] Unnecessary complexity in tokenize.py around handling of comments and newlines

2017-05-16 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: Oh yes you're right! I've updated the code on github. Even cleaner this way :). -- ___ Python tracker <http://bugs.python.o

[issue25324] Importing tokenize modifies token

2017-05-16 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: > I prefer to add tokenize tokens directly in Lib/token.py, and then get > COMMENT, NL and ENCODING using tok_name.index(). That would make more sense from a breaking change perspective, but we would step on the toes of anyone adding `COMMENT`, `N

[issue25324] Importing tokenize modifies token

2017-05-16 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: lib2to3 appears to have it's own token.py as well with NL and COMMENT withtout ENCODING... Lib/lib2to3/pgen2/token.py -- ___ Python tracker <http://bugs.python.org/is

[issue30377] Unnecessary complexity in tokenize.py around handling of comments and newlines

2017-05-16 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: I did yesterday, should be coming through today right? -- ___ Python tracker <http://bugs.python.org/issue30377> ___ ___

[issue30377] Unnecessary complexity in tokenize.py around handling of comments and newlines

2017-05-19 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: Still no CLA, I checked my username on the pdf, and it's correct, hope someone looks at it soon :) -- ___ Python tracker <http://bugs.python.org/is

[issue25324] Importing tokenize modifies token

2017-05-24 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: I've updated the PR and added the tokenize tokens to token.h and their names to tokenizer.c. This way they'll show up when you run token.py. The names will always be in tok_name and tokenizer.py will use those. Not breaking the public api and

[issue30455] Generate C code from token.py and not vice versa

2017-05-30 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: I think this covers all the changes from PR #1608. Looks a lot nicer too, building it every time from the make file. You may want to add to the docs that token.py is now the source of the tokens. -- ___ Python

[issue25324] Importing tokenize modifies token

2017-05-30 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: Let me know if you want me to add/change anything about my PR :) I'm happy to do so. -- ___ Python tracker <http://bugs.python.org/is

[issue25324] Importing tokenize modifies token

2017-05-31 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: I've updated token.rst and Misc/NEWS. Let me know if the wording is correct. -- ___ Python tracker <http://bugs.python.org/is

[issue25324] Importing tokenize modifies token

2017-06-01 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: Aah! Oops I can fix later today. On Thu, 1 Jun 2017 at 18:08, STINNER Victor wrote: > > STINNER Victor added the comment: > > We got a bug report from Coverity: > > *** CID 1411801: Incorrect expression (MISSING_COMMA) > /Parse

[issue25324] Importing tokenize modifies token

2017-06-01 Thread Albert-Jan Nijburg
Changes by Albert-Jan Nijburg : -- pull_requests: +1990 ___ Python tracker <http://bugs.python.org/issue25324> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36850] shutil.copy2 fails with even with source network filesystem not supporting extended attributes

2019-05-08 Thread Jan-Martin Kuhnigk
Change by Jan-Martin Kuhnigk : -- nosy: +grebdioZ ___ Python tracker <https://bugs.python.org/issue36850> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-10-02 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Hey Antoine, Christian, Senthil! I have invested quite a bit more time to double-check my responses to the questions asked so far, clarified where appropriate, and updated the pull request on GitHub after manually resolving the merge conflicts that

[issue7167] Smarter FTP passive mode

2017-10-06 Thread Albert-Jan Nijburg
Albert-Jan Nijburg added the comment: I understand the standpoint that the server is configured incorrectly, and I see why this might not be the best solution to the problem. But not everyone owns the ftp server they're connecting to. And the `EPSV` command often doesn't i

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2017-11-28 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Hello! I would very much appreciate if we can find a way for us to get another review for the last patch. I did most of the work in August 2016 and got a review from Senthil and Christian which I processed. When I got back to the patch for converting it

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2018-09-06 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Thanks for the discussion. Since I tried to join the efforts here in 2016 two years ago I was (and still am) enthusiastic, and willing to invest quite a bit of energy. Still, we have missed the 3.6 and 3.7 releases to change something about the fact

[issue30670] pprint for dict in sorted order or insert order?

2018-10-17 Thread Jan-Hein Bührman
Jan-Hein Bührman added the comment: @terry.reedy - If I understand correctly, this issue was closed by you awaiting what would happen with the dict insertion order after 3.6. It has been decided that dict insertion will stay for now and in the future. >>> Should this issue now be

[issue18454] distutils crashes when uploading to PyPI having only the username (no pw) defined

2013-07-14 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: When updating an existing project on PyPI via distutils using the upload command, I observe erroneous behavior regarding the credentials when I do not want to store my password in clear text in the pypirc file: (1) When running python setup.py

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-08-27 Thread Jan-Wijbrand Kolman
New submission from Jan-Wijbrand Kolman: An internal library that heavily uses subprocess.Popen() started failing its automated tests when we upgraded from Python 2.7.3 to Python 2.7.5. This library is used in a threaded environment. After debugging the issue, I was able to create a short

[issue18851] subprocess's Popen closes stdout/stderr filedescriptors used in another thread when Popen errors

2013-09-03 Thread Jan-Wijbrand Kolman
Jan-Wijbrand Kolman added the comment: Thanks you for the swift followup! -- ___ Python tracker <http://bugs.python.org/issue18851> ___ ___ Python-bugs-list mailin

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: If you are thinking TL;DR: This fails on FreeBSD: >>> signal.signal(signal.SIGRTMAX, lambda *a: None) Traceback (most recent call last): File "", line 1, in ValueError: signal number out of range Although of infrequent use, I

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-23 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: We should match the unit test with the documentation for signal.NSIG. Either the code or the docs or both need to change. Currently the docs say that signal.NSIG is "One more than the number of the highest signal number." ("https://docs

[issue21575] list.sort() should show arguments in tutorial

2014-05-25 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: Currently, the tutorial for the list sort method does not show allowed arguments: list.sort() Sort the items of the list in place. (see e.g. https://docs.python.org/3.4/tutorial/datastructures.html) Is there a reason why we do not show the

[issue21575] list.sort() should show arguments in tutorial

2014-05-26 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: I have updated the patch with a cross-reference to the sorted() built-in, which explains the arguments. W.r.t. to Éric's suggestion: the sorted() doc refers to the sorting howto in the wiki. Now everything is connected. -- Added file:

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-02-10 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: On FreeBSD, signal.NSIG is smaller than what the documentation promises: "One more than the number of the highest signal number". On Linux, the highest numerical signal value is smaller/equal signal.NSIG (expected behavior): >>

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-02-10 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: As a follow-up, relevant output from FreeBSD 9: $ python Python 2.7.5 (default, Dec 20 2013, 21:12:37) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Type "help", "copyright", "credits" or "license" for more in

[issue10728] argparse.ArgumentParser.print_help uses sys.stdout

2014-02-14 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: The version action currently writes to stderr. The _VersionAction(Action)'s __call__() method finishes off with parser.exit(message=formatter.format_help()) and parser.exit() by default writes to stderr. Here, Steven says "Help is definitely i

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2014-02-20 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: The os.utime() docs for Python 2 (http://docs.python.org/2/library/os.html#os.utime) and 3 (http://docs.python.org/3/library/os.html#os.utime) both contain the sentence "Whether a directory can be given for path depends on whether the operating s

<    1   2   3   4   5   >