Re: [Python-Dev] Sniffing passwords from PyPI using insecure connection

2011-05-31 Thread Martin v. Löwis
> The requested one character change is > -DEFAULT_REPOSITORY = 'http://pypi.python.org/pypi' > +DEFAULT_REPOSITORY = 'https://pypi.python.org/pypi' > > If Tarek (or perhaps Eric) agree that it is appropriate and otherwise > innocuous, then Martin a

Re: [Python-Dev] Extending os.chown() to accept user/group names

2011-05-31 Thread Martin v. Löwis
mimic chown(1). At least GNU chown has a -R flag (not sure about POSIX chown), and it's useful in practice. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail

Re: [Python-Dev] Windows download links not working for 2.7.2rc1 and 3.1.4rc1

2011-06-02 Thread Martin v. Löwis
> The links to the Windows downloads for 2.7.2rc1 and 3.1.4rc1 are 404. > (From the release pages.) Thanks, fixed. Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] os.stat and nanosecond precision

2011-06-03 Thread Martin v. Löwis
to be doubles instead of longs... Regards, Martin ___ 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] Sniffing passwords from PyPI using insecure connection

2011-06-03 Thread Martin v. Löwis
27;t have the _ssl module built. Regards, Martin ___ 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] The socket HOWTO

2011-06-04 Thread Martin v. Löwis
out justification. > > Well, I think that's bad. When we give advice to users, we should > explain the motivation of the advice given. Otherwise we convey the > impression that there's some magic that people shouldn't try to > understand. It's not that bad. Please rec

Re: [Python-Dev] The socket HOWTO

2011-06-05 Thread Martin v. Löwis
ockets? > > You said yourself that the HOWTO doesn't claim to explain sockets Did I say that? If so, I didn't mean to. It explains how to use the socket API. Regards, Martin ___ 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] The socket HOWTO

2011-06-05 Thread Martin v. Löwis
Twisted is very difficult to learn, and thus much heavier than sockets? And I don't blame the Twisted API for that, but rather the mental model of overlapping activities that people have severe problems with. Regards, Martin ___ 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] The socket HOWTO

2011-06-06 Thread Martin v. Löwis
> > Did you run a user survey? > > Martin undoubtedly has a lot of experience with users, and it's quite > reasonable for him to express his opinions based on that informal > sample, yes. In particular, this is collected experience from interaction with students le

Re: [Python-Dev] The socket HOWTO

2011-06-06 Thread Martin v. Löwis
claims when several people have indicated that the howto *actually* helped them? Please let this rest. Regards, Martin ___ 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] Python 3.x and bytes

2011-06-12 Thread Martin v. Löwis
;I') # 49 LOGICAL = ASCII('L') # 4C MEMO= ASCII('M') # 4D NUMBER = ASCII('N') # 4E This expresses the intent that a) these are really byte values, not characters, and b) the specific choice of byte values was motivated by ASCII. Regards, Martin __

Re: [Python-Dev] is anyone using Misc/RPM?

2011-06-12 Thread Martin v. Löwis
chneider doesn't object. People are apparently using it - at least, they report bugs against it: http://bugs.python.org/issue5776 http://bugs.python.org/issue5063 Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailm

Re: [Python-Dev] is anyone using Misc/RPM?

2011-06-13 Thread Martin v. Löwis
#x27;t distribute distribution-specific files > for which we don't provide binaries. Hmm. We have VS6, VS7, and VS8 project files, OS/2 makefiles, and configure.in has specifics for Solaris, even though we don't provide binaries for any of these. I don

Re: [Python-Dev] is anyone using Misc/RPM?

2011-06-13 Thread Martin v. Löwis
Fedora and RHEL don't use this particular .spec file; we roll our > own. > > I can't speak for all of the other RPM-using distributions, of course. I doubt any of the distributions uses it, but that's not it's purpose, either. Instead, it is meant

Re: [Python-Dev] [Python-checkins] cpython: #11781: update windows build script to account for move of email tests

2011-06-19 Thread Martin v. Löwis
>> # This should contain all non-.svn files listed in >> subversion > > Should this be mercurial Perhaps. > >> for f in os.listdir(lib.absolute): >> if f.endswith(".txt") or f==&quo

Re: [Python-Dev] Snow Leopard buildbot failing again...

2011-06-27 Thread Martin v. Löwis
buildslaves, though, since we don't have FileUpload build steps (except for a single builder run by David Bolen). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:

Re: [Python-Dev] svn.python.org confusion

2011-06-29 Thread Martin v. Löwis
eck a file into the directory with the name THIS_SUBVERSION_REPOSITORY_HAS_BEEN_MIGRATED_TO_MERCURIAL_DO_NOT_USE_IT_FOR_ANYTHING_BUT_ARCHEOLOGICAL_RESEARCH.txt See also http://python.cvs.sourceforge.net/viewvc/python/python/ http://python.cvs.sourceforge.net/viewvc/python/python/dist/src/ Regards, Martin ___ Python-

Re: [Python-Dev] ctypes: Configurable bitfield allocation strategy

2011-07-11 Thread Martin v. Löwis
ore spending time to implement it. Regards, Martin ___ 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] is sys.modules not meant to be replaced?

2011-07-24 Thread Martin v. Löwis
Doing so will result in undefined behavior. So there is nothing fishy about it. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/pyth

Re: [Python-Dev] The docs, reloaded

2007-05-20 Thread Martin v. Löwis
o look elsewhere. We are developing a programming language here, not a typesetting system. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailm

Re: [Python-Dev] Introduction and request for commit access to the sandbox.

2007-05-20 Thread Martin v. Löwis
0) py> s.write(10) py> s.write(20) py> s.getvalue() '1020' Regards, Martin ___ 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] Adventures with x64, VS7 and VS8 on Windows

2007-05-20 Thread Martin v. Löwis
ng, but isn't wchar_t also available in VS 2003 (and even in VC6?). And doesn't it have the "right" definition in all these compilers? So +1 for setting Py_UNICODE to wchar_t on Windows. > * Finally, as something from left-field which may well take 12 months or >

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Martin v. Löwis
pecially the > person building releases. > > But assuming MSVC was found and had the appropriate switches passed, there > would be no impact on the ability to use Visual Studio as a debugging > environment. I doubt that could work in practice. You will have to rewrite everyt

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Martin v. Löwis
t; Now the default is that it is, and this causes some semantic differences > and incompatibilities of the type seen. C or C++? According to the standards, it ought to be a builtin, primitive type in C++, and a typedef in C. Regards, Martin ___

Re: [Python-Dev] The docs, reloaded

2007-05-21 Thread Martin v. Löwis
thing in the world can replace TeX for math typesetting. So if math typesetting was a requirement (which it should not be, for that very reason), then we could not consider anything but TeX. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.

Re: [Python-Dev] The docs, reloaded

2007-05-21 Thread Martin v. Löwis
> Martin> I disagree. The documentation infrastructure of Python should > Martin> only consider the needs of Python itself. If other people can > Martin> use that infrastructure for other purposes, fine - if they find > Martin> that it does not meet their

Re: [Python-Dev] The docs, reloaded

2007-05-21 Thread Martin v. Löwis
Bill Janssen schrieb: >> We are developing a programming language here, not a typesetting >> system. > > Good point, Martin. Are you implying that the documentation should be > kept in LaTeX, a widely-accepted widely-disseminated stable > documentation language, whic

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Martin v. Löwis
and C on VC8 both work fine. Please let me know > if thde code snippet I pasted or the compiler error aren't suitable. It's fine. I readily believe that it causes problems in C++. Regards, Martin ___ Python-Dev mailing list Python-D

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-21 Thread Martin v. Löwis
;s machine, which is just disconnected from the master when he doesn't feel like running buildbot jobs). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.py

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Martin v. Löwis
rested in setting up a buildslave on such an installation. Regards, Martin ___ 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] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Martin v. Löwis
hat borderline case of build setup as long as I'm willing to maintain it", the answer should always be "yes" (*), irrespective of the merits of the specific proposal. Heck, we would even accept patches to support HP-UX better :-) Regards, Martin (*) assuming it doesn't bre

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Martin v. Löwis
s all the time on Unix. >> Sure, and have they reported problems with Python on Vista (problems >> specific to Vista?) > Certainly. We are working on them, of course. But, of course, they have not been reported. Regards, Martin ___ 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] [Distutils] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Martin v. Löwis
lar to the one found on the > Python.org site for the official releases but using the PCBuild8 stuff? No, but it should be possible to adopt Tools/msi to package pcbuild8 instead. Just make sure you are using different GUIDs as the ProductCode. Regards, Martin __

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-22 Thread Martin v. Löwis
ldbot slaves on a single machine. They all create separate checkouts. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-d

Re: [Python-Dev] Module cleanup improvement

2007-05-22 Thread Martin v. Löwis
EP 3121, which should allow to incorporate variables stored in extension module's "globals" to participate in GC. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubsc

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Martin v. Löwis
hile they are both shipped, you can't the two versions of explorer.exe simultaneously (without trickery), so its far from simple. >> But that's not a problem, is it? Writing silently "fails", i.e. it just >> won't save the pyc files. Happens all the t

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Martin v. Löwis
e others that can provide a Windows buildbot? It would probably > be good to have two -- and a WinXP one would be good. It certainly would be good. Unfortunately, Windows users are not that much engaged in the open source culture, so few of them volunteer (plus it's more painful, with Windo

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Martin v. Löwis
> I use this patch in ActivePython to get distutils to find the correct > PCbuild dir (see attached). Would you like to commit this to 2.6? (or perhaps 2.5 even?) Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.pyth

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-23 Thread Martin v. Löwis
can still just double-click the solution file, without having to run devenv.exe/com manually. Regards, Martin ___ 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] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-23 Thread Martin v. Löwis
until the process is killed. A weekly reboot would like fix the majority of the maintenance problems. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/m

Re: [Python-Dev] The docs, reloaded [PEP?]

2007-05-24 Thread Martin v. Löwis
xplicitly disagrees, or that a pronouncement is made - the pronouncement alone will *not* cause this change to be carried out. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://m

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-28 Thread Martin v. Löwis
le like to be able to "run" Python out of a source check-out. This has been supported for a long time, and more and more stuff was added to support it. For examples within Python itself, see the support in distutils, getpathp.c, PCbuild/rt.bat, and Tools/buildbot/*.bat. Reportedly (by M

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-28 Thread Martin v. Löwis
't been logo compliant for more than a decade now (the "install to Program Files" is not a new requirement, but existed since Win95). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/p

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-28 Thread Martin v. Löwis
who really want that can install both versions simultaneously today. Regards, Martin ___ 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

Re: [Python-Dev] Unable to commit

2007-05-28 Thread Martin v. Löwis
> Odd... the call worked here (SVN 1.4.3). Which version is the server using? 1.1. Subversion did a grand renaming at some point. I fixed most of the functions when deploying the script, but apparently missed some. Regards, Martin ___ Python-

Re: [Python-Dev] whitespace normalization pre-commit hook is giving me grief

2007-05-28 Thread Martin v. Löwis
urns true. If you can come up with a patch to reindent that makes it report more detailed errors, please post it, and I'll try to merge it into the hook script. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/ma

Re: [Python-Dev] [Distutils] Adventures with x64, VS7 and VS8 on Windows

2007-05-28 Thread Martin v. Löwis
x27;t interfere at all with a regular installation. Regards, Martin ___ 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] Build problems with sqlite on OSX

2007-05-28 Thread Martin v. Löwis
hat you pick up the wrong sqlite3InitCallback (i.e. the one that came with OSX, instead of the one you built yourself). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Unable to commit

2007-05-28 Thread Martin v. Löwis
ve fixed the hook, and tested that it still checks regular .py files, but skips them if they are svn:special. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.

Re: [Python-Dev] Unable to commit

2007-05-29 Thread Martin v. Löwis
Georg Brandl schrieb: > Martin v. Löwis schrieb: >>> Odd... the call worked here (SVN 1.4.3). Which version is the server using? >> 1.1. Subversion did a grand renaming at some point. I fixed most of the >> functions when deploying the script, but apparently missed some.

Re: [Python-Dev] whitespace normalization pre-commit hook is giving me grief

2007-05-29 Thread Martin v. Löwis
> As I said before, you don't really need that when you can (and should!) just > run > reindent.py over the source file yourself, not care about any diffs and just > resubmit. Right. So I withdraw my offer to do anything about the hook.

Re: [Python-Dev] Adventures with x64, VS7 and VS8 on Windows

2007-05-29 Thread Martin v. Löwis
hon Software Foundation, or from Martin v. Löwis) is even more nasty. Regards, Martin ___ 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/ar

Re: [Python-Dev] Build problems with sqlite on OSX

2007-05-29 Thread Martin v. Löwis
Darrin Thompson schrieb: > On 5/29/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: >> p &sqlite3InitCallback >> > > (gdb) p $sqlite3InitCallback > $1 = void Please try '&' instead of '$'. It's the address of that functio

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-05-30 Thread Martin v. Löwis
> The buildbot is now working. Thanks for the effort. If any of the current operators of a Windows buildbot want to shut down theirs in return, please let me know. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.

Re: [Python-Dev] [Distutils] Adventures with x64, VS7 and VS8 on Windows

2007-05-31 Thread Martin v. Löwis
has a signature. Not sure what's wrong here (FWIW, signtool would fail to sign the file as well if run on Vista, but signed it just fine when run on XP). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailma

Re: [Python-Dev] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-06-06 Thread Martin v. Löwis
, it might be useful. Regards, Martin ___ 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] Windows buildbot (Was: buildbot failure in x86 W2k trunk)

2007-06-08 Thread Martin v. Löwis
to an AMD64 build slave. > If you want me to go online with the buildbot please send me a HOST:PORT and > PASSWORD. Doing so in a separate message. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/l

Re: [Python-Dev] Compiling 2.5.1 under Studio 11

2007-06-09 Thread Martin v. Löwis
re there any patches to fix these? Without knowing what precisely the problem is, it is difficult to say whether it has been fixed. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Uns

Re: [Python-Dev] zipfile and unicode filenames

2007-06-09 Thread Martin v. Löwis
oved, but that format change has not propagated into the zipfile module, yet. Howeer, everybody is aware of the situation, so there is no need to report a bug. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] Frame zombies

2007-06-09 Thread Martin v. Löwis
size classes, e.g. for frames with 10, 20, 30, etc. variables, rather than having free lists per code object. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://ma

Re: [Python-Dev] Frame zombies

2007-06-09 Thread Martin v. Löwis
know that? Did you measure the time? On what system? What were the results? Performance optimization without measuring is just unacceptable. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-d

Re: [Python-Dev] zipfile and unicode filenames

2007-06-10 Thread Martin v. Löwis
de filenames in zipfile.ZipInfo, b) automatically convert > filename to str in zipfile.ZipInfo, c) leave everything as it is. The correct behavior would be b); the difficult details are what encoding to use. Regards, Martin ___ Python-Dev mail

Re: [Python-Dev] zipfile and unicode filenames

2007-06-10 Thread Martin v. Löwis
arbitrary non-string things as filenames. What it should do instead (IMO) is to encode in CP437. Bonus points if it falls back to the UTF-8 feature of zip files if encoding as CP437 fails. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.or

Re: [Python-Dev] zipfile and unicode filenames

2007-06-10 Thread Martin v. Löwis
s before passing them into the zipfile module. The automatic mode should follow the standard or the conventions; "the user" (in quotes, because the end user is rarely bothered with that detail) can still override that explicitly. Regards, Martin __

Re: [Python-Dev] zipfile and unicode filenames

2007-06-10 Thread Martin v. Löwis
t, then it can just as well be set, as ASCII strings automatically get encoded as ASCII in UTF-8. Regards, Martin (*) I just now read http://www.pkware.com/documents/casestudies/APPNOTE.TXT and 0x800 seems to be the right value indeed. Notice, in appendix D, that the specification says that th

Re: [Python-Dev] Frame zombies

2007-06-10 Thread Martin v. Löwis
u want to introduce free lists per code object, you need to benchmark such code, and compare it to the status quo. While doing so, I'd ask to also measure the case that the free list is dropped without a replacement. Regards, Martin ___ Python-Dev

Re: [Python-Dev] TLSAbruptCloseError

2007-06-12 Thread Martin v. Löwis
> Any thoughts? My main thought: this posting is off-topic for python-dev. This list is for the development of Python itself; use comp.lang.python for discussing development *with* Python. However, this may still be the wrong place - perhaps you better ask in a Java forum? Regards, Mar

Re: [Python-Dev] sys.setdefaultencoding() vs. csv module + unicode

2007-06-13 Thread Martin v. Löwis
(encoderow([u'lang', u'espa\xa4ol']) IOW, you need to encode *before* passing the strings to the CSV module, not afterwards. If it is too tedious for you to put in the encoderow calls all the time, you can write a wrapper for CSV writers which transparently encodes all Unicode st

Re: [Python-Dev] Requesting commit access to python sandbox. Cleanup urllib2 - Summer of Code 2007 Project

2007-06-16 Thread Martin v. Löwis
SSH Public keys. > preferred name : senthil.kumaran I have now given you write access. Please constrain all checkins to the sandbox; checkins elsewhere should be approved by your mentor. Regards, Martin ___ Python-Dev mailing list Python-D

[Python-Dev] Upgrade of {www,svn}.python.org

2007-06-17 Thread Martin v. Löwis
will continue to work. I will send another message when I start. Regards, Martin ___ 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%4

Re: [Python-Dev] [Pydotorg] Upgrade of {www,svn}.python.org

2007-06-17 Thread Martin v. Löwis
chine, it'd be nice to get an additional drive added at the same time. Just a software upgrade, and I will not be physically at the machine - the machine is in Amsterdam, and I am in Berlin. I don't think a hard disk space upgrade is planned, and I don&#x

Re: [Python-Dev] [Python-3000] Python 3000 Status Update (Long!)

2007-06-19 Thread Martin v. Löwis
ays* be a string literal, completely unlike "real" codecs, where the encoding name often comes from the environment (either from the process environment, or from some kind of input). Regards, Martin ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-20 Thread Martin v. Löwis
interestingly enough, or nobody knows the answer, or nobody has the time to tell you. Regards, Martin ___ 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] www.python.org outage

2007-06-20 Thread Martin v. Löwis
The scheduled outage starts now. Regards, Martin ___ 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] www.python.org back up

2007-06-21 Thread Martin v. Löwis
I completed the update of dinsdale. Please let me know if you find any new problems with that machine. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http

Re: [Python-Dev] Calling Methods from Pythons C API with Keywords

2007-06-21 Thread Martin v. Löwis
you like to coordinate a C sig? See http://www.python.org/community/sigs/ Regards, Martin ___ 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] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

2007-06-22 Thread Martin v. Löwis
mentable in Python 2.x: open() is mapped to fopen(), which does not support O_NOINHERIT. If you don't want the subprocess to inherit handles, why don't you just specify close_fds=True when creating the subprocess? Regards, Martin ___ Python-De

[Python-Dev] bzr on dinsdale

2007-06-23 Thread Martin v. Löwis
#x27;stopbootlogd-20070303140018-fe340b888f6e9c69', now of kind 'file' bzr 0.11.0 on python 2.4.4.final.0 (linux2) arguments: ['/usr/bin/bzr', 'status'] ** please send this report to [EMAIL PROTECTED] Can somebody experienced with bzr please help? Regards, Mar

Re: [Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

2007-06-23 Thread Martin v. Löwis
. assuming you care about whether stdin,stdout,stderr are inherited to GUI programs. If the child process makes no use of stdin/stdout, you can safely set close_fds to true. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail

Re: [Python-Dev] bzr on dinsdale

2007-06-23 Thread Martin v. Löwis
> Bzr allow kind changes only starting from version 0.15, for old versions > you should first remove file from version control with 'bzr rm' and then > add again with 'bzr add'. Thanks! that worked fine. Regards, Martin __

Re: [Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

2007-06-23 Thread Martin v. Löwis
(Because then I couldn't use all those standard modules that use open > *without* FD_CLOEXEC). > > The fact is that the combination ("multi-threading", "subprocess > creation", "standard modules") > simply *does not work* flawlessly and produces err

Re: [Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

2007-06-23 Thread Martin v. Löwis
fd also closes stdin/stdout/stderr, which might be undesirable and differs from POSIX. In any case, providing a uniform set-close-on-exec looks fine to me, provided it is implementable on all interesting platforms. I'm -0 on adding "n" to open, and -1 for adding if it means to reimpl

Re: [Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

2007-06-23 Thread Martin v. Löwis
.org/lib/node529.html) I don't get your point: The docs says explicitly "Unix only". Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.or

Re: [Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

2007-06-24 Thread Martin v. Löwis
right after opening the file. > > YES - that's exactly why I proposed an open_noinherit function. I think I missed that proposal. What would that function do? If you propose it to be similar to the open() function, I'd be skeptical. It's not possible to implement that in thread

Re: [Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

2007-06-24 Thread Martin v. Löwis
r reasons). If thread-safety is a primary concern, then that flag should *not* be added to open(), since it cannot be implemented in a thread-safe manner in a generic way - only the application can perform the proper synchronization. As discussed, there are other handles subject to inheritance, too, an

Re: [Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

2007-06-25 Thread Martin v. Löwis
he discussion > on http://lwn.net/Articles/237722/ to see how they solve it for > Linux. Exactly. My proposal is still to provide an API to toggle the flag after the handle was created. > Martin, you mentioned that for sockets, inheritance is not a problem > unless accept(), recv()

Re: [Python-Dev] Return error codes from getaddrinfo.

2007-06-27 Thread Martin v. Löwis
jython to use the same errno symbolic constants as cpython, to > ease portability of code. That will be very difficult to achieve, as Python is (deliberately) not even consistent across systems. Instead, it reports what the platform reports, so you should do th

Re: [Python-Dev] Return error codes from getaddrinfo.

2007-06-28 Thread Martin v. Löwis
> [Martin] >> That will be very difficult to achieve, as Python is (deliberately) >> not even consistent across systems. Instead, it reports what the >> platform reports, so you should do the same in Java. > > Do these examples make it clearer why and in what wa

Re: [Python-Dev] Proposal for a new function "open_noinherit" to avoid problems with subprocesses and security risks

2007-06-30 Thread Martin v. Löwis
process can run indefinitely even though the parent process has terminated. You may be thinking of SIGHUP, which is sent to all processes when the user logs out of the terminal. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http:/

Re: [Python-Dev] Error trying to access community buildbot page

2007-07-06 Thread Martin v. Löwis
e crontab line to restart it at reboot was incorrect; nobody had noticed so far (i.e. since June 21). Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mai

Re: [Python-Dev] Python for embedding?

2007-07-08 Thread Martin v. Löwis
plementation of Python is *deliberately* slow, and that a new implementation would necessarily be faster. Please rest assured that this is not the case: people have put a considerable amount of work into making Python as fast as it is today. Regards, Martin __

Re: [Python-Dev] SVN precommit hook

2007-07-11 Thread Martin v. Löwis
o dinsdale, feel free to temporarily disable this particular hook in the future if you find it is in your way; don't forgot to report the problem at least, and try enabling it after the questionable checkin has completed. Regards, Martin ___ Pytho

Re: [Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-11 Thread Martin v. Löwis
ssing the point of the patch, since I can do the same thing (make a single executable zip file on Linux) through a /bin/sh header just fine. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-

Re: [Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-12 Thread Martin v. Löwis
my script. It does not start (fork) another process. Instead, the existing process gets reused. It execs another program, true. > As mentioned, it's also a very tiny amount of code, and I don't see > much potential for bad interactions with other things, the way I'v

Re: [Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-12 Thread Martin v. Löwis
; for it. I just don't think you're a typical Python programmer in this > case :) Ok. I'll shut up, just hoping that this won't cause too much trouble in the long run. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org h

Re: [Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-12 Thread Martin v. Löwis
> The patch suggests using .pyz and adding a default association to the > installer (much like .py and .pyw have). Ok. It would be good if the patch actually added that extension, rather than merely suggesting that it should be added. Regards,

Re: [Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-12 Thread Martin v. Löwis
> The relevant shebang line to be prepended to a zip file would then look > something like: > > #!/usr/bin/env python -m runpy -p I might be confusing things, but I think some systems only allow a single argument in the shebang line. Reg

[Python-Dev] Subversion branch merging

2007-07-12 Thread Martin v. Löwis
I'm tasked with performing a number of merge operations across various Python branches. Can somebody please share a command line that I should use to continue with the merge tracking that has been used? Is that documented somewhere? Regards, M

Re: [Python-Dev] Add a -z interpreter flag to execute a zip file

2007-07-13 Thread Martin v. Löwis
uivalent in Python still. My typical usage of java goes like this java -cp the.main.class The equivalent Python line would be python -p -m main_module Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/

Re: [Python-Dev] Registry keys written by x64 installer

2007-07-13 Thread Martin v. Löwis
o "x64" ("Intel64" means Itanium). In addition, you can set the Win64 bit on components, and msilib sets it on all components, AFAIK. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listin

<    26   27   28   29   30   31   32   33   34   35   >