Re: [Python-Dev] Multilingual programming article on the Red Hat Developer blog

2014-09-13 Thread Tim Lesher
On Sat, Sep 13, 2014, 09:33 R. David Murray wrote: > On Sat, 13 Sep 2014 21:06:21 +1200, Nick Coghlan > wrote: > > On 13 Sep 2014 10:18, "Jeff Allen" wrote: > > > 4. I think (with Antoine) if Jython supported PEP-383 byte smuggling, > it > > would have to do it the same way as CPython, as it is

Re: [Python-Dev] Bug in generator if the generator in created in a C thread

2012-03-30 Thread Tim Lesher
M. Their behavior is well-defined in our case--two particular OS threads, with lifetimes longer than those of the interpreters we create and finalize. -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/li

Re: [Python-Dev] Bug in generator if the generator in created in a C thread

2012-03-29 Thread Tim Lesher
answer (and it may not even be a functioning one, given that I'm seeing a similar issue again). -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] time.sleep(-1) behaviour

2011-07-01 Thread Tim Lesher
gt; something wrong with the way time.sleep() *uses* Sleep()?" That makes sense. Better to be consistent within the time API--I know the different semantics of time.clock() have confused people around here. -- Tim Lesher ___ Python-Dev ma

Re: [Python-Dev] time.sleep(-1) behaviour

2011-07-01 Thread Tim Lesher
rect and documented: http://msdn.microsoft.com/en-us/library/ms686298(v=vs.85).aspx -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] pydoc for named tuples is missing methods

2011-03-15 Thread Tim Lesher
entation. What *is* the worst case for MRO complexity? Overall, this is becoming more interesting than I'd thought at first. Is this something that should require a PEP? -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.pyt

Re: [Python-Dev] pydoc for named tuples is missing methods

2011-03-15 Thread Tim Lesher
work well with classmethods or immutable data members, and forcing the module to import pydoc had some bad side effects (particularly in the eval-ed code for namedtuple). -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail

Re: [Python-Dev] pydoc for named tuples is missing methods

2011-03-15 Thread Tim Lesher
On Mon, Mar 14, 2011 at 08:28, Tim Lesher wrote: > On Mon, Mar 14, 2011 at 05:45, Nick Coghlan wrote: >> There are two relatively simple ways forward I can see: >> >> A. Add a __public__ attribute that pydoc (and import *) understand. >> This would overrride t

Re: [Python-Dev] pydoc for named tuples is missing methods

2011-03-14 Thread Tim Lesher
ons, I will try to turn this idea into a patch that makes pydoc.visiblename look for a __public__ function attribute as "step 0". Maybe there should also be a @public decorator to apply it, although that name may be an attractive nuisance, tempting C++ or Java programmers new to Pyth

Re: [Python-Dev] pydoc for named tuples is missing methods

2011-03-13 Thread Tim Lesher
Addendum: this looks related to bug 1189811. http://bugs.python.org/issue1189811 That issue seems to hinge on the definition of "private". -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listi

[Python-Dev] pydoc for named tuples is missing methods

2011-03-13 Thread Tim Lesher
t seem to be an obvious way to get around these rules for named tuples... am I overlooking something? Thanks. -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] public visibility of python-dev decisions "before it's too late" (was: PyCObject_AsVoidPtr removed from python 3.2 - is this documented?)

2011-03-09 Thread Tim Lesher
on my back burner for about two years now, but I want to make sure I can keep up before diving in again. -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Module size

2010-11-30 Thread Tim Lesher
he application. For our embedded use of Python, static data size (like the text segment of a shared object) is far dearer than the heap space used by Python objects, which is why we've had to excise both the UCD and the CJK codecs in our builds. -- Tim Lesher ___

Re: [Python-Dev] is this a bug? no environment variables

2010-11-22 Thread Tim Lesher
> don't exist. I can verify that that's the case: Python (at least through 3.1.2) runs fine on Windows platforms when environment variables are completely unavailable. I know that from running our port for Windows CE (which has no environment variables at all), cross-compiled for

Re: [Python-Dev] Can ftp url start with file:// ?

2010-07-09 Thread Tim Lesher
To be clear, Python 2.x's urllib.urlopen() has this issue; 3.1's urllib.request.urlopen() rejects non-local hosts in a file URL. -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/

Re: [Python-Dev] Can ftp url start with file:// ?

2010-07-09 Thread Tim Lesher
\python25\lib\urllib.py", line 844, in __init__ self.init() File "c:\python25\lib\urllib.py", line 850, in init self.ftp.connect(self.host, self.port) File "c:\python25\lib\ftplib.py", line 129, in connect raise socket.error, msg IOError: [Errno ftp error] (10061, 'Connection refused') -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] Removing Windows 95-related code in posixmodule.c

2010-03-17 Thread Tim Lesher
th Windows CE, which doesn't have the ANSI versions at all. I've been maintaining some fairly ugly patches to cope with this in my company's Python 2.5.x for CE build, and I'd love to drop them as we move to a post-2.6 version. Thanks! -- Tim Lesher __

[Python-Dev] Windows make_buildinfo changes in 2.6 and cross-compilation

2009-12-04 Thread Tim Lesher
he VC++ solution can be told to build native (win32) binaries for make_buildinfo and make_versioninfo, when make_buildinfo tries to compile via its hardcoded call to cl.exe, it tries to use the cross-compiler without the required flags from the cross-compilation configs in the vcproj files. Thanks! --

Re: [Python-Dev] Windows Toolchain

2009-07-13 Thread Tim Lesher
ion folders are not supported in > this version of the application." What version of Visual C++ Express are you using? This sounds suspiciously like a version issue. -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mai

Re: [Python-Dev] Making the GIL faster & lighter on Windows

2009-05-26 Thread Tim Lesher
sidered. FWIW, Win32 CriticalSections are guaranteed to be fair, but they don't guarantee a defined order of wakeup among threads of equal priority. -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mai

[Python-Dev] PyEval_Call* convenience functions

2009-04-24 Thread Tim Lesher
() is quite useful for calling module-level functions or classes (given that it's just a PyObject_GetAttrString plus the implementation of PyEval_CallFunction). Is there any reason (beyond its undocumented status) to believe this use case would ever be deprecated? Thanks. --

Re: [Python-Dev] compiling python2.5 (msys+mingw+wine) - giving up using msvcr80 assemblies for now

2009-01-20 Thread Tim Lesher
o incorporates Python in an existing MSVC-based development environment. When in Rome... -- Tim Lesher ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/opti

Re: [Python-Dev] OFF-TOPIC-BUT-IMPORTANT: End of free internet model by 2012 ?

2008-06-12 Thread Tim Lesher
,000 Blowjobs", and a "wacky online reality series". Really, do you honestly think that Time Magazine would use a twenty-something freelancer, who has never published anything in any major periodical, to break a news article that would at

Re: [Python-Dev] splitext('.cshrc')

2007-03-06 Thread Tim Lesher
m.IO.Path.*) believe that ".cshrc" is the extension of the filename ".cshrc". I'm not sure if that's an argument for or against the patch, though. -- Tim Lesher <[EMAIL PROTECTED]> ___ Python-Dev mailing list P

[Python-Dev] Iterating over marshal/pickle

2006-10-09 Thread Tim Lesher
not hung up on the actual names or the use of sequence semantics in the Unpickler case. Incidentally, I know that pickle is preferred over marshal, but some third-party tools (like the Perforce client) still use the marshal library for serialization, so I've included it in the

Re: [Python-Dev] GIL, Python 3, and MP vs. UP

2005-09-19 Thread Tim Lesher
imitations, shared-memory threading is the most popular concurrency model on the most popular operating system, so future hardware platforms targeting that system will be optimizing for that case. We can either rail against the sea, or accept it. -- Tim

Re: [Python-Dev] Bare except clauses in PEP 348

2005-08-25 Thread Tim Lesher
problem alone raises the bar on backwards compatibility. Even if obsoleted features are seldom useed, "$language breaks old code!" is a virulent meme, in both senses of the word. -- Tim Lesher <[EMAIL PROTECTED]> ___ Python-Dev mailing list

Re: [Python-Dev] should doc string content == documentation content?

2005-07-24 Thread Tim Lesher
be a deep copy of _Python in a Nutshell_, there are definitely some areas of the standard library that could use some help. threading comes to mind immediately. -- Tim Lesher <[EMAIL PROTECTED]> ___ Python-Dev mailing list Python-Dev@python.

Re: [Python-Dev] Thoughts on stdlib evolvement

2005-06-06 Thread Tim Lesher
rray, > ElementTree, [wxPython - I know this is a hairy issue], I think the most important question for each of these is "is the module's release schedule at least as stable as Python's?". For many of these, I suspect the answer is "no". -- Tim Lesher <[EM

[Python-Dev] python-dev Summary for 2005-05-01 through 2005-05-15 [draft]

2005-05-19 Thread Tim Lesher
BL_MANTISSA and such to Python <http://mail.python.org/pipermail/python-dev/2005-May/053372.html>`__ - `python-dev Summary for 2005-04-16 through 2005-04-30 [draft] <http://mail.python.org/pipermail/python-dev/2005-May/053383.html>`__ - `Python Language track at Europython,

[Python-Dev] python-dev Summary for 2005-04-01 through 2005-04-15 [draft]

2005-04-18 Thread Tim Lesher
team --- This summary marks the first by the team of Steve Bethard, Tim Lesher, and Tony Meyer. We're trying a collaborative approach to the summaries: each fortnight, we'll be getting together in a virtual smoke-filled back room to divide up the interesting threads. Then we'll stitch to

Re: [Python-Dev] Re: Re: Ye don't be needin' these!

2005-03-23 Thread Tim Lesher
On Wed, 23 Mar 2005 22:58:51 +0100, Florian Schulze <[EMAIL PROTECTED]> wrote: > BTW, Herman Toothrot is from Monkey Island. Right. That's what leads me to believe 1) it's not a serious post, and 2) it's from someone who's old enough to know better. --

Re: [Python-Dev] Re: Ye don't be needin' these!

2005-03-23 Thread Tim Lesher
ount, by an existing python-dev participant who's embroiled in the current "do we even need functionals anymore" discussion... -- Tim Lesher <[EMAIL PROTECTED]> ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.o

Re: [Python-Dev] python-dev Summary for 2005-02-01 through 2005-02-14 [draft]

2005-03-04 Thread Tim Lesher
rg/pipermail/python-dev/2005-February/051390.html Contributing threads: - `complex I/O problem <http://mail.python.org/pipermail/python-dev/2005-February/051388.html>`__ -- Tim Lesher <[EMAIL PROTECTED]> ___ Python-Dev mailing list Python-Dev@