[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: After some investigation of running make_buildinfo standalone, it boils down to this: When it executes the path with quotes around the last argument: C:\Program Files\TortoiseSVN\bin\subwcrev.exe .. ..\Modules\getbuildinfo.c

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Could this be some bizzarre bug in the quote parser of cmd.exe? Yes, this is even documented with cmd /?: [...]If you specify /c or /k, cmd processes the remainder of string and quotation marks are preserved only if all of the

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Amaury, seems like it - thanks. So I suppose the fix would be just to remove the quotes in make_buildinfo.c I wonder why it worked for others buildbots? -- ___ Python tracker rep...@bugs.python.org

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11034 ___ ___ Python-bugs-list

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +krisvale ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11034 ___ ___ Python-bugs-list mailing

[issue10501] make_buildinfo regression with unquoted path

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Please see issue 11034 -- nosy: +eli.bendersky status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10501 ___

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Martin
Martin gzl...@googlemail.com added the comment: Removing the quotes rebreaks the case where tmppath contains a space. Instead, either: * Call subwcrev.exe directly without going through COMSPEC: switch 'system' to 'CreateProcess'. * More quotes! Change `A .. B` to `A .. B` which when it hits

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Sebastian Spaeth
Sebastian Spaeth sebast...@sspaeth.de added the comment: Added file: imaplib_Time2Internaldate_locale_fix.patch The patch looks very good to me and works. I agree that we should be returning a bytearray but this is should not be part of this issue. For all that it's worth: Signed-off-by:

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Bizarre indeed. I think more quotes is the answer, since it is simpler to implement. But the question remains, why has it worked until now? -- ___ Python tracker rep...@bugs.python.org

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Martin
Martin gzl...@googlemail.com added the comment: This bug only hits people who: 1) Have TortoiseSVN installed (buildbots won't, I don't) 2) ...on a path that needs quoting. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11034

[issue11015] Bring test.support docs up to date

2011-01-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: verbose isn't a boolean at all - it's an integer. You can supply it multiple times to bump the logging level up even higher than normal. ~/devel/py3k/Lib/test$ grep verbose *.py regrtest.py:if self.verbose 1:

[issue10765] Build regression from automation changes on windows

2011-01-28 Thread Martin
Martin gzl...@googlemail.com added the comment: My build is still affected by this, can you find some time to look at the attached patch please? Relevant bit of log is: Performing Makefile project actions Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Python can be embedded into other applications and unconditionally changing the locale (esp. the LC_CTYPE) is not good practice, since it's not thread-safe and affects the entire process. An application may have set LC_CTYPE (or the locale)

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ

2011-01-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: upon program startup, init LibC environment: setlocale(LC_ALL, ); Python 3 does something like that: Py_InitializeEx() calls setlocale(LC_CTYPE,

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: After more investigation, I found that my original speculation about a Cmd-M conflict with Cocoa Tk 8.5 was not correct. And the problem is not just limited to the keyboard accelerator for the Open Module command; it can also be seen with the keyboard

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: An clean alternative would be adding LC_* variable parsing code to Python to avoid the setlocale() call altogether. That would be highly non-portable, and repeat the mistakes of getdefaultlocale. -- title: 3.x locale does not

[issue11035] Segmentation fault

2011-01-28 Thread Dmitry Groshev
New submission from Dmitry Groshev lambdadmi...@gmail.com: Here is a console output: si14@si14-work:~/repos/monitoring/root$ python2.7 server.py 127.0.0.1 - - [2011-01-28 12:29:30] GET /update HTTP/1.1 200 320 - Python-urllib/2.7

[issue11035] Segmentation fault

2011-01-28 Thread Dmitry Groshev
Dmitry Groshev lambdadmi...@gmail.com added the comment: I should also say that this bug appears at first time, but it doesn't make it less scary. The packet that crashed python was the same as the one shown and I've already used this tiny server for a day or two without modifications, so it

[issue11035] Segmentation fault

2011-01-28 Thread Dmitry Groshev
Dmitry Groshev lambdadmi...@gmail.com added the comment: Ok, I've played with this some more and got some more segmenation faults. It looks like a gevent problem, but I think that python shouldn't completely fall so easy. Here is more traces: si14@si14-work:~/repos/monitoring/root$ python2.7

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Martin, This makes sense, but keep in mind that: 1) Many, if indeed not *most* Windows SVN users use TortoiseSVN (and our dev guide recommends it, IIRC) 2) When TortoiseSVN *is* installed, it almost always goes into Program Files (its default

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Kristján - will you submit a patch for review? (this issue seems like a release blocker to me - but I'll leave it to Georg to decide on setting its priority) I wouldn't say it's a release blocker: I can build Python just fine, so the

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Kunjesh, first of all many thanks for your feedback! A bit of advice, though. I have myself made the mistake of calling features I personally want as often needed. The reality is that they are not often needed if they weren't reported before.

[issue11036] Allow multiple files in the description-file metadata

2011-01-28 Thread Gael Pasgrimaud
New submission from Gael Pasgrimaud g...@gawel.org: It can be usefull to allow more than one file in the description-file metadata so people can concatenate README and CHANGES file. -- assignee: tarek components: Distutils2 messages: 127272 nosy: eric.araujo, gawel, tarek priority:

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-28 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Why don't we just remove IDLE... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10940 ___ ___

[issue11037] How distutils2 handle namespaces

2011-01-28 Thread Sebastien Douche
New submission from Sebastien Douche sdou...@gmail.com: Namespace is very useful. In my company, we use a root namespace (sact.*) and a sub-namespace for each big project (sact.nevrax.*, sact.storage.*). -- assignee: tarek components: Distutils2 messages: 127274 nosy: eric.araujo,

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-28 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Ned, I agree with your idea to knock-out the three problematic hot-kye combinations. Georg, your solution is too radical and would do more harm than good. I've been getting excellent use out of Py3.2's IDLE and I expect to

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Martin
Martin gzl...@googlemail.com added the comment: Eli, was just answering your question about why this didn't fail for other people. Try the attached patch to see if it fixes the problem for you. -- keywords: +patch Added file: http://bugs.python.org/file20571/issue11034.patch

[issue11038] Some commands should stop if Name and Version are missing

2011-01-28 Thread Gael Pasgrimaud
New submission from Gael Pasgrimaud g...@gawel.org: distutils2 commands should stop if at least Name and Version metadatas are not provided in setup.cfg For now you'll get a UNKNOWN-UNKNOWN.tar.gz -- assignee: tarek components: Distutils2 messages: 127277 nosy: eric.araujo, gawel,

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: My recommendation wasn't to change the regexes. Instead, I recommended documenting how to override them in a subclass. -- ___ Python tracker rep...@bugs.python.org

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Sure, that I can do right away. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11027 ___ ___

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Martin
Martin gzl...@googlemail.com added the comment: ...and this apparently came up on the mailinglist as well with Prasun providing nearly exactly the same patch: http://mail.python.org/pipermail/python-dev/2011-January/107599.html -- ___ Python

[issue10940] IDLE 3.2 hangs with Cmd-M hotkey on OS X 10.6 with 64-bit installer and A/S Tk 8.5

2011-01-28 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I was just kidding (but I wish I weren't). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10940 ___

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Kunjesh Kaushik
Kunjesh Kaushik kunjesh.kaus...@gmail.com added the comment: Very well, then. I would rely on sub-classing for now. The patch would work for me as I am only reading configuration. :) And yes, I wouldn't deny the personal bias anyway. Thanks a lot for all your help, folks. Keep up the good

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Martin v. Löwis wrote: Martin v. Löwis mar...@v.loewis.de added the comment: An clean alternative would be adding LC_* variable parsing code to Python to avoid the setlocale() call altogether. That would be highly non-portable, and

[issue11039] Use of 'L' specifier is inconsistent when printing long integers

2011-01-28 Thread Konstantin Osipov
New submission from Konstantin Osipov kostja.osi...@gmail.com: I'm using a 64 bit system, but the issue is as well repeatable on 32 bit systems: kostja@shmita:~$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more

[issue11040] After registering a project to PyPI, classifiers fields aren't displayed.

2011-01-28 Thread Julien Miotte
New submission from Julien Miotte miotte.jul...@gmail.com: When I register a project with a setup.cfg with the following classifiers: classifier = Development Status :: 3 - Alpha License :: OSI Approved :: GNU General Public License (GPL) Environment :: X11 Applications :: Qt And

[issue11040] After registering a project to PyPI, classifiers fields aren't displayed.

2011-01-28 Thread Julien Miotte
Changes by Julien Miotte miotte.jul...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11040 ___ ___

[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Martin, the patch fixed the problem for me and the code looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11034 ___

[issue11041] On the distutils2 documentation, 'requires-python' shouldn't be documented as *multi

2011-01-28 Thread Julien Miotte
New submission from Julien Miotte miotte.jul...@gmail.com: On the documentation page: http://distutils2.notmyidea.org/setupcfg.html, one can read : # requires-python: Specifies the Python version the distribution requires. The value is a version number, as described in PEP 345. *optional

[issue11042] [PyPI CSS] Adding project urls onto a project page using register, apparition of an overhead over the title

2011-01-28 Thread Julien Miotte
New submission from Julien Miotte miotte.jul...@gmail.com: When adding project urls onto a PyPI project page using the following setup.cfg extract: project_url = Source repository,https://github.com/mike-perdide/qGitFilterBranch And then registering the project with: python -m

[issue11043] On GNU/Linux (Ubuntu) distutils2.mkcfg shouldn't create an executable setup.cfg

2011-01-28 Thread Julien Miotte
New submission from Julien Miotte miotte.jul...@gmail.com: When using the command: $ python -m distutils2.mkcfg To create a new setup.cfg, the resulting setup.cfg has the following permissions: -rwxr-xr-x 1 mike mike 151 2011-01-28 12:47 setup.cfg* I think the permissions should be 644

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- Removed message: http://bugs.python.org/msg127279 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11027 ___

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Documentation updated in r88220. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11027 ___ ___

[issue11044] The description-file isn't handled by distutils2

2011-01-28 Thread Julien Miotte
New submission from Julien Miotte miotte.jul...@gmail.com: When using the description-file field with a README.txt, and then using the 'sdist' command, the generated PKG-INFO file will contain: Description: UNKNOWN Note: when using the description field with a simple string, the generated

[issue11032] _string: formatter_field_name_split() and formatter_parser doesn't check input type

2011-01-28 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: The patch looks good to me. I've added some more tests to cover some corner cases. Go ahead and commit it. -- Added file: http://bugs.python.org/file20572/_string0.patch ___ Python tracker

[issue10882] Add os.sendfile()

2011-01-28 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is a new sendfile patch which fixes the issue with FreeBSD (and Mac OS X DragonFly BSD from what I can see). With regards to anacrolix's request, I think what Martin said in msg126049. i.e. if we want to provide a unifying

[issue11039] Use of 'L' specifier is inconsistent when printing long integers

2011-01-28 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: There is no suffix in python 3.x. Since this is a feature request, and there will be no new releases of 2.x, I'm closing this. -- nosy: +eric.smith resolution: - rejected stage: - committed/rejected status: open - closed type: -

[issue11035] Segmentation fault

2011-01-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I don't reproduce the issue. Could you run python under gdb and give us the C backtrace? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue11035] Segmentation fault

2011-01-28 Thread Dmitry Groshev
Dmitry Groshev lambdadmi...@gmail.com added the comment: I've changed gevent.wsgi server to gevent.pywsgi and it works as expected. Now I switched it back to gevent.wsgi and it doesn't crash too! That's strange, but I understand that you can't fix it without normal backtrace. I'm sorry for the

[issue11015] Bring test.support docs up to date

2011-01-28 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Nick, agreed regarding verbose. Somehow I didn't think it would be used in other modules like that, and only looked in regrtest where I didn't see anything meaningful about verbose not being binary. It's a good thing to document it, then :)

[issue11015] Bring test.support docs up to date

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: Removed file: http://bugs.python.org/file20564/issue11015.py3k.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11015 ___

[issue11039] Use of 'L' specifier is inconsistent when printing long integers

2011-01-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Python objects can have two textual representations: see the difference between str() and repr(): http://docs.python.org/tutorial/inputoutput.html And indeed, Python3 chose to drop the 'L' suffix. -- nosy: +amaury.forgeotdarc

[issue10882] Add os.sendfile()

2011-01-28 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Could you please also add support for offset argument on Linux? Also, headers, trailers and flags could be turned in keyword args for simplicity. -- ___ Python tracker rep...@bugs.python.org

[issue11045] shutil._make_tarball

2011-01-28 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: This line : logger.info(creating %s % archive_dir) should check that logger is not None before being called.. -- assignee: tarek components: Library (Lib) messages: 127300 nosy: tarek priority: high severity: normal status: open

[issue11045] shutil._make_tarball

2011-01-28 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: will fix + write patch -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11045 ___

[issue11045] shutil._make_tarball

2011-01-28 Thread Kelsey
Kelsey kelsey.highto...@gmail.com added the comment: Adding stacktrace to ticket -- nosy: +kelseyhightower Added file: http://bugs.python.org/file20574/distutils2_logger.info_bug.txt ___ Python tracker rep...@bugs.python.org

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: After cloning branches/py3k (i now have three different detached repo snakes in my arena (2.7,3.1,py3k), by the way - not bad for a greenhorn, huh?). I've applied RDMs patch from msg127245. Note: the test mails are *malformed*!

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: I always hated GNU Autoconf and M4. After cloning branches/py3k today i needed two and a half hour to build and compile a Python which includes the readline module. I'll attach a primitive setup.py patch which should better not

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Steffen: thanks for testing. Do those error messages have tracebacks? Can you post them? Can you post example messages and a short program that demonstrates the problem? I'm going to be creating some non-ascii test cases, but any

[issue10148] st_mtime differs after shutil.copy2

2011-01-28 Thread Peter
Peter p.j.a.c...@googlemail.com added the comment: I'm also seeing this on 32bit Windows XP using Python 3.1.2, and Python 3.2rc1 on a local NTFS filesystem. e.g. from os.stat(filename).st_mtime after using shutil.copy2(...) 1293634856.1402586 source 1293634856.1402581 copied I've been using

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-28 Thread Scott M
Scott M scott.m...@comcast.net added the comment: OK, now all calls to Tkinter are funneled to a single thread, through a queue. (Technically there are two threads in Tkinter - one is parked in .mainloop(), the other makes a call to Canvas.create_line and a call to Label.config.) Different

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The OSX build process is...hairy. Windows likewise (because you have to use MS tools). Elsewhere, it is pretty straightforward :) The 10.4 deployment target is the one we want. You can build for a 10.4 deployment target even if you

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Indeed i tried to create tracebacks (even with import traceback), but these all end up in my code (and all the time). I have not yet figured out how to create tracebacks which leave my code and reach the source, which surely

[issue11022] locale.setlocale() doesn't change I/O codec, os.environ does

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: locale.setlocale() doesn't change I/O codec, os.environ - locale.setlocale() doesn't change I/O codec, os.environ does ___ Python tracker rep...@bugs.python.org

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: 3.x locale does not default to C,contrary to the documentation and to 2.x behavior - 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I don't see those error messages in the mailbox source. I'm guess your application isn trapping the errors in a try/except. In that case, just do a bare 'raise' in the except clause, and you should get the full traceback. I'm sure

[issue10845] test_multiprocessing failure under Windows

2011-01-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: There isn't really much -m test can do to flag this - multiprocessing is making assumptions about the meaning of __file__ that may be flat out invalid when -m is used to execute the main module. Fixing that properly is going to require a PEP

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Ok, thanks. Mac/README is not for me, though, i'm only a simple Ex-FreeBSD user which buyed good hardware with the wrong operating system. All these mysterious frameworks and AvailabilityMacros.h really make you weird ;-)

[issue10148] st_mtime differs after shutil.copy2

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10148 ___

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- nosy: -akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124 ___ ___ Python-bugs-list mailing

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: You're indeed right, i've overseen a try..catch! I'll even be able to give you some fast code hints now (and i'll be offline the next few hours - the mails are simply mails with illegal charsets, say): Traceback (most recent call

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Use: configure ...[other args]... MACOSX_DEPLOYMENT_TARGET=10.5 (or 10.6 when you're on a 10.6 system) This will build using the deployment target you mention, and will automaticly include the readline module using Apple's

[issue1294232] Error in metaclass search order

2011-01-28 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: It seems, that this possible problem already came up when __build_class__ got implemented, see issue1681101. The second and third version of the patch at this issue (file7874 and file7875) contains a comment: XXX Should we do the winner

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-28 Thread Scott M
Scott M scott.m...@comcast.net added the comment: Alright. More digging turned up the Tkinter after function, aka WM_TIMER for Windowy people like me, and that plus a nonblocking queue get() gets all my drawing operations back into the mainLoop() thread. Voilà, no more crashes. Let me suggest

[issue11047] Bad description for a change

2011-01-28 Thread Oren Held
New submission from Oren Held o...@held.org.il: In the what's new in 2.7, there is some mistake in the description of issue 7902. 7902, afaik, disables the fallback to absolute import, when requesting a relative import fails. If I got it right, the description states the opposite. --

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

2011-01-28 Thread Pavel Labushev
New submission from Pavel Labushev p.labus...@gmail.com: 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 Reading

[issue11043] On GNU/Linux (Ubuntu) distutils2.mkcfg shouldn't create an executable setup.cfg

2011-01-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello Julien, thanks for the bug reporting, that’s helpful. A few tips for better bug reports: 1) Setting the “Distutils2” component will automatically add Tarek and I to nosy, you don’t have to do it manually (especially when you find an

[issue7175] Define a standard location and API for configuration files

2011-01-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The issue proved more complicated than expected, due to antics of Mac OS X and Windows Vista, so I set it aside for later. I intend to summarize all useful comments from the python-dev thread and bug reports comments and try to reach agreement

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2011-01-28 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3561 ___ ___

[issue11035] Segmentation fault

2011-01-28 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Closing as invalid since gevent seems to be the culprit of the segfault. -- nosy: +brett.cannon resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-01-28 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10977 ___ ___ Python-bugs-list

[issue10947] imaplib: Internaldate2tuple and ParseFlags require (and latter returns) bytes arrays; should allow/return str

2011-01-28 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10947 ___ ___ Python-bugs-list

[issue11049] add tests for test.support

2011-01-28 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: It seems a little negligent that test.support has no tests. The test.test_support name is available in py3k and backporting issues to 2.7 shouldn't be a problem (rare chance something does happen it can be handling manually). There doesn't

[issue11049] add tests for test.support

2011-01-28 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I should note that I am not suggesting that test.support suddenly be considered a module with a stable API that the public can use. Simply that we take the proper measures to make sure the code in there does what is expected. --

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: What is the data type returned by your get_msg? I bet it is string, and email can't handle messages in string format that have non-ASCII characters (I'm adding an explicit error message for this). You either need to use a Message

[issue6081] str.format_map()

2011-01-28 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Good work Eric. When I first heard of new string formatting, I was a little wary. The syntax to supply a dictionary of keyword replacements seemed awkward. It took me a while before I realized why it really bothered me. There's string

[issue10882] Add os.sendfile()

2011-01-28 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is an updated patch that uses keyword arguments. Using an offset with Linux was always supported although I have cleaned up the documentation a bit to make that clearer. E.g. the following script sends part of a file over a

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm updating the patch to contain a couple tests using non-ASCII. More are needed. Before this patch, one could process a file containing non-ASCII characters as text, and if your default encoding happened to be able to decode it,

[issue9124] Mailbox module should use binary I/O, not text I/O

2011-01-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file20565/mailbox3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124 ___

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Two nitpicks: 1. To avoid repetition, I would now define Mon2num as Mon2num = dict(zip(_month_names, range(1, 13))) 2. Please keep lines under 79 characters long. This does not seem important enough to push to RC2, but

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-28 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Patch to docs and minor change to assertCountEqual to not use actual / expected internally. -- Added file: http://bugs.python.org/file20580/expected-actual.diff ___ Python tracker

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Also, isn't day supposed to be space- rather than 0- padded? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11024

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Code patch looks good to me. Unittest tests pass. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10573 ___

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-28 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10573

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

2011-01-28 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: I cannot reproduce this with the current py3k branch (Ubuntu 10.04 32 bit). -- nosy: +durban type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11048

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-28 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Attached is a fixed copy of Kristian's patch; error in test_trace where self.settrace was being called. -- Added file: http://bugs.python.org/file20581/issue10990.diff ___ Python tracker

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-28 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file20561/issue10990.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10990 ___

[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-01-28 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file20525/trace_fxn_protected.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10990 ___

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: Thank you, RO, exactly that very line would be great as an add-on for the mentioned file - and (better: but - i'm lazy) it would be even better if that hint would appear somewhere in 'configure --help'! That would make the apple

[issue10882] Add os.sendfile()

2011-01-28 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Copy *count* bytes from file descriptor *in* to file descriptor *out*, starting at *offset* and continuing for *count* bytes. The latter part is incorrect as it is not guaranteed that all bytes specified in count argument are going to

  1   2   >