[issue30670] pprint for dict in sorted order or insert order?

2018-01-27 Thread Philippe
Philippe added the comment: IMHO since Guido said that dictionary order is guaranteed going forward [1], the order should now be preserved in 3.6+ Getting a sorted pprint'ed dict in a Py3.6.1 was a surprise to me coming from Python2. The default ordered dict is to me the killer featu

[issue23929] Minor typo (way vs. away) in os.renames docstring

2015-04-13 Thread Philippe
New submission from Philippe: There is a minor typo in the docstring of os.renames: See https://hg.python.org/cpython/file/37905786b34b/Lib/os.py#l275 "After the rename, directories corresponding to rightmost path segments of the old name will be pruned way until [..]" This shoul

[issue24514] tarfile fails to extract archive (handled fine by gnu tar and bsdtar)

2015-06-26 Thread Philippe
New submission from Philippe: The extraction fails when calling tarfile.open using this archive: http://archive.apache.org/dist/commons/logging/source/commons-logging-1.1.2-src.tar.gz After some investigation, the file can be extracted with gnu tar and bsdtar and the gzip compression is not

[issue24514] tarfile fails to extract archive (handled fine by gnu tar and bsdtar)

2015-06-26 Thread Philippe
Philippe added the comment: Note: the traceback above are from calling taropen on the gunzipped tar.gz The error are similar but a tar less informative when using the tgz and open. -- ___ Python tracker <http://bugs.python.org/issue24

[issue24514] tarfile fails to extract archive (handled fine by gnu tar and bsdtar)

2015-06-26 Thread Philippe
Philippe added the comment: lars: you are my hero! you rock. I picture you being able to read through tar binary headers while you sleep. I am in awe. -- ___ Python tracker <http://bugs.python.org/issue24

[issue24514] tarfile fails to extract archive (handled fine by gnu tar and bsdtar)

2015-06-26 Thread Philippe
Philippe added the comment: I verified that the patch issue24514.diff (adding .rstrip() ) works also on Python 2.7. I verified it also works on Python 3.4 I ran it on 2.7 against a fairly large test suite of tar files without problems. This is a +1 for me. Lars: Do you think you could apply

[issue41836] Improve ctypes error reporting with missing DLL path

2020-09-22 Thread Philippe Ombredanne
New submission from Philippe Ombredanne : When the dependency of a DLL is missing (at least on Windows) the error " OSError: [WinError 126] The specified module could not be found" is raised when calling ctypes.CDLL(dll_path) even when this "dll_path" exists... because t

[issue41836] Improve ctypes error reporting with missing DLL path

2020-09-22 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: Eric, Thanks! This is IMHO a dupe of https://bugs.python.org/issue25655 in earnest. So I am closing this in favor of that and will carry over comments there -- components: -Windows resolution: -> duplicate stage: -> resolved status

[issue25655] Python errors related to failures loading DLL's lack information

2020-09-22 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: >From https://bugs.python.org/issue41836 closed as a dupe of this: When the dependency of a DLL is missing (at least on Windows) the error " OSError: [WinError 126] The specified module could not be found" is raised when calling ctypes.

[issue25655] Python errors related to failures loading DLL's lack information

2020-09-22 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: Eric Smith, you wrote: > My understanding is that Windows doesn't tell you which DLL is missing. I > think the best we could do is append something to the error message saying > "or one its dependencies". If we have such an e

[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: > I wouldn't refuse a docs PR to add a short section pointing to > this page and explaining its relevance: > https://docs.microsoft.com/cpp/build/reference/dependents Steve, would you see this as a note in https://docs.python.org/3/libra

[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Philippe Ombredanne
Change by Philippe Ombredanne : -- keywords: +patch pull_requests: +21411 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22372 ___ Python tracker <https://bugs.python.org/issu

[issue25655] Python errors related to failures loading DLL's lack information

2020-09-23 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: So the other locations to add docs would be petinetially - https://docs.python.org/3/library/os.html?#os.add_dll_directory - https://docs.python.org/3/extending/windows.html - https://docs.python.org/3/faq/windows.html#is-a-pyd-file-the-same-as-a-dll

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2021-01-09 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: The changes introduced by this ticket in https://github.com/python/cpython/commit/9fc720e5e4f772598013ea48a3f0d22b2b6b04fa#r45794801 are problematic. I discovered this from having tests failing when testing on Python 3.7 and up The bug is that calling

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2021-01-09 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: Actually this is problematic on multiples counts: 1. the behaviour changes and this is a regression 2. even if that new buggy behaviour was the one to use, it should not give preference to knownfiles ovr init-provided files, but at least take the

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
New submission from Philippe Verdy : For now, when capturing groups are used within repetitions, it is impossible to capure what they match individually within the list of matched repetitions. E.g. the following regular expression: (0|1[0-9]{0,2}|2(?:[0-4][0-9]?|5[0-5]?)?)(?:\.(0|1[0-9]{0,2

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: I'd like to add that the same behavior should also affect the span(index) method of MatchObject, that should also not just return a single (start, end) pair, but that should in this case return a list of pairs, one for each occurence, when t

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: Rationale for the compilation flag: You could think that the compilation flag should not be needed. However, not using it would mean that a LOT of existing regular expressions that already contain capturing groups in repetitions, and for which the

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: Implementation details: Currently, the capturing groups behave quite randomly in the values returned by MachedObject, when backtracking occurs in a repetition. This proposal will help fix the behavior, because it will also be much easier to backtrack

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: Note that I used the IPv4 address format only as an example. There are plenty of other more complex cases for which we really need to capture the multiple occurences of a capturing group within a repetition. I'm NOT asking you how to parse it using MUL

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: In addition, your suggested regexp for IPv4: '^(\d{1,3})(?:\.(\d{1,3})){3}$' is completely WRONG ! It will match INVALID IPv4 address formats like "000.000.000.000". Reread the RFCs... because "000.000.000.000" is CERTAINLY

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: You're wrong, it WILL be compatible, because it is only conditioned by a FLAG. The flag is there specifically for instructing the parser to generate lists of values rather than single values. Without the regular compilation flag set, as I said, there wi

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: Summary of your points with my responses : > 1) it doesn't exist in any other implementation that I know; That's exactly why I proposed to discuss it with the developers of other implementations (I cited PCRE, Perl and PHP developers, ther

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: And anyway, my suggestion is certainly much more useful than atomic groups and possessive groups that have much lower use, and which are already being tested in Perl but that Python (or PCRE, PHP, and most implementations of 'vi'/'ed',

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: I had read carefully ALL what ezio said, this is clear in the fact that I have summarized my responses to ALL the 4 points given by ezio. Capturing groups is a VERY useful feature of regular expressions, but they currently DON'T work as expected (in a u

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: ezio said: >>> re.match('^(\d{1,3})(?:\.(\d{1,3})){3}$', '192.168.0.1').groups() ('192', '1') > If I understood correctly what you are proposing, you would like it to return (['192'], ['168&#

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: > That's why I wrote 'without checking if they are in range(256)'; the fact that this regex matches invalid digits was not relevant in my example (and it's usually easier to convert the digits to int and check if 0 <= digits <= 255

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: > Even with your solution, in most of the cases you will need additional steps to assemble the results (at least in the cases with some kind of separator, where you have to join the first element with the followings). Yes, but this step is trivial and fu

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: > a "general" regex (e.g. for an ipv6 address) I know this problem, and I have already written about this. It is not possible to parse it in a single regexp if it is written without using repetitions. But in that case, the regexp becomes really

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: >> And anyway, my suggestion is certainly much more useful than atomic >> groups and possessive groups that have much lower use [...] >Then why no one implemented it yet? :) That's because they had to use something else than regexps to do

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: >>> re.match('^(\d{1,3})(?:\.(\d{1,3})){3}$', '192.168.0.1').groups() ('192', '1') > If I understood correctly what you are proposing, you would like it to return (['192'], ['168', '

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: You said that this extension was not implemented anywhere, and you were wrong. I've found that it IS implemented in Perl 6! Look at this discussion: http://www.perlmonks.org/?node_id=602361 Look at how the matches in quantified capture groups are ret

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: Anyway, there are ways to speedup regexps, even without instructing the regexps with anti-backtracking syntaxes. See http://swtch.com/~rsc/regexp/regexp1.html (article dated January 2007) Which discusses how Perl, PCRE (and PHP), Python, Java, Ruby, .NET

[issue7132] Regexp: capturing groups in repetitions

2009-10-14 Thread Philippe Verdy
Philippe Verdy added the comment: Umm I saif that the attribution to Thompson was wrong, in fact it was correct. Thompson designed and documented the algorithm in 1968, long before the Aho/Seti/Ullman green book... so the algorithm is more than 40 years old, and still not in Python, Perl

[issue17821] Different division results with / and // operators with large numbers

2013-04-23 Thread Philippe Rouquier
New submission from Philippe Rouquier: Hi, the following statement yields different results in python2 and python3: 284397269195572115652769428988866694680//17 - int(284397269195572115652769428988866694680/17) In python3 it yields: 309657313492949847071 In python2 it yields: OL Python2&#

[issue17821] Different division results with / and // operators with large numbers

2013-04-23 Thread Philippe Rouquier
Philippe Rouquier added the comment: Does your comment mean that this is bug should be closed as notabug since anyone wanting to avoid such rounding error should use // operator? -- ___ Python tracker <http://bugs.python.org/issue17

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-11-05 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: Hello, Here is a patch to fix it :) ( and don't blame me too much if something is not correct, it's the first patch I submit :) ) Philippe -- keywords: +patch nosy: +flupke Added file: http://bugs.python.org

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-11-08 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: The regression tests do not work anymore in test_sqlite with the patch, I will check more in details why... sorry. -- ___ Python tracker <http://bugs.python.org/issue8

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2010-11-08 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: No, I made a mistake in my build, test_sqlite runs actually fine before and after the patch. -- ___ Python tracker <http://bugs.python.org/issue8

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2011-01-06 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: Ok I will redo a patch in the next few days with possibly type sqlite3_int64, and include tests. Thank you for the review. -- ___ Python tracker <http://bugs.python.org/issue8

[issue8033] sqlite: broken long integer handling for arguments to user-defined functions

2011-01-08 Thread Philippe Devalkeneer
Philippe Devalkeneer added the comment: Here a new patch with sqlite3_int64 type, and unit test. -- Added file: http://bugs.python.org/file20313/broken_long_sqlite_userfunctions.diff ___ Python tracker <http://bugs.python.org/issue8

[issue6717] Some problem with recursion handling

2012-04-12 Thread Philippe Devalkeneer
Changes by Philippe Devalkeneer : -- nosy: +flupke ___ Python tracker <http://bugs.python.org/issue6717> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22327] test_gdb failures on Ubuntu 14.10

2014-09-08 Thread Philippe Devalkeneer
Changes by Philippe Devalkeneer : -- nosy: +flupke ___ Python tracker <http://bugs.python.org/issue22327> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14076] sqlite3 module ignores placeholders in CREATE TRIGGER code

2014-09-08 Thread Philippe Devalkeneer
Changes by Philippe Devalkeneer : -- nosy: +flupke ___ Python tracker <http://bugs.python.org/issue14076> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1525806] Tkdnd mouse cursor handling patch

2014-09-09 Thread Philippe Devalkeneer
Changes by Philippe Devalkeneer : -- nosy: +flupke ___ Python tracker <http://bugs.python.org/issue1525806> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22399] Doc: missing anchor for dict in library/functions.html

2014-09-12 Thread Philippe Dessauw
New submission from Philippe Dessauw: There is a missing anchor for the dict functions in the documentation at library/functions.html. It is present in the documentation of all python version. It seems to impact cross-referencing in Sphinx (using intersphinx). -- assignee: docs

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-04-28 Thread Philippe Pinard
Philippe Pinard added the comment: As Sébastien Taylor, I ran into the same problem. The workaround I found was to unzip the content of python35.zip and put it in the Lib/ folder. -- nosy: +ppinard ___ Python tracker <http://bugs.python.

[issue19887] Path.resolve() fails on complex symlinks

2014-01-10 Thread Philippe Fremy
Philippe Fremy added the comment: Hi, This precise set of tests fails on Windows 7 on a NTFS partition (on revision c0b0e7aef360+ tip ), see below. The problem is probably minor (drive letter case). I won't be able to develop a fix myself, but I'll be happy to test one. cheers,

[issue25045] smtplib throws exception TypeError: readline()

2015-09-09 Thread Philippe Lambotte
New submission from Philippe Lambotte: smtplib smtpserver.ehlo() will throw exception. The error message : Traceback (most recent call last): File "snippet.email.sendmail.py", line 34, in smtpserver.ehlo() File "/usr/lib/python3.2/smtplib.py", line 421, in

[issue25045] smtplib throws exception TypeError: readline()

2015-09-09 Thread Philippe Lambotte
Philippe Lambotte added the comment: The code is : #!/usr/bin/env python3 #-*- coding: utf-8 -*- import smtplib, os from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email.mime.text import MIMEText from email.utils import COMMASPACE, formatdate from email

[issue30349] Preparation for advanced set syntax in regular expressions

2021-09-21 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: FWIW, this warning is annoying because it is hard to fix in the case where the regex are source from data: the warning message does not include the regex at fault; it should otherwise the warning is noisy and ineffective IMHO. -- nosy

[issue30349] Preparation for advanced set syntax in regular expressions

2021-09-21 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: Sorry, my comment was at best nonsensical gibberish! I meant to say that this warning message should include the actual regex at fault; otherwise it is hard to fix when the regex in question comes from some data structure like a list; then the line

[issue37783] int returns error (SystemError)

2019-08-07 Thread Philippe Négrel
New submission from Philippe Négrel : Whenever I compile the code, I get this error: Exception has occurred: SystemError returned a result with an error set This issue occured at line 32 of the file "SaveTools.py" in this github branch: https://github.com/l3alr0g/Wave-simulator/t

[issue37783] int returns error (SystemError)

2019-08-07 Thread Philippe Négrel
Philippe Négrel added the comment: My bad the compilation Error came from the panda3d engine, which affected in some way the int class, issue solved, sry for wasting your time X) -- resolution: third party -> not a bug stage: test needed -> resolved status: pending -&g

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2019-10-18 Thread Philippe Cloutier
Philippe Cloutier added the comment: I understood the current (only) behavior, but coming from a PHP background, I really didn't expect it. Thank you for this request, I would definitely like the ability to get behavior matching PHP's explode(). -- nosy: +Philippe Clou

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2019-10-18 Thread Philippe Cloutier
Philippe Cloutier added the comment: I assume the "workaround" suggested by Raymond in msg282966 is supposed to read... filter(None, str.split(sep) ... rather than filter(None, sep.split(input)). -- ___ Python tracker <https://bu

[issue31535] configparser unable to write comment with a upper cas letter

2017-09-20 Thread Philippe Wagnieres
New submission from Philippe Wagnieres: I create entry with this: self.settings.set('General', 'Initial filter', 'All file (*.*)') self.settings.set('General', '# 1 => Text files (*.txt)') self.settings.set('General', &

[issue34723] lower() on Turkish letter "İ" returns a 2-chars-long string

2020-01-07 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: There is a weird thing though (using Python 3.6.8): >>> [x.lower() for x in 'İ'] ['i̇'] >>> [x for x in 'İ'.lower()] ['i', '̇'] I would expect that the results would be the same

[issue34723] lower() on Turkish letter "İ" returns a 2-chars-long string

2020-01-07 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: Thank for the (re) explanation. Unicode is tough! Basically this is the issue i have really in the end with the folding: what used to be a proper alpha string is not longer one after a lower() because the second codepoint is a punctuation and I use a

[issue34723] lower() on Turkish letter "İ" returns a 2-chars-long string

2020-07-27 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: Şahin Kureta you wrote: > I know it is not finalized and released yet but are you going to > implement Version 14.0.0 of the Unicode Standard? > It finally solves the issue of Turkish lower/upper case 'I' and 'i'. Thank you f

[issue21109] tarfile: Traversal attack vulnerability

2018-08-27 Thread Philippe Godbout
Philippe Godbout added the comment: Lars, I think the suggested approach is great. Documentation for the tarfile class should be changed in order to direct user to the "safe" version with an relevant warning. A bit like what is done for PRNG safety. As stated by Eduardo an opti

[issue31535] configparser unable to write comment with a upper cas letter

2018-09-26 Thread Philippe Wagnieres
Philippe Wagnieres added the comment: Thank for your support. Sorry I have no time to give you an answer and work on with Python, but I have understand the solution. Best Regards Philippe Wagnières Chalamont 6 1400 Yverdon-les-Bains Suisse tel.: +41 76 367 27 43 Le 24.09.2018 à 17:42

[issue45557] Issue 42914

2021-10-21 Thread Jean-Philippe VINCENT
New submission from Jean-Philippe VINCENT : Hello, I just tried the new attribute underscore_numbers with pprint, it doesn't work for me. I'm working on Windows. [cid:8779885d-01bf-4162-9427-a44de152f7ac] Best regards, Jean-Philippe -- files: image.png messages: 4

[issue45557] pprint -> underscore_numbers argument not working

2021-10-21 Thread Jean-Philippe VINCENT
Change by Jean-Philippe VINCENT : -- title: Issue 42914 -> pprint -> underscore_numbers argument not working ___ Python tracker <https://bugs.python.org/i

[issue31953] Dedicated place for security announcements?

2017-11-05 Thread Jean-Philippe Ouellet
New submission from Jean-Philippe Ouellet : Hello, My apologies if this is not the right place to discus this. I would like to ensure that I stay informed of any potential future security issues in python (specifically at least the cpython runtime and standard library, although select very

[issue31953] Dedicated place for security announcements?

2017-11-06 Thread Jean-Philippe Ouellet
Jean-Philippe Ouellet added the comment: Ah, I now see there actually *is* a security-announce list [1]! Unless one happens to already know that Python has two concurrent mailman instances hosting different lists [2][3], it's easy to miss. Thanks, and sorry for the noise! [1]:

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-02-12 Thread Jean-Philippe Laverdure
Changes by Jean-Philippe Laverdure: -- components: +Library (Lib) -Extension Modules versions: +Python 2.4 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-02-12 Thread Jean-Philippe Laverdure
New submission from Jean-Philippe Laverdure: When attempting to sniff() the dialect for the attached .csv file, csv.Sniffer.sniff() returns an unusable dialect: >>> import csv >>> file = open('listB2Mforblast.csv', 'r') >>> dialect = csv.S

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-03-27 Thread Jean-Philippe Laverdure
Jean-Philippe Laverdure <[EMAIL PROTECTED]> added the comment: Hello and sorry for the late reply. Wolfgang: sorry about my misuse of the csv.DictReader constructor, that was a mistake on my part. However, it still is not functionning as I think it should/could. Look at this: Usin

[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-03-27 Thread Jean-Philippe Laverdure
Jean-Philippe Laverdure <[EMAIL PROTECTED]> added the comment: Hi Skip, You're right, it does seem that using f.read(1024) to feed the sniffer works OK in my case and allows me to instantiate the DictReader correctly... Why that is I'm not sure though... I was submitting the

[issue28547] Python to use Windows Certificate Store

2016-10-28 Thread Jean-Philippe Landry
New submission from Jean-Philippe Landry: Hello, Would it be possible for Python to use the Certificate Store in windows instead of a predetermined list of certificates. The use case is as follows: Multiple machines being on a corporate network where there is a man in the middle packet

[issue28547] Python to use Windows Certificate Store

2018-05-24 Thread Jean-Philippe Landry
Change by Jean-Philippe Landry : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or