[issue43312] Interface to select preferred "user" or "home" sysconfig scheme for an environment

2021-03-11 Thread Piotr Dobrogost


Change by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 
<https://bugs.python.org/issue43312>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2020-10-13 Thread Piotr Dobrogost


Piotr Dobrogost  added the comment:

I strongly agree with arguments given by the original poster. Stackoverflow's 
questions cited show the functionality of disabling logger is something people 
are looking for.
Disabling logger by setting high enough level seems to be a workaround at best 
(sys.maxsize - 
 really?). More in the spirit of an on/off toggle is a filter blocking all 
records but this clearly feels like another workaround for something which 
should have been (and in fact already is, albeit unofficially) a simple boolean 
flag.
Not hiding "disabled" property behind underscore might have been a good thing 
after all. Making it official and supported by dictConfig() would remove 
clearly expressed pain point of users of the logging module.

--

___
Python tracker 
<https://bugs.python.org/issue36318>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2020-08-31 Thread Piotr Dobrogost


Change by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 
<https://bugs.python.org/issue36318>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5654] Add C hook in PyDict_SetItem for debuggers

2020-04-07 Thread Piotr Dobrogost


Change by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 
<https://bugs.python.org/issue5654>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24132] Direct sub-classing of pathlib.Path

2020-04-03 Thread Piotr Dobrogost


Change by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 
<https://bugs.python.org/issue24132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2517] Error when printing an exception containing a Unicode string

2019-01-10 Thread Piotr Dobrogost

Piotr Dobrogost  added the comment:

Benjamin Peterson in comment https://bugs.python.org/issue2517#msg64771 wrote:

"That is because Python encodes it's error messages as ASCII by default…"

Could somebody please point where in the source code of Python 2 this happens?

--

___
Python tracker 
<https://bugs.python.org/issue2517>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2517] Error when printing an exception containing a Unicode string

2019-01-08 Thread Piotr Dobrogost


Change by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 
<https://bugs.python.org/issue2517>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22852] urllib.parse wrongly strips empty #fragment, ?query, //netloc

2018-07-31 Thread Piotr Dobrogost


Change by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 
<https://bugs.python.org/issue22852>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-31 Thread Piotr Dobrogost


Change by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 
<https://bugs.python.org/issue34276>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33374] generate-posix-vars failed when building Python 2.7.14 on Linux

2018-04-27 Thread Piotr Dobrogost

New submission from Piotr Dobrogost <p...@bugs.python.dobrogost.net>:

When building Python 2.7.14 on Fedora 28 I get the following error:

[piotr@demon]/tmp/Python-2.7.14% make
(…)
./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
 echo "generate-posix-vars failed" ; \
 rm -f ./pybuilddir.txt ; \
 exit 1 ; \
fi
/bin/sh: line 5: 25857 Segmentation fault  (core dumped) ./python -E -S -m 
sysconfig --generate-posix-vars
generate-posix-vars failed
make[2]: *** [Makefile:514: pybuilddir.txt] Error 1
make[2]: Leaving directory '/tmp/Python-2.7.14'
make[1]: *** [Makefile:444: build_all_generate_profile] Error 2
make[1]: Leaving directory '/tmp/Python-2.7.14'
make: *** [Makefile:429: profile-opt] Error 2


Running problematic command alone I get this:

[piotr@demon]/tmp/Python-2.7.14% ./python -E -S -m sysconfig 
--generate-posix-vars
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
zsh: segmentation fault (core dumped)  ./python -E -S -m sysconfig 
--generate-posix-vars

I found somehow related https://bugs.python.org/issue21166 with excellent 
explanation by Ned Deily (https://bugs.python.org/msg225217) but that issue is 
supposedly fixed.

I have Python 3.6.5 installed at /usr/bin/python3 and Python 2.7.14 installed 
at /usr/bin/python{2} – both from RPM packages.

I have Python 2.7.13 installed at /usr/local/bin/python{2} – built from source.

Running `which python` returns "/usr/local/bin/python".

Trying to isolate configuration and build by prefixing commands with
PATH=/usr/bin:/usr/sbin LIBRARY_PATH= LD_LIBRARY_PATH= (…)
does not help.

--
components: Build
messages: 315846
nosy: ned.deily, piotr.dobrogost
priority: normal
severity: normal
status: open
title: generate-posix-vars failed when building Python 2.7.14 on Linux
versions: Python 2.7

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33374>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1553375] Add traceback.print_full_exception()

2017-11-02 Thread Piotr Dobrogost

Change by Piotr Dobrogost <p...@bugs.python.dobrogost.net>:


--
nosy: +piotr.dobrogost

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue1553375>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2017-02-08 Thread Piotr Dobrogost

Changes by Piotr Dobrogost <p...@bugs.python.dobrogost.net>:


--
nosy: +piotr.dobrogost

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26388>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29379] Custom handlers not used when passing "context" argument to urllib2.urlopen()

2017-01-26 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

When urllib2.urlopen() is passed "context" argument the new opener is being 
built (https://hg.python.org/cpython/file/a06454b1afa1/Lib/urllib2.py#l147) and 
used instead custom opener which might had been already installed with 
urllib2.install_opener(). This might lead to problems with proxies if custom 
ProxyHandler was used in custom opener – see 
http://stackoverflow.com/q/36089694/95735 as an example.

--
components: Library (Lib)
messages: 286325
nosy: piotr.dobrogost
priority: normal
severity: normal
status: open
title: Custom handlers not used when passing "context" argument to 
urllib2.urlopen()
type: behavior
versions: Python 2.7

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29379>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16285] Update urllib quoting to RFC 3986

2017-01-20 Thread Piotr Dobrogost

Changes by Piotr Dobrogost <p...@bugs.python.dobrogost.net>:


--
nosy: +piotr.dobrogost

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16285>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23434] RFC6266 support (Content-Disposition for HTTP)

2016-04-09 Thread Piotr Dobrogost

Changes by Piotr Dobrogost <p...@bugs.python.dobrogost.net>:


--
nosy: +piotr.dobrogost

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23434>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9325] Add an option to pdb/trace/profile to run library module as a script

2016-02-22 Thread Piotr Dobrogost

Changes by Piotr Dobrogost <p...@bugs.python.dobrogost.net>:


--
nosy: +piotr.dobrogost

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9325>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21536] extension built with a shared python cannot be loaded with a static python

2016-02-07 Thread Piotr Dobrogost

Changes by Piotr Dobrogost <p...@bugs.python.dobrogost.net>:


--
nosy: +piotr.dobrogost

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21536>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15873] datetime: add ability to parse RFC 3339 dates and times

2015-12-07 Thread Piotr Dobrogost

Changes by Piotr Dobrogost <p...@bugs.python.dobrogost.net>:


--
nosy: +piotr.dobrogost

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15873>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18857] urlencode of a None value uses the string 'None'

2015-06-25 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

This problem came out in the bug Cannot make URL query string with a parameter 
without a value (https://github.com/kennethreitz/requests/issues/2651) raised 
in urllib3 project (which itself is being used by Requests library mentioned in 
this bug).

--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18857
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9427] logging.error('...', exc_info=True) should display upper frames, too

2015-06-09 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9427
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22269] Resolve distutils option conflicts with priorities

2015-04-16 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22269
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-04-06 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23246
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23841] py34 OrderedDict is using weakref for root reference

2015-04-01 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23841
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21861] io class name are hardcoded in reprs

2015-03-24 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21861
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23754] Add a new os.read_into() function to avoid memory copies

2015-03-23 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23754
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23752] Cleanup io.FileIO

2015-03-23 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23752
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22003] BytesIO copy-on-write

2015-03-04 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

 This new patch abandons the buffer interface and specializes for Bytes per 
 the comments on this issue.

Why does it abandon buffer interface? Because of the following?

 Thanks for digging here. As much as I'd love to follow this interpretation, 
 it simply doesn't match existing buffer implementations, including within the 
 standard library.

Shouldn't existing buffer implementations be fixed then and this feature made 
to use buffer interface instead of specialize for Bytes? If so is there at 
least any information on this in the comments so that one wouldn't wonder why 
there is specialization instead of relaying on buffer interface?

--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22003
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23576] HTTPS reads can block when content length not available and timeout set.

2015-03-03 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23576
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23536] Add explicit information on config file format not supporting filters

2015-02-27 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

It would be helpful to make it clear in section Configuration file format 
that it's not possible to configure filters through configuration file as 
opposed to dictionary passed to dictConfig() method.
I found this clearly stated in Pyramid docs at 
http://docs.pylonsproject.org/docs/pyramid/en/latest/narr/logging.html – For 
more advanced filtering, the logging module provides a logging.Filter object; 
however it cannot be used directly from the configuration file.

--
assignee: docs@python
components: Documentation
messages: 236741
nosy: docs@python, piotr.dobrogost, vinay.sajip
priority: normal
severity: normal
status: open
title: Add explicit information on config file format not supporting filters
type: enhancement
versions: Python 2.7, Python 3.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23536
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14965] super() and property inheritance behavior

2015-02-04 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14965
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22889] set a timeout for DNS lookups

2015-01-23 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22889
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-01-15 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22028
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-12-18 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6792
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1294959] Problems with /usr/lib64 builds.

2014-11-19 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294959
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2943] Distutils should generate a better error message when the SDK is not installed

2014-09-11 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2943
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2014-08-28 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@Rotkraut

The truth is http in stdlib is dead.
Your best option is to use 3rd party libs like requests or urllib3.
Authors of these libs plan to get rid of httplib entirely; see Moving away 
from httplib (https://github.com/shazow/urllib3/issues/58)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12319
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18885] handle EINTR in the stdlib

2014-07-30 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18885
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22007] sys.stdout.write on Python 2.7 is not EINTR safe

2014-07-30 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@hypo
Is there any reason you keep this PEP secret :) by not mentioning it on bug 
18885?

--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22007
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21859] Add Python implementation of FileIO

2014-07-10 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21859
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17984] io and _pyio modules require the _io module

2014-07-10 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17984
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9861] subprocess module changed exposed attributes

2014-07-07 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

The statement in comment http://bugs.python.org/issue9861#msg133051 seems to be 
wrong as changes between versions 2.5 and 2.6 are not security only fixes.
Changing visibility of module's public attributes should at least be documented 
thus closing this bug without pointing to such a documentation is not ok.
People do have problem with this as can be seen in the following questions:
Cannot find STARTF_USESHOWWINDOW in python 
(http://stackoverflow.com/q/5485668/95735)
Module subprocess has no attribute 'STARTF_USESHOWWINDOW' 
(http://stackoverflow.com/q/4703983/95735)
Remark to the answer to the Cross-platform subprocess with hidden window 
question (http://stackoverflow.com/a/3443174/95735)

--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9861
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1298835] Add a vendor-packages directory for system-supplied modules

2014-03-25 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1298835
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21026] Document sitecustomize.py problems with pythonw

2014-03-23 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21026
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10835] sys.executable default and altinstall

2014-03-11 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

 Garbage in, garbage out.

In this case – exec -a '' – yes, but in general not so – see Mismatch between 
sys.executable and sys.version in Python question at SO 
(http://stackoverflow.com/q/22236727/95735).

As to not guessing Victor STINNER in comment 
http://bugs.python.org/issue7774#msg100849 wrote this:


There are different methods to get the real program name, but no one is 
portable. As flox wrote, we can do a best effort to provide a valid 
sys.executable. Extract of stackoverflow link:

 * Mac OS X: _NSGetExecutablePath() (man 3 dyld)
 * Linux: readlink /proc/self/exe
 * Solaris: getexecname()
 * FreeBSD: sysctl CTL_KERN KERN_PROC KERN_PROC_PATHNAME -1
 * BSD with procfs: readlink /proc/curproc/file
 * Windows: GetModuleFileName() with hModule = NULL


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10835
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-03-07 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17128
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-02-20 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7231
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19744] test_venv fails if SSL/TLS is not available

2013-12-03 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19744
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19279
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12939] Add new io.FileIO using the native Windows API

2013-10-10 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

I guess extracting Richard's patch to a package and placing it on PyPI would be 
a good move. I recalled reading this bug after I saw Does Python IO allow 
opened file to be deleted/renamed on Windows? question on Stackoverflow 
(http://stackoverflow.com/q/19280836/95735)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12939
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10049] Add a no-op (null) context manager to contextlib

2013-10-04 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10049
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1673203] add identity function

2013-10-04 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1673203
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11011] More functools functions

2013-10-04 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11011
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-09-12 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8713
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4749] Issue with RotatingFileHandler logging handler on Windows

2013-08-14 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4749
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12939] Add new io.FileIO using the native Windows API

2013-08-13 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12939
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13238] Add shell command helpers to subprocess module

2013-08-04 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13238
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2013-08-04 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

Maybe the solution is to make what I was trying to do easier without
fooling with the shell instead of playing the fool's game of trying to
improve the ability to deal with the shell so we can pass things
through it unnecessarily.

You are too harsh for yourself :) We should be able to make use of shell easily 
the same way it's possible in other languages like Perl or Ruby.

It sure would be nice on Windows to have an equivalent of
list2cmdline() that works for the shell.

I agree. See issue 13238 for a list of libraries which make is easier to use 
shell from Python.

--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1300
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9148] os.execve puts process to background on windows

2013-08-04 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9148] os.execve puts process to background on windows

2013-08-04 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

This is unexpected and makes people wonder what's going on. See 
http://stackoverflow.com/q/7004687/95735 and 
http://stackoverflow.com/q/7264571/95735.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9148
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18649] list2cmdline function in subprocess module handles \ sequence wrong

2013-08-04 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

I think you're missing the point. The implementation is wrong as it does not do 
what documentation says which is A double quotation mark preceded by a 
backslash is interpreted as a literal double quotation mark. How the output of 
list2cmdline interacts with the cmd.exe is another issue (It just happens here 
that if implementation of list2cmdline were in line with its documentation then 
there wouldn't be any subsequent problem with cmd.exe). Also issue 1300 is 
about escaping a pipe character (|) on the basis of how it's treated by cmd.exe 
and does not even refer to the docstring of list2cmdline function.

--
resolution: invalid - 
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18649
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18649] list2cmdline function in subprocess module handles \ sequence wrong

2013-08-04 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18649
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18649] list2cmdline function in subprocess module handles \ sequence wrong

2013-08-04 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

The docstring starts with this statement
Translate a sequence of arguments into a command line string, using the same 
rules as the MS C runtime:
which clearly makes the impression that function list2cmdline uses the same 
rules as the MS C runtime. However after reading comments in this issue I 
believe I misunderstood the true meaning as the docstring is highly misleading. 
According to your comments, the word using was meant to pertain to the 
command line string (which is the output of the list2cmdline function) and 
_not_ to the translation phase itself. This makes sense taking into account the 
flow of events which is; a list of arguments - list2cmdline - CreateProcess.

--
components: +Library (Lib) -Benchmarks
resolution: invalid - 
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18649
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18649] list2cmdline function in subprocess module handles \ sequence wrong

2013-08-04 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

Sure, something like
The purpose of this function is to construct a string which will be later 
interpreted by MS C runtime as denoting a sequence of arguments. Because of 
this the string is built in such a way as to preserve the original characters 
when interpreted by MS C runtime. For example a double quotation mark is 
preceded by the backslash so that MS C runtime would translate this back to the 
original double quotation mark according to its rules which are given below as 
a reference:

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18649
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18649] list2cmdline function in subprocess module handles \ sequence wrong

2013-08-03 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

According to the docstring of list2cmdline function in subprocess module the 
sequence of a backslash followed by a double quote mark should denote double 
quote mark in the output string. However it's not the case

Python 2.7.4 (default, Apr  6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on 
win32
Type help, copyright, credits or license for more information.
 import subprocess
 print subprocess.list2cmdline(r'\1|2\')
\ \ 1 | 2 \ \

The same behavior is in Python 3.3.1.

See On Windows, how can I protect arguments to shell scripts using Python 2.7 
subprocess?(http://stackoverflow.com/q/4970194/95735) question on Stack 
Overflow.

--
components: Library (Lib)
messages: 194307
nosy: Arve.Knudsen, exarkun, piotr.dobrogost, r.david.murray
priority: normal
severity: normal
status: open
title: list2cmdline function in subprocess module handles \ sequence wrong
versions: Python 2.7, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18649
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18476] No way to pass custom arguments for loggers and formatters.

2013-07-25 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
status: pending - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18476
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18476] No way to pass custom arguments for loggers and formatters.

2013-07-16 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

It seems there's no way to pass custom arguments for loggers 
(http://hg.python.org/cpython/file/d9893d13c628/Lib/logging/__init__.py#l) 
and formatters 
(http://hg.python.org/cpython/file/d9893d13c628/Lib/logging/config.py#l117) the 
same way they are being passed to handlers 
(http://hg.python.org/cpython/file/d9893d13c628/Lib/logging/config.py#l139).

The problem came out when we tried to create base formatter which would read 
prefix from configuration of formatter to be prepended to all subsequent lines 
of every multi line message.

--
components: Library (Lib)
messages: 193172
nosy: piotr.dobrogost, vinay.sajip
priority: normal
severity: normal
status: open
title: No way to pass custom arguments for loggers and formatters.
type: enhancement
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18476
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17010] Windows launcher ignores active virtual environment

2013-06-13 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@Vinay
Is there any discussion which lead to this change?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17010
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17871] Wrong signature of TextTestRunner's init function

2013-04-29 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

TextTestRunner's init as of 3.3.1 has 
(http://hg.python.org/cpython/file/d9893d13c628/Lib/unittest/runner.py#l128) 
the following parameters:
stream, descriptions, verbosity, failfast, buffer, resultclass, warnings 
whereas docs 
(http://docs.python.org/3.3/library/unittest.html?highlight=unittest#loading-and-running-tests)
 show only the following parameters:
stream, descriptions, verbosity, runnerclass, warnings

'Failfast' and 'buffer' parameters are missing in the docs and there's 
'runnerclass' parameter instead of 'resultclass' parameter.

--
assignee: docs@python
components: Documentation
messages: 188104
nosy: docs@python, ezio.melotti, michael.foord, piotr.dobrogost
priority: normal
severity: normal
status: open
title: Wrong signature of TextTestRunner's init function
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15281] pyvenv --symlinks option is a no-op?

2013-04-15 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

It's simpler but is it better this way? I doubt. I think we should take 
advantage of symlinks whenever we can and only fallback to copying if they are 
not available.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15281
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17743] Use extended syntax of `set` command in activate.bat/deactivate.bat batch files.

2013-04-15 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

This makes it possible to handle paths/usernames with special characters - see 
https://github.com/pypa/virtualenv/pull/352

--
components: Library (Lib)
messages: 187037
nosy: piotr.dobrogost, vinay.sajip
priority: normal
severity: normal
status: open
title: Use extended syntax of `set` command in activate.bat/deactivate.bat 
batch files.
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17743
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17744] Unset VIRTUAL_ENV environment variable in deactivate.bat

2013-04-15 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

activate.bat sets VIRTUAL_ENV environment variable. This variable is treated as 
a sign that virtualenv is active. For this reason deactivate.bat should unset 
this variable. See https://github.com/pypa/virtualenv/pull/364

--
components: Library (Lib)
messages: 187038
nosy: piotr.dobrogost, vinay.sajip
priority: normal
severity: normal
status: open
title: Unset VIRTUAL_ENV environment variable in deactivate.bat
type: behavior
versions: Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17744
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17480] pyvenv should be installed someplace more obvious on Windows

2013-04-14 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

I've just stumbled upon this issue after asking Where is pyvenv script in 
Python 3 on Windows installed? question at 
http://stackoverflow.com/q/1598/95735

Perhaps Windows installs should include (alongside Python.exe) a pyvenv.exe 
that invokes venv for the Python environment in which it's executed.

I think it's the right thing to do.

--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17480
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17010] Windows launcher ignores active virtual environment

2013-04-14 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

Issue titled Python Launcher and virtualenv? at 
https://bitbucket.org/vinay.sajip/pylauncher/issue/15/ is related.

--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17010
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15281] pyvenv --symlinks option is a no-op?

2013-04-14 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

 Following discussions on python-dev, the default is always to symlink,
 except on Windows (no support for true symlinks on XP and older) and

In this case couldn't symlinks be automatically used on Windows Vista or newer?

--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15281
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2013-03-14 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

 I don't understand whether you are proposing to include the patch into Python 
 as-is;

I think Richard is well aware of the constraints you specify and current patch 
was meant as a proof of concept; to show that all tests pass with such a 
change. Of course that's only my belief and we shall see what Richard has to 
say.

 That said, having maximum sharing when opnening files sounds fine to me.

Good to hear. However I started to wonder if we are ready for all consequences 
of this. For example taking into account what Richard noted in 
http://bugs.python.org/issue14243, specifically:

 Unfortunately using O_TEMPORARY is the only way allowed by msvcrt to
 get FILE_SHARE_DELETE, even though it also has the orthogonal effect
 of unlinking the file when all handles are closed.

forces programs which would like to open a file being opened at the same time 
by Python code (by means of built-in open() or os.open() with default 
arguments) to either use O_TEMPORARY when using msvcrt or to go low level and 
use CreateFile() Win32 API function with FILE_SHARE_DELETE flag. Are we ok with 
it?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15244
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2013-03-13 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

Having the same semantics on both Unix and Windows with regard to validity of 
file handle after a file was deleted would be a very nice to have. How could we 
progress this?

I'm adding Martin and Antoine to cc list.

--
nosy: +loewis, pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15244
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2013-03-13 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@sbt

Thanks for info. Also you mentioned looking at c:/Program Files (x86)/Microsoft 
Visual Studio 10.0/VC/crt/src/open.c What version of Visual Studio/SDK this 
file is available in?

Also I'd like to point out that this problem came up at Stack Overflow in 
question How to create a temporary file that can be read by a subprocess? 
(http://stackoverflow.com/q/15169101/95735)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14243
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2013-03-13 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +dabrahams, ncoghlan

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15244
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2013-03-12 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@sbt

 (...) and it seems that on Windows open() is more or less implemented
 as a wrapper of sopen(..., ..., SH_DENYNO, ...).

 So the only reason that trying to reopen a NamedTemporaryFile fails on
 Windows is because when we reopen we need to use O_TEMPORARY.

Could you elaborate on this? What's the relation between SH_DENYNO argument to 
sopen() and O_TEMPORARY flag?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14243
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2013-03-06 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15244
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17322] urllib.request add_header() currently allows trailing spaces (and other weird stuff)

2013-03-06 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17322
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2013-03-05 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14243
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2013-02-20 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

I could try to write a patch with some help if there was any chance it might be 
accepted. Where do I start?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17164
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17164] MozillaCookieJar does not handle session cookies

2013-02-08 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

It seems there's no information on how should session cookies be stored in the 
Netscape/Mozilla's cookies.txt file with regard to expiry time - see 
http://www.cookiecentral.com/faq/#3.5 Maybe Netscape has not been saving such 
cookies at all thus this lack of specification? Nevertheless, both wget and 
curl use 0 as expiry time to denote session cookies; it works both when reading 
cookies from file and writing to file. However Python's MozillaCookieJar's 
class uses empty string for the same purpose which makes it incompatible both 
with wget and curl - see 
http://hg.python.org/cpython/file/bd8afb90ebf2/Lib/http/cookiejar.py#l2027

I propose to make a change in implementation of MozillaCookieJar class and 
treat cookies with 0 set as expiry time as session cookies both when reading 
from a file and writing to a file.

Motivation for this bug report comes from the following question on Stack 
Overflow - http://stackoverflow.com/q/14742899/95735

--
components: Library (Lib)
messages: 181703
nosy: piotr.dobrogost
priority: normal
severity: normal
status: open
title: MozillaCookieJar does not handle session cookies
type: behavior
versions: Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17164
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4773] HTTPMessage not documented and has inconsistent API across Py2/Py3

2013-01-08 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@joel.verhagen

Should HTTPResponse.getheaders() comma-separate the values (...)

No, it should not. RFC 2616 states:

Multiple message-header fields with the same field-name MAY be present in a 
message if and only if the entire field-value for that header field is defined 
as a comma-separated list [i.e., #(values)].

As field-values for some header fields ('Set-Cookie' being an example) are not 
defined as a comma-separated list such fields must not be merged.

Side note:
RFC 2616 is very soon to be obsoleted by the new RFC from httpbin working 
group. However, in the current/newest draft 
(http://trac.tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-21#section-3.2)
 although wording is different the sense is the same.

--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4773
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4773] HTTPMessage not documented and has inconsistent API across Py2/Py3

2013-01-08 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

...continuing my previous comment

Joining headers with the same name by ,  by HTTPResponse.getheaders() in 
Python 2.7 is wrong and there's a bug for this - see 
http://bugs.python.org/issue1660009

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4773
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1660009] continuing problem with httplib multiple set-cookie headers

2013-01-08 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@jjlee

What you said re commas in 2007 was wrong and still is. Joining (with commas) 
multiple header field values having the same field name unconditionally 
(without knowing it's safe) was not allowed by RFC 2616 and still is not 
allowed by the upcoming new RFC. See my comment at 
http://bugs.python.org/issue4773#msg179377

This was fixed in Python 3 - see http://bugs.python.org/issue4773#msg154781 As 
this is backward incompatible change (and I guess weather this is private api 
or not does not matter here) and there's working alternative (although it's 
private api) nothing will be done here.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1660009
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8109] Server-side support for TLS Server Name Indication extension

2012-11-23 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8109
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3244] multipart/form-data encoding

2012-11-22 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-11-14 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

 But I think Piotr's use case is when you download some new library (...)

Yes, indeed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16312
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-28 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@Vinay
I don't see other use cases but maybe guys behind py.test, where there is such 
a feature could come up with other use cases.
The solution with passing config dict in a new command line parameter seems to 
be enough as long as logging is concerned. However it's not as versatile as 
custom initialization code of course.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16312
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-27 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@Chris

The example given by Holger Krekel (http://stackoverflow.com/a/13094042/95735) 
showing how it can be done with pytest is exactly the thing I had in mind. It 
would be good to have this feature incorporated into unittest.

@Michael

I guess checking this flag must be protected by a lock in case test cases are 
run in parallel. If so wouldn't this be kind of a bottleneck? Is this flag 
necessary? Can't we just assume that initialization code had already run when 
any testcase runs?

There's interesting question how would initialization code be run in case of 
auto discovery. In the simplest form it would be run just once before all 
modules with tests are run. But it would be interesting to allow running 
initialization per test module. To support this unittest should somehow pass 
name of test module to be executed to initialization code. Alternatively there 
could be some special named init files which would be run before running test 
modules.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16312
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-24 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

When running tests bundled with a library it would be useful to be able to run 
some initialization code before tests are being run so that one can configure 
options pertaining to logging for example.

For this reason it would be useful to have a new command line option handled by 
unittest.main() for running custom Python module before running tests.

See http://stackoverflow.com/q/8607767/95735

--
components: Library (Lib)
messages: 173699
nosy: piotr.dobrogost
priority: normal
severity: normal
status: open
title: New command line option supported by unittest.main() for running 
initialization code before tests
type: enhancement
versions: Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16312
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15633] httplib.response is not closed after all data has been read

2012-10-22 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15633
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16298] httplib.HTTPResponse.read could potentially leave the socket opened forever

2012-10-22 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16298
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15633] httplib.response is not closed after all data has been read

2012-10-22 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

@Nikolaus
Issue 16298 was raised today describing what could be the cause of what you 
observe.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15633
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2012-10-10 Thread Piotr Dobrogost

Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net:


--
nosy: +piotr.dobrogost

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12319
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16131] Pylauncher is being installed in Windows system folder

2012-10-04 Thread Piotr Dobrogost

New submission from Piotr Dobrogost:

Pylauncher in Python 3.3 is being installed in Windows system folder instead of 
Program Files folder. That's against platform rules. It should be installed in 
the same folder Python is installed or in its own folder under Program Files 
folder. In the former case this folder starting from Python 3.3 is added to 
PATH, in the latter case there should be an option in installer to add 
Pylauncher's folder to PATH.

See 
https://groups.google.com/forum/?hl=enfromgroups=#!topic/comp.lang.python/-fCFFmpQ8aI

--
components: Windows
messages: 171959
nosy: piotr.dobrogost
priority: normal
severity: normal
status: open
title: Pylauncher is being installed in Windows system folder
type: behavior
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16131
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16131] Pylauncher is being installed in Windows system folder

2012-10-04 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

I read this pep. It doesn't tell why installing in Program Files and adding 
install folder to PATH wasn't chosen. Please take a look at the link I gave

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16131
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14489] repr() function link on the built-in function documentation is incorrect

2012-07-22 Thread Piotr Dobrogost

Piotr Dobrogost p...@bugs.python.dobrogost.net added the comment:

The wrong link is still at http://docs.python.org/library/functions.html

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14489
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >