Sridhar Ratnakumar sridh...@activestate.com added the comment:
Here it is:
def get_current_scheme():
scheme = os.name
if scheme == 'posix':
scheme = 'posix_prefix'
return scheme
def get_current_user_scheme():
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8775
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8776
___
Mark Dickinson dicki...@gmail.com added the comment:
Sorry, dropping this again. I've got caught up with too many non-datetime
related issues.
--
assignee: mark.dickinson -
___
Python tracker rep...@bugs.python.org
New submission from Kristján Valur Jónsson krist...@ccpgames.com:
The barrier synchronization primitive is often very useful. It is simpler to
use than an Event, for example, when waiting for threads to start up, or to
finish.
The patch contains a simple barrier implementation based on a
Changes by Brian Curtin cur...@acm.org:
--
versions: +Python 3.2 -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8777
___
___
Meador Inge mead...@gmail.com added the comment:
As a separate issue, I notice that the new 'T{}' code doesn't respect
multiplicities, e.g., as in 'H3T{HHL}'. Is that
intentional/desirable?
That could have been an oversight on my part. I don't see any immediate reason
why we wouldn't
Meador Inge mead...@gmail.com added the comment:
Thanks for the updated patch; I'll take a closer look tonight, and
apply it if all looks good.
I incorporated the changes locally and have not updated the patch yet. I will
update it later today.
--
Martin v. Löwis mar...@v.loewis.de added the comment:
I think that we should use the locale encoding to encode and decode command
line arguments.
I disagree. IIUC, this is only about OSX. Now, we shouldn't take any
action until either some OSX expert explains us how command line
arguments
Martin v. Löwis mar...@v.loewis.de added the comment:
As os.environb, it would be useful to have bytes version of sys.argv
to have able to decide the encoding used to decode each argument, or
to manipulate bytes if we don't care about the encoding.
-1. Py_Main expects wchar_t*, so no
Pascal Chambon chambon.pas...@gmail.com added the comment:
Allright, what's the expected behaviour then - implicitly converting unicode to
bytes (like C RawFileIO), or raising a typeerror (like buffered streams do) ?
--
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
(whoops -- used unsigned struct codes to correspond to signed C types there;
but it shouldn't make any difference to the sizes and padding).
I am tempted to suggest that we just go back to having one specifier at the
beginning of the
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
assignee: - belopolsky
nosy: +belopolsky -Alexander.Belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1289118
___
Meador Inge mead...@gmail.com added the comment:
Granted, yes. But I wouldn't expect the same padding for 'BT{BI}' and
'BBI'. 'BT{BI}' should match a C struct which itself has an embedded
struct. For C, I get the following results on my machine:
I wasn't sure. The C99 standard does not
Mark Dickinson dicki...@gmail.com added the comment:
The C99 standard does not specify what the behavior should be.
Right; it's down to the platform ABI.
I think the least common multiple of the alignment requirements of the struct
members is the way to go, though. It's difficult to
Mark Dickinson dicki...@gmail.com added the comment:
Another snippet, from the latest public draft of the System V x86-64 ABI [1]:
Structures and unions assume the alignment of their most strictly aligned
compo- nent. Each member is assigned to the lowest available offset with the
appropriate
Tarek Ziadé ziade.ta...@gmail.com added the comment:
No sorry, no API change for 2.7 at this point. We are in beta stage.
Now for the implementation, it's going to be a little more complex. We need to
look at variables like PYTHONFRAMEWORK for instance.
--
Orlando Irrazabal oirr...@mendoza.gov.ar added the comment:
Sorry, i didn't send that because the output is the same:
r...@host:python-2.6.5# ./python -m test.regrtest -w -v
'import site' failed; use -v for traceback
Could not import runpy module
r...@catastrix:python-2.6.5# ./python -v
#
Antoine Pitrou pit...@free.fr added the comment:
Here is a new patch giving more details in the doc, and explicitly mentioning
the CVE entry.
--
stage: needs patch - patch review
Added file: http://bugs.python.org/file17418/setargvex2.patch
___
Antoine Pitrou pit...@free.fr added the comment:
I would like to move forward on this. Does anyone have any comments or
objections to the current proposal?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4870
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
dt.diff does not apply to current SVN version anymore. I am attaching a quick
update that does not change the actual calculation performed. See
issue1289118-py3k.diff.
I am still -1 for the reason I stated before, but
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:
--
nosy: -agthorr
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1289118
___
___
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1371826
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1109602
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue967934
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1072404
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5332
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1563079
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1690103
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1675455
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1776160
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1054
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2403
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1467929
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1581906
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4106
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue998998
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6251
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4506
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6520
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5736
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6695
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4010
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5148
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6105
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7185
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6186
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7247
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7475
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue766910
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1374063
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2623
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3539
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4086
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3173
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4810
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2262
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4888
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4896
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7353
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5683
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7686
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1927
___
___
Python-bugs-list
Sridhar Ratnakumar sridh...@activestate.com added the comment:
Thanks.
there is an install scheme in distutils that describes the exact layout
I figured that this is now exposed via the `sysconfig` module. There is also an
old install scheme in `distutils.command.install`, but it seems to be
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4753
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1777412
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1544339
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1659
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8406
___
___
Python-bugs-list
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2054
___
___
Python-bugs-list mailing list
Changes by Skip Montanaro s...@pobox.com:
--
assignee: skip.montanaro -
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4111
___
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5671
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1083
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4194
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1818
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4835
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1644818
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue504152
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1759169
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8392
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2736
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6715
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4007
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1289118
___
___
Python-bugs-list
Changes by Skip Montanaro s...@pobox.com:
--
assignee: skip.montanaro -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1374063
___
___
Changes by Skip Montanaro s...@pobox.com:
--
assignee: skip.montanaro -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2623
___
___
Changes by Skip Montanaro s...@pobox.com:
--
assignee: skip.montanaro -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1659
___
___
Mark Dickinson dicki...@gmail.com added the comment:
One more reference:
http://msdn.microsoft.com/en-us/library/9dbwhz68(v=VS.80).aspx
gives essentially the same rules for MSVC. The alignment of the beginning of a
structure or a union is the maximum alignment of any individual member. Each
R. David Murray rdmur...@bitdance.com added the comment:
At some point I added test_roundtrip_quoteed_newlines to the csv unit tests,
and it passes both on trunk and py3k. I believe if there was a bug here it has
been fixed. I just backported the test to 2.6 in r81382, and it passes there
STINNER Victor victor.stin...@haypocalc.com added the comment:
Fix commited to py3k (r81364).
Ok, buildbots are happy: backported as r81383 in 3.1
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
Goplat mrnobo1...@yahoo.com added the comment:
Zipping up the Lib directory from the python source (1735 files) as a test, it
took on average 0.10 sec to read the zip before, 0.04 sec after.
(To test the time taken by zipimport isolated from other startup costs, instead
of actually getting
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
no, the input is not the same, there is ImportError: No module named site. I
have tree more questions:
- Do you have a file named: /sw_install/python-2.6.5/Lib/site.py
- what it the output when you type import sys; print sys.path
- is
STINNER Victor victor.stin...@haypocalc.com added the comment:
Ok, buildbots are happy: backported as r81383 in 3.1
My test doesn't work on Windows. We cannot delete a directory if it's the
current working directory: let's try r81384.
py3k commit is simpler because it uses support.test_cwd()
New submission from Terrence Cole terre...@zettabytestorage.com:
The documentation for symtable.SymbolTable
[http://docs.python.org/py3k/library/symtable.html] lists the function
has_import_start. This should be has_import_star, as listed in
help(symtable.SymbolTable).
I've attached a
New submission from Roman Gershman roma...@gmail.com:
The following code fails to parse the attached file:
#!/usr/bin/python3.1
if __name__ == '__main__':
f = open(c:\\1.txt, mode ='r', encoding='utf-8')
for line in f:
print (line)
--
components: Unicode
files: 1.txt
messages:
STINNER Victor victor.stin...@haypocalc.com added the comment:
$ hexdump -C 1.txt
ec 0d 0a |...|
0003
This file is *not* encoded to utf8.
--
nosy: +haypo
___
Python tracker
Giampaolo Rodola' g.rod...@gmail.com added the comment:
I like the approach of providing this feature as a single attribute instead of
two separate methods (set/get_options()).
For what it's worth, I took a look at the patch without actually trying it, and
it looks good overall, both tests and
Orlando Irrazabal oirr...@mendoza.gov.ar added the comment:
I answer your questions
- yes, i have a file named /sw_install/python-2.6.5/Lib/site.py
- the output for the commands import sys; print sys.path is:
['', '/sw_install/python-2.6.5/lib/python26.zip',
STINNER Victor victor.stin...@haypocalc.com added the comment:
I tested issue7384-5-py3k.patch on FreeBSD 8.0: it fixes the crash.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7384
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +tarek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8760
___
___
Python-bugs-list mailing list
101 - 200 of 220 matches
Mail list logo