Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Sayth Renshaw
Hi I was wondering if there is a reason that we on windows with python do not have a version of Ruby devkit for python. Is it just for historical reason of life before pip became the package manager and released with python? I can't find the actual post in SO it came off this discussion

Re: Question about math.pi is mutable

2015-11-08 Thread Ben Finney
BartC writes: > On 08/11/2015 21:00, Ben Finney wrote: > > The namespace can change dynamically, which is another way of what > > people have been trying to tell you all through this thread. > > > > The compiler *cannot* know what the names will be at every single > > point

Re: Question about math.pi is mutable

2015-11-08 Thread BartC
On 08/11/2015 23:13, Dennis Lee Bieber wrote: On Sun, 8 Nov 2015 18:58:36 +, BartC declaimed the following: But then, you say that additional attributes, potentially millions of different ones, can be invented at runtime. Although I don't see how it can remove names that

Re: Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Sayth Renshaw
This is an exert DevKit Overview The DevKit is a toolkit that makes it easy to build and use native C/C++ extensions such as RDiscount and RedCloth for Ruby on Windows. Because on Windows with python libraries like lxml will fail with a vcvarsall error based on different c++ compilers.

Re: Guide in Deskop Application Development in Python for newbies

2015-11-08 Thread Chris Warrick
On 7 November 2015 at 15:44, wrote: > How do you start building a desktop application in python? I mean where do I > start? Besides installing python on your windows what else do I need, and any > suggestion on how do I accomplish this project. > > Right now I really

Re: time module

2015-11-08 Thread input/ldompeling
> Ambiguous requirement: any normal counter starts from zero... But what > "zero" represents may differ... Seconds since Jan 1 1970? Seconds since > midnight? Seconds since start of program? Thanks for the reply Yes, I would like seconds since start of program. Can I not doing something like

[issue25576] Remove “Content-Type: application/x-www-form-urlencoded; charset” advice

2015-11-08 Thread Martin Panter
Martin Panter added the comment: I think the server bugs referenced by the Mozilla bug are mainly about servers that do not recognize the content type at all, due the the presence of any charset parameter. They probably do something like “if headers['Content-Type'] ==

Re: Question about math.pi is mutable

2015-11-08 Thread BartC
On 08/11/2015 11:02, Marko Rauhamaa wrote: Bartc : (In the case of Python, the main obstacle is that a constant name from inside an imported module is not visible when this module is compiled to byte-code. So it has to assume it can be anything.) Which it can. That

[issue25582] Fixed memory leaks in test_ctypes

2015-11-08 Thread Martin Panter
Martin Panter added the comment: Seems to be missing your patch -- nosy: +martin.panter ___ Python tracker ___

Re: Converting a string into a float that includes the negative

2015-11-08 Thread Pete Dowdell
On 08/11/15 09:11, phamton...@gmail.com wrote: I am having issue with converting the string into a float because there is a negative, so only end up with "ValueError: invalid literal for float(): 81.4]"81.4] The error is right there in the exception: you are trying to cast '81.4]' - that's a

python PEP suggestion

2015-11-08 Thread Dan Strohl
All, I wanted to run the following thought past the list as a possible PEP enhancement suggestion to see if it feels like something that is worth proposing. I know it is not in the PEP format at this point, I can, and will, clean it up if needed, I am just trying to throw it against the wall

[issue25584] a recursive glob pattern fails to list files in the current directory

2015-11-08 Thread Xavier de Gaye
New submission from Xavier de Gaye: On archlinux during an upgrade, the package manager backups some files in /etc with a .pacnew extension. On my system there are 20 such files, 9 .pacnew files located in /etc and 11 .pacnew files in subdirectories of /etc. The following commands are run

Re: [Ubuntu] PyQt5

2015-11-08 Thread Chris Angelico
On Mon, Nov 9, 2015 at 3:03 AM, Andrew Diamond wrote: > On Saturday, November 7, 2015 at 10:13:25 PM UTC-5, Andrew Diamond wrote: >> Hi! >> >> I'm fairly new to Python, and installed pyqt5 and began working through the >> examples at

[issue25583] os.makedirs with exist_ok=True raises PermissionError on Windows 7^

2015-11-08 Thread Martin Panter
Martin Panter added the comment: Daniel: your latest suggestions look like they introduce a race condition. What happens if another thread or process, perhaps also calling makedirs(), creates the directory just after isdir() says it doesn’t exist? Similar to Issue 1608579. Perhaps the

Re: Python version of Ruby devkit - Advice On library compilation

2015-11-08 Thread Chris Angelico
On Mon, Nov 9, 2015 at 3:00 PM, Sayth Renshaw wrote: > This is an exert > > DevKit Overview > The DevKit is a toolkit that makes it easy to build and use native C/C++ > extensions such as RDiscount and RedCloth for Ruby on Windows. > > Because on Windows with python

[issue25584] a recursive glob pattern fails to list files in the current directory

2015-11-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Likely it was implementation artifact. Current implementation is simpler butter fitted existing glob design. The problem was that '**/a' should list 'a' and 'd/a', but '**/' should list only 'd/', and not ''. Here is a patch that makes '**' to match also

[issue2275] Make urllib.request.Request.has_header() etc case-insensitive

2015-11-08 Thread Martin Panter
Martin Panter added the comment: Please review insensitive-lookup.patch: * Adapt John’s patch to current code * Apply similar changes to Request.remove_header() * Expanded on case-insensitivity, previous capitalize() requirements, and header_items() casing in the documentation * Dropped

[issue25584] a recursive glob pattern fails to list files in the current directory

2015-11-08 Thread R. David Murray
R. David Murray added the comment: Ah, I see, 'pattern' there means the whole pattern. That certainly isn't clear. -- ___ Python tracker ___

[issue25587] Useless addition in PyTuple_New

2015-11-08 Thread Jim Nasby
New submission from Jim Nasby: In PyTuple_New, if the new tuple won't go on the free_list: /* Check for overflow */ if (nbytes / sizeof(PyObject *) != (size_t)size || (nbytes > PY_SSIZE_T_MAX - sizeof(PyTupleObject) - sizeof(PyObject *)))

[issue25585] Bad path leads to: ImportError: DLL load failed: %1 is not a valid Win32 application.

2015-11-08 Thread eryksun
eryksun added the comment: The "DLL load failed" message is from Python, but the rest is the text for the Windows error code, ERROR_BAD_EXE_FORMAT (0x00c1) [1]. The "%1" in the string can be expanded as the first element of the Arguments array parameter of FormatMessage [2]. But currently the

Re: Question about math.pi is mutable

2015-11-08 Thread Christian Gollwitzer
Am 08.11.15 um 08:45 schrieb Marko Rauhamaa: Grant Edwards : On 2015-11-07, Marko Rauhamaa wrote: "const" is a very ineffective tool that clutters the code and forces you to sprinkle type casts around your code. But it allows the compiler to warn

Re: Question about math.pi is mutable

2015-11-08 Thread Paul Rubin
Marko Rauhamaa writes: > Point is, the consequences of "proper" use of const are so annoying even > standard library functions would rather grossly abuse it than tolerate > compiler warnings everywhere. I'm not sure what the C standard says about that example, but C++ is much

Re: Problems connecting to PostgreSQL

2015-11-08 Thread Chris Warrick
On 8 November 2015 at 00:40, Cecil Westerhof wrote: > I followed http://zetcode.com/db/postgresqlpythontutorial/. > > I used: > sudo -u postgres createuser stressTest > this create the role, but also gave: > could not change directory to "/root": Permission denied > and

<    1   2