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

2011-01-28 Thread Eli Bendersky
Eli Bendersky 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 "Win32-temp-Debug\getbuildinfo2.

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

2011-01-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 following conditions

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

2011-01-28 Thread Eli Bendersky
Eli Bendersky 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 _

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

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2011-01-28 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +krisvale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10501] make_buildinfo regression with unquoted path

2011-01-28 Thread Eli Bendersky
Eli Bendersky added the comment: Please see issue 11034 -- nosy: +eli.bendersky status: closed -> open ___ Python tracker ___ ___ Pyt

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

2011-01-28 Thread Martin
Martin 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 case 2 from

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Sebastian Spaeth
Sebastian Spaeth 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: Sebastian Spaeth -

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

2011-01-28 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 _

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

2011-01-28 Thread Martin
Martin 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 ___ _

[issue11015] Bring test.support docs up to date

2011-01-28 Thread Nick Coghlan
Nick Coghlan 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: test_cmd_line_script.py:

[issue10765] Build regression from automation changes on windows

2011-01-28 Thread Martin
Martin 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 Corporation. All righ

[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 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) to something comp

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

2011-01-28 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> upon program startup, init LibC environment: setlocale(LC_ALL, ""); > > Python 3 does something like that: Py_InitializeEx() calls > setlocale(LC_CTYPE, ""). But I (and others) consider th

[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 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 accelerators

[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 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 default to C, contrar

[issue11035] Segmentation fault

2011-01-28 Thread Dmitry Groshev
New submission from Dmitry Groshev : 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" {"seenby":[1],"received":1296207058.993983,"observer":1,"type":"ping","source":1

[issue11035] Segmentation fault

2011-01-28 Thread Dmitry Groshev
Dmitry Groshev 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 seems to me that this

[issue11035] Segmentation fault

2011-01-28 Thread Dmitry Groshev
Dmitry Groshev 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 server.py {"seenby":[1

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

2011-01-28 Thread Eli Bendersky
Eli Bendersky 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 installation p

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

2011-01-28 Thread Martin v . Löwis
Martin v. Löwis 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 release isn't really

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Łukasz Langa
Łukasz Langa 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. While the curren

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

2011-01-28 Thread Gael Pasgrimaud
New submission from Gael Pasgrimaud : 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: normal severity: n

[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 added the comment: Why don't we just remove IDLE... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11037] How distutils2 handle namespaces

2011-01-28 Thread Sebastien Douche
New submission from Sebastien Douche : 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, sdouche, tarek priorit

[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 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 use it as a teaching aid in som

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

2011-01-28 Thread Martin
Martin 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 : 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, tarek priority: no

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: My recommendation wasn't to change the regexes. Instead, I recommended documenting how to override them in a subclass. -- ___ Python tracker __

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Łukasz Langa
Łukasz Langa added the comment: Sure, that I can do right away. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-01-28 Thread Martin
Martin added the comment: ...and this apparently came up on the mailinglist as well with Prasun providing nearly exactly the same patch: -- ___ Python tracker

[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 added the comment: I was just kidding (but I wish I weren't). -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Kunjesh Kaushik
Kunjesh Kaushik 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 work! -- __

[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 added the comment: Martin v. Löwis wrote: > > Martin v. Löwis 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 >

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

2011-01-28 Thread Konstantin Osipov
New submission from Konstantin Osipov : 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 information. >>> 0

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

2011-01-28 Thread Julien Miotte
New submission from Julien Miotte : 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 using the command: $ pyth

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

2011-01-28 Thread Julien Miotte
Changes by Julien Miotte : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-01-28 Thread Eli Bendersky
Eli Bendersky added the comment: Martin, the patch fixed the problem for me and the code looks good. -- ___ Python tracker ___ ___ Py

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

2011-01-28 Thread Julien Miotte
New submission from Julien Miotte : 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 *multi *environ This is not

[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 : 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 distutils2.run register Causes a

[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 : 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 -- assignee: tar

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Łukasz Langa
Changes by Łukasz Langa : -- Removed message: http://bugs.python.org/msg127279 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11027] Implement sectionxform in configparser

2011-01-28 Thread Łukasz Langa
Łukasz Langa added the comment: Documentation updated in r88220. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

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

2011-01-28 Thread Julien Miotte
New submission from Julien Miotte : 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 PKG-INFO file will conta

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

2011-01-28 Thread Eric Smith
Eric Smith 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 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 layer on top of sendfile

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

2011-01-28 Thread Eric Smith
Eric Smith 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: -> feature request ___

[issue11035] Segmentation fault

2011-01-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 ___

[issue11035] Segmentation fault

2011-01-28 Thread Dmitry Groshev
Dmitry Groshev 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 inconvenience. -

[issue11015] Bring test.support docs up to date

2011-01-28 Thread Eli Bendersky
Eli Bendersky 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 : Removed file: http://bugs.python.org/file20564/issue11015.py3k.1.patch ___ Python tracker ___ ___ Python-bugs-list

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

2011-01-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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' 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 _

[issue11045] shutil._make_tarball

2011-01-28 Thread Tarek Ziadé
New submission from Tarek Ziadé : 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 title: shutil._make_ta

[issue11045] shutil._make_tarball

2011-01-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: will fix + write patch -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11045] shutil._make_tarball

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

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

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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*! Stuff in brackets are my

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso : 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 make it into a release

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

2011-01-28 Thread R. David Murray
R. David Murray 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 additional info you can

[issue10148] st_mtime differs after shutil.copy2

2011-01-28 Thread Peter
Peter 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 shutil.copy2 then expecti

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

2011-01-28 Thread Scott M
Scott M 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 crash, but still a crash.

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread R. David Murray
R. David Murray 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 are using a later SDK (

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

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 must be somewhere in em

[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 : -- title: locale.setlocale() doesn't change I/O codec, os.environ -> locale.setlocale() doesn't change I/O codec, os.environ does ___ Python tracker ___

[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 : -- 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 ___ Python t

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

2011-01-28 Thread R. David Murray
R. David Murray 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 I'll discover problems ju

[issue10845] test_multiprocessing failure under Windows

2011-01-28 Thread Nick Coghlan
Nick Coghlan 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 so the interprete

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 ;-) There are indeed framewor

[issue10148] st_mtime differs after shutil.copy2

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2011-01-28 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- nosy: -akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 last): File "/Users/

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread Ronald Oussoren
Ronald Oussoren 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 compatiblity wrapper around libedi

[issue1294232] Error in metaclass search order

2011-01-28 Thread Daniel Urban
Daniel Urban 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" calculation here?". B

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

2011-01-28 Thread Scott M
Scott M 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 that page one, sente

[issue11047] Bad description for a change

2011-01-28 Thread Oren Held
New submission from Oren Held : 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. -- assignee: docs

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

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

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

2011-01-28 Thread Éric Araujo
Éric Araujo 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 obsolete user name for

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

2011-01-28 Thread Éric Araujo
Éric Araujo 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 for 3.3. ---

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

2011-01-28 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue11035] Segmentation fault

2011-01-28 Thread Brett Cannon
Brett Cannon 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 ___

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

2011-01-28 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[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 : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11049] add tests for test.support

2011-01-28 Thread Brett Cannon
New submission from Brett Cannon : 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 seem to be any reas

[issue11049] add tests for test.support

2011-01-28 Thread Brett Cannon
Brett Cannon 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 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 object, or, more likely in

[issue6081] str.format_map()

2011-01-28 Thread Jason R. Coombs
Jason R. Coombs 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 formatting you can do

[issue10882] Add os.sendfile()

2011-01-28 Thread Ross Lagerwall
Ross Lagerwall 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 socket (shows using an off

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

2011-01-28 Thread R. David Murray
R. David Murray 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, things would appear to mo

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

2011-01-28 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file20565/mailbox3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11024] imaplib: Time2Internaldate() returns localized strings

2011-01-28 Thread Alexander Belopolsky
Alexander Belopolsky 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 if you think otherwise please g

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

2011-01-28 Thread Michael Foord
Michael Foord 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 added the comment: Also, isn't day supposed to be space- rather than 0- padded? -- ___ Python tracker ___ ___ Py

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

2011-01-28 Thread R. David Murray
R. David Murray added the comment: Code patch looks good to me. Unittest tests pass. -- nosy: +r.david.murray ___ Python tracker ___ ___

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

2011-01-28 Thread Michael Foord
Changes by Michael Foord : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ _

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

2011-01-28 Thread Daniel Urban
Daniel Urban added the comment: I cannot reproduce this with the current py3k branch (Ubuntu 10.04 32 bit). -- nosy: +durban type: -> crash ___ Python tracker ___ _

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

2011-01-28 Thread Brett Cannon
Brett Cannon 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 : Removed file: http://bugs.python.org/file20561/issue10990.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

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

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

[issue11046] darwin/MacOS X setup.py hack

2011-01-28 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 glow. (In the meanwhi

[issue10882] Add os.sendfile()

2011-01-28 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 be sent and it

  1   2   >