[issue38884] __import__ is not thread-safe on Python 3

2020-03-31 Thread Geoffrey Bache
Change by Geoffrey Bache : -- nosy: +gjb1002 ___ Python tracker <https://bugs.python.org/issue38884> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35943] PyImport_GetModule() can return partially-initialized module

2020-02-20 Thread Geoffrey Bache
Geoffrey Bache added the comment: @Valentyn Tymofieiev - true, and thanks for the tip, though the symptoms described there are somewhat different from what I'm observing. Also, my problem seems to be dependent on zipping the Python code, which that one

[issue35943] PyImport_GetModule() can return partially-initialized module

2020-02-20 Thread Geoffrey Bache
Geoffrey Bache added the comment: Oops, I mean we call PyImport_ImportModule and get these issues when the files are zipped. Unless that calls PyImport_GetModule internally I guess it's not related to this then. -- ___ Python tracker &

[issue35943] PyImport_GetModule() can return partially-initialized module

2020-02-19 Thread Geoffrey Bache
Geoffrey Bache added the comment: I have been experiencing what I thought was this issue in my embedded Python code. We have been using Python 3.7, so I thought upgrading to 3.8.1 would fix it, but it doesn't seem to have made any difference. My C++ code essentially can

[issue15451] PATH is not honored in subprocess.Popen in win32

2014-09-03 Thread Geoffrey Bache
Changes by Geoffrey Bache : -- nosy: +gjb1002 ___ Python tracker <http://bugs.python.org/issue15451> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12739] read stuck with multithreading and simultaneous subprocess.Popen

2014-06-09 Thread Geoffrey Bache
Geoffrey Bache added the comment: Thanks Victor, yes I already created my own lock which fixed the issue for me. Maybe it would be worth adding a note to the documentation about this in the meantime (especially for Python 2)? -- ___ Python tracker

[issue12739] read stuck with multithreading and simultaneous subprocess.Popen

2014-06-09 Thread Geoffrey Bache
Geoffrey Bache added the comment: Just ran into this on Python 2.6 also. -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue12739> ___ ___

[issue12739] read stuck with multithreading and simultaneous subprocess.Popen

2014-06-09 Thread Geoffrey Bache
Changes by Geoffrey Bache : -- nosy: +gjb1002 ___ Python tracker <http://bugs.python.org/issue12739> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14418] Document differences in SocketServer between Python 2.6 and 2.7

2012-03-26 Thread Geoffrey Bache
New submission from Geoffrey Bache : Here I'm referring to the section about RequestHandler objects under the SocketServer page. http://docs.python.org/release/2.7.2/library/socketserver.html#requesthandler-objects This appears to be the same in Python 2.6 and Python 2.7. But the ob

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-21 Thread Geoffrey Bache
Geoffrey Bache added the comment: Thanks. I'm not sure what you've written about the "-u" flag is correct though currently. From experimenting I believe it changes buffering of stdout and stderr to line-buffering also when directed to file, i.e. it does affect the b

[issue13601] sys.stderr should always be line-buffered

2011-12-19 Thread Geoffrey Bache
Geoffrey Bache added the comment: I think we all agree line-buffering is sufficient, so I change the title. -- title: sys.stderr should be unbuffered (or always line-buffered) -> sys.stderr should always be line-buffered ___ Python tracker &l

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-19 Thread Geoffrey Bache
Geoffrey Bache added the comment: The changes are good as far as they go, but they only affect the documentation of sys.stderr and sys.stdout. I also suggested changes to the documentation of the "-u" flag, and to "What's New in Python 3.0", can

[issue13601] sys.stderr should be unbuffered (or always line-buffered)

2011-12-19 Thread Geoffrey Bache
Geoffrey Bache added the comment: > I'm hesitant to make it line-buffered by default when directed to a > file, since this could significantly slow down a program that for some > reason produces super-voluminous output (e.g. when running a program > with heavy debug loggin

[issue13601] sys.stderr should be unbuffered (or always line-buffered)

2011-12-15 Thread Geoffrey Bache
Changes by Geoffrey Bache : -- nosy: +gjb1002 ___ Python tracker <http://bugs.python.org/issue13601> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-14 Thread Geoffrey Bache
Geoffrey Bache added the comment: Ooops, seems like I just ran into a bug in the bug tracker too, it seems to have backed out other people's changes. Restoring them... -- components: +IO nosy: +benjamin.peterson, pitrou, pjenvey, stutzbach versions: -Python 3.1, Pytho

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-14 Thread Geoffrey Bache
Geoffrey Bache added the comment: I would certainly be in favour of restoring the python 2.x behaviour, at least where standard error is concerned. When writing Python programs, it's important to see exceptions immediately, and not lose them entirely in some circumstances. I reported th

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-13 Thread Geoffrey Bache
New submission from Geoffrey Bache : The default buffering of standard output and standard error has changed in Python 3.x with respect to Python 2.x, and I have been unable to find decent documentation of either the current behaviour, or the change. (See also http://groups.google.com/group

[issue13076] Bad links to 'time' in datetime documentation

2011-09-30 Thread Geoffrey Bache
Changes by Geoffrey Bache : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker <http://bugs.python.org/issu

[issue13076] Bad links to 'time' in datetime documentation

2011-09-30 Thread Geoffrey Bache
New submission from Geoffrey Bache : Reading through the datetime module documentation, various places that refer to "datetime.time" objects are in fact links to the "time" module. They should refer to the appropriate section on the same page. -- messages:

[issue13074] Improve documentation of locale encoding functions

2011-09-30 Thread Geoffrey Bache
New submission from Geoffrey Bache : The locale module provides locale.getdefaultlocale and locale.getpreferredencoding. The encodings returned by each are generally subtly different ('ISO8859-1' vs 'ISO-8859-1'), but the difference between these methods is not expla

[issue10927] Allow universal line endings in filecmp module

2011-01-17 Thread Geoffrey Bache
New submission from Geoffrey Bache : It would be useful to compare the contents of two files while not caring what platform they were produced on, perhaps a universal_line_endings parameter to e.g. filecmp.cmp and possibly other methods. At the moment opening the files with "rb" is

[issue10374] setup.py caches outdated scripts in the build tree

2010-11-09 Thread Geoffrey Bache
New submission from Geoffrey Bache : I have the following setup.py script: #!/usr/bin/env python from distutils.core import setup scripts=["hello.py"] setup(scripts=scripts) I have two different python installations (using virtualenv) where I wish to install this program. So I

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-30 Thread Geoffrey Bache
Geoffrey Bache added the comment: Thanks for the tips, looks like we have the basis for a solid workaround here. Perhaps that could be encapsulated and added as sys.raw_argv or something in future? -- ___ Python tracker <http://bugs.python.

[issue9943] TypeError message became less helpful in Python 2.7

2010-09-27 Thread Geoffrey Bache
Geoffrey Bache added the comment: I agree with Nick :) Though I'd say fixing a regression should take priority over further enhancing the messages. -- ___ Python tracker <http://bugs.python.org/i

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-27 Thread Geoffrey Bache
Geoffrey Bache added the comment: Interesting. Any idea if something similar is possible on Linux? -- ___ Python tracker <http://bugs.python.org/issue2

[issue2972] arguments and default path not set in site.py and sitecustomize.py

2010-09-27 Thread Geoffrey Bache
Geoffrey Bache added the comment: I also just ran into this. Is it likely that an enhancement request to provide access to the "raw" command line, as requested by the previous commenter, would be accepted? It's sometimes useful to have some idea about what kind of Python p

[issue9943] TypeError message became less helpful in Python 2.7

2010-09-25 Thread Geoffrey Bache
Geoffrey Bache added the comment: I think the unhelpful part is mostly that it does not distinguish between argument types any more when the distinction is important in this context. In fact, it could be argued that what it said isn't even true: f() takes exactly 0 arguments (2 give

[issue9943] TypeError message became less helpful in Python 2.7

2010-09-24 Thread Geoffrey Bache
New submission from Geoffrey Bache : Consider the following code: ### keywords.py def f(**kw): print arg, kw f("hello", keyword=True) and compare the behaviour in Python 2.6 and Python 2.7: $ python keywords.py Traceback (most recent call last): File "keywords.py"

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2010-08-24 Thread Geoffrey Bache
Changes by Geoffrey Bache : -- nosy: +gjb1002 ___ Python tracker <http://bugs.python.org/issue1820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2010-07-05 Thread Geoffrey Bache
Changes by Geoffrey Bache : -- nosy: +gjb1002 ___ Python tracker <http://bugs.python.org/issue2118> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4057] Popen(..., cwd=...) does not set PWD environment variable

2009-11-30 Thread Geoffrey Bache
Geoffrey Bache added the comment: I tried that and it didn't work, though not for this reason. I'm also trying to read the output from the subprocess via a pipe and that wasn't being collected for some reason. I didn't really track down why so far, if it makes or breaks

[issue4057] Popen(..., cwd=...) does not set PWD environment variable

2009-11-27 Thread Geoffrey Bache
Geoffrey Bache added the comment: You misunderstand: I am not reading $PWD. I need to call a C program as a subprocess, which is written by a third party and which determines its current working directory by reading $PWD. os.chdir will not have any effect on this script, nor will passing &quo

[issue4057] Popen(..., cwd=...) does not set PWD environment variable

2009-11-26 Thread Geoffrey Bache
Geoffrey Bache added the comment: I can see your point, though I think particularly in this case it's (unfortunately) fairly common that scripts on POSIX platforms read $PWD instead of finding the current working directory properly. I'm probably not the first person that has had

[issue4057] Popen(..., cwd=...) does not set PWD environment variable

2009-11-26 Thread Geoffrey Bache
Changes by Geoffrey Bache : -- nosy: +gjb1002 ___ Python tracker <http://bugs.python.org/issue4057> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2986] difflib.SequenceMatcher not matching long sequences

2009-10-01 Thread Geoffrey Bache
Changes by Geoffrey Bache : -- nosy: +gjb1002 ___ Python tracker <http://bugs.python.org/issue2986> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6136] Make logging configuration files easier to use

2009-06-09 Thread Geoffrey Bache
Geoffrey Bache added the comment: My comp.lang.python thread is here: http://groups.google.com/group/comp.lang.python/browse_thread/thread/a0c35c3c9ad210a4 It was met by deafening silence though. I don't see why a simple format would need to be customer-specific. log4py's isn&#x

[issue6136] Make logging configuration files easier to use

2009-06-07 Thread Geoffrey Bache
Geoffrey Bache added the comment: If it was never intended for end users, then perhaps you could rename this request as "provide an end-user-friendly log configuration format" (that would live alongside the current one). It's hardly unusual that users should be able to troub

[issue6136] Make logging configuration files easier to use

2009-06-05 Thread Geoffrey Bache
Geoffrey Bache added the comment: Who said anything about not supporting users who want the hierarchy? I'm talking about making "qualname" optional, not removing it entirely! I even supplied the entirety of the code (all 4 lines of it) to be clear what I meant a few com

[issue6136] Make logging configuration files easier to use

2009-06-05 Thread Geoffrey Bache
Geoffrey Bache added the comment: OK, I hadn't seen the "delay" parameter until now. I guess this is new in Python 2.6? Good that there is already a way to avoid lots of empty files, though it'll be a while before I can assume Python 2.6 unfortunately... that probably re

[issue6136] Make logging configuration files easier to use

2009-06-03 Thread Geoffrey Bache
Geoffrey Bache added the comment: OK, I'll take point (c) further on comp.lang.python. As for the others, it would be useful if you could at least understand my points. a) I'm aware that there isn't necessarily a one-to-one correspondence between loggers and files, don&#

[issue6136] Make logging configuration files easier to use

2009-06-02 Thread Geoffrey Bache
Geoffrey Bache added the comment: a) What is the point of opening files that will never be written to and sockets that will never be used? A large application might have a great many loggers for debugging which are off by default, and this means you have to either put up with lots of empty

[issue6136] Make logging configuration files easier to use

2009-05-28 Thread Geoffrey Bache
New submission from Geoffrey Bache : Recently tried to use the logging configuration file format as understood by logging.config.fileConfig() and found it very unwieldy for normal usage. I feel it needs to "scale down" better. Some thoughts: a) It creates handlers whether they'r

[issue957650] Fix for bugs relating to ntpath.expanduser()

2009-04-30 Thread Geoffrey Bache
Geoffrey Bache added the comment: In fact, wouldn't a very simple fix be to not return paths that don't exist? That would probably catch 90% of the cases. -- ___ Python tracker <http://bugs.python.or

[issue957650] Fix for bugs relating to ntpath.expanduser()

2009-04-30 Thread Geoffrey Bache
Geoffrey Bache added the comment: Just ran into this myself, and would agree with Christian's comments. On my system, my home directory is a mounted network drive, hence "H:\". It was a bit of a surprise when os.path.expanduser("~fred") returned "H:\\fred"

[issue1748960] os.path.expandvars: expand string without modifying the environment

2009-04-06 Thread Geoffrey Bache
Geoffrey Bache added the comment: Thanks, didn't know about that feature. -- ___ Python tracker <http://bugs.python.org/issue1748960> ___ ___ Python-bugs-l

[issue648658] xmlrpc can't do proxied HTTP

2008-08-22 Thread Geoffrey Bache
Geoffrey Bache <[EMAIL PROTECTED]> added the comment: Well, strictly speaking, yes. It just feels like a rather major omission (when Python can do xmlrpc and handle proxies you hope it will handle the combination). "Desperate" doesn't really have a timeline, strangely enoug

[issue648658] xmlrpc can't do proxied HTTP

2008-08-19 Thread Geoffrey Bache
Geoffrey Bache <[EMAIL PROTECTED]> added the comment: Somebody else here in desperate need of this bug being fixed, both to talk to bazaar and bugzilla... -- nosy: +gjb1002 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-06-26 Thread Geoffrey Bache
Geoffrey Bache <[EMAIL PROTECTED]> added the comment: A note on workarounds, the garbage collector seems to release the handles when the function exits, so removing the file in a caller works for me. However Tim's proposed fix with os.close d

[issue3210] subprocess.Popen does not release process handles if process cannot be started

2008-06-26 Thread Geoffrey Bache
New submission from Geoffrey Bache <[EMAIL PROTECTED]>: Run the following code on Windows: import subprocess, os file = open("filename", "w") try: proc = subprocess.Popen("nosuchprogram", stdout=file) except OSError: file.close() os.remove(&quo

[issue3137] Python doesn't handle SIGINT well if it arrives during interpreter startup

2008-06-19 Thread Geoffrey Bache
New submission from Geoffrey Bache <[EMAIL PROTECTED]>: If a python script receives SIGINT while the interpreter is starting up, it's possible to get the message "import site failed; use -v for traceback" printed on standard error and for execution to proceed. It also seems