Re: About python while statement and pop()

2014-06-12 Thread hito koto
2014年6月12日木曜日 14時43分42秒 UTC+9 Steven D'Aprano: On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote: I want to use while statement, for example: def foo(x): ... y = [] ... while x !=[]: ... y.append(x.pop()) ... return y ... print

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Peter Otten
Pedro Izecksohn wrote: The code available from: http://izecksohn.com/pedro/python/canvas/testing.py draws 2 horizontal lines on a Canvas. Why the 2 lines differ on thickness and length? The Canvas' method create_line turns on at least 2 pixels. But I want to turn on many single pixels on

Re: About python while statement and pop()

2014-06-12 Thread hito koto
2014年6月12日木曜日 14時43分42秒 UTC+9 Steven D'Aprano: On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote: I want to use while statement, for example: def foo(x): ... y = [] ... while x !=[]: ... y.append(x.pop()) ... return y ... print

Al madinah international university opening apply for university colleges (September season)

2014-06-12 Thread Marwa Kotb
MR/ MiSS * al madinah international university which win dependence Malaysian Ministry of Higher Education Malaysia (MOHE) and also winning the adoption of all academic programs and courses, the university that are approved by the Malaysian funds and private academy, which deals with

Re: asyncio - how to stop loop?

2014-06-12 Thread Frank Millman
Ian Kelly ian.g.ke...@gmail.com wrote in message news:CALwzidnv07Wba9WJ=nuc0_v4mvudyaxwh6bgjvw0o1hf3oo...@mail.gmail.com... On Wed, Jun 11, 2014 at 1:19 AM, Frank Millman fr...@chagford.com wrote: First attempt - same as before loop = asyncio.get_event_loop()

Re: OT: This Swift thing

2014-06-12 Thread Steven D'Aprano
On Thu, 12 Jun 2014 12:16:08 +1000, Chris Angelico wrote: On Thu, Jun 12, 2014 at 12:08 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I'm just pointing out that our computational technology uses over a million times more energy than the theoretical minimum, and therefore

Re: OT: This Swift thing

2014-06-12 Thread alister
On Thu, 12 Jun 2014 09:06:50 +, Steven D'Aprano wrote: On Thu, 12 Jun 2014 12:16:08 +1000, Chris Angelico wrote: On Thu, Jun 12, 2014 at 12:08 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I'm just pointing out that our computational technology uses over a million

Re: About python while statement and pop()

2014-06-12 Thread hito koto
2014年6月12日木曜日 14時43分42秒 UTC+9 Steven D'Aprano: On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote: I want to use while statement, for example: def foo(x): ... y = [] ... while x !=[]: ... y.append(x.pop()) ... return y ... print

Re: OT: This Swift thing

2014-06-12 Thread Gregory Ewing
Steven D'Aprano wrote: It is my contention that, had Intel and AMD spent the last few decades optimizing for power consumption rather than speed, we probably could run a server off, well, perhaps not a watch battery, Current draw of CMOS circuitry is pretty much zero when nothing is changing,

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Gregory Ewing
Pedro Izecksohn wrote: The Canvas' method create_line turns on at least 2 pixels. But I want to turn on many single pixels on a Canvas. You could try using a 1x1 rectangle instead. However, be aware that either of these will use quite a lot of memory per pixel. If you are drawing a very large

Re: OT: This Swift thing

2014-06-12 Thread Rustom Mody
I am bewildered by this argument... [Heck Ive recently learnt that using ellipses is an easy way to produce literature... So there...] On Thursday, June 12, 2014 2:36:50 PM UTC+5:30, Steven D'Aprano wrote: It is my contention that, had Intel and AMD spent the last few decades optimizing for

Python MSI Repo

2014-06-12 Thread Alex Rodrigues
Is there a public repository for the python windows installer? I'd like to play around with it. - Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: Python MSI Repo

2014-06-12 Thread Ned Batchelder
On 6/12/14 9:47 AM, Alex Rodrigues wrote: Is there a public repository for the python windows installer? I'd like to play around with it. - Alex I'm no expert on what the source for a windows installer looks like, but there seem to be things that smell like that in the PC and PCbuild

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/11/14 10:12 PM, hito koto wrote: i want to change this is code: def foo(x): y = [] while x !=[]: y.append(x.pop()) return y Consider this generator (all kinds of permutations on the idea): L1 [1, 2, 3, 4, 5, 6, 7] def poplist(L): while True:

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/11/14 10:12 PM, hito koto wrote: def foo(x): y = [] while x !=[]: y.append(x.pop()) return y Consider this generator variation: def poplist(L): done = False while done==False: yield L[::-1][:1:] L =

Re: About python while statement and pop()

2014-06-12 Thread Chris Angelico
On Fri, Jun 13, 2014 at 2:49 AM, Mark H Harris harrismh...@gmail.com wrote: Consider this generator variation: def poplist(L): done = False while done==False: yield L[::-1][:1:] L = L[::-1][1::][::-1] if len(L)==0: done=True

Re: Python MSI Repo

2014-06-12 Thread Zachary Ware
On Thu, Jun 12, 2014 at 8:47 AM, Alex Rodrigues lemi...@gmail.com wrote: Is there a public repository for the python windows installer? I'd like to play around with it. The installer is built using msi.py, found in the tools directory of the main cpython repository:

Re: OT: This Swift thing

2014-06-12 Thread Steven D'Aprano
On Thu, 12 Jun 2014 05:54:47 -0700, Rustom Mody wrote: On Thursday, June 12, 2014 2:36:50 PM UTC+5:30, Steven D'Aprano wrote: [...] The laws of physics tend to put boundaries that are ridiculously far from where we actually work - I think most roads have speed limits that run a fairly long

Re: About python while statement and pop()

2014-06-12 Thread Marko Rauhamaa
while done==False: Correction: while not done: Better Python and not bad English, either. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/12/14 11:55 AM, Marko Rauhamaa wrote: while not done: Better Python and not bad English, either. ... and taking Marko's good advice, what I think you really wanted: def poplist(L): done = False while not done: yield L[::-1][:1:] L =

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/12/14 11:57 AM, Chris Angelico wrote: On Fri, Jun 13, 2014 at 2:49 AM, Mark H Harris harrismh...@gmail.com wrote: Consider this generator variation: def poplist(L): done = False while done==False: yield L[::-1][:1:] L =

Re: OT: This Swift thing

2014-06-12 Thread Chris Angelico
On Fri, Jun 13, 2014 at 3:04 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Chris made the argument that *the laws of physics* put limits on what we can attain, which is fair enough, but then made the poor example of speed limits on roads falling short of the speed of light.

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/12/14 11:57 AM, Chris Angelico wrote: def poplist(L): done = False while done==False: yield L[::-1][:1:] L = L[::-1][1::][::-1] if len(L)==0: done=True Why not just while L? OK, here it is with Chris' excellent

كأس العالم FIFA 2014

2014-06-12 Thread essd
كأس العالم FIFA 2014 https://www.facebook.com/pages/%D9%86%D8%AA%D8%A7%D8%A6%D8%AC-%D8%A7%D9%84%D8%A7%D9%85%D8%AA%D8%AD%D8%A7%D9%86%D8%A7%D8%AA-%D9%88%D8%A7%D9%84%D8%AC%D8%A7%D9%85%D8%B9%D8%A7%D8%AA-%D9%88%D8%A7%D8%AC%D8%AA%D9%85%D8%A7%D8%B9%D9%8A%D8%A7%D8%AA/299719160065550 كأس العالم: البرازيل

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Terry Reedy
On 6/12/2014 7:38 AM, Gregory Ewing wrote: Pedro Izecksohn wrote: The Canvas' method create_line turns on at least 2 pixels. But I want to turn on many single pixels on a Canvas. You could try using a 1x1 rectangle instead. However, be aware that either of these will use quite a lot of

Asymmetry in globals __getitem__/__setitem__

2014-06-12 Thread Robert Lehmann
Hi all, I have noticed there is a slight asymmetry in the way the interpreter (v3.3.5, reproduced also in v3.5.x) loads and stores globals. While loading globals from a custom mapping triggers __getitem__ just fine, writing seems to silently ignore __setitem__. class Namespace(dict): def

Re: Asymmetry in globals __getitem__/__setitem__

2014-06-12 Thread Ian Kelly
On Thu, Jun 12, 2014 at 12:18 PM, Robert Lehmann m...@robertlehmann.de wrote: Hi all, I have noticed there is a slight asymmetry in the way the interpreter (v3.3.5, reproduced also in v3.5.x) loads and stores globals. While loading globals from a custom mapping triggers __getitem__ just

Re: Asymmetry in globals __getitem__/__setitem__

2014-06-12 Thread Chris Angelico
On Fri, Jun 13, 2014 at 4:18 AM, Robert Lehmann m...@robertlehmann.de wrote: PS. I found a 3.3.x commit (e3ab8aa) which fixed the LOAD_GLOBAL opcode to support other types than dict, but STORE_GLOBAL seems to use bare PyDict_SetItem instead of dispatching to PyObject_SetItem. This looks like

Re: Suds 4.1 Beta Assertion Failure

2014-06-12 Thread 1stpoint
It turns out I was passing the parameters incorrectly to the generateReportSQL method. This is what I had: result=reportservice.generateReportSQL(rptRef, paramRpt, sessionid) This is what works: result=XMLservice.generateReportSQL({'reportPath':rptRef},sessionid) I have another issue. When I

Re: OT: This Swift thing

2014-06-12 Thread Gene Heskett
On Thursday 12 June 2014 13:18:00 Chris Angelico did opine And Gene did reply: On Fri, Jun 13, 2014 at 3:04 AM, Steven D'Aprano I'm saying that, whatever the practical engineering limits turn out to be, we're unlikely to be close to them, and therefore there are very likely to be many and

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Pedro Izecksohn
  As Peter Otten did not see the same result that I saw, I prepared an image that shows the result on my notebook: http://izecksohn.com/pedro/python/canvas/tk_window.xcf   For those that might not know: xcf is the Gimp's file format. - Original Message - From: Peter Otten To:

Re: idle glitch while building python 3.4 from sources

2014-06-12 Thread kfsone
I just upgraded to Python 3.4.1 AMD64 for Windows 7 using the binaries, and this appears to have affected the Windows binary distribution. osmith@WOTSIT /c/Python34/Lib/idlelib $ python idle.py ** IDLE can't import Tkinter. Your Python may not be configured for Tk. ** --

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Pedro Izecksohn
- Original Message - From: Gregory Ewing To: python-list@python.org Sent: Thursday, June 12, 2014 8:38 AM Subject: Re: Lines on a tkinter.Canvas Pedro Izecksohn wrote: The Canvas' method create_line turns on at least 2 pixels. But I want to turn on many single pixels on a

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Pedro Izecksohn
- Original Message - From: Gregory Ewing To: python-list@python.org Cc: Sent: Thursday, June 12, 2014 8:38 AM Subject: Re: Lines on a tkinter.Canvas Pedro Izecksohn wrote: The Canvas' method create_line turns on at least 2 pixels. But I want to turn on many single pixels on

http://bugs.python.org/issue19495 timeit enhancement

2014-06-12 Thread Mark Lawrence
The request is for a class within timeit that allows you to test code inside a with block. It strikes me as being useful but there's only one response on the issue, albeit a positive one. If others here think this would be a useful addition I'll see if I can take this forward, unless there

Re: idle glitch while building python 3.4 from sources

2014-06-12 Thread Terry Reedy
On 6/12/2014 4:35 PM, kfs...@gmail.com wrote: I just upgraded to Python 3.4.1 AMD64 for Windows 7 using the binaries, Upgraded from what to what with what? Which binaries? Details matter. and this appears to have affected the Windows binary distribution. osmith@WOTSIT

Re: Lines on a tkinter.Canvas

2014-06-12 Thread Gregory Ewing
Pedro Izecksohn wrote: Thank you Greg. Your second approach works and the script became: That's not really what I meant; doing it that way, you're still incurring the overhead of a tk canvas object for each point that you draw. However, if there are only 250 points or so, it might not

Re: Asymmetry in globals __getitem__/__setitem__

2014-06-12 Thread Gregory Ewing
Robert Lehmann wrote: I have noticed there is a slight asymmetry in the way the interpreter (v3.3.5, reproduced also in v3.5.x) loads and stores globals. While loading globals from a custom mapping triggers __getitem__ just fine, writing seems to silently ignore __setitem__. I didn't think

Re: http://bugs.python.org/issue19495 timeit enhancement

2014-06-12 Thread Steven D'Aprano
On Fri, 13 Jun 2014 00:35:43 +0100, Mark Lawrence wrote: The request is for a class within timeit that allows you to test code inside a with block. It strikes me as being useful but there's only one response on the issue, albeit a positive one. If others here think this would be a useful

Re: OT: This Swift thing

2014-06-12 Thread Rustom Mody
On Thursday, June 12, 2014 10:48:00 PM UTC+5:30, Chris Angelico wrote: On Fri, Jun 13, 2014 at 3:04 AM, Steven D'Aprano Take three numbers, speeds in this case, s1, s2 and c, with c a strict upper-bound. We can take: s1 s2 c without loss of generality. So in this case, we say that s2 is

Re: http://bugs.python.org/issue19495 timeit enhancement

2014-06-12 Thread Cameron Simpson
On 13Jun2014 00:44, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 13 Jun 2014 00:35:43 +0100, Mark Lawrence wrote: The request is for a class within timeit that allows you to test code inside a with block. It strikes me as being useful but there's only one response on

Re: OT: This Swift thing

2014-06-12 Thread Steven D'Aprano
On Fri, 13 Jun 2014 03:18:00 +1000, Chris Angelico wrote: On Fri, Jun 13, 2014 at 3:04 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: [...] Take three numbers, speeds in this case, s1, s2 and c, with c a strict upper-bound. We can take: s1 s2 c without loss of

Python deepcopy to while statement

2014-06-12 Thread hito koto
Hi, all I want to make the function use while statement,and without a deepcopy functions. this is my use deepcopy function correct codes, So, how can i to do a different way and use while statement: def foo(x): if not isinstance(x, list): return x return [foo(y) for y in x]

C-API proper initialization and deallocation of subclasses

2014-06-12 Thread ptb
Hello all, I decided to play around with the C-API and have gotten stuck. I went through the Shoddy example (https://docs.python.org/3/extending/newtypes.html#subclassing-other-types) in the docs and tried to extend it by adding a method which creates and returns a shoddy instance. I dug

Re: Python deepcopy to while statement

2014-06-12 Thread hito koto
2014年6月13日金曜日 12時47分19秒 UTC+9 hito koto: Hi, all I want to make the function use while statement,and without a deepcopy functions. this is my use deepcopy function correct codes, So, how can i to do a different way and use while statement: def foo(x): if not

Re: Python deepcopy to while statement

2014-06-12 Thread hito koto
2014年6月13日金曜日 12時47分19秒 UTC+9 hito koto: Hi, all I want to make the function use while statement,and without a deepcopy functions. this is my use deepcopy function correct codes, So, how can i to do a different way and use while statement: def foo(x): if not

[issue21707] modulefinder uses wrong CodeType signature in .replace_paths_in_code()

2014-06-12 Thread Berker Peksag
Berker Peksag added the comment: Here's a patch with a test. -- keywords: +patch nosy: +berker.peksag stage: - patch review type: - behavior Added file: http://bugs.python.org/file35587/issue21707.diff ___ Python tracker rep...@bugs.python.org

[issue21729] Use `with` statement in dbm.dumb

2014-06-12 Thread Claudiu.Popa
New submission from Claudiu.Popa: Hello. Here's a short patch for dbm.dumb, which uses in various places the `with` statement for opening and closing files. Thanks. -- components: Library (Lib) files: dbm_with_open.patch keywords: patch messages: 220335 nosy: Claudiu.Popa,

[issue21729] Use `with` statement in dbm.dumb

2014-06-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka priority: normal - low stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21729 ___

[issue19884] Importing readline produces erroneous output

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: Attached readline_disable_meta_key.patch: Implement the workaround suggested in (*), but only use the workaround if stdout is not a TTY (ex: output redirected), to limit the risk of regression. (*)

[issue21425] Interactive interpreter doesn't flush stderr prompty

2014-06-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21425 ___ ___

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: Discussion on python-dev: https://mail.python.org/pipermail/python-dev/2014-June/135026.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205 ___

[issue12387] IDLE save keyboard shortcut problem

2014-06-12 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Attached patch is an attempt to fix the issue, based on msg220332. With this patch, and with IDLE Classic Unix keybinding selected in IDLE, actions like cut=Control-Key-w, redo=Alt-Key-z Meta-Key-z, and emac's style actions like

[issue12387] IDLE save keyboard shortcut problem

2014-06-12 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Removed file: http://bugs.python.org/file35590/keybinding-issue12387-v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12387 ___

[issue12387] IDLE save keyboard shortcut problem

2014-06-12 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file35591/keybinding-issue12387-v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12387 ___

[issue12387] IDLE save keyboard shortcut problem

2014-06-12 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Removed file: http://bugs.python.org/file35591/keybinding-issue12387-v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12387 ___

[issue12387] IDLE save keyboard shortcut problem

2014-06-12 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: Added file: http://bugs.python.org/file35592/keybinding-issue12387-v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12387 ___

[issue21730] test_socket fails --without-threads

2014-06-12 Thread Berker Peksag
New submission from Berker Peksag: Here's the traceback (tested on Ubuntu 12.04): == ERROR: testBCM (test.test_socket.CANTest) -- Traceback (most recent call

[issue20043] test_multiprocessing_main_handling fails --without-threads

2014-06-12 Thread Berker Peksag
Berker Peksag added the comment: This test is still failing on AMD64 Fedora without threads 3.x. http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/6743/steps/test/logs/stdio test test_multiprocessing_main_handling crashed -- Traceback (most recent call

[issue21731] Calendar Problem with Windows (XP)

2014-06-12 Thread Jürgen B
New submission from Jürgen B: I had a problem with calendar.formatmonth() Error message was 'Unsupported Locale' Well, it seems that Windows (XP) does nothing accept to setlocale than '' I changed /lib/calendar.py line 488 ff to class different_locale: def __init__(self, locale):

[issue10445] _ast py3k : add lineno back to args node

2014-06-12 Thread Claudiu.Popa
Claudiu.Popa added the comment: This doesn't seem to be the case for Python 3.4. Also, _ast.arguments didn't have lineno and col_offset attributes neither in Python 2. But the _arg.arg nodes have those attributes, as seen in this example. from ast import parse parse( ... def test(a): pass

[issue16512] imghdr doesn't support jpegs with an ICC profile

2014-06-12 Thread Claudiu.Popa
Changes by Claudiu.Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16512 ___ ___ Python-bugs-list

[issue16512] imghdr doesn't support jpegs with an ICC profile

2014-06-12 Thread Claudiu.Popa
Changes by Claudiu.Popa pcmantic...@gmail.com: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16512 ___ ___

[issue17911] Extracting tracebacks does too much work

2014-06-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +asyncio nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17911 ___

[issue19816] test.regrtest: use tracemalloc to detect memory leaks?

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: I tried different options to show the memory leaks found by tracemalloc, but I'm not satisfied by any option. I get a lot of noise, the output is almost useless. Randomly, between 1 and 1000 KB are allocated or released in random files: in unittest or

[issue19816] test.regrtest: use tracemalloc to detect memory leaks?

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: regrtest.patch is a work-in-progress patch. It shows the top 10 when the -R option is used, ex: python -m test -R 3:3 test_sys. -- nosy: +sahutd ___ Python tracker rep...@bugs.python.org

[issue16512] imghdr doesn't support jpegs with an ICC profile

2014-06-12 Thread Claudiu.Popa
Claudiu.Popa added the comment: Using \xff\xd8 sounds good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16512 ___ ___ Python-bugs-list

[issue16512] imghdr doesn't support jpegs with an ICC profile

2014-06-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16512 ___ ___ Python-bugs-list

[issue16512] imghdr doesn't support jpegs with an ICC profile

2014-06-12 Thread Kovid Goyal
Kovid Goyal added the comment: FYI, the test I currently use in calibre, which has not failed so far for millions of users: def test_jpeg(h, f): if (h[6:10] in (b'JFIF', b'Exif')) or (h[:2] == b'\xff\xd8' and (b'JFIF' in h[:32] or b'8BIM' in h[:32])): return 'jpeg' --

[issue21731] Calendar Problem with Windows (XP)

2014-06-12 Thread R. David Murray
R. David Murray added the comment: The code is mostly correct as it exists in the calendar module. You are running into issue 10466. Per my comment in that issue, it may be possible to put a workaround into the calendar module, but your suggestion isn't it, since your code would leave the

[issue21727] Ambiguous sentence explaining `cycle` in itertools documentation

2014-06-12 Thread Matt Deacalion Stevens
Matt Deacalion Stevens added the comment: It's probably just me then. The code example is what helped me grasp `cycle`, not the explanation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21727

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2014-06-12 Thread R. David Murray
R. David Murray added the comment: See issue 21731 for considering putting a workaround for this into the calendar module (noted here because of msg122065). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10466

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2014-06-12 Thread R. David Murray
R. David Murray added the comment: Oh, I see I'd already previously opened issue 10498 for that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10466 ___

[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows

2014-06-12 Thread R. David Murray
R. David Murray added the comment: I'm closing this in favor of issue 21731, which has a proposed (though I believe incorrect) patch. -- resolution: - duplicate stage: test needed - resolved status: open - closed superseder: - Calendar Problem with Windows (XP)

[issue21731] Calendar Problem with Windows (XP)

2014-06-12 Thread Jürgen B
Jürgen B added the comment: Yes, Issue 10466 seems to be the same problem. One could fix this one instance higher, not necessarily in Calendar.py. As I said, I have no idea about Python (not yet). You could code this and I would test it. -- ___

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-12 Thread Gavin Carothers
Gavin Carothers added the comment: Issue also exists in Pyramid (any wsgi server/framework) See https://github.com/Pylons/pyramid/issues/1360 for Pyramid bug. -- nosy: +gcarothers ___ Python tracker rep...@bugs.python.org

[issue21733] mmap(size=9223372036854779904) failed message when running test_io on AMD64 Snow Leop 3.x buildbot

2014-06-12 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/1734/steps/test/logs/stdio python.exe(59021,0x7fff71296cc0) malloc: *** mmap(size=9223372036854779904) failed (error code=12) *** error: can't allocate region *** set a breakpoint in

[issue21732] SubprocessTestsMixin.test_subprocess_terminate() hangs on AMD64 Snow Leop 3.x buildbot

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: I checked builds 1722..1742: it looks like this issue only occured once. -- assignee: - ronaldoussoren components: +Macintosh nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org

[issue21732] SubprocessTestsMixin.test_subprocess_terminate() hangs on AMD64 Snow Leop 3.x buildbot

2014-06-12 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/1742/steps/test/logs/stdio Timeout (1:00:00)! Thread 0x7fff71296cc0 (most recent call first): File /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/selectors.py, line

[issue21734] compilation of the _ctypes module fails on OpenIndiana: ffi_prep_closure_loc symbol is missing

2014-06-12 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/7900/steps/test/logs/stdio gcc -shared (...)Modules/_ctypes/_ctypes.o (...) -o build/lib.solaris-2.11-i86pc.64bit-3.5-pydebug/_ctypes.so (...) *** WARNING: renaming _ctypes since

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2014-06-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20128 ___ ___ Python-bugs-list

[issue20128] Re-enable test_modules_search_builtin() in test_pydoc

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: Many test_pydoc tests are failing on the FreeBSD 9 buildbot, example: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/6870/steps/test/logs/stdio == FAIL:

[issue21735] test_threading.test_main_thread_after_fork_from_nonmain_thread() hangs on the FreeBSD 10 buildbot

2014-06-12 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/2220/steps/test/logs/stdio [390/390] test_threading Timeout (1:00:00)! Thread 0x000801c06400 (most recent call first): File

[issue12516] imghdr.what should take one argument

2014-06-12 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12516 ___

[issue21723] Float maxsize is treated as infinity in asyncio.Queue

2014-06-12 Thread Vajrasky Kok
Vajrasky Kok added the comment: It looks strange to use a float as maxsize. = It is. But the float could be coming programmatically. Float value interpreted as infinity could give a shock for some people. maybe to cast maxsize parameter to an int. = ceiling or flooring? --

[issue12516] imghdr.what should take one argument

2014-06-12 Thread Claudiu Popa
Claudiu Popa added the comment: imghdr got a test file in 94813eab5a58. Your patch also needs documentation updates. Besides that, +1 from me. Maybe it would be okay to add a deprecation warning for the second argument? -- ___ Python tracker

[issue21736] Add __file__ attribute to frozen modules

2014-06-12 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: The missing __file__ attribute on frozen modules causes lots of issues with the stdlib (see e.g. Issue21709 and the stdlib test suite) and other tools that expect this attribute to always be present. The attached patch for 3.4.1 adds this attribute to

[issue21736] Add __file__ attribute to frozen modules

2014-06-12 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: -- keywords: +patch Added file: http://bugs.python.org/file35595/__file__-for-frozen-modules.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21736

[issue21709] logging.__init__ assumes that __file__ is always set

2014-06-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: While the current patch does not resolve the issue, I'm leaving the issue closed and have instead opened a new Issue21736 which tracks the idea to add a __file__ attribute to frozen modules per default. -- ___

[issue21737] runpy.run_path() fails with frozen __main__ modules

2014-06-12 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: The logic in runpy.run_path() assumes that removing the __main__ entry from sys.modules is enough to be able to use the module search logic for e.g. importing packages and ZIP files (with embedded __main__.py files). In Python 3.4 (and probably also 3.3

[issue21737] runpy.run_path() fails with frozen __main__ modules

2014-06-12 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: -- keywords: +patch Added file: http://bugs.python.org/file35596/FrozenImporter-without-__main__-support.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21737

[issue21736] Add __file__ attribute to frozen modules

2014-06-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21736 ___ ___ Python-bugs-list mailing

[issue21736] Add __file__ attribute to frozen modules

2014-06-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm -0 on this patch. I can understand that in some sense, frozen modules do semantically have an associated file, but OTOH, once they're frozen the connection to their file is broken. Also, I think anything that assumes __file__ exists is simply broken

[issue21230] imghdr does not accept adobe photoshop mime type

2014-06-12 Thread Claudiu Popa
Claudiu Popa added the comment: Issue issue16512 has a patch which will recognize this format of JPEG, as well as others. -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21230

[issue21736] Add __file__ attribute to frozen modules

2014-06-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 12.06.2014 18:35, Barry A. Warsaw wrote: I'm -0 on this patch. I can understand that in some sense, frozen modules do semantically have an associated file, but OTOH, once they're frozen the connection to their file is broken. Also, I think

[issue21736] Add __file__ attribute to frozen modules

2014-06-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: PBP might be reasonably used to justify it for the frozen case. I just don't want to use that as a wedge to define __file__ in *all* cases, even when no reasonable file name exists. -- ___ Python tracker

[issue21205] Add __qualname__ attribute to Python generators and change default __name__

2014-06-12 Thread STINNER Victor
STINNER Victor added the comment: @Antoine: Can you please review gen_qualname.patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205 ___

[issue21737] runpy.run_path() fails with frozen __main__ modules

2014-06-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21737 ___

[issue21709] logging.__init__ assumes that __file__ is always set

2014-06-12 Thread Vinay Sajip
Vinay Sajip added the comment: While the current patch does not resolve the issue, I'm leaving the issue closed That's fine - I will implement the changes we discussed in this issue, even if it's something of a stop-gap. -- ___ Python tracker

[issue21733] mmap(size=9223372036854779904) failed message when running test_io on AMD64 Snow Leop 3.x buildbot

2014-06-12 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - duplicate stage: - resolved status: open - closed superseder: - Malloc errors in test_io ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21733

  1   2   >