On 18 March 2017 at 16:54, Lutz Horn wrote:
> Am 18.03.17 um 16:18 schrieb Mikhail V:
>> On 18 March 2017 at 05:02, Ben Finney
>> wrote:
>>> Mikhail V writes:
>>>
>>>> I think it would be a salvation to forbid spaces for indentation,
>>>>
On 18 March 2017 at 21:19, Bob Gailer wrote:
> On Mar 17, 2017 9:23 PM, "Mikhail V" wrote:
>>
>> So Python supports both spaces and tabs for indentation.
>>
>> I just wonder, why not forbid spaces in the beginning of lines?
>> How would one come to th
> On 19 March 2017 at 01:39, Steve D'Aprano wrote:
>> On Sun, 19 Mar 2017 08:24 am, Mikhail V wrote:
>>
>> I've noticed a tendency that more and more users
>> choose tabs.
>Have you really? I've noticed the opposite.
Not *really*, but on stackoverflo
On 19 March 2017 at 02:05, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> On Sun, Mar 19, 2017 at 11:39 AM, Steve D'Aprano
>> wrote:
>>> Is it also ridiculous to use several newlines to space paragraphs
>>> vertically?
>>
>> At least with paragraphs, we don't have eternal debates between people
>>
On 19 March 2017 at 01:32, Steve D'Aprano wrote:
> On Sun, 19 Mar 2017 03:30 am, Grant Edwards wrote:
>
>> tabs are a major security vulnerability and should be outlawed
>> in all source code.
>
>
> I've heard many arguments both in favour of and against tabs, but I've never
> heard them described
On 18 March 2017 at 22:50, Nathan Ernst wrote:
> My issue with using spaces instead of tabs, is that, as mentioned earlier in
> the thread, everyone has their own preferences on indentation. I've worked
> on teams where different developers used 2, 3 & 4 spaces as indentation.
> Obviously, if you'
On 19 March 2017 at 22:54, Gregory Ewing wrote:
> Mikhail V wrote:
>>
>> Monospaced text rendering is an artifact,
>> which exist on a very short time period in history.
>> At best, one should just imagine it should not exist, and is
>> just a temporary inconvi
On 20 March 2017 at 16:19, BartC wrote:
> On 20/03/2017 14:32, Chris Angelico wrote:
>>
>> On Tue, Mar 21, 2017 at 1:24 AM, BartC wrote:
>>>
>>> But it would be better IMO if tabs were used, with some scheme for
>>> suggesting the tab width (or set of tab stops) that is recommended (eg. a
>>> com
On 21 March 2017 at 14:42, Marko Rauhamaa wrote:
> Wildman :
>
>> On Tue, 21 Mar 2017 06:01:26 +1100, Chris Angelico wrote:
>>> Can you ask your workmates to elaborate? I'd love to hear.
>>
>> I would love to hear also. I've been using Linux for about 10 years
>> and I have never had anything "bre
On 21 March 2017 at 15:49, Grant Edwards wrote:
> On 2017-03-21, Mikhail V wrote:
>
>> Didn't want to say this, but you know it was quite predictable from
>> the beginning that the arguments will end up somewhere in "linux
>> console is the center of the univ
On 21 March 2017 at 17:41, Gene Heskett wrote:
> On Tuesday 21 March 2017 11:04:58 Mikhail V wrote:
>
>> On 21 March 2017 at 15:49, Grant Edwards
> wrote:
>> > On 2017-03-21, Mikhail V wrote:
>> >
>> >> I don't know how to help, probably if t
On 21 March 2017 at 22:40, Chris Angelico wrote:
> On Wed, Mar 22, 2017 at 8:27 AM, Mikhail V wrote:
>> I'd just tell one thing since I am a bit tired: if you wish,
>> take an advice: avoid *any* monospaced fonts as plague if you are
>> reading a lot of informa
On 21 March 2017 at 16:42, Michael Torrie wrote:
> On 03/21/2017 08:15 AM, Mikhail V wrote:
>> Didn't want to say this, but you know it was quite predictable from
>> the beginning that
>> the arguments will end up somewhere in "linux console is the center of the
&
On 26 March 2017 at 00:01, Michael Torrie wrote:
> On 03/25/2017 01:40 PM, Gilmeh Serda wrote:
>>
So Python supports both spaces and tabs for indentation.
>>
>> People!
>>
>> This is as far from normal conversation about Python as it gets!
>>
>> Keep this shit to yourselves, PLEASE!
>>
>> Usi
On 26 March 2017 at 06:16, Wildman via Python-list
wrote:
> On Tue, 21 Mar 2017 15:15:14 +0100, Mikhail V wrote:
>
>> And on linux console, by default one does not even have good
>> possibilities for text-mode pseudographics, it was more relevant
>> in DOS where one ha
On 26 March 2017 at 16:28, Wildman via Python-list
wrote:
> On Sun, 26 Mar 2017 15:18:06 +0200, Mikhail V wrote:
>
>> On 26 March 2017 at 06:16, Wildman via Python-list
>> wrote:
>>> On Tue, 21 Mar 2017 15:15:14 +0100, Mikhail V wrote:
>>>
>>>> An
On 26 March 2017 at 17:37, Chris Angelico wrote:
> On Mon, Mar 27, 2017 at 2:17 AM, Mikhail V wrote:
>>>> Why? IIRC I can do good pseudographics on linux only with extended
>>>> unicode character sets, so yes it is possible, is that what you mean?
>>>
>&g
On 26 March 2017 at 20:10, Steve D'Aprano wrote:
> On Mon, 27 Mar 2017 03:57 am, Mikhail V wrote:
>
> [...]
>>>> And more important: can one use binary (bitmap) fonts in default modern
>>>> linux console? If yes, can one patch them with custom tiles at
>
On 26 March 2017 at 21:53, Chris Angelico wrote:
> On Mon, Mar 27, 2017 at 6:25 AM, Mikhail V wrote:
>> On 26 March 2017 at 20:10, Steve D'Aprano wrote:
>>> On Mon, 27 Mar 2017 03:57 am, Mikhail V wrote:
>>>
>>> [...]
>>>>>> And m
On 30 March 2017 at 07:43, Chris Angelico wrote:
> On Thu, Mar 30, 2017 at 3:21 PM, Rick Johnson
> wrote:
>> On Sunday, March 26, 2017 at 2:53:49 PM UTC-5, Chris Angelico wrote:
>>> On Mon, Mar 27, 2017 at 6:25 AM, Mikhail V wrote:
>>> > On 26 March 2017 at 20
On 30 March 2017 at 16:14, Steve D'Aprano wrote:
> On Thu, 30 Mar 2017 03:21 pm, Rick Johnson wrote:
>
>> On Sunday, March 26, 2017 at 2:53:49 PM UTC-5, Chris Angelico wrote:
>>> On Mon, Mar 27, 2017 at 6:25 AM, Mikhail V wrote:
>>> > On 26 March 2017
On 1 April 2017 at 06:38, Rick Johnson wrote:
> On Thursday, March 30, 2017 at 9:14:54 AM UTC-5, Steve D'Aprano wrote:
>> - and making band names look ǨØØĻ and annoy old fuddy-
>> duddies.
>
> So now we've even included graffiti artists in our little
> "inclusivity project". My, my... we are so _
On 1 April 2017 at 22:57, Chris Angelico wrote:
> On Sun, Apr 2, 2017 at 6:07 AM, Mikhail V wrote:
>> On 1 April 2017 at 06:38, Rick Johnson wrote:
>>> On Thursday, March 30, 2017 at 9:14:54 AM UTC-5, Steve D'Aprano wrote:
>>
>>>> - and making
On 1 April 2017 at 18:00, Steve D'Aprano wrote:
> On Sat, 1 Apr 2017 12:17 pm, Rick Johnson wrote:
>
>> Most people just quietly change the filename and move on
>
>
> There are over a billion people in China, almost a billion more in India,
> about 140 million people in Russia, nearly 130 million
On 2 April 2017 at 00:22, Chris Angelico wrote:
> On Sun, Apr 2, 2017 at 8:16 AM, Mikhail V wrote:
>> For multiple-alphabet rendering I will use some
>> custom text format, e.g. with tags
>> ... , and for latin
>> ... and etc.
>>
>> Simple and effecti
On 2 April 2017 at 02:01, Chris Angelico wrote:
> On Sun, Apr 2, 2017 at 9:25 AM, Mikhail V wrote:
>> On 2 April 2017 at 00:22, Chris Angelico wrote:
>>> On Sun, Apr 2, 2017 at 8:16 AM, Mikhail V wrote:
>>>> For multiple-alphabet rendering I will use some
>
On 3 April 2017 at 19:55, Steve D'Aprano wrote:
> I didn't see you calling out Rick for his prejudice against those who aren't
> American, his absurd belief that "most" people are satisfied with ASCII,
Hmm... that is interesting.
Everyone has some beliefs...
If I make a bit more on-topic questio
On 10 April 2017 at 02:21, Gregory Ewing wrote:
>
>
>
> My take on the idea of making Python less dynamic in order
> to improve speed is that you'll end up with a language that,
> while it may superficially resemble Python, doesn't
> really feel like Python.
>
> Boo is an example of that. It
On 11 April 2017 at 16:56, Steve D'Aprano wrote:
> On Tue, 11 Apr 2017 07:56 pm, Brecht Machiels wrote:
>
>[...]
>
>> DropBox and
>> Google seem to agree that there are no good solutions, since they are
>> moving to Go.
>
> That's a good solution! Maybe we should be writing extensions in Go, inste
On 10 April 2017 at 15:17, David Shi via Python-list
wrote:
> In the data set, pound sign escape appears:
> u'price_currency': u'\xa3', u'price_formatted': u'\xa3525,000',
> When using table.to_csv after importing pandas as pd, an error message
> persists as follows:
> UnicodeEncodeError: 'ascii'
On 11 April 2017 at 23:45, MRAB wrote:
> On 2017-04-11 21:58, Mikhail V wrote:
>>
>> On 11 April 2017 at 16:56, Steve D'Aprano
>> wrote:
>>>
>>> On Tue, 11 Apr 2017 07:56 pm, Brecht Machiels wrote:
>>>
>>> [...]
>>>
>
On 12 April 2017 at 00:02, Rick Johnson wrote:
> On Monday, April 10, 2017 at 7:25:48 AM UTC-5, Mikhail V wrote:
>> Still I miss some old school features in Python, e.g.
>> "goto" statement would be very useful in some cases.
>
> Are you serious?
Not so serious to
On 12 April 2017 at 02:44, Nathan Ernst wrote:
> goto is a misunderstood and much misaligned creature. It is a very useful
> feature, but like nearly any programming construct can be abused.
>
> Constructs like 'break', 'continue' or 'next' in languages like Python or
> C/C++ are goto's with impli
On 13 April 2017 at 02:17, Rob Gaddi wrote:
>
> def finder:
> for s in S:
> if s == 'i':
> return 'found on stage 1'
>
> S = S + ' hello world'
> for s in S:
> if s == 'd':
> return 'found on stage 2'
>
> raise ValueError('not found; S=' + S)
>
> try:
> message = fin
On 13 April 2017 at 18:48, Ian Kelly wrote:
> On Thu, Apr 13, 2017 at 10:23 AM, Mikhail V wrote:
>> Now I wonder, have we already collected *all* bells and whistles of Python
>> in these two examples, or is there something else for expressing trivial
>> thing.
>
> F
On 13 April 2017 at 19:38, Ian Kelly wrote:
> On Thu, Apr 13, 2017 at 11:25 AM, Mikhail V wrote:
>> On 13 April 2017 at 18:48, Ian Kelly wrote:
>>> On Thu, Apr 13, 2017 at 10:23 AM, Mikhail V wrote:
>>>> Now I wonder, have we already collected *all* bells and wh
On 14 April 2017 at 03:44, Steve D'Aprano wrote:
> On Fri, 14 Apr 2017 12:52 am, bartc wrote:
>
>> I know this isn't the Python need-for-speed thread, but this is a
>> classic example where the lack of one simple feature leads to using
>> slower, more cumbersome ones.
>
> Dear gods, have I fallen
On 17 April 2017 at 04:00, Steve D'Aprano wrote:
> On Mon, 17 Apr 2017 05:49 am, Dennis Lee Bieber wrote:
>
>> On Mon, 17 Apr 2017 02:48:08 +1000, Steve D'Aprano
>> declaimed the following:
>>
>>>On Sun, 16 Apr 2017 11:57 pm, bartc wrote:
>>>
But people just don't want it.
>>>
>>>Damn straig
Quite often I need raw string literals for concatenating console commands.
I want to input them exactly as they are in python sources.
There is r"" string, but it is obviously not enough because e.g. this:
s = r"ffmpeg -i "\\server-01\D\SER_Bigl.mpg" "
is not valid.
The closest I've found is tr
On 20 April 2017 at 17:44, Mikhail V wrote:
> Quite often I need raw string literals for concatenating console commands.
> I want to input them exactly as they are in python sources.
>
> There is r"" string, but it is obviously not enough because e.g. this:
> s = r&
On 20 April 2017 at 17:55, Chris Angelico wrote:
> On Fri, Apr 21, 2017 at 1:44 AM, Mikhail V wrote:
>> What I think: why there is no some built-in function, for example like:
>> s = raw("ffmpeg -i "\\server-01\D\SER_Bigl__"")
>>
>> which would jus
On 20 April 2017 at 17:59, Grant Edwards wrote:
> On 2017-04-20, Mikhail V wrote:
>> Quite often I need raw string literals for concatenating console commands.
>> I want to input them exactly as they are in python sources.
>>
>> There is r"" string, but i
On 20 April 2017 at 19:27, Chris Angelico wrote:
> On Fri, Apr 21, 2017 at 2:26 AM, wrote:
>> I find this:-
>>
>> s = r"ffmpeg -i '\\server-01\D\SER_Bigl.mpg' "
>>
>> vastly superior.
>
> It's semantically different though. I don't know whether single quotes
> are valid in that context, on Wind
On 20 April 2017 at 22:43, Random832 wrote:
> On Thu, Apr 20, 2017, at 16:01, Grant Edwards wrote:
>> On 2017-04-20, MRAB wrote:
>> > There _is_ a "universal solution"; it's called a Hollerith constant. :-)
>>
>> Wow, I haven't seen one of those in a _long_ time -- probably about 45
>> years. I
On 20 April 2017 at 18:40, Grant Edwards wrote:
> On 2017-04-20, Mikhail V wrote:
>> On 20 April 2017 at 17:59, Grant Edwards wrote:
>>> On 2017-04-20, Mikhail V wrote:
>>>> Quite often I need raw string literals for concatenating console commands.
>>>>
On 20 April 2017 at 23:54, MRAB wrote:
> On 2017-04-20 22:03, Mikhail V wrote:
>>
>> On 20 April 2017 at 22:43, Random832 wrote:
>>> [snip]
>>>
>>> The best solution I can think of is to have a text editor designed to
>>> parse a strin
On 23 April 2017 at 00:48, Chris Angelico wrote:
> On Sun, Apr 23, 2017 at 8:30 AM, Mikhail V wrote:
>> The purpose is simple: reduce manual work to escape special
>> characters in string literals (and escape non-ASCII characters).
>>
>> Simple usage scenario:
>
On 23 April 2017 at 02:33, Chris Angelico wrote:
> On Sun, Apr 23, 2017 at 10:19 AM, Mikhail V wrote:
>> On 23 April 2017 at 00:48, Chris Angelico wrote:
>>> On Sun, Apr 23, 2017 at 8:30 AM, Mikhail V wrote:
>>>> The purpose is simple: reduce manual work to esc
On 23 April 2017 at 05:03, MRAB wrote:
> On 2017-04-22 23:30, Mikhail V wrote:
>>
>> On 20 April 2017 at 23:54, MRAB wrote:
>> > On 2017-04-20 22:03, Mikhail V wrote:
>> >>
>> >> On 20 April 2017 at 22:43, Random832 wrote:
>> >>> [
> The creator of Scala, Martin Odersky, has proposed introducing Python-like
> significant indentation to Scala and getting rid of braces:
>
> I was playing for a while now with ways to make Scala's syntax
>indentation-based. I always admired the neatness of Python syntax
>and also found
hi,
good day.
where can i get a python certification?
thanks!
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, 15 Jul 2017 05:50 pm, Marko Rauhamaa wrote:
> Random access to code points is as uninteresting as random access to
> UTF-8 bytes.
> I might want random access to the "Grapheme clusters, a.k.a.real
> characters".
What _real_ characters are you referring to?
If your data has "á" (U00E1), the
>> On Sat, 15 Jul 2017 05:50 pm, Marko Rauhamaa wrote:
>>> Random access to code points is as uninteresting as random access to
>>> UTF-8 bytes. I might want random access to the "Grapheme clusters,
>>> a.k.a.real characters".
>>
>> What _real_ characters are you referring to?
>> If your data has "
ChrisA wrote:
>On Sun, Jul 16, 2017 at 2:33 PM, Rustom Mody wrote:
>> Right now in an adjacent mailing list (debian) I see someone signed off with
>> a
>>
>> grüß
>>
>> I guess the third character is a u with some ‘dirt’
>> Whats the fourth?
>It's a "sharp S".
or "Eszett", is a merge of two s
ChrisA wrote:
>Yep! Nobody would take any notice of the fact that you just put dots
>on all those letters. It's not like it's going to make any difference
>to anything. We're not dealing with matters of life and death here.
>Oh wait.
>https://www.theinquirer.net/inquirer/news/1017243/cellphone-l
On 2017-07-18, Steve D'Aprano wrote:
> That's neither better nor worse than the system used by English and French,
> where letters with dicritics are not distinct letters, but guides to
> pronunciation.
>_Neither system is right or wrong, or better than the other._
If that is said just "not to
Marko Rauhamaa wrote:
>What did you think of my concrete examples, then? (Say, finding
>"Alvárez" with the regular expression "Alv[aá]rez".)
I think that should match both "Alvarez" and "Alvárez" ...?
But firstly, I feel like I need to _guess_ what ideas you
are presenting. Unless I open up Vim a
ChrisA wrote:
>On Wed, Jul 19, 2017 at 6:05 AM, Mikhail V wrote:
>> On 2017-07-18, Steve D'Aprano wrote:
>>
>>> That's neither better nor worse than the system used by English and French,
>>> where letters with dicritics are not distinct letters, but
Steven D'Aprano wrote:
>On Wed, 19 Jul 2017 10:34 am, Mikhail V wrote:
>> Ok, in this narrow context I can also agree.
>> But in slightly wider context that phrase may sound almost like:
>> "neither geometrical shape is better than the other as a basis
>> for
>
> What would you expect this syntax to return?
>
> [x + 1 for x in (0, 1, 2, 999, 3, 4) while x < 5]
>
Nice question BTW
I'd suppose two possible outcomes:
a) It will behave exactly the same as if there was "if" instead of "while"
so [1, 2, 3, 4, 5].
b) It will return syntax error, because "whi
Hello,
First of all..I am very new to python with no background in development
area! :)
Ok, here is my problem.I have opened a file and I need to check each
line of that file. I have done it with a while loop.
res_own_file = open('/bah')
res_own_list = res_own_file.readline()
res_tot_list=[]
Thank you Chris :) ..I will check it...
On Sun, Apr 15, 2012 at 3:21 PM, Chris Angelico wrote:
> On Sun, Apr 15, 2012 at 7:15 PM, Nibin V M wrote:
> > res_own_file = open('/bah')
> > res_own_list = res_own_file.readline()
> > res_tot_list=[]
> > w
wow...thanks Karl :)
On Tue, Apr 17, 2012 at 2:20 AM, Karl Knechtel wrote:
>
>
> On Sun, Apr 15, 2012 at 5:51 AM, Chris Angelico wrote:
>
>>
>> (You may also want to consider using the 'with' statement to guarantee
>> a timely closing of the file. Outside the scope of this mail though.)
>>
>> I
;').split(':')[1] for line in
res_own_file if ':' in line)
print all_res
am I missing something? :)
On Tue, Apr 17, 2012 at 4:44 PM, Nibin V M wrote:
> wow...thanks Karl :)
>
> On Tue, Apr 17, 2012 at 2:20 AM, Karl Knechtel wrote:
>
>>
>>
>&g
thanks for a super fast reply Chris :)
On Tue, Apr 17, 2012 at 8:06 PM, Chris Angelico wrote:
> On Wed, Apr 18, 2012 at 12:31 AM, Nibin V M wrote:
> > # python test.py
> > File "test.py", line 1
> > with open('/etc/trueuserowners') as res
Hi,
I am trying to use cPanel XML-API and every API call return data in XML
format. I would like to know how to manipulate the data here.
For eg: How can I read the CPU load data from the below output
0.000.000.00
Thank you,
--
Regards
Nibin.
--
http://mail.python.org/mailman/listinfo/
thank you Stefan. but the XML output is assigned to a variable; how to
process the variable with XML contents?
On Wed, May 16, 2012 at 7:53 PM, Stefan Behnel wrote:
> Nibin V M, 16.05.2012 16:16:
> > I am trying to use cPanel XML-API and every API call return data in XML
> >
Hello,
I have the following code, which will assign XML data to a variable! What
is the best method to write the contents of the variable to a file?
===
doc = minidom.parse(sys.stdin)
===
Any help will be highly appreciated!
Thank you,
--
Regards
Nibin.
http://TechsWare.in
--
h
I was trying to parse a date string containing "EDT" time zone
eg: 'Mon Jun 20 14:00:57 EDT 2011'
I tried:
datetime.strptime('Mon Jun 20 14:00:57 EDT 2011', '%a %b %d %H:%M:%S %Z %Y')
But I get error
--
http://mail.python.org/mailman/listinfo/python-list
Thanks,
My script should be platform independent, so I think filtering out time zone
info is better.
--
http://mail.python.org/mailman/listinfo/python-list
> Therefore, Windows has a "trick" for mark the file like visible, or not,
> in 32 mode. What trick?
It's called file system redirection. When you access \windows\system32
in a 32-bit process, you *actually* access \windows\syswow64, which
has entirely different files.
The same also happens for p
nges in 3.2, see
http://docs.python.org/3.2/whatsnew/3.2.html
To download Python 3.2 visit:
http://www.python.org/download/releases/3.2/
Please consider trying Python 3.2 with your code and reporting any bugs
you may notice to:
http://bugs.python.org/
Enjoy!
--
Martin v. Löwis
(
y f the distinct method be
> evaluated immediately?
Yes.
> How can I delay building the dict until the first value is requested?
Make it a generator:
def distinct(iterable, keySelector = (lambda x: x)):
lookup = {}
for item in iterable:
key = keySelector(item)
if key
Am 03.03.2011 07:58, schrieb Gregory Ewing:
> What is the recommended way to write code for 2.7 using
> maketrans() on text strings in such a way that it will
> convert correctly using 2to3?
That depends on how you chose to represent text in 2.7.
The recommended way for that (also with 3.x in mind
Am 04.03.2011 03:21, schrieb Dan Stromberg:
>
> On Thu, Mar 3, 2011 at 3:46 PM, Martin v. Loewis <mailto:mar...@v.loewis.de>> wrote:
>
> That depends on how you chose to represent text in 2.7.
> The recommended way for that (also with 3.x in mind)
> is
Am 06.03.2011 12:18, schrieb Alex Willmer:
> On the English version of http://python.org I'm seeing 下载 as a menu
> item between Download and Community. AFAICT it's Simplified Chinese
> for 'download'. Is it's appearance intentional, or a leak through from
> a translation of the entire page?
It's i
It's intentional. Notice that it goes to a different URL than the
English download link.
Which is a synonym for the English download link (/getit is /download at
present)
Perhaps a translated page is planned?
No, translation is not the motivation at all.
Chinese readers will know when to u
> Could it be a problem with the operation system? Is it possible that an
> os.stat call requires 100% CPU power from the OS? Or is it a problem
> with the Python implementation?
There is a chance that the CPU usage actually comes from the thread
doing sleep(). If you have a very short sleep time,
> Is there a way to keep things (almost) as simple as this using the
> 'Capsules' ??
Most certainly. Instead of PyCObject_FromVoidPtr, use PyCapsule_New.
Either pass NULL as a name, or the class name for additional
type-safety. Instead of PyCObject_AsVoidPtr, use PyCapsule_GetPointer.
The only di
Am 24.03.2011 04:19, schrieb Miki Tebeka:
> Greetings,
>
> My company want to distribute Python packages internally. We would like
> something like an internal PyPi where people can upload and easy_install from
> packages.
>
> Is there such a ready made solution?
> I'd like something as simple
> The cmp argument doesn't depend in any way on an object's __cmp__
> method, so getting rid of __cmp__ wasn't any good readon to also get
> rid of the cmp argument
So what do you think about the cmp() builtin? Should have stayed,
or was it ok to remove it?
If it should have stayed: how should it
> import ssl
> ssl.OPENSSL_VERSION
>
> is there a way that this can be done in python2.4? It's annoying but I
> need to support python2.4 for a while yet :-(
ldd /usr/lib/python2.4/lib-dynload/_ssl.so
[...]
libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x7f6a5a9b7000)
[...]
HTH,
Marti
> I have a vague memory of reading somewhere that it's possible to
> replace the Python memory allocator. This would be an option, if
> there's no simple way to say "your maximum is now 16MB", but I now
> can't find it back. Was I hallucinating?
You can adjust the implementations of PyMem_Malloc a
Am 07.04.2011 02:06, schrieb Chris Angelico:
> On Thu, Apr 7, 2011 at 6:38 AM, Martin v. Loewis wrote:
>> You can adjust the implementations of PyMem_Malloc and PyObject_Malloc.
>> This would catch many allocations, but not all of them. If you adjust
>> PyMem_MALLOC instead
Am 13.04.2011 10:17, schrieb Nathan Coulson:
> Well, as the subject says, I am looking to find libpython31.a
> [win64bit version] for use in a linux to windows 64bit cross compiler
> [x86_64-w64-mingw32-gcc], but seems to be missing.
I wouldn't call it "missing", but "just not there". I had no
i
>> be expanded to
>>
>>_temp = expr
>>if _temp: return _temp
>
> This could be simplified to just:
>
> return expr or None
> """
No, it can't be simplified in this way.
If there is code after that snippet, then
it will get executed in the original version if _temp is
false, but won't get
lease,
Martin
Martin v. Loewis
mar...@v.loewis.de
Python Release Manager
(on behalf of the entire python-dev team)
--
http://mail.python.org/mailman/listinfo/python-list
Am 18.04.2011 09:59, schrieb Werner F. Bruhin:
> On 04/17/2011 11:57 PM, "Martin v. Löwis" wrote:
>>
>> http://www.python.org/2.5.6
> Just FYI, getting a 404 error on the above.
Thanks. There had been a number of glitches which have been
corrected. If anything l
> Thanks Martin, I'm glad these older releases are still getting important
> fixes.
>
> I notice http://www.python.org/download/releases/2.5.6/NEWS.txt says the
> release date was 17 Apr 2010. Presumably that should have said 2011.
Thanks for pointing it out. I fixed it in the repository, so it
> I tried to create another 2.7 key but regedit wouldn't let me.
> So, if I can only have one 2.7 key, it would seem that the routine
> GetPythonVersions will only ever get 1 version of 2.7.
> Does this mean that it is unsupported to have more than one Python 2.7
> installation on Windows?
Exactly
Am 23.04.2011 14:16, schrieb Disc Magnet:
> Is PEP necessary to add a new package to the standard library?
A PEP is necessary if the proposed change is contentious. If there is
widespread agreement that the change is desirable, no PEP is needed.
> What if the community just wants to add a new mod
Am 27.04.2011 12:43, schrieb est:
> Hi guys,
>
> I need to ship python runtime environment package on Windows, if I
> want to stripping unnessasery functions from python27.dll to make it
> as small as possible(and perhaps finally UPX it), which parts of
> python27.dll do you think can be removed?
> But how could i do this in Windows.
It's not supported. Hopefully, it will be supported in Python 3.3,
due to PEP 393.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
> I have vague recollections that pythonXY.dll could not be statically
> linked on Windows, or that doing so causes some serious loss of
> functionality. Was this ever true, and is it still?
You'll have to rebuild Python to make use of static linkage, of course,
but then: it is certainly possible
> On the CJK issue, why python ship its own codec, not using OS builtin?
The OS doesn't provide all the codecs that Python provides. For the one
it does provide, it behaves semantically different in border cases from
the ones that come with Python.
> If I don't need the full Unicode5.1 can I just
ssues, please see:
http://www.python.org/2.5.6
Highlights of the previous major Python releases are available from
the Python 2.5 page, at
http://www.python.org/2.5/highlights.html
Enjoy this release,
Martin
Martin v. Loewis
mar...@v.loewis.de
Python Release Manager
(on behalf of the entire p
what is the best qr package
--
https://mail.python.org/mailman/listinfo/python-list
I am excecting custom commands like shell on multiple linux hosts. and if in
one host one of the commands fail. I want that process not to proceed. If the
remote command throws an error i am logging it .. but the process goes to next
command . but if i terminate the command, the process will t
Error:
ImportError: No module named google.protobuf
--
https://mail.python.org/mailman/listinfo/python-list
>From vigan
Hi i wold like to join in this list because i want to start programing with
python pls acept this
--
https://mail.python.org/mailman/listinfo/python-list
201 - 300 of 2482 matches
Mail list logo