Piotr Tokarski added the comment:
I think changing `(?P["\']).*?(?P=quote)` to
`(?P["\'])[^\n]*?(?P=quote)` in all regexes does the trick, doesn't it?
--
___
Python tracker
<https:
Piotr Tokarski added the comment:
Test sample:
```
import csv
from io import StringIO
def csv_text():
return StringIO("a|b\nc| 'd\ne|' f")
with csv_text() as input_file:
print('The following text is going to be parsed:')
print(input_file.read(
New submission from Piotr Tokarski :
Let's consider the following CSV content: "a|b\nc| 'd\ne|' f". The real
delimiter in this case is '|' character while ' ' is sniffed. Find verbose
example attached.
Problem lays in csv.py file in the followin
Change by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<https://bugs.python.org/issue43312>
___
___
Python-bugs-list mailing list
Unsubscribe:
Piotr Stanczyk added the comment:
Friendly ping - does the proposal sound fine?
--
___
Python tracker
<https://bugs.python.org/issue42443>
___
___
Python-bug
New submission from Piotr Kopalko :
Path('example.toml').permissions() == Permissions(owner=(READ, WRITE, EXECUTE),
group=(READ), other=(,))
--
___
Python tracker
<https://bugs.python.o
Change by Piotr Kopalko :
--
nosy: copalco
priority: normal
severity: normal
status: open
title: Add to pathlib function to check permission similar to os.access
type: enhancement
___
Python tracker
<https://bugs.python.org/issue42
Piotr Stanczyk added the comment:
Thanks Christian for looking into this, please find my responses inlined:
> * IMO it should be called after profiling and tracing hook, so non-trivial
> hooks can be profiled and traced.
Makes sense, Done.
> * It's important to define and d
New submission from Piotr Stanczyk :
For monitoring purposes we would like to have a way of registering newly
created Python threads with a runtime. For that reason we ask to add a thread
creation hook inside threading.py. There are 2 similar hooks already
(_profile_hook and _trace_hook
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
Change by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<https://bugs.python.org/issue36318>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<https://bugs.python.org/issue5654>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<https://bugs.python.org/issue24132>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jakub Piotr Cłapa :
--
pull_requests: +16994
pull_request: https://github.com/python/cpython/pull/15387
___
Python tracker
<https://bugs.python.org/issue31
Change by Jakub Piotr Cłapa :
--
keywords: +patch
pull_requests: +16599
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17090
___
Python tracker
<https://bugs.python.org/issu
New submission from Jakub Piotr Cłapa :
macOS needs to link to CoreFoundation for gettext to work. We reorder the
autoconf tests so CoreFoundation is added to LIBS earlier and the -lintl test
does not fail (which would exclude it from the final set of flags).
Btw. the whole test seems fishy
New submission from Jakub Piotr Cłapa :
On a macOS hosts the system ranlib does not understand ELF
files so using the "ranlib" command causes errors during cross-compilations.
The simplest way to fix it is to pass the RANLIB parameter provided to setup.py
through to the distutil
Piotr Karkut added the comment:
bump
--
___
Python tracker
<https://bugs.python.org/issue36053>
___
___
Python-bugs-list mailing list
Unsubscribe:
Piotr Karkut added the comment:
Bump?
--
___
Python tracker
<https://bugs.python.org/issue36053>
___
___
Python-bugs-list mailing list
Unsubscribe:
Piotr Kamoda added the comment:
Ok, now I see that naive object assumes my timezone in some cases. That's still
mind-boggling that utcfromtimestamp returns an object that shows utc hour but
when astimezone is applied it reverts without converting the hour to local
timezone.
See bel
Piotr Kamoda added the comment:
Docs state that fromtimestamp returns a naive datetime object
(https://docs.python.org/3.7/library/datetime.html#datetime.datetime.fromtimestamp)
and not utcfromtimestamp. Perhaps it needs fixing.
Additionally, astimezone fails silently, I even tried
New submission from Piotr Kamoda :
See below code:
>>> datetime.utcfromtimestamp(1557395250).astimezone(get_localzone()).strftime('%Y-%m-%d
>>> %H:%M:%S %z %Z')
'2019-05-09 09:47:30 +0200 CEST'
>>> datetime.fromtimestamp(1557395250).astimezone(ge
Piotr Karkut added the comment:
Nick: From what I've checked, it jumps in case the module is already imported.
The problem is that the original implementation is quite naive, and it's trying
to import the module before looking for it in `sys.modules` - So if the module
with a c
Piotr Karkut added the comment:
Bump
--
___
Python tracker
<https://bugs.python.org/issue36053>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Piotr Karkut :
--
keywords: +patch
pull_requests: +11982
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36053>
___
___
Py
Change by Piotr Karkut :
--
title: pkgutil.walk_packages jumps out from given path if there is package with
the same name in sys.pah -> pkgutil.walk_packages jumps out from given path if
there is package with the same name in sys.path
___
Pyt
New submission from Piotr Karkut :
When walk_packages encounter a package with a name that is available in
sys.path, it will abandon the current package, and start walking the package
from the sys.path.
Consider this file layout:
```
PYTHONPATH/
├──package1/
| ├──core
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
Change by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<https://bugs.python.org/issue2517>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<https://bugs.python.org/issue22852>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<https://bugs.python.org/issue34276>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Piotr Jurkiewicz :
--
keywords: +patch
pull_requests: +7988
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34227>
___
_
New submission from Piotr Jurkiewicz :
Function random.choices(), which appeared in Python 3.6, allows to perform
weighted random sampling with replacement. Function random.sample() performs
random sampling without replacement, but cannot do it weighted.
I propose to enhance random.sample
New submission from Piotr Dybowski :
This is the same issue as: https://bugs.python.org/issue28380.
It seems that fix has never been merged,
--
components: Library (Lib)
messages: 317659
nosy: dybi
priority: normal
severity: normal
status: open
title: Mock functions with autospec STILL
New submission from Piotr Dobrogost :
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 ./pybu
Change by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<https://bugs.python.org/issue1553375>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Wysocki :
--
nosy: +Piotr Wysocki
___
Python tracker
<http://bugs.python.org/issue30395>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue26388>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.inst
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue16285>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue23434>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue19982>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue9325>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue2528>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue21536>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue15873>
___
___
Python-bugs-list mailing list
Unsubscribe:
Piotr added the comment:
Ok I have tried it(I had to remove ЉЊЈЁЂ from *.txt - my cp is 1250):
c:\tmp>type test.py
compile(open("tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt").read(),
"bom3.py", 'exec')
c:\tmp>c:\Python34\python.exe test.py
Trace
New submission from Piotr:
Similar to Issue 679880
>>> compile(open("bom3.py").read(), "bom3.py", 'exec')
Traceback (most recent call last):
File "", line 1, in
File "bom3.py", line 1
# coding: utf-8
^
SyntaxEr
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
thi
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue9427>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue24363>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue22269>
___
___
Python-bugs-list mailing list
Unsubscribe:
Piotr Kasprzyk added the comment:
Thank you for accepting the patch!
--
___
Python tracker
<http://bugs.python.org/issue23943>
___
___
Python-bugs-list mailin
New submission from Piotr Kasprzyk:
Correct misspellings in various files.
--
assignee: docs@python
components: Documentation
files: misspellings.patch
keywords: patch
messages: 240825
nosy: docs@python, kwadrat
priority: normal
severity: normal
status: open
title: Misspellings in a few
New submission from Piotr:
Skype WISPr and iPassConnect (and maybe other bots) return cookies as a comma
separated list. It's not a comma + space (which works).
C = cookies.SimpleCookie()
C.load('a=b,z=zz')
>>> C['a']
I wonder what would those bots do if t
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue23246>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue23841>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue21861>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue23752>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue23754>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 interpr
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue23576>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 Pyrami
Piotr Jurkiewicz added the comment:
Does not work on Debian 7 Wheezy, kernel 3.2.65.
$ python test.py
('sending ', 0)
took 0.000s
('sending ', 1)
took 0.000s
('sending ', 2)
took 0.000s
('sending ', 3)
took 0.000s
('sending ', 4)
took 0.000
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue14965>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Piotr Jurkiewicz:
After setting socket.settimeout(5.0), socket.send() returns immediately,
instead of returning after specified timeout.
Steps to reproduce:
Open two python interpreters.
In the first one (the receiver) execute:
>>> import socket
>>>
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue22889>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Piotr Majkrzak:
In documentation
https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.Executor.map
is writen that this fucntion is equivalent to the builtin map. But it is not
true due to the fact that it is not lazy evalueded. The reason is in
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue22028>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue6792>
___
___
Python-bugs-list mailing list
Unsubscribe:
Piotr Ożarowski added the comment:
Python 3.2 generates foo.bar.cpython-32.pyc so it's a regression
--
___
Python tracker
<http://bugs.python.org/is
New submission from Piotr Ożarowski:
when py_compile module is asked to create .pyc file for file with invalid name,
it doesn't fail or ignore such request - it creates/overwrites .pyc file for
sane file name (i.e. ignores everything after dot)
$ touch foo.bar.py
$ python3.4 -m py_co
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue1294959>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Piotr Engelking:
Wrapping a paragraph containing a long word takes a lot of time:
$ time python3 -c 'import textwrap; textwrap.wrap("a" * 2 ** 16)'
real3m14.923s
user3m14.792s
sys 0m0.016s
$
A straightforward replacement is 5000 times faster
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue2943>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
<http://bugs.python.o
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue18885>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue17984>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue21859>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 thi
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue1298835>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue21026>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 Vi
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue17128>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue7231>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue19744>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue19279>
___
___
Python-bugs-list mailing list
Unsubscribe:
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://stac
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue11011>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue1673203>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue10049>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue8713>
___
___
Python-bugs-list mailing list
Unsubscribe:
Piotr Lopusiewicz added the comment:
>>For most ctypes uses, closing is irrelevant, since people typically access
>>system libraries that are independently loaded anyway, so closing them would
>>not have any effect.
My use case is this: I test some things, then I need to
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue4749>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Piotr Dobrogost :
--
nosy: +piotr.dobrogost
___
Python tracker
<http://bugs.python.org/issue12939>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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 runtim
Changes by Piotr Dobrogost :
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue18649>
___
___
Python-bugs-
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
list2cm
1 - 100 of 231 matches
Mail list logo