[issue26698] Tk DPI awareness

2016-04-24 Thread Westley Martínez
Westley Martínez added the comment: IDLE 3.5.1 on Windows 10 -- ___ Python tracker <http://bugs.python.org/issue26698> ___ ___ Python-bugs-list mailing list Unsub

[issue18844] allow weights in random.choice

2016-04-06 Thread Westley Martínez
Westley Martínez added the comment: I still like Serhiy's implementation more. A function that returns a list instead of the item is unnatural and doesn't fit with the rest of the module. I think there's need to be some discussion about use cases. What do users actually want?

[issue26698] IDLE DPI Awareness

2016-04-05 Thread Westley Martínez
New submission from Westley Martínez: IDLE is blurry on High DPI Windows, because IDLE is not DPI aware. IDLE should be made to be DPI aware so that the text is more readable. -- components: IDLE, Library (Lib), Tkinter messages: 262930 nosy: westley.martinez priority: normal severity

[issue17390] display python version on idle title bar

2014-04-03 Thread Westley Martínez
Westley Martínez added the comment: I second that the title should start with the filename, by default. This seems to be the precedent, and it makes it easy when working with multiple files. Example: xxx.py - IDLE x.y.z: C:\mydir\xxx.py Terry, I think we can generalize this as ' - :

[issue7676] IDLE shell shouldn't use TABs

2014-03-31 Thread Westley Martínez
Westley Martínez added the comment: I think the prompt should be in margins, completely separate from the input. It is just meant to be a guide anyway, and make this would make it easy to copy code from the interactive shell to a file. I think output should be in a separate window or frame

[issue1617161] Instance methods compare equal when their self's are equal

2014-03-11 Thread Westley Martínez
Westley Martínez added the comment: I updated the tests to be in sync, but the implementation of the fix is not so trivial. The conversion from cmp() to rich comparison is the primary culprit, so it will take time for me to get familiar enough with the C source to update the fix. I couldn&#

[issue1617161] Instance methods compare equal when their self's are equal

2014-03-11 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +westley.martinez ___ Python tracker <http://bugs.python.org/issue1617161> ___ ___ Python-bugs-list mailing list Unsub

[issue18410] IDLE Improvements: Unit test for SearchDialog.py

2014-03-11 Thread Westley Martínez
Westley Martínez added the comment: I've submitted a patch. It's not complete. The global functions for the SearchDialog module don't yet have tests because I'm not sure of what these functions are used for. I'd like for anyone to point me in the right directio

[issue20877] test_grammar: assertEquals is deprecated

2014-03-09 Thread Westley Martínez
New submission from Westley Martínez: Use of assertEquals in test_grammar is deprecated. I've included a patch to change it to assertEqual. -- files: test_grammar.deprecation.diff keywords: patch messages: 213001 nosy: westley.martinez priority: normal severity: normal status:

[issue18410] IDLE Improvements: Unit test for SearchDialog.py

2014-03-09 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +westley.martinez ___ Python tracker <http://bugs.python.org/issue18410> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Westley Martínez
Westley Martínez added the comment: So is the plan to deprecate this in 3.5 and remove in 3.6? If so, the question is where should the deprecation be thrown? -- ___ Python tracker <http://bugs.python.org/issue13

[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True

2014-03-07 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +westley.martinez ___ Python tracker <http://bugs.python.org/issue13936> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12387] IDLE save keyboard shortcut problem

2014-03-02 Thread Westley Martínez
Westley Martínez added the comment: I know that Tk has individual states for whether or not a key is pressed with Caps Lock or Shift or other modifiers, so maybe there is a way to have the shortcuts ignore Caps Lock entirely. More info: http://stackoverflow.com/questions/665502/status-of

[issue20580] IDLE should support platform-specific default config defaults

2014-02-28 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +westley.martinez ___ Python tracker <http://bugs.python.org/issue20580> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17390] display python version on idle title bar

2014-02-26 Thread Westley Martínez
Westley Martínez added the comment: How about adding an optional argument to OutputWindow that specifies the title for the window? Or would this be more suitable for EditorWindow (which OutputWindow inherits from)? Either way, doing this would allow any OutputWindow to specify its own title

[issue11122] bdist_rpm should use rpmbuild, not rpm

2014-02-26 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +westley.martinez ___ Python tracker <http://bugs.python.org/issue11122> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17390] display python version on idle title bar

2014-02-26 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +westley.martinez ___ Python tracker <http://bugs.python.org/issue17390> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Westley Martínez
Westley Martínez added the comment: I understand this is an old issue. Sorry if it is no longer relevant. I have usually have at least two versions of Python installed on Windows: 2.x and 3.x. In Windows 7, if you pin a certain shortcut to the start menu, you can't tell what versi

[issue20146] UserDict module docs link is obsolete

2014-02-17 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +westley.martinez ___ Python tracker <http://bugs.python.org/issue20146> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20402] List comprehensions should be noted in for loop documentation

2014-02-17 Thread Westley Martínez
Westley Martínez added the comment: I'm curious what the best way to do this would be. Obviously the simplest would just be 'See also list comprehensions.' However since this is a tutorial, I was thinking of adding something like this: 'In other languages, for loops are

[issue20265] Bring Doc/using/windows up to date

2014-02-17 Thread Westley Martínez
Westley Martínez added the comment: I personally like this page about environment variables: http://www.computerhope.com/issues/ch000549.htm It is clear, concise, and has pretty pictures. However, it does not address Windows 8. Since Windows 8 is becoming more popular everyday, and since it

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2014-02-17 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +anikom15 ___ Python tracker <http://bugs.python.org/issue1100942> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-12-04 Thread Westley Martínez
Westley Martínez added the comment: Sounds good to me. -- ___ Python tracker <http://bugs.python.org/issue18840> ___ ___ Python-bugs-list mailing list Unsub

[issue11176] give more meaningful argument names in argparse documentation

2013-09-23 Thread Westley Martínez
Westley Martínez added the comment: I've skimmed through the patches. Good job kids. This is much better than it was before. No more of that silly command-line calculator or the foobar nonsense that sounds drier than the POSIX standard. Is there anything else that needs to be

[issue18844] allow weights in random.choice

2013-09-15 Thread Westley Martínez
Westley Martínez added the comment: I think Storchaka's solution is more transparent and I agree with him on the point that the choice generator should be exposed. -- ___ Python tracker <http://bugs.python.org/is

[issue18903] IDLE file-completion is case-sensitive in Windows

2013-09-10 Thread Westley Martínez
Westley Martínez added the comment: I've written a patch that sort of implements the functionality that makes the most sense to me. The problem is it only works right for the first entry. It's kind of wonky and I'm not entirely sure how it behaves, nor do I know the cause

[issue18903] IDLE file-completion is case-sensitive in Windows

2013-09-08 Thread Westley Martínez
Westley Martínez added the comment: My example was totally abstract and untested. Sorry for any confusion. After doing some research, I find that this issue is complicated further: http://support.microsoft.com/kb/100625 I think we can assume that running into a situation where there are

[issue18903] IDLE file-completion is case-sensitive in Windows

2013-09-07 Thread Westley Martínez
Westley Martínez added the comment: I believe HFS is case-preserving as well, but it also can be configured to be case-sensitive. I'm not a Mac owner though so don't take my word for it. -- ___ Python tracker <http://bugs.python.o

[issue18903] IDLE file-completion is case-sensitive in Windows

2013-09-01 Thread Westley Martínez
New submission from Westley Martínez: Hi, I'm not sure if this would be considered a bug or a feature request, but IDLE's file-completion is case-sensitive in Windows (e.g. if I have a file named ABBA and I type in 'abb' + tab, ABBA won't pop up. Since Windows fi

[issue18844] allow weights in random.choice

2013-09-01 Thread Westley Martínez
Westley Martínez added the comment: Honestly, I think adding weights to any of the random functions are trivial enough to implement as is. Just because something becomes a common task does not mean it ought to be added to the stdlib. Anyway, from a user point of view, I think it'd be u

[issue18844] allow weights in random.choice

2013-08-31 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +anikom15 ___ Python tracker <http://bugs.python.org/issue18844> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-08-30 Thread Westley Martínez
Westley Martínez added the comment: Here's a patch that adds the warning, if we so choose to keep pickle in the tutorial. It's taken verbatim from the pickle module's documentation. -- keywords: +patch Added file: http://bugs.python.org/file31524/pickle-add-war

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-08-30 Thread Westley Martínez
Westley Martínez added the comment: I won't question the usefulness of JSON. I'm not a web programmer and have never used it. From my interpretation of the tutorial, it seems that the section's purpose is for storing python objects. If pickle is going to stay in the tuto

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2013-08-30 Thread Westley Martínez
Westley Martínez added the comment: On 3.4.0a1 on Windows it seems to come up automatically with \ or \\. A single \ will only pop up with the tab key; I think it's good that way. Special characters (i.e. æ) work normally. All this said, I think this issue is

[issue18840] Tutorial recommends pickle module without any warning of insecurity

2013-08-30 Thread Westley Martínez
Westley Martínez added the comment: How about we simply add the warning from http://docs.python.org/3/library/pickle.html#module-pickle to the beginning (or end) of the section? The Official Python Tutorial has always assumed a certain programmer's competence. It's up to them if

[issue14974] rename packaging.pypi to packaging.index

2013-08-30 Thread Westley Martínez
Westley Martínez added the comment: I think I like the term catalog myself, but I'm not wholly opposed to index. I think it is certainly better than pypi. Although the namespace does reduce the genericness of index, a lot of programmers (including me) like to use the from namespace imp

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2013-08-29 Thread Westley Martínez
Westley Martínez added the comment: On Thu, Oct 11, 2012 at 3:06 PM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > This patch (I suspect it is this one) disabled the use of '/' in filenames on > windows when using filename completion. > > &#

[issue13951] Document that Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2013-08-29 Thread Westley Martínez
Westley Martínez added the comment: Can we have this committed? -- ___ Python tracker <http://bugs.python.org/issue13951> ___ ___ Python-bugs-list mailin

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-06-02 Thread Westley Martínez
Westley Martínez added the comment: You're right. The code shouldn't *have* to check if the name is valid. It should just accept that the name is already valid. This would simplify things. Here's the problem: the code needs to find the index of where the string with the

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-06-02 Thread Westley Martínez
Westley Martínez added the comment: Ahh okay, sorry for the triple post, I have an idea. On UNIX, the function should accept any character except: \0 /, and on Windows should accept any character except: \0 \ / : * ? " < > | On classic Macintosh, : is invalid. However, I do no

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-06-02 Thread Westley Martínez
Westley Martínez added the comment: Also, shouldn't the space character ' ' be included? -- ___ Python tracker <http://bugs.python.org/issue14937> ___ __

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-06-02 Thread Westley Martínez
Westley Martínez added the comment: I think a better technique would be to expand FILENAME_CHARS to include more characters. -- nosy: +anikom15 ___ Python tracker <http://bugs.python.org/issue14

[issue14974] rename packaging.pypi to packaging.index

2012-06-02 Thread Westley Martínez
Westley Martínez added the comment: -1 index is too generic to convey any kind of meaning and can be confused--atleast for me--with list.index. Sometimes it is better for a name to be specific. -- nosy: +anikom15 ___ Python tracker <h

[issue14972] listcomp with nested classes

2012-05-31 Thread Westley Martínez
Westley Martínez added the comment: $ python Python 3.2.3 (default, Apr 23 2012, 23:35:30) [GCC 4.7.0 20120414 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> class A: ... x = 42 ...

[issue14135] check for locale changes in test.regrtest

2012-03-03 Thread Westley Martínez
Westley Martínez added the comment: Here's a test that checks for changes to the locale. -- nosy: +anikom15 Added file: http://bugs.python.org/file24724/test_14135.py ___ Python tracker <http://bugs.python.org/is

[issue13951] Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2012-03-03 Thread Westley Martínez
Changes by Westley Martínez : Added file: http://bugs.python.org/file24723/cpython-13951-pre3.3.patch ___ Python tracker <http://bugs.python.org/issue13951> ___ ___ Pytho

[issue13951] Seg Fault in .so called by ctypes causes the interpreter to Seg Fault

2012-03-03 Thread Westley Martínez
Westley Martínez added the comment: Hi I found this bug randomly and have made two small patches to change the documentation. One assumes that the faulthandler module is available for 3.3. The other patch is for earlier versions of Python. -- keywords: +patch nosy: +anikom15

[issue14185] Failure to build _dbm with ndbm on Arch Linux

2012-03-03 Thread Westley Martínez
New submission from Westley Martínez : When building Python I get this: "building dbm using ndbm *** WARNING: renaming "_dbm" since importing it failed: build/lib.linux-i686-3.3-pydebug/_dbm.cpython-33dm.so: undefined symbol: dbm_nextkey Failed to build these modules: _dbm

[issue13193] test_packaging and test_distutils failures

2011-10-26 Thread Westley Martínez
Westley Martínez added the comment: http://www.archlinux.org/download/ It's a minimalist distribution but if you read through the install guide or beginner's guide you'll be fine. -- ___ Python tracker <http://bugs.pyt

[issue13230] test_resources fails

2011-10-19 Thread Westley Martínez
New submission from Westley Martínez : After running the uber test on the latest build of python (./python -bb -E -Wd -m test -r -w -uall) I get one error: == ERROR: test_resources

[issue11340] test_distutils fails because of borked compress program

2011-09-06 Thread Westley Martínez
Westley Martínez added the comment: https://bugs.archlinux.org/task/25908 Looks like Allan will be taking care of this problem (eventually). I think this bug can be closed. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue11340] test_distutils fails because of borked compress program

2011-09-04 Thread Westley Martínez
Westley Martínez added the comment: I emailed the Arch Linux people to get more information on this particular issue. If they decide that the compress program will stay as is I will write attempt to write a patch to skip the test based on the output of compress's --version

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-09-04 Thread Westley Martínez
Westley Martínez added the comment: ¡Hola! Just checking in. The documentation is still incorrect for all versions. There's a patch that fixes it ready to be reviewed. -- ___ Python tracker <http://bugs.python.org/is

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-09-04 Thread Westley Martínez
Westley Martínez added the comment: Is there anything preventing the patch from being committed? -- ___ Python tracker <http://bugs.python.org/issue11

[issue11176] give more meaningful argument names in argparse documentation

2011-07-19 Thread Westley Martínez
Westley Martínez added the comment: I worked on this some time ago; the problem was the size of the documentation, i.e. it was difficult to stay consistent. Do I have time for this? Yes, but I wouldn't get it done anytime soon, and the results could be anywhere from good to bad.

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-04-16 Thread Westley Martínez
Westley Martínez added the comment: Can this patch be commited? -- ___ Python tracker <http://bugs.python.org/issue11155> ___ ___ Python-bugs-list mailin

[issue11340] test_distutils fails because of borked compress program

2011-04-01 Thread Westley Martínez
Westley Martínez added the comment: I've already got a patch ready for #11678. As for checking the compress command, perhaps we can accomplish it by comparing version information of the program: $ compress --version compress 1.4 Copyright (C) 2007 Free Software Foundation, Inc. Copyrig

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-31 Thread Westley Martínez
Westley Martínez added the comment: Perhaps I wasn't clear. That release version isn't for the system. It's for the installation disc. There's no way to get that info and it means nothing to anyone anyways. All users of Arch are expected to have their system fully up to

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-30 Thread Westley Martínez
Westley Martínez added the comment: In that case, I've made a patch that changes the documentation so that "item" is now "obj". for Queue.put and Queue.put_nowait. -- Added file: http://bugs.python.org/file21484/doc-11155.diff _

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Westley Martínez
Westley Martínez added the comment: Well it's been quite some time and no response yet. -- ___ Python tracker <http://bugs.python.org/issue11155> ___ ___

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-29 Thread Westley Martínez
Westley Martínez added the comment: That's the release version for the installation disc. -- ___ Python tracker <http://bugs.python.org/issue11678> ___ ___

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-28 Thread Westley Martínez
Westley Martínez added the comment: ('arch', '', '') -- ___ Python tracker <http://bugs.python.org/issue11678> ___ ___ Python-bugs-

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-26 Thread Westley Martínez
Westley Martínez added the comment: I forgot to say, Arch Linux is rolling release so it doesn't have a version or id. -- ___ Python tracker <http://bugs.python.org/is

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-26 Thread Westley Martínez
Westley Martínez added the comment: Patch. -- keywords: +patch Added file: http://bugs.python.org/file21410/cpython-11678.diff ___ Python tracker <http://bugs.python.org/issue11

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-25 Thread Westley Martínez
New submission from Westley Martínez : This comes from Issue 11340 <http://bugs.python.org/issue11340>. Adding support for Arch Linux to platform.linux_distributions() will allow a distutils test to be skipped for Arch. The Arch Linux website: http://www.archlin

[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez
Westley Martínez added the comment: So how do other distros do it? -- ___ Python tracker <http://bugs.python.org/issue11340> ___ ___ Python-bugs-list mailin

[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez
Westley Martínez added the comment: ('', '', '') :D I'm using Arch Linux. -- ___ Python tracker <http://bugs.python.org/issue11340> ___ ___

[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez
Westley Martínez added the comment: I may have figured out the problem. The test checks if the archive's extension is '.tar.Z', but the compress command on my computer appends the .gz extension to the file. To my surprise, the gunzip command worked on the file. So the compr

[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez
Westley Martínez added the comment: test_check_archive_formats (__main__.ArchiveUtilTestCase) ... ok test_compress_deprecated (__main__.ArchiveUtilTestCase) ... FAIL test_make_archive (__main__.ArchiveUtilTestCase) ... ok test_make_archive_cwd (__main__.ArchiveUtilTestCase) ... ok

[issue11340] test_distutils fails

2011-03-05 Thread Westley Martínez
Westley Martínez added the comment: Arch Linux kernel 2.6.37.2 glibc 2.13 -- ___ Python tracker <http://bugs.python.org/issue11340> ___ ___ Python-bugs-list m

[issue11341] test_os fails

2011-02-26 Thread Westley Martínez
Westley Martínez added the comment: > You are not running under a VM or something? No -- ___ Python tracker <http://bugs.python.org/issue11341> ___ ___ Py

[issue11341] test_os fails

2011-02-26 Thread Westley Martínez
Westley Martínez added the comment: rev 88657 Arch Linux 2.6.37 x86_64 with glibc2.6 64-bit, little endian -- ___ Python tracker <http://bugs.python.org/issue11

[issue11341] test_os fails

2011-02-26 Thread Westley Martínez
New submission from Westley Martínez : test_invalid_offset failed on linux2. -- components: Tests files: test_os messages: 129589 nosy: anikom15 priority: normal severity: normal status: open title: test_os fails versions: Python 3.3 Added file: http://bugs.python.org/file20924/test_os

[issue11340] test_distutils fails

2011-02-26 Thread Westley Martínez
New submission from Westley Martínez : test_compressed_deprecated failed -- components: Tests files: test_distutils messages: 129588 nosy: anikom15 priority: normal severity: normal status: open title: test_distutils fails type: behavior versions: Python 3.3 Added file: http

[issue11176] give more meaningful argument names in argparse documentation

2011-02-10 Thread Westley Martínez
Westley Martínez added the comment: I agree; it's too artsy. I'll see if I can come up with a relevant and clever alternative. -- nosy: +anikom15 ___ Python tracker <http://bugs.python.o

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-02-08 Thread Westley Martínez
Westley Martínez added the comment: I've gone through Lib/multiproccing/queues.py and have replaced obj with item. Here's the patch. -- keywords: +patch nosy: +anikom15 Added file: http://bugs.python.org/file20720/multiprocessing-

[issue11137] clarify use of imaplib IMAP4(_SSL) shutdown

2011-02-06 Thread Westley Martínez
Westley Martínez added the comment: Perhaps we should say something regarding that shutdown, and similar methods, must be called after open. -- nosy: +anikom15 ___ Python tracker <http://bugs.python.org/issue11

[issue8691] Doc: left alignment is not the default for numbers

2011-02-05 Thread Westley Martínez
Westley Martínez added the comment: It seems > is only the default for numbers. < is the default for strings, lists, sets, dicts, etc. I have made a patch, though Eric knows the exact semantics. I wonder what the rationale for having numbers use < is. -- keywords: +p

[issue9362] Make exit/quit hint more novice friendly

2011-01-30 Thread Westley Martínez
Westley Martínez added the comment: This is annoying. Every beginner's Python tutorial I've read made it very clear how to exactly exit the interactive shell. Ctrl has been in use for years. Changing it for novices' sake is ridiculous. Do we need to expand every abbreviati