[issue23972] Asyncio reuseport
New submission from Boris FELD: I'm trying to create some UDP sockets for doing multicast communication. I have the working code in synchronous way and try to port it to asyncio. One last issue is blocking for me, I'm on Mac OS X and for multicast UDP to work, the SO_REUSEPORT must be set on socket before bind. The problem is that I don't have access on socket, it's created inside asyncio method _create_connection_transport. I've seen that SO_REUSEADDR is already set (https://github.com/gvanrossum/tulip-try3/blob/7b2d8abfce1d7ef18ef516f9b1b7032172630375/asyncio/base_events.py#L720), so maybe we could also set SO_REUSEPORT only on platforms where it's available. `if hasattr(socket, 'SO_REUSEPORT')` should works. Or we could add an optional arguments with could be used to set some socket options, it could be more flexible that set SO_REUSEPORT. I could provide a patch for the best solution selected. -- components: asyncio messages: 241213 nosy: Boris.FELD, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: Asyncio reuseport type: behavior versions: Python 3.4, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23972 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13943] distutils’ build_py fails when package string is unicode
Boris FELD added the comment: An issue has been opened in pip repository: https://github.com/pypa/pip/issues/1441 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13943 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13943] distutils’ build_py fails when package string is unicode
Boris FELD added the comment: I've the same problem today with package https://pypi.python.org/pypi/httpretty/0.7.1 but only when I try to install one of my project which requires httpretty, if I try to install it directly it works like a charm. pip install httpretty - works pip install mypkg - doesn't works Looks like HTTPretty is using __file__ variable in setup.py (https://github.com/gabrielfalcao/HTTPretty/blob/master/setup.py#L35) and pip seems to pass the file as unicode: http://0bin.net/paste/dQfsSAmguWNYyY7w#0O/gcrWA44wKicfTdsGT4KqRYhbZLyhN9BUXNQD1XZA= At the last line: __file__=u'/home/lothiraldan/.virtualenvs/test/build/httpretty/setup.py' -- nosy: +Boris.FELD ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13943 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: How can i create a random array of floats from 0 to 5 in python
You can use [random.random() * 5 for x in range(100)] but works only on range [0, 5). If you want to include 5, you will need more code. Cheers, FELD Boris 2013/3/12 Norah Jones nh.jone...@gmail.com: I want to create a random float array of size 100, with the values in the array ranging from 0 to 5. I have tried random.sample(range(5),100) but that does not work. How can i get what i want to achieve? -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: For Loop in List
2013/1/13 Tim Chase python.l...@tim.thechases.com: On 01/13/13 06:45, subhabangal...@gmail.com wrote: SIZE = 3 for i in range(len(list1)//SICE): ... print list1[i*SIZE:i*SIZE+SIZE] ... [1, 2, 3] [4, 5, 6] [7, 8, 9] [10, 11, 12] A little shorter and simpler version: x = x[1:] for i in range(0,len(x),SIZE): ... print x[i: i+SIZE] ... [1, 2, 3] [4, 5, 6] [7, 8, 9] [10, 11, 12] Hope it helps Hope this helps, -tkc -- http://mail.python.org/mailman/listinfo/python-list
Re: Help with unittest2
How are you importing unittest2, do you have something like this ? try: import unittest2 as unittest except ImportError: import unittest If it's the case, you are maybe using default unittest while you think you are using unittest2. 2012/12/13 Daniel Laird daniel.j.la...@googlemail.com: On Thursday, December 13, 2012 3:09:58 PM UTC, Miki Tebeka wrote: On Thursday, December 13, 2012 7:03:27 AM UTC-8, Daniel Laird wrote: I do am import unittest2 as unittest NameError: global name 'assertListEqual' is not defined According to the docs (http://docs.python.org/2/library/unittest.html#unittest.TestCase.addTypeEqualityFunc) assertListEqual and friends was added in 2.7. You can use assertEuqal, or if you don't care about order assertEqual(sorted(a), sorted(b)). Thanks, however I thought by using unittest2 it added the new 2.7 features to 2.6? -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: open URL in the current tab
Don't think that it's possible with webbrowser, you should try with Selenium. For example with sst (Simple Selenium Test), it open url in current tab or create a new one if no one exists: from sst.actions import * go_to('http://www.ubuntu.com/') 2012/12/10 Jabba Laci jabba.l...@gmail.com: Hi, With the webbrowser module you can open a URL in a new tab. But how could I tell Firefox from Python to open a URL in the _current_ tab? Thanks, Laszlo -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Testing against multiple versions of Python
Did you take a look at https://www.shiningpanda-ci.com/? 2012/10/19 andrea crotti andrea.crott...@gmail.com: 2012/10/19 Michele Simionato michele.simion...@gmail.com: Yesterday I released a new version of the decorator module. It should run under Python 2.4, 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3. I did not have the will to install on my machine 8 different versions of Python, so I just tested it with Python 2.7 and 3.3. But I do not feel happy with that. Is there any kind of service where a package author can send a pre-release version of her package and have its tests run againsts a set of different Python versions? I seem to remember somebody talking about a service like that years ago but I don't remembers. I do not see anything on PyPI. Any advice is welcome! Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list Travis on github maybe is what you want? -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Writing Android application using GPS data with Python
You can try appaccelerator, it seems to support python and you should be able to access geolocalisation (according to wikipedia: https://en.wikipedia.org/wiki/Appcelerator_Titanium) Le 15 avril 2012 16:44, Noam Peled peled.n...@gmail.com a écrit : I want to write an Android application using Python. I've found 2 options for that: kivy and SL4A. In kivy, at least for now, I can't use the GPS data. Anyone knows if I can get the GPS data using SL4A with Python? As I understood, one can write commercial apps using kivy. On the other hand, with SL4A you must install first SL4A and python on your Android device, so I'm not sure it's suitable for commercial apps. And last one, can I use funf with python? -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
[issue8906] Document TestCase attributes in class docstring
Boris FELD lothiral...@gmail.com added the comment: Add a patch for this issue, move attributes comments in TestCase docstring. I think it should be a good idea too to add their in unittest doc. -- keywords: +patch nosy: +Boris.FELD Added file: http://bugs.python.org/file24024/unittest_docstring.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8906 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
New submission from Boris FELD lothiral...@gmail.com: Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some unicode tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data (all the tests with more than 20% of performance regression): - (A*1000).find(B) (*1000): -30.379747% - Hello\t \t.rstrip() (*1000): -33.33% - this\nis\na\ntest\n.rsplit(\n) (*1000): -23.437500% - \nHello!\n.strip() (*1000): -33.33% - dna.split(ACTAT) (*10): -21.07% - Andrew.endswith(w) (*1000): -23.529412% - ...text.with.2000.lines...replace(\n, ) (*10): -37.668161% - \t \tHello.rstrip() (*1000): -33.33% - (A*1000).rpartition(A) (*1000): -21.212121% - (Here are some words. *2).split() (*1000): -22.105263% - Hello!\n.rstrip() (*1000): -35.714286% - B in A*1000 (*1000): -32.089552% - Hello!\n.strip() (*1000): -35.714286% - \nHello!.strip() (*1000): -28.571429% - this\nis\na\ntest\n.split(\n) (*1000): -23.437500% - Andrew.startswith(A) (*1000): -20.588235% - \nHello!.rstrip() (*1000): -35.714286% - Andrew.endswith(Andrew) (*1000): -22.857143% - Andrew.endswith(Anders) (*1000): -23.529412% - The %(k1)s is %(k2)s the %(k3)s.%{k1:x,k2:y,k3:z,} (*1000): -49.411765% - Andrew.startswith(Anders) (*1000): -23.529412% - this--is--a--test--of--the--emergency--broadcast--system.split(--) (*1000): -22.429907% - Andrew+Dalke (*1000): -23.076923% -- assignee: collinwinter components: Benchmarks files: stringbench_log_cpython3.2 messages: 149681 nosy: Boris.FELD, collinwinter priority: normal severity: normal status: open title: Unicode performance regression in python3.3 vs python3.2 type: performance versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23991/stringbench_log_cpython3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23992/stringbench_log_cpython3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23993/stringbench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Removed file: http://bugs.python.org/file23993/stringbench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23994/compare.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13622] Bytes performance regression in python3.3 vs python3.2
New submission from Boris FELD lothiral...@gmail.com: Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some bytes tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data (all the tests with more than 20% of performance regression): - (bA*1000).find(bB) (*1000): -30.379747% - bHello\t \t.rstrip() (*1000): -33.33% - bthis\nis\na\ntest\n.rsplit(b\n) (*1000): -23.437500% - b\nHello!\n.strip() (*1000): -33.33% - dna.split(bACTAT) (*10): -21.07% - bAndrew.endswith(bw) (*1000): -23.529412% - b...text.with.2000.lines...replace(b\n, b ) (*10): -37.668161% - b\t \tHello.rstrip() (*1000): -33.33% - (bA*1000).rpartition(bA) (*1000): -21.212121% - (bHere are some words. *2).split() (*1000): -22.105263% - bthis\nis\na\ntest\n.split(b\n) (*1000): -23.437500% - bHello!\n.rstrip() (*1000): -35.714286% - bB in bA*1000 (*1000): -32.089552% - bHello!\n.strip() (*1000): -35.714286% - b\nHello!.strip() (*1000): -28.571429% - bAndrew.startswith(bA) (*1000): -20.588235% - b\nHello!.rstrip() (*1000): -35.714286% - bAndrew.endswith(bAndrew) (*1000): -22.857143% - bAndrew.endswith(bAnders) (*1000): -23.529412% - bAndrew.startswith(bAnders) (*1000): -23.529412% - bthis--is--a--test--of--the--emergency--broadcast--system.split(b--) (*1000): -22.429907% - bAndrew+bDalke (*1000): -23.076923% Hope it help -- assignee: collinwinter components: Benchmarks files: stringbench_log_cpython3.2 messages: 149683 nosy: Boris.FELD, collinwinter priority: normal severity: normal status: open title: Bytes performance regression in python3.3 vs python3.2 type: performance versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23995/stringbench_log_cpython3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13622 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13622] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23996/stringbench_log_cpython3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13622 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13622] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23997/compare.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13622 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13622] Bytes performance regression in python3.3 vs python3.2
Boris FELD lothiral...@gmail.com added the comment: Forgot to describe my environment: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13622 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13621] Unicode performance regression in python3.3 vs python3.2
Boris FELD lothiral...@gmail.com added the comment: Forgot to describe my environment: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
New submission from Boris FELD lothiral...@gmail.com: Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some bytes tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data (all the tests with more than 20% of performance regression): - (bA*1000).rfind(bA) (*1000): -70.103093% - (bA*1000).find(bB) (*1000): -48.372093% - (bA*1000).rindex(bA) (*1000): -68.89% - s=bABC*33; (s+bE+(bD+s)*500).rfind(s+bE) (*100): -28.982301% - (bC+bAB*300).rfind(bCA) (*1000): -29.565217% - (bAB*1000).index(bAB) (*1000): -68.539326% - bAndrew.endswith(bw) (*1000): -21.212121% - (bA*1000).index(bA) (*1000): -71.11% - (bBC+bAB*300).rfind(bBC) (*1000): -42.788462% - bAndrew.startswith(bAndrew) (*1000): -20.588235% - (bAB*1000).find(bAB) (*1000): -69.318182% - (bAB*1000).rfind(bAB) (*1000): -69.791667% - (bA*1000).rfind(bB) (*1000): -37.988827% - (bAB*300+C).index(bBC) (*1000): -28.75% - bB in bA*1000 (*1000): -24.479167% - (bAB*300+CA).find(bCA) (*1000): -33.673469% - (bAB*1000).rindex(bAB) (*1000): -67.78% - (bC+AB*300).rindex(bCA) (*1000): -29.017857% - (bAB*300+C).find(bBC) (*1000): -28.451883% - bAndrew.startswith(bA) (*1000): -21.212121% - bAndrew.startswith(bAnders) (*1000): -21.212121% - (bA*1000).partition(bB) (*1000): -30.656934% - (bAB*1000).rfind(bCA) (*1000): -20.603015% - (bAB*1000).rfind(bBC) (*1000): -35.645472% - (bA*1000).find(bA) (*1000): -70.454545% My environment is: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964 -- assignee: collinwinter components: Benchmarks files: stringbench_log_cpython3.2 messages: 149689 nosy: Boris.FELD, collinwinter priority: normal severity: normal status: open title: Bytes performance regression in python3.3 vs python3.2 type: performance versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file23999/stringbench_log_cpython3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file24000/iobench_log_python3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file24001/compare.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Removed file: http://bugs.python.org/file24000/iobench_log_python3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13623] Bytes performance regression in python3.3 vs python3.2
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file24002/stringbench_log_cpython3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5492] Error on leaving IDLE with quit() or exit() under Linux
Boris FELD lothiral...@gmail.com added the comment: The problem still exists in trunk with 3.2 and 3.3. -- nosy: +Boris.FELD versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5492 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10805] traceback.print_exception throws AttributeError when exception is None
Boris FELD lothiral...@gmail.com added the comment: I add a test to test_traceback.py for this bug. Bug is confirmed on python 3.2 and python3.3. I use 2.x behavior as reference. I don't know if we should add an assertion in traceback.print_exception or traceback._iter_chain, so I add the test for traceback.print_exception. -- keywords: +patch nosy: +Boris.FELD Added file: http://bugs.python.org/file24011/new_traceback_test_print_traceback.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10805 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1469629] __dict__ = self in subclass of dict causes a memory leak?
Changes by Boris FELD lothiral...@gmail.com: -- nosy: +Boris.FELD ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1469629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: Python benefits over Cobra
Cobra seems interessant, open-source, but the dependance on Mono and .Net annoy me a bit. Otherwise, cobra have good ideas, a syntax similar to python. One thing i really love is the How-To and the Samples pages on it's website, i think it's a very good thing for beginners. FELD Boris 2011/4/5 Colin J. Williams c...@ncf.ca: On 05-Apr-11 06:22 AM, Brendan Simon (eTRIX) wrote: I just came across the Cobra language, which appears to be heavily influenced by Python (and other languages). The pitch sounds great. It's supposed to have: 1. Quick, expressive coding 2. Fast execution 3. Static and dynamic binding 4. Language level support for quality http://cobra-language.com/docs/why/ http://cobra-language.com/docs/python/ I was wondering what advantages Python has over Cobra. I know it's probably a difficult question to answer and depends on specific requirements. All I can think of is: * Maturity of language o Robust and tested. o availability of modules (standard and built-in). o large community support (commercial and non-commercial). * No dependence of .NET/Mono o I don't know if this is an pro or con as I don't know .NET. Presumably the maturity argument would be less significant over time. I'm not sure about the .NET/Mono framework, whether that is good or bad. Sounds good in some situations at least. Any other arguments where Python has benefits over Cobra ?? Cheers, Brendan. Two questions: 1. Is Cobra Open Source? 2. The blog ended on October, did he run out of steam? I liked the '.', in place of '.self', but that's been rejected for Python. Colin W. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Threading with Socket Server
I'm not sure to understand what you want. Is it your server process that will read the shelve file ? You may give more informations about your problem, but i can give you some hints. In order to create a TCP server, you can use SocketServer which is in the builtin library (http://docs.python.org/library/socketserver.html). I'm not sure about how shelve manage concurrency, but in my opinion, you'll need to create a single process or thread which manage read and write operation in order to avoiding race conditions. Cheers, Feld Boris 2011/3/23 T misceveryth...@gmail.com: Hello all, I am writing a Windows service that needs to 1) Act as a server (TCP), and write to a shelve file, and 2) Read that same shelve file every x number of seconds. My thought is to create 2 separate classes (1 for the socket server and writing to the shelve file, and another to read the file and perform other requested actions) - however, I need to make sure they are both running concurrently. I'm sure threading is involved, but my experience with it has been minimal, so any help to steer me in the right direction is greatly appreciated. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Validating Command Line Options
If you're using argparse, you have a method for that named add_mutually_exclusive_group. Tutorial : http://www.doughellmann.com/PyMOTW/argparse/#mutually-exclusive-options Cheers, Feld Boris 2011/3/23 T misceveryth...@gmail.com: For a Python script with multiple command line options, what is the best way to go about validating that only certain options are used together? For example, say -s, -t, and -v are all valid options, but should never be used together (i.e. -s -t would be invalid). Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
[issue10154] locale.normalize strips - from UTF-8, which fails on Mac
Boris FELD lothiral...@gmail.com added the comment: Bug confirmed on python2.5+ and python3.2-. If it works with the dash, is agree with the Marc-Andre solution. -- nosy: +Boris.FELD versions: +Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution
New submission from Boris FELD lothiral...@gmail.com: Distutils2 install command don't display error if you try to launch it in a directory without setup.py nor setup.cfg files. It install an UNKNOWN-UNKNOWN.dist-info distribution in your site-package with all meta-data file set to UNKNOWN. -- assignee: tarek components: Distutils2 files: METADATA messages: 127190 nosy: Boris.FELD, eric.araujo, tarek, tarek-ziade priority: normal severity: normal status: open title: Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution versions: Python 2.6 Added file: http://bugs.python.org/file20545/METADATA ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11026] Distutils2 install command fail with python 2.5/2.7
New submission from Boris FELD lothiral...@gmail.com: Distutils2 install command fail with both python 2.5 and python 2.7 while it works with python 2.6. $ python -V python 2.5.4 $ python -m distutils2.run install usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: run.py --help [cmd1 cmd2 ...] or: run.py --help-commands or: run.py cmd --help error: Invalid command install $ python -V Python 2.7.1 $ python -m distutils2.run install usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: run.py --help [cmd1 cmd2 ...] or: run.py --help-commands or: run.py cmd --help error: Invalid command install It fail it a setup.cfg exists or not in the current directory. -- assignee: tarek components: Distutils2 messages: 127192 nosy: Boris.FELD, eric.araujo, tarek, tarek-ziade priority: normal severity: normal status: open title: Distutils2 install command fail with python 2.5/2.7 versions: Python 2.5, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11026 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11026] Distutils2 install command fail with python 2.5/2.7
Changes by Boris FELD lothiral...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11026 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11026] Distutils2 install command fail with python 2.5/2.7
Boris FELD lothiral...@gmail.com added the comment: The new command for installation is install_dist, sorry. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11026 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution
Boris FELD lothiral...@gmail.com added the comment: It also fails with python 2.5 and python 2.7 with install_dist command. -- versions: +Python 2.5, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11025 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com