Q: Why Python is bad for web from the point of URLs?

2007-01-24 Thread techtonik
A: Because you need three modules to parse, edit and reassemble query string. urlparse, cgi and urllib -- http://mail.python.org/mailman/listinfo/python-list

Need a cross-platform way to execute binary

2007-02-10 Thread techtonik
Hello, everyb. Does anybody know simple cross-platform method of probing if executable binary is available and launching it. Problem no.1: test if executable file is available I'll take windows platform as the most relevant in this case. os.access() doesn't handle env PATHEXT and can't detect if

Re: Need a cross-platform way to execute binary

2007-02-10 Thread techtonik
On Feb 10, 12:03 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > Does anybody know simple cross-platform method of probing if > > executable binary is available and launching it. > > > Problem no.1: test if executable file is available > > I'll take windows platform as the most relevant in

Determine minimum required version for a script

2008-10-02 Thread techtonik
Can somebody remind how to check script compatibility with old Python versions? I can remember PHP_CompatInfo class for PHP that parses a script or directory to find out the minimum version and extensions required for them to run, and I wonder if there was anything like this for Python? -- --ana

Re: [Twisted-Python] Announcing pyOpenSSL 0.12

2011-04-11 Thread anatoly techtonik
Good news. It may worth to update http://wiki.python.org/moin/SSL with details. Right now it says that pyOpenSSL can not validate server identity. -- anatoly t. On Tue, Apr 12, 2011 at 3:19 AM, wrote: > Exciting news everyone, > > I have just released pyOpenSSL 0.12.  pyOpenSSL provides Python

Re: [Python-Dev] [RELEASED] Python 3.2.1 rc 1

2011-05-17 Thread anatoly techtonik
at python.org > (on behalf of the entire python-dev team and 3.2's contributors) > ___ > Python-Dev mailing list > python-...@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/techtonik%40gmail.com > -- http://mail.python.org/mailman/listinfo/python-list

Re: [Twisted-Python] Twisted 16.1 Release Announcement

2016-04-12 Thread anatoly techtonik
Hi, Are there any plans to get back 32-bit wheels for Twisted? -- https://mail.python.org/mailman/listinfo/python-list

Re: [Twisted-Python] Twisted 15.4 was the last release to support Python 2.6; or: a HawkOwl Can't Words Situation

2015-12-30 Thread anatoly techtonik
Is it possible to fix the documentation? https://twistedmatrix.com/trac/browser/tags/releases/twisted-15.5.0/NEWS?format=raw On Mon, Dec 7, 2015 at 4:06 PM, Amber "Hawkie" Brown wrote: > Hi everyone! > > It's been brought to my attention that I misworded something in the release > notes and it s

Re: [pydotorg-www] www.python.org - Backend is unhealthy

2015-05-10 Thread anatoly techtonik
On Fri, May 8, 2015 at 11:32 AM, Noah Kantrowitz wrote: > > On May 8, 2015, at 10:28 AM, Chris Angelico wrote: > >> On Fri, May 8, 2015 at 6:17 PM, wrote: >>> I cannot access www.python.org. >>> I always get >>> >>> Error 503 Backend is unhealthy >>> >>> Backend is unhealthy >>> >>> Guru Mediat

Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread anatoly techtonik
Hi. This was labelled offtopic in python-ideas, so I edited and forwarded it here. Please CC as I am not subscribed. In short. I need is a bulletproof way to convert from anything to unicode. This requires some kind of escaping to go forward and back. Some helper function like u2b() (unicode to

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread anatoly techtonik
On Wed, May 27, 2015 at 2:35 PM, Laura Creighton wrote: > I am missing something. Why do you need unicode at all? Why can you > not just keep your binary data as binary data? Good question. From the SCons code I see that we need unicode, because we switched to io.StringIO which is advertised as

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread anatoly techtonik
On Wed, May 27, 2015 at 2:47 PM, anatoly techtonik wrote: > On Wed, May 27, 2015 at 2:35 PM, Laura Creighton wrote: >> I am missing something. Why do you need unicode at all? Why can you >> not just keep your binary data as binary data? > > Good question. From the SCons co

Subscribe to get an answer vs automatic CC Was: Fwd: Lossless bulletproof conversion to unicode (backslashing) (fwd)

2015-05-29 Thread anatoly techtonik
On Wed, May 27, 2015 at 3:57 PM, Laura Creighton wrote: > Chris Angelico apparantly has a problem with cc'd people who aren't > on the list. I thought that CC in this case works automatically? If that's not the case, then I'll be annoyed by this too. So, thanks for CCing. =) Also, https://mail.p

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing) (fwd)

2015-05-29 Thread anatoly techtonik
> Cc: "python-list@python.org" > > > On Wed, May 27, 2015 at 9:52 PM, anatoly techtonik > wrote: >> And the short answer is that we need unicode because we are printing this >> information to the stdout, and stdout is opened in text mode at least on >>

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing) (fwd)

2015-05-29 Thread anatoly techtonik
On Fri, May 29, 2015 at 11:41 AM, Laura Creighton wrote: > In a message of Fri, 29 May 2015 11:05:07 +0300, anatoly techtonik writes: > >>Added Mailman to my suxx tracker: >>https://github.com/techtonik/suxx-tracker#mailman > > You are damning the wrong piece of software

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing) (fwd)

2015-05-29 Thread anatoly techtonik
On Fri, May 29, 2015 at 2:39 PM, Laura Creighton wrote: > Do you know about the codecs module? > > reading http://pymotw.com/2/codecs/ may be useful if this is new to you. Does that work for Python 2 and Python 3? > Have you read https://www.python.org/dev/peps/pep-0293/ ? No. > Will backslash

Encoding of Python 2 string literals

2015-07-22 Thread anatoly techtonik
Hi, Is there a way to know encoding of string (bytes) literal defined in source file? For example, given that source: # -*- coding: utf-8 -*- from library import Entry Entry("текст") Is there any way for Entry() constructor to know that string "текст" passed into it is the utf-8 stri

About SCons Re: [Python-Dev] progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-22 Thread anatoly techtonik
On Thu, Jan 22, 2009 at 12:51 AM, Roumen Petrov wrote: >> >> Against 2.3, rejected due to dependence on SCons. >> Also appears to have been incomplete, needing more work. > > No it was complete but use SCons. Most of changes changes in code you will > see again in 3871. > I would better use SCons

Re: About SCons Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-24 Thread anatoly techtonik
On Sat, Jan 24, 2009 at 12:28 AM, Roumen Petrov >> >> I would better use SCons for both unix and windows builds. In case of >> windows for both compilers - mingw and microsoft ones. To port curses >> extension to windows I need to know what gcc options mean, what are >> the rules to write Makefiles

Re: [Python-Dev] [RELEASED] 2.7 beta 1

2010-04-12 Thread anatoly techtonik
On Sun, Apr 11, 2010 at 1:13 AM, average wrote: > > There are so many features taken from 3.0 that I fear that it will > postpone its adoption interminably (it is, in practice, treated as > "beta" software itself).  By making it doctrine that it won't be > official until the next "major" Python re