Re: A desperate lunge for on-topic-ness

2012-10-22 Thread Steven D'Aprano
On Mon, 22 Oct 2012 07:22:18 +1100, Chris Angelico wrote: On Mon, Oct 22, 2012 at 6:11 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Ahh. I totally didn't see that, I'm way too used to reading past typos. As a programmer, doesn't that screw up your debugging ability?

Re: A desperate lunge for on-topic-ness

2012-10-22 Thread Chris Angelico
On Mon, Oct 22, 2012 at 5:30 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: For languages without static types, what other reasons for declaring variables are there? The main one is scope nesting. Compare a few different languages. Python: If you don't declare, it's global if

Re: Python does not take up available physical memory

2012-10-22 Thread Barry Scott
On 21 Oct 2012, at 15:14, Pradipto Banerjee pradipto.baner...@adainvestments.com wrote: I tried this on a different PC with 12 GB RAM. As expected, this time, reading the data was no issue. I noticed that for large files, Python takes up 2.5x size in memory compared to size on disk, for the

Compiling extension module (linker error)

2012-10-22 Thread Paul Volkov
I am trying to compile an extension module with C++ Builder 6 for Python 3.3. I converted python33.lib using coff2omf.exe and added this library into my project. I wonder why I get this error message while building: [Linker Error] Unresolved external '_PyModule_Create2TraceRefs' referenced from

Re: A desperate lunge for on-topic-ness

2012-10-22 Thread Roy Smith
In article 5084e819$0$29897$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 22 Oct 2012 07:22:18 +1100, Chris Angelico wrote: On Mon, Oct 22, 2012 at 6:11 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Ahh. I

Re: Preventing crap email from google?

2012-10-22 Thread Walter Hurry
On Mon, 22 Oct 2012 13:51:35 +1100, Ben Finney wrote: Walter Hurry walterhu...@lavabit.com writes: It is Google bloody Groups which is the problem. I should have plonked posts from there ages ago, and am about to remedy that omission. What narrowly-defined, precise filter rule should be

Re: Blue Screen Python

2012-10-22 Thread mikcec82
Il giorno venerdì 21 settembre 2012 16:04:48 UTC+2, mikcec82 ha scritto: Hallo to all, I'm using Python 2.7.3 with Windows 7 @ 64 bit and an Intel Core i3 -2350M CPU @2.30GHz 2.3GHz. Sometimes, when I'm programming in Python on my screen compare this blue screen:

Re: get each pair from a string.

2012-10-22 Thread Emile van Sebille
On 10/21/2012 9:19 PM, Ian Foote wrote: On 22/10/12 09:03, Emile van Sebille wrote: So, as OP's a self confessed newbie asking about slicing, why provide an example requiring knowledge of tee, enumerate, next and izip? Because not only the newbie will read the thread? I for one was

Re: Preventing crap email from google?

2012-10-22 Thread rurpy
On Fri, 19 Oct 2012 21:21:11 -0700 (PDT), ru...@yahoo.com declaimed the following in gmane.comp.python.general: [I posted the following in another thread yesterday...] When you post from Google Groups you will sometimes see a checkbox above the edit window that is a cc to the python

Re: program loaded in memory

2012-10-22 Thread Grant Edwards
On 2012-10-22, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 22 Oct 2012 02:02:27 +0200, Anatoli Hristov wrote: Hello, I need an advice about a small script I run 24/24 7/7. It's a script converted to EXE using py2exe and this script takes - grows 30kb RAM on each

Re: Preventing crap email from google?

2012-10-22 Thread Grant Edwards
On 2012-10-22, Walter Hurry walterhu...@lavabit.com wrote: On Mon, 22 Oct 2012 13:51:35 +1100, Ben Finney wrote: Walter Hurry walterhu...@lavabit.com writes: It is Google bloody Groups which is the problem. I should have plonked posts from there ages ago, and am about to remedy that

Re: Preventing crap email from google?

2012-10-22 Thread HoneyMonster
On Mon, 22 Oct 2012 14:21:36 +, Grant Edwards wrote: On 2012-10-22, Walter Hurry walterhu...@lavabit.com wrote: On Mon, 22 Oct 2012 13:51:35 +1100, Ben Finney wrote: Walter Hurry walterhu...@lavabit.com writes: It is Google bloody Groups which is the problem. I should have plonked

Re: Preventing crap email from google?

2012-10-22 Thread D'Arcy J.M. Cain
On Mon, 22 Oct 2012 07:07:20 -0700 (PDT) ru...@yahoo.com wrote: Re the specific problem mentioned, I just paste the original message into an emacs window, add the quote marks and paste back into the GG compose window. If you are on Firefox you should check out the It's All Text! plugin. Not

Re: Preventing crap email from google?

2012-10-22 Thread Walter Hurry
On Mon, 22 Oct 2012 14:35:58 +, HoneyMonster wrote: snip Sorry about the moniker on the above. I used it by accident - it's one I reserve for junk trapping. -- http://mail.python.org/mailman/listinfo/python-list

Re: Preventing crap email from google?

2012-10-22 Thread D'Arcy J.M. Cain
On Mon, 22 Oct 2012 14:21:36 + (UTC) Grant Edwards invalid@invalid.invalid wrote: Same here. Here's the rule I have in slrn's .score file: Here is the procmail one that I use: :0 Hir * ^List-Id:.*python-list.python.org * ^From:.*@gmail.com * ^Newsgroups: /dev/null This still allows people

Re: Is there a way to programmatically turn on remote registry?

2012-10-22 Thread Kevin Holleran
Back at it this morning. The RPC was due to needing to run it under another account (or so I think now...). However, the RemoteRegistry service is not just STOPPED but DISABLED. I am trying to see if there is a call to actually set the state to MANUAL. Then I can star the registry, grab what I

Re: Is there a way to programmatically turn on remote registry?

2012-10-22 Thread Tim Golden
On 22/10/2012 15:51, Kevin Holleran wrote: Back at it this morning. The RPC was due to needing to run it under another account (or so I think now...). However, the RemoteRegistry service is not just STOPPED but DISABLED. I am trying to see if there is a call to actually set the state to

Re: Is there a way to programmatically turn on remote registry?

2012-10-22 Thread Kevin Holleran
Thanks, I will look into that. WMI is enabled, but everything WMI query I wrote ( I am NOT a WMI expert or even close) gave me a bunch of NIC info, but not the info I am after in the registry (driver description, driver date, driver version for the NICs). Thanks for your help. Kevin On

some godd python blog?

2012-10-22 Thread nepaul
-- http://mail.python.org/mailman/listinfo/python-list

ANN: Central Python Events Calendar

2012-10-22 Thread M.-A. Lemburg
[Please help spread the word by forwarding to other relevant mailing lists, user groups, etc. world-wide; thanks] ANNOUNCING Central Python Events Calendars maintained by the Python

Re: get each pair from a string.

2012-10-22 Thread rusi
On 10/21/2012 11:33 AM, Vincent Davis wrote: I am looking for a good way to get every pair from a string. For example, input: x = 'apple' output 'ap' 'pp' 'pl' 'le' Maybe zip before izip for a noob? s=apple [a+b for a,b in zip(s, s[1:])] ['ap', 'pp', 'pl', 'le'] --

Re: some godd python blog?

2012-10-22 Thread Mark Lawrence
On 22/10/2012 17:01, nepaul wrote: Try using a search engine for specific Python issues that you'd like to read up on. If you can't find what you want please ask a specific question, that way you're far more likely to get some answers. -- Cheers. Mark Lawrence. --

Re: ANN: Central Python Events Calendar

2012-10-22 Thread Miki Tebeka
ANNOUNCING Central Python Events Calendars Thanks, a great idea. -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling extension module (linker error)

2012-10-22 Thread MRAB
On 2012-10-22 11:55, Paul Volkov wrote: I am trying to compile an extension module with C++ Builder 6 for Python 3.3. I converted python33.lib using coff2omf.exe and added this library into my project. I wonder why I get this error message while building: [Linker Error] Unresolved external

Re: get each pair from a string.

2012-10-22 Thread Daniel Nogues
Hello rusi This is a little bit faster: s = apple [s[i:i+2] for i in range(len(s)-1)] timeit(s = apple ... [a+b for a,b in zip(s, s[1:])],number=1) 0.061038970947265625 timeit(s = apple ... [s[i:i+2] for i in range(len(s)-1)],number=1) 0.0467379093170166 Regards From: rusi

Re: Is there a way to programmatically turn on remote registry?

2012-10-22 Thread Tim Golden
On 22/10/2012 16:38, Kevin Holleran wrote: Thanks, I will look into that. WMI is enabled, but everything WMI query I wrote ( I am NOT a WMI expert or even close) gave me a bunch of NIC info, but not the info I am after in the registry (driver description, driver date, driver version for the

Re: Tkinter Create/Destory Button

2012-10-22 Thread Jason Swails
On Fri, Oct 19, 2012 at 4:11 PM, bbbenrothsch...@gmail.com wrote: I am trying to create a button in Tkinter and then when it is pressed delete it/have it disappear. Does anyone know the simplest script to do that with. Thanks for your help. Note that there is a _big_ difference between

Re: Is there a way to programmatically turn on remote registry?

2012-10-22 Thread Kevin Holleran
Tim, I am looking here: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BF9F6FB0-C999-4D19-BED0-144F77E2A9D6} Enumerating the keys for a BusType == 5, then grabbing the values of DriverDesc, DriverDate, DriverVersion. So I am doing this: try: hKey = _winreg.OpenKey

RE: A desperate lunge for on-topic-ness

2012-10-22 Thread Prasad, Ramit
Roy Smith wrote: Pet peeve of the day... Why do you have to write: global foo foo = 4 when global foo = 4 would have been so much easier? To make it more annoying for people who use globals, duh. :) Ramit Prasad This email is confidential and subject to important disclaimers

Compiler Error for build Python -3.3.0 (Suggestions)

2012-10-22 Thread Joe Davis
The version of Python I have on my old Solaris boxes is old and isn't supported and dosn't have all the modules that I need.I have downloaded the new 3.3 version and have been trying to compile it and have no luck: After running the ./configure command I run make and it gives me the

Re: SQLAlchemy: How to do Table Reflection and MySQL?

2012-10-22 Thread darnold
On Oct 20, 6:24 pm, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: Hi, I'm fairly new to Python, and I'm trying to figure out how to use SQLAlchemy to connect to a MySQL DB and use table reflection to set up SQLAlchemy's tables. But the  SQLAlchemy documentation is gigantic and

Re: Preventing crap email from google?

2012-10-22 Thread Ben Finney
Walter Hurry walterhu...@lavabit.com writes: On Mon, 22 Oct 2012 13:51:35 +1100, Ben Finney wrote: Walter Hurry walterhu...@lavabit.com writes: It is Google bloody Groups which is the problem. I should have plonked posts from there ages ago, and am about to remedy that omission.

Re: A desperate lunge for on-topic-ness

2012-10-22 Thread Ian Kelly
On Mon, Oct 22, 2012 at 1:03 AM, Chris Angelico ros...@gmail.com wrote: Python's system just works most of the time, but can introduce yet another trap for the unsuspecting newbie who doesn't understand the difference between rebinding and mutating; I've not looked into multiple levels of

Re: Compiler Error for build Python -3.3.0 (Suggestions)

2012-10-22 Thread MRAB
On 2012-10-22 22:31, Joe Davis wrote: The version of Python I have on my old Solaris boxes is old and isn't supported and dosn't have all the modules that I need.I have downloaded the new 3.3 version and have been trying to compile it and have no luck: After running the ./configure

Re: Python 3.3 can't sort memoryviews as they're unorderable

2012-10-22 Thread Mark Lawrence
On 21/10/2012 12:24, Mark Lawrence wrote: http://docs.python.org/dev/whatsnew/3.3.html states memoryview comparisons now use the logical structure of the operands and compare all array elements by value. So I'd have thought that you should be able to compare them and hence sort them, but this

Re: Python 3.3 can't sort memoryviews as they're unorderable

2012-10-22 Thread Ian Kelly
On Mon, Oct 22, 2012 at 4:58 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: http://docs.python.org/py3k/library/stdtypes.html#typememoryview only gives examples of equality comparisons and there was nothing that I could see in PEP3118 to explain the rationale behind the lack of other

Re: Compiler Error for build Python -3.3.0 (Suggestions)

2012-10-22 Thread Christian Heimes
Am 22.10.2012 23:31, schrieb Joe Davis: The version of Python I have on my old Solaris boxes is old and isn't supported and dosn't have all the modules that I need.I have downloaded the new 3.3 version and have been trying to compile it and have no luck: After running the ./configure

Style help for a Smalltalk-hack

2012-10-22 Thread Travis Griggs
I'm writing some code that does a structured read from formatted binary file. The code I came up with looks like: # get the first four bytes, the first gap field chunk = byteStream.read(4) while chunk: # interpret the gap bytes gap, = struct.unpack('I', chunk) # suck off the

Re: Style help for a Smalltalk-hack

2012-10-22 Thread MRAB
On 2012-10-23 01:43, Travis Griggs wrote: I'm writing some code that does a structured read from formatted binary file. The code I came up with looks like: # get the first four bytes, the first gap field chunk = byteStream.read(4) while chunk: # interpret the gap bytes gap, =

Re: get each pair from a string.

2012-10-22 Thread rusi
On Oct 22, 9:19 pm, rusi rustompm...@gmail.com wrote: On 10/21/2012 11:33 AM, Vincent Davis wrote: I am looking for a good way to get every pair from a string. For example, input: x = 'apple' output 'ap' 'pp' 'pl' 'le' Maybe zip before izip for a noob? s=apple [a+b for a,b

[issue14621] Hash function is not randomized properly

2012-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 21.10.2012 23:42, STINNER Victor wrote: STINNER Victor added the comment: It's interesting to note how this whole -R discussion made very long threads on python-dev, and python-dev has subsequently ignored (for the past 6 months!) the fact that

[issue16291] Enable darwin-host cross compilation. Tested with build=linux, host=darwin

2012-10-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch itself looks fine, but I wonder how useful it will be. A small question about the patch, why this case in the cross_arch function: + x86_64*darwin*) + echo i386 That doesn't look correct. Back to the more important issue of the

[issue16297] csv.DictReader

2012-10-22 Thread tb
New submission from tb: The csv.DictReader contains a setter method for the fieldnames (@fieldnames.setter). However, the __init__ method does not make use of the setter method as it sets _fieldnames directly. To allow users correct/functional overriding of the fieldnames.setter method I

[issue15633] httplib.response is not closed after all data has been read

2012-10-22 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15633 ___ ___

[issue14892] 'import readline' hangs when launching with '' on BSD and OS X

2012-10-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've just tested this on OSX 10.8.2 and the problem is not present there (that is, 'python -c import deadline ' does not hang) The problem is present on OSX 10.6.8, and when using ksh(1) you can see why the process is stopped: [1] + Stopped(SIGTTOU)

[issue16294] 8 space indent in tutorial

2012-10-22 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I take care of this. Thanks for pointing it out. -- assignee: docs@python - jcea nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16294 ___

[issue16294] 8 space indent in tutorial

2012-10-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- versions: +Python 3.4 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16294 ___ ___

[issue16294] 8 space indent in tutorial

2012-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1a3f48c6ef16 by Jesus Cea in branch '2.7': Closes #16294: 8 space indent in tutorial http://hg.python.org/cpython/rev/1a3f48c6ef16 New changeset 2015db05d954 by Jesus Cea in branch '3.2': Closes #16294: 8 space indent in tutorial

[issue16291] Enable darwin-host cross compilation. Tested with build=linux, host=darwin

2012-10-22 Thread Ray Donnelly
Ray Donnelly added the comment: A small question about the patch, why this case in the cross_arch function: From a real Mac Book Pro: $ uname -a Darwin MACBOOKPRO.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64 $

[issue16298] httplib.HTTPResponse.read could potentially leave the socket opened forever

2012-10-22 Thread Eran Rundstein
New submission from Eran Rundstein: When calling HTTPResponse.read() on a response that is: a. not chunked b. contains no content-length header the underlying socket (referenced by self.fp) will never get closed (through self.close()) The offending code is at the bottom of the read() function:

[issue16102] uuid._netbios_getnode() is outdated

2012-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As I see in pywin32 sources status.adapter_address is bytes in Python 3. Here is a trivial patch. -- keywords: +patch Added file: http://bugs.python.org/file27658/uuid_netbios_getnode.patch ___ Python tracker

[issue16053] strict parameter is not documented in csv module

2012-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If the patch is good, why not commit it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16053 ___ ___

[issue16290] PyComplex_AsCComplex should allow __complex__ to return float.

2012-10-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16290 ___ ___ Python-bugs-list mailing list

[issue16291] Enable darwin-host cross compilation. Tested with build=linux, host=darwin

2012-10-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16291 ___ ___ Python-bugs-list mailing list

[issue15484] CROSS: use _PYTHON_PROJECT_BASE in distutils sysconfig

2012-10-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15484 ___ ___ Python-bugs-list mailing list

[issue15483] CROSS: initialise include and library paths in setup.py

2012-10-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15483 ___ ___ Python-bugs-list mailing list

[issue16292] Cross compilation fixes (general)

2012-10-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16292 ___ ___ Python-bugs-list mailing list

[issue16295] With VS2010 the select extension links against wsock32 instead of ws2_32

2012-10-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: See this patch. -- keywords: +patch Added file: http://bugs.python.org/file27659/select.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16295

[issue16231] pickle persistent_id return value

2012-10-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16231 ___ ___ Python-bugs-list mailing list

[issue16295] With VS2010 the select extension links against wsock32 instead of ws2_32

2012-10-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16295 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16274] test_asyncore failing on Solaris 10 2.7 (nitrogen/s10)

2012-10-22 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Keeping the issue open until Trent can commit a new patch, according to msg173256. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16274 ___

[issue16274] test_asyncore failing on Solaris 10 2.7 (nitrogen/s10)

2012-10-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: This should do it: diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py @@ -484,8 +484,9 @@ return self.socket.getsockname()[:2] def handle_accept(self): -

[issue16274] test_asyncore failing on Solaris 10 2.7 (nitrogen/s10)

2012-10-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Yes, now that I think of it that is how accept() is supposed to be used in 2.7 (back then I did also update doc examples in order to enforce this use case) so this is a test suite issue. -- ___ Python tracker

[issue16295] With VS2010 the select extension links against wsock32 instead of ws2_32

2012-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset daad150b4670 by Kristjan Valur Jonsson in branch '3.3': Issue #16295: Link select with ws2_32.lib, the winsock2 stub library. http://hg.python.org/cpython/rev/daad150b4670 New changeset a2cd25d434b3 by Kristjan Valur Jonsson in branch 'default':

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2012-10-22 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file27660/029d1cdf6422.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15968

[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2012-10-22 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +brian.curtin, loewis, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15968 ___

[issue16298] httplib.HTTPResponse.read could potentially leave the socket opened forever

2012-10-22 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16298 ___ ___

[issue672115] Assignment to __bases__ of direct object subclasses

2012-10-22 Thread Krzysztof Jurewicz
Changes by Krzysztof Jurewicz krzysztof.jurew...@gmail.com: -- nosy: +krzysiekj ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue672115 ___ ___

[issue15633] httplib.response is not closed after all data has been read

2012-10-22 Thread Nikolaus Rath
Nikolaus Rath added the comment: This is just a heads-up that I'm still trying to debug this. So far, the problem doesn't seem to have shown up again (for reference, the original report for this is http://code.google.com/p/s3ql/issues/detail?id=358). --

[issue15633] httplib.response is not closed after all data has been read

2012-10-22 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: @Nikolaus Issue 16298 was raised today describing what could be the cause of what you observe. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15633 ___

[issue8766] Segmentation fault with empty encodings subdirectory of directory in PYTHONPATH

2012-10-22 Thread anatoly techtonik
anatoly techtonik added the comment: This is still an issue for Windows. -- nosy: +techtonik versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8766 ___

[issue15772] Unresolved symbols in Windows 64-bit python

2012-10-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: Closing as works-for-me then. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15772 ___

[issue8766] Segmentation fault with empty encodings subdirectory of directory in PYTHONPATH

2012-10-22 Thread STINNER Victor
STINNER Victor added the comment: This is still an issue for Windows. See my message on python-dev: your issue (with an invalid PYTHONHOME, Python exits with abort) is not related to this one, and it's not a bug (abort is not a bug). -- ___ Python

[issue13376] readline: pre_input_hook not getting called

2012-10-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: 1) Issue is still present with libedit on OSX 10.8 2) Libedit on OSX doesn't call rl_pre_input_hook when using the '#if defined(HAVE_RL_CALLBACK) defined(HAVE_SELECT)' branch in the readline extension (that is, not calling readline(3), but using

[issue8766] Segmentation fault with empty encodings subdirectory of directory in PYTHONPATH

2012-10-22 Thread Christian Heimes
Christian Heimes added the comment: I agree with Victor. -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8766 ___ ___

[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread anatoly techtonik
New submission from anatoly techtonik: Currently distutils builds files in a temporary directory named 'build' in current dir if not specified otherwise. It will be pythonic to name this directory to be __build__ be default to distinguish it from project specific directories and clarify that

[issue16297] small fix to csv.DictReader.__init__

2012-10-22 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: csv.DictReader - small fix to csv.DictReader.__init__ versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16297

[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-22 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: small fix to csv.DictReader.__init__ - make csv.DictReader.__init__ use self.fieldnames ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16297

[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-22 Thread Senthil Kumaran
New submission from Senthil Kumaran: From the Buildbot failure - http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/7573/steps/test/logs/stdio I remember that we restricted the access for file:// scheme to localhost only for Windows/Cygwin. In terms of exception raised it could

[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread R. David Murray
R. David Murray added the comment: I see no reason to make this change. 'build' is pretty much universally understood to be something that can be blown away, and I think that making Python's naming convention different than that used by other open source software projects in similar contexts

[issue16053] strict parameter is not documented in csv module

2012-10-22 Thread Éric Araujo
Éric Araujo added the comment: Because I lack time. Feel free to do it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16053 ___ ___

[issue10905] zipfile: fix arcname with leading '///' or '..'

2012-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm going to close this issue as a duplicate of issue6972. Issue6972 is older and has a larger discussion. Thank you for patch and research, Zhigang Wang. I will use it for the new patch. -- resolution: - duplicate status: open - pending

[issue6972] zipfile.ZipFile overwrites files outside destination path

2012-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch based on patch for issue10905. Test included (I have removed some old tests as new one supersede them). Please test on Windows. .. components, leading slashes, drive letter, etc are just dropped, as in unzip or 7-Zip. Thanks Zhigang Wang for

[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-22 Thread Berker Peksag
Berker Peksag added the comment: I think this is an invalid request. See the usage of property decorator: http://docs.python.org/py3k/library/functions.html#property -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org

[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-22 Thread R. David Murray
R. David Murray added the comment: I think it is not an invalid request. However, what is the use case? Normally a class will manipulate the real variable, and the getter/setter is the public API. Without a good use case it doesn't seem worth changing that bit of the init method.

[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread anatoly techtonik
anatoly techtonik added the comment: RDM 'build' is pretty much universally understood to be something that can be blown away That's not true anymore in 2012. Why follow the bad practice? I also want to know what open source software project are you referring to. From my experience 'build'

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Senthil Kumaran
New submission from Senthil Kumaran: localhost() returns a string and thishost() returns tuple. In urllib/request.py, for file:// protocol, there is a verification to check to if the host is in the localhost and check happens: socket.gethostbyname(host) in (localhost() + thishost())): This

[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread anatoly techtonik
anatoly techtonik added the comment: Another difference from C sources that it is very convenient to use Python packages directly from source. In this case this unrelated 'build' dir will be the source of confusion if user previously tried to install the package. -- status: pending -

[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Berker Peksag
New submission from Berker Peksag: See the output: test_file_notexists (test.test_urllib.urlopen_HttpTests) ... file:///tmp/tmpmlmjhf /home/berker/hacking/cpython/Lib/test/test_urllib.py:284: ResourceWarning: unclosed file _io.BufferedReader name='/tmp/tmpmlmjhf'

[issue13504] Meta-issue for Invent with Python IDLE feedback

2012-10-22 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13504 ___ ___

[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: thanks for the bug-report/patch. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16302 ___

[issue16299] __build__ as a temp build directory for setup.py

2012-10-22 Thread Christian Heimes
Christian Heimes added the comment: The bug tracker is the wrong place to discuss your proposal. Please join the distutils-sig [1]. The group coordinates all efforts. [1] http://www.python.org/community/sigs/current/distutils-sig/ -- assignee: eric.araujo - nosy: +christian.heimes

[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: The problem is here: if url[:2] == '//' and url[2:3] != '/' and url[2:12].lower() != 'localhost/': raise ValueError(file:// scheme is supported only on localhost) On Unix like systems url[2:3] == '/', that is path starts with '/' and this ValueError is

[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use contextlib.closing() context manager (if urlopen() already does not return a context manager). -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16302

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is wrong too. tuple('abc') ('a', 'b', 'c') Use ((localhost(),) + thishost())) -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16301

[issue8766] Segmentation fault with empty encodings subdirectory of directory in PYTHONPATH

2012-10-22 Thread anatoly techtonik
anatoly techtonik added the comment: Oh, sorry. I am just testing Python 3.3 and there are so many issues that hardly can test and fill them all. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8766

[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the suggestion, Serhiy. Attached a new patch. -- Added file: http://bugs.python.org/file27663/resourcewarning_urllib_test_v2.patch ___ Python tracker rep...@bugs.python.org

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Serhiy: Yes. I stand corrected. That snippet suggestion was my mistake. I think, wrapping the test is better than changing the return of localhost. It would always return a single value. Thanks. -- ___ Python

[issue14892] 'import readline' hangs when launching with '' on BSD and OS X

2012-10-22 Thread olivier-mattelaer
olivier-mattelaer added the comment: Thanks a lot Ronald. Cheers, Olivier -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14892 ___

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 49de26395d1a by Senthil Kumaran in branch 'default': Issue #16301: Fix the localhost verification in urllib/request.py for file://. Modify tests to use localhost for local temp files, which could make Windows Buildbot (#16300) happy

  1   2   >