[issue30937] csv module examples miss newline='' when opening files

2017-07-15 Thread Pavel
New submission from Pavel: At the very beginning the csv module documentation (https://docs.python.org/3.7/library/csv.html) advises to open files passing newline='' parameter though three examples don't include it: Here are the examples: 1: >>> import csv >&

[issue25517] regex howto example in "Lookahead Assertions"

2015-10-30 Thread Pavel
New submission from Pavel: The example advises ".*[.](?!bat$).*$" expression "to match filenames where the extension is not bat". But here is an example which passes such check: >>> re.match("(.*)[.](?!bat$).*$", "test.a.bat") <_sre.SR

[issue12945] ctypes works incorrectly with _swappedbytes_ = 1

2011-09-12 Thread Pavel Boldin
Pavel Boldin added the comment: We have raw data packages from some tools. These packages contains bitfields, arrays, simple data and so on. We want to parse them into Python objects (structures) for analysis and storage. I tried to use ctypes, but now I wrote myself implementation of raw

[issue13703] Hash collision security issue

2012-01-06 Thread Pavel Labushev
Changes by Pavel Labushev : -- nosy: +Arach ___ Python tracker <http://bugs.python.org/issue13703> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12176] Compiling Python 2.7.1 on Ubuntu 11.04 (Natty Narwhale)

2011-05-25 Thread Pavel Bogdanovic
New submission from Pavel Bogdanovic : Compiling of Python does end with an error. It has to do with changes in Ubuntu: https://wiki.ubuntu.com/MultiarchSpec I added one line after python's setup.py after line 351 add_dir_to_list(self.compiler.library_dirs, '/usr/lib/i386-linux-gnu

[issue12176] Compiling Python 2.7.1 on Ubuntu 11.04 (Natty Narwhale)

2011-05-25 Thread Pavel Bogdanovic
Pavel Bogdanovic added the comment: yes, the patch mentioned in issue 11715 works. Sorry for crossposting the issue. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12945] ctypes works incorrectly with _swappedbytes_ = 1

2011-09-09 Thread Pavel Boldin
New submission from Pavel Boldin : ctypes seems to work incorrectly with _swappedbytes_ specified. I.e. it misses some values from buffer: class X(ctypes.Structure): _swappedbytes_ = 1 _pack_ = 1 _fields_ = [ ('a', ctypes.c_ubyte, 4), ('b'

[issue12945] ctypes works incorrectly with _swappedbytes_ = 1

2011-09-10 Thread Pavel Boldin
Pavel Boldin added the comment: Yes. Thanks. But here is another error: import ctypes class X(ctypes.Structure): _pack_ = 1 _fields_ = [ ('a', ctypes.c_ubyte, 4), ('b', ctypes.c_ubyte, 4), ('c', ctypes.c_ushort, 4),

[issue12945] ctypes works incorrectly with _swappedbytes_ = 1

2011-09-11 Thread Pavel Boldin
Pavel Boldin added the comment: OK. So, it seems just like ctypes work, but don't for my needs. Thing that bothers me anyway is the strange code, where size contains either size (when bitsize==0) or bitsize in upper 16 bits and bitoffset in lower 16

[issue11048] "import ctypes" causes segfault on read-only filesystem

2011-01-28 Thread Pavel Labushev
New submission from Pavel Labushev : "import ctypes" causes segfault on read-only filesystem This regression was introduced in python-2.6.6 and exists in all the later versions. To reproduce run python -c "import ctypes" on read-only filesystem: (gdb) file python3.2

[issue11048] "import ctypes" causes segfault on read-only filesystem

2011-01-29 Thread Pavel Labushev
Pavel Labushev added the comment: How to reproduce: # mkdir /mnt/readonly # mount --bind / /mnt/readonly # mount -o remount,ro /mnt/readonly # mount -t proc proc /mnt/readonly/proc # chroot /mnt/readonly python3.2 -c "import ctypes" Segmentation fault If your python build expect

[issue3195] invalid conversion xml.etree.ElementTree.Element object to boolean

2008-06-25 Thread Pavel Strashkin
New submission from Pavel Strashkin <[EMAIL PROTECTED]>: Python 2.5.2 (r252:60911, May 7 2008, 15:19:09) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from xml

[issue3442] wsgiref.validate.InputWrapper.readline does not accept optional "length" argument

2008-07-25 Thread Pavel Strashkin
New submission from Pavel Strashkin <[EMAIL PROTECTED]>: All file/stream-like objects in Python have "readline" method with optional "length" argument, but wsgiref.validate.InputWrapper doest not have. Some 3rd party modules/packages use this argument. As result ther

[issue1949] test_ntpath.py converted to unittest

2008-02-23 Thread Pavel Vinogradov
Pavel Vinogradov added the comment: This patch also looks good for me. It convert all test cases and run successfully on latest python trunk (on Linux). -- nosy: +pavel.vinogradov __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1322] platform.dist() has unpredictable result under Linux

2008-02-23 Thread Pavel Vinogradov
Pavel Vinogradov added the comment: I'm work on this issue in GHOP(http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=216&can=1&colspec=ID%20Status%20ClaimedBy%20Due%20NeedsReview%20Summary) I'm attach updated patch for python trunk. This patch f

[issue1322] platform.dist() has unpredictable result under Linux

2008-02-23 Thread Pavel Vinogradov
Pavel Vinogradov added the comment: You can see confirmation from Georg on thread in GHOP: http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=216&can=1&colspec=ID%20Status%20ClaimedBy%20Due%20NeedsReview%20Summary#c20 I can update patch for 3.0 (it don'

[issue2176] Undocumented lastrowid attribute i sqlite3 cursor class

2008-03-02 Thread Pavel Vinogradov
Pavel Vinogradov added the comment: This patch include brief lastrowid description based on my experience and Python DB API 2.0 PEP. -- keywords: +patch nosy: +pavel.vinogradov Added file: http://bugs.python.org/file9582/lastrowid_rst_desctiption.diff

[issue2675] Curses terminal resize problems when Python is in interactive mode

2008-04-23 Thread Pavel Bazant
New submission from Pavel Bazant <[EMAIL PROTECTED]>: When python is in interactive mode, curses does not react to resize events properly. test.py: import curses def run(): stdscr=curses.initscr() key=0 while(key!=ord('q')): key=stdscr.getch() stdscr.addstr(0,0,str

[issue2827] IDLE 3.0a5 cannot handle UTF-8

2008-12-31 Thread Pavel Kosina
Pavel Kosina added the comment: the following very simple example might be the the same issue: x="ěščřžýáíé" print (x) It reliably puts down IDLE entirely without any error message. It is saved in UTF-8. python +idle 3.0, wxp sp3 -- n

[issue2827] IDLE 3.0a5 cannot handle UTF-8

2009-01-02 Thread Pavel Kosina
Pavel Kosina added the comment: Thank you. Not sure, what to do now, cause the putting down of IDLE is fixed, but still within IDLE I get wrong output: x="ěščřžýáíé" print (x) >>> ěščřžýáíé when running this script under python command line form another edito

[issue2827] IDLE 3.0a5 cannot handle UTF-8

2009-01-02 Thread Pavel Kosina
Pavel Kosina added the comment: Moreover: do you think its good idea to change the file encoding at opened and then saved file without any question when there is no encoding declaration? :-( Users do not edit just python programs, they can edit also config files, text files, etc It could

[issue4815] idle 3.1a1 utf8

2009-01-02 Thread Pavel Kosina
New submission from Pavel Kosina : When you open file without encoding declaration, make changes and save, then IDLE changes without any question encodings to utf8. You can try it on attached file that is cp1250 now. It could be that at first saving we are asked to use *utf8 *current one

[issue4008] IDLE: checksyntax() doesn't support Unicode?

2009-01-02 Thread Pavel Kosina
Pavel Kosina added the comment: I vote for fixing this too. This might be simplified/another example of above mentioned issues: # -*- coding: utf-8 -*- print ("ěščřžýáíé") in IDLE prints this: >>> ěščřžýáíé When running this script under python command line fro

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: You can open script made in python 2.x and it stops immediately working after saving, if it is coding-aware. You can have bigger project and use idle for editing config and text files from this project too. It is "unfair" to change without notifi

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: I forgot about "Perhaps IDLE should offer to convert it on opening." That would be nice, too. ___ Python tracker <http://bugs.python.

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Sorry, where is the patch? ___ Python tracker <http://bugs.python.org/issue4815> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: OK, I got it. In my opinion it would nice if user can either convert file to utf8 or to do nothing and add new encodings declaration or cancel. Current "Cancel" gives an Decoding error. If you give an encodings that doesn't exist, it shouldn&

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: seems to be working. Seems to me now I get it. The file encoding is ruled by the encoding declaration. When I stated # -*- coding: cp1250 -*- then the file would be saved in cp1250. Now hoping that I would keep this issue, cause it comes with this patches

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Well, thanks a lot. (aware this is really off this issue): Now I even get the system of patches - issue 4008 solved the inconvenience in print Unicode signs inside IDLE. Still not sure how works patches for Python versions. I vote for including this a that

[issue4823] idle height and place

2009-01-03 Thread Pavel Kosina
New submission from Pavel Kosina : Nearly always (after opening) is IDLE window outside visible area. Mainly the status bar is hidden under bottom windows menu bar. Same situation happens when choosing Window-Zoom Height from IDLE menu. xpsp3, 1024x768, py2.x-3.x -- components: IDLE

[issue4823] idle height and place

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: sorry it is duplicate to issue 3286 pls close ___ Python tracker <http://bugs.python.org/issue4823> ___ ___ Python-bugs-list mailin

[issue3286] IDLE opens window too low on Windows

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: +1 -- nosy: +geon versions: +Python 3.1 ___ Python tracker <http://bugs.python.org/issue3286> ___ ___ Python-bugs-list mailin

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: I might have another problem with this patch and maybe also that one in issue 4008. Having a file with print ("ěščřžýáíé") # saved in cp1250 Open - confirm converting to utf8 - F5 - error: see attached file idleunicode1.jpg Added file: http://bugs.

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Martin v. Löwis napsal(a), dne 3.1.2009 22:24: > I can't reproduce the problem. Can you please attach the > exact file that failed to work? > You can use that one that is already here: cp1250.py. It is the same

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Microsoft Windows XP [Verze 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\prg\Python30\Lib\idlelib>svn update# from http://svn.python.org/projects/python/branches/py3k/Lib/idlelib Restored 'AutoCompleteWindow.py' Restored 'To

[issue4815] idle 3.1a1 utf8

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: Yes. God job. ;-) ___ Python tracker <http://bugs.python.org/issue4815> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3087] Clean up Demos and Tools

2009-01-03 Thread Pavel Kosina
Pavel Kosina added the comment: +1 In Tkinter there is still import Tkinter and not import tkinter. -- nosy: +geon ___ Python tracker <http://bugs.python.org/issue3

[issue4815] idle 3.1a1 utf8

2009-01-04 Thread Pavel Kosina
Pavel Kosina added the comment: Martin v. Löwis napsal(a), dne 4.1.2009 14:39: > Why that? This file is already encoded in utf-8 just fine. It is, > simultaneously, also encoded in ASCII, cp1250, cp1252, and nearly > any other encoding in use (as long as it is ASCII-based). > W

[issue4832] idle filename extension

2009-01-04 Thread Pavel Kosina
New submission from Pavel Kosina : There should not be necessity to write filename *with extension* at the saving dialog. It should be enough, at least on Windows, to put there just "hello" and get "hello.py". It is really complication especially for beginners. If they, as t

[issue4815] idle 3.1a1 utf8

2009-01-04 Thread Pavel Kosina
Pavel Kosina added the comment: With this file - hello.py (attached) - I should be also asked for converting to utf8. When I open it, nothing changes, after making changes and saving then the encodings is my windows standard cp1250 Added file: http://bugs.python.org/file12582/hello.py

[issue44528] Move IP version resolving to http.server's API

2021-06-28 Thread pavel-lexyr
New submission from pavel-lexyr : Python's native HTTP server (http.server module) has special code to allow it to detect and bind to IPv6 addresses when called as a CLI tool. As of right now, the code is in private functions. Those are not intended to be called by library users - onl

[issue44571] itertools: takedowhile()

2021-07-05 Thread pavel-lexyr
New submission from pavel-lexyr : As described in the documentation, itertools.takewhile() returns all the elements until the first one that does not match the provided criterion. In case of a destructive iterator, or one with side effects, not yielding an element downstream may render

[issue44571] itertools: takedowhile()

2021-07-05 Thread pavel-lexyr
pavel-lexyr added the comment: I see. If the syntax allows for better ways to do it now, perhaps a move towards deprecation would be a better idea then? This would agree with the Zen. Also, please elaborate more on the generator-based solutions you have in mind. The suggestion stems from a

[issue44571] itertools: takedowhile()

2021-07-12 Thread pavel-lexyr
pavel-lexyr added the comment: There is a core part of the `takedowhile` proposal's use case that I am having trouble envisioning via the alternative `before_and_after` proposal. If the `after` part of the iterator the user does not engage with, the transitional elements will be

[issue44571] itertools: takedowhile()

2021-07-12 Thread pavel-lexyr
pavel-lexyr added the comment: Thank you - that answers the questions. The use case where we would want to know if the last element is transitional or not completely slipped my mind for some reason. -- ___ Python tracker <https://bugs.python.

[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-14 Thread Pavel Moiseenko
New submission from Pavel Moiseenko : The version of the app is duplicated in the name of the app in the list of installed apps in "Settings - Apps - Apps & features" and "Control Panel - Programs - Programs and Features" in the version for Windows. Please remove the

[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-14 Thread Pavel Moiseenko
Change by Pavel Moiseenko : Added file: https://bugs.python.org/file50148/2021-07-14 13-50-19 Programs and Features.png ___ Python tracker <https://bugs.python.org/issue44

[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-15 Thread Pavel Moiseenko
Pavel Moiseenko added the comment: This does not cause any problems in the operation of the app, but visually it looks strange. Most other apps don't indicate the version of the app in the name of the app, but just indicate it in a specially made field for this. Therefore, it would be

[issue44634] Version is duplicated in name of app in list of installed apps

2021-07-16 Thread Pavel Moiseenko
Pavel Moiseenko added the comment: @paul.moore, but you don't need to open additional menus in the control panel to see the version of the app. -- ___ Python tracker <https://bugs.python.org/is

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
New submission from pavel-lexyr : PEP 20 states: > There should be one-- and preferably only one --obvious way to do it. As of right now, two very similar constructions for making a lightweight dataclass exist in Python. collections.namedtuple is one of them. dataclasses.dataclass is

[issue44765] Misspelled Word In Docs

2021-07-28 Thread pavel-lexyr
Change by pavel-lexyr : -- keywords: +patch nosy: +pavel-lexyr nosy_count: 3.0 -> 4.0 pull_requests: +25959 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27430 ___ Python tracker <https://bugs.p

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
pavel-lexyr added the comment: Most of the differences are direct upgrades added in the dataclass module. Deprecating dataclass in favour of nametuple would be counterproductive, I agree - what about vice versa? -- ___ Python tracker <ht

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
pavel-lexyr added the comment: Touche. Another advantage a namedtuple has is that it can expand out of the box - i.e., can write something like > for x, y, z in namedtuple_list: without any list comprehensions. Can we bring those advantages into the dataclass while also preserving

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
Change by pavel-lexyr : -- versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue44

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
Change by pavel-lexyr : -- resolution: -> rejected ___ Python tracker <https://bugs.python.org/issue44768> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44768] dataclasses.dataclass and collections.namedtuple do the same thing

2021-07-28 Thread pavel-lexyr
pavel-lexyr added the comment: Thank you all for your input! Migrating the discussion to https://mail.python.org/archives/list/python-id...@python.org/thread/UQRCDWMFNC5NRLLQCTYPOEGWJOIV7BGJ/ for now, if anyone wants to continue. -- resolution: rejected

[issue45872] Turtle documentation, write()

2021-11-22 Thread Pavel V
New submission from Pavel V : There are no parentheses for 'font' argument in turtle.write() documentation https://docs.python.org/3.10/library/turtle.html#turtle.write -- assignee: docs@python components: Documentation messages: 406795 nosy: docs@python, willyns priori

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-09 Thread Pavel Ditenbir
New submission from Pavel Ditenbir : Steps to reproduce. Run the attached script: $ python3 argparse-indent-sample.py --help The output is: usage: argparse-indent-sample.py [-h] CMD ... optional arguments: -h, --help show this help message and exit service: CMD

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-09 Thread Pavel Ditenbir
Change by Pavel Ditenbir : -- keywords: +patch pull_requests: +23003 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24177 ___ Python tracker <https://bugs.python.org/issu

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-11 Thread Pavel Ditenbir
Change by Pavel Ditenbir : -- versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue42875> ___ ___ Pytho

[issue42875] argparse incorrectly shows help string on a new line in case of long command string

2021-01-11 Thread Pavel Ditenbir
Change by Pavel Ditenbir : -- versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue42875> ___ ___ Python-bugs-list mailin

[issue41293] fix confusing example in hashlib docs

2020-07-13 Thread Pavel Trukhanov
New submission from Pavel Trukhanov : The documentation found in https://docs.python.org/3/library/hashlib.html#hash-algorithms give us the following two examples: ``` For example, to obtain the digest of the byte string b'Nobody inspects the spammish repetition': >>>

[issue41293] fix confusing example in hashlib docs

2020-07-13 Thread Pavel Trukhanov
Change by Pavel Trukhanov : -- type: -> enhancement versions: +Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issu

[issue34374] Shouldn't shutil.copyfile replace link in dst with follow_symlinks set?

2020-09-14 Thread Pavel Raiskup
Pavel Raiskup added the comment: Check out this default behavior of /bin/cp though: $ mkdir a b $ echo content > a/file $ ln -s non-existing b/file $ cp a/file b cp: not writing through dangling symlink 'b/file' Shouldn't shutil.copy*() refuse to write

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-05-18 Thread Pavel Kostyuchenko
Pavel Kostyuchenko added the comment: I was able to reproduce the error with version f13c5c8b9401a9dc19e95d8b420ee100ac022208 on FreeBSD 12.0 VM. The error seems to be caused not by those changes, but by lack of synchronization in the multiprocessing.managers.Server. The failure happens

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-05-18 Thread Pavel Kostyuchenko
Pavel Kostyuchenko added the comment: Also it might be viable to add some assertion to verify the take_gil is not called with uninitialized interpreter. I used the changes in the attachment (take_gil.assert.patch), but it produced errors during test_tracemalloc with

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Pavel Koneski
Pavel Koneski added the comment: If "equivalent input" is acceptable, then it looks like case B: other implementations possibly having different forms of equivalent input. I am going to post this question on python-dev. -- versions: +Python 3.5,

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Pavel Koneski
Change by Pavel Koneski : -- versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue36919> ___ ___ Python-bugs-list mailin

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Pavel Koneski
Pavel Koneski added the comment: > I'm assuming the real issue is wanting to make IronPython pass as much of the > CPython test suite as possible. This is indeed the case. The CPython test suite is invaluable in guiding IronPython development. Most of the time, the tests are pre

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-28 Thread Pavel Koneski
Change by Pavel Koneski : -- keywords: +patch pull_requests: +13535 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13639 ___ Python tracker <https://bugs.python.org/issu

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Pavel Minaev
Change by Pavel Minaev : -- nosy: +int19h ___ Python tracker <https://bugs.python.org/issue37416> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Pavel Minaev
Pavel Minaev added the comment: This is a bit tricky to explain... There's no easy way to achieve this effect "normally". It manifests due to the way some Python debuggers (specifically, pydevd and ptvsd - as used by PyCharm, PyDev, and VSCode) implement non-cooperative

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Pavel Minaev
Pavel Minaev added the comment: It's also possible to hit if using some native code that starts a background thread without going via threading, and runs Python code on that background thread. In that case, if that Python code then does "import threading", and threading hasn&

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Pavel Minaev
Pavel Minaev added the comment: Debuggers will have to work around this in past Python versions that they support (which still includes Python 2 for pretty much all of them), so this is solely about resolving the inconsistency for the future. No point rushing it for 3.8 specifically. (The

[issue35447] Redundant try-except block in urllib

2018-12-09 Thread Shishmarev Pavel
New submission from Shishmarev Pavel : https://github.com/python/cpython/blob/master/Lib/urllib/parse.py#L875 It's redundant to raise and then catch exception. -- components: Library (Lib) messages: 331436 nosy: PashaWNN priority: normal severity: normal status: open title: Redu

[issue35447] Redundant try-except block in urllib

2018-12-09 Thread Shishmarev Pavel
Change by Shishmarev Pavel : -- keywords: +patch pull_requests: +10287 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35447> ___ _

[issue35447] Redundant try-except block in urllib

2018-12-09 Thread Shishmarev Pavel
Change by Shishmarev Pavel : -- pull_requests: +10288 ___ Python tracker <https://bugs.python.org/issue35447> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35447] Redundant try-except block in urllib

2018-12-09 Thread Shishmarev Pavel
Shishmarev Pavel added the comment: https://github.com/python/cpython/blob/master/Lib/urllib/parse.py#L875 It's redundant to raise and then catch exception. I mean: if len(query) and not isinstance(query[0], tuple): ty, va, tb = sys.exc_info() raise TypeError("not a valid

[issue36919] Exception form 'compile' reports a newline char not present in input

2019-05-14 Thread Pavel Koneski
New submission from Pavel Koneski : Since Python 3.2, input in 'exec' mode of 'compile' does not have to end in a newline anymore. However, it creates a surprising behavior when a 'SyntaxError' is reported: >>> try: compile('try', '

[issue32919] csv.reader() to support QUOTE_ALL

2018-02-22 Thread Pavel Shpilev
New submission from Pavel Shpilev : It appears that in current implementation csv.QUOTE_ALL has no effect on csv. reader(), it only affects csv.writer(). I know that csv is a poorly defined format and all, but I think this might be useful to distinguish None and '' values for the so

[issue32919] csv.reader() to support QUOTE_ALL

2018-03-05 Thread Pavel Shpilev
Pavel Shpilev added the comment: I know that CSV specification says empty field and empty string are the same, however, I still believe there is practical use for unconventional processing of such fields. In our specific case we parse CSVs produced by Amazon Athena (based on Presto) in

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Pavel Raiskup
Change by Pavel Raiskup : -- nosy: +Pavel Raiskup ___ Python tracker <https://bugs.python.org/issue14102> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14102] argparse: add ability to create a man page

2018-06-14 Thread Pavel Raiskup
Pavel Raiskup added the comment: On Friday, June 15, 2018 1:52:41 AM CEST Ben Finney wrote: > On Thu, 2018-06-14 23:46 +, Aaron Meurer wrote: > > Couldn't such a tool exist outside the standard library. > > I've tried writing such a tool. It would ideally re-u

[issue14102] argparse: add ability to create a man page

2018-06-15 Thread Pavel Raiskup
Pavel Raiskup added the comment: On Friday, June 15, 2018 11:54:04 AM CEST Daniel Walsh wrote: > Correct, the reason I would want this is to add something to a Makefile > ... > manpages: foo.py > ./python foo.py --manpage > foo.1 The /bin/argparse-manpage could help temp

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
New submission from Pavel Jurkas : CGITB does not mangle private variables names. So they are displayed as undefined even though they are defined. Example: self.__core undefined -- messages: 321757 nosy: pjurkas priority: normal severity: normal status: open title: CGITB does not

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Change by Pavel Jurkas : -- keywords: +patch pull_requests: +7835 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34129> ___ ___ Py

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Pavel Jurkas added the comment: https://github.com/python/cpython/pull/8301 -- ___ Python tracker <https://bugs.python.org/issue34129> ___ ___ Python-bugs-list m

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Change by Pavel Jurkas : -- pull_requests: +7836 ___ Python tracker <https://bugs.python.org/issue34129> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Pavel Jurkas added the comment: https://github.com/python/cpython/pull/8302 -- ___ Python tracker <https://bugs.python.org/issue34129> ___ ___ Python-bugs-list m

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Pavel Jurkas added the comment: https://github.com/python/cpython/pull/8304 -- ___ Python tracker <https://bugs.python.org/issue34129> ___ ___ Python-bugs-list m

[issue34129] CGITB does not mangle variables names

2018-07-16 Thread Pavel Jurkas
Change by Pavel Jurkas : -- pull_requests: +7838 ___ Python tracker <https://bugs.python.org/issue34129> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14710] pkgutil.get_loader is broken

2012-05-03 Thread Pavel Aslanov
New submission from Pavel Aslanov : if module was marked as not existing by setting sys.modules [fullname] to None, then pkgutil.get_loader (fullname) will throw AttributeError. Example: #! /usr/bin/evn python import unittest import pkgutil def main (): pkgutil.get_loader

[issue14710] pkgutil.get_loader is broken

2012-05-03 Thread Pavel Aslanov
Pavel Aslanov added the comment: Main use case of pkgutil.get_loader is to determine if its possible to load module and either return loader or None. But it throws exception more over it is AttributeErrror exception. -- ___ Python tracker <h

[issue15073] commands.getoutput() is broken

2012-06-14 Thread Pavel Fedin
New submission from Pavel Fedin : commands.getoutput() is broken on Windows. The issue has been detected in v2.7.2, but still persists in v2.7.3: --- cut --- Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "

[issue15073] commands.getoutput() does not work on windows

2012-06-15 Thread Pavel Fedin
Pavel Fedin added the comment: I see it's deprecated and dropped, but anyway, why not to fix it to work on Windows? From 10197 i see the fix is quite simple, and there is lots of legacy code i believe. -- ___ Python tracker

[issue16050] ctypes: callback from C++ to Python fails with Illegal Instruction call

2012-09-25 Thread Pavel Maltsev
New submission from Pavel Maltsev: ppc_405, Linux 2.4, GCC 3.3.1 Python crashes on attempt to pass python callback function to custom C++ library under PowerPC 405. This happens because some versions of GCC (I guess below 4.1) doesn't raise __NO_FPRS__ flag if hard-floats is not supp

[issue14710] pkgutil.get_loader is broken

2014-05-19 Thread Pavel Aslanov
Pavel Aslanov added the comment: This function is broken again in version 3.4 The way it should look is: Python 2.7.6 (default, Feb 26 2014, 12:07:17) [GCC 4.8.2 20140206 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license"

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2014-05-20 Thread Pavel Machyniak
Pavel Machyniak added the comment: Unfortunately this patch will not work if there is other (system) openssl installed in the default locations (`/usr/include`, `/usr/lib`) because this patch only add another path at the end of the search list. Instead of this I will make a ticket for

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread Pavel Machyniak
New submission from Pavel Machyniak: There is no easy way to build python with custom openssl build. This can lead to miscellaneous problems (like segmentation faults) in various situations/configurations (see eg. http://stackoverflow.com/questions/22409092/coredump-when-compiling-python-with

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread Pavel Machyniak
Pavel Machyniak added the comment: This is the proposed patch (compared 2 trees src & upd where src is latest release 3.4.1, upd is my working). Changes are in: configure, setup.py. Please review it and hopefully integrate to future releases. -- keywords: +patch versions: +Python

  1   2   >