Re: [Python-Dev] [help] where to learn how to upgrade from 2.7 to 3

2018-09-19 Thread Steve Holden
You can find information about python-list at https://mail.python.org/mailman/listinfo/python-list regards Steve Holden On Tue, Sep 18, 2018 at 4:28 AM Ryan Gonzalez wrote: > Python-dev is for development *of* Python, not *in* Python! You want > python-list instead. > > Also, make sure you inc

Re: [Python-Dev] [help] where to learn how to upgrade from 2.7 to 3

2018-09-17 Thread Ryan Gonzalez
Python-dev is for development *of* Python, not *in* Python! You want python-list instead. Also, make sure you include some full example code where the error occurs and what exactly is failing. Right now, it's hard for me to tell what exactly is going on... On Mon, Sep 17, 2018, 8:21 PM Avery Rich

Re: [Python-Dev] Help preventing SIGPIPE/SIG_DFL anti-pattern.

2018-06-30 Thread Guido van Rossum
On Sat, Jun 30, 2018 at 9:02 PM Alfred Perlstein wrote: > > > On 6/30/18 4:20 PM, Greg Ewing wrote: > > Alfred Perlstein wrote: > >> I am asking if there's a way we can discourage the use of > >> "signal(SIGPIPE, SIG_DFL)" unless the user really understands what > >> they are doing. > > > > Maybe

Re: [Python-Dev] Help preventing SIGPIPE/SIG_DFL anti-pattern.

2018-06-30 Thread Alfred Perlstein
On 6/30/18 4:20 PM, Greg Ewing wrote: Alfred Perlstein wrote: I am asking if there's a way we can discourage the use of "signal(SIGPIPE, SIG_DFL)" unless the user really understands what they are doing. Maybe there's some way that SIGPIPEs on stdout could be handled differently by default,

Re: [Python-Dev] Help preventing SIGPIPE/SIG_DFL anti-pattern.

2018-06-30 Thread Greg Ewing
Alfred Perlstein wrote: I am asking if there's a way we can discourage the use of "signal(SIGPIPE, SIG_DFL)" unless the user really understands what they are doing. Maybe there's some way that SIGPIPEs on stdout could be handled differently by default, so that they exit silently instead of pro

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-08-16 Thread Elvis Pranskevichus
After much testing I found what is causing the regression in 16.04 and later. There are several distinct causes which are attributed to the choices made in debian/rules and the changes in GCC. Cause #1: the decision to compile `Modules/_math.c` with `-fPIC` *and* link it statically into the pytho

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Wang, Peter Xihong
[email protected]] On Behalf Of Louis Bouchard Sent: Friday, March 03, 2017 7:27 AM To: Victor Stinner Cc: Barry Warsaw ; Nick Coghlan ; Python-Dev Subject: Re: [Python-Dev] Help requested with Python 2.7 performance regression Hello, Le 03/03/2017 à 15:37, Louis Boucha

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Louis Bouchard
Hello, Le 03/03/2017 à 15:37, Louis Bouchard a écrit : > Hello, > > Le 03/03/2017 à 15:31, Victor Stinner a écrit : >>> Out of curiosity, I ran the set of benchmarks in two LXC containers running >>> centos7 (2.7.5 + gcc 4.8.5) and Fedora 25 (2.7.13 + gcc 6.3.x). The >>> benchmarks >>> do run fa

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Louis Bouchard
Hello, Le 03/03/2017 à 15:31, Victor Stinner a écrit : >> Out of curiosity, I ran the set of benchmarks in two LXC containers running >> centos7 (2.7.5 + gcc 4.8.5) and Fedora 25 (2.7.13 + gcc 6.3.x). The >> benchmarks >> do run faster in 18 benchmarks, slower on 12 and insignificant for the rest

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Victor Stinner
> Out of curiosity, I ran the set of benchmarks in two LXC containers running > centos7 (2.7.5 + gcc 4.8.5) and Fedora 25 (2.7.13 + gcc 6.3.x). The benchmarks > do run faster in 18 benchmarks, slower on 12 and insignificant for the rest > (~33 > from memory). "faster" or "slower" is relative: I w

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Louis Bouchard
Hello, Le 03/03/2017 à 08:27, Nick Coghlan a écrit : > On 2 March 2017 at 07:00, Victor Stinner > wrote: > > Hi, > > Your document doesn't explain how you configured the host to run > benchmarks. Maybe you didn't tune Linux or anything else? Be caref

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Charalampos Stratakis
From: "Victor Stinner" To: "Charalampos Stratakis" Cc: "Nick Coghlan" , "Barry Warsaw" , "Python-Dev" Sent: Friday, March 3, 2017 12:53:00 PM Subject: Re: [Python-Dev] Help requested with Python 2.7 performance regression 2017-03-03 12:18 GM

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Victor Stinner
2017-03-03 12:18 GMT+01:00 Charalampos Stratakis : > PGO is not enabled in RHEL and Fedora. > > I did some initial testing for Fedora, however it increased the compilation > time of the RPM by approximately two hours, so for the time being I left it > out. Two hours in a *single* build server is

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Charalampos Stratakis
- Original Message - From: "Victor Stinner" To: "Nick Coghlan" Cc: "Barry Warsaw" , "Python-Dev" Sent: Friday, March 3, 2017 11:21:49 AM Subject: Re: [Python-Dev] Help requested with Python 2.7 performance regression 2017-03-03 8:27 GMT+01:00 Nick C

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Victor Stinner
2017-03-03 8:27 GMT+01:00 Nick Coghlan : > Victor, do you know if you or anyone else has compared the RHEL/CentOS 7.x > binaries (Python 2.7.5 + patches, built with GCC 4.8.x) with the Fedora 25 > binaries (Python 2.7.13 + patches, built with GCC 6.3.x)? I didn't and I'm not aware of anyone who di

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-03 Thread Louis Bouchard
Hello, Le 03/03/2017 à 08:27, Nick Coghlan a écrit : > On 2 March 2017 at 07:00, Victor Stinner > wrote: > > Hi, > > Your document doesn't explain how you configured the host to run > benchmarks. Maybe you didn't tune Linux or anything else? Be caref

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-02 Thread Nick Coghlan
On 2 March 2017 at 07:00, Victor Stinner wrote: > Hi, > > Your document doesn't explain how you configured the host to run > benchmarks. Maybe you didn't tune Linux or anything else? Be careful > with modern hardware which can make funny (or not) surprises. Victor, do you know if you or anyone

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-02 Thread Gregory P. Smith
We updated profile-opt to use the testsuite subset based on what distros had already been using for their training runs. As for the comment about the test suite not being good for training Mostly a myth. The test suite exercises the ceval loop well as well as things like re and json sufficientl

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-02 Thread INADA Naoki
On Thu, Mar 2, 2017 at 4:07 AM, Antoine Pitrou wrote: > On Wed, 1 Mar 2017 19:58:14 +0100 > Matthias Klose wrote: >> On 01.03.2017 18:51, Antoine Pitrou wrote: >> > As for the high level: what if the training set used for PGO in Xenial >> > has become skewed or inadequate? >> >> running the tests

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Louis Bouchard
Hello, Le 01/03/2017 à 20:40, Antoine Pitrou a écrit : > On Wed, 1 Mar 2017 20:24:03 +0100 > Louis Bouchard wrote: >> >> Indeed, this is something that is in the history of the LP bug so here is the >> URL where those comparison can be found : >> >> https://docs.google.com/spreadsheets/d/1MyNBPVZ

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Victor Stinner
Hi, Your document doesn't explain how you configured the host to run benchmarks. Maybe you didn't tune Linux or anything else? Be careful with modern hardware which can make funny (or not) surprises. See my recent talk at FOSDEM (last month): "How to run a stable benchmark" https://fosdem.org/201

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Antoine Pitrou
On Wed, 1 Mar 2017 20:24:03 +0100 Louis Bouchard wrote: > > Indeed, this is something that is in the history of the LP bug so here is the > URL where those comparison can be found : > > https://docs.google.com/spreadsheets/d/1MyNBPVZlBeic1OLqVKe_bcPk2deO_pQs9trIfOFefM0/edit#gid=2034603487 Some

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Louis Bouchard
Hello, Le 01/03/2017 à 18:51, Antoine Pitrou a écrit : > On Wed, 1 Mar 2017 12:28:24 -0500 > Barry Warsaw wrote: >> >> Louis (Cc'd here) has done a ton of work to measure and analyze the problem, >> but we've more or less hit a roadblock, so we're taking the issue public to >> see if anybody on t

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Antoine Pitrou
On Wed, 1 Mar 2017 19:58:14 +0100 Matthias Klose wrote: > On 01.03.2017 18:51, Antoine Pitrou wrote: > > As for the high level: what if the training set used for PGO in Xenial > > has become skewed or inadequate? > > running the testsuite I did some tests a year or two ago, and running the who

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Matthias Klose
On 01.03.2017 18:51, Antoine Pitrou wrote: > As for the high level: what if the training set used for PGO in Xenial > has become skewed or inadequate? running the testsuite ___ Python-Dev mailing list [email protected] https://mail.python.org/mailma

Re: [Python-Dev] Help requested with Python 2.7 performance regression

2017-03-01 Thread Antoine Pitrou
On Wed, 1 Mar 2017 12:28:24 -0500 Barry Warsaw wrote: > > Louis (Cc'd here) has done a ton of work to measure and analyze the problem, > but we've more or less hit a roadblock, so we're taking the issue public to > see if anybody on this mailing list has further ideas. A detailed analysis is > a

Re: [Python-Dev] Help/advice needed with JyNI issue #4 (Tkinter on OSX)

2016-04-05 Thread Guido van Rossum
Since this seems tcl/tk related your best bet is the tkinter mailing list: https://mail.python.org/mailman/listinfo/tkinter-discuss On Mon, Apr 4, 2016 at 8:38 PM, Stefan Richthofer wrote: > Hey everybody, > > I need help/advice for this JyNI-related issue: > https://github.com/Stewori/JyNI/issu

Re: [Python-Dev] Help with a book

2015-11-30 Thread Jacob Zimmerman
Thanks to everyone who has offered to look at and edit my book. I have enough help now, so I won't be taking anymore requests. On Wed, Nov 25, 2015 at 2:31 PM, Jacob Zimmerman wrote: > Hello Python Developers! > > I'm writing a book about descriptors, and I'm hoping to make it a > comprehensive

Re: [Python-Dev] Help with a book

2015-11-28 Thread Ethan Furman
On 11/25/2015 12:31 PM, Jacob Zimmerman wrote: I appreciate any help anyone can give to assist in making this book as great as it can be. I'm a pretty good editor, and have used descriptors quite a bit. I'd be happy to help. -- ~Ethan~ ___ Pytho

Re: [Python-Dev] Help with a book

2015-11-25 Thread Chris Angelico
On Thu, Nov 26, 2015 at 7:31 AM, Jacob Zimmerman wrote: > Anyway, I am currently reading through my initial rough draft and making > corrections for a revised draft. Once I'm done with that, I'd like a few > volunteers to read through it. First, to find spelling, grammatical, or > consistency mist

Re: [Python-Dev] Help with a book

2015-11-25 Thread Emanuel Barry
As someone who plays around a *lot* with descriptors, I would be interested in reviewing it. I may not have the same knowledge as a core developer, but I can still help. Date: Wed, 25 Nov 2015 14:31:09 -0600 From: [email protected] To: [email protected] Subject: [Python-Dev] Help with a

Re: [Python-Dev] Help with finding tutors for Python, Linux, R, Perl, Octave, MATLAB and/or Cytoscape for yeast microarray analysis, next generation sequencing and constructing gene interaction networ

2015-01-03 Thread Senthil Kumaran
On Saturday, January 3, 2015 at 7:06 PM, thomas hahn wrote: > Help with finding tutors for Python, Linux, R, Perl, Octave, MATLAB and/or > Cytoscape for yeast microarray analysis, next generation sequencing and > constructing gene interaction networks This is an inappropriate list to seek ou

Re: [Python-Dev] Help with the build system and my first patch

2014-06-09 Thread Brett Cannon
On Mon Jun 09 2014 at 1:48:27 PM, Steven Stewart-Gallus < [email protected]> wrote: > > Do you mean other than potentially detecting something in the > > configurescript and using an #ifdef guard? > > Yes, that works on a static function inside a file level but I need to > condition

Re: [Python-Dev] Help with the build system and my first patch

2014-06-09 Thread Steven Stewart-Gallus
> Do you mean other than potentially detecting something in the > configurescript and using an #ifdef guard? Yes, that works on a static function inside a file level but I need to conditionally include a whole file into the build. ___ Python-Dev mailing

Re: [Python-Dev] Help with changes in stack from 2.7 to 3.x

2014-04-25 Thread Chris Angelico
On Sat, Apr 26, 2014 at 1:11 PM, Andrew Konstantaras wrote: > Can anyone point me in the direction to find this information? Any help is > appreciated. I'd recommend python-list rather than python-dev (the latter is for the development *of* Python, rather than development *with* Python). But to

Re: [Python-Dev] Help needed: problems getting the expected default encoding for embedded IO config test

2013-10-17 Thread Victor Stinner
sys.stdout.encoding must never be None, it must be a str. If it is None, it is a regression. I modified Python (maybe in 3.2) to ensure that .encoding is always set. For your failure: what is the locale encoding? What are the values of LC_ALL, LANG, LC_CTYPES and PYTHONIOENCODING env vars? I will

Re: [Python-Dev] help with knowledge on how to find which release a fix will land in

2013-02-08 Thread Tshepang Lekhonkhobe
On Fri, Feb 8, 2013 at 2:45 PM, Chris Withers wrote: > On 08/02/2013 11:17, Antoine Pitrou wrote: >> >> Le Fri, 08 Feb 2013 10:58:36 +, >> Chris Withers a écrit : >>> >>> Hi All, >>> >>> Where would I look to find out which release a fix for an issue >>> (http://bugs.python.org/issue15822 if

Re: [Python-Dev] help with knowledge on how to find which release a fix will land in

2013-02-08 Thread Tshepang Lekhonkhobe
On Fri, Feb 8, 2013 at 3:17 PM, Tshepang Lekhonkhobe wrote: > On Fri, Feb 8, 2013 at 2:45 PM, Chris Withers wrote: >> On 08/02/2013 11:17, Antoine Pitrou wrote: >>> >>> Le Fri, 08 Feb 2013 10:58:36 +, >>> Chris Withers a écrit : Hi All, Where would I look to find out whic

Re: [Python-Dev] help with knowledge on how to find which release a fix will land in

2013-02-08 Thread Ronald Oussoren
On 8 Feb, 2013, at 13:45, Chris Withers wrote: > On 08/02/2013 11:17, Antoine Pitrou wrote: >> Le Fri, 08 Feb 2013 10:58:36 +, >> Chris Withers a écrit : >>> Hi All, >>> >>> Where would I look to find out which release a fix for an issue >>> (http://bugs.python.org/issue15822 if you're int

Re: [Python-Dev] help with knowledge on how to find which release a fix will land in

2013-02-08 Thread Antoine Pitrou
Le Fri, 08 Feb 2013 12:45:48 +, Chris Withers a écrit : > On 08/02/2013 11:17, Antoine Pitrou wrote: > > Le Fri, 08 Feb 2013 10:58:36 +, > > Chris Withers a écrit : > >> Hi All, > >> > >> Where would I look to find out which release a fix for an issue > >> (http://bugs.python.org/issue158

Re: [Python-Dev] help with knowledge on how to find which release a fix will land in

2013-02-08 Thread Chris Withers
On 08/02/2013 11:17, Antoine Pitrou wrote: Le Fri, 08 Feb 2013 10:58:36 +, Chris Withers a écrit : Hi All, Where would I look to find out which release a fix for an issue (http://bugs.python.org/issue15822 if you're interested ;-)) will land in? Just read that issue's comments and you'll

Re: [Python-Dev] help with knowledge on how to find which release a fix will land in

2013-02-08 Thread Antoine Pitrou
Le Fri, 08 Feb 2013 10:58:36 +, Chris Withers a écrit : > Hi All, > > Where would I look to find out which release a fix for an issue > (http://bugs.python.org/issue15822 if you're interested ;-)) will > land in? Just read that issue's comments and you'll know in which branches the fix was

Re: [Python-Dev] Help to fix this bug http://bugs.python.org/issue15068

2012-06-19 Thread Serhiy Storchaka
On 19.06.12 15:13, Antoine Pitrou wrote: sys.stdin <_io.TextIOWrapper name='' mode='r' encoding='UTF-8'> So it's a TextIOWrapper from the _io module (which is really the implementation of the io module). You'll find its source in Modules/_io. TextIOWrapper objects are defined in Modules/_io/tex

Re: [Python-Dev] Help to fix this bug http://bugs.python.org/issue15068

2012-06-19 Thread Antoine Pitrou
Hi, On Tue, 19 Jun 2012 04:39:30 -0700 (PDT) gmspro wrote: > Hi, > > I'm working on this bug to fix it. http://bugs.python.org/issue15068 I'm not sure why you think this is fixable, given the comments on the tracker. What is your plan? > >>> from sys import stdin > >>> str=stdin.read() > hell

Re: [Python-Dev] Help to fix this bug http://bugs.python.org/issue15068

2012-06-19 Thread Eli Bendersky
It depends on the Python version. In 3.3, for example, look into Modules/_io/fileio.c Eli On Tue, Jun 19, 2012 at 2:39 PM, gmspro wrote: > Hi, > > I'm working on this bug to fix it. http://bugs.python.org/issue15068 > > >>> from sys import stdin > >>> str=stdin.read() > hello > hello world >

Re: [Python-Dev] Help requested for Python ISO Standard

2011-06-06 Thread Nick Coghlan
On Tue, Jun 7, 2011 at 8:14 AM, kevin coyne wrote: > Skip: > Thanks, appreciate the link  I've checked them all out and some may be > useful to my task. Another two scans to try would be to look for "cpython" in the test suite and "impl-detail" in the documentation. Cheers, Nick. -- Nick Coghl

Re: [Python-Dev] Help requested for Python ISO Standard

2011-06-06 Thread kevin coyne
> Subject: Re: [Python-Dev] Help requested for Python ISO Standard > From: [email protected] > > > kevin> I am working on an ISO Annex of Vulnerabilities for the Python > kevin> language and am asking for help getting a list of language > kevin> featur

Re: [Python-Dev] Help requested for Python ISO Standard

2011-06-06 Thread skip
kevin> I am working on an ISO Annex of Vulnerabilities for the Python kevin> language and am asking for help getting a list of language kevin> features that exhibit: kevin> unspecified behavior, undefined behavior, or implementation kevin> defined behavior. I am also searchin

Re: [Python-Dev] Help deploying a new buildbot running OpenIndiana/x86

2010-11-17 Thread Bill Janssen
Jesus Cea wrote: > On 17/11/10 17:23, Antoine Pitrou wrote: > > There is no incoming connection; however, a bunch of outgoing > > connections are made to various hosts by various tests, so it's better > > if there's no overzealous firewall in-between. For those of us who can't do that, there's a

Re: [Python-Dev] Help deploying a new buildbot running OpenIndiana/x86

2010-11-17 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/11/10 18:10, Antoine Pitrou wrote: >> >> ¿Could you provide the connection credential?. I rather prefer to skip >> the IRC (I am a XMPP guy), but I can connect to freenode if you need it. > > I've already sent you a private e-mail. OK. Sorry. M

Re: [Python-Dev] Help deploying a new buildbot running OpenIndiana/x86

2010-11-17 Thread Antoine Pitrou
> > ¿Could you provide the connection credential?. I rather prefer to skip > the IRC (I am a XMPP guy), but I can connect to freenode if you need it. I've already sent you a private e-mail. ___ Python-Dev mailing list [email protected] http://mail

Re: [Python-Dev] Help deploying a new buildbot running OpenIndiana/x86

2010-11-17 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/11/10 17:23, Antoine Pitrou wrote: > There is no incoming connection; however, a bunch of outgoing > connections are made to various hosts by various tests, so it's better > if there's no overzealous firewall in-between. I know that, just confir

Re: [Python-Dev] Help deploying a new buildbot running OpenIndiana/x86

2010-11-17 Thread Antoine Pitrou
On Wed, 17 Nov 2010 17:07:02 +0100 Jesus Cea wrote: > > I am reading http://wiki.python.org/moin/BuildBot . I have installed > buildbotslave already, but I need passwords, etc., to link to python > buildbot infraestructure. > > The machine is behind a NAT system, so any incoming connection will

Re: [Python-Dev] Help with warnings not being raised

2010-11-08 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/11/10 13:55, Nick Coghlan wrote: > Under -We, PyErr_Warn raises an exception rather than printing to > stdout. That exception is clobbered by the immediately following call > to PyErr_Clear. > Since you *only* hit that branch under -We in the fir

Re: [Python-Dev] Help with warnings not being raised

2010-11-05 Thread Nick Coghlan
On Fri, Nov 5, 2010 at 11:12 AM, Jesus Cea wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 05/11/10 01:36, Benjamin Peterson wrote: >>> I don't know why. >> >> Are you passing -3 -Wall? > > I am passing "-3 -Werror", to induce the error control I have committed. Under -We, PyErr_W

Re: [Python-Dev] Help with warnings not being raised

2010-11-04 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/11/10 01:36, Benjamin Peterson wrote: >> I don't know why. > > Are you passing -3 -Wall? I am passing "-3 -Werror", to induce the error control I have committed. - -- Jesus Cea Avion _/_/ _/_/_/_/_/_/ j...

Re: [Python-Dev] Help with warnings not being raised

2010-11-04 Thread Benjamin Peterson
2010/11/4 Jesus Cea : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all. I just committed r86180, but there is something I don't like. > > If you read the tests I did (by hand)at > http://bugs.python.org/issue9675#msg120462 , python should show the > unraisable and THEN the "C API unavai

Re: [Python-Dev] Help wanted on a code generator project

2010-01-26 Thread Alexandre Vassalotti
On Tue, Jan 26, 2010 at 7:04 AM, Yingjie Lan wrote: >> note that this is quite off-topic for this list, which is >> about the >> development of the CPython interpreter and runtime >> environment. > > Sorry if this is bothering you. I thought here are a lot of people who knows > how to write exten

Re: [Python-Dev] Help wanted on a code generator project

2010-01-26 Thread Floris Bruynooghe
On Tue, Jan 26, 2010 at 04:40:29AM -0800, Yingjie Lan wrote: > I googled c.l.py but found > few pages (one link said it is a dead list, but anyway), > would you care give the information > where to join it? comp.lang.python newsgroup, see: http://python.org/community/lists/ Regards Floris --

Re: [Python-Dev] Help wanted on a code generator project

2010-01-26 Thread Yingjie Lan
> Note that pretty much everyone who reads this list will > likely also read > c.l.py, but c.l.py has a much broader audience, including a > lot of people > who write extension modules in one way or another. Thanks for the note. I googled c.l.py but found few pages (one link said it is a dead li

Re: [Python-Dev] Help wanted on a code generator project

2010-01-26 Thread Nick Coghlan
Yingjie Lan wrote: >> note that this is quite off-topic for this list, which is about the >> development of the CPython interpreter and runtime environment. > > Sorry if this is bothering you. I thought here are a lot of people > who knows how to write extensions, and has a lot of experiences. >

Re: [Python-Dev] Help wanted on a code generator project

2010-01-26 Thread Stefan Behnel
Yingjie Lan, 26.01.2010 13:04: >> note that this is quite off-topic for this list, which is about the >> development of the CPython interpreter and runtime environment. > > Sorry if this is bothering you. No problem. > I thought here are a lot of people who > knows how to write extensions, and

Re: [Python-Dev] Help wanted on a code generator project

2010-01-26 Thread Michael Foord
On 26/01/2010 12:04, Yingjie Lan wrote: note that this is quite off-topic for this list, which is about the development of the CPython interpreter and runtime environment. Sorry if this is bothering you. I thought here are a lot of people who knows how to write extensions, and has a lot o

Re: [Python-Dev] Help wanted on a code generator project

2010-01-26 Thread Yingjie Lan
> note that this is quite off-topic for this list, which is > about the > development of the CPython interpreter and runtime > environment. Sorry if this is bothering you. I thought here are a lot of people who knows how to write extensions, and has a lot of experiences. These are exactly the be

Re: [Python-Dev] Help wanted on a code generator project

2010-01-26 Thread Stefan Behnel
Yingjie Lan, 26.01.2010 12:41: > I am working on a project named expy, which intends to be an express way > to extend Python (currently only supports extension in C, but could be > easily expaned to support more languages). With expy you can write your > code as a real python module, then expy woul

Re: [Python-Dev] Help needed for tar archive creation with changed UID/GID

2009-10-06 Thread Michael Foord
bheemesh v wrote: Hello, I am a newbie to this mailing list, i have seen in some mail discussions about a tar archive creation by forcibly setting the UID/GID to a specific user (say root). Hello Bheemesh, This mailing list is for the development of Python, not for developing *with* Python

Re: [Python-Dev] Help needed for tar archive creation with changed UID/GID

2009-10-06 Thread Stefan Behnel
bheemesh v wrote: > I am a newbie to this mailing list, i have seen in some mail discussions > about a tar archive creation by forcibly setting the UID/GID to a specific > user (say root). Note that this is the mailing list about core development of the CPython interpreter, not about general Pytho

Re: [Python-Dev] help required

2009-09-25 Thread MRAB
waqas ahmad wrote: Hi, I dont know it is the right place to post this question. I need help to change one search code line . can you help me please. here is my search method code: search=re.compile("^#acl InternationalGroup.*\n", re.M).search(pagetext) if search: ret=search.gr

Re: [Python-Dev] help required

2009-09-25 Thread Michael Foord
waqas ahmad wrote: Hi, I dont know it is the right place to post this question. I need help to change one search code line . can you help me please. Hello Waqas, This is a list for the development *of* Python, not for development with Python. More appropriate lists, where hopefully there

Re: [Python-Dev] Help on issue 5941

2009-05-07 Thread Tarek Ziadé
On Thu, May 7, 2009 at 2:11 PM, David Cournapeau wrote: > But I don't know if that's easy to set up such as both python and > numpy are built from sources. I don't know about the numpy part, but the PyBots project code could be a source of inspiration for the Python part http://code.google.com/p

Re: [Python-Dev] Help on issue 5941

2009-05-07 Thread David Cournapeau
On Thu, May 7, 2009 at 8:49 PM, Tarek Ziadé wrote: > > Notice that from the beginning, the unixcompiler class options are > never used if the option has been customized > in distutils.sysconfig and present in the Makefile, so we need to > clean this behavior as well at some point, and document >

Re: [Python-Dev] Help on issue 5941

2009-05-07 Thread Tarek Ziadé
On Thu, May 7, 2009 at 1:37 PM, David Cournapeau wrote: > On Thu, May 7, 2009 at 7:07 PM, Tarek Ziadé wrote: >> On Thu, May 7, 2009 at 11:50 AM, David Cournapeau wrote: >>> Then, in the customize_compiler function, set archiver to $AR + >>> $ARFLAGS. IOW, just copying the logic used for e.g. lds

Re: [Python-Dev] Help on issue 5941

2009-05-07 Thread Tarek Ziadé
On Thu, May 7, 2009 at 11:50 AM, David Cournapeau wrote: > Then, in the customize_compiler function, set archiver to $AR + > $ARFLAGS. IOW, just copying the logic used for e.g. ldshared, > > I can prepare a patch if you want, I am ok on Distutils side, but I wouldn't mind some help on the makefil

Re: [Python-Dev] Help on issue 5941

2009-05-07 Thread David Cournapeau
On Wed, May 6, 2009 at 6:01 PM, Tarek Ziadé wrote: > Hello, > > I need some help on http://bugs.python.org/issue5941 > > The bug is quite simple: the Distutils unixcompiler used to set the > archiver command to "ar -rc". > > For quite a while now, this behavior has changed in order to be able > to

Re: [Python-Dev] help-tkinter

2009-03-02 Thread Steve Holden
ramesh nayak wrote: > Dear Sir, > I have a fortran-95 code for my own mathematical application . > > and also I have the *.exe fiel for the same. when I double click it , it > will run. > > I want to make a GUI for it by using TKinter and run the program through > the button on GUI. > > Could yo

Re: [Python-Dev] Help! Vista symlinks and IDLE

2009-01-18 Thread Jeff Hall
I'm glad someone sent this out... I was having this EXACT problem today I've got it installed on my wife's computer and I'm certain that it worked when I first installed 3.0a but it stopped working (I didn't update Python but my wife has done several Vista security updates)... Hopefully, that will

Re: [Python-Dev] Help

2009-01-15 Thread skip
>> Can you tell me how can I install the Python3.0 on my computer with >> the Red Hat Enterprise 5? You should ask this question on one of these three mailing lists: [email protected] [email protected] [email protected] This mailing list discusses Python development not h

Re: [Python-Dev] help for a noob - version for a sharp ARM

2006-12-07 Thread Josiah Carlson
a Fred <[EMAIL PROTECTED]> wrote: > > I'm looking for advice on stripping down Python for an SBC to run Numpy > and Scipy. I have the following notes on the system > > We have code that requires recent versions of Numpy and Scipy. > The processor is a 32 bit Sharp ARM Sharp LH7A404 32 bit ARM9

Re: [Python-Dev] Help with Unicode arrays in NumPy

2006-02-08 Thread Travis Oliphant
Thank you, Martin and Stephen, for the suggestions and comments. For your information: We decided that all NumPy arrays of unicode strings will use UCS4 for internal representation. When an element of the array is selected, a unicodescalar (which inherits directly from the unicode builtin type

Re: [Python-Dev] Help on choosing a PEP to volunteer on it : 308, 328 or 343

2006-02-08 Thread Brett Cannon
On 2/8/06, Thomas Wouters <[EMAIL PROTECTED]> wrote: > On Wed, Feb 08, 2006 at 01:39:34PM -0800, Brett Cannon wrote: > > On 2/8/06, Joao Macaiba <[EMAIL PROTECTED]> wrote: > > > > 1. For a newbie in the Python core development, what is the best PEP to > > > begin with ? > > > Wild guess? 308, but

Re: [Python-Dev] Help on choosing a PEP to volunteer on it : 308, 328 or 343

2006-02-08 Thread Thomas Wouters
On Wed, Feb 08, 2006 at 01:39:34PM -0800, Brett Cannon wrote: > On 2/8/06, Joao Macaiba <[EMAIL PROTECTED]> wrote: > > 1. For a newbie in the Python core development, what is the best PEP to > > begin with ? > Wild guess? 308, but that still requires changing the grammar and > editing the AST co

Re: [Python-Dev] Help on choosing a PEP to volunteer on it : 308, 328 or 343

2006-02-08 Thread Raymond Hettinger
[Joao Macaiba] > 1. For a newbie in the Python core development, what is the best PEP to > begin with ? I recommend, PEP 308: Conditional Expressions Raymond ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/py

Re: [Python-Dev] Help on choosing a PEP to volunteer on it : 308, 328 or 343

2006-02-08 Thread Brett Cannon
On 2/8/06, Joao Macaiba <[EMAIL PROTECTED]> wrote: > Hi. I'm interested in doing an undergraduate project under some Python > core PEP. > > I'm newbie to Python core. Program in C/C++. > > I've downloaded the sources with svn and now I'm studying it. > > > There are 3 PEP accepted : > > . 308 : Con

Re: [Python-Dev] Help with Unicode arrays in NumPy

2006-02-07 Thread Stephen J. Turnbull
> "Travis" == Travis E Oliphant <[EMAIL PROTECTED]> writes: Travis> Numpy supports arrays of arbitrary fixed-length "records". Travis> It is much more than numeric-only data now. One of the Travis> fields that a record can contain is a string. If strings Travis> are supported

Re: [Python-Dev] Help with Unicode arrays in NumPy

2006-02-07 Thread Martin v. Löwis
Travis E. Oliphant wrote: > Numpy supports arrays of arbitrary fixed-length "records". It is > much more than numeric-only data now. One of the fields that a > record can contain is a string. If strings are supported, it makes > sense to support unicode strings as well. Hmm. How do you support

Re: [Python-Dev] Help with Unicode arrays in NumPy

2006-02-07 Thread Travis E. Oliphant
Martin v. Löwis wrote: > Travis E. Oliphant wrote: > >>Currently that means that they are "unicode" strings of basic size UCS2 >>or UCS4 depending on the platform. It is this duality that has some >>people concerned. For all other data-types, NumPy allows the user to >>explicitly request a bi

Re: [Python-Dev] Help with Unicode arrays in NumPy

2006-02-07 Thread Martin v. Löwis
Travis E. Oliphant wrote: > Currently that means that they are "unicode" strings of basic size UCS2 > or UCS4 depending on the platform. It is this duality that has some > people concerned. For all other data-types, NumPy allows the user to > explicitly request a bit-width for the data-type.

Re: [Python-Dev] Help with inotify

2005-10-28 Thread Martin v. Löwis
Neal Becker wrote: > OK, does python have a C API that would allow me to create a python file > object from my C (C++) code? Then instead of using python's fdopen I could > just do it myself. I don't know - you will have to read the python source to find out (this is actually not a pythondev ques

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Neal Becker
Bob Ippolito wrote: > > On Oct 27, 2005, at 4:58 PM, Neal Becker wrote: > >> Bob Ippolito wrote: >> >> >>> >>> On Oct 27, 2005, at 4:32 PM, Neal Becker wrote: >>> >>> "Martin v. Löwis" wrote: > I see. Python is making up the EISDIR, looking at the stat result. > In Objects

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Neal Becker
"Martin v. Löwis" wrote: > I see. Python is making up the EISDIR, looking at the stat result. > In Objects/fileobject.c:dircheck generates the EISDIR error, which > apparently comes from posix_fdopen, PyFile_FromFile, > fill_file_fields. > > Python simply does not support file objects which stat

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Bob Ippolito
On Oct 27, 2005, at 4:58 PM, Neal Becker wrote: > Bob Ippolito wrote: > > >> >> On Oct 27, 2005, at 4:32 PM, Neal Becker wrote: >> >> >>> "Martin v. Löwis" wrote: >>> >>> I see. Python is making up the EISDIR, looking at the stat result. In Objects/fileobject.c:dircheck generates the EI

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Neal Becker
Bob Ippolito wrote: > > On Oct 27, 2005, at 4:32 PM, Neal Becker wrote: > >> "Martin v. Löwis" wrote: >> >>> I see. Python is making up the EISDIR, looking at the stat result. >>> In Objects/fileobject.c:dircheck generates the EISDIR error, which >>> apparently comes from posix_fdopen, PyFile_Fr

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Bob Ippolito
On Oct 27, 2005, at 4:32 PM, Neal Becker wrote: > "Martin v. Löwis" wrote: > >> I see. Python is making up the EISDIR, looking at the stat result. >> In Objects/fileobject.c:dircheck generates the EISDIR error, which >> apparently comes from posix_fdopen, PyFile_FromFile, >> fill_file_fields. >>

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Martin v. Löwis
Neal Becker wrote: > SYS_253(0, 0x7f88f0f0, 0x2dda3f00, 0x2ab4611b, 0x7) = 4 > close(3)= 0 > futex(0x502530, FUTEX_WAKE, 1) = 0 > futex(0x502530, FUTEX_WAKE, 1) = 0 > fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0 > m

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Neal Becker
"Martin v. Löwis" wrote: > Neal Becker wrote: >> Yes, tried that- learned nothing. > > Please go back further in the trace file. There must be a return > value of -1 (EISDIR) somewhere in the file, try to locate that. > >> Here's strace. The write of '4' is where my code writes the value of >>

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Martin v. Löwis
Neal Becker wrote: > Yes, tried that- learned nothing. Please go back further in the trace file. There must be a return value of -1 (EISDIR) somewhere in the file, try to locate that. > Here's strace. The write of '4' is where my code writes the value of > fileno() to stdout, which is '4', which

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Neal Becker
"Martin v. Löwis" wrote: > Neal Becker wrote: >> Any ideas? I'd rather not have to trace through python if I could avoid >> it (I don't even have source installed here). > > Use strace, then. Find out what precise system call gives you this > error. If this is not enough clue, post the relevant

Re: [Python-Dev] Help with inotify

2005-10-27 Thread Martin v. Löwis
Neal Becker wrote: > Any ideas? I'd rather not have to trace through python if I could avoid it > (I don't even have source installed here). Use strace, then. Find out what precise system call gives you this error. If this is not enough clue, post the relevant fragment of the trace output. Usage