[issue36054] Way to detect CPU count inside docker container

2019-10-01 Thread Mike
Mike added the comment: Is this issue still being worked on as a core feature? I needed a solution for this using 2.7.11 to enable some old code to work properly/nicely in a container environment on AWS Batch and was forced to figure out what OpenJDK was doing and came up with a solution

[issue38812] Comparing datetime.time objects incorrect for TZ aware and unaware

2019-11-15 Thread Mike
New submission from Mike : import pytz import datetime tzaware_time1 = datetime.time(7,30,tzinfo=pytz.timezone("America/Denver")) tzaware_time2 = datetime.time(7,30,tzinfo=pytz.utc) tzunaware_time = datetime.time(7, 30) # This fails with exception: TypeError: can't compare o

[issue38812] Comparing datetime.time objects incorrect for TZ aware and unaware

2019-11-17 Thread Mike
Mike added the comment: Ok. I'll file a bug on pytz. Thanks! On Sat, Nov 16, 2019 at 11:18 PM Karthikeyan Singaravelan < rep...@bugs.python.org> wrote: > > Change by Karthikeyan Singaravelan : > > > -- > nosy: +p-ganssle > > _

[issue40581] scipy's differential_evolution bug

2020-05-09 Thread Mike
New submission from Mike : I have a random bug with scipy's optimize . I use it in the context of SageMath (Python 3.7.3). I checked 3 algorithms : shgo, dual_annealing and full_optimize. All don't work well (at all !). I optimise with a 3 parameters functions with given b

[issue40581] scipy's differential_evolution bug

2020-05-09 Thread Mike
Mike added the comment: ok thank you Christian. I will do. > Le 9 mai 2020 à 23:06, Christian Heimes a écrit : > > > Christian Heimes added the comment: > > SciPy and Sage are 3rd party extensions to CPython and not maintained by us. > Please report the issue

[issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

2012-01-19 Thread mike
mike added the comment: Hi, I downloaded source and did the following instructions. We use Red Hat Enterprise Linux Server release 5.5. ./configure --prefix=/home/mike/python_rh_32 make make install I also changed the line in site.py from: s = os.path.join(os.path.dirname

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-04-25 Thread Mike
New submission from Mike: The documentation for BaseHTTPRequestHandler explicitly prohibits protocol violations when writing to the `wfile` stream: > BaseHTTPRequestHandler has the following instance variables: > > [...] > > **`wfile`** > > > Contains the output strea

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-04-25 Thread Mike
Mike added the comment: That would certainly satisfy me! -- ___ Python tracker <http://bugs.python.org/issue30160> ___ ___ Python-bugs-list mailing list Unsub

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-04-26 Thread Mike
Changes by Mike : -- pull_requests: +1407 ___ Python tracker <http://bugs.python.org/issue30160> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-01 Thread Mike
Mike added the comment: My CLA signature has been verified, but based on the most recent comments, I'm not sure if something needs to change in this patch. Is there anything I can doto help this land? -- ___ Python tracker <http://bugs.py

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Mike
Mike added the comment: It's been about a month since I heard back, so I thought I'd comment here just in case this slipped of anyone's radar. Is there anything I can doto help this land? -- ___ Python tracker <http://bugs.pyt

[issue30160] BaseHTTPRequestHandler.wfile: supported usage unclear

2017-05-24 Thread Mike
Mike added the comment: My pleasure. And thank you for backporting on my behalf :) -- ___ Python tracker <http://bugs.python.org/issue30160> ___ ___ Python-bug

[issue18428] IDLE startup error

2013-07-11 Thread Mike
New submission from Mike: Python used to run smoothly on my macbook, but since I opened the debugger yesterday, the IDLE window cannot be opened anymore. It shows an error message "IDLE's subprocess didn't make connection". I tried to uninstall everything and downlo

[issue18428] IDLE startup error

2013-07-12 Thread Mike
Mike added the comment: Thanks Ned, I have solved the issue by deleting all my previous py files on my computer. But I couldn't figure out what really triggered this error, as those files did not create any problems before. -- ___ Python tr

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-07 Thread Mike
Mike added the comment: Sorry, I only started learning Python a couple of weeks ago. Didn't know that there was a ConfigParser module. So this would really be a feature request of ConfigParser? Interesting you should mention Postel's Law. Being liberal about what you accept f

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-08 Thread Mike
Mike added the comment: Hi Vinay, I will bow to your greater expertise on this and will let this go. It looks like it will be far more easier and robust just to invent my own logging config file format and read it myself. Thanks for your help. Mike. -- status: open -> clo

[issue7121] ImportError of urllib.request & http.client under PYTHONHOME/Lib

2009-10-13 Thread mike
New submission from mike : There's a python program in the attached file http.py, I import urllib.request in http.py, and urllib.request imports http.client. When I try to run http.py by command "python http.py", the error is as below: Traceback (most recent call last):

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-02 Thread Mike
New submission from Mike : Hi, I had a logging.conf file with the following logger def in it: [logger_Builder] level=DEBUG handlers=consoleStderr qualname=Builder propogate=0 And I couldn't understand why all my log messages were coming out twice. It took me four hours :-\ to realise

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-03 Thread Mike
Mike added the comment: Fair point. Agree that this is a feature request. Perhaps something like: logging.config.fileConfig(path, strict=False) -- ___ Python tracker <http://bugs.python.org/issue6

[issue29437] installation not listed for all users

2017-02-03 Thread Mike
New submission from Mike: When installing Python 3.6 using the official installer and selecting "install for all users" from an account with admin privileges, the installation completes successfully and it shows in the list of installed programs for that user. However, be

[issue26413] python 3.5.1 uses wrong registry in system-wide installation

2016-02-22 Thread Mike
New submission from Mike: The installer for python 3.5.1 (observed with the x64-86 executable installer, assumed to happen with all installers) allows users to install python either just for themselves or do a system-wide installation (provided they have sufficient privileges). However, when

[issue10483] http.server - what is executable on Windows

2021-12-20 Thread mike mcleod
Change by mike mcleod : -- pull_requests: +28437 pull_request: https://github.com/python/cpython/pull/30216 ___ Python tracker <https://bugs.python.org/issue10

[issue1284670] Allow to restrict ModuleFinder to get "direct" dependencies

2021-12-22 Thread mike mcleod
Change by mike mcleod : -- pull_requests: +28450 pull_request: https://github.com/python/cpython/pull/30228 ___ Python tracker <https://bugs.python.org/issue1284

[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2021-12-24 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. I'm new to this space hence I am not aware of what patch review means. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/i

[issue24364] Not all defects pass through email policy

2021-12-24 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue24364> ___ ___ Pytho

[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Mike Schiessl
New submission from Mike Schiessl : Using the TimedRotatingFileHandler along with "when='midnight'" and interval > 1, midnight is handled equally to "days" which is a little misleading. Expectation: setting when to 'midnight', the file is rotate

[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Mike Schiessl
Mike Schiessl added the comment: i've just checked PR and you're right, something with the PR went wrong. Anyway, midnight (at least from the wording) specifies the "atTime". (which should be midnight). Again, if there's (by mistake) an interval bigger than 1 se

[issue46377] TimedRotatingFileHandler "midnight" misleading when interval > 1

2022-01-14 Thread Mike Schiessl
Mike Schiessl added the comment: Yes, enforcing interval == 1 or interval == None (which pulls the TimedRotatingFileHandler class __init__ default value which is also 1) works perfectly with midnight. I do not see any urge on that topic - as I personally now know the issue :D - but I

[issue10202] ftplib doesn't check close status after sending file

2022-01-15 Thread mike mcleod
mike mcleod added the comment: Working.. should be able to create pull request soon. Note part of suggestions include using SIOCOUTQ, but this does not have an equivalent for windows. And as Murphy's law goes this is likely to be where the probl

[issue10202] ftplib doesn't check close status after sending file

2022-01-21 Thread mike mcleod
Change by mike mcleod : -- keywords: +patch pull_requests: +28934 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30747 ___ Python tracker <https://bugs.python.org/issu

[issue10434] Document the rules for "public names"

2022-01-21 Thread mike mcleod
mike mcleod added the comment: I would like to help on this issue. Is there anyone available to push a PR through? If I make the changes. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue10

[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest

2022-01-21 Thread mike mcleod
mike mcleod added the comment: I would like to help on this issue. -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue1521051> ___ ___ Pytho

[issue32658] Metacharacter (\) documentation suggestion

2022-01-21 Thread mike mcleod
mike mcleod added the comment: I would like to help with this issue. Is that acceptable? -- nosy: +mikecmcleod ___ Python tracker <https://bugs.python.org/issue32

[issue32442] file_open unc

2022-02-05 Thread Mike Auty
Change by Mike Auty : -- title: Result of pathlib.Path.resolve() with UNC path is not very useful -> file_open unc ___ Python tracker <https://bugs.python.org/issu

[issue32442] Result of pathlib Path.resolve() with UNC path is not very useful

2022-02-05 Thread Mike Auty
Mike Auty added the comment: Sorry for the spam, thought I was in a different text box. 5:( -- nosy: +ikelos title: file_open unc -> Result of pathlib Path.resolve() with UNC path is not very useful ___ Python tracker <https://bugs.pyth

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
New submission from Mike Auty : I've found open to have difficulty with a resolved pathlib path: Example code of: import pathlib path = "Z:\\test.py" with open(path) as fp: print("Stock open: works") data = fp.read() with open(pathlib.Pa

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: > Why are you adding `.as_uri()`? The API we provide accepts URIs, so whilst the example seems a little contrived, the code itself expects a URI and then calls open (making use of the ability to add open handlers). > Builtin open() calls C open(). As

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: My bad, sorry, I realized I was conflating open with urllib.request.urlopen. I believe the issue still exists though, sorry for the confusion. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: Here's the revised code sample: import pathlib import urllib.request path = "Z:\\test.py" print(f"Stock open: {pathlib.Path(path).as_uri()}") with urllib.request.urlopen(pathlib.Path(path).as_uri()) as f

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: I can confirm that url2pathname work with either number of slashes, and that open_file appears to have had the file: removed. However, in even if the check in open_file were bypassed, it calls open_local_file, which then strips any host before calling

[issue46654] urllib.request.urlopen doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Change by Mike Auty : -- title: file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes) -> urllib.request.urlopen doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths w

[issue43882] [security] CVE-2022-0391: urllib.parse should sanitize urls containing ASCII newline and tabs.

2022-02-06 Thread Mike Lissner
Mike Lissner added the comment: Looks like that CVE isn't public yet. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0391 Any chance I can get access (I originally reported this vuln.). My email is m...@free.law, if it's possible and my email is neede

[issue46751] Windows-style path is not recognized under cygwin

2022-02-14 Thread Mike Kaganski
New submission from Mike Kaganski : Using cyqwin 3.3.4-2, and python3: Python 3.9.10 (main, Jan 20 2022, 21:37:52) [GCC 11.2.0] on cygwin Trying this bash command line: > python3 C:/path/to/script.py results in this error: "python3: can't open file '/cygdrive/c/path/to

[issue46751] Windows-style path is not recognized under cygwin

2022-02-14 Thread Mike Kaganski
Mike Kaganski added the comment: Thanks for looking at this! > Are you running from bash (or another cygwin shell), or from cmd.exe, or > something else? :) Citing myself: > Trying this *bash* command line: > To my knowledge, cygwin's installer doesn't have a 3

[issue46751] Windows-style path is not recognized under cygwin

2022-02-14 Thread Mike Kaganski
Mike Kaganski added the comment: > As for 3.9: it's not available through the 64 bit installer (at least, I > don't see it there). I'll look and see what's involved in installing it. I don't remember if I did something special to install it; however, just mayb

[issue852532] ^$ won't split on empty line

2007-09-03 Thread Mike Coleman
Mike Coleman added the comment: Well, I think we can conclude that it's expected by *them*. :-) I still find it surprising, and it somewhat lessens the utility of re.split for my use cases. (I think re.finditer may also suffer from the same problem, but I don't recall.) If you l

[issue1204] readline configuration for shared libs w/o curses dependencies

2007-09-25 Thread Mike Beachy
New submission from Mike Beachy: For RHEL 3 (and it also appears RHEL 4 and 5) the libreadline shared lib has no specified lib requirement that satisfies the tgetent and related symbols. (These symbols are provided by ncursesw, ncurses, curses, termcap as noted in the python setup.py.) The

[issue1274] doctest fails to run file based tests with 8bit paths

2007-10-12 Thread Mike Taylor
New submission from Mike Taylor: In our builds the included patch fixes this issue. Patch by Brian Kirsch, tested at OSAF on Python 2.5.1 -- nosy: +bear __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1274] doctest fails to run file based tests with 8bit paths

2007-10-12 Thread Mike Taylor
Changes by Mike Taylor: -- components: Tests severity: major status: open title: doctest fails to run file based tests with 8bit paths type: behavior versions: Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1663329] subprocess/popen close_fds perform poor if SC_OPEN_MAX is hi

2007-10-15 Thread Mike Klaas
Mike Klaas added the comment: This problem has also afflicted us. Attached is a patch which adds closerange(fd_low, fd_high) to the posix (and consequently os) module, and modifies subprocess to use it. Patch is against trunk but should work for 2.5maint. I don't really think that th

[issue1663329] subprocess/popen close_fds perform poor if SC_OPEN_MAX is hi

2007-10-15 Thread Mike Klaas
Mike Klaas added the comment: I see that some spaces crept in to the patch. I can fix that (and perhaps rename the function to start with an underscore) if desired. _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1663329] subprocess/popen close_fds perform poor if SC_OPEN_MAX is hi

2007-10-15 Thread Mike Klaas
Mike Klaas added the comment: Finally, I did not include any platform-specific optimizations, as I don't have AIX or solaris boxes on which to test them (and they can easily be added later). An order-mag speedup on all *nix platforms is a good

[issue1516330] Module uuid: functions for retrieving MAC addres

2007-10-31 Thread Mike Klaas
Mike Klaas added the comment: Is this meant to be inserted into uuid.py? It seems more like a snippet from unrelated code: code coventions do not follow PEP 8; there are no tests; code does not run as-is (references non-existent variable '_os'-- why no 'import os'?); e

[issue1516327] Module uuid: reduce pickle footprint

2007-10-31 Thread Mike Klaas
Mike Klaas added the comment: Is the footprint of UUID an issue? Note that changing the pickle format of UUID will require code that can unpickle both versions, for compatibility. I don't really see the need. Also, no real patch provided. -- nosy: +

[issue1705170] contextmanager eats StopIteration

2007-10-31 Thread Mike Klaas
Mike Klaas added the comment: Verified on 2.5.0. The problem stems from contextmanager.__exit__: def __exit__(self, type, value, traceback): if type is None: try: self.gen.next() except StopIteration: return else

[issue1773632] Remove references to _xmlrpclib from xmlrpclib.py

2007-10-31 Thread Mike Klaas
Mike Klaas added the comment: Patch applies to 2.5 cleanly, test_xmlrpc passes. -- nosy: +klaas _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue738948] Logic Variable Thread Synchronization

2007-10-31 Thread Mike Klaas
Mike Klaas added the comment: PEPs should be proposed on python-list and python-dev. This is a four- year-old idea that seems quite profound in the changes proposed. Recommend closing. -- nosy: +klaas Tracker <[EMAIL PROTECTED]>

[issue737648] Error on handling nan

2007-11-06 Thread Mike Verdone
Mike Verdone added the comment: For the benefit of those who stumble here through Google, here's a workaround I've discovered for NaN testing. This is BAD: value == float('NaN') But this seems to work ok: str(value) == str(float('NaN')) -- nosy: +mike.ve

[issue13075] PEP-0001 contains dead links

2011-09-30 Thread Mike Hoy
Mike Hoy added the comment: I'm working on making a patch for this. I just want to confirm that the information I found is correct: Article Name OLD URL ARCHIVED URL How Python is Developed OLD: http://www.python.org/dev/intro/ ARCHIVE: http://www.etsimo.uniovi.es/python/dev/

[issue13075] PEP-0001 contains dead links

2011-09-30 Thread Mike Hoy
Mike Hoy added the comment: Of course I would be creating new articles based on the archived pages. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13075] PEP-0001 contains dead links

2011-10-01 Thread Mike Hoy
Mike Hoy added the comment: Added links under Resources to the new Dev Guide. Added a link to the Guide itself and a link to the faq. -- keywords: +patch Added file: http://bugs.python.org/file23289/pep-0001-broken-links.diff ___ Python tracker

[issue12436] Missing items in installation/setup instructions

2011-10-06 Thread Mike Hoy
Mike Hoy added the comment: > - How to prepare a text editor See: http://docs.python.org/dev/using/unix.html#editors > - How to run Python code from a file (if the tutorial or using docs don’t > already have it). See: http://docs.python.org/dev/using/unix.html#miscellaneous --

[issue12823] Broken link in "SSL wrapper for socket objects" document

2011-10-06 Thread Mike Hoy
Mike Hoy added the comment: Patch to remove broken link. -- keywords: +patch nosy: +mikehoy Added file: http://bugs.python.org/file23334/SSL-broken-link.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12192] Doc that collection mutation methods return item or None

2011-10-07 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue12192> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12602] Missing using docs cross-references

2011-10-07 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue12602> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12436] Missing items in installation/setup instructions

2011-10-07 Thread Mike Hoy
Mike Hoy added the comment: > Thanks Mike! So the first item is covered (at least for UNIX, can you > check the Windows docs too?), but not the second. http://docs.python.org/dev/using/windows.html Makes no reference to preparing a text editor. This I could help with but... >

[issue12436] Missing items in installation/setup instructions

2011-10-07 Thread Mike Hoy
Mike Hoy added the comment: > mostly to recommend Notepad++ I think. In addition to Notepad++ do you think it would be a good idea to at least mention Vim and Emacs with a disclaimer about the learning curve? > For Windows users, added a section about how to use a terminal and Do you

[issue3902] Packages containing only extension modules have to contain __init__.py

2011-10-07 Thread Mike Hoy
Mike Hoy added the comment: > We’re working on a patch on the core-mentorship list. Éric, I emailed the diff to the Core-Mentorship list, but since there was no reply I will just attach it here. Please review patch and let me know if you want any changes. -- keywords: +patch n

[issue12192] Doc that collection mutation methods return item or None

2011-10-08 Thread Mike Hoy
Mike Hoy added the comment: Created a patch based on suggestions here. -- keywords: +patch Added file: http://bugs.python.org/file23346/return-none.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12436] Missing items in installation/setup instructions

2011-10-09 Thread Mike Hoy
Mike Hoy added the comment: Here is what I have so far: > For Windows users, added a section about how to use a terminal How to use a terminal Open a command prompt: * On Windows Vista or Windows 7: click on the Start menu (the Windows logo in the lower left of the screen), type cmd i

[issue3902] Packages containing only extension modules have to contain __init__.py

2011-10-09 Thread Mike Hoy
Mike Hoy added the comment: Submitted v2 of my patch after reading Éric's review of my first. -- Added file: http://bugs.python.org/file23360/apiref-setupscript-v2.diff ___ Python tracker <http://bugs.python.org/i

[issue12602] Missing cross-references in Doc/using

2011-10-09 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: -mikehoy ___ Python tracker <http://bugs.python.org/issue12602> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3902] Packages containing only extension modules have to contain __init__.py

2011-10-10 Thread Mike Hoy
Mike Hoy added the comment: Responded to first question in apiref and uploaded a new patch that wraps lines at 80 characters. -- Added file: http://bugs.python.org/file23369/apiref-setupscript-v3.diff ___ Python tracker <http://bugs.python.

[issue3902] Packages containing only extension modules have to contain __init__.py

2011-10-11 Thread Mike Hoy
Mike Hoy added the comment: setupscript did not have the changes that were made in apiref. v4 is now consistent and line wrapping at 80 chars. -- Added file: http://bugs.python.org/file23384/apiref-setupscript-v4.diff ___ Python tracker <h

[issue13154] pep-0000.txt doesn't build anymore

2011-10-12 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue13154> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13154] pep-0000.txt doesn't build anymore

2011-10-12 Thread Mike Hoy
Mike Hoy added the comment: :~/peps$ find . -name "*.txt" | xargs grep "canterbury" ./pep-3152.txt:Author: Gregory Ewing ./pep-0380.txt:Author: Gregory Ewing ./pep-0284.txt:Greg Ewing ./pep-0335.txt:Author: Gregory Ewing Looks like pep-0335.txt has a "Gregor

[issue13191] Typo in argparse documentation

2011-10-16 Thread Mike Hoy
New submission from Mike Hoy : In the Docs mailing list a typo was pointed out in argparse docs. http://docs.python.org/dev/library/argparse.html#metavar > "So, a single positional argument with dest='bar' will that argument > will be referred to as bar." > &quo

[issue11776] types.MethodType() params and usage is not documented

2011-10-16 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue11776> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-10-16 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue11638> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12944] Accept arbitrary files for packaging's upload command

2011-10-16 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue12944> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13198] Remove duplicate definition of write_record_file

2011-10-21 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue13198> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13341] Incorrect documentation for "u" PyArg_Parse format unit

2011-11-04 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker <http://bugs.python.org/issue13341> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13459] logger.propagate=True behavior clarification

2011-11-22 Thread Mike Fogel
New submission from Mike Fogel : Hi, there's been a fair amount of confusion over the interaction between logger.propagate and the ancestor logger's handlers and level. http://bugs.python.org/issue7535 http://bugs.python.org/issue8327 http://bugs.python.org/issue9606 I think

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
New submission from mike c : Could a test be added to ./Lib/test/test_defaultdict.py to test for TypeError being thrown when the the first argument to collections.defaultdict is not callable? pypy does not behave the same way as CPython 2.7.2 as the problem is not covered in the testcases

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
mike c added the comment: Cloning repo. Reading the devguide. Patch forthcoming. -- ___ Python tracker <http://bugs.python.org/issue13531> ___ ___ Python-bug

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
mike c added the comment: Patch to add a defaultdict test which checks that if the first argument is not callable, then a TypeError is thrown. -- keywords: +patch Added file: http://bugs.python.org/file23855/defaultdict_callable_test.patch

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
mike c added the comment: patch v2. Now with assertRaises()! -- Added file: http://bugs.python.org/file23856/defaultdict_callable_test_v2.patch ___ Python tracker <http://bugs.python.org/issue13

[issue12190] intern filenames in bytecode

2011-05-26 Thread Mike Solomon
New submission from Mike Solomon : I work on a large app and we noticed that a surprising portion of our heap was filenames embedded the the bytecode. This one-line patch to intern filenames reduces our on-disk size about ~15% and brings down our heap and in-memory object count by a similar

[issue12190] intern filenames in bytecode

2011-05-26 Thread Mike Solomon
Mike Solomon added the comment: If you have a file with say a hundred functions, and each function contains the full path of that file on disk, your pyc file will contain about (100*(path_size+overhead)) bytes. In some cases, this is pretty significant. On Thu, May 26, 2011 at 12:47 PM

[issue12190] intern filenames in bytecode

2011-05-27 Thread Mike Solomon
Mike Solomon added the comment: The in-memory fix is really the most important - the disk space was a bonus and an easy metric to gather. Unfortunately, our app won't be upgrading to python 3.x. On Fri, May 27, 2011 at 7:10 AM, Benjamin Peterson wrote: > > Benjamin Peterson

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-05 Thread mike bayer
mike bayer added the comment: regarding "hey this is an MS bug not Python", projects which feature optional C extensions are starting to apply workarounds for the issue on their end (I will need to commit a specific catch for this to SQLAlchemy) - users need to install our softw

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-06-06 Thread mike bayer
mike bayer added the comment: > I think it's fair to ask the user to setup the environment correctly before running "python setup.py install" We're supporting automatic fallback to non-C install for those environments that don't support it. We'

[issue12717] ConfigParser._Chainmap error in 2.7.2

2011-08-09 Thread Mike Garabedian
New submission from Mike Garabedian : Issue 11089 submitted a patch to 3.2 and 2.7 to address performance concerns with the latest updates to ConfigParser. In the implementation for 2.7.2, this patch was misapplied in the keys() function on line 573: for mapping in self_maps: should be

[issue12717] ConfigParser._Chainmap error in 2.7.2

2011-08-09 Thread Mike Garabedian
Mike Garabedian added the comment: Happy to help! Raymond - I came across this issue while reviewing notes from your OSCON Advanced Python talk - thanks for the great tutorial! -- ___ Python tracker <http://bugs.python.org/issue12

[issue9649] wrong default for sort_keys in json module documentation

2010-08-20 Thread Mike Dirolf
New submission from Mike Dirolf : The json module docs state that sort_keys defaults to True. From the source it looks like it actually defaults to False. Patch attached. -- assignee: d...@python components: Documentation files: sort_keys_json.patch keywords: patch messages: 114426

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2010-09-22 Thread mike bayer
New submission from mike bayer : Copying this bug from the pysqlite tracker, at http://code.google.com/p/pysqlite/issues/detail?id=21 , as the issue has been opened for two days with no reply. (side node - should sqlite3 bugs be reported here or on the pysqlite tracker ?) The text below was

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2010-09-22 Thread mike bayer
mike bayer added the comment: My own comment here is that I'm supposing the "late BEGIN" behavior is to cut down on SQLite's file locking.I think a way to maintain that convenience for most cases, while allowing the stricter behavior that makes SERIALIZABLE isolation

[issue9561] distutils: set encoding to utf-8 for input and output files

2010-10-31 Thread Mike Auty
Changes by Mike Auty : -- nosy: +ikelos ___ Python tracker <http://bugs.python.org/issue9561> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11301] cookielib.LWPCookieJar.save() doesn't save cookies

2011-02-23 Thread Mike Cencula
New submission from Mike Cencula : I'm trying to use cookielib.LWPCookieJar.save() to save cookies from a website. The cookie file is created with a header line, but the cookies are not stored. Example program attached. Python version: 2.5.2 (r252:60911, Jan 24 2010, 14:53:14) Runni

[issue11301] cookielib.LWPCookieJar.save() doesn't save cookies

2011-02-23 Thread Mike Cencula
Mike Cencula added the comment: User error indeed. Adding ignore_discard=True, ignore_expires=True cured the issue. Thank you. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

  1   2   3   4   5   6   7   >