[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2022-03-10 Thread Sorin Sbarnea
Sorin Sbarnea added the comment: Maybe I should mention that my networking is configured only with values received from the DHCP server, which includes 2 DNS servers, one ipv4 an done ipv6, both of them being the local router and *1* search domain, which is a real domain (not local

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2022-03-10 Thread Sorin Sbarnea
Sorin Sbarnea added the comment: I am able to reproduce this bug with Python 3.10 on MacOS 12.2 too, and I happen to have some extra insights about what happens, see https://github.com/tox-dev/tox/issues/2375 Basically the culprit is a reverse-dns query (PTR) that takes 30s to return

[issue44497] distutil findall can choke with recursive symlinks (performance)

2021-06-23 Thread Sorin Sbarnea
Change by Sorin Sbarnea : -- keywords: +patch pull_requests: +25448 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26873 ___ Python tracker <https://bugs.python.org/issu

[issue44497] distutil findall can choke with recursive symlinks (performance)

2021-06-23 Thread Sorin Sbarnea
Change by Sorin Sbarnea : -- type: -> performance ___ Python tracker <https://bugs.python.org/issue44497> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44497] distutil findall can choke with recursive symlinks (performance)

2021-06-23 Thread Sorin Sbarnea
New submission from Sorin Sbarnea : As the results of investigating a very poor performance of pip while trying to install some code I was able to identify that the root cause was the current implementation of distutils.filelist.findall or to be more precise the _find_all_simple function

[issue41973] Docs: TypedDict is now of type function instead of class

2020-10-15 Thread Sorin Sbarnea
Change by Sorin Sbarnea : -- nosy: +ssbarnea ___ Python tracker <https://bugs.python.org/issue41973> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2018-11-04 Thread Sorin Sbarnea
Sorin Sbarnea added the comment: It seems that the bug is still present. There is some additional information on the new report https://bugs.python.org/issue35164 -- nosy: +ssbarnea ___ Python tracker <https://bugs.python.org/issue29

[issue35164] socket.getfqdn and socket.gethostbyname fail on MacOS

2018-11-04 Thread Sorin Sbarnea
New submission from Sorin Sbarnea : It seems that when the MacOS machine does not have a FQDN name manually configured using `scutil`, python will be fail to resolve domain names and timeout after ~30 seconds. I mention that the DNS resolution works correctly on the machine

[issue31973] Incomplete DeprecationWarning for async/await keywords

2018-05-17 Thread Sorin Sbarnea
Sorin Sbarnea <sorin.sbar...@gmail.com> added the comment: I agree that this deprecation approach is not very helpful because it does not indicate a recommended way to fix. Yep, we all know that we will be forced to rename these parameters/variables everywhere and likely break few AP

[issue25351] pyvenv activate script failure with specific bash option

2017-09-28 Thread Sorin Sbarnea
Sorin Sbarnea <sorin.sbar...@gmail.com> added the comment: Based on my tests this worked with all shells I tested with, the syntax being a very old one and not some new/modern one. Passed: bash, zsh, dash, ksh Platforms: MacOS, RHEL Linux Failed with: tcsh but with the note tha

[issue25351] pyvenv activate script failure with specific bash option

2017-09-28 Thread sorin
sorin <sorin.sbar...@gmail.com> added the comment: This is a perfectly valid bug and I am surprised it was ignored for so long. I just raised a PR for addressing it, please review it. -- keywords: +patch nosy: +sorin pull_requests: +3790 stage: -> patch review type: en

[issue1602] windows console doesn't print or input Unicode

2016-09-09 Thread sorin
Changes by sorin <sorin.sbar...@gmail.com>: -- nosy: -sorin ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1602> ___ __

[issue26872] Default ConfigParser in python is not able to load values habing percent in them

2016-04-27 Thread sorin
sorin added the comment: Here is one example of failure caused by this https://gist.github.com/ssbarnea/b373062dd45de92735c7482b2735c5fb -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26872] Default ConfigParser in python is not able to load values habing percent in them

2016-04-27 Thread sorin
New submission from sorin: The ConfigParser issue with % (percent) is taking huge proportions because it does have serious implications downstream. One such example is the fact that in breaks virtualenv in such way the if you create a virtual env in a path that contains percent at some point

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2016-04-22 Thread sorin
Changes by sorin <sorin.sbar...@gmail.com>: -- nosy: -sorin ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6792> ___ __

[issue23841] py34 OrderedDict is using weakref for root reference

2015-04-01 Thread sorin
New submission from sorin: The standard library implementation of an OrderedDict (which is included in Python 3.4) uses a weakref for the root reference. https://hg.python.org/cpython/file/534b26837a13/Lib/collections/__init__.py#l74 This was reported initially on https://github.com

[issue22269] Resolve distutils option conflicts with priorities

2014-12-24 Thread sorin
sorin added the comment: Can't we do something about this bug? I think that most python devs are ignoring the severity of this one, especially because it does break distribution of packages (or at least their testing) On OS X the experience is awful as --user doesn't work at all

[issue8876] distutils should not assume that hardlinks will work

2013-04-15 Thread sorin
sorin added the comment: Can we have this merged, it prevents us form using distutil, especially in a continuous integration environment where you do not have control over the build server. See: https://drone.io/github.com/pycontribs/tendo/1 -- nosy: +sorin

[issue12119] distutils and python -B

2013-03-28 Thread sorin
sorin added the comment: Can we have a fix for this? ... one that would not require me to drop using PYTHONDONTWRITEBYTECODE. I do have PYTHONDONTWRITEBYTECODE=1 on my user profile and installing packages became a nightmare. -- nosy: +sorin

[issue1663329] subprocess/popen close_fds perform poor if SC_OPEN_MAX is hi

2012-05-17 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Am I wrong or we should reopen this bug. Try `ulimit -n unlimited` and you'll make python code that does popen practically blocking. -- nosy: +sorin type: - performance ___ Python tracker rep

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Here is a test file that will replicate the problem, I added it as a gist so it could support contributions ;) Py 2.7 works Py ==2.7 fails Py =3.0 works after minor changes required by py3k https://gist.github.com/1047551

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Right, so you have some binary data and you want to sent it to `httplib`. This worked in the past when `msg` was a non-unicode string, but starting with Python 2.7 this became an unicode string, so when you try to append the `message

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: I updated the gist and made a minimal test https://gist.github.com/1047551 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12398

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-25 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: You are right, I debugged the problem a little more and discovered at least one bug in PyAMF. Still, I was surprised to find out something very strange, it look that BytesIO.getvalue() does return `str` even if the documentation says it does

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-25 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: I have to add some details here. First, this bug has nothing to do with the URL, it does reproduce for normal urls. Still the problem with the line: msg += message_body is quite complex when combined with Python 2.7: type(msg) is unicode type

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Can we get more info regarding resolution of this bug. Due to this bug httplib cannot be used anymore to send binary data. This bug breaks other modules, one example being PyAMF (that does communicate only using binary data). -- nosy

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: There is another problem that makes the problem even more critical. OS X 10.7 does include Python 2.7.1 as the *default* interpreter. So we'll need both a fix for the future and an workaround. BTW, the hack with sys.setdefaultencoding cannot

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread sorin
New submission from sorin sorin.sbar...@gmail.com: It looks that Python 2.7 changes did induce some important bugs into httplib due to to implicit str-unicode encoding/decoding. One clear example is that PyAMF library doesn't work with Python 2.7 because it is not able to generate binary data

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Added as bug http://bugs.python.org/issue12398 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11898

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

2011-05-30 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: FYI, I got the above output from 10.7 from a friend, I do not have access to the seed, so the information could be wrong. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11623

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

2011-05-29 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Let's try to find a good compromise regarding this. I hope the we all agree that we should not put our personal needs or preferences on the first place, it's important to improve the overall experience for most users. First, we do not want

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

2011-05-29 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: You are right about Python from 10.6, it has PPC, but 10.7 doesn't. bash-3.2$ file /Volumes/107/usr/bin/python2.6 /Volumes/107/usr/bin/python2.6: Mach-O universal binary with 2 architectures /Volumes/107/usr/bin/python2.6 (for architecture x86_64

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

2011-05-29 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: And in addition to 2.5 and 2.6, 10.7 includes 2.7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11623

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

2011-05-28 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: I think that distutils must me modified to auto detect supported architectures and use them, this without requiring you to hack ARCHFLAGS. The number of developers that need to build PPC binaries is at least one order of magnitude lower than

[issue11936] plistlib.writePlistToBytes does not exist on 2.6 (osx) and documentation does not include information about version

2011-04-27 Thread sorin
New submission from sorin sorin.sbar...@gmail.com: On OS X (10.6) with Python 2.6 import plistlib plistlib.writePlistToBytes(dict()) AttributeError: 'module' object has no attribute 'writePlistToBytes' Python documentation contains no information regarding when writePlistToBytes was add

[issue1602] windows console doesn't print or input Unicode

2011-01-15 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: remeber that cp65001 cannot be set on windows. Also please read http://blogs.msdn.com/b/michkap/archive/2010/10/07/10072032.aspx and contact the author, Michael Kaplan from Microsoft, if you have more questions. I'm sure he will be glad to help

[issue7280] PCBuild instruction says to use nasmw.exe but it no longer exist

2010-09-13 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Please reopen the bug, current documentation change is not a proper solution and also it does not work (see below). Python's openssl repository contain pregenerated mak files (/ms/*.mak), when it should not. If you check openssl repository

[issue9699] invalid call of Windows API _popen() generating The input line is too long error message

2010-09-13 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: I made a small but important update to quote_command(), now it does quote the command line only under Windows because doing this under other platforms may break the command line. -- ___ Python

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
New submission from sorin sorin.sbar...@gmail.com: Currently most batch files from Tools\buildbot do fail to run if you do not call them from the python source root directory. I already have patched files, but the question is against which branch should I make them, considering that this bug

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
Changes by sorin sorin.sbar...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file18828/buildbot_curdir.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9822

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: In this case I made the patch on the right branch (py3k). These scripts could be called manually and it doesn't make any sense not to make them work in all cases. Not every Windows developer is using Visual Studio to build things, 'some

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: This is true, that this can impact the build process but the changes are assuring that it will always chdir to the right directory. BTW, %~dp0 is the directory when the batch file is located. -- Added file: http://bugs.python.org

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
Changes by sorin sorin.sbar...@gmail.com: Removed file: http://bugs.python.org/file18829/readme.txt.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9822

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
Changes by sorin sorin.sbar...@gmail.com: Removed file: http://bugs.python.org/file18828/buildbot_curdir.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9822

[issue9080] Provide list prepend method (even though it's not efficient)

2010-09-07 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: +1 for adding it because it will make the code easier to read/understand. Bad performance could be documented and it's related about internal representation. -- nosy: +sorin ___ Python tracker rep

[issue7231] Windows installer does not add \Scripts folder to the path

2010-09-03 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Important tools (like ease_install, pypm) from `Script` directory are already including version prefixes in their names (tool-2.7.exe). This means that it should not be a big problem having several Scripts directories on your path. Most python

[issue9699] invalid call of Windows API _popen() generating The input line is too long error message

2010-08-27 Thread sorin
New submission from sorin sorin.sbar...@gmail.com: Behavior: you get The input line is too long. error message when you try to run an external process by using os.system(), subprocess.Popen() or other similar methods. The real command line limit is 8192 under Windows and in most cases

[issue9699] invalid call of Windows API _popen() generating The input line is too long error message

2010-08-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: I'm currently building some samples (one that could be run on any Windows machine). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9699

[issue9699] invalid call of Windows API _popen() generating The input line is too long error message

2010-08-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Here is a test file. It does contain 3 command lines that are similar but one of them is not working (cmd_2). -- Added file: http://bugs.python.org/file18662/bug_line_too_long.py ___ Python tracker

[issue9699] invalid call of Windows API _popen() generating The input line is too long error message

2010-08-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: True about tee, I forgot to remove it. By the way, in case the other patch does not solve the issue we can use the quote_command() from http://github.com/ssbarnea/tendo/blob/master/tendo/tee.py to solve it. -- versions: +Python 2.5

[issue9390] Error in sys.excepthook on windows when redirecting output of the script

2010-07-27 Thread sorin
New submission from sorin sorin.sbar...@gmail.com: create a test.py with this content: print(test) run this file from command line by redirecting the output: test.py out.log You get: close failed in file object destructor

[issue7231] Windows installer does not add \Scripts folder to the path

2010-07-14 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Additional information that will enable the installer to update the path without requiring a relogin/restart: http://support.microsoft.com/kb/104011 -- ___ Python tracker rep...@bugs.python.org http

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-06-14 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: I would like to know what happened with hex_codec and what is the new py3 for this. Also, it would be really helpful to see DeprecationWarnings for all these codecs in py2x and include a note in py3 changelist. The official python

[issue1578269] Add os.symlink() and os.path.islink() support for Windows

2010-03-30 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: For me the patch worked. It would be really nice to have it in 2.7 - I really hate Python functions that are not working on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue1722344] Thread shutdown exception in Thread.notify()

2010-02-21 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Any idea if there is a nightly build for Python 2.6? The latest release was 2.6.4 and was 2 days before submitting the patch. Or the only alternative is to build it myself? Any ideas on when we could see 2.6.5? - I tried to look for a release

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Maybe it's useful to know that Administrator privileges are not required in order be able to create symlinks. You just need a specific permission that by default is assigned only to Administrators. How to set SeCreateSymbolicLinkPrivilege

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-18 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: BTW, Is there any hope to add this to Python 2.6? - this is the standard on Windows and I see this issue more like a bug resolution than a new feature ;) -- ___ Python tracker rep...@bugs.python.org

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-01-16 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: If you could provide a build I could run the tests on Windows 7 x64. This is a very old bug that I would like to see it solved. -- nosy: +sorin ___ Python tracker rep...@bugs.python.org http

[issue1602] windows console doesn't print utf8 (Py30a2)

2010-01-12 Thread sorin
Changes by sorin sorin.sbar...@gmail.com: -- nosy: +sorin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-12-27 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: It is possible to create combined x86 and x64 msi files and in fact it would be a good idea to have only one instead of two. -- nosy: +sorin ___ Python tracker rep...@bugs.python.org http

[issue7231] Windows installer does not add \Scripts folder to the path

2009-11-18 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Thanks Isaul, Anyway I made the required change before submitting the bug first time and additionally to what you wrote it is enough to logout/login to update the path - no reboot required. The bug is about repairing/improving Python experience

[issue7231] Windows installer does not add \Scripts folder to the path

2009-10-28 Thread sorin
New submission from sorin sorin.sbar...@gmail.com: I observed that Windows installer is able to add only the Python installation folder to the path. In addition to this it should add the Scrips folder because many python tools are installing scripts inside it, scripts that the user cannot us

[issue4015] [patch] make installed scripts executable on windows

2009-08-13 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: I totally agree that we must create batch files for commands but not by including python code inside them. -- nosy: +sorin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4015

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-07-28 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: Also the same issue does apply for command.getstatusoutput in Python 2.6. Maybe this bug should be reopened and solved by adding a platform check in the module. Also the documentation does not specify what would be the right multiplatform

[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2009-07-28 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: If I made a patch that will raise an error if you include commands module under Windows will you include it - this will safe others time. -- ___ Python tracker rep...@bugs.python.org http