PyPy3 2.3.1 released

2014-06-20 Thread Philip Jenvey
://doc.pypy.org/en/latest/getting-started.html#installing-using-virtualenv .. _`virtualenv`: http://www.virtualenv.org/en/latest/ .. _`installation schemes`: http://doc.pypy.org/en/latest/getting-started.html#installing-pypy Cheers, the PyPy team -- Philip Jenvey -- https://mail.python.org

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Philip Dexter
On Wed, Jun 18, 2014 at 1:20 PM, cutey Love cuteywithl...@gmail.com wrote: I'm trying to read in 10 lines of text, use some functions to edit them and then return a new list. The problem is my program always goes not responding when the amount of lines are a high number. I don't care

Re: try/except/finally

2014-06-09 Thread Philip Shaw
On 2014-06-08, Dave Angel da...@davea.name wrote: Frank B fbick...@gmail.com Wrote in message: Ok; this is a bit esoteric. So finally is executed regardless of whether an exception occurs, so states the docs. But, I thought, if I return from my function first, that should take

Re: How to use SQLite (sqlite3) more efficiently

2014-06-09 Thread Philip Shaw
On 2014-06-06, Mark Lawrence breamore...@yahoo.co.uk wrote: On 06/06/2014 22:58, Dave Angel wrote: Chris Angelico ros...@gmail.com Wrote in message: On Sat, Jun 7, 2014 at 4:15 AM, R Johnson ps16thypresenceisfullnessof...@gmail.com wrote: The subject line isn't as important as a header,

[issue21575] list.sort() should show arguments in tutorial

2014-05-26 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: I have updated the patch with a cross-reference to the sorted() built-in, which explains the arguments. W.r.t. to Éric's suggestion: the sorted() doc refers to the sorting howto in the wiki. Now everything is connected. -- Added file: http

[issue21575] list.sort() should show arguments in tutorial

2014-05-25 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: Currently, the tutorial for the list sort method does not show allowed arguments: list.sort() Sort the items of the list in place. (see e.g. https://docs.python.org/3.4/tutorial/datastructures.html) Is there a reason why we do not show

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-23 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: We should match the unit test with the documentation for signal.NSIG. Either the code or the docs or both need to change. Currently the docs say that signal.NSIG is One more than the number of the highest signal number. (https://docs.python.org/3.4

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-05-22 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: If you are thinking TL;DR: This fails on FreeBSD: signal.signal(signal.SIGRTMAX, lambda *a: None) Traceback (most recent call last): File stdin, line 1, in module ValueError: signal number out of range Although of infrequent use, I doubt

[issue21376] asyncio docs refer to wrong TimeoutError

2014-04-28 Thread Philip Sequeira
New submission from Philip Sequeira: Example: https://docs.python.org/3.4/library/asyncio-task.html TimeoutError is mentioned several times, and links to the OSError subclass. However, the actual TimeoutError raised by asyncio stuff is the one from concurrent.futures, which is not compatible

[issue21173] WeakKeyDictionary.__len__ fragile w/ _IterationGuards

2014-04-07 Thread Philip Jenvey
New submission from Philip Jenvey: len() on WeakKeyDictionarys can fail with ValueErrors when _IterationGuards are kept alive Attached is a test showing this: == ERROR: test_weak_keys_len_destroy_while_iterating (__main__

[issue21173] WeakKeyDictionary.__len__ fragile w/ _IterationGuards

2014-04-07 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@underboss.org: -- keywords: +patch Added file: http://bugs.python.org/file34751/issue21173-test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21173

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2014-02-20 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: The os.utime() docs for Python 2 (http://docs.python.org/2/library/os.html#os.utime) and 3 (http://docs.python.org/3/library/os.html#os.utime) both contain the sentence Whether a directory can be given for path depends on whether the operating system

[issue10728] argparse.ArgumentParser.print_help uses sys.stdout

2014-02-14 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: The version action currently writes to stderr. The _VersionAction(Action)'s __call__() method finishes off with parser.exit(message=formatter.format_help()) and parser.exit() by default writes to stderr. Here, Steven says Help is definitely intended

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-02-10 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: On FreeBSD, signal.NSIG is smaller than what the documentation promises: One more than the number of the highest signal number. On Linux, the highest numerical signal value is smaller/equal signal.NSIG (expected behavior): import signal signals = [s

[issue20584] On FreeBSD, signal.NSIG is smaller than biggest signal value

2014-02-10 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: As a follow-up, relevant output from FreeBSD 9: $ python Python 2.7.5 (default, Dec 20 2013, 21:12:37) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd9 Type help, copyright, credits or license for more information. import signal signals = [s for s

No overflow in variables?

2014-01-22 Thread Philip Red
Hi everyone. First of all sorry if my english is not good. I have a question about something in Python I can not explain: in every programming language I know (e.g. C#) if you exceed the max-value of a certain type (e.g. a long-integer) you get an overflow. Here is a simple example in C#:

Re: No overflow in variables?

2014-01-22 Thread Philip Red
Thank you for your answers! -- https://mail.python.org/mailman/listinfo/python-list

Re: No overflow in variables?

2014-01-22 Thread Philip Red
Thank you ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Scalability TCP Server + Background Game

2014-01-21 Thread Philip Werner
up. It is buggy to say the least. Any other program on linux you may suggest? Regards, Philip -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Scalability TCP Server + Background Game

2014-01-19 Thread Philip Werner
. I've, hopefully, solved the issue by switching to Pan instead of using google groups. :) Regards, Philip -- https://mail.python.org/mailman/listinfo/python-list

[issue19725] Richer stat object

2013-11-22 Thread Philip Jenvey
New submission from Philip Jenvey: With discussion of the new Pathlib API there's been suggestion (and maybe even already consensus) that some of the convenience APIs provided by it should exist on stat result objects. It's maybe too late for 3.4, but let's track exactly what additions

[issue19516] segmentation fault using a dict as a key

2013-11-06 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@underboss.org: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19516 ___ ___ Python-bugs-list

Re: Python Front-end to GCC

2013-10-23 Thread Philip Herron
On Wednesday, 23 October 2013 07:48:41 UTC+1, John Nagle wrote: On 10/20/2013 3:10 PM, victorgarcia...@gmail.com wrote: On Sunday, October 20, 2013 3:56:46 PM UTC-2, Philip Herron wrote: I've been working on GCCPY since roughly november 2009 at least in its concept. It was announced

Re: Python Front-end to GCC

2013-10-22 Thread Philip Herron
On Tuesday, 22 October 2013 09:55:15 UTC+1, Antoine Pitrou wrote: Philip Herron herron.philip at googlemail.com writes: Its interesting a few things come up what about: exec and eval. I didn't really have a good answer for this at my talk at PYCon IE 2013 but i am going

Re: Python Front-end to GCC

2013-10-22 Thread Philip Herron
On Tuesday, 22 October 2013 10:14:16 UTC+1, Oscar Benjamin wrote: On 22 October 2013 00:41, Steven D'Aprano On the contrary, you have that backwards. An optimizing JIT compiler can often produce much more efficient, heavily optimized code than a static AOT compiler, and at the very

Re: Python Front-end to GCC

2013-10-21 Thread Philip Herron
Hey all, Thanks, i've been working on this basically on my own 95% of the compiler is all my code, in my spare time. Its been fairly scary all of this for me. I personally find this as a real source of interest to really demystify compilers and really what Jit compilation really is under the

Re: Python Front-end to GCC

2013-10-21 Thread Philip Herron
On Monday, 21 October 2013 21:26:06 UTC+1, zipher wrote: On Mon, Oct 21, 2013 at 4:08 AM, Philip Herron herron.phi...@googlemail.com wrote: Thanks, i've been working on this basically on my own 95% of the compiler is all my code, in my spare time. Its been fairly scary all

Python Front-end to GCC

2013-10-20 Thread Philip Herron
Hey, I've been working on GCCPY since roughly november 2009 at least in its concept. It was announced as a Gsoc 2010 project and also a Gsoc 2011 project. I was mentored by Ian Taylor who has been an extremely big influence on my software development carrer. Gccpy is an Ahead of time

Re: Download Visual Studio Express 2008 now

2013-08-29 Thread Philip Inglesant
Hi Martyn, Thanks for the good advice to download VS 2008 before M$ delete it from their download servers. Unfortunately they have already done this so many Python modules now can't be compiled correctly on Windows! Best regards, Philip -- http://mail.python.org/mailman/listinfo/python

PyPy3 2.1 beta 1 released

2013-07-31 Thread Philip Jenvey
PyPy3 2.1 beta 1 We're pleased to announce the first beta of the upcoming 2.1 release of PyPy3. This is the first release of PyPy which targets Python 3 (3.2.3) compatibility. We would like to thank all of the people who donated_ to the `py3k proposal`_ for

PyPy3 2.1 beta 1 released

2013-07-30 Thread Philip Jenvey
PyPy3 2.1 beta 1 We're pleased to announce the first beta of the upcoming 2.1 release of PyPy3. This is the first release of PyPy which targets Python 3 (3.2.3) compatibility. We would like to thank all of the people who donated_ to the `py3k proposal`_ for

Question regarding building Python Windows installer

2013-07-15 Thread Mcadams, Philip W
this instead of just using the Windows Installer provided by Python: I needed to modify a _ssl.c file in the Python source code to deal a Mercurial that I'm trying to resolve. Any help on why I'm hitting these errors would be appreciated. Thank you. Philip McAdams Systems Administrator - NVM Solutions

RE: Question regarding building Python Windows installer

2013-07-15 Thread Mcadams, Philip W
\Python-2.7.4\Modules to my environment variables in Windows. Wasn't exactly following your comment. Thank you. Philip McAdams Systems Administrator - NVM Solutions Group Systems Engineering Apps Infrastructure Desk: (916) 377-6156 Cell: (916) 534-0092 Pole: FM3-1-D7 -Original Message

RE: Question regarding building Python Windows installer

2013-07-15 Thread Mcadams, Philip W
the Python change is no longer needed. But out curiosity, and in case I ran into a situation where did indeed need to make a fix to Python I've wondered what's the best way to do that. Hopefully this gives you a little insight on what I'm trying to do. Thanks for your replies. Thank you. Philip

[issue18454] distutils crashes when uploading to PyPI having only the username (no pw) defined

2013-07-14 Thread Jan-Philip Gehrcke
New submission from Jan-Philip Gehrcke: When updating an existing project on PyPI via distutils using the upload command, I observe erroneous behavior regarding the credentials when I do not want to store my password in clear text in the pypirc file: (1) When running python setup.py

[issue14805] Support display of both __cause__ and __context__

2013-04-20 Thread Philip Jenvey
Philip Jenvey added the comment: and the code module (after #17442 is resolved) -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14805

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2013-04-18 Thread Philip Jenvey
Philip Jenvey added the comment: PyPy's fixed this here: https://bitbucket.org/pypy/pypy/commits/1341a432e134 The tests just need to be adapted to the stdlib test suite -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17442

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2013-03-16 Thread Philip Jenvey
New submission from Philip Jenvey: The code module claims to emulate Python's interactive interpreter but it fails to emulate displaying of the exception cause. It can utilize traceback._iter_chain to do this (see traceback.print_exception) -- components: Library (Lib) messages

[issue17032] Misleading error message: global name 'X' is not defined

2013-02-19 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@underboss.org: -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032 ___ ___ Python-bugs-list

[issue17198] dbm.whichdbm references non-existent 'ndbm'

2013-02-12 Thread Philip Jenvey
New submission from Philip Jenvey: There are a couple references to an 'ndbm' variable/module in this function on Python 3.2 and above (and just one reference on default). It appears to be leftover from the 3.x reworking of this module -- components: Library (Lib) messages: 181990

[issue8094] Multiprocessing infinite loop

2013-02-01 Thread Philip Thiem
Philip Thiem added the comment: As an alternative, see http://bugs.python.org/issue10845 It contains a patch for the 3.X series which fixes the infinity loop. Applying it to the 2.X series will fix the issue and make a change the documentation unnecessary. -- nosy: +pthiem

[issue8094] Multiprocessing infinite loop

2013-02-01 Thread Philip Thiem
Philip Thiem added the comment: Actually sorry, now that I reread the details a second time, I'm not sure that is this the same deal. I'll just file a separate bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8094

[issue17101] Multiprocessing on Windows

2013-02-01 Thread Philip Thiem
New submission from Philip Thiem: http://bugs.python.org/issue10845 also applies to the 2.X series. this is multiprocessing on windows has issues with __main__.py -- components: Windows messages: 181090 nosy: pthiem priority: normal severity: normal status: open title: Multiprocessing

[issue17101] __main__.py Multiprocessing on Windows

2013-02-01 Thread Philip Thiem
Changes by Philip Thiem ptth...@gmail.com: -- title: Multiprocessing on Windows - __main__.py Multiprocessing on Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17101

[issue15881] multiprocessing 'NoneType' object is not callable

2013-01-22 Thread Philip Jenvey
Philip Jenvey added the comment: Targeting this for 2.7.4. If Alexander doesn't get to it, ping me and I'll do it -- nosy: +benjamin.peterson, georg.brandl, larry, pjenvey priority: normal - release blocker ___ Python tracker rep...@bugs.python.org

[issue16835] Update PEP 399 to allow for test discovery

2013-01-02 Thread Philip Jenvey
Philip Jenvey added the comment: Hey Ezio, you forgot to attach the patch -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16835

Source code of Windows installer for Python interactive interpreter

2012-12-28 Thread philip . a . molloy
I am writing a command-line application for Windows. I would like to review the Python source code to find out how to install my application so that it doesn't have to be called using the path and file name (i.e. being able to type `python` into the Command prompt, instead of

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-21 Thread Philip Jenvey
Philip Jenvey added the comment: The guidelines for this are in PEP 399. Basically, adding 'accelerated' implementations when necessary isn't a bad thing as long as there are pure Python equivalents (unless it's a special case) and both are tested. issue14373's latest patch seems

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-14 Thread Philip Jenvey
Philip Jenvey added the comment: PyPy had a pure python itertools until recently (it's been deleted): https://bitbucket.org/pypy/pypy/src/c1aa74c06e86/lib_pypy/itertools.py?at=py3k -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-10 Thread Philip Jenvey
Philip Jenvey added the comment: zipimport -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16651 ___ ___ Python-bugs-list mailing

[issue15031] Split .pyc parsing from module loading

2012-12-03 Thread Philip Jenvey
Philip Jenvey added the comment: From the perspective of Jython we'd want the easiest way to hook into this as possible of course, but I think that overriding marshal to handle a $py.class or whatever format would be a misappropriation of the marshal module Jython actually has a slow

[issue16585] surrogateescape broken w/ multibytecodecs' encode

2012-11-30 Thread Philip Jenvey
New submission from Philip Jenvey: surrogateescape claims to be implemented by all standard Python codecs http://docs.python.org/3/library/codecs.html#codec-base-classes However it fails w/ multibytecodecs on encode: Python 3.2.3+ (3.2:eb999002916c, Oct 26 2012, 16:11:03) [GCC 4.2.1 (Apple

[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

2012-11-02 Thread Philip Jenvey
New submission from Philip Jenvey: #9396 replaced a few caches in the stdlib w/ lru_cache, this made the mako_v2 benchmark on Python 3 almost 3x slower than 2.7 The benchmark results are good now that Mako was changed to cache the re itself, but the problem still stands that lru_cache seems

[issue16390] re compilation slow in Python 3.3 due to functools.lru_cache overhead

2012-11-02 Thread Philip Jenvey
Philip Jenvey added the comment: Sorry Brett, beat you to it w/ #16389 =P -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16390

[issue16336] Check input in surrogatepass error handler

2012-10-29 Thread Philip Jenvey
Philip Jenvey added the comment: Thanks for picking this and the warning/slowdown up, Serhiy. The patch LGTM, for whatever that's worth =] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16336

[issue1294] Management of KeyboardInterrupt in cmd.py

2012-10-27 Thread Philip Zerull
Philip Zerull added the comment: Hello, Being of a similar mindset to draghuram on the do_KeyboardInterrupt idea and thought I'd implement it as a subclass. While this probably wasn't fully implemented correctly, I think it provides an interesting solution to stephbul's frustrations

[issue16178] atexit._run_exitfuncs should be a public API

2012-10-11 Thread Philip Mountifield
Changes by Philip Mountifield phi...@mountifield.org: -- nosy: +Philip.Mountifield ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16178

[issue15354] _PyObject_LengthHint only accepts longs

2012-07-14 Thread Philip Jenvey
New submission from Philip Jenvey pjen...@underboss.org: The __length_hint__ optimization was broken a while ago for many iterators due to a bug introduced in 44c090c74202. It only accepts longs as valid hints, not ints This affects 2.6 too (but that's in security-only fix mode), but not 3.x

[issue15354] _PyObject_LengthHint only accepts longs

2012-07-14 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: attached a fix for review -- keywords: +patch Added file: http://bugs.python.org/file26383/lengthhint-fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15354

[issue12415] Missing: How to checkout the Doc sources

2012-06-25 Thread Philip Olson
Philip Olson phi...@roshambo.org added the comment: I think you should make the commit. Also, the aforementioned [old] Subversion reference for Sphinx is a real issue here. And I think the Without make section should link to http://sphinx.pocoo.org

[issue14895] test_warnings.py EnvironmentVariableTests is a bad test

2012-05-23 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: Jython's sys.warnoptions should probably just contain strs instead of unicode. Otherwise I suspect unicode values could break the warnings module's usage of it -- nosy: +pjenvey ___ Python

[issue14609] can't modify sys.modules during import with importlib

2012-04-17 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: __import__ needs the actual module on hand so it can e.g. attach it to its parent module -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14609

[issue14126] Speed up list comprehensions by preallocating the list where possible

2012-03-03 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: iter(range(1)) should also see a speedup because range's iter supports __length_hint__ -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14126

[issue14161] python2 file __repr__ does not escape filename

2012-03-02 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: I think you want to decref the result of PyObject_Repr after the fact, too -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14161

[issue13405] Add DTrace probes

2012-02-29 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@underboss.org: -- nosy: -pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list

[issue13405] Add DTrace probes

2012-02-28 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: Actually 10.5 was the last PowerPC release -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-02-13 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: DeprecationWarnings aren't that annoying anymore now that they're silent by default. It should at least have a PendingDeprecationWarning -- nosy: +pjenvey ___ Python tracker rep

[issue13903] New shared-keys dictionary implementation

2012-01-29 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@underboss.org: -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13903 ___ ___ Python-bugs-list

[issue13575] old style classes still alive

2011-12-15 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: Is mro_internal's second call to type_mro_modified still needed? Its comment makes me suspect that it's not: type_mro_modified(type, type-tp_mro); /* corner case: the old-style super class might have been hidden from

[issue13402] Document absoluteness of sys.executable

2011-12-14 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: sys.executable can be None on Jython (and I believe IronPython) when ran in an 'embedded' mode -- nosy: +dino.viehland, pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue13597] Improve documentation of stdout/stderr buffering in Python 3.x

2011-12-13 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: I'm surprised to hear that stderr is line buffered by default. Historically stderr is never buffered (at least on POSIX) and for good reason: errors should be seen immediately Was this an oversight in migrating stdin/out/err to the new io

[issue13512] ~/.pypirc created insecurely

2011-12-01 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: 2.5 is done http://mail.python.org/pipermail/python-committers/2011-October/001844.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512

[issue13512] ~/.pypirc created insecurely

2011-11-30 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: Something along these lines (untested) should do it. 2.6 and 3.x need the fix as well -- keywords: +patch nosy: +pjenvey Added file: http://bugs.python.org/file23824/pypirc-secure.diff

[issue13512] ~/.pypirc created insecurely

2011-11-30 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: It probably still needs to catch OSErrors which my patch doesn't do -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512

Re: Need help with file encoding-decoding

2011-09-23 Thread Philip Semanchuk
site, and when you encounter a decode error, check the raw bytes. Are they really in the encoding specified? Webmasters make all kinds of mistakes. Hope this helps Philip this - content.decode(encoding) 5) open a file in binary mod open(file_path,wb) 6) I write as I read without modifing

Re: Numpy.array with dtype works on list of tuples not on list of lists?

2011-09-18 Thread Philip Semanchuk
seeing what you're seeing, but if you don't get answer here you could try asking on the numpy list. Good luck Philip -- http://mail.python.org/mailman/listinfo/python-list

Python Tools for Visual Studio - anyone using it?

2011-08-30 Thread Philip Semanchuk
for those who haven't heard of it before: http://pytools.codeplex.com/ Thanks Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Help parsing a text file

2011-08-29 Thread Philip Semanchuk
that difficult to convert it to proper XML? Then you have nice libraries like ElementTree to use for parsing. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Button Label change on EVT_BUTTON in wxpython!!!

2011-08-28 Thread Philip Semanchuk
suggestions how do I achieve this? Suggestion #1: After you set the label to Installing..., try adding self.run_button.Refresh() and/or self.run_button.Update(). Suggestion #2: Ask wxPython questions on the wxPython mailing list. Good luck Philip -- http://mail.python.org/mailman/listinfo

Re: Understanding .pth in site-packages

2011-08-27 Thread Philip Semanchuk
statements without messing with the system path or the PYTHONPATH variable? Personally I have never used PYTHONPATH. Hope this helps Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding .pth in site-packages

2011-08-27 Thread Philip Semanchuk
On Aug 27, 2011, at 1:57 PM, Josh English wrote: Philip, Yes, the proper path should be c:\dev\XmlDB, which has the setup.py, xmldb subfolder, the docs subfolder, and example subfolder, and the other text files proscribed by the package development folder. I could only get it to work

Re: Understanding .pth in site-packages

2011-08-27 Thread Philip Semanchuk
On Aug 27, 2011, at 4:14 PM, Terry Reedy wrote: On 8/27/2011 2:07 PM, Philip Semanchuk wrote: On Aug 27, 2011, at 1:57 PM, Josh English wrote: Philip, Yes, the proper path should be c:\dev\XmlDB, which has the setup.py, xmldb subfolder, the docs subfolder, and example subfolder

Re: Understanding .pth in site-packages

2011-08-27 Thread Philip Semanchuk
Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Immediate Requirement for a Data Warehouse Developer

2011-08-25 Thread Philip Semanchuk
On Aug 25, 2011, at 9:24 AM, Sirisha wrote: Position Profile – Senior Data Warehouse Developer As was mentioned on the list less than 24 hours ago, please don't post job listings to this mailing list. Use the Python jobs board instead: http://www.python.org/community/jobs/ --

Re: Hot Girls are Looking for Sex

2011-08-19 Thread Philip Semanchuk
On Aug 19, 2011, at 4:17 PM, Matty Sarro wrote: That's great - but do they program in python? Please don't repost URLs sent by a spammer. Only Google truly knows how its algorithm works, but the general consensus is that the more times Google sees a link repeated, the more credibility the

Re: List spam

2011-08-18 Thread Philip Semanchuk
much spam anymore. In my experience, you'll also miss a number of legitimate postings. HTH Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: List spam

2011-08-18 Thread Philip Semanchuk
On Aug 18, 2011, at 1:10 PM, Peter Pearson wrote: On Thu, 18 Aug 2011 12:15:59 -0400, gene heskett ghesk...@wdtv.com wrote: [snip] What is wrong with the mailing list only approach? In the mailing-list approach, how do I search for prior discussions on a subject? (I'm not particularly

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 1:15 AM, Steven D'Aprano wrote: On Tue, 16 Aug 2011 01:23 pm Philip Semanchuk wrote: On Aug 15, 2011, at 9:32 PM, Steven D'Aprano wrote: On Tue, 16 Aug 2011 08:15 am Chris Angelico wrote: If you want a future directive that deals with it, I'd do it the other way

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 11:12 AM, Chris Angelico wrote: On Tue, Aug 16, 2011 at 3:13 PM, Philip Semanchuk phi...@semanchuk.com wrote: One need look no further than the standard library to see a strong counterexample. grep through the Python source for file =. I see dozens of examples

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 11:41 AM, Ethan Furman wrote: Philip Semanchuk wrote: On Aug 16, 2011, at 1:15 AM, Steven D'Aprano wrote: Protecting n00bs from their own errors is an admirable aim, but have you considered that warnings for something which may be harmless could do more harm than good

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 12:19 PM, Ethan Furman wrote: Philip Semanchuk wrote: On Aug 16, 2011, at 11:41 AM, Ethan Furman wrote: Philip Semanchuk wrote: If we are to eschew warnings in cases where they might be highlighting something harmless, then we would have no warnings at all. Sounds

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
'\1', text) text = _re.sub(r'%s *%s' % (open, close), r'', text) text = _re.sub(r'\(([^|]*)\)', r'\1', text) text = text.strip() Thanks Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
of scope. bye, Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 10:15 PM, Terry Reedy wrote: On 8/16/2011 8:18 PM, Philip Semanchuk wrote: Hi Terry, To generalize from your example, are you saying that there's a mild admonition against shadowing builtins with unrelated variable names in standard lib code? I would expect

Re: Help needed with using SWIG wrapped code in Python

2011-08-15 Thread Philip Semanchuk
On Aug 15, 2011, at 4:08 AM, Vipul Raheja wrote: Hi, I have wrapped a library from C++ to Python using SWIG. But I am facing problems while importing and using it in Python. Hi Vipul, Did you try asking about this on the SWIG mailing list? bye Philip -- http://mail.python.org/mailman

Re: Why no warnings when re-assigning builtin names?

2011-08-15 Thread Philip Semanchuk
behavior has to remain as it is. JMO, Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no warnings when re-assigning builtin names?

2011-08-15 Thread Philip Semanchuk
is most often invoked accidentally without knowledge of or regard for its potential negative consequences, then it might be worth making it easier to avoid those accidents. bye, Philip -- http://mail.python.org/mailman/listinfo/python-list

[issue9176] module termios doesn't build on HP-UX

2011-08-12 Thread Philip Douglass
Philip Douglass phi...@philipdouglass.com added the comment: Workaround for this issue: Add -D_TERMIOS_INCLUDED to your CFLAGS/CPPFLAGS environment variables to successfully compile termios. -- nosy: +philipsd6 ___ Python tracker rep

Re: multiprocessing timing issue

2011-08-10 Thread Philip Semanchuk
than your timeout. So either increase your timeout or learn to live with the fact that the queue is sometimes empty. I don't mean to be rude, I just don't understand the problem. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython and TK

2011-08-08 Thread Philip Semanchuk
. If the subject really interests you, I recommend that you read the archives and see some of the arguments for and against various GUI toolkits. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   >